// File: /workspace/github_cpp_makefile_star2_O2/stetre[P]moonvulkan/src/flags.c
// Function: ImageCreateFlags
static int ImageCreateFlags(lua_State *L)
    {
    if(lua_type(L, 1) == LUA_TNUMBER)
        return pushimagecreateflags(L, luaL_checkinteger(L, 1));
    lua_pushinteger(L, checkimagecreateflags(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 %r13
movl %r13d, %esi
callq 0x1a110
cmpl $0x3, %eax
jne 0x3aef7
pushq $0x1
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x190d0
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x3adbe
leaq 0x514c2(%rip), %rsi     # 0x8c275
movq %rbx, %rdi
callq 0x1a2e0
movl %r15d, %ebp
testb $0x2, %r14b
je 0x3add5
leaq 0x514b9(%rip), %rsi     # 0x8c284
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x4, %r14b
je 0x3adec
leaq 0x514b3(%rip), %rsi     # 0x8c295
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x8, %r14b
je 0x3ae03
leaq 0x518a4(%rip), %rsi     # 0x8c69d
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x10, %r14b
je 0x3ae1a
leaq 0x5189c(%rip), %rsi     # 0x8c6ac
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb %r14b, %r14b
jns 0x3ae30
leaq 0x51896(%rip), %rsi     # 0x8c6bc
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x8, %r14d
jae 0x3ae48
leaq 0x5189a(%rip), %rsi     # 0x8c6d8
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0xc, %r14d
jae 0x3ae60
leaq 0x51891(%rip), %rsi     # 0x8c6e7
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x9, %r14d
jae 0x3ae78
leaq 0x4aeff(%rip), %rsi     # 0x85d6d
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0xa, %r14d
jae 0x3ae90
leaq 0x51071(%rip), %rsi     # 0x8bef7
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x40, %r14b
je 0x3aea7
leaq 0x5186c(%rip), %rsi     # 0x8c709
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x20, %r14b
je 0x3aebe
leaq 0x51871(%rip), %rsi     # 0x8c725
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0xb, %r14d
jae 0x3aed6
leaq 0x5cd4f(%rip), %rsi     # 0x97c1b
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0xe, %r14d
jae 0x3b0cf
leaq 0x51851(%rip), %rsi     # 0x8c739
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
jmp 0x3b0cf
xorl %r14d, %r14d
leaq 0x51374(%rip), %r15     # 0x8c275
movl %r13d, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a660
testl %eax, %eax
je 0x3b0c1
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x18680
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x18fe0
movl %r13d, %ecx
testl %eax, %eax
je 0x3b08c
movq %r12, %rdi
leaq 0x5133f(%rip), %rsi     # 0x8c284
callq 0x18fe0
pushq $0x2
popq %rcx
testl %eax, %eax
je 0x3b08c
movq %r12, %rdi
leaq 0x51336(%rip), %rsi     # 0x8c295
callq 0x18fe0
pushq $0x4
popq %rcx
testl %eax, %eax
je 0x3b08c
movq %r12, %rdi
leaq 0x51724(%rip), %rsi     # 0x8c69d
callq 0x18fe0
pushq $0x8
popq %rcx
testl %eax, %eax
je 0x3b08c
movq %r12, %rdi
leaq 0x51719(%rip), %rsi     # 0x8c6ac
callq 0x18fe0
pushq $0x10
popq %rcx
testl %eax, %eax
je 0x3b08c
movq %r12, %rdi
leaq 0x5170f(%rip), %rsi     # 0x8c6bc
callq 0x18fe0
testl %eax, %eax
je 0x3b06b
movq %r12, %rdi
leaq 0x51714(%rip), %rsi     # 0x8c6d8
callq 0x18fe0
testl %eax, %eax
je 0x3b072
movq %r12, %rdi
leaq 0x5170c(%rip), %rsi     # 0x8c6e7
callq 0x18fe0
testl %eax, %eax
je 0x3b079
movq %r12, %rdi
leaq 0x4ad7b(%rip), %rsi     # 0x85d6d
callq 0x18fe0
testl %eax, %eax
je 0x3b080
movq %r12, %rdi
leaq 0x50eee(%rip), %rsi     # 0x8bef7
callq 0x18fe0
testl %eax, %eax
je 0x3b087
movq %r12, %rdi
leaq 0x516ed(%rip), %rsi     # 0x8c709
callq 0x18fe0
pushq $0x40
popq %rcx
testl %eax, %eax
je 0x3b08c
movq %r12, %rdi
leaq 0x516f3(%rip), %rsi     # 0x8c725
callq 0x18fe0
pushq $0x20
popq %rcx
testl %eax, %eax
je 0x3b08c
movq %r12, %rdi
leaq 0x5cbd3(%rip), %rsi     # 0x97c1b
callq 0x18fe0
testl %eax, %eax
je 0x3b096
movq %r12, %rdi
leaq 0x516de(%rip), %rsi     # 0x8c739
callq 0x18fe0
movl $0x4000, %ecx           # imm = 0x4000
testl %eax, %eax
je 0x3b08c
jmp 0x3b09d
movl $0x80, %ecx
jmp 0x3b08c
movl $0x100, %ecx            # imm = 0x100
jmp 0x3b08c
movl $0x1000, %ecx           # imm = 0x1000
jmp 0x3b08c
movl $0x200, %ecx            # imm = 0x200
jmp 0x3b08c
movl $0x400, %ecx            # imm = 0x400
orl %ecx, %r14d
incl %ebp
jmp 0x3af04
movl $0x800, %ecx            # imm = 0x800
jmp 0x3b08c
leaq 0x44942(%rip), %rsi     # 0x7f9e6
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x18e90
movq %rbx, %rdi
movl %ebp, %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