// File: /workspace/github_cpp_makefile_star2_O1/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
movl $0x2, %esi
callq 0x1a130
cmpl $0x5, %eax
jne 0x1d0ba
leaq 0x728d3(%rip), %rcx     # 0x8f909
leaq 0x28(%rsp), %r14
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x1a520
movq %rax, %r12
movq (%r14), %rax
movq 0x50(%rax), %rax
cmpq $0x0, 0x680(%rax)
je 0x1d1a2
leaq 0x72941(%rip), %r9      # 0x8f9ab
leaq 0x1c(%rsp), %rdx
leaq 0xc(%rsp), %r15
movq %rbx, %rdi
movl $0x2, %esi
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x19150
movq %rax, %r14
cmpl $0x0, (%r15)
je 0x1d335
testq %r14, %r14
je 0x1d0a4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x182e0
movl 0xc(%rsp), %edi
callq 0x19970
movq %rbx, %rdi
movl $0x2, %esi
jmp 0x1d198
xorl %ebp, %ebp
movl %ebp, 0x18(%rsp)
movl %ebp, 0x14(%rsp)
movl %ebp, 0x10(%rsp)
leaq 0x7283a(%rip), %rcx     # 0x8f909
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1a520
movq %rax, %r13
movq %rbx, %rdi
movl $0x2, %esi
callq 0x18f70
movq %rax, %r15
movq %rbx, %rdi
movl $0x3, %esi
callq 0x18f70
movq %rax, %r12
leaq 0x728a0(%rip), %r9      # 0x8f9ab
leaq 0x1c(%rsp), %rdx
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movl $0x4, %esi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x19150
cmpl %ebp, (%r14)
je 0x1d1c6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x182e0
movl 0x18(%rsp), %ecx
movl $0x18, %edx
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %r8d
callq 0x19800
movl 0x14(%rsp), %ecx
movl $0x38, %edx
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %r8d
callq 0x19800
movl 0x10(%rsp), %ecx
movl $0x48, %edx
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %r8d
callq 0x19800
movl 0xc(%rsp), %edi
callq 0x19970
movq %rbx, %rdi
movl $0x4, %esi
movq %rax, %rdx
callq 0x18420
jmp 0x1d1b3
leaq 0x72813(%rip), %rsi     # 0x8f9bc
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19be0
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 %r13, 0x40(%rsp)
leaq 0x18(%rsp), %rdx
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movl $0x5, %esi
movq %r14, %rcx
callq 0x1a390
movq %rax, %rbp
cmpl $0x0, (%r14)
js 0x1d393
movq %rbp, 0x38(%rsp)
je 0x1d20b
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x18150
leaq 0x14(%rsp), %rdx
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movl $0x6, %esi
movq %r14, %rcx
callq 0x18e30
movq %rax, %rbp
cmpl $0x0, (%r14)
js 0x1d408
movq %r15, %r13
movq %rbp, 0x30(%rsp)
je 0x1d249
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x18150
leaq 0x10(%rsp), %rdx
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movl $0x7, %esi
movq %r14, %rcx
callq 0x19250
cmpl $0x0, (%r14)
movq 0x38(%rsp), %rbp
js 0x1d4cc
movq %r12, %r15
movq %rax, %r14
je 0x1d287
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x18150
movq 0x28(%rsp), %rax
movq 0x50(%rax), %rax
movl 0x1c(%rsp), %esi
movl 0x18(%rsp), %r9d
movl 0x14(%rsp), %r10d
movl 0x10(%rsp), %r11d
subq $0x8, %rsp
movq 0x48(%rsp), %rdi
movq 0x28(%rsp), %r12
movq %r12, %rdx
movl %r13d, %ecx
movl %r15d, %r8d
movq %r14, %r15
pushq %r14
pushq %r11
movq 0x48(%rsp), %r14
pushq %r14
pushq %r10
pushq %rbp
callq *0x3d0(%rax)
addq $0x30, %rsp
movq %rbx, %rdi
movq %r12, %rsi
callq 0x182e0
movl 0x18(%rsp), %ecx
movl $0x18, %edx
movq %rbx, %rdi
movq %rbp, %rsi
movl $0x1, %r8d
callq 0x19800
movl 0x14(%rsp), %ecx
movl $0x38, %edx
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %r8d
callq 0x19800
movl 0x10(%rsp), %ecx
movl $0x48, %edx
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %r8d
callq 0x19800
xorl %ebp, %ebp
jmp 0x1d1b5
leaq 0xc(%rsp), %r13
movq %rbx, %rdi
movl $0x3, %esi
movq %r13, %rdx
callq 0x1a620
movq %rax, %r15
cmpl $0x0, (%r13)
je 0x1d480
testq %r14, %r14
je 0x1d368
movq %rbx, %rdi
movq %r14, %rsi
callq 0x182e0
testq %r15, %r15
je 0x1d37d
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x19170
movl 0xc(%rsp), %edi
callq 0x19970
movq %rbx, %rdi
movl $0x3, %esi
jmp 0x1d198
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0x182e0
movl 0x18(%rsp), %ecx
movl $0x18, %edx
movq %rbx, %rdi
movq %rbp, %rsi
movl $0x1, %r8d
callq 0x19800
movl 0x14(%rsp), %ecx
movl $0x38, %edx
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %r8d
callq 0x19800
movl 0x10(%rsp), %ecx
movl $0x48, %edx
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %r8d
callq 0x19800
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x18690
movq %rbx, %rdi
movl $0x5, %esi
jmp 0x1d198
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0x182e0
movl 0x18(%rsp), %ecx
movl $0x18, %edx
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
movl $0x1, %r8d
callq 0x19800
movl 0x14(%rsp), %ecx
movl $0x38, %edx
movq %rbx, %rdi
movq %rbp, %rsi
movl $0x1, %r8d
callq 0x19800
movl 0x10(%rsp), %ecx
movl $0x48, %edx
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %r8d
callq 0x19800
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x18690
movq %rbx, %rdi
movl $0x6, %esi
jmp 0x1d198
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 0x1d4ac
movq %rbx, %rdi
movq %r14, %rsi
callq 0x182e0
xorl %ebp, %ebp
testq %r15, %r15
je 0x1d1b5
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x19170
jmp 0x1d1b5
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
movq %rax, %r14
callq 0x182e0
movl 0x18(%rsp), %ecx
movl $0x18, %edx
movq %rbx, %rdi
movq %rbp, %rsi
movl $0x1, %r8d
callq 0x19800
movl 0x14(%rsp), %ecx
movl $0x38, %edx
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movl $0x1, %r8d
callq 0x19800
movl 0x10(%rsp), %ecx
movl $0x48, %edx
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %r8d
callq 0x19800
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x18690
movq %rbx, %rdi
movl $0x7, %esi
jmp 0x1d198