// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/flags.c
// Function: checkwindowflags
static nk_flags checkwindowflags(lua_State *L, int arg) 
    {
    const char *s;
    nk_flags flags = 0;
    
    while(lua_isstring(L, arg))
        {
        s = lua_tostring(L, arg++);
#define CASE(CODE,str) if((strcmp(s, str)==0)) do { flags |= CODE; goto done; } while(0)
    CASE(NK_WINDOW_PRIVATE, "private");
    CASE(NK_WINDOW_DYNAMIC, "dynamic");
    CASE(NK_WINDOW_ROM, "rom");
    CASE(NK_WINDOW_NOT_INTERACTIVE, "not interactive");
    CASE(NK_WINDOW_HIDDEN, "hidden");
    CASE(NK_WINDOW_CLOSED, "closed");
    CASE(NK_WINDOW_MINIMIZED, "minimized");
    CASE(NK_WINDOW_REMOVE_ROM, "remove rom");
#undef CASE
        return (nk_flags)luaL_argerror(L, --arg, badvalue(L,s));
        done: ;
        }

    return flags;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movl %esi, 0x24(%rsp)
movl $0x0, 0x14(%rsp)
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %esi
callq 0x154b0
cmpl $0x0, %eax
je 0x27253
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
xorl %eax, %eax
movl %eax, %edx
callq 0x136c0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x85f13(%rip), %rsi     # 0xacfdb
callq 0x13fc0
cmpl $0x0, %eax
jne 0x270e6
jmp 0x270d4
movl 0x14(%rsp), %eax
orl $0x800, %eax            # imm = 0x800
movl %eax, 0x14(%rsp)
jmp 0x2724e
movq 0x18(%rsp), %rdi
leaq 0x862c0(%rip), %rsi     # 0xad3b2
callq 0x13fc0
cmpl $0x0, %eax
jne 0x27110
jmp 0x270fe
movl 0x14(%rsp), %eax
orl $0x800, %eax            # imm = 0x800
movl %eax, 0x14(%rsp)
jmp 0x2724e
movq 0x18(%rsp), %rdi
leaq 0x85ede(%rip), %rsi     # 0xacffa
callq 0x13fc0
cmpl $0x0, %eax
jne 0x2713a
jmp 0x27128
movl 0x14(%rsp), %eax
orl $0x1000, %eax           # imm = 0x1000
movl %eax, 0x14(%rsp)
jmp 0x2724e
movq 0x18(%rsp), %rdi
leaq 0x85e9d(%rip), %rsi     # 0xacfe3
callq 0x13fc0
cmpl $0x0, %eax
jne 0x27164
jmp 0x27152
movl 0x14(%rsp), %eax
orl $0x1400, %eax           # imm = 0x1400
movl %eax, 0x14(%rsp)
jmp 0x2724e
movq 0x18(%rsp), %rdi
leaq 0x8e87e(%rip), %rsi     # 0xb59ee
callq 0x13fc0
cmpl $0x0, %eax
jne 0x2718e
jmp 0x2717c
movl 0x14(%rsp), %eax
orl $0x2000, %eax           # imm = 0x2000
movl %eax, 0x14(%rsp)
jmp 0x2724e
movq 0x18(%rsp), %rdi
leaq 0x8e843(%rip), %rsi     # 0xb59dd
callq 0x13fc0
cmpl $0x0, %eax
jne 0x271b8
jmp 0x271a6
movl 0x14(%rsp), %eax
orl $0x4000, %eax           # imm = 0x4000
movl %eax, 0x14(%rsp)
jmp 0x2724e
movq 0x18(%rsp), %rdi
leaq 0x805a9(%rip), %rsi     # 0xa776d
callq 0x13fc0
cmpl $0x0, %eax
jne 0x271df
jmp 0x271d0
movl 0x14(%rsp), %eax
orl $0x8000, %eax           # imm = 0x8000
movl %eax, 0x14(%rsp)
jmp 0x2724e
movq 0x18(%rsp), %rdi
leaq 0x85e08(%rip), %rsi     # 0xacff3
callq 0x13fc0
cmpl $0x0, %eax
jne 0x27206
jmp 0x271f7
movl 0x14(%rsp), %eax
orl $0x10000, %eax          # imm = 0x10000
movl %eax, 0x14(%rsp)
jmp 0x2724e
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0x24(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x10(%rsp)
movl %eax, 0x24(%rsp)
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rdx
leaq 0x80261(%rip), %rsi     # 0xa7491
movb $0x0, %al
callq 0x13ec0
movq 0x8(%rsp), %rdi
movl 0x10(%rsp), %esi
movq %rax, %rdx
callq 0x134c0
movl %eax, 0x34(%rsp)
jmp 0x2725b
jmp 0x27085
movl 0x14(%rsp), %eax
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)