// File: /workspace/github_cpp_makefile_star2_O1/stetre[P]moonvulkan/src/flags.c
// Function: SurfaceTransformFlagsKHR
static int SurfaceTransformFlagsKHR(lua_State *L)
    {
    if(lua_type(L, 1) == LUA_TNUMBER)
        return pushsurfacetransformflags(L, luaL_checkinteger(L, 1));
    lua_pushinteger(L, checksurfacetransformflags(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 0x3fc1d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x190f0
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x3fb5c
leaq 0x583fb(%rip), %rsi     # 0x97f4a
movq %rbx, %rdi
callq 0x1a300
movl $0x1, %ebp
testb $0x2, %r14b
je 0x3fb73
leaq 0x5f133(%rip), %rsi     # 0x9ec9c
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb $0x4, %r14b
je 0x3fb8a
leaq 0x5f138(%rip), %rsi     # 0x9ecb8
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb $0x8, %r14b
je 0x3fba1
leaq 0x5f13e(%rip), %rsi     # 0x9ecd5
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb $0x10, %r14b
je 0x3fbb8
leaq 0x5f0ca(%rip), %rsi     # 0x9ec78
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb $0x20, %r14b
je 0x3fbcf
leaq 0x5f0c5(%rip), %rsi     # 0x9ec8a
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb $0x40, %r14b
je 0x3fbe6
leaq 0x5f0ca(%rip), %rsi     # 0x9eca6
movq %rbx, %rdi
callq 0x1a300
incl %ebp
testb %r14b, %r14b
jns 0x3fbfc
leaq 0x5f0d1(%rip), %rsi     # 0x9ecc3
movq %rbx, %rdi
callq 0x1a300
incl %ebp
btl $0x8, %r14d
jae 0x3fd6a
leaq 0x5f0d2(%rip), %rsi     # 0x9ece0
movq %rbx, %rdi
callq 0x1a300
incl %ebp
jmp 0x3fd6a
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1a680
xorl %r14d, %r14d
testl %eax, %eax
je 0x3fd5a
leaq 0x58309(%rip), %r15     # 0x97f4a
leaq 0x5f054(%rip), %r12     # 0x9ec9c
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 0x3fd0d
movq %r13, %rdi
movq %r12, %rsi
callq 0x19000
testl %eax, %eax
je 0x3fd14
movq %r13, %rdi
leaq 0x5f031(%rip), %rsi     # 0x9ecb8
callq 0x19000
testl %eax, %eax
je 0x3fd1b
movq %r13, %rdi
leaq 0x5f037(%rip), %rsi     # 0x9ecd5
callq 0x19000
testl %eax, %eax
je 0x3fd22
movq %r13, %rdi
leaq 0x5efc7(%rip), %rsi     # 0x9ec78
callq 0x19000
testl %eax, %eax
je 0x3fd29
movq %r13, %rdi
leaq 0x5efc6(%rip), %rsi     # 0x9ec8a
callq 0x19000
testl %eax, %eax
je 0x3fd30
movq %r13, %rdi
leaq 0x5efcf(%rip), %rsi     # 0x9eca6
callq 0x19000
testl %eax, %eax
je 0x3fd37
movq %r13, %rdi
leaq 0x5efd9(%rip), %rsi     # 0x9ecc3
callq 0x19000
testl %eax, %eax
je 0x3fd3e
movq %r13, %rdi
leaq 0x5efe3(%rip), %rsi     # 0x9ece0
callq 0x19000
movl $0x100, %ecx            # imm = 0x100
testl %eax, %eax
je 0x3fd43
jmp 0x3fd7b
movl $0x1, %ecx
jmp 0x3fd43
movl $0x2, %ecx
jmp 0x3fd43
movl $0x4, %ecx
jmp 0x3fd43
movl $0x8, %ecx
jmp 0x3fd43
movl $0x10, %ecx
jmp 0x3fd43
movl $0x20, %ecx
jmp 0x3fd43
movl $0x40, %ecx
jmp 0x3fd43
movl $0x80, %ecx
orl %ecx, %r14d
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a680
testl %eax, %eax
jne 0x3fc48
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 0x51c64(%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 0x3fd5a