// File: /workspace/github_c_makefile_star2_O2/kaugm[P]mmwm/mmwm.c
// Function: setfullscreen
void setfullscreen(client *c, bool fullscrn)
{
    DEBUGP("xcb: set fullscreen: %d\n", fullscrn);

    if (fullscrn) {
        long data[] = { ewmh->_NET_WM_STATE_FULLSCREEN };
        c->isfullscreen = True;
        xcb_border_width(dis, c->win, 0);
        xcb_move_resize(dis, c->win, 0, 0, screen->width_in_pixels, screen->height_in_pixels, &c->position_info);
        xcb_change_property(dis, XCB_PROP_MODE_REPLACE,
                            c->win, ewmh->_NET_WM_STATE,
                            XCB_ATOM_ATOM, 32, True, data);
        create_display(c);
    }
    else {
        c->isfullscreen = False;
        xcb_border_width(dis, c->win, BORDER_WIDTH);
        xcb_remove_property(dis, c->win, ewmh->_NET_WM_STATE, ewmh->_NET_WM_STATE_FULLSCREEN);
        destroy_display(c);
    }
    update_current(c);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
testl %esi, %esi
je 0x3ac9
movq 0x6d90(%rip), %rax      # 0xa768
movl 0x128(%rax), %eax
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movb $0x1, 0x1b(%rbx)
movq 0x6d5f(%rip), %rdi      # 0xa750
movl 0x20(%rbx), %esi
xorl %edx, %edx
callq 0x3beb
movq 0x6d4e(%rip), %rdi      # 0xa750
movl 0x20(%rbx), %esi
movq 0x6d64(%rip), %rax      # 0xa770
movzwl 0x14(%rax), %r8d
movzwl 0x16(%rax), %r9d
leaq 0x30(%rbx), %rax
subq $0x8, %rsp
xorl %edx, %edx
xorl %ecx, %ecx
pushq %rax
callq 0x3bfd
popq %rax
popq %rcx
movq 0x6d1f(%rip), %rdi      # 0xa750
movl 0x20(%rbx), %edx
movq 0x6d2d(%rip), %rax      # 0xa768
movl 0x84(%rax), %ecx
pushq $0x4
popq %r8
pushq $0x20
popq %r9
xorl %esi, %esi
pushq %r14
pushq $0x1
callq 0x35c0
addq $0x10, %rsp
movq 0x10(%rbx), %rax
movq 0x10(%rax), %r15
movq 0x10(%r15), %rax
movq 0x10(%rax), %r12
pushq $0x1
popq %rdi
pushq $0x70
popq %rsi
callq 0x32f0
testq %rax, %rax
je 0x3bda
movq %rax, %r14
movq %rax, 0x28(%rax)
movq %rbx, %rdi
callq 0x4c14
movq 0x6cee(%rip), %r13      # 0xa780
addq $0x18, %r13
movq (%r13), %r13
testq %r13, %r13
je 0x3b0d
movq 0x6caa(%rip), %rdi      # 0xa750
movl 0x20(%r13), %esi
movq 0x6cd7(%rip), %rax      # 0xa788
movl 0x34(%rax), %edx
addl %edx, %edx
negl %edx
leaq 0x30(%r13), %r8
xorl %ecx, %ecx
callq 0x4c77
addq $0x8, %r13
jmp 0x3a96
movb $0x0, 0x1b(%rbx)
movq 0x6c7c(%rip), %rdi      # 0xa750
movl 0x20(%rbx), %esi
xorl %edx, %edx
callq 0x3beb
movq 0x6c6b(%rip), %rdi      # 0xa750
movl 0x20(%rbx), %esi
movq 0x6c79(%rip), %rax      # 0xa768
movl 0x84(%rax), %edx
movl 0x128(%rax), %ecx
callq 0x37b3
movq %rbx, %rdi
callq 0x3c39
jmp 0x3bc4
leaq 0x6c7c(%rip), %r13      # 0xa790
movq (%r13), %r13
testq %r13, %r13
je 0x3b47
movq 0x6c2c(%rip), %rdi      # 0xa750
movl 0x18(%r13), %esi
movq 0x6c59(%rip), %rax      # 0xa788
movl 0x34(%rax), %edx
addl %edx, %edx
negl %edx
leaq 0x20(%r13), %r8
xorl %ecx, %ecx
callq 0x4c77
addq $0x8, %r13
jmp 0x3b14
leaq 0x18(%r14), %rax
movq 0x18(%r14), %rcx
testq %rcx, %rcx
je 0x3b5e
andq $0x0, (%rbx)
movq %rcx, 0x8(%rbx)
jmp 0x3b65
movq %r14, %rcx
addq $0x20, %rcx
movq %rbx, (%rcx)
movq %rbx, (%rax)
movq %rax, 0x10(%rbx)
leaq 0x18(%r12), %rax
movq 0x18(%r12), %rcx
testq %rcx, %rcx
je 0x3b88
andq $0x0, (%r14)
movq %rcx, 0x8(%r14)
jmp 0x3b8f
addq $0x20, %r12
movq %r12, %rcx
movq %r14, (%rcx)
movq %r14, (%rax)
movq %rax, 0x10(%r14)
movl 0x6c09(%rip), %edi      # 0xa7a8
callq 0x4ca0
movl 0x68(%r15), %eax
movl %eax, 0x68(%r14)
movups 0x58(%r15), %xmm0
movups %xmm0, 0x58(%r14)
movq %r14, 0x6bc3(%rip)      # 0xa780
xorl %edi, %edi
callq 0x3cfa
movq %rbx, %rdi
callq 0x3cfa
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x34b4(%rip), %rsi      # 0x7095
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x33f0