// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x1
popq %r13
movl %r13d, %esi
callq 0x1a110
cmpl $0x3, %eax
jne 0x39275
pushq $0x1
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x190d0
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x3910c
leaq 0x53074(%rip), %rsi     # 0x8c175
movq %rbx, %rdi
callq 0x1a2e0
movl %r15d, %ebp
testb $0x2, %r14b
je 0x39123
leaq 0x53069(%rip), %rsi     # 0x8c182
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x4, %r14b
je 0x3913a
leaq 0x4bc5a(%rip), %rsi     # 0x84d8a
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x8, %r14b
je 0x39151
leaq 0x4bc7d(%rip), %rsi     # 0x84dc4
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x10, %r14b
je 0x39168
leaq 0x4bca0(%rip), %rsi     # 0x84dfe
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x20, %r14b
je 0x3917f
leaq 0x4bcb7(%rip), %rsi     # 0x84e2c
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x40, %r14b
je 0x39196
leaq 0x53003(%rip), %rsi     # 0x8c18f
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb %r14b, %r14b
jns 0x391ac
leaq 0x537da(%rip), %rsi     # 0x8c97c
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x8, %r14d
jae 0x391c4
leaq 0x52fe2(%rip), %rsi     # 0x8c19c
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x9, %r14d
jae 0x391dc
leaq 0x52fda(%rip), %rsi     # 0x8c1ac
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0xb, %r14d
jae 0x391f4
leaq 0x52fd8(%rip), %rsi     # 0x8c1c2
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0xc, %r14d
jae 0x3920c
leaq 0x52fda(%rip), %rsi     # 0x8c1dc
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x11, %r14d
jae 0x39224
leaq 0x52fe4(%rip), %rsi     # 0x8c1fe
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x13, %r14d
jae 0x3923c
leaq 0x52fe2(%rip), %rsi     # 0x8c214
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x14, %r14d
jae 0x39254
leaq 0x52ff7(%rip), %rsi     # 0x8c241
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0xa, %r14d
jae 0x39485
leaq 0x52ffa(%rip), %rsi     # 0x8c260
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
jmp 0x39485
xorl %r14d, %r14d
leaq 0x52ef6(%rip), %r15     # 0x8c175
movl %r13d, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a660
testl %eax, %eax
je 0x39477
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 0x39449
movq %r12, %rdi
leaq 0x52ebf(%rip), %rsi     # 0x8c182
callq 0x18fe0
pushq $0x2
popq %rcx
testl %eax, %eax
je 0x39449
movq %r12, %rdi
leaq 0x4baad(%rip), %rsi     # 0x84d8a
callq 0x18fe0
pushq $0x4
popq %rcx
testl %eax, %eax
je 0x39449
movq %r12, %rdi
leaq 0x4bacd(%rip), %rsi     # 0x84dc4
callq 0x18fe0
pushq $0x8
popq %rcx
testl %eax, %eax
je 0x39449
movq %r12, %rdi
leaq 0x4baed(%rip), %rsi     # 0x84dfe
callq 0x18fe0
pushq $0x10
popq %rcx
testl %eax, %eax
je 0x39449
movq %r12, %rdi
leaq 0x4bb01(%rip), %rsi     # 0x84e2c
callq 0x18fe0
pushq $0x20
popq %rcx
testl %eax, %eax
je 0x39449
movq %r12, %rdi
leaq 0x52e4a(%rip), %rsi     # 0x8c18f
callq 0x18fe0
pushq $0x40
popq %rcx
testl %eax, %eax
je 0x39449
movq %r12, %rdi
leaq 0x5361d(%rip), %rsi     # 0x8c97c
callq 0x18fe0
testl %eax, %eax
je 0x39413
movq %r12, %rdi
leaq 0x52e26(%rip), %rsi     # 0x8c19c
callq 0x18fe0
testl %eax, %eax
je 0x3941a
movq %r12, %rdi
leaq 0x52e1f(%rip), %rsi     # 0x8c1ac
callq 0x18fe0
testl %eax, %eax
je 0x39421
movq %r12, %rdi
leaq 0x52e1e(%rip), %rsi     # 0x8c1c2
callq 0x18fe0
testl %eax, %eax
je 0x39428
movq %r12, %rdi
leaq 0x52e25(%rip), %rsi     # 0x8c1dc
callq 0x18fe0
testl %eax, %eax
je 0x3942f
movq %r12, %rdi
leaq 0x52e34(%rip), %rsi     # 0x8c1fe
callq 0x18fe0
testl %eax, %eax
je 0x39436
movq %r12, %rdi
leaq 0x52e37(%rip), %rsi     # 0x8c214
callq 0x18fe0
testl %eax, %eax
je 0x3943d
movq %r12, %rdi
leaq 0x52e51(%rip), %rsi     # 0x8c241
callq 0x18fe0
testl %eax, %eax
je 0x39444
movq %r12, %rdi
leaq 0x52e5d(%rip), %rsi     # 0x8c260
callq 0x18fe0
movl $0x400, %ecx            # imm = 0x400
testl %eax, %eax
je 0x39449
jmp 0x39453
movl $0x80, %ecx
jmp 0x39449
movl $0x100, %ecx            # imm = 0x100
jmp 0x39449
movl $0x200, %ecx            # imm = 0x200
jmp 0x39449
movl $0x800, %ecx            # imm = 0x800
jmp 0x39449
movl $0x1000, %ecx           # imm = 0x1000
jmp 0x39449
movl $0x20000, %ecx          # imm = 0x20000
jmp 0x39449
movl $0x80000, %ecx          # imm = 0x80000
jmp 0x39449
movl $0x100000, %ecx         # imm = 0x100000
orl %ecx, %r14d
incl %ebp
jmp 0x39282
leaq 0x4658c(%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