// File: /workspace/github_cpp_makefile_star2_O3/stetre[P]moonvulkan/src/flags.c
// Function: BufferUsageFlags
static int BufferUsageFlags(lua_State *L)
    {
    if(lua_type(L, 1) == LUA_TNUMBER)
        return pushbufferusageflags(L, luaL_checkinteger(L, 1));
    lua_pushinteger(L, checkbufferusageflags(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 0x3b675
movq %rbx, %rdi
movl $0x1, %esi
callq 0x190e0
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x3b50c
leaq 0x5fc76(%rip), %rsi     # 0x9b175
movq %rbx, %rdi
callq 0x1a2c0
movl $0x1, %ebp
testb $0x2, %r14b
je 0x3b523
leaq 0x5fc69(%rip), %rsi     # 0x9b182
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x4, %r14b
je 0x3b53a
leaq 0x5885a(%rip), %rsi     # 0x93d8a
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x8, %r14b
je 0x3b551
leaq 0x5887d(%rip), %rsi     # 0x93dc4
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x10, %r14b
je 0x3b568
leaq 0x588a0(%rip), %rsi     # 0x93dfe
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x20, %r14b
je 0x3b57f
leaq 0x588b7(%rip), %rsi     # 0x93e2c
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x40, %r14b
je 0x3b596
leaq 0x5fc03(%rip), %rsi     # 0x9b18f
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb %r14b, %r14b
jns 0x3b5ac
leaq 0x603da(%rip), %rsi     # 0x9b97c
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0x8, %r14d
jae 0x3b5c4
leaq 0x5fbe2(%rip), %rsi     # 0x9b19c
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0x9, %r14d
jae 0x3b5dc
leaq 0x5fbda(%rip), %rsi     # 0x9b1ac
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0xb, %r14d
jae 0x3b5f4
leaq 0x5fbd8(%rip), %rsi     # 0x9b1c2
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0xc, %r14d
jae 0x3b60c
leaq 0x5fbda(%rip), %rsi     # 0x9b1dc
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0x11, %r14d
jae 0x3b624
leaq 0x5fbe4(%rip), %rsi     # 0x9b1fe
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0x13, %r14d
jae 0x3b63c
leaq 0x5fbe2(%rip), %rsi     # 0x9b214
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0x14, %r14d
jae 0x3b654
leaq 0x5fbf7(%rip), %rsi     # 0x9b241
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0xa, %r14d
jae 0x3b8a7
leaq 0x5fbfa(%rip), %rsi     # 0x9b260
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
jmp 0x3b8a7
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1a640
xorl %r14d, %r14d
testl %eax, %eax
je 0x3b897
leaq 0x5fadc(%rip), %r15     # 0x9b175
leaq 0x5fae2(%rip), %r12     # 0x9b182
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 0x3b819
movq %r13, %rdi
movq %r12, %rsi
callq 0x18ff0
testl %eax, %eax
je 0x3b820
movq %r13, %rdi
leaq 0x586ab(%rip), %rsi     # 0x93d8a
callq 0x18ff0
testl %eax, %eax
je 0x3b827
movq %r13, %rdi
leaq 0x586ce(%rip), %rsi     # 0x93dc4
callq 0x18ff0
testl %eax, %eax
je 0x3b82e
movq %r13, %rdi
leaq 0x586f1(%rip), %rsi     # 0x93dfe
callq 0x18ff0
testl %eax, %eax
je 0x3b835
movq %r13, %rdi
leaq 0x58708(%rip), %rsi     # 0x93e2c
callq 0x18ff0
testl %eax, %eax
je 0x3b83c
movq %r13, %rdi
leaq 0x5fa54(%rip), %rsi     # 0x9b18f
callq 0x18ff0
testl %eax, %eax
je 0x3b843
movq %r13, %rdi
leaq 0x6022a(%rip), %rsi     # 0x9b97c
callq 0x18ff0
testl %eax, %eax
je 0x3b84a
movq %r13, %rdi
leaq 0x5fa33(%rip), %rsi     # 0x9b19c
callq 0x18ff0
testl %eax, %eax
je 0x3b851
movq %r13, %rdi
leaq 0x5fa2c(%rip), %rsi     # 0x9b1ac
callq 0x18ff0
testl %eax, %eax
je 0x3b858
movq %r13, %rdi
leaq 0x5fa2b(%rip), %rsi     # 0x9b1c2
callq 0x18ff0
testl %eax, %eax
je 0x3b85f
movq %r13, %rdi
leaq 0x5fa2e(%rip), %rsi     # 0x9b1dc
callq 0x18ff0
testl %eax, %eax
je 0x3b866
movq %r13, %rdi
leaq 0x5fa39(%rip), %rsi     # 0x9b1fe
callq 0x18ff0
testl %eax, %eax
je 0x3b86d
movq %r13, %rdi
leaq 0x5fa38(%rip), %rsi     # 0x9b214
callq 0x18ff0
testl %eax, %eax
je 0x3b874
movq %r13, %rdi
leaq 0x5fa4e(%rip), %rsi     # 0x9b241
callq 0x18ff0
testl %eax, %eax
je 0x3b87b
movq %r13, %rdi
leaq 0x5fa5a(%rip), %rsi     # 0x9b260
callq 0x18ff0
movl $0x400, %ecx            # imm = 0x400
testl %eax, %eax
je 0x3b880
jmp 0x3b8b8
movl $0x1, %ecx
jmp 0x3b880
movl $0x2, %ecx
jmp 0x3b880
movl $0x4, %ecx
jmp 0x3b880
movl $0x8, %ecx
jmp 0x3b880
movl $0x10, %ecx
jmp 0x3b880
movl $0x20, %ecx
jmp 0x3b880
movl $0x40, %ecx
jmp 0x3b880
movl $0x80, %ecx
jmp 0x3b880
movl $0x100, %ecx            # imm = 0x100
jmp 0x3b880
movl $0x200, %ecx            # imm = 0x200
jmp 0x3b880
movl $0x800, %ecx            # imm = 0x800
jmp 0x3b880
movl $0x1000, %ecx           # imm = 0x1000
jmp 0x3b880
movl $0x20000, %ecx          # imm = 0x20000
jmp 0x3b880
movl $0x80000, %ecx          # imm = 0x80000
jmp 0x3b880
movl $0x100000, %ecx         # imm = 0x100000
orl %ecx, %r14d
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a640
testl %eax, %eax
jne 0x3b6a0
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 0x53127(%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 0x3b897