// File: /workspace/github_cpp_makefile_star2_O3/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 0x1a0f0
cmpl $0x3, %eax
jne 0x3fa4d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x190e0
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x3f98c
leaq 0x555cb(%rip), %rsi     # 0x94f4a
movq %rbx, %rdi
callq 0x1a2c0
movl $0x1, %ebp
testb $0x2, %r14b
je 0x3f9a3
leaq 0x5c326(%rip), %rsi     # 0x9bcbf
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x4, %r14b
je 0x3f9ba
leaq 0x5c32b(%rip), %rsi     # 0x9bcdb
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x8, %r14b
je 0x3f9d1
leaq 0x5c331(%rip), %rsi     # 0x9bcf8
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x10, %r14b
je 0x3f9e8
leaq 0x5c2bd(%rip), %rsi     # 0x9bc9b
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x20, %r14b
je 0x3f9ff
leaq 0x5c2b8(%rip), %rsi     # 0x9bcad
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb $0x40, %r14b
je 0x3fa16
leaq 0x5c2bd(%rip), %rsi     # 0x9bcc9
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
testb %r14b, %r14b
jns 0x3fa2c
leaq 0x5c2c4(%rip), %rsi     # 0x9bce6
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
btl $0x8, %r14d
jae 0x3fb9a
leaq 0x5c2c5(%rip), %rsi     # 0x9bd03
movq %rbx, %rdi
callq 0x1a2c0
incl %ebp
jmp 0x3fb9a
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1a640
xorl %r14d, %r14d
testl %eax, %eax
je 0x3fb8a
leaq 0x554d9(%rip), %r15     # 0x94f4a
leaq 0x5c247(%rip), %r12     # 0x9bcbf
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 0x3fb3d
movq %r13, %rdi
movq %r12, %rsi
callq 0x18ff0
testl %eax, %eax
je 0x3fb44
movq %r13, %rdi
leaq 0x5c224(%rip), %rsi     # 0x9bcdb
callq 0x18ff0
testl %eax, %eax
je 0x3fb4b
movq %r13, %rdi
leaq 0x5c22a(%rip), %rsi     # 0x9bcf8
callq 0x18ff0
testl %eax, %eax
je 0x3fb52
movq %r13, %rdi
leaq 0x5c1ba(%rip), %rsi     # 0x9bc9b
callq 0x18ff0
testl %eax, %eax
je 0x3fb59
movq %r13, %rdi
leaq 0x5c1b9(%rip), %rsi     # 0x9bcad
callq 0x18ff0
testl %eax, %eax
je 0x3fb60
movq %r13, %rdi
leaq 0x5c1c2(%rip), %rsi     # 0x9bcc9
callq 0x18ff0
testl %eax, %eax
je 0x3fb67
movq %r13, %rdi
leaq 0x5c1cc(%rip), %rsi     # 0x9bce6
callq 0x18ff0
testl %eax, %eax
je 0x3fb6e
movq %r13, %rdi
leaq 0x5c1d6(%rip), %rsi     # 0x9bd03
callq 0x18ff0
movl $0x100, %ecx            # imm = 0x100
testl %eax, %eax
je 0x3fb73
jmp 0x3fbab
movl $0x1, %ecx
jmp 0x3fb73
movl $0x2, %ecx
jmp 0x3fb73
movl $0x4, %ecx
jmp 0x3fb73
movl $0x8, %ecx
jmp 0x3fb73
movl $0x10, %ecx
jmp 0x3fb73
movl $0x20, %ecx
jmp 0x3fb73
movl $0x40, %ecx
jmp 0x3fb73
movl $0x80, %ecx
orl %ecx, %r14d
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a640
testl %eax, %eax
jne 0x3fa78
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 0x4ee34(%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 0x3fb8a