// File: /workspace/github_cpp_makefile_star2_O3/ELD[P]HackAssembler/src/parser.cpp
// Function: hack::Parser::getCompBits[abi:cxx11]()
std::string Parser::getCompBits()
    {
        if (commandType() != C_COMMAND) {
            return "";
        }

        auto equalPos = _currentCommand.find("=");
        auto semiColonPos = _currentCommand.find(";");

        if (equalPos == std::string::npos && semiColonPos == std::string::npos) {
            return "";
        }

        std::string comp;
        if (equalPos != std::string::npos) {
            comp = _currentCommand.substr(equalPos + 1);
            auto bitPair = CompTable::lookup[comp];
            return bitPair.first + bitPair.second;
        } else if (semiColonPos != std::string::npos) {
            comp = _currentCommand.substr(0, semiColonPos);
            auto bitPair = CompTable::lookup[comp];
            return bitPair.first + bitPair.second;
        }

        return "";
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x7c9e
cmpl $0x2, %eax
jne 0x81d0
addq $0x8, %r14
leaq 0x10096(%rip), %rsi     # 0x18191
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x5520
movq %rax, %r15
leaq 0x1007f(%rip), %rsi     # 0x18193
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x5520
movq %rax, %rcx
andq %r15, %rcx
cmpq $-0x1, %rcx
je 0x81d0
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
cmpq $-0x1, %r15
je 0x81ee
incq %r15
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x52f0
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x5370
movq (%r14), %rdi
leaq 0x18(%rsp), %r14
cmpq %r14, %rdi
je 0x819b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x1a5fe(%rip), %rdi     # 0x227a0
leaq 0x48(%rsp), %rsi
callq 0x8e5a
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x8ed6
leaq 0x28(%rsp), %rdx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f37
jmp 0x8266
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x10002(%rip), %rdx     # 0x181e0
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x72ac
jmp 0x82ca
cmpq $-0x1, %rax
je 0x829a
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x52f0
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x5370
movq (%r14), %rdi
leaq 0x18(%rsp), %r14
cmpq %r14, %rdi
je 0x8236
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x1a563(%rip), %rdi     # 0x227a0
leaq 0x48(%rsp), %rsi
callq 0x8e5a
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x8ed6
leaq 0x28(%rsp), %rdx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f37
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8281
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x82b3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x82b3
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xff38(%rip), %rdx      # 0x181e0
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x72ac
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x82ca
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x52c0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x82f2
jmp 0x82e1
jmp 0x82f2
jmp 0x82f2
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8f92
jmp 0x82f5
jmp 0x82f2
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x830c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x52c0
movq %rbx, %rdi
callq 0x5530