// File: /workspace/github_cpp_makefile_star2_O2/stetre[P]moonvulkan/src/display.c
// Function: GetPhysicalDeviceDisplayProperties
static int GetPhysicalDeviceDisplayProperties(lua_State *L)
    {
    ud_t *ud;
    VkPhysicalDevice physdev = checkphysical_device(L, 1, &ud);
    if(ud->idt->GetPhysicalDeviceDisplayProperties2KHR)
        return GetPhysicalDeviceDisplayProperties2(L, physdev, ud);
    CheckInstancePfn(L, ud, GetPhysicalDeviceDisplayPropertiesKHR);
    return GetPhysicalDeviceDisplayProperties1(L, physdev, ud);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x58895(%rip), %rcx     # 0x7eef4
pushq $0x1
popq %rsi
leaq 0x20(%rsp), %r14
movq %r14, %rdx
callq 0x1a500
movq %rax, %r15
movq (%r14), %r13
movq 0x48(%r13), %rax
cmpq $0x0, 0x1a0(%rax)
movq %r15, 0x18(%rsp)
je 0x26716
pushq $0x20
popq %rsi
leaq 0x14(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x19f00
movq %rax, %r14
cmpl $0x0, (%r12)
je 0x266c6
pushq $0x40
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x197e0
movq %rbx, %rdi
callq 0x199c0
movq %r14, 0x8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x187d0
movq 0x48(%r13), %rax
movq %rsp, %rsi
movq %r15, %rdi
xorl %edx, %edx
callq *0x1a0(%rax)
testl %eax, %eax
je 0x267bb
movl %eax, %ebp
pushq $0x40
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %r8
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x197e0
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
jmp 0x269b4
cmpq $0x0, 0x98(%rax)
je 0x268a8
pushq $-0x1
popq %rsi
pushq $0x30
popq %rdx
pushq $0x20
popq %rcx
leaq 0x14(%rsp), %r14
movq %rbx, %rdi
movq %r14, %r8
callq 0x19820
movq %rax, %r12
cmpl $0x0, (%r14)
je 0x26766
pushq $0x30
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 %r12, 0x8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x187d0
movq 0x48(%r13), %rax
movq %rsp, %rsi
movq %r15, %rdi
xorl %edx, %edx
callq *0x98(%rax)
testl %eax, %eax
je 0x268be
movl %eax, %r14d
pushq $0x30
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %r8
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
xorl %r9d, %r9d
callq 0x18d30
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
jmp 0x269b4
movl (%rsp), %eax
testl %eax, %eax
je 0x2688a
movq %r13, %rbp
pushq $-0x2
popq %r13
xorl %r14d, %r14d
movl %eax, %ecx
subl $0x20, %ecx
pushq $0x20
popq %rdx
cmovael %edx, %eax
movl $0x0, %edx
cmovbl %edx, %ecx
movl %eax, 0x4(%rsp)
movl %ecx, (%rsp)
movq 0x48(%rbp), %rax
movq %r15, %rdi
leaq 0x4(%rsp), %rsi
movq 0x8(%rsp), %r15
movq %r15, %rdx
callq *0x1a0(%rax)
cmpl $0x5, %eax
je 0x26814
movl %eax, %r12d
testl %eax, %eax
jne 0x26997
movl %r14d, 0x10(%rsp)
movl %r14d, %r14d
movq %r15, %r12
xorl %r15d, %r15d
movl 0x4(%rsp), %eax
cmpq %rax, %r15
jae 0x26872
movq %rbx, %rdi
movq %r12, %rsi
callq 0x190e0
movq 0x10(%r12), %rsi
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x270e1
movq %rbx, %rdi
movl %r13d, %esi
leaq 0x594ff(%rip), %rdx     # 0x7fd52
callq 0x18af0
leal (%r14,%r15), %edx
incl %edx
movq %rbx, %rdi
movl %r13d, %esi
callq 0x19120
incq %r15
addq $0x40, %r12
jmp 0x26822
movl (%rsp), %eax
movl 0x10(%rsp), %r14d
addl %r15d, %r14d
testl %eax, %eax
movq 0x18(%rsp), %r15
jne 0x267d0
pushq $0x40
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movl %ebp, %r8d
callq 0x197e0
jmp 0x269c3
leaq 0x58e8f(%rip), %rsi     # 0x7f73e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19bc0
jmp 0x269c1
movl (%rsp), %eax
testl %eax, %eax
je 0x269d4
pushq $-0x2
popq %r12
xorl %ebp, %ebp
movl %eax, %ecx
subl $0x20, %ecx
pushq $0x20
popq %rdx
cmovael %edx, %eax
movl $0x0, %edx
cmovbl %edx, %ecx
movl %eax, 0x4(%rsp)
movl %ecx, (%rsp)
movq 0x48(%r13), %rax
movq %r15, %rdi
leaq 0x4(%rsp), %rsi
movq 0x8(%rsp), %r15
movq %r15, %rdx
callq *0x98(%rax)
cmpl $0x5, %eax
je 0x26913
movl %eax, %r14d
testl %eax, %eax
jne 0x269f2
movl %ebp, 0x10(%rsp)
movl %ebp, %ebp
movq %r15, %r14
xorl %r15d, %r15d
movl 0x4(%rsp), %eax
cmpq %rax, %r15
jae 0x2696d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x19f20
movq (%r14), %rsi
movq %rbx, %rdi
movq %r13, %rdx
callq 0x270e1
movq %rbx, %rdi
movl %r12d, %esi
leaq 0x59404(%rip), %rdx     # 0x7fd52
callq 0x18af0
leal (%r15,%rbp), %edx
incl %edx
movq %rbx, %rdi
movl %r12d, %esi
callq 0x19120
incq %r15
addq $0x30, %r14
jmp 0x2691f
movl (%rsp), %eax
movl 0x10(%rsp), %ebp
addl %r15d, %ebp
testl %eax, %eax
movq 0x18(%rsp), %r15
jne 0x268cf
pushq $0x30
popq %rdx
pushq $0x20
popq %rcx
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
pushq $0x1
popq %rbp
jmp 0x269e5
pushq $0x40
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r15, %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 $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x30
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %rbp
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x18d30
jmp 0x269c3
pushq $0x30
popq %rdx
pushq $0x20
popq %rcx
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x267a6