// File: /workspace/github_cpp_makefile_star2_O1/Eronana[P]strawberry/src/assembler.cpp
// Function: get_opnd(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int&)
bool get_opnd(const string &s,int &v)
{
    int opnd_int;
    FLOAT_TYPE opnd_float;
    string opnd_string;
    init_escape_table();
    switch(get_opnd_type(s))
    {
        case OT_BOOL:
            opnd_int=s[0]=='T'?1:0;
            if(!int_table.count(opnd_int))
            {
                v=int_table.size();
                int_table[opnd_int]=v;
                int_table_list.push_back(opnd_int);
            }
            else v=int_table[opnd_int];
            break;
        case OT_INT:
            opnd_int=atoi(s.c_str());
            if(!int_table.count(opnd_int))
            {
                v=int_table.size();
                int_table[opnd_int]=v;
                int_table_list.push_back(opnd_int);
            }
            else v=int_table[opnd_int];
            break;
        case OT_FLOAT:
            opnd_float=atof(s.c_str());
            if(!float_table.count(opnd_float))
            {
                v=float_table.size();
                float_table[opnd_float]=v;
                float_table_list.push_back(opnd_float);
            }
            else v=float_table[opnd_float];
            break;
        case OT_STRING:
            opnd_string=process_string(s);
            if(!string_table.count(opnd_string))
            {
                v=string_table.size();
                string_table[opnd_string]=v;
                string_table_list.push_back(opnd_string);
            }
            else v=string_table[opnd_string];
            break;
        case OT_LABEL:
            if(!labels.count(s))return false;
            v=labels[s];
            break;
        default:
            break;
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
callq 0x190af
movq %r15, %rdi
callq 0x18fcb
movb $0x1, %bl
cmpl $0x5, %eax
ja 0x194c1
movl %eax, %eax
leaq 0x7a18(%rip), %rcx      # 0x20c10
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%r15), %rdi
callq 0x63f0
movl %eax, 0x4(%rsp)
movq 0x167bc(%rip), %rsi     # 0x2f9d0
leaq 0x167ad(%rip), %rdx     # 0x2f9c8
movq %rdx, %rcx
testq %rsi, %rsi
je 0x19241
leaq 0x1679e(%rip), %rcx     # 0x2f9c8
xorl %edi, %edi
cmpl %eax, 0x20(%rsi)
setl %dil
cmovgeq %rsi, %rcx
movq 0x10(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
jne 0x1922a
cmpq %rdx, %rcx
je 0x1924f
cmpl 0x20(%rcx), %eax
jge 0x19498
leaq 0x1676a(%rip), %rdi     # 0x2f9c0
movl 0x1678c(%rip), %ebp     # 0x2f9e8
movl %ebp, (%r14)
leaq 0x4(%rsp), %rsi
callq 0x19fac
jmp 0x1937b
movq (%r15), %rdi
callq 0x62f0
movsd %xmm0, 0x8(%rsp)
movq 0x1671d(%rip), %rdx     # 0x2f9a0
leaq 0x1670e(%rip), %rax     # 0x2f998
movq %rax, %rcx
testq %rdx, %rdx
je 0x192b2
leaq 0x166ff(%rip), %rcx     # 0x2f998
xorl %esi, %esi
ucomisd 0x20(%rdx), %xmm0
cmovbeq %rdx, %rcx
seta %sil
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x19299
cmpq %rax, %rcx
je 0x192c6
movsd 0x20(%rcx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x19485
leaq 0x166c3(%rip), %rdi     # 0x2f990
movl 0x166e5(%rip), %ebp     # 0x2f9b8
movl %ebp, (%r14)
leaq 0x8(%rsp), %rsi
callq 0x1a010
movl %ebp, (%rax)
movq 0x16727(%rip), %rsi     # 0x2fa10
cmpq 0x16728(%rip), %rsi     # 0x2fa18
je 0x194e7
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x16705(%rip)     # 0x2fa10
jmp 0x194c1
movq (%r15), %rcx
xorl %eax, %eax
cmpb $0x54, (%rcx)
sete %al
movl %eax, 0x4(%rsp)
movq 0x166aa(%rip), %rsi     # 0x2f9d0
leaq 0x1669b(%rip), %rdx     # 0x2f9c8
movq %rdx, %rcx
testq %rsi, %rsi
je 0x19353
leaq 0x1668c(%rip), %rcx     # 0x2f9c8
xorl %edi, %edi
cmpl %eax, 0x20(%rsi)
setl %dil
cmovgeq %rsi, %rcx
movq 0x10(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
jne 0x1933c
cmpq %rdx, %rcx
je 0x19361
cmpl %eax, 0x20(%rcx)
jle 0x194ab
leaq 0x16658(%rip), %rdi     # 0x2f9c0
movl 0x1667a(%rip), %ebp     # 0x2f9e8
movl %ebp, (%r14)
leaq 0x4(%rsp), %rsi
callq 0x19fac
movl %ebp, (%rax)
movq 0x16674(%rip), %rsi     # 0x2f9f8
cmpq 0x16675(%rip), %rsi     # 0x2fa00
je 0x1943f
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x16656(%rip)     # 0x2f9f8
jmp 0x194c1
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x19106
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %r15
movq %r15, %rsi
callq 0x62e0
movq (%r15), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x193e0
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6230
leaq 0x16579(%rip), %rdi     # 0x2f960
leaq 0x10(%rsp), %rsi
callq 0xd788
leaq 0x16570(%rip), %rcx     # 0x2f968
cmpq %rcx, %rax
je 0x19456
leaq 0x1655c(%rip), %rdi     # 0x2f960
leaq 0x10(%rsp), %rsi
callq 0xd518
jmp 0x194bc
leaq 0x16516(%rip), %rdi     # 0x2f930
movq %r15, %rsi
callq 0xd788
leaq 0x1650f(%rip), %rcx     # 0x2f938
cmpq %rcx, %rax
je 0x19452
leaq 0x164fb(%rip), %rdi     # 0x2f930
movq %r15, %rsi
callq 0xd518
jmp 0x194bc
leaq 0x165aa(%rip), %rdi     # 0x2f9f0
leaq 0x4(%rsp), %rdx
callq 0x1a828
jmp 0x194c1
xorl %ebx, %ebx
jmp 0x194c1
leaq 0x16503(%rip), %rdi     # 0x2f960
movl 0x16525(%rip), %ebp     # 0x2f988
movl %ebp, (%r14)
leaq 0x10(%rsp), %rsi
callq 0xd518
movl %ebp, (%rax)
leaq 0x165a7(%rip), %rdi     # 0x2fa20
leaq 0x10(%rsp), %rsi
callq 0x1a07a
jmp 0x194c1
leaq 0x16504(%rip), %rdi     # 0x2f990
leaq 0x8(%rsp), %rsi
callq 0x1a010
jmp 0x194bc
leaq 0x16521(%rip), %rdi     # 0x2f9c0
leaq 0x4(%rsp), %rsi
callq 0x19fac
jmp 0x194bc
leaq 0x1650e(%rip), %rdi     # 0x2f9c0
leaq 0x4(%rsp), %rsi
callq 0x19fac
movl (%rax), %eax
movl %eax, (%r14)
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x194d8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6230
movl %ebx, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1651a(%rip), %rdi     # 0x2fa08
leaq 0x8(%rsp), %rdx
callq 0x1abac
jmp 0x194c1
jmp 0x194fc
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x19516
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6230
movq %rbx, %rdi
callq 0x6450