// File: /workspace/github_cpp_makefile_star2_O2/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 0x584d5(%rip), %rcx     # 0x7eef4
pushq $0x1
popq %rsi
leaq 0x30(%rsp), %r14
movq %r14, %rdx
callq 0x1a500
movq %rax, %r13
movq (%r14), %r15
movq 0x48(%r15), %rax
cmpq $0x0, 0x1a8(%rax)
je 0x26acc
pushq $0x20
popq %rsi
leaq 0x2c(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x19260
movq %rax, %r14
cmpl $0x0, (%r12)
je 0x26a81
pushq $0x20
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x197e0
movq %rbx, %rdi
callq 0x199c0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x187d0
movq 0x48(%r15), %rax
leaq 0xc(%rsp), %rsi
movq %r13, %rdi
xorl %edx, %edx
callq *0x1a8(%rax)
testl %eax, %eax
je 0x26b6c
movl %eax, %ebp
pushq $0x20
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x197e0
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
jmp 0x26d7b
cmpq $0x0, 0xa0(%rax)
je 0x26c62
pushq $-0x1
popq %rsi
pushq $0x10
popq %rdx
pushq $0x20
popq %rcx
leaq 0x2c(%rsp), %r14
movq %rbx, %rdi
movq %r14, %r8
callq 0x19820
movq %rax, %r12
cmpl $0x0, (%r14)
je 0x26b1c
pushq $0x10
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r12, %rsi
xorl %r9d, %r9d
callq 0x18d30
movq %rbx, %rdi
callq 0x199c0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x187d0
movq 0x48(%r15), %rax
leaq 0xc(%rsp), %rsi
movq %r13, %rdi
xorl %edx, %edx
callq *0xa0(%rax)
testl %eax, %eax
je 0x26c78
movl %eax, %r14d
pushq $0x10
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r12, %rsi
xorl %r9d, %r9d
callq 0x18d30
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
jmp 0x26d7b
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x26c46
pushq $-0x2
popq %rbp
movl $0x0, 0x14(%rsp)
movq %r13, 0x20(%rsp)
movq %r14, 0x18(%rsp)
movl %eax, %ecx
subl $0x20, %ecx
pushq $0x20
popq %rdx
cmovael %edx, %eax
movl $0x0, %edx
cmovbl %edx, %ecx
movl %eax, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
movq 0x48(%r15), %rax
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
movq %r14, %rdx
callq *0x1a8(%rax)
cmpl $0x5, %eax
je 0x26bcd
movl %eax, %r12d
testl %eax, %eax
jne 0x26d5e
movq %r14, %r12
movl 0x14(%rsp), %r14d
xorl %r13d, %r13d
movl 0x10(%rsp), %eax
cmpq %rax, %r13
jae 0x26c2b
movq %rbx, %rdi
movq %r12, %rsi
callq 0x18b70
movq 0x10(%r12), %rsi
testq %rsi, %rsi
je 0x26c12
movq %rbx, %rdi
movq %r15, %rdx
callq 0x270e1
movq %rbx, %rdi
movl %ebp, %esi
leaq 0x58bf6(%rip), %rdx     # 0x7f803
callq 0x18af0
leal (%r14,%r13), %edx
incl %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x19120
incq %r13
addq $0x20, %r12
jmp 0x26bd8
movl 0xc(%rsp), %eax
addl %r13d, 0x14(%rsp)
testl %eax, %eax
movq 0x20(%rsp), %r13
movq 0x18(%rsp), %r14
jne 0x26b8d
pushq $0x20
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %r8d
callq 0x197e0
jmp 0x26d8a
leaq 0x58b5a(%rip), %rsi     # 0x7f7c3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19bc0
jmp 0x26d88
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x26d9b
movq %r13, 0x20(%rsp)
pushq $-0x2
popq %r13
xorl %ebp, %ebp
movq %r12, 0x18(%rsp)
movl %eax, %ecx
subl $0x20, %ecx
pushq $0x20
popq %rdx
cmovael %edx, %eax
movl $0x0, %edx
cmovbl %edx, %ecx
movl %eax, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
movq 0x48(%r15), %rax
movq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %r12, %rdx
callq *0xa0(%rax)
cmpl $0x5, %eax
je 0x26cd6
movl %eax, %r14d
testl %eax, %eax
jne 0x26b47
movl %ebp, 0x14(%rsp)
movl %ebp, %ebp
movq %r12, %r14
xorl %r12d, %r12d
movl 0x10(%rsp), %eax
cmpq %rax, %r12
jae 0x26d35
movq %rbx, %rdi
movq %r14, %rsi
callq 0x185e0
movq (%r14), %rsi
testq %rsi, %rsi
je 0x26d1b
movq %rbx, %rdi
movq %r15, %rdx
callq 0x270e1
movq %rbx, %rdi
movl %r13d, %esi
leaq 0x58aed(%rip), %rdx     # 0x7f803
callq 0x18af0
leal (%r12,%rbp), %edx
incl %edx
movq %rbx, %rdi
movl %r13d, %esi
callq 0x19120
incq %r12
addq $0x10, %r14
jmp 0x26ce2
movl 0xc(%rsp), %eax
movl 0x14(%rsp), %ebp
addl %r12d, %ebp
testl %eax, %eax
movq 0x18(%rsp), %r12
jne 0x26c94
pushq $0x10
popq %rdx
pushq $0x20
popq %rcx
movq %rbx, %rdi
movq %r12, %rsi
pushq $0x1
popq %rbp
jmp 0x26daa
pushq $0x20
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x197e0
movq %rbx, %rdi
xorl %esi, %esi
movl %r12d, %edx
callq 0x18980
movq %rbx, %rdi
callq 0x199c0
movl %eax, %ebp
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x18d30
jmp 0x26d8a