// File: /workspace/github_cpp_makefile_star2_O3/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 $0x18, %rsp
movq %rdi, %rbx
leaq 0x662ea(%rip), %rcx     # 0x8e792
leaq 0x10(%rsp), %r15
movl $0x1, %esi
movq %r15, %rdx
callq 0x1a4e0
movq %rax, %r14
movq (%r15), %rax
movq 0x48(%rax), %rax
cmpq $0x0, 0xc0(%rax)
je 0x285df
movq %rbx, %rdi
movl $0x2, %esi
callq 0x1a0f0
movq 0x10(%rsp), %r12
cmpl $0x5, %eax
jne 0x28575
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movq (%rax), %rbp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x1a0f0
cmpl $0x5, %eax
jne 0x285f5
leaq 0x4(%rsp), %r13
movq %rbx, %rdi
movl $0x2, %esi
movq %r13, %rdx
callq 0x19780
movq %rax, %r15
cmpl $0x0, (%r13)
je 0x28687
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x19160
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x19160
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x18680
movq %rbx, %rdi
movl $0x2, %esi
movq %rax, %rdx
callq 0x18410
jmp 0x28715
movq 0x48(%r12), %rax
cmpq $0x0, 0xc0(%rax)
je 0x285df
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x190e0
movq %rax, %r13
leaq 0x4(%rsp), %rbp
movl $0x44, %edx
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %rbp, %rcx
callq 0x19da0
movq %rax, %r15
cmpl $0x0, (%rbp)
je 0x28644
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x19610
jmp 0x2870d
leaq 0x663cc(%rip), %rsi     # 0x8e9b2
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19ba0
jmp 0x28715
movq %rbp, 0x8(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x190e0
movq %rax, %r13
leaq 0x4(%rsp), %rbp
movl $0x20, %edx
movq %rbx, %rdi
movl $0x3b9ca2ab, %esi       # imm = 0x3B9CA2AB
movq %rbp, %rcx
callq 0x19da0
movq %rax, %r15
cmpl $0x0, (%rbp)
je 0x2867e
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x19160
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x286bb
movq 0x48(%r12), %rax
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movl %r13d, %edx
movq %r15, %rcx
callq *0xc0(%rax)
testl %eax, %eax
je 0x28728
movl %eax, %ebp
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x19610
jmp 0x28701
movl %r13d, 0x18(%r15)
movq 0x8(%rsp), %rbp
movq %r14, 0x10(%r15)
leaq 0x4(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1a050
movq %rax, %r14
cmpl $0x0, (%r13)
je 0x286c7
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x19160
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x19160
jmp 0x2870d
movq 0x48(%r12), %rax
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq *0x1b8(%rax)
testl %eax, %eax
je 0x2874c
movl %eax, %ebp
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x19160
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x19160
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x18980
movq %rbx, %rdi
callq 0x199a0
movl %eax, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1a150
movl $0x1, %ebp
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x19610
jmp 0x28717
movq %rbx, %rdi
movq %r14, %rsi
callq 0x19380
movl $0x1, %ebp
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x19160
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x19160
jmp 0x28717