// File: /workspace/github_cpp_makefile_star2_O3/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 $0x38, %rsp
movq %rdi, %rbx
leaq 0x66e25(%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, 0x1a0(%rax)
movq %r14, 0x28(%rsp)
je 0x2718a
leaq 0x24(%rsp), %r12
movq %rbx, %rdi
movl $0x20, %esi
movq %r12, %rdx
callq 0x19ee0
movq %rax, %r13
cmpl $0x0, (%r12)
je 0x27140
movl $0x40, %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 *0x1a0(%rax)
testl %eax, %eax
je 0x27256
movl %eax, %ebp
movl $0x40, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x197d0
jmp 0x2722f
cmpq $0x0, 0x98(%rax)
je 0x27358
leaq 0x24(%rsp), %r12
movl $0x30, %edx
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x20, %ecx
movq %r12, %r8
callq 0x19810
movq %rax, %r13
cmpl $0x0, (%r12)
je 0x271e7
movl $0x30, %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 *0x98(%rax)
testl %eax, %eax
je 0x2736e
movl %eax, %ebp
movl $0x30, %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 0x27333
leaq 0x67ae9(%rip), %rbp     # 0x8ed52
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 *0x1a0(%rax)
testl %eax, %eax
je 0x272b8
movl %eax, %r12d
cmpl $0x5, %eax
jne 0x27472
cmpl $0x0, 0x10(%rsp)
je 0x27327
movq %r13, %r12
movl 0x14(%rsp), %r13d
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x190f0
movq 0x10(%r12), %rsi
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 $0x40, %r12
cmpq %rax, %r14
jb 0x272ca
addl %r14d, 0x14(%rsp)
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %r13
movl 0xc(%rsp), %eax
testl %eax, %eax
jne 0x27276
movl $0x1, %ebp
movl $0x40, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x197d0
jmp 0x27245
leaq 0x673df(%rip), %rsi     # 0x8e73e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19ba0
jmp 0x27243
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x2744a
leaq 0x679d1(%rip), %rbp     # 0x8ed52
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 *0x98(%rax)
testl %eax, %eax
je 0x273d0
movl %eax, %r12d
cmpl $0x5, %eax
jne 0x2748f
cmpl $0x0, 0x10(%rsp)
je 0x2743e
movq %r13, %r12
movl 0x14(%rsp), %r13d
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x19f00
movq (%r12), %rsi
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 $0x30, %r12
cmpq %rax, %r14
jb 0x273e2
addl %r14d, 0x14(%rsp)
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %r13
movl 0xc(%rsp), %eax
testl %eax, %eax
jne 0x2738e
movl $0x1, %ebp
movl $0x30, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x18d30
jmp 0x27245
movl $0x40, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x197d0
jmp 0x274ad
movl $0x30, %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 0x27236