// File: /workspace/github_c_makefile_star2_O0/Cloudef[P]dwm-fork/dwm.c
// Function: resizemouse
void
resizemouse(const Arg *arg) {

   int ocx, ocy;
   int nw, nh;
   Client *c;
   Monitor *m;
   XEvent ev;

   if(!(c = selmon->sel))
      return;
   if(c->iszombie || c->isfullscreen)
      return;
   ocx = c->x;
   ocy = c->y;
   if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
            None, cursor[CurResize], CurrentTime) != GrabSuccess)
      return;

   c->isfloating = True;
   resizeclient(c, c->x, c->y, c->fw, c->fh);
   arrange(c->mon);
   focus(c);

   if(!c->isbelow) XRaiseWindow( dpy, c->win );
   XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1);
   do {
      XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev);
      switch(ev.type) {
         case ConfigureRequest:
         case Expose:
         case MapRequest:
            handler[ev.type](&ev);
            break;
         case MotionNotify:
            nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1);
            nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1);
            if(!selmon->lt[selmon->sellt]->arrange || c->isfloating)
               resize(c, c->x, c->y, nw, nh, True);
            if((m = ptrtomon(c->x + c->w / 2, c->y + c->h / 2)) != selmon) {
               sendmon(c, m);
               focusmon(m);
               focus(c);
               if(!c->isbelow) XRaiseWindow( dpy, c->win );
            }
            break;
      }
   } while(ev.type != ButtonRelease);
   XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1);
   XUngrabPointer(dpy, CurrentTime);
   while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
   if((m = ptrtomon(c->x + c->w / 2, c->y + c->h / 2)) != selmon) {
      sendmon(c, m);
      focusmon(m);
      focus(c);
      if(!c->isbelow) XRaiseWindow( dpy, c->win );
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movq 0xd7da(%rip), %rax      # 0x18600
movq 0x80(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0xae3c
jmp 0xb2db
movq -0x20(%rbp), %rax
cmpl $0x0, 0x17c(%rax)
jne 0xae56
movq -0x20(%rbp), %rax
cmpl $0x0, 0x160(%rax)
je 0xae5b
jmp 0xb2db
movq -0x20(%rbp), %rax
movl 0x108(%rax), %eax
movl %eax, -0xc(%rbp)
movq -0x20(%rbp), %rax
movl 0x10c(%rax), %eax
movl %eax, -0x10(%rbp)
movq 0xd79c(%rip), %rdi      # 0x18618
movq 0xd95d(%rip), %rsi      # 0x187e0
movq 0xd98e(%rip), %rax      # 0x18818
xorl %edx, %edx
movl $0x4c, %ecx
movl $0x1, %r9d
xorl %r8d, %r8d
movl %r9d, %r8d
movq $0x0, (%rsp)
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x5210
cmpl $0x0, %eax
je 0xaec2
jmp 0xb2db
movq -0x20(%rbp), %rax
movl $0x1, 0x168(%rax)
movq -0x20(%rbp), %rdi
movq -0x20(%rbp), %rax
movl 0x108(%rax), %esi
movq -0x20(%rbp), %rax
movl 0x10c(%rax), %edx
movq -0x20(%rbp), %rax
movl 0x128(%rax), %ecx
movq -0x20(%rbp), %rax
movl 0x12c(%rax), %r8d
callq 0x8660
movq -0x20(%rbp), %rax
movq 0x1a0(%rax), %rdi
callq 0xbf30
movq -0x20(%rbp), %rdi
callq 0xc2d0
movq -0x20(%rbp), %rax
cmpl $0x0, 0x174(%rax)
jne 0xaf3f
movq 0xd6e9(%rip), %rdi      # 0x18618
movq -0x20(%rbp), %rax
movq 0x1a8(%rax), %rsi
callq 0x5180
movq 0xd6d2(%rip), %rdi      # 0x18618
movq -0x20(%rbp), %rax
movq 0x1a8(%rax), %rdx
movq -0x20(%rbp), %rax
movl 0x110(%rax), %r10d
movq -0x20(%rbp), %rax
addl 0x150(%rax), %r10d
subl $0x1, %r10d
movq -0x20(%rbp), %rax
movl 0x114(%rax), %eax
movq -0x20(%rbp), %rcx
addl 0x150(%rcx), %eax
subl $0x1, %eax
xorl %ecx, %ecx
movl %ecx, %esi
xorl %r9d, %r9d
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x0, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x5520
movq 0xd66d(%rip), %rdi      # 0x18618
movl $0x10804c, %esi         # imm = 0x10804C
leaq -0xe8(%rbp), %rdx
callq 0x54f0
movl -0xe8(%rbp), %eax
addl $-0x6, %eax
movl %eax, %ecx
movq %rcx, -0xf0(%rbp)
subl $0x11, %eax
ja 0xb1a5
movq -0xf0(%rbp), %rax
leaq 0x705b(%rip), %rcx      # 0x12040
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movslq -0xe8(%rbp), %rcx
leaq -0xe8(%rbp), %rdi
leaq 0xd0ad(%rip), %rax      # 0x180b0
callq *(%rax,%rcx,8)
jmp 0xb1a5
movl -0xa8(%rbp), %eax
subl -0xc(%rbp), %eax
movq -0x20(%rbp), %rcx
movl 0x150(%rcx), %ecx
shll %ecx
subl %ecx, %eax
addl $0x1, %eax
cmpl $0x1, %eax
jle 0xb04c
movl -0xa8(%rbp), %eax
subl -0xc(%rbp), %eax
movq -0x20(%rbp), %rcx
movl 0x150(%rcx), %ecx
shll %ecx
subl %ecx, %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0xb059
movl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0xb059
movl -0xf4(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0xa4(%rbp), %eax
subl -0x10(%rbp), %eax
movq -0x20(%rbp), %rcx
movl 0x150(%rcx), %ecx
shll %ecx
subl %ecx, %eax
addl $0x1, %eax
cmpl $0x1, %eax
jle 0xb0a3
movl -0xa4(%rbp), %eax
subl -0x10(%rbp), %eax
movq -0x20(%rbp), %rcx
movl 0x150(%rcx), %ecx
shll %ecx
subl %ecx, %eax
addl $0x1, %eax
movl %eax, -0xf8(%rbp)
jmp 0xb0b0
movl $0x1, %eax
movl %eax, -0xf8(%rbp)
jmp 0xb0b0
movl -0xf8(%rbp), %eax
movl %eax, -0x18(%rbp)
movq 0xd540(%rip), %rax      # 0x18600
movq 0xd539(%rip), %rcx      # 0x18600
movl 0x5c(%rcx), %ecx
movq 0xa0(%rax,%rcx,8), %rax
cmpq $0x0, 0x10(%rax)
je 0xb0e6
movq -0x20(%rbp), %rax
cmpl $0x0, 0x168(%rax)
je 0xb110
movq -0x20(%rbp), %rdi
movq -0x20(%rbp), %rax
movl 0x108(%rax), %esi
movq -0x20(%rbp), %rax
movl 0x10c(%rax), %edx
movl -0x14(%rbp), %ecx
movl -0x18(%rbp), %r8d
movl $0x1, %r9d
callq 0x8060
movq -0x20(%rbp), %rax
movl 0x108(%rax), %edi
movq -0x20(%rbp), %rax
movl 0x110(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl %eax, %edi
movq -0x20(%rbp), %rax
movl 0x10c(%rax), %esi
movq -0x20(%rbp), %rax
movl 0x114(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl %eax, %esi
callq 0x88b0
movq %rax, -0x28(%rbp)
cmpq 0xd4a4(%rip), %rax      # 0x18600
je 0xb1a3
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xd460
movq -0x28(%rbp), %rdi
callq 0xc610
movq -0x20(%rbp), %rdi
callq 0xc2d0
movq -0x20(%rbp), %rax
cmpl $0x0, 0x174(%rax)
jne 0xb1a1
movq 0xd487(%rip), %rdi      # 0x18618
movq -0x20(%rbp), %rax
movq 0x1a8(%rax), %rsi
callq 0x5180
jmp 0xb1a3
jmp 0xb1a5
jmp 0xb1a7
cmpl $0x5, -0xe8(%rbp)
jne 0xafa4
movq 0xd45d(%rip), %rdi      # 0x18618
movq -0x20(%rbp), %rax
movq 0x1a8(%rax), %rdx
movq -0x20(%rbp), %rax
movl 0x110(%rax), %r10d
movq -0x20(%rbp), %rax
addl 0x150(%rax), %r10d
subl $0x1, %r10d
movq -0x20(%rbp), %rax
movl 0x114(%rax), %eax
movq -0x20(%rbp), %rcx
addl 0x150(%rcx), %eax
subl $0x1, %eax
xorl %ecx, %ecx
movl %ecx, %esi
xorl %r9d, %r9d
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x0, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x5520
movq 0xd3f8(%rip), %rdi      # 0x18618
xorl %eax, %eax
movl %eax, %esi
callq 0x5190
movq 0xd3e8(%rip), %rdi      # 0x18618
movl $0x10, %esi
leaq -0xe8(%rbp), %rdx
callq 0x5420
cmpl $0x0, %eax
je 0xb248
jmp 0xb229
movq -0x20(%rbp), %rax
movl 0x108(%rax), %edi
movq -0x20(%rbp), %rax
movl 0x110(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl %eax, %edi
movq -0x20(%rbp), %rax
movl 0x10c(%rax), %esi
movq -0x20(%rbp), %rax
movl 0x114(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl %eax, %esi
callq 0x88b0
movq %rax, -0x28(%rbp)
cmpq 0xd36c(%rip), %rax      # 0x18600
je 0xb2db
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xd460
movq -0x28(%rbp), %rdi
callq 0xc610
movq -0x20(%rbp), %rdi
callq 0xc2d0
movq -0x20(%rbp), %rax
cmpl $0x0, 0x174(%rax)
jne 0xb2d9
movq 0xd34f(%rip), %rdi      # 0x18618
movq -0x20(%rbp), %rax
movq 0x1a8(%rax), %rsi
callq 0x5180
jmp 0xb2db
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)