// File: /workspace/github_c_makefile_star2_O0/Cloudef[P]dwm-fork/dwm.c
// Function: togglefullscreen
void
togglefullscreen( const Arg *arg ) {
   Client *c;

   if(!selmon) return;
   c = selmon->sel;
   if(!c) return;

   if(!c->isfullscreen)
   {
      XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32,
            PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
      c->isfullscreen = True;
      c->oldstate = c->isfloating;
      c->oldbw = c->bw;
      c->bw = 0;
      c->isfloating = 1;
      resizeclient(c, c->mon->ox, c->mon->oy, c->mon->ow, c->mon->oh);
      if(!c->isbelow) XRaiseWindow(dpy, c->win);
   }
   else {
      XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32,
            PropModeReplace, (unsigned char*)0, 0);
      c->isfullscreen = False;
      c->isfloating = c->oldstate;
      c->bw = c->oldbw;
      c->x = c->oldx;
      c->y = c->oldy;
      c->w = c->oldw;
      c->h = c->oldh;
      resizeclient(c, c->x, c->y, c->w, c->h);
   }
   arrange(c->mon);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, 0xcbdc(%rip)      # 0x18600
jne 0xba2b
jmp 0xbc60
movq 0xcbce(%rip), %rax      # 0x18600
movq 0x80(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0xba49
jmp 0xbc60
movq -0x10(%rbp), %rax
cmpl $0x0, 0x160(%rax)
jne 0xbb5a
movq 0xcbb7(%rip), %rdi      # 0x18618
movq -0x10(%rbp), %rax
movq 0x1a8(%rax), %rsi
movq 0xcbed(%rip), %rdx      # 0x18660
movl $0x4, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
leaq 0xcbc8(%rip), %rax      # 0x18650
addq $0x18, %rax
movq %rax, (%rsp)
movl $0x1, 0x8(%rsp)
callq 0x5670
movq -0x10(%rbp), %rax
movl $0x1, 0x160(%rax)
movq -0x10(%rbp), %rax
movl 0x168(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x188(%rax)
movq -0x10(%rbp), %rax
movl 0x150(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x154(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x150(%rax)
movq -0x10(%rbp), %rax
movl $0x1, 0x168(%rax)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x1a0(%rax), %rax
movl 0x48(%rax), %esi
movq -0x10(%rbp), %rax
movq 0x1a0(%rax), %rax
movl 0x4c(%rax), %edx
movq -0x10(%rbp), %rax
movq 0x1a0(%rax), %rax
movl 0x50(%rax), %ecx
movq -0x10(%rbp), %rax
movq 0x1a0(%rax), %rax
movl 0x54(%rax), %r8d
callq 0x8660
movq -0x10(%rbp), %rax
cmpl $0x0, 0x174(%rax)
jne 0xbb55
movq 0xcad3(%rip), %rdi      # 0x18618
movq -0x10(%rbp), %rax
movq 0x1a8(%rax), %rsi
callq 0x5180
jmp 0xbc50
movq 0xcab7(%rip), %rdi      # 0x18618
movq -0x10(%rbp), %rax
movq 0x1a8(%rax), %rsi
movq 0xcaed(%rip), %rdx      # 0x18660
movl $0x4, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
movq $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x5670
movq -0x10(%rbp), %rax
movl $0x0, 0x160(%rax)
movq -0x10(%rbp), %rax
movl 0x188(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x168(%rax)
movq -0x10(%rbp), %rax
movl 0x154(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x150(%rax)
movq -0x10(%rbp), %rax
movl 0x118(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x108(%rax)
movq -0x10(%rbp), %rax
movl 0x11c(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x10c(%rax)
movq -0x10(%rbp), %rax
movl 0x120(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x110(%rax)
movq -0x10(%rbp), %rax
movl 0x124(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x114(%rax)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x108(%rax), %esi
movq -0x10(%rbp), %rax
movl 0x10c(%rax), %edx
movq -0x10(%rbp), %rax
movl 0x110(%rax), %ecx
movq -0x10(%rbp), %rax
movl 0x114(%rax), %r8d
callq 0x8660
movq -0x10(%rbp), %rax
movq 0x1a0(%rax), %rdi
callq 0xbf30
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)