// File: /workspace/github_cpp_makefile_star2_O3/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
movl $0x1, %esi
callq 0x1a0f0
cmpl $0x3, %eax
jne 0x3d4d3
movq %rbx, %rdi
movl $0x1, %esi
callq 0x190e0
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x3d39a
leaq 0x5dee8(%rip), %rsi     # 0x9b275
movq %rbx, %rdi
callq 0x1a2c0
movl $0x1, %ebp
testb $0x2, %r14b
je 0x3d3b1
leaq 0x5dedd(%rip), %rsi     # 0x9b284
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x4, %r14b
je 0x3d3c8
leaq 0x5ded7(%rip), %rsi     # 0x9b295
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x8, %r14b
je 0x3d3df
leaq 0x5e2c8(%rip), %rsi     # 0x9b69d
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x10, %r14b
je 0x3d3f6
leaq 0x5e2c0(%rip), %rsi     # 0x9b6ac
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb %r14b, %r14b
jns 0x3d40c
leaq 0x5e2ba(%rip), %rsi     # 0x9b6bc
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0x8, %r14d
jae 0x3d424
leaq 0x5e2be(%rip), %rsi     # 0x9b6d8
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0xc, %r14d
jae 0x3d43c
leaq 0x5e2b5(%rip), %rsi     # 0x9b6e7
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0x9, %r14d
jae 0x3d454
leaq 0x57923(%rip), %rsi     # 0x94d6d
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0xa, %r14d
jae 0x3d46c
leaq 0x5da95(%rip), %rsi     # 0x9aef7
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x40, %r14b
je 0x3d483
leaq 0x5e290(%rip), %rsi     # 0x9b709
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x20, %r14b
je 0x3d49a
leaq 0x5e295(%rip), %rsi     # 0x9b725
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0xb, %r14d
jae 0x3d4b2
leaq 0x697a3(%rip), %rsi     # 0xa6c4b
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0xe, %r14d
jae 0x3d6c5
leaq 0x5e275(%rip), %rsi     # 0x9b739
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
jmp 0x3d6c5
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1a640
xorl %r14d, %r14d
testl %eax, %eax
je 0x3d6b5
leaq 0x5dd7e(%rip), %r15     # 0x9b275
leaq 0x5dd86(%rip), %r12     # 0x9b284
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x18680
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x18ff0
testl %eax, %eax
je 0x3d645
movq %r13, %rdi
movq %r12, %rsi
callq 0x18ff0
testl %eax, %eax
je 0x3d64c
movq %r13, %rdi
leaq 0x5dd58(%rip), %rsi     # 0x9b295
callq 0x18ff0
testl %eax, %eax
je 0x3d653
movq %r13, %rdi
leaq 0x5e149(%rip), %rsi     # 0x9b69d
callq 0x18ff0
testl %eax, %eax
je 0x3d65a
movq %r13, %rdi
leaq 0x5e141(%rip), %rsi     # 0x9b6ac
callq 0x18ff0
testl %eax, %eax
je 0x3d661
movq %r13, %rdi
leaq 0x5e13a(%rip), %rsi     # 0x9b6bc
callq 0x18ff0
testl %eax, %eax
je 0x3d668
movq %r13, %rdi
leaq 0x5e13f(%rip), %rsi     # 0x9b6d8
callq 0x18ff0
testl %eax, %eax
je 0x3d66f
movq %r13, %rdi
leaq 0x5e137(%rip), %rsi     # 0x9b6e7
callq 0x18ff0
testl %eax, %eax
je 0x3d676
movq %r13, %rdi
leaq 0x577a6(%rip), %rsi     # 0x94d6d
callq 0x18ff0
testl %eax, %eax
je 0x3d67d
movq %r13, %rdi
leaq 0x5d919(%rip), %rsi     # 0x9aef7
callq 0x18ff0
testl %eax, %eax
je 0x3d684
movq %r13, %rdi
leaq 0x5e114(%rip), %rsi     # 0x9b709
callq 0x18ff0
testl %eax, %eax
je 0x3d68b
movq %r13, %rdi
leaq 0x5e119(%rip), %rsi     # 0x9b725
callq 0x18ff0
testl %eax, %eax
je 0x3d692
movq %r13, %rdi
leaq 0x6962c(%rip), %rsi     # 0xa6c4b
callq 0x18ff0
testl %eax, %eax
je 0x3d699
movq %r13, %rdi
leaq 0x5e107(%rip), %rsi     # 0x9b739
callq 0x18ff0
movl $0x4000, %ecx           # imm = 0x4000
testl %eax, %eax
je 0x3d69e
jmp 0x3d6d6
movl $0x1, %ecx
jmp 0x3d69e
movl $0x2, %ecx
jmp 0x3d69e
movl $0x4, %ecx
jmp 0x3d69e
movl $0x8, %ecx
jmp 0x3d69e
movl $0x10, %ecx
jmp 0x3d69e
movl $0x80, %ecx
jmp 0x3d69e
movl $0x100, %ecx            # imm = 0x100
jmp 0x3d69e
movl $0x1000, %ecx           # imm = 0x1000
jmp 0x3d69e
movl $0x200, %ecx            # imm = 0x200
jmp 0x3d69e
movl $0x400, %ecx            # imm = 0x400
jmp 0x3d69e
movl $0x40, %ecx
jmp 0x3d69e
movl $0x20, %ecx
jmp 0x3d69e
movl $0x800, %ecx            # imm = 0x800
orl %ecx, %r14d
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a640
testl %eax, %eax
jne 0x3d4fe
movl %r14d, %esi
movq %rbx, %rdi
callq 0x18b50
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x51309(%rip), %rsi     # 0x8e9e6
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x18ea0
movq %rbx, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x18410
movl %eax, %r14d
jmp 0x3d6b5