// File: /workspace/github_cpp_makefile_star2_O1/stetre[P]moonvulkan/src/display_mode.c
// Function: GetDisplayPlaneCapabilities
static int GetDisplayPlaneCapabilities(lua_State *L)
    {
    ud_t *ud;
    VkDisplayModeKHR display_mode = checkdisplay_mode(L, 1, &ud);
    if(ud->idt->GetDisplayPlaneCapabilitiesKHR && lua_type(L, 2) == LUA_TTABLE)
        return GetDisplayPlaneCapabilities2(L, display_mode, ud);
    CheckInstancePfn(L, ud, GetDisplayPlaneCapabilitiesKHR);
    return GetDisplayPlaneCapabilities1(L, display_mode, ud);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x69182(%rip), %rcx     # 0x91792
leaq 0x18(%rsp), %r15
movl $0x1, %esi
movq %r15, %rdx
callq 0x1a520
movq %rax, %r14
movq (%r15), %rax
movq 0x48(%rax), %rax
cmpq $0x0, 0xc0(%rax)
je 0x286dc
movq %rbx, %rdi
movl $0x2, %esi
callq 0x1a130
cmpl $0x5, %eax
jne 0x286dc
movq 0x18(%rsp), %r15
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
movq (%rax), %rbp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x1a130
cmpl $0x5, %eax
jne 0x2879b
leaq 0xc(%rsp), %r13
movq %rbx, %rdi
movl $0x2, %esi
movq %r13, %rdx
callq 0x197b0
movq %rax, %r12
cmpl $0x0, (%r13)
je 0x2882a
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x19170
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x19170
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x18690
movq %rbx, %rdi
movl $0x2, %esi
movq %rax, %rdx
callq 0x18420
jmp 0x288d4
movq %r14, %r12
movq 0x18(%rsp), %r14
movq 0x48(%r14), %rax
cmpq $0x0, 0xc0(%rax)
je 0x2874c
movq 0x10(%r14), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x190f0
movq %rax, %r13
leaq 0xc(%rsp), %rbp
movl $0x44, %edx
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %rbp, %rcx
callq 0x19de0
movq %rax, %r15
cmpl $0x0, (%rbp)
je 0x28762
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x19640
jmp 0x288cc
leaq 0x6925f(%rip), %rsi     # 0x919b2
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19be0
jmp 0x288d4
movq 0x48(%r14), %rax
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movl %r13d, %edx
movq %r15, %rcx
callq *0xc0(%rax)
testl %eax, %eax
je 0x28803
movl %eax, %ebp
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x19640
jmp 0x288c0
movq %rbp, 0x10(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x190f0
movq %rax, 0x20(%rsp)
leaq 0xc(%rsp), %rbp
movl $0x20, %edx
movq %rbx, %rdi
movl $0x3b9ca2ab, %esi       # imm = 0x3B9CA2AB
movq %rbp, %rcx
callq 0x19de0
movq %rax, %r12
movl (%rbp), %r13d
testl %r13d, %r13d
je 0x28831
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x19170
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x19170
movq %rbx, %rdi
callq 0x199e0
movl %eax, %ebp
jmp 0x2883b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1a190
movl $0x1, %ebp
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x19640
jmp 0x288d6
movq %rbp, 0x10(%rsp)
jmp 0x28844
movq 0x20(%rsp), %rax
movl %eax, 0x18(%r12)
testl %r13d, %r13d
jne 0x288d6
movq %r14, 0x10(%r12)
leaq 0xc(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1a090
movq %rax, %r14
cmpl $0x0, (%r13)
je 0x28885
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x19170
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x19170
jmp 0x288cc
movq 0x48(%r15), %rax
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq *0x1b8(%rax)
testl %eax, %eax
je 0x288e7
movl %eax, %ebp
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x19170
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x19170
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x18990
movq %rbx, %rdi
callq 0x199e0
movl %eax, %ebp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
callq 0x193a0
movl $0x1, %ebp
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x19170
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x19170
jmp 0x288d6