// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/flags.c
// Function: checktextalign
static nk_flags checktextalign(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_TEXT_ALIGN_LEFT, "align left");
    CASE(NK_TEXT_ALIGN_CENTERED, "align centered");
    CASE(NK_TEXT_ALIGN_RIGHT, "align right");
    CASE(NK_TEXT_ALIGN_TOP, "align top");
    CASE(NK_TEXT_ALIGN_MIDDLE, "align middle");
    CASE(NK_TEXT_ALIGN_BOTTOM, "align bottom");
    // flags combinations (nk_text_alignment):
    CASE(NK_TEXT_LEFT, "left");
    CASE(NK_TEXT_CENTERED, "centered");
    CASE(NK_TEXT_RIGHT, "right");
#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 0x262db
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 0x86d50(%rip), %rsi     # 0xace88
callq 0x13fc0
cmpl $0x0, %eax
jne 0x26154
jmp 0x26144
movl 0x14(%rsp), %eax
orl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x262d6
movq 0x18(%rsp), %rdi
leaq 0x86d33(%rip), %rsi     # 0xace93
callq 0x13fc0
cmpl $0x0, %eax
jne 0x2617c
jmp 0x2616c
movl 0x14(%rsp), %eax
orl $0x2, %eax
movl %eax, 0x14(%rsp)
jmp 0x262d6
movq 0x18(%rsp), %rdi
leaq 0x86d1a(%rip), %rsi     # 0xacea2
callq 0x13fc0
cmpl $0x0, %eax
jne 0x261a4
jmp 0x26194
movl 0x14(%rsp), %eax
orl $0x4, %eax
movl %eax, 0x14(%rsp)
jmp 0x262d6
movq 0x18(%rsp), %rdi
leaq 0x86cfe(%rip), %rsi     # 0xaceae
callq 0x13fc0
cmpl $0x0, %eax
jne 0x261cc
jmp 0x261bc
movl 0x14(%rsp), %eax
orl $0x8, %eax
movl %eax, 0x14(%rsp)
jmp 0x262d6
movq 0x18(%rsp), %rdi
leaq 0x86ce0(%rip), %rsi     # 0xaceb8
callq 0x13fc0
cmpl $0x0, %eax
jne 0x261f4
jmp 0x261e4
movl 0x14(%rsp), %eax
orl $0x10, %eax
movl %eax, 0x14(%rsp)
jmp 0x262d6
movq 0x18(%rsp), %rdi
leaq 0x86cc5(%rip), %rsi     # 0xacec5
callq 0x13fc0
cmpl $0x0, %eax
jne 0x2621c
jmp 0x2620c
movl 0x14(%rsp), %eax
orl $0x20, %eax
movl %eax, 0x14(%rsp)
jmp 0x262d6
movq 0x18(%rsp), %rdi
leaq 0x81468(%rip), %rsi     # 0xa7690
callq 0x13fc0
cmpl $0x0, %eax
jne 0x26244
jmp 0x26234
movl 0x14(%rsp), %eax
orl $0x11, %eax
movl %eax, 0x14(%rsp)
jmp 0x262d6
movq 0x18(%rsp), %rdi
leaq 0x86c49(%rip), %rsi     # 0xace99
callq 0x13fc0
cmpl $0x0, %eax
jne 0x26269
jmp 0x2625c
movl 0x14(%rsp), %eax
orl $0x12, %eax
movl %eax, 0x14(%rsp)
jmp 0x262d6
movq 0x18(%rsp), %rdi
leaq 0x8143d(%rip), %rsi     # 0xa76b2
callq 0x13fc0
cmpl $0x0, %eax
jne 0x2628e
jmp 0x26281
movl 0x14(%rsp), %eax
orl $0x14, %eax
movl %eax, 0x14(%rsp)
jmp 0x262d6
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 0x811d9(%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 0x262e3
jmp 0x260f5
movl 0x14(%rsp), %eax
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopl (%rax)