// File: /workspace/github_c_makefile_star2_O0/Cloudef[P]dwm-fork/dwm.c
// Function: bstack
void
bstack(Monitor *m) {
   int x, y, h, w, mh;
   unsigned int i, n;
   Client *c;

   for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
   if(n == 0)
      return;
   /* master */
   c = nexttiled(m->clients);
   mh = m->mfact * m->wh;
   resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
   if(--n == 0)
      return;
   /* tile stack */
   x = m->wx;
   y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
   w = m->ww / n;
   h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
   if(w < m->bh)
      w = m->ww;
   for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
      resize(c, x, y, /* remainder */ ((i + 1 == n)
               ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False);
      if(w != m->ww)
         x = c->x + WIDTH(c);
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rdi
callq 0x7fc0
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x7bec
jmp 0x7bcd
movq -0x30(%rbp), %rax
movq 0x190(%rax), %rdi
callq 0x7fc0
movq %rax, -0x30(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x7bc4
cmpl $0x0, -0x24(%rbp)
jne 0x7bf7
jmp 0x7e7e
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rdi
callq 0x7fc0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movss 0x10(%rax), %xmm0
movq -0x8(%rbp), %rax
cvtsi2ssl 0x44(%rax), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0x1c(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x8(%rbp), %rax
movl 0x3c(%rax), %eax
movl %eax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movl 0x40(%rax), %eax
movq -0x30(%rbp), %rcx
movl 0x150(%rcx), %ecx
shll %ecx
subl %ecx, %eax
movl %eax, -0x34(%rbp)
cmpl $0x1, -0x24(%rbp)
jne 0x7c6b
movq -0x8(%rbp), %rax
movl 0x44(%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0x7c71
movl -0x1c(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x34(%rbp), %ecx
movl -0x38(%rbp), %edx
movl -0x3c(%rbp), %esi
movq -0x48(%rbp), %rdi
movl -0x4c(%rbp), %r8d
movq -0x30(%rbp), %rax
movl 0x150(%rax), %eax
shll %eax
subl %eax, %r8d
xorl %r9d, %r9d
callq 0x8060
movl -0x24(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
jne 0x7cac
jmp 0x7e7e
movq -0x8(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl 0x3c(%rax), %eax
addl -0x1c(%rbp), %eax
movq -0x30(%rbp), %rcx
movl 0x10c(%rcx), %ecx
movq -0x30(%rbp), %rdx
addl 0x114(%rdx), %ecx
cmpl %ecx, %eax
jle 0x7cff
movq -0x30(%rbp), %rax
movl 0x10c(%rax), %eax
movq -0x30(%rbp), %rcx
addl 0x114(%rcx), %eax
movq -0x30(%rbp), %rcx
movl 0x150(%rcx), %ecx
shll %ecx
addl %ecx, %eax
movl %eax, -0x50(%rbp)
jmp 0x7d0c
movq -0x8(%rbp), %rax
movl 0x3c(%rax), %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x40(%rax), %eax
xorl %edx, %edx
divl -0x24(%rbp)
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x3c(%rax), %eax
addl -0x1c(%rbp), %eax
movq -0x30(%rbp), %rcx
movl 0x10c(%rcx), %ecx
movq -0x30(%rbp), %rdx
addl 0x114(%rdx), %ecx
cmpl %ecx, %eax
jle 0x7d59
movq -0x8(%rbp), %rax
movl 0x3c(%rax), %eax
movq -0x8(%rbp), %rcx
addl 0x44(%rcx), %eax
subl -0x10(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x7d66
movq -0x8(%rbp), %rax
movl 0x44(%rax), %eax
subl -0x1c(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x24(%rcx), %eax
jge 0x7d82
movq -0x8(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x18(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x30(%rbp), %rax
movq 0x190(%rax), %rdi
callq 0x7fc0
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x7e7e
movq -0x30(%rbp), %rax
movq %rax, -0x68(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x5c(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x58(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
cmpl -0x24(%rbp), %eax
jne 0x7deb
movq -0x8(%rbp), %rax
movl 0x38(%rax), %eax
movq -0x8(%rbp), %rcx
addl 0x40(%rcx), %eax
subl -0xc(%rbp), %eax
movq -0x30(%rbp), %rcx
movl 0x150(%rcx), %ecx
shll %ecx
subl %ecx, %eax
movl %eax, -0x6c(%rbp)
jmp 0x7dff
movl -0x18(%rbp), %eax
movq -0x30(%rbp), %rcx
movl 0x150(%rcx), %ecx
shll %ecx
subl %ecx, %eax
movl %eax, -0x6c(%rbp)
movl -0x58(%rbp), %edx
movl -0x5c(%rbp), %esi
movq -0x68(%rbp), %rdi
movl -0x6c(%rbp), %ecx
movl -0x14(%rbp), %r8d
movq -0x30(%rbp), %rax
movl 0x150(%rax), %eax
shll %eax
subl %eax, %r8d
xorl %r9d, %r9d
callq 0x8060
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x40(%rcx), %eax
je 0x7e5a
movq -0x30(%rbp), %rax
movl 0x108(%rax), %eax
movq -0x30(%rbp), %rcx
movl 0x110(%rcx), %ecx
movq -0x30(%rbp), %rdx
movl 0x150(%rdx), %edx
shll %edx
addl %edx, %ecx
addl %ecx, %eax
movl %eax, -0xc(%rbp)
jmp 0x7e5c
movq -0x30(%rbp), %rax
movq 0x190(%rax), %rdi
callq 0x7fc0
movq %rax, -0x30(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x7d9d
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)