// File: /workspace/github_c_makefile_star2_O1/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 0xa653(%rip), %rax      # 0x13470
movq 0x80(%rax), %rbx
testq %rbx, %rbx
je 0x8e84
cmpl $0x0, 0x17c(%rbx)
jne 0x8e84
cmpl $0x0, 0x160(%rbx)
jne 0x8e84
movl 0x108(%rbx), %ebp
movl 0x10c(%rbx), %r12d
movq 0xa639(%rip), %rdi      # 0x13488
movq 0xa7fa(%rip), %rsi      # 0x13650
subq $0x8, %rsp
xorl %eax, %eax
xorl %edx, %edx
movl $0x4c, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
pushq %rax
pushq 0xa81a(%rip)            # 0x13690
pushq %rax
callq 0x5200
addq $0x20, %rsp
testl %eax, %eax
je 0x8e96
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, 0x4(%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 0x75b8
movq 0x1a0(%rbx), %rdi
callq 0x98ef
movq %rbx, %rdi
callq 0x9b58
cmpl $0x0, 0x174(%rbx)
jne 0x8ef5
movq 0xa59f(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
movq 0xa58c(%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
movl $0x1, %r13d
leaq 0x8277(%rip), %rbp      # 0x111c0
movq 0xa538(%rip), %rdi      # 0x13488
movl $0x10804c, %esi         # imm = 0x10804C
movq %r14, %rdx
callq 0x54e0
movslq 0x8(%rsp), %rax
cmpq $0x13, %rax
jg 0x8f74
cmpl $0x6, %eax
je 0x8f91
cmpl $0xc, %eax
je 0x8f7e
jmp 0x8f85
cmpl $0x17, %eax
je 0x8f7e
cmpl $0x14, %eax
jne 0x8f85
movq %r14, %rdi
callq *(%rbp,%rax,8)
cmpl $0x5, 0x8(%rsp)
jne 0x8f49
jmp 0x907b
movl 0x150(%rbx), %eax
movl 0x48(%rsp), %edx
subl 0x4(%rsp), %edx
subl %eax, %edx
subl %eax, %edx
leal 0x1(%rdx), %ecx
testl %edx, %edx
cmovlel %r13d, %ecx
movl 0x4c(%rsp), %edx
leal (%r12,%rax,2), %eax
subl %eax, %edx
leal 0x1(%rdx), %r8d
testl %edx, %edx
cmovlel %r13d, %r8d
movq 0xa4a9(%rip), %rax      # 0x13470
movl 0x5c(%rax), %edx
movq 0xa0(%rax,%rdx,8), %rax
cmpq $0x0, 0x10(%rax)
je 0x8fe2
cmpl $0x0, 0x168(%rbx)
je 0x8ffc
movl 0x108(%rbx), %esi
movl 0x10c(%rbx), %edx
movq %rbx, %rdi
movl $0x1, %r9d
callq 0x7373
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 0x76f8
cmpq 0xa43e(%rip), %rax      # 0x13470
je 0x8f85
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa643
movq %r15, %rdi
callq 0x9dcd
movq %rbx, %rdi
callq 0x9b58
cmpl $0x0, 0x174(%rbx)
jne 0x8f85
movq 0xa41e(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
jmp 0x8f85
movq 0xa406(%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 0xa3c4(%rip), %rdi      # 0x13488
xorl %esi, %esi
callq 0x5180
leaq 0x8(%rsp), %r14
movq 0xa3b1(%rip), %rdi      # 0x13488
movl $0x10, %esi
movq %r14, %rdx
callq 0x5410
testl %eax, %eax
jne 0x90d0
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 0x76f8
cmpq 0xa352(%rip), %rax      # 0x13470
je 0x8e84
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa643
movq %r14, %rdi
callq 0x9dcd
movq %rbx, %rdi
callq 0x9b58
cmpl $0x0, 0x174(%rbx)
jne 0x8e84
movq 0xa332(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
jmp 0x8e84