// File: /workspace/github_cpp_makefile_star2_O2/stetre[P]moonvulkan/src/cmd.c
// Function: CmdWaitEvents
static int CmdWaitEvents(lua_State *L)
    {
    if(lua_type(L, 2) == LUA_TTABLE)
        return CmdWaitEvents2(L);
    return CmdWaitEvents1(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
pushq $0x2
popq %rsi
callq 0x1a110
cmpl $0x5, %eax
jne 0x1ce16
leaq 0x60b6e(%rip), %rcx     # 0x7d909
pushq $0x1
popq %rsi
leaq 0x28(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x1a500
movq %rax, %r12
movq (%r14), %rax
movq 0x50(%rax), %rax
cmpq $0x0, 0x680(%rax)
je 0x1cee6
leaq 0x60bde(%rip), %r9      # 0x7d9ab
pushq $0x2
popq %rsi
leaq 0x1c(%rsp), %rdx
leaq 0xc(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x19130
movq %rax, %r14
movl (%r15), %edi
testl %edi, %edi
je 0x1d061
testq %r14, %r14
je 0x1ce0a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x182e0
movl 0xc(%rsp), %edi
callq 0x19950
pushq $0x2
jmp 0x1ced8
andl $0x0, 0x10(%rsp)
andl $0x0, 0x14(%rsp)
andl $0x0, 0x18(%rsp)
leaq 0x60add(%rip), %rcx     # 0x7d909
pushq $0x1
popq %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x1a500
movq %rax, %rbp
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x18f50
movq %rax, %r15
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x18f50
movq %rax, %r12
leaq 0x60b49(%rip), %r9      # 0x7d9ab
xorl %r13d, %r13d
pushq $0x4
popq %rsi
leaq 0x1c(%rsp), %rdx
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x19130
cmpl %r13d, (%r14)
je 0x1cf0a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x182e0
pushq $0x18
popq %rdx
pushq $0x1
popq %rbp
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movl %ebp, %r8d
callq 0x197e0
pushq $0x38
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movl %ebp, %r8d
callq 0x197e0
pushq $0x48
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movl %ebp, %r8d
callq 0x197e0
movl 0xc(%rsp), %edi
callq 0x19950
pushq $0x4
popq %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x18420
jmp 0x1cef7
leaq 0x60acf(%rip), %rsi     # 0x7d9bc
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19bc0
movl %eax, %ebp
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x20(%rsp)
movq %rbp, 0x40(%rsp)
pushq $0x5
popq %rsi
leaq 0x10(%rsp), %rdx
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rcx
callq 0x1a370
movq %rax, %r13
cmpl $0x0, (%r14)
js 0x1d0b5
movq %r13, 0x38(%rsp)
je 0x1cf4b
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x18150
pushq $0x6
popq %rsi
leaq 0x14(%rsp), %rdx
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rcx
callq 0x18e20
movq %rax, %r13
cmpl $0x0, (%r14)
js 0x1d112
movq %r15, %rbp
movq %r13, 0x30(%rsp)
je 0x1cf85
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x18150
pushq $0x7
popq %rsi
leaq 0x18(%rsp), %rdx
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rcx
callq 0x19230
cmpl $0x0, (%r14)
movq 0x38(%rsp), %r13
js 0x1d1be
movq %r12, %r15
movq %rax, %r14
je 0x1cfbf
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x18150
movq 0x28(%rsp), %rax
movq 0x50(%rax), %rax
movl 0x1c(%rsp), %esi
movl 0x10(%rsp), %r9d
movl 0x14(%rsp), %r10d
movl 0x18(%rsp), %r11d
subq $0x8, %rsp
movq 0x48(%rsp), %rdi
movq 0x28(%rsp), %r12
movq %r12, %rdx
movl %ebp, %ecx
movl %r15d, %r8d
movq %r14, %r15
pushq %r14
pushq %r11
movq 0x48(%rsp), %r14
pushq %r14
pushq %r10
pushq %r13
callq *0x3d0(%rax)
addq $0x30, %rsp
movq %rbx, %rdi
movq %r12, %rsi
callq 0x182e0
movl 0x10(%rsp), %ecx
pushq $0x18
popq %rdx
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %r13, %rsi
movl %ebp, %r8d
callq 0x197e0
movl 0x14(%rsp), %ecx
pushq $0x38
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %r8d
callq 0x197e0
movl 0x18(%rsp), %ecx
pushq $0x48
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %r8d
callq 0x197e0
xorl %ebp, %ebp
jmp 0x1cef9
pushq $0x3
popq %rsi
leaq 0xc(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rdx
callq 0x1a600
movq %rax, %r15
cmpl $0x0, (%r13)
je 0x1d174
testq %r14, %r14
je 0x1d092
movq %rbx, %rdi
movq %r14, %rsi
callq 0x182e0
testq %r15, %r15
je 0x1d0a5
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x19150
movl 0xc(%rsp), %edi
callq 0x19950
pushq $0x3
jmp 0x1ced8
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0x182e0
movl 0x10(%rsp), %ecx
pushq $0x18
popq %rdx
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %r13, %rsi
movl %ebp, %r8d
callq 0x197e0
pushq $0x38
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movl %ebp, %r8d
callq 0x197e0
pushq $0x48
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movl %ebp, %r8d
callq 0x197e0
pushq $-0x1
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x18680
pushq $0x5
jmp 0x1ced8
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0x182e0
movl 0x10(%rsp), %ecx
pushq $0x18
popq %rdx
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
movl %ebp, %r8d
callq 0x197e0
movl 0x14(%rsp), %ecx
pushq $0x38
popq %rdx
movq %rbx, %rdi
movq %r13, %rsi
movl %ebp, %r8d
callq 0x197e0
pushq $0x48
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movl %ebp, %r8d
callq 0x197e0
pushq $-0x1
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x18680
pushq $0x6
jmp 0x1ced8
movq 0x28(%rsp), %rax
movq 0x50(%rax), %rax
movl 0x1c(%rsp), %esi
movq %r12, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq *0x680(%rax)
testq %r14, %r14
je 0x1d1a0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x182e0
xorl %ebp, %ebp
testq %r15, %r15
je 0x1cef9
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x19150
jmp 0x1cef9
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
movq %rax, %r14
callq 0x182e0
movl 0x10(%rsp), %ecx
pushq $0x18
popq %rdx
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %r13, %rsi
movl %ebp, %r8d
callq 0x197e0
movl 0x14(%rsp), %ecx
pushq $0x38
popq %rdx
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movl %ebp, %r8d
callq 0x197e0
movl 0x18(%rsp), %ecx
pushq $0x48
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %r8d
callq 0x197e0
pushq $-0x1
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x18680
pushq $0x7
jmp 0x1ced8