// File: /workspace/github_cpp_makefile_star2_O2/stetre[P]moonvulkan/src/flags.c
// Function: ImageAspectFlags
static int ImageAspectFlags(lua_State *L)
    {
    if(lua_type(L, 1) == LUA_TNUMBER)
        return pushimageaspectflags(L, luaL_checkinteger(L, 1));
    lua_pushinteger(L, checkimageaspectflags(L, 1));
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rbp
movl %ebp, %esi
callq 0x1a110
cmpl $0x3, %eax
jne 0x39e61
pushq $0x1
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x190d0
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x39d70
leaq 0x4a0d8(%rip), %rsi     # 0x83e3d
movq %rbx, %rdi
callq 0x1a2e0
movl %r15d, %ebp
testb $0x2, %r14b
je 0x39d87
leaq 0x52986(%rip), %rsi     # 0x8c703
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x4, %r14b
je 0x39d9e
leaq 0x526ba(%rip), %rsi     # 0x8c44e
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x8, %r14b
je 0x39db5
leaq 0x57abe(%rip), %rsi     # 0x91869
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x10, %r14b
je 0x39dcc
leaq 0x5269b(%rip), %rsi     # 0x8c45d
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x20, %r14b
je 0x39de3
leaq 0x52693(%rip), %rsi     # 0x8c46c
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x40, %r14b
je 0x39dfa
leaq 0x5268b(%rip), %rsi     # 0x8c47b
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb %r14b, %r14b
jns 0x39e10
leaq 0x52650(%rip), %rsi     # 0x8c456
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x8, %r14d
jae 0x39e28
leaq 0x52647(%rip), %rsi     # 0x8c465
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x9, %r14d
jae 0x39e40
leaq 0x5263e(%rip), %rsi     # 0x8c474
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0xa, %r14d
jae 0x39fde
leaq 0x52631(%rip), %rsi     # 0x8c483
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
jmp 0x39fde
xorl %r14d, %r14d
leaq 0x49fd2(%rip), %r15     # 0x83e3d
movl %ebp, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x1a660
testl %eax, %eax
je 0x39fd0
movq %rbx, %rdi
movl %r13d, %esi
xorl %edx, %edx
callq 0x18680
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x18fe0
movl %ebp, %ecx
testl %eax, %eax
je 0x39fa0
movq %r12, %rdi
leaq 0x52853(%rip), %rsi     # 0x8c703
callq 0x18fe0
pushq $0x2
popq %rcx
testl %eax, %eax
je 0x39fa0
movq %r12, %rdi
leaq 0x52584(%rip), %rsi     # 0x8c44e
callq 0x18fe0
pushq $0x4
popq %rcx
testl %eax, %eax
je 0x39fa0
movq %r12, %rdi
leaq 0x57985(%rip), %rsi     # 0x91869
callq 0x18fe0
pushq $0x8
popq %rcx
testl %eax, %eax
je 0x39fa0
movq %r12, %rdi
leaq 0x5255f(%rip), %rsi     # 0x8c45d
callq 0x18fe0
pushq $0x10
popq %rcx
testl %eax, %eax
je 0x39fa0
movq %r12, %rdi
leaq 0x52554(%rip), %rsi     # 0x8c46c
callq 0x18fe0
pushq $0x20
popq %rcx
testl %eax, %eax
je 0x39fa0
movq %r12, %rdi
leaq 0x5254d(%rip), %rsi     # 0x8c47b
callq 0x18fe0
pushq $0x40
popq %rcx
testl %eax, %eax
je 0x39fa0
movq %r12, %rdi
leaq 0x52512(%rip), %rsi     # 0x8c456
callq 0x18fe0
testl %eax, %eax
je 0x39f8d
movq %r12, %rdi
leaq 0x5250e(%rip), %rsi     # 0x8c465
callq 0x18fe0
testl %eax, %eax
je 0x39f94
movq %r12, %rdi
leaq 0x5250a(%rip), %rsi     # 0x8c474
callq 0x18fe0
testl %eax, %eax
je 0x39f9b
movq %r12, %rdi
leaq 0x52506(%rip), %rsi     # 0x8c483
callq 0x18fe0
movl $0x400, %ecx            # imm = 0x400
testl %eax, %eax
je 0x39fa0
jmp 0x39fab
movl $0x80, %ecx
jmp 0x39fa0
movl $0x100, %ecx            # imm = 0x100
jmp 0x39fa0
movl $0x200, %ecx            # imm = 0x200
orl %ecx, %r14d
incl %r13d
jmp 0x39e6e
leaq 0x45a34(%rip), %rsi     # 0x7f9e6
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x18e90
movq %rbx, %rdi
movl %r13d, %esi
movq %rax, %rdx
callq 0x18420
movl %eax, %r14d
movl %r14d, %esi
movq %rbx, %rdi
callq 0x18b50
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq