// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq 0xa6b1(%rip), %rax      # 0x13470
movq 0x80(%rax), %rbx
testq %rbx, %rbx
je 0x8e27
cmpl $0x0, 0x17c(%rbx)
jne 0x8e27
cmpl $0x0, 0x160(%rbx)
jne 0x8e27
movl 0x108(%rbx), %r12d
movl 0x10c(%rbx), %r14d
movq 0xa696(%rip), %rdi      # 0x13488
movq 0xa857(%rip), %rsi      # 0x13650
subq $0x8, %rsp
xorl %eax, %eax
xorl %edx, %edx
movl $0x4c, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
pushq %rax
pushq 0xa877(%rip)            # 0x13690
pushq %rax
callq 0x5200
addq $0x20, %rsp
testl %eax, %eax
je 0x8e39
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, (%rsp)
movl $0x1, 0x168(%rbx)
movl 0x108(%rbx), %esi
movl 0x10c(%rbx), %edx
movl 0x128(%rbx), %ecx
movl 0x12c(%rbx), %r8d
movq %rbx, %rdi
callq 0x75cf
movq 0x1a0(%rbx), %rdi
callq 0x98a3
movq %rbx, %rdi
callq 0x9b07
cmpl $0x0, 0x174(%rbx)
jne 0x8e98
movq 0xa5fc(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
movq 0xa5e9(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rdx
movl 0x150(%rbx), %eax
decl %eax
movl 0x110(%rbx), %r10d
addl %eax, %r10d
addl 0x114(%rbx), %eax
subq $0x8, %rsp
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %r10
pushq $0x0
callq 0x5510
addq $0x20, %rsp
leaq 0x8(%rsp), %r14
leaq 0x82da(%rip), %rbp      # 0x111c0
movq 0xa59b(%rip), %rdi      # 0x13488
movl $0x10804c, %esi         # imm = 0x10804C
movq %r14, %rdx
callq 0x54e0
movslq 0x8(%rsp), %rax
cmpq $0x13, %rax
jg 0x8f11
cmpl $0x6, %eax
je 0x8f30
cmpl $0xc, %eax
je 0x8f1b
jmp 0x8f26
cmpl $0x17, %eax
je 0x8f1b
cmpl $0x14, %eax
jne 0x8f26
movq %r14, %rdi
callq *(%rbp,%rax,8)
movl 0x8(%rsp), %eax
cmpl $0x5, %eax
jne 0x8ee6
jmp 0x902b
movl 0x150(%rbx), %eax
movl 0x48(%rsp), %edx
movl %r12d, %r13d
subl %r12d, %edx
subl %eax, %edx
subl %eax, %edx
leal 0x1(%rdx), %ecx
testl %edx, %edx
movl $0x1, %edi
cmovlel %edi, %ecx
movl 0x4c(%rsp), %edx
movq (%rsp), %rsi
leal (%rsi,%rax,2), %eax
subl %eax, %edx
leal 0x1(%rdx), %r8d
testl %edx, %edx
cmovlel %edi, %r8d
movq 0xa501(%rip), %r12      # 0x13470
movl 0x5c(%r12), %eax
movq 0xa0(%r12,%rax,8), %rax
cmpq $0x0, 0x10(%rax)
je 0x8f8c
cmpl $0x0, 0x168(%rbx)
je 0x8fad
movl 0x108(%rbx), %esi
movl 0x10c(%rbx), %edx
movq %rbx, %rdi
movl $0x1, %r9d
callq 0x7353
movq 0xa4c3(%rip), %r12      # 0x13470
movl 0x110(%rbx), %eax
movl 0x114(%rbx), %ecx
movl %eax, %edi
shrl $0x1f, %edi
addl %eax, %edi
sarl %edi
addl 0x108(%rbx), %edi
movl %ecx, %esi
shrl $0x1f, %esi
addl %ecx, %esi
sarl %esi
addl 0x10c(%rbx), %esi
callq 0x76d1
cmpq %r12, %rax
movl %r13d, %r12d
je 0x8f22
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa5e4
movq %r15, %rdi
callq 0x9d7c
movq %rbx, %rdi
callq 0x9b07
cmpl $0x0, 0x174(%rbx)
jne 0x8f22
movq 0xa46e(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
jmp 0x8f22
movq 0xa456(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rdx
movl 0x150(%rbx), %eax
decl %eax
movl 0x110(%rbx), %r10d
addl %eax, %r10d
addl 0x114(%rbx), %eax
subq $0x8, %rsp
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %r10
pushq $0x0
callq 0x5510
addq $0x20, %rsp
movq 0xa414(%rip), %rdi      # 0x13488
xorl %esi, %esi
callq 0x5180
leaq 0x8(%rsp), %r14
movq 0xa401(%rip), %rdi      # 0x13488
movl $0x10, %esi
movq %r14, %rdx
callq 0x5410
testl %eax, %eax
jne 0x9080
movl 0x110(%rbx), %eax
movl 0x114(%rbx), %ecx
movl %eax, %edi
shrl $0x1f, %edi
addl %eax, %edi
sarl %edi
addl 0x108(%rbx), %edi
movl %ecx, %esi
shrl $0x1f, %esi
addl %ecx, %esi
sarl %esi
addl 0x10c(%rbx), %esi
callq 0x76d1
cmpq 0xa3a2(%rip), %rax      # 0x13470
je 0x8e27
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa5e4
movq %r14, %rdi
callq 0x9d7c
movq %rbx, %rdi
callq 0x9b07
cmpl $0x0, 0x174(%rbx)
jne 0x8e27
movq 0xa382(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
jmp 0x8e27