// File: /workspace/github_cpp_makefile_star2_O1/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 0x7cc8
cmpl $0x2, %eax
jne 0x820e
addq $0x8, %r14
leaq 0x10058(%rip), %rsi     # 0x18191
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x5520
movq %rax, %r15
leaq 0x10041(%rip), %rsi     # 0x18193
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x5520
movq %rax, %rcx
andq %r15, %rcx
cmpq $-0x1, %rcx
je 0x820e
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
cmpq $-0x1, %r15
je 0x822c
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 0x81d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x1a5c0(%rip), %rdi     # 0x227a0
leaq 0x48(%rsp), %rsi
callq 0x8ea6
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x8f22
leaq 0x28(%rsp), %rdx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f83
jmp 0x82a4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xffc4(%rip), %rdx      # 0x181e0
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x72c6
jmp 0x8308
cmpq $-0x1, %rax
je 0x82d8
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 0x8274
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x52c0
leaq 0x1a525(%rip), %rdi     # 0x227a0
leaq 0x48(%rsp), %rsi
callq 0x8ea6
leaq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x8f22
leaq 0x28(%rsp), %rdx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f83
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x82bf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x52c0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x82f1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x82f1
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xfefa(%rip), %rdx      # 0x181e0
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x72c6
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x8308
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x52c0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x8330
jmp 0x831f
jmp 0x8330
jmp 0x8330
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8fde
jmp 0x8333
jmp 0x8330
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x834a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x52c0
movq %rbx, %rdi
callq 0x5530