// File: /workspace/github_c_makefile_star2_O1/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 0x77ff
cmpq $0x0, 0x80(%rbx)
je 0xa5f4
movl 0x5c(%rbx), %eax
movq 0xa0(%rbx,%rax,8), %rax
cmpq $0x0, 0x10(%rax)
je 0xa526
movl $0x1, 0x20(%rsp)
movq 0x98(%rbx), %rax
movq %rax, 0x18(%rsp)
movq 0x88(%rbx), %r15
testq %r15, %r15
je 0xa526
movq %rsp, %r14
cmpl $0x0, 0x168(%r15)
jne 0xa51a
cmpl $0x0, 0x180(%r15)
jne 0xa4dd
movq 0x1a0(%r15), %rax
movl 0x58(%rax), %ecx
movl 0x60(%rax,%rcx,4), %eax
testl %eax, 0x15c(%r15)
je 0xa51a
cmpl $0x0, 0x170(%r15)
jne 0xa51a
movq 0x8f9a(%rip), %rdi      # 0x13488
movq 0x1a8(%r15), %rsi
movl $0x60, %edx
movq %r14, %rcx
callq 0x50d0
movq 0x1a8(%r15), %rsi
movq %rsi, 0x18(%rsp)
movq 0x8f73(%rip), %rdi      # 0x13488
callq 0x53e0
movq 0x198(%r15), %r15
testq %r15, %r15
jne 0xa4b2
leaq 0x28(%rsp), %r14
movq 0x8f56(%rip), %rdi      # 0x13488
movl $0x10, %esi
movq %r14, %rdx
callq 0x5410
testl %eax, %eax
jne 0xa52b
leaq 0x28(%rsp), %r14
movq 0x8f39(%rip), %rdi      # 0x13488
movl $0x40, %esi
movq %r14, %rdx
callq 0x5410
testl %eax, %eax
jne 0xa548
movq 0x78(%rbx), %r14
testq %r14, %r14
je 0xa614
xorl %ebp, %ebp
movl $0x1, %r15d
cmpl $0x0, 0x180(%r14)
jne 0xa596
movq 0x1a0(%r14), %rax
movl 0x58(%rax), %ecx
movl 0x60(%rax,%rcx,4), %eax
testl %eax, 0x15c(%r14)
je 0xa5de
cmpl $0x0, 0x178(%r14)
je 0xa5b5
movq 0x8ee1(%rip), %rdi      # 0x13488
movq 0x1a8(%r14), %rsi
callq 0x5170
jmp 0xa5d2
cmpl $0x0, 0x174(%r14)
je 0xa5d2
movq 0x8ec2(%rip), %rdi      # 0x13488
movq 0x1a8(%r14), %rsi
callq 0x53e0
cmpl $0x0, 0x160(%r14)
cmovnel %r15d, %ebp
movq 0x190(%r14), %r14
testq %r14, %r14
jne 0xa575
xorl %esi, %esi
testl %ebp, %ebp
sete %sil
jmp 0xa619
cmpl $0x0, 0x6c(%rbx)
jne 0xa635
movq %rbx, %rdi
movl $0x1, %esi
addq $0xe8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x982c
movl $0x1, %esi
cmpl $0x0, 0x6c(%rbx)
jne 0xa627
movq %rbx, %rdi
callq 0x982c
movq 0x8e5a(%rip), %rdi      # 0x13488
xorl %esi, %esi
callq 0x54c0
addq $0xe8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq