// File: /workspace/github_cpp_makefile_star2_O1/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 0x1a130
cmpl $0x3, %eax
jne 0x3d6a3
movq %rbx, %rdi
movl $0x1, %esi
callq 0x190f0
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x3d56a
leaq 0x60cf5(%rip), %rsi     # 0x9e252
movq %rbx, %rdi
callq 0x1a300
movl $0x1, %ebp
testb $0x2, %r14b
je 0x3d581
leaq 0x60cea(%rip), %rsi     # 0x9e261
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb $0x4, %r14b
je 0x3d598
leaq 0x60ce4(%rip), %rsi     # 0x9e272
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb $0x8, %r14b
je 0x3d5af
leaq 0x610d5(%rip), %rsi     # 0x9e67a
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb $0x10, %r14b
je 0x3d5c6
leaq 0x610cd(%rip), %rsi     # 0x9e689
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb %r14b, %r14b
jns 0x3d5dc
leaq 0x610c7(%rip), %rsi     # 0x9e699
movq %rbx, %rdi
callq 0x1a300
incl %ebp
btl $0x8, %r14d
jae 0x3d5f4
leaq 0x610cb(%rip), %rsi     # 0x9e6b5
movq %rbx, %rdi
callq 0x1a300
incl %ebp
btl $0xc, %r14d
jae 0x3d60c
leaq 0x610c2(%rip), %rsi     # 0x9e6c4
movq %rbx, %rdi
callq 0x1a300
incl %ebp
btl $0x9, %r14d
jae 0x3d624
leaq 0x5a753(%rip), %rsi     # 0x97d6d
movq %rbx, %rdi
callq 0x1a300
incl %ebp
btl $0xa, %r14d
jae 0x3d63c
leaq 0x608a2(%rip), %rsi     # 0x9ded4
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb $0x40, %r14b
je 0x3d653
leaq 0x6109d(%rip), %rsi     # 0x9e6e6
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb $0x20, %r14b
je 0x3d66a
leaq 0x610a2(%rip), %rsi     # 0x9e702
movq %rbx, %rdi
callq 0x1a300
incl %ebp
btl $0xb, %r14d
jae 0x3d682
leaq 0x6c5b3(%rip), %rsi     # 0xa9c2b
movq %rbx, %rdi
callq 0x1a300
incl %ebp
btl $0xe, %r14d
jae 0x3d895
leaq 0x61082(%rip), %rsi     # 0x9e716
movq %rbx, %rdi
callq 0x1a300
incl %ebp
jmp 0x3d895
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1a680
xorl %r14d, %r14d
testl %eax, %eax
je 0x3d885
leaq 0x60b8b(%rip), %r15     # 0x9e252
leaq 0x60b93(%rip), %r12     # 0x9e261
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x18690
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x19000
testl %eax, %eax
je 0x3d815
movq %r13, %rdi
movq %r12, %rsi
callq 0x19000
testl %eax, %eax
je 0x3d81c
movq %r13, %rdi
leaq 0x60b65(%rip), %rsi     # 0x9e272
callq 0x19000
testl %eax, %eax
je 0x3d823
movq %r13, %rdi
leaq 0x60f56(%rip), %rsi     # 0x9e67a
callq 0x19000
testl %eax, %eax
je 0x3d82a
movq %r13, %rdi
leaq 0x60f4e(%rip), %rsi     # 0x9e689
callq 0x19000
testl %eax, %eax
je 0x3d831
movq %r13, %rdi
leaq 0x60f47(%rip), %rsi     # 0x9e699
callq 0x19000
testl %eax, %eax
je 0x3d838
movq %r13, %rdi
leaq 0x60f4c(%rip), %rsi     # 0x9e6b5
callq 0x19000
testl %eax, %eax
je 0x3d83f
movq %r13, %rdi
leaq 0x60f44(%rip), %rsi     # 0x9e6c4
callq 0x19000
testl %eax, %eax
je 0x3d846
movq %r13, %rdi
leaq 0x5a5d6(%rip), %rsi     # 0x97d6d
callq 0x19000
testl %eax, %eax
je 0x3d84d
movq %r13, %rdi
leaq 0x60726(%rip), %rsi     # 0x9ded4
callq 0x19000
testl %eax, %eax
je 0x3d854
movq %r13, %rdi
leaq 0x60f21(%rip), %rsi     # 0x9e6e6
callq 0x19000
testl %eax, %eax
je 0x3d85b
movq %r13, %rdi
leaq 0x60f26(%rip), %rsi     # 0x9e702
callq 0x19000
testl %eax, %eax
je 0x3d862
movq %r13, %rdi
leaq 0x6c43c(%rip), %rsi     # 0xa9c2b
callq 0x19000
testl %eax, %eax
je 0x3d869
movq %r13, %rdi
leaq 0x60f14(%rip), %rsi     # 0x9e716
callq 0x19000
movl $0x4000, %ecx           # imm = 0x4000
testl %eax, %eax
je 0x3d86e
jmp 0x3d8a6
movl $0x1, %ecx
jmp 0x3d86e
movl $0x2, %ecx
jmp 0x3d86e
movl $0x4, %ecx
jmp 0x3d86e
movl $0x8, %ecx
jmp 0x3d86e
movl $0x10, %ecx
jmp 0x3d86e
movl $0x80, %ecx
jmp 0x3d86e
movl $0x100, %ecx            # imm = 0x100
jmp 0x3d86e
movl $0x1000, %ecx           # imm = 0x1000
jmp 0x3d86e
movl $0x200, %ecx            # imm = 0x200
jmp 0x3d86e
movl $0x400, %ecx            # imm = 0x400
jmp 0x3d86e
movl $0x40, %ecx
jmp 0x3d86e
movl $0x20, %ecx
jmp 0x3d86e
movl $0x800, %ecx            # imm = 0x800
orl %ecx, %r14d
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a680
testl %eax, %eax
jne 0x3d6ce
movl %r14d, %esi
movq %rbx, %rdi
callq 0x18b60
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x54139(%rip), %rsi     # 0x919e6
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x18eb0
movq %rbx, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x18420
movl %eax, %r14d
jmp 0x3d885