// File: /workspace/github_cpp_makefile_star2_O2/stetre[P]moonvulkan/src/flags.c
// Function: QueryPipelineStatisticFlags
static int QueryPipelineStatisticFlags(lua_State *L)
    {
    if(lua_type(L, 1) == LUA_TNUMBER)
        return pushquerypipelinestatisticflags(L, luaL_checkinteger(L, 1));
    lua_pushinteger(L, checkquerypipelinestatisticflags(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 %rbp
movl %ebp, %esi
callq 0x1a110
cmpl $0x3, %eax
jne 0x398d6
pushq $0x1
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x190d0
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x397e5
leaq 0x52b02(%rip), %rsi     # 0x8c2dc
movq %rbx, %rdi
callq 0x1a2e0
movl %r15d, %ebp
testb $0x2, %r14b
je 0x397fc
leaq 0x52b02(%rip), %rsi     # 0x8c2f4
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x4, %r14b
je 0x39813
leaq 0x52b05(%rip), %rsi     # 0x8c30e
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x8, %r14b
je 0x3982a
leaq 0x52b08(%rip), %rsi     # 0x8c328
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x10, %r14b
je 0x39841
leaq 0x52b0d(%rip), %rsi     # 0x8c344
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x20, %r14b
je 0x39858
leaq 0x52b11(%rip), %rsi     # 0x8c35f
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb $0x40, %r14b
je 0x3986f
leaq 0x52b0f(%rip), %rsi     # 0x8c374
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
testb %r14b, %r14b
jns 0x39885
leaq 0x52b0d(%rip), %rsi     # 0x8c388
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x8, %r14d
jae 0x3989d
leaq 0x52b11(%rip), %rsi     # 0x8c3a4
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0x9, %r14d
jae 0x398b5
leaq 0x52b1d(%rip), %rsi     # 0x8c3c8
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
btl $0xa, %r14d
jae 0x39a53
leaq 0x52b2c(%rip), %rsi     # 0x8c3f3
movq %rbx, %rdi
callq 0x1a2e0
incl %ebp
jmp 0x39a53
xorl %r14d, %r14d
leaq 0x529fc(%rip), %r15     # 0x8c2dc
movl %ebp, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x1a660
testl %eax, %eax
je 0x39a45
movq %rbx, %rdi
movl %r13d, %esi
xorl %edx, %edx
callq 0x18680
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x18fe0
movl %ebp, %ecx
testl %eax, %eax
je 0x39a15
movq %r12, %rdi
leaq 0x529cf(%rip), %rsi     # 0x8c2f4
callq 0x18fe0
pushq $0x2
popq %rcx
testl %eax, %eax
je 0x39a15
movq %r12, %rdi
leaq 0x529cf(%rip), %rsi     # 0x8c30e
callq 0x18fe0
pushq $0x4
popq %rcx
testl %eax, %eax
je 0x39a15
movq %r12, %rdi
leaq 0x529cf(%rip), %rsi     # 0x8c328
callq 0x18fe0
pushq $0x8
popq %rcx
testl %eax, %eax
je 0x39a15
movq %r12, %rdi
leaq 0x529d1(%rip), %rsi     # 0x8c344
callq 0x18fe0
pushq $0x10
popq %rcx
testl %eax, %eax
je 0x39a15
movq %r12, %rdi
leaq 0x529d2(%rip), %rsi     # 0x8c35f
callq 0x18fe0
pushq $0x20
popq %rcx
testl %eax, %eax
je 0x39a15
movq %r12, %rdi
leaq 0x529d1(%rip), %rsi     # 0x8c374
callq 0x18fe0
pushq $0x40
popq %rcx
testl %eax, %eax
je 0x39a15
movq %r12, %rdi
leaq 0x529cf(%rip), %rsi     # 0x8c388
callq 0x18fe0
testl %eax, %eax
je 0x39a02
movq %r12, %rdi
leaq 0x529d8(%rip), %rsi     # 0x8c3a4
callq 0x18fe0
testl %eax, %eax
je 0x39a09
movq %r12, %rdi
leaq 0x529e9(%rip), %rsi     # 0x8c3c8
callq 0x18fe0
testl %eax, %eax
je 0x39a10
movq %r12, %rdi
leaq 0x52a01(%rip), %rsi     # 0x8c3f3
callq 0x18fe0
movl $0x400, %ecx            # imm = 0x400
testl %eax, %eax
je 0x39a15
jmp 0x39a20
movl $0x80, %ecx
jmp 0x39a15
movl $0x100, %ecx            # imm = 0x100
jmp 0x39a15
movl $0x200, %ecx            # imm = 0x200
orl %ecx, %r14d
incl %r13d
jmp 0x398e3
leaq 0x45fbf(%rip), %rsi     # 0x7f9e6
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x18e90
movq %rbx, %rdi
movl %r13d, %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