// File: /workspace/github_cpp_makefile_star2_O2/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), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
callq 0x162f3
movq %r15, %rdi
callq 0x16223
movb $0x1, %bl
cmpl $0x5, %eax
ja 0x16570
movl %eax, %eax
leaq 0x77d0(%rip), %rcx      # 0x1dbe0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%r15), %rdi
callq 0x63e0
leaq 0x4(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x195a1(%rip), %rdi     # 0x2f9d0
callq 0x16f26
testq %rax, %rax
jne 0x164bf
leaq 0x1958c(%rip), %rdi     # 0x2f9d0
movl 0x195ae(%rip), %ebp     # 0x2f9f8
movl %ebp, (%r14)
leaq 0x4(%rsp), %rsi
callq 0x16f40
jmp 0x165d2
movq (%r15), %rdi
callq 0x62e0
leaq 0x8(%rsp), %rsi
movsd %xmm0, (%rsi)
leaq 0x1952c(%rip), %rdi     # 0x2f9a0
callq 0x16fac
testq %rax, %rax
je 0x16589
leaq 0x19517(%rip), %rdi     # 0x2f9a0
leaq 0x8(%rsp), %rsi
callq 0x16fc6
jmp 0x1656b
movq (%r15), %rax
xorl %ecx, %ecx
cmpb $0x54, (%rax)
sete %cl
leaq 0x4(%rsp), %rsi
movl %ecx, (%rsi)
leaq 0x1951f(%rip), %rdi     # 0x2f9d0
callq 0x16f26
testq %rax, %rax
je 0x165b8
leaq 0x1950a(%rip), %rdi     # 0x2f9d0
leaq 0x4(%rsp), %rsi
callq 0x16f40
jmp 0x1656b
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x1634c
leaq 0x10(%rsp), %r15
leaq 0x30(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x62d0
movq %r12, %rdi
callq 0x6130
leaq 0x1946a(%rip), %r12     # 0x2f970
movq %r12, %rdi
movq %r15, %rsi
callq 0xc1f0
testq %rax, %rax
jne 0x16560
leaq 0x19453(%rip), %rdi     # 0x2f970
movl 0x19475(%rip), %ebp     # 0x2f998
movl %ebp, (%r14)
leaq 0x10(%rsp), %rsi
callq 0xc20a
movl %ebp, (%rax)
leaq 0x194f7(%rip), %rdi     # 0x2fa30
leaq 0x10(%rsp), %rsi
callq 0x1703a
jmp 0x16570
leaq 0x193f4(%rip), %r12     # 0x2f940
movq %r12, %rdi
movq %r15, %rsi
callq 0xc1f0
testq %rax, %rax
je 0x165e7
movq %r12, %rdi
movq %r15, %rsi
callq 0xc20a
movl (%rax), %eax
movl %eax, (%r14)
leaq 0x10(%rsp), %rdi
callq 0x6130
movl %ebx, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x19410(%rip), %rdi     # 0x2f9a0
movl 0x19432(%rip), %ebp     # 0x2f9c8
movl %ebp, (%r14)
leaq 0x8(%rsp), %rsi
callq 0x16fc6
movl %ebp, (%rax)
leaq 0x1946c(%rip), %rdi     # 0x2fa18
leaq 0x8(%rsp), %rsi
callq 0x17018
jmp 0x16570
leaq 0x19411(%rip), %rdi     # 0x2f9d0
movl 0x19433(%rip), %ebp     # 0x2f9f8
movl %ebp, (%r14)
leaq 0x4(%rsp), %rsi
callq 0x16f40
movl %ebp, (%rax)
leaq 0x19425(%rip), %rdi     # 0x2fa00
leaq 0x4(%rsp), %rsi
callq 0x16f8e
jmp 0x16570
xorl %ebx, %ebx
jmp 0x16570
jmp 0x165ed
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x6130
movq %rbx, %rdi
callq 0x6460