// File: /workspace/github_cpp_makefile_star2_O1/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 0x69916(%rip), %rcx     # 0x90ef4
leaq 0x30(%rsp), %r15
movl $0x1, %esi
movq %r15, %rdx
callq 0x1a520
movq %rax, %r14
movq (%r15), %r15
movq 0x48(%r15), %rax
cmpq $0x0, 0x1a8(%rax)
movq %r14, 0x28(%rsp)
je 0x27699
leaq 0x24(%rsp), %r12
movq %rbx, %rdi
movl $0x20, %esi
movq %r12, %rdx
callq 0x19280
movq %rax, %r13
cmpl $0x0, (%r12)
je 0x2764f
movl $0x20, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x19800
movq %rbx, %rdi
callq 0x199e0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x187e0
movq 0x48(%r15), %rax
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq *0x1a8(%rax)
testl %eax, %eax
je 0x27765
movl %eax, %ebp
movl $0x20, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x19800
jmp 0x2773e
cmpq $0x0, 0xa0(%rax)
je 0x27876
leaq 0x24(%rsp), %r12
movl $0x10, %edx
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x20, %ecx
movq %r12, %r8
callq 0x19840
movq %rax, %r13
cmpl $0x0, (%r12)
je 0x276f6
movl $0x10, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x18d40
movq %rbx, %rdi
callq 0x199e0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x187e0
movq 0x48(%r15), %rax
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq *0xa0(%rax)
testl %eax, %eax
je 0x2788c
movl %eax, %ebp
movl $0x10, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x18d40
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x18990
movq %rbx, %rdi
callq 0x199e0
movl %eax, %ebp
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, 0x8(%rsp)
je 0x27851
movq $0x0, 0x10(%rsp)
leaq 0x6a083(%rip), %rbp     # 0x91803
movq %r13, 0x18(%rsp)
movl 0x8(%rsp), %eax
cmpl $0x21, %eax
jb 0x2779b
movl $0x20, 0xc(%rsp)
addl $-0x20, %eax
jmp 0x277a1
movl %eax, 0xc(%rsp)
xorl %eax, %eax
movl %eax, 0x8(%rsp)
movq 0x48(%r15), %rax
movq %r14, %rdi
leaq 0xc(%rsp), %rsi
movq %r13, %rdx
callq *0x1a8(%rax)
testl %eax, %eax
je 0x277ca
movl %eax, %r12d
cmpl $0x5, %eax
jne 0x2799f
cmpl $0x0, 0xc(%rsp)
je 0x27846
movq %r13, %r12
movl 0x10(%rsp), %r13d
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x18b80
movq 0x10(%r12), %rsi
testq %rsi, %rsi
je 0x2780c
movq %rbx, %rdi
movq %r15, %rdx
callq 0x27d1d
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %rbp, %rdx
callq 0x18b00
leal (%r14,%r13), %edx
incl %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x19140
incq %r14
movl 0xc(%rsp), %eax
addq $0x20, %r12
cmpq %rax, %r14
jb 0x277dc
movq 0x10(%rsp), %rax
addl %r14d, %eax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %r13
cmpl $0x0, 0x8(%rsp)
jne 0x27785
movl $0x1, %ebp
movl $0x20, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x19800
jmp 0x27754
leaq 0x69f46(%rip), %rsi     # 0x917c3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19be0
jmp 0x27752
cmpl $0x0, 0x8(%rsp)
je 0x27977
movq $0x0, 0x10(%rsp)
leaq 0x69f5c(%rip), %rbp     # 0x91803
movq %r13, 0x18(%rsp)
movl 0x8(%rsp), %eax
cmpl $0x21, %eax
jb 0x278c2
movl $0x20, 0xc(%rsp)
addl $-0x20, %eax
jmp 0x278c8
movl %eax, 0xc(%rsp)
xorl %eax, %eax
movl %eax, 0x8(%rsp)
movq 0x48(%r15), %rax
movq %r14, %rdi
leaq 0xc(%rsp), %rsi
movq %r13, %rdx
callq *0xa0(%rax)
testl %eax, %eax
je 0x278f1
movl %eax, %r12d
cmpl $0x5, %eax
jne 0x279bc
cmpl $0x0, 0xc(%rsp)
je 0x2796c
movq %r13, %r12
movl 0x10(%rsp), %r13d
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x185e0
movq (%r12), %rsi
testq %rsi, %rsi
je 0x27932
movq %rbx, %rdi
movq %r15, %rdx
callq 0x27d1d
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %rbp, %rdx
callq 0x18b00
leal (%r14,%r13), %edx
incl %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x19140
incq %r14
movl 0xc(%rsp), %eax
addq $0x10, %r12
cmpq %rax, %r14
jb 0x27903
movq 0x10(%rsp), %rax
addl %r14d, %eax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %r13
cmpl $0x0, 0x8(%rsp)
jne 0x278ac
movl $0x1, %ebp
movl $0x10, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x18d40
jmp 0x27754
movl $0x20, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x19800
jmp 0x279da
movl $0x10, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x18d40
movq %rbx, %rdi
xorl %esi, %esi
movl %r12d, %edx
jmp 0x27745