// File: /workspace/github_c_makefile_star2_O1/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 0x7a6c(%rip), %rax      # 0x13480
movq %rax, %r12
movq (%rax), %rcx
leaq 0x20(%rcx), %rax
testq %rcx, %rcx
jne 0xba14
movl $0x1, %edi
movl $0x40, %esi
callq 0x55b0
movq %rax, (%r12)
testq %rax, %rax
je 0xbd3b
movq $0x0, 0x20(%rax)
movq (%r12), %rbx
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, (%rsp)
movl 0x7db9(%rip), %eax      # 0x13818
movl %eax, 0x8(%rsp)
orl $0x2, %eax
movl %eax, 0xc(%rsp)
movq 0x7a0f(%rip), %rax      # 0x13480
testq %rax, %rax
je 0xba86
cmpq %r14, 0x30(%rax)
je 0xbd24
movq 0x20(%rax), %rax
jmp 0xba71
movl %r15d, 0x8(%rbx)
movl %ebp, 0xc(%rbx)
xorl %r15d, %r15d
movq %r15, 0x10(%rbx)
movq %r14, 0x30(%rbx)
movl $0xffffffff, 0x38(%rbx) # imm = 0xFFFFFFFF
movq %r15, 0x28(%rbx)
movq (%r14), %r14
testq %r14, %r14
je 0xbd24
movq %r12, 0x10(%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
movl 0x10(%rbx), %r12d
movq %r14, %rdi
callq 0x52c0
movq %r14, %rdi
movl %eax, %esi
callq 0x8277
addl 0x7b63(%rip), %eax      # 0x13638
cmpl %eax, %r12d
jge 0xbafd
movq 0x30(%rbx), %rax
movq (%rax,%rbp), %r14
movq %r14, %rdi
callq 0x52c0
movq %r14, %rdi
movl %eax, %esi
callq 0x8277
addl 0x7b3e(%rip), %eax      # 0x13638
movl %eax, 0x10(%rbx)
movq 0x30(%rbx), %rax
movq (%rax,%rbp), %rcx
cmpb $0x0, (%rcx)
movl 0x7b2a(%rip), %ecx      # 0x13638
movl $0x4, %edx
cmovel %edx, %ecx
movl $0x1, %edx
cmovnel %edx, %r15d
addl %ecx, 0x14(%rbx)
movq 0x20(%rax,%rbp), %r14
addq $0x20, %rbp
decq %r13
testq %r14, %r14
jne 0xbab9
testq %r13, %r13
movq 0x10(%rsp), %r12
je 0xbd24
testl %r15d, %r15d
je 0xbd24
leaq 0x18(%rsp), %rax
movl $0x1, 0x58(%rax)
movq $0x1, (%rax)
movq $0x8004, 0x48(%rax)     # imm = 0x8004
movq 0x791c(%rip), %rdi      # 0x13488
movq 0x7add(%rip), %rsi      # 0x13650
movl 0x8(%rbx), %edx
movl 0xc(%rbx), %ecx
movl 0x10(%rbx), %r8d
movl 0x14(%rbx), %r9d
movq 0xe8(%rdi), %r10
movslq 0x7ad9(%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 0x78c9(%rip), %rdi      # 0x13488
movl $0x45, %edx
movq %rax, %rsi
callq 0x5490
movq 0x78b5(%rip), %rdi      # 0x13488
movq (%rbx), %rsi
movq 0x7aa3(%rip), %rdx      # 0x13680
callq 0x55a0
movq 0x789f(%rip), %rdi      # 0x13488
movq (%rbx), %rsi
callq 0x5720
movq 0x7890(%rip), %rdi      # 0x13488
movq 0x7a51(%rip), %rsi      # 0x13650
movl 0x10(%rbx), %edx
movl 0x14(%rbx), %ecx
movq 0xe8(%rdi), %rax
movslq 0x7a55(%rip), %r8       # 0x13668
shlq $0x7, %r8
movl 0x38(%rax,%r8), %r8d
callq 0x5710
movq %rax, 0x18(%rbx)
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
movq %rbx, %rdi
callq 0xb633
movq 0x7836(%rip), %rax      # 0x13470
testq %rax, %rax
je 0xbc7a
movq 0x80(%rax), %rdi
testq %rdi, %rdi
je 0xbc7a
xorl %esi, %esi
callq 0x9e79
movq 0x782f(%rip), %rdi      # 0x13488
movq 0x79f0(%rip), %rsi      # 0x13650
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x54a0
movq 0x7815(%rip), %rdi      # 0x13488
xorl %esi, %esi
callq 0x54c0
callq 0x8681
movq 0x7802(%rip), %rdi      # 0x13488
movq (%rbx), %rcx
xorl %r14d, %r14d
xorl %esi, %esi
movl $0x8000, %edx           # imm = 0x8000
callq 0x5220
movq 0x77e9(%rip), %rdi      # 0x13488
movq %r14, %r13
shlq $0x5, %r13
leaq 0x73a3(%rip), %rax      # 0x13050
movq 0x8(%r13,%rax), %rsi
callq 0x5630
testb %al, %al
je 0xbd03
leaq 0x738e(%rip), %rcx      # 0x13050
addq %rcx, %r13
movzbl %al, %ebp
xorl %r15d, %r15d
movq 0x77b6(%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 0x5670
addq $0x10, %rsp
incq %r15
cmpq $0x4, %r15
jne 0xbccb
incq %r14
cmpq $0x6, %r14
jne 0xbc98
movq 0x7775(%rip), %rdi      # 0x13488
movq (%rbx), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x54a0
jmp 0xbd35
movq (%r12), %rdi
callq 0x52a0
movq $0x0, (%r12)
movq (%r12), %rax
jmp 0xbd3d
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq