// File: /workspace/github_cpp_makefile_star2_O1/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 0x69d2d(%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, 0x1a0(%rax)
movq %r14, 0x28(%rsp)
je 0x27282
leaq 0x24(%rsp), %r12
movq %rbx, %rdi
movl $0x20, %esi
movq %r12, %rdx
callq 0x19f20
movq %rax, %r13
cmpl $0x0, (%r12)
je 0x27238
movl $0x40, %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 *0x1a0(%rax)
testl %eax, %eax
je 0x2734e
movl %eax, %ebp
movl $0x40, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x19800
jmp 0x27327
cmpq $0x0, 0x98(%rax)
je 0x2745a
leaq 0x24(%rsp), %r12
movl $0x30, %edx
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x20, %ecx
movq %r12, %r8
callq 0x19840
movq %rax, %r13
cmpl $0x0, (%r12)
je 0x272df
movl $0x30, %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 *0x98(%rax)
testl %eax, %eax
je 0x27470
movl %eax, %ebp
movl $0x30, %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 0x27435
movq $0x0, 0x10(%rsp)
leaq 0x6a9e9(%rip), %rbp     # 0x91d52
movq %r13, 0x18(%rsp)
movl 0x8(%rsp), %eax
cmpl $0x21, %eax
jb 0x27384
movl $0x20, 0xc(%rsp)
addl $-0x20, %eax
jmp 0x2738a
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 *0x1a0(%rax)
testl %eax, %eax
je 0x273b3
movl %eax, %r12d
cmpl $0x5, %eax
jne 0x2757e
cmpl $0x0, 0xc(%rsp)
je 0x2742a
movq %r13, %r12
movl 0x10(%rsp), %r13d
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x19100
movq 0x10(%r12), %rsi
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 $0x40, %r12
cmpq %rax, %r14
jb 0x273c5
movq 0x10(%rsp), %rax
addl %r14d, %eax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %r13
cmpl $0x0, 0x8(%rsp)
jne 0x2736e
movl $0x1, %ebp
movl $0x40, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x19800
jmp 0x2733d
leaq 0x6a2dd(%rip), %rsi     # 0x9173e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x19be0
jmp 0x2733b
cmpl $0x0, 0x8(%rsp)
je 0x27556
movq $0x0, 0x10(%rsp)
leaq 0x6a8c7(%rip), %rbp     # 0x91d52
movq %r13, 0x18(%rsp)
movl 0x8(%rsp), %eax
cmpl $0x21, %eax
jb 0x274a6
movl $0x20, 0xc(%rsp)
addl $-0x20, %eax
jmp 0x274ac
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 *0x98(%rax)
testl %eax, %eax
je 0x274d5
movl %eax, %r12d
cmpl $0x5, %eax
jne 0x2759b
cmpl $0x0, 0xc(%rsp)
je 0x2754b
movq %r13, %r12
movl 0x10(%rsp), %r13d
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x19f40
movq (%r12), %rsi
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 $0x30, %r12
cmpq %rax, %r14
jb 0x274e7
movq 0x10(%rsp), %rax
addl %r14d, %eax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %r13
cmpl $0x0, 0x8(%rsp)
jne 0x27490
movl $0x1, %ebp
movl $0x30, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x18d40
jmp 0x2733d
movl $0x40, %edx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x20, %ecx
movl $0x1, %r8d
callq 0x19800
jmp 0x275b9
movl $0x30, %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 0x2732e