// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movl $0x0, -0xfc(%rbp)
movq -0x8(%rbp), %rdi
callq 0x8b10
movq -0x8(%rbp), %rax
cmpq $0x0, 0x80(%rax)
jne 0xd1fd
movq -0x8(%rbp), %rax
cmpl $0x0, 0x6c(%rax)
jne 0xd1f8
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0xbe10
jmp 0xd457
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rcx
movl 0x5c(%rcx), %ecx
movq 0xa0(%rax,%rcx,8), %rax
cmpq $0x0, 0x10(%rax)
je 0xd30c
movl $0x1, -0xd8(%rbp)
movq -0x8(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0xe0(%rbp)
movq -0x8(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xd30a
movq -0x10(%rbp), %rax
cmpl $0x0, 0x168(%rax)
jne 0xd2f4
movq -0x10(%rbp), %rax
cmpl $0x0, 0x180(%rax)
jne 0xd29b
movq -0x10(%rbp), %rax
movl 0x15c(%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x1a0(%rcx), %rcx
movq -0x10(%rbp), %rdx
movq 0x1a0(%rdx), %rdx
movl 0x58(%rdx), %edx
andl 0x60(%rcx,%rdx,4), %eax
cmpl $0x0, %eax
je 0xd2f4
movq -0x10(%rbp), %rax
cmpl $0x0, 0x170(%rax)
jne 0xd2f4
movq 0xb369(%rip), %rdi      # 0x18618
movq -0x10(%rbp), %rax
movq 0x1a8(%rax), %rsi
movl $0x60, %edx
leaq -0xf8(%rbp), %rcx
callq 0x50e0
movq -0x10(%rbp), %rax
movq 0x1a8(%rax), %rax
movq %rax, -0xe0(%rbp)
movq 0xb334(%rip), %rdi      # 0x18618
movq -0x10(%rbp), %rax
movq 0x1a8(%rax), %rsi
callq 0x53f0
jmp 0xd2f6
movq -0x10(%rbp), %rax
movq 0x198(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0xd246
jmp 0xd30c
jmp 0xd30e
movq 0xb303(%rip), %rdi      # 0x18618
movl $0x10, %esi
leaq -0xd0(%rbp), %rdx
callq 0x5420
cmpl $0x0, %eax
je 0xd32d
jmp 0xd30e
jmp 0xd32f
movq 0xb2e2(%rip), %rdi      # 0x18618
movl $0x40, %esi
leaq -0xd0(%rbp), %rdx
callq 0x5420
cmpl $0x0, %eax
je 0xd34e
jmp 0xd32f
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xd419
movq -0x10(%rbp), %rax
cmpl $0x0, 0x180(%rax)
jne 0xd39e
movq -0x10(%rbp), %rax
movl 0x15c(%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x1a0(%rcx), %rcx
movq -0x10(%rbp), %rdx
movq 0x1a0(%rdx), %rdx
movl 0x58(%rdx), %edx
andl 0x60(%rcx,%rdx,4), %eax
cmpl $0x0, %eax
je 0xd403
movq -0x10(%rbp), %rax
cmpl $0x0, 0x178(%rax)
je 0xd3c4
movq 0xb266(%rip), %rdi      # 0x18618
movq -0x10(%rbp), %rax
movq 0x1a8(%rax), %rsi
callq 0x5180
jmp 0xd3ea
movq -0x10(%rbp), %rax
cmpl $0x0, 0x174(%rax)
je 0xd3e8
movq 0xb240(%rip), %rdi      # 0x18618
movq -0x10(%rbp), %rax
movq 0x1a8(%rax), %rsi
callq 0x53f0
jmp 0xd3ea
movq -0x10(%rbp), %rax
cmpl $0x0, 0x160(%rax)
je 0xd401
movl $0x1, -0xfc(%rbp)
jmp 0xd403
jmp 0xd405
movq -0x10(%rbp), %rax
movq 0x190(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0xd35a
movq -0x8(%rbp), %rax
cmpl $0x0, 0x6c(%rax)
jne 0xd449
cmpl $0x0, -0xfc(%rbp)
je 0xd439
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0xbe10
jmp 0xd447
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0xbe10
jmp 0xd449
movq 0xb1c8(%rip), %rdi      # 0x18618
xorl %esi, %esi
callq 0x54d0
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq