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

   int x, y, ocx, ocy, nx, ny;
   Client *c;
   Monitor *m;
   XEvent ev;

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

   if(!c->isfloating)
   {
      ocx = x - c->fw / 2; /* center */
      ocy = y - c->fh / 2; /* center */
      resizeclient(c, ocx, ocy, c->fw, c->fh);
   }
   else
   {
      ocx = c->x;
      ocy = c->y;
      resizeclient(c, c->x, c->y, c->fw, c->fh );
   }
   c->isfloating = True;
   arrange(c->mon);
   focus(c);

   if(!c->isbelow) XRaiseWindow(dpy, c->win);
   do {
      XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev);
      switch (ev.type) {
         case ConfigureRequest:
         case Expose:
         case MapRequest:
            handler[ev.type](&ev);
            break;
         case MotionNotify:
            nx = ocx + (ev.xmotion.x - x);
            ny = ocy + (ev.xmotion.y - y);
            if(!selmon->lt[selmon->sellt]->arrange || c->isfloating)
               resize(c, nx, ny, c->w, c->h, 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);
   XUngrabPointer(dpy, CurrentTime);
   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 0x96c4(%rip), %rax      # 0x13470
movq 0x80(%rax), %rbx
testq %rbx, %rbx
je 0x9e04
cmpl $0x0, 0x17c(%rbx)
jne 0x9e04
cmpl $0x0, 0x160(%rbx)
jne 0x9e04
movq 0x96b7(%rip), %rdi      # 0x13488
movq 0x9878(%rip), %rsi      # 0x13650
movq 0x98c1(%rip), %rax      # 0x136a0
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 0x9e16
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x7507
testl %eax, %eax
je 0x9e04
cmpl $0x0, 0x168(%rbx)
movl 0x12c(%rbx), %r8d
je 0x9e58
movl 0x108(%rbx), %esi
movl 0x10c(%rbx), %edx
movl 0x128(%rbx), %ecx
movq %rbx, %rdi
movl %esi, 0x1c(%rsp)
movl %edx, 0x18(%rsp)
jmp 0x9e89
movl 0x128(%rbx), %ecx
pushq $-0x2
popq %rsi
movl %ecx, %eax
cltd
idivl %esi
movl %eax, %r9d
addl 0x24(%rsp), %r9d
movl %r8d, %eax
cltd
idivl %esi
addl 0x20(%rsp), %eax
movq %rbx, %rdi
movl %r9d, 0x1c(%rsp)
movl %r9d, %esi
movl %eax, 0x18(%rsp)
movl %eax, %edx
callq 0x740d
movl $0x1, 0x168(%rbx)
movq 0x1a0(%rbx), %rdi
callq 0x958e
movq %rbx, %rdi
callq 0x97fb
cmpl $0x0, 0x174(%rbx)
jne 0x9ec8
movq 0x95cc(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
leaq 0x28(%rsp), %r15
pushq $0x2
popq %r12
leaq 0x72e8(%rip), %rbp      # 0x111c0
movq 0x95a9(%rip), %rdi      # 0x13488
movl $0x10804c, %esi         # imm = 0x10804C
movq %r15, %rdx
callq 0x54e0
movl 0x28(%rsp), %eax
cmpq $0x6, %rax
je 0x9f1a
cmpl $0xc, %eax
je 0x9f05
cmpl $0x17, %eax
je 0x9f05
cmpl $0x14, %eax
jne 0x9f10
movq %r15, %rdi
callq *(%rbp,%rax,8)
movl 0x28(%rsp), %eax
cmpl $0x5, %eax
jne 0x9ed8
jmp 0x9fec
movl 0x68(%rsp), %esi
addl 0x1c(%rsp), %esi
subl 0x24(%rsp), %esi
movl 0x6c(%rsp), %edx
addl 0x18(%rsp), %edx
movq 0x953b(%rip), %r14      # 0x13470
movl 0x5c(%r14), %eax
movq 0xa0(%r14,%rax,8), %rax
subl 0x20(%rsp), %edx
cmpq $0x0, 0x10(%rax)
je 0x9f55
cmpl $0x0, 0x168(%rbx)
je 0x9f75
movl 0x110(%rbx), %ecx
movl 0x114(%rbx), %r8d
movq %rbx, %rdi
pushq $0x1
popq %r9
callq 0x7197
movq 0x94fb(%rip), %r14      # 0x13470
movl 0x110(%rbx), %eax
movl 0x114(%rbx), %ecx
cltd
idivl %r12d
movl %eax, %edi
addl 0x108(%rbx), %edi
movl %ecx, %eax
cltd
idivl %r12d
addl 0x10c(%rbx), %eax
movl %eax, %esi
callq 0x7544
cmpq %r14, %rax
je 0x9f0c
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa251
movq %r13, %rdi
callq 0x9a34
movq %rbx, %rdi
callq 0x97fb
cmpl $0x0, 0x174(%rbx)
jne 0x9f0c
movq 0x94ad(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
jmp 0x9f0c
movq 0x9495(%rip), %rdi      # 0x13488
xorl %esi, %esi
callq 0x5180
movl 0x110(%rbx), %eax
movl 0x114(%rbx), %ecx
cltd
idivl %r12d
movl %eax, %edi
addl 0x108(%rbx), %edi
movl %ecx, %eax
cltd
idivl %r12d
addl 0x10c(%rbx), %eax
movl %eax, %esi
callq 0x7544
cmpq 0x9444(%rip), %rax      # 0x13470
je 0x9e04
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 0x9e04
movq 0x9424(%rip), %rdi      # 0x13488
movq 0x1a8(%rbx), %rsi
callq 0x5170
jmp 0x9e04