// File: /workspace/github_c_makefile_star2_O2/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 $0xe8, %rsp
movq 0xa902(%rip), %rax      # 0x13470
movq 0x80(%rax), %rbx
testq %rbx, %rbx
je 0x8bd4
cmpl $0x0, 0x17c(%rbx)
jne 0x8bd4
cmpl $0x0, 0x160(%rbx)
jne 0x8bd4
movl 0x108(%rbx), %r13d
movl 0x10c(%rbx), %r14d
movq 0xa8e7(%rip), %rdi      # 0x13488
movq 0xaaa8(%rip), %rsi      # 0x13650
movq 0xaae1(%rip), %rax      # 0x13690
andq $0x0, 0x10(%rsp)
movq %rax, 0x8(%rsp)
andq $0x0, (%rsp)
pushq $0x4c
popq %rcx
pushq $0x1
popq %r8
xorl %edx, %edx
movl %r8d, %r9d
callq 0x5200
testl %eax, %eax
je 0x8be6
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x20(%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 0x740d
movq 0x1a0(%rbx), %rdi
callq 0x958e
movq %rbx, %rdi
callq 0x97fb
cmpl $0x0, 0x174(%rbx)
jne 0x8c46
movq 0xa84e(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
movq 0xa83b(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rdx
movl 0x150(%rbx), %eax
decl %eax
movl 0x110(%rbx), %ecx
addl %eax, %ecx
addl 0x114(%rbx), %eax
andl $0x0, (%rsp)
movl %eax, 0x10(%rsp)
movl %ecx, 0x8(%rsp)
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x5510
leaq 0x28(%rsp), %r14
leaq 0x852f(%rip), %r12      # 0x111c0
movq 0xa7f0(%rip), %rdi      # 0x13488
movl $0x10804c, %esi         # imm = 0x10804C
movq %r14, %rdx
callq 0x54e0
movl 0x28(%rsp), %eax
cmpq $0x6, %rax
je 0x8cd3
cmpl $0xc, %eax
je 0x8cbe
cmpl $0x17, %eax
je 0x8cbe
cmpl $0x14, %eax
jne 0x8cc9
movq %r14, %rdi
callq *(%r12,%rax,8)
movl 0x28(%rsp), %eax
cmpl $0x5, %eax
jne 0x8c91
jmp 0x8dc7
movl 0x150(%rbx), %eax
movl 0x68(%rsp), %edx
movl %r13d, %ebp
subl %r13d, %edx
subl %eax, %edx
subl %eax, %edx
leal 0x1(%rdx), %ecx
testl %edx, %edx
pushq $0x1
popq %rdi
cmovlel %edi, %ecx
movl 0x6c(%rsp), %edx
movq 0x20(%rsp), %rsi
leal (%rsi,%rax,2), %eax
subl %eax, %edx
leal 0x1(%rdx), %r8d
testl %edx, %edx
cmovlel %edi, %r8d
movq 0xa75f(%rip), %r13      # 0x13470
movl 0x5c(%r13), %eax
movq 0xa0(%r13,%rax,8), %rax
cmpq $0x0, 0x10(%rax)
je 0x8d2d
cmpl $0x0, 0x168(%rbx)
je 0x8d4c
movl 0x108(%rbx), %esi
movl 0x10c(%rbx), %edx
movq %rbx, %rdi
pushq $0x1
popq %r9
callq 0x7197
movq 0xa724(%rip), %r13      # 0x13470
movl 0x110(%rbx), %eax
movl 0x114(%rbx), %ecx
cltd
pushq $0x2
popq %rsi
idivl %esi
movl %eax, %edi
addl 0x108(%rbx), %edi
movl %ecx, %eax
cltd
idivl %esi
addl 0x10c(%rbx), %eax
movl %eax, %esi
callq 0x7544
cmpq %r13, %rax
movl %ebp, %r13d
je 0x8cc5
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa251
movq %r15, %rdi
callq 0x9a34
movq %rbx, %rdi
callq 0x97fb
cmpl $0x0, 0x174(%rbx)
jne 0x8cc5
movq 0xa6d2(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
jmp 0x8cc5
movq 0xa6ba(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rdx
movl 0x150(%rbx), %eax
decl %eax
movl 0x110(%rbx), %ecx
addl %eax, %ecx
addl 0x114(%rbx), %eax
andl $0x0, (%rsp)
movl %eax, 0x10(%rsp)
movl %ecx, 0x8(%rsp)
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x5510
movq 0xa67b(%rip), %rdi      # 0x13488
xorl %esi, %esi
callq 0x5180
pushq $0x10
popq %r14
leaq 0x28(%rsp), %r15
movq 0xa664(%rip), %rdi      # 0x13488
movq %r14, %rsi
movq %r15, %rdx
callq 0x5410
testl %eax, %eax
jne 0x8e1d
movl 0x110(%rbx), %eax
movl 0x114(%rbx), %ecx
cltd
pushq $0x2
popq %rsi
idivl %esi
movl %eax, %edi
addl 0x108(%rbx), %edi
movl %ecx, %eax
cltd
idivl %esi
addl 0x10c(%rbx), %eax
movl %eax, %esi
callq 0x7544
cmpq 0xa60a(%rip), %rax      # 0x13470
je 0x8bd4
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa251
movq %r14, %rdi
callq 0x9a34
movq %rbx, %rdi
callq 0x97fb
cmpl $0x0, 0x174(%rbx)
jne 0x8bd4
movq 0xa5ea(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
jmp 0x8bd4