// File: /workspace/github_cpp_makefile_star2_O2/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 0x57e4f(%rip), %rcx     # 0x7f792
pushq $0x1
popq %rbp
leaq 0x20(%rsp), %r15
movl %ebp, %esi
movq %r15, %rdx
callq 0x1a500
movq %rax, %r14
movq (%r15), %rax
movq 0x48(%rax), %rax
cmpq $0x0, 0xc0(%rax)
je 0x27a60
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x1a110
movq 0x20(%rsp), %r13
cmpl $0x5, %eax
jne 0x279fd
movq 0x10(%r13), %rax
movq 0x10(%rax), %rax
movq (%rax), %rbp
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x1a110
cmpl $0x5, %eax
jne 0x27a76
pushq $0x2
popq %rsi
leaq 0xc(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rdx
callq 0x19790
movq %rax, %r12
cmpl $0x0, (%r15)
je 0x27b10
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x19150
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x19150
pushq $-0x1
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x18680
pushq $0x2
popq %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x18420
jmp 0x27b9a
movq 0x48(%r13), %rax
cmpq $0x0, 0xc0(%rax)
je 0x27a60
movq 0x10(%r13), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq %rax, 0x10(%rsp)
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x190d0
movq %rax, 0x18(%rsp)
pushq $-0x1
popq %rsi
pushq $0x44
popq %rdx
leaq 0xc(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rcx
callq 0x19dc0
movq %rax, %r15
cmpl $0x0, (%r12)
je 0x27ac4
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x19620
jmp 0x27b92
leaq 0x57f4b(%rip), %rsi     # 0x7f9b2
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19bc0
jmp 0x27b9a
movq %rbp, 0x10(%rsp)
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x190d0
movq %rax, %r15
pushq $0x20
popq %rdx
leaq 0xc(%rsp), %rbp
movq %rbx, %rdi
movl $0x3b9ca2ab, %esi       # imm = 0x3B9CA2AB
movq %rbp, %rcx
callq 0x19dc0
movq %rax, %r12
cmpl $0x0, (%rbp)
je 0x27b06
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x19150
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x27b44
movq 0x48(%r13), %rax
movq 0x10(%rsp), %rdi
movq %r14, %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rcx
callq *0xc0(%rax)
testl %eax, %eax
je 0x27bad
movl %eax, %r14d
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x19620
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
jmp 0x27b8d
movl %r15d, 0x18(%r12)
movq 0x10(%rsp), %rbp
movq %r14, 0x10(%r12)
leaq 0xc(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1a070
movq %rax, %r14
cmpl $0x0, (%r15)
je 0x27b4d
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x19150
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x19150
jmp 0x27b92
movq 0x48(%r13), %rax
movq %rbp, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq *0x1b8(%rax)
testl %eax, %eax
je 0x27bc9
movl %eax, %ebp
pushq $0x1
popq %r15
movq %rbx, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x19150
movq %rbx, %rdi
movq %r14, %rsi
movl %r15d, %edx
callq 0x19150
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x18980
movq %rbx, %rdi
callq 0x199c0
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 %r15, %rsi
callq 0x1a170
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x19620
jmp 0x27b9c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x19380
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x19150
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x19150
jmp 0x27b9c