// File: /workspace/github_c_makefile_star2_O3/Cloudef[P]dwm-fork/dwm.c
// Function: openmenupos
static menu_t*
openmenupos( const menuCtx *ctx, int x, int y ) {
   menu_t **m, *mm;

   m  = &menu;
   mm =  menu;
   for(; mm; mm = mm->next)
      m = &mm->next;

   *m = calloc(1, sizeof(menu_t));
   if(!*m)
      return NULL;

   (*m)->next = NULL;
   if(createmenu(*m, ctx, x, y) == -1)
   { free(*m); *m = NULL; }

   return *m;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
leaq 0x7b11(%rip), %rax      # 0x13480
movq %rax, %r12
movq (%rax), %rcx
leaq 0x20(%rcx), %rax
testq %rcx, %rcx
jne 0xb96f
movl $0x1, %edi
movl $0x40, %esi
callq 0x55a0
movq %rax, (%r12)
testq %rax, %rax
je 0xbc8d
movq %rax, %rbx
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, (%rsp)
movl 0x7e67(%rip), %eax      # 0x13818
movl %eax, 0x8(%rsp)
orl $0x2, %eax
movl %eax, 0xc(%rsp)
movq 0x7abd(%rip), %rax      # 0x13480
testq %rax, %rax
je 0xb9d8
cmpq %r14, 0x30(%rax)
je 0xbc7d
movq 0x20(%rax), %rax
jmp 0xb9c3
movl %r15d, 0x8(%rbx)
movl %ebp, 0xc(%rbx)
movq %r14, 0x30(%rbx)
movl $0xffffffff, 0x38(%rbx) # imm = 0xFFFFFFFF
movq (%r14), %r14
testq %r14, %r14
je 0xbc79
movq %r12, 0x10(%rsp)
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %ebp, %ebp
movl 0x10(%rbx), %r12d
movq %r14, %rdi
callq 0x52c0
movq %r14, %rdi
movl %eax, %esi
callq 0x8235
movl 0x7c18(%rip), %r9d      # 0x13638
addl %r9d, %eax
cmpl %eax, %r12d
jge 0xba4f
movq 0x30(%rbx), %rax
movq (%rax,%r13), %r14
movq %r14, %rdi
callq 0x52c0
movq %r14, %rdi
movl %eax, %esi
callq 0x8235
movl 0x7bef(%rip), %r9d      # 0x13638
addl %r9d, %eax
movl %eax, 0x10(%rbx)
movq 0x30(%rbx), %rax
movq (%r13,%rax), %rcx
cmpb $0x0, (%rcx)
movl $0x4, %ecx
cmovel %ecx, %r9d
movl $0x1, %ecx
cmovnel %ecx, %ebp
addl 0x14(%rbx), %r9d
movl %r9d, 0x14(%rbx)
movq 0x20(%r13,%rax), %r14
addq $0x20, %r13
decq %r15
testq %r14, %r14
jne 0xba03
testq %r15, %r15
movq 0x10(%rsp), %r12
je 0xbc79
testl %ebp, %ebp
je 0xbc79
leaq 0x18(%rsp), %rax
movl $0x1, 0x58(%rax)
movq $0x1, (%rax)
movq $0x8004, 0x48(%rax)     # imm = 0x8004
movq 0x79c7(%rip), %rdi      # 0x13488
movq 0x7b88(%rip), %rsi      # 0x13650
movl 0x8(%rbx), %edx
movl 0xc(%rbx), %ecx
movl 0x10(%rbx), %r8d
movq 0xe8(%rdi), %r10
movslq 0x7b88(%rip), %r11      # 0x13668
shlq $0x7, %r11
movl 0x38(%r10,%r11), %r14d
xorl %r15d, %r15d
pushq %rax
pushq $0xa01                  # imm = 0xA01
pushq 0x40(%r10,%r11)
pushq %r15
pushq %r14
pushq %r15
callq 0x5230
addq $0x30, %rsp
movq %rax, (%rbx)
movq 0x7978(%rip), %rdi      # 0x13488
movl $0x45, %edx
movq %rax, %rsi
callq 0x5490
movq 0x7964(%rip), %rdi      # 0x13488
movq (%rbx), %rsi
movq 0x7b52(%rip), %rdx      # 0x13680
callq 0x5590
movq 0x794e(%rip), %rdi      # 0x13488
movq (%rbx), %rsi
callq 0x5710
movq 0x793f(%rip), %rdi      # 0x13488
movq 0x7b00(%rip), %rsi      # 0x13650
movl 0x10(%rbx), %edx
movl 0x14(%rbx), %ecx
movq 0xe8(%rdi), %rax
movslq 0x7b04(%rip), %r8       # 0x13668
shlq $0x7, %r8
movl 0x38(%rax,%r8), %r8d
callq 0x5700
movq %rax, 0x18(%rbx)
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
movq %rbx, %rdi
callq 0xb5bf
movq 0x78e5(%rip), %rax      # 0x13470
testq %rax, %rax
je 0xbbcb
movq 0x80(%rax), %rdi
testq %rdi, %rdi
je 0xbbcb
xorl %esi, %esi
callq 0x9e2a
movq 0x78de(%rip), %rdi      # 0x13488
movq 0x7a9f(%rip), %rsi      # 0x13650
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x54a0
movq 0x78c4(%rip), %rdi      # 0x13488
xorl %esi, %esi
callq 0x54c0
callq 0x862f
movq 0x78b1(%rip), %rdi      # 0x13488
movq (%rbx), %rcx
xorl %r14d, %r14d
xorl %esi, %esi
movl $0x8000, %edx           # imm = 0x8000
callq 0x5220
movq 0x7898(%rip), %rdi      # 0x13488
movq %r14, %r13
shlq $0x5, %r13
leaq 0x7452(%rip), %rax      # 0x13050
movq 0x8(%r13,%rax), %rsi
callq 0x5620
testb %al, %al
je 0xbc54
leaq 0x743d(%rip), %rcx      # 0x13050
addq %rcx, %r13
movzbl %al, %ebp
xorl %r15d, %r15d
movq 0x7865(%rip), %rdi      # 0x13488
movl (%rsp,%r15,4), %edx
orl (%r13), %edx
movq (%rbx), %rcx
subq $0x8, %rsp
movl %ebp, %esi
movl $0x1, %r8d
movl $0x1, %r9d
pushq $0x1
callq 0x5660
addq $0x10, %rsp
incq %r15
cmpq $0x4, %r15
jne 0xbc1c
incq %r14
cmpq $0x6, %r14
jne 0xbbe9
movq 0x7824(%rip), %rdi      # 0x13488
movq (%rbx), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x54a0
movq (%r12), %rax
jmp 0xbc8f
movq (%r12), %rbx
movq %rbx, %rdi
callq 0x52a0
movq $0x0, (%r12)
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq