// File: /workspace/github_c_makefile_star2_O2/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 $0x98, %rsp
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
leaq 0x80ed(%rip), %rax      # 0x13480
movq %rax, %r12
movq (%rax), %rcx
leaq 0x20(%rcx), %rax
testq %rcx, %rcx
jne 0xb393
pushq $0x1
popq %rdi
pushq $0x40
popq %rsi
callq 0x55a0
movq %rax, (%r12)
testq %rax, %rax
je 0xb67b
movq %rax, %rbx
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, 0x10(%rsp)
movl 0x8446(%rip), %eax      # 0x13818
movl %eax, 0x18(%rsp)
orl $0x2, %eax
movl %eax, 0x1c(%rsp)
movq %r14, %rdi
callq 0x58cb
testq %rax, %rax
jne 0xb66e
movl %r15d, 0x8(%rbx)
movl %ebp, 0xc(%rbx)
movq %r14, 0x30(%rbx)
orl $-0x1, 0x38(%rbx)
xorl %r15d, %r15d
xorl %eax, %eax
xorl %r9d, %r9d
xorl %ebp, %ebp
movq (%r14,%r15), %r14
testq %r14, %r14
je 0xb496
movq %rax, 0x8(%rsp)
movl 0x10(%rbx), %r13d
movq %r14, %rdi
callq 0x52c0
movq %r14, %rdi
movl %eax, %esi
callq 0x8039
movl 0x8202(%rip), %r9d      # 0x13638
addl %r9d, %eax
cmpl %eax, %r13d
jge 0xb465
movq 0x30(%rbx), %rax
movq (%rax,%r15), %r14
movq %r14, %rdi
callq 0x52c0
movq %r14, %rdi
movl %eax, %esi
callq 0x8039
movl 0x81d9(%rip), %r9d      # 0x13638
addl %r9d, %eax
movl %eax, 0x10(%rbx)
movq 0x30(%rbx), %r14
movq (%r14,%r15), %rax
cmpb $0x0, (%rax)
pushq $0x4
popq %rax
cmovel %eax, %r9d
pushq $0x1
popq %rax
cmovnel %eax, %ebp
addl 0x14(%rbx), %r9d
movl %r9d, 0x14(%rbx)
movq 0x8(%rsp), %rax
decq %rax
addq $0x20, %r15
jmp 0xb407
testq %rax, %rax
je 0xb66a
testl %ebp, %ebp
je 0xb66a
leaq 0x28(%rsp), %rax
movl $0x1, 0x58(%rax)
movq $0x1, (%rax)
movq $0x8004, 0x48(%rax)     # imm = 0x8004
movq 0x7fbf(%rip), %rdi      # 0x13488
movq 0x8180(%rip), %rsi      # 0x13650
movl 0x8(%rbx), %edx
movl 0xc(%rbx), %ecx
movl 0x10(%rbx), %r8d
movq 0xe8(%rdi), %r10
movslq 0x8180(%rip), %r11      # 0x13668
shlq $0x7, %r11
movl 0x38(%r10,%r11), %r14d
pushq %rax
pushq $0xa01                  # imm = 0xA01
pushq 0x40(%r10,%r11)
pushq $0x0
pushq %r14
pushq $0x0
callq 0x5230
addq $0x30, %rsp
movq %rax, (%rbx)
movq 0x7f73(%rip), %rdi      # 0x13488
pushq $0x45
popq %rdx
movq %rax, %rsi
callq 0x5490
movq 0x7f61(%rip), %rdi      # 0x13488
movq (%rbx), %rsi
movq 0x814f(%rip), %rdx      # 0x13680
callq 0x5590
movq 0x7f4b(%rip), %rdi      # 0x13488
movq (%rbx), %rsi
callq 0x5710
movq 0x7f3c(%rip), %rdi      # 0x13488
movq 0x80fd(%rip), %rsi      # 0x13650
movl 0x10(%rbx), %edx
movl 0x14(%rbx), %ecx
movq 0xe8(%rdi), %rax
movslq 0x8101(%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 0xb01a
movq 0x7ee2(%rip), %rax      # 0x13470
testq %rax, %rax
je 0xb5cc
movq 0x80(%rax), %rdi
testq %rdi, %rdi
je 0xb5cc
xorl %esi, %esi
callq 0x9ae1
movq 0x7edb(%rip), %rdi      # 0x13488
movq 0x809c(%rip), %rsi      # 0x13650
pushq $0x1
popq %rdx
xorl %ecx, %ecx
callq 0x54a0
movq 0x7ec3(%rip), %rdi      # 0x13488
xorl %esi, %esi
callq 0x54c0
callq 0x83db
movq 0x7eb0(%rip), %rdi      # 0x13488
movq (%rbx), %rcx
xorl %r15d, %r15d
xorl %esi, %esi
movl $0x8000, %edx           # imm = 0x8000
callq 0x5220
pushq $0x1
popq %rbp
movq 0x7e94(%rip), %rdi      # 0x13488
cmpq $0x6, %r15
je 0xb68f
movq %r15, 0x8(%rsp)
shlq $0x5, %r15
leaq 0x7a42(%rip), %rax      # 0x13050
movq 0x8(%r15,%rax), %rsi
callq 0x5620
testb %al, %al
je 0xb660
leaq 0x7a2d(%rip), %rcx      # 0x13050
addq %rcx, %r15
movzbl %al, %r14d
xorl %r13d, %r13d
cmpq $0x4, %r13
je 0xb660
movq 0x7e4e(%rip), %rdi      # 0x13488
movl 0x10(%rsp,%r13,4), %edx
orl (%r15), %edx
movq (%rbx), %rcx
subq $0x8, %rsp
movl %r14d, %esi
movl %ebp, %r8d
movl %ebp, %r9d
pushq $0x1
callq 0x5660
popq %rcx
popq %rdx
incq %r13
jmp 0xb62d
movq 0x8(%rsp), %r15
incq %r15
jmp 0xb5ed
movq (%r12), %rbx
movq %rbx, %rdi
callq 0x52a0
andq $0x0, (%r12)
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rsi
pushq $0x1
popq %rdx
xorl %ecx, %ecx
callq 0x54a0
movq (%r12), %rax
jmp 0xb67d