// File: 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
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x7470
callq 0x42500
movq -0x10(%rbp), %rdi
callq 0x42310
movl %eax, -0x80(%rbp)
jmp 0x426bf
movl -0x80(%rbp), %eax
movl %eax, %ecx
movq %rcx, -0x88(%rbp)
subl $0x5, %eax
ja 0x42ab4
movq -0x88(%rbp), %rax
leaq 0x164ee(%rip), %rcx     # 0x58bd0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x71d0
jmp 0x42ad8
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x7330
movb (%rax), %al
subb $0x54, %al
sete %al
movzbl %al, %eax
movl %eax, -0x1c(%rbp)
leaq 0x4837a(%rip), %rdi     # 0x8aaa0
leaq -0x1c(%rbp), %rsi
callq 0x44260
movq %rax, -0x90(%rbp)
jmp 0x42738
movq -0x90(%rbp), %rax
cmpq $0x0, %rax
jne 0x427a8
leaq 0x48354(%rip), %rdi     # 0x8aaa0
movq %rdi, -0xa8(%rbp)
callq 0x442c0
movq -0xa8(%rbp), %rdi
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x9c(%rbp)
leaq -0x1c(%rbp), %rsi
callq 0x442e0
movq %rax, -0x98(%rbp)
jmp 0x42785
movq -0x98(%rbp), %rax
movl -0x9c(%rbp), %ecx
movl %ecx, (%rax)
leaq 0x48335(%rip), %rdi     # 0x8aad0
leaq -0x1c(%rbp), %rsi
callq 0x443c0
jmp 0x427a6
jmp 0x427d0
leaq 0x482f1(%rip), %rdi     # 0x8aaa0
leaq -0x1c(%rbp), %rsi
callq 0x442e0
movq %rax, -0xb0(%rbp)
jmp 0x427c1
movq -0xb0(%rbp), %rax
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
jmp 0x42ab6
movq -0x10(%rbp), %rdi
callq 0x7120
movq %rax, %rdi
callq 0x7530
movl %eax, -0x1c(%rbp)
leaq 0x482b0(%rip), %rdi     # 0x8aaa0
leaq -0x1c(%rbp), %rsi
callq 0x44260
movq %rax, -0xb8(%rbp)
jmp 0x42802
movq -0xb8(%rbp), %rax
cmpq $0x0, %rax
jne 0x42872
leaq 0x4828a(%rip), %rdi     # 0x8aaa0
movq %rdi, -0xd0(%rbp)
callq 0x442c0
movq -0xd0(%rbp), %rdi
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xc4(%rbp)
leaq -0x1c(%rbp), %rsi
callq 0x442e0
movq %rax, -0xc0(%rbp)
jmp 0x4284f
movq -0xc0(%rbp), %rax
movl -0xc4(%rbp), %ecx
movl %ecx, (%rax)
leaq 0x4826b(%rip), %rdi     # 0x8aad0
leaq -0x1c(%rbp), %rsi
callq 0x443c0
jmp 0x42870
jmp 0x4289a
leaq 0x48227(%rip), %rdi     # 0x8aaa0
leaq -0x1c(%rbp), %rsi
callq 0x442e0
movq %rax, -0xd8(%rbp)
jmp 0x4288b
movq -0xd8(%rbp), %rax
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
jmp 0x42ab6
movq -0x10(%rbp), %rdi
callq 0x7120
movq %rax, %rdi
callq 0x73e0
movsd %xmm0, -0x28(%rbp)
leaq 0x481b4(%rip), %rdi     # 0x8aa70
leaq -0x28(%rbp), %rsi
callq 0x44430
movq %rax, -0xe0(%rbp)
jmp 0x428ce
movq -0xe0(%rbp), %rax
cmpq $0x0, %rax
jne 0x4293e
leaq 0x4818e(%rip), %rdi     # 0x8aa70
movq %rdi, -0xf8(%rbp)
callq 0x44490
movq -0xf8(%rbp), %rdi
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xec(%rbp)
leaq -0x28(%rbp), %rsi
callq 0x444b0
movq %rax, -0xe8(%rbp)
jmp 0x4291b
movq -0xe8(%rbp), %rax
movl -0xec(%rbp), %ecx
movl %ecx, (%rax)
leaq 0x481b7(%rip), %rdi     # 0x8aae8
leaq -0x28(%rbp), %rsi
callq 0x44590
jmp 0x4293c
jmp 0x42966
leaq 0x4812b(%rip), %rdi     # 0x8aa70
leaq -0x28(%rbp), %rsi
callq 0x444b0
movq %rax, -0x100(%rbp)
jmp 0x42957
movq -0x100(%rbp), %rax
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
jmp 0x42ab6
movq -0x10(%rbp), %rsi
leaq -0x78(%rbp), %rdi
callq 0x42590
jmp 0x4297a
leaq -0x48(%rbp), %rdi
movq %rdi, -0x110(%rbp)
leaq -0x78(%rbp), %rsi
movq %rsi, -0x118(%rbp)
callq 0x73c0
movq -0x118(%rbp), %rdi
callq 0x71d0
movq -0x110(%rbp), %rsi
leaq 0x48091(%rip), %rdi     # 0x8aa40
callq 0x18850
movq %rax, -0x108(%rbp)
jmp 0x429bd
movq -0x108(%rbp), %rax
cmpq $0x0, %rax
jne 0x42a2d
leaq 0x4806f(%rip), %rdi     # 0x8aa40
movq %rdi, -0x130(%rbp)
callq 0x44600
movq -0x130(%rbp), %rdi
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x124(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x188b0
movq %rax, -0x120(%rbp)
jmp 0x42a0a
movq -0x120(%rbp), %rax
movl -0x124(%rbp), %ecx
movl %ecx, (%rax)
leaq 0x480e0(%rip), %rdi     # 0x8ab00
leaq -0x48(%rbp), %rsi
callq 0x44620
jmp 0x42a2b
jmp 0x42a55
leaq 0x4800c(%rip), %rdi     # 0x8aa40
leaq -0x48(%rbp), %rsi
callq 0x188b0
movq %rax, -0x138(%rbp)
jmp 0x42a46
movq -0x138(%rbp), %rax
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
jmp 0x42ab6
movq -0x10(%rbp), %rsi
leaq 0x47fae(%rip), %rdi     # 0x8aa10
callq 0x18850
movq %rax, -0x140(%rbp)
jmp 0x42a70
movq -0x140(%rbp), %rax
cmpq $0x0, %rax
jne 0x42a8a
movb $0x0, -0x1(%rbp)
movl $0x1, -0x7c(%rbp)
jmp 0x42ac1
movq -0x10(%rbp), %rsi
leaq 0x47f7b(%rip), %rdi     # 0x8aa10
callq 0x188b0
movq %rax, -0x148(%rbp)
jmp 0x42aa3
movq -0x148(%rbp), %rax
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
jmp 0x42ab6
jmp 0x42ab6
movb $0x1, -0x1(%rbp)
movl $0x1, -0x7c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x71d0
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x75e0
nopw %cs:(%rax,%rax)