// File: /workspace/github_cpp_makefile_star2_O3/stetre[P]moonvulkan/src/display.c
// Function: GetPhysicalDeviceDisplayPlaneProperties
static int GetPhysicalDeviceDisplayPlaneProperties(lua_State *L)
    {
    ud_t *ud;
    VkPhysicalDevice physdev = checkphysical_device(L, 1, &ud);
    if(ud->idt->GetPhysicalDeviceDisplayPlaneProperties2KHR)
        return GetPhysicalDeviceDisplayPlaneProperties2(L, physdev, ud);
    CheckInstancePfn(L, ud, GetPhysicalDeviceDisplayPlanePropertiesKHR);
    return GetPhysicalDeviceDisplayPlaneProperties1(L, physdev, ud);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x66a22(%rip), %rcx     # 0x8def4
leaq 0x30(%rsp), %r15
movl $0x1, %esi
movq %r15, %rdx
callq 0x1a4e0
movq %rax, %r14
movq (%r15), %r15
movq 0x48(%r15), %rax
cmpq $0x0, 0x1a8(%rax)
movq %r14, 0x28(%rsp)
je 0x2758d
leaq 0x24(%rsp), %r12
movq %rbx, %rdi
movl $0x20, %esi
movq %r12, %rdx
callq 0x19270
movq %rax, %r13
cmpl $0x0, (%r12)
je 0x27543
movl $0x20, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x197d0
movq %rbx, %rdi
callq 0x199a0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x187d0
movq 0x48(%r15), %rax
leaq 0xc(%rsp), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq *0x1a8(%rax)
testl %eax, %eax
je 0x27659
movl %eax, %ebp
movl $0x20, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x197d0
jmp 0x27632
cmpq $0x0, 0xa0(%rax)
je 0x27760
leaq 0x24(%rsp), %r12
movl $0x10, %edx
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x20, %ecx
movq %r12, %r8
callq 0x19810
movq %rax, %r13
cmpl $0x0, (%r12)
je 0x275ea
movl $0x10, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x18d30
movq %rbx, %rdi
callq 0x199a0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x187d0
movq 0x48(%r15), %rax
leaq 0xc(%rsp), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq *0xa0(%rax)
testl %eax, %eax
je 0x27776
movl %eax, %ebp
movl $0x10, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x18d30
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x18980
movq %rbx, %rdi
callq 0x199a0
movl %eax, %ebp
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x2773b
leaq 0x67197(%rip), %rbp     # 0x8e803
movl $0x0, 0x14(%rsp)
movq %r13, 0x18(%rsp)
movl %eax, %ecx
subl $0x20, %ecx
movl $0x20, %edx
cmovael %edx, %eax
movl $0x0, %edx
cmovbl %edx, %ecx
movl %eax, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
movq 0x48(%r15), %rax
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq %r13, %rdx
callq *0x1a8(%rax)
testl %eax, %eax
je 0x276bb
movl %eax, %r12d
cmpl $0x5, %eax
jne 0x2787f
cmpl $0x0, 0x10(%rsp)
je 0x2772f
movq %r13, %r12
movl 0x14(%rsp), %r13d
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x18b70
movq 0x10(%r12), %rsi
testq %rsi, %rsi
je 0x276fd
movq %rbx, %rdi
movq %r15, %rdx
callq 0x27bfd
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %rbp, %rdx
callq 0x18af0
leal (%r14,%r13), %edx
incl %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x19130
incq %r14
movl 0x10(%rsp), %eax
addq $0x20, %r12
cmpq %rax, %r14
jb 0x276cd
addl %r14d, 0x14(%rsp)
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %r13
movl 0xc(%rsp), %eax
testl %eax, %eax
jne 0x27679
movl $0x1, %ebp
movl $0x20, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x197d0
jmp 0x27648
leaq 0x6705c(%rip), %rsi     # 0x8e7c3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19ba0
jmp 0x27646
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x27857
leaq 0x6707a(%rip), %rbp     # 0x8e803
movl $0x0, 0x14(%rsp)
movq %r13, 0x18(%rsp)
movl %eax, %ecx
subl $0x20, %ecx
movl $0x20, %edx
cmovael %edx, %eax
movl $0x0, %edx
cmovbl %edx, %ecx
movl %eax, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
movq 0x48(%r15), %rax
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq %r13, %rdx
callq *0xa0(%rax)
testl %eax, %eax
je 0x277d8
movl %eax, %r12d
cmpl $0x5, %eax
jne 0x2789c
cmpl $0x0, 0x10(%rsp)
je 0x2784b
movq %r13, %r12
movl 0x14(%rsp), %r13d
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x185d0
movq (%r12), %rsi
testq %rsi, %rsi
je 0x27819
movq %rbx, %rdi
movq %r15, %rdx
callq 0x27bfd
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %rbp, %rdx
callq 0x18af0
leal (%r14,%r13), %edx
incl %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x19130
incq %r14
movl 0x10(%rsp), %eax
addq $0x10, %r12
cmpq %rax, %r14
jb 0x277ea
addl %r14d, 0x14(%rsp)
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %r13
movl 0xc(%rsp), %eax
testl %eax, %eax
jne 0x27796
movl $0x1, %ebp
movl $0x10, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x18d30
jmp 0x27648
movl $0x20, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x197d0
jmp 0x278ba
movl $0x10, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x18d30
movq %rbx, %rdi
xorl %esi, %esi
movl %r12d, %edx
jmp 0x27639