// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/flags.c
// Function: checkpanelflags
static nk_flags checkpanelflags(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_BORDER, "border");
    CASE(NK_WINDOW_MOVABLE, "movable");
    CASE(NK_WINDOW_SCALABLE, "scalable");
    CASE(NK_WINDOW_CLOSABLE, "closable");
    CASE(NK_WINDOW_MINIMIZABLE, "minimizable");
    CASE(NK_WINDOW_NO_SCROLLBAR, "no scrollbar");
    CASE(NK_WINDOW_TITLE, "title");
    CASE(NK_WINDOW_SCROLL_AUTO_HIDE, "scroll auto hide");
    CASE(NK_WINDOW_BACKGROUND, "background");
    CASE(NK_WINDOW_SCALE_LEFT, "scale left");
    CASE(NK_WINDOW_NO_INPUT, "no input");
#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 0x258e3
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 0x8520b(%rip), %rsi     # 0xaa8f3
callq 0x13fc0
cmpl $0x0, %eax
jne 0x25704
jmp 0x256f4
movl 0x14(%rsp), %eax
orl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x258de
movq 0x18(%rsp), %rdi
leaq 0x87700(%rip), %rsi     # 0xace10
callq 0x13fc0
cmpl $0x0, %eax
jne 0x2572c
jmp 0x2571c
movl 0x14(%rsp), %eax
orl $0x2, %eax
movl %eax, 0x14(%rsp)
jmp 0x258de
movq 0x18(%rsp), %rdi
leaq 0x876e0(%rip), %rsi     # 0xace18
callq 0x13fc0
cmpl $0x0, %eax
jne 0x25754
jmp 0x25744
movl 0x14(%rsp), %eax
orl $0x4, %eax
movl %eax, 0x14(%rsp)
jmp 0x258de
movq 0x18(%rsp), %rdi
leaq 0x876c1(%rip), %rsi     # 0xace21
callq 0x13fc0
cmpl $0x0, %eax
jne 0x2577c
jmp 0x2576c
movl 0x14(%rsp), %eax
orl $0x8, %eax
movl %eax, 0x14(%rsp)
jmp 0x258de
movq 0x18(%rsp), %rdi
leaq 0x876a2(%rip), %rsi     # 0xace2a
callq 0x13fc0
cmpl $0x0, %eax
jne 0x257a4
jmp 0x25794
movl 0x14(%rsp), %eax
orl $0x10, %eax
movl %eax, 0x14(%rsp)
jmp 0x258de
movq 0x18(%rsp), %rdi
leaq 0x87686(%rip), %rsi     # 0xace36
callq 0x13fc0
cmpl $0x0, %eax
jne 0x257cc
jmp 0x257bc
movl 0x14(%rsp), %eax
orl $0x20, %eax
movl %eax, 0x14(%rsp)
jmp 0x258de
movq 0x18(%rsp), %rdi
leaq 0x8766b(%rip), %rsi     # 0xace43
callq 0x13fc0
cmpl $0x0, %eax
jne 0x257f4
jmp 0x257e4
movl 0x14(%rsp), %eax
orl $0x40, %eax
movl %eax, 0x14(%rsp)
jmp 0x258de
movq 0x18(%rsp), %rdi
leaq 0x87649(%rip), %rsi     # 0xace49
callq 0x13fc0
cmpl $0x0, %eax
jne 0x2581e
jmp 0x2580c
movl 0x14(%rsp), %eax
orl $0x80, %eax
movl %eax, 0x14(%rsp)
jmp 0x258de
movq 0x18(%rsp), %rdi
leaq 0x8505b(%rip), %rsi     # 0xaa885
callq 0x13fc0
cmpl $0x0, %eax
jne 0x25848
jmp 0x25836
movl 0x14(%rsp), %eax
orl $0x100, %eax            # imm = 0x100
movl %eax, 0x14(%rsp)
jmp 0x258de
movq 0x18(%rsp), %rdi
leaq 0x87606(%rip), %rsi     # 0xace5a
callq 0x13fc0
cmpl $0x0, %eax
jne 0x2586f
jmp 0x25860
movl 0x14(%rsp), %eax
orl $0x200, %eax            # imm = 0x200
movl %eax, 0x14(%rsp)
jmp 0x258de
movq 0x18(%rsp), %rdi
leaq 0x875ea(%rip), %rsi     # 0xace65
callq 0x13fc0
cmpl $0x0, %eax
jne 0x25896
jmp 0x25887
movl 0x14(%rsp), %eax
orl $0x400, %eax            # imm = 0x400
movl %eax, 0x14(%rsp)
jmp 0x258de
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 0x81bd1(%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 0x258eb
jmp 0x256a5
movl 0x14(%rsp), %eax
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)