// File: /workspace/github_c_makefile_star2_O3/Cloudef[P]dwm-fork/dwm.c
// Function: restack
void
restack(Monitor *m) {
   Client *c;
   XEvent ev;
   XWindowChanges wc;
   Bool hasfullscreen = False;

   drawbar(m);
   if(!m->sel)
   { if(!m->showbartoggle) togglebarm(m, 1); return; } /* nothing */
   //if(m->sel->isfloating || !m->lt[m->sellt]->arrange)
   //   if(!m->sel->isbelow) XRaiseWindow(dpy, m->sel->win);
   if(m->lt[m->sellt]->arrange) {
      wc.stack_mode = Below;
      wc.sibling = m->barwin;
      for(c = m->stack; c; c = c->snext)
         if(!c->isfloating && ISVISIBLE(c) && !c->iswidget) {
            XConfigureWindow(dpy, c->win, CWSibling|CWStackMode, &wc);
            wc.sibling = c->win;
            XLowerWindow(dpy, c->win);
         }
   }
   while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
   while(XCheckMaskEvent(dpy, PointerMotionMask, &ev));

   /* always above && below */
   for(c = m->clients; c; c = c->next)
   {
      if(ISVISIBLE(c))
      {
         if(c->isabove)      XRaiseWindow(dpy,c->win);
         else if(c->isbelow) XLowerWindow(dpy, c->win);
         if(c->isfullscreen) hasfullscreen = True;
      }
   }
   if(!m->showbartoggle)
   { if(hasfullscreen) togglebarm(m, 0); else togglebarm(m, 1); } /* check if there was fullscreen window && show/hide bar */

   XSync(dpy, False);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %rbx
callq 0x77d8
cmpq $0x0, 0x80(%rbx)
je 0xa595
movl 0x5c(%rbx), %eax
movq 0xa0(%rbx,%rax,8), %rax
cmpq $0x0, 0x10(%rax)
je 0xa4c3
movl $0x1, 0x20(%rsp)
movq 0x98(%rbx), %rax
movq %rax, 0x18(%rsp)
movq 0x88(%rbx), %r15
testq %r15, %r15
je 0xa4c3
movq %rsp, %r14
cmpl $0x0, 0x168(%r15)
jne 0xa4b7
cmpl $0x0, 0x180(%r15)
jne 0xa47a
movq 0x1a0(%r15), %rax
movl 0x58(%rax), %ecx
movl 0x60(%rax,%rcx,4), %eax
testl %eax, 0x15c(%r15)
je 0xa4b7
cmpl $0x0, 0x170(%r15)
jne 0xa4b7
movq 0x8ffd(%rip), %rdi      # 0x13488
movq 0x1a8(%r15), %rsi
movl $0x60, %edx
movq %r14, %rcx
callq 0x50d0
movq 0x1a8(%r15), %rsi
movq %rsi, 0x18(%rsp)
movq 0x8fd6(%rip), %rdi      # 0x13488
callq 0x53e0
movq 0x198(%r15), %r15
testq %r15, %r15
jne 0xa44f
leaq 0x28(%rsp), %r14
movq 0x8fb9(%rip), %rdi      # 0x13488
movl $0x10, %esi
movq %r14, %rdx
callq 0x5410
testl %eax, %eax
jne 0xa4c8
leaq 0x28(%rsp), %r14
movq 0x8f9c(%rip), %rdi      # 0x13488
movl $0x40, %esi
movq %r14, %rdx
callq 0x5410
testl %eax, %eax
jne 0xa4e5
movq 0x78(%rbx), %r14
testq %r14, %r14
je 0xa5b5
xorl %ebp, %ebp
movl $0x1, %r15d
cmpl $0x0, 0x180(%r14)
jne 0xa533
movq 0x1a0(%r14), %rax
movl 0x58(%rax), %ecx
movl 0x60(%rax,%rcx,4), %eax
testl %eax, 0x15c(%r14)
je 0xa57b
cmpl $0x0, 0x178(%r14)
je 0xa552
movq 0x8f44(%rip), %rdi      # 0x13488
movq 0x1a8(%r14), %rsi
callq 0x5170
jmp 0xa56f
cmpl $0x0, 0x174(%r14)
je 0xa56f
movq 0x8f25(%rip), %rdi      # 0x13488
movq 0x1a8(%r14), %rsi
callq 0x53e0
cmpl $0x0, 0x160(%r14)
cmovnel %r15d, %ebp
movq 0x190(%r14), %r14
testq %r14, %r14
jne 0xa512
cmpl $0x0, 0x6c(%rbx)
jne 0xa5c8
xorl %esi, %esi
testl %ebp, %ebp
jne 0xa5c0
jmp 0xa5bb
cmpl $0x0, 0x6c(%rbx)
jne 0xa5d6
movq %rbx, %rdi
movl $0x1, %esi
addq $0xe8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x97e0
cmpl $0x0, 0x6c(%rbx)
jne 0xa5c8
movl $0x1, %esi
movq %rbx, %rdi
callq 0x97e0
movq 0x8eb9(%rip), %rdi      # 0x13488
xorl %esi, %esi
callq 0x54c0
addq $0xe8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq