LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::Sum(BigFloat const&, BigFloat const&)
BigFloat BigFloat::Sum(const BigFloat& left, const BigFloat& right)
{
    BigFloat tmp;
    int carry = 0;
    size_t loopsize = (left.number.size() > right.number.size()) ? left.number.size() : right.number.size();

    for(size_t i = 0; i < loopsize; ++i) {
        int val1, val2;
        val1 = (i > left.number.size() - 1) ? 0 : CharToInt(left.number[i]);
        val2 = (i > right.number.size() - 1) ? 0 : CharToInt(right.number[i]);

        int aus = val1 + val2 + carry;

        carry = 0;
        if(aus > 9) {
            carry = 1;
            aus = aus - 10;
        }

        tmp.number.push_back(IntToChar(aus));
    }
    if(carry != 0)
        tmp.number.push_back(IntToChar(carry));

    return tmp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
callq 0x2610
leaq 0x8(%r12), %r13
movq %r13, %rdi
callq 0x298e
movq %rax, %rbx
leaq 0x8(%r15), %rbp
movq %rbp, %rdi
callq 0x298e
cmpq %rax, %rbx
movq %rbp, 0x28(%rsp)
movq %r13, 0x30(%rsp)
cmovaq %r13, %rbp
movq %rbp, %rdi
callq 0x298e
movq %rax, %rbx
addq $0x18, %r12
movq %r12, 0x18(%rsp)
addq $0x18, %r15
movq %r15, 0x20(%rsp)
movq %r14, 0x10(%rsp)
leaq 0x8(%r14), %rbp
xorl %r14d, %r14d
xorl %r15d, %r15d
cmpq %r15, %rbx
je 0x3291
movq 0x30(%rsp), %rdi
callq 0x298e
decq %rax
xorl %r13d, %r13d
movl $0x0, %r12d
cmpq %rax, %r15
ja 0x322e
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x895c
movsbl (%rax), %r12d
addl $-0x30, %r12d
movq 0x28(%rsp), %rdi
callq 0x298e
decq %rax
cmpq %rax, %r15
ja 0x3255
movq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x895c
movsbl (%rax), %r13d
addl $-0x30, %r13d
addl %r14d, %r12d
addl %r13d, %r12d
leal -0xa(%r12), %eax
cmpl $0xa, %r12d
movzbl %al, %eax
cmovll %r12d, %eax
addb $0x30, %al
movb %al, 0xe(%rsp)
movq %rbp, %rdi
leaq 0xe(%rsp), %rsi
callq 0x897c
xorl %r14d, %r14d
cmpl $0xa, %r12d
setge %r14b
incq %r15
jmp 0x31f5
testl %r14d, %r14d
je 0x32aa
orb $0x30, %r14b
leaq 0xf(%rsp), %rsi
movb %r14b, (%rsi)
movq %rbp, %rdi
callq 0x897c
movq 0x10(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x32c0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
callq 0x253c
movq %rbx, %rdi
callq 0x2200
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::Subtract(BigFloat const&, BigFloat const&)
BigFloat BigFloat::Subtract(const BigFloat& left, const BigFloat& right)
{
    BigFloat tmp;
    int carry = 0;
    int aus;

    for(size_t i = 0; i < left.number.size(); ++i) {
        int val1, val2;
        val1 = CharToInt(left.number[i]);
        val2 = (i > right.number.size() - 1) ? 0 : CharToInt(right.number[i]);

        val1 -= carry;

        if(val1 < val2) {
            aus = 10 + val1 - val2;
            carry = 1;
        }
        else {
            aus = val1 - val2;
            carry = 0;
        }

        tmp.number.push_back(IntToChar(aus));
    }

    return tmp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x2610
leaq 0x8(%r15), %rax
movq %rax, 0x30(%rsp)
addq $0x18, %r15
movq %r15, 0x28(%rsp)
leaq 0x8(%r14), %rax
movq %rax, 0x20(%rsp)
addq $0x18, %r14
movq %r14, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
leaq 0x8(%rbx), %rbp
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x30(%rsp), %rdi
callq 0x298e
cmpq %rax, %rbx
jae 0x33ad
movq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x895c
movsbl (%rax), %r15d
movq 0x20(%rsp), %rdi
callq 0x298e
decq %rax
xorl %r13d, %r13d
cmpq %rax, %rbx
ja 0x336e
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x895c
movsbl (%rax), %r13d
addl $-0x30, %r13d
leal (%r14,%r15), %r12d
addl $-0x30, %r12d
cmpl %r13d, %r12d
leal -0x26(%r14,%r15), %eax
cmovgel %r12d, %eax
subl %r13d, %eax
addb $0x30, %al
movb %al, 0xf(%rsp)
movq %rbp, %rdi
leaq 0xf(%rsp), %rsi
callq 0x897c
xorl %r14d, %r14d
cmpl %r13d, %r12d
setl %r14b
negl %r14d
incq %rbx
jmp 0x3324
movq 0x10(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
callq 0x253c
movq %rbx, %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::Multiply(BigFloat const&, BigFloat const&)
BigFloat BigFloat::Multiply(const BigFloat& left, const BigFloat& right)
{
    BigFloat ris;
    BigFloat tmp;
    ris.number.push_back('0');
    int carry = 0;

    for(size_t i = 0; i < right.number.size(); ++i) {
        for(size_t k = 0; k < i; ++k) {
            tmp.number.push_front('0');
        }

        for(size_t j = 0; j < left.number.size(); ++j) {
            int aus = CharToInt(right.number[i]) * CharToInt(left.number[j]) + carry;
            carry = 0;
            if(aus > 9) {
                while(aus > 9) {
                    carry++;
                    aus -= 10;
                }
            }
            tmp.number.push_back(IntToChar(aus));
        }

        if(carry != 0)
            tmp.number.push_back(IntToChar(carry));
        carry = 0;

        ris = Sum(ris, tmp);
        tmp.number.clear();
    }

    return ris;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x2610
leaq 0xa8(%rsp), %rdi
callq 0x2610
leaq 0x8(%r15), %rdi
leaq 0x28(%rsp), %rsi
movb $0x30, (%rsi)
callq 0x897c
leaq 0x8(%rbx), %rax
movq %rax, 0x8(%rsp)
leaq 0xb0(%rsp), %rbp
leaq 0x8(%r14), %rax
movq %rax, 0x20(%rsp)
addq $0x18, %rbx
movq %rbx, 0x18(%rsp)
addq $0x18, %r14
movq %r14, 0x10(%rsp)
xorl %r12d, %r12d
leaq 0x28(%rsp), %rbx
movq %r15, (%rsp)
movq 0x8(%rsp), %rdi
callq 0x298e
movq %r12, %r14
cmpq %rax, %r12
jae 0x3557
subq $0x1, %r14
jb 0x3479
movb $0x30, 0x28(%rsp)
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x88c4
jmp 0x3461
xorl %r15d, %r15d
xorl %r14d, %r14d
movq 0x20(%rsp), %rdi
callq 0x298e
cmpq %rax, %r14
jae 0x3504
movq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x895c
movsbl (%rax), %r13d
addl $-0x30, %r13d
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x895c
movsbl (%rax), %ecx
addl $-0x30, %ecx
imull %r13d, %ecx
addl %r15d, %ecx
xorl %r15d, %r15d
cmpl $0xa, %ecx
jl 0x34ea
cmpl $0x13, %ecx
pushq $0x13
popq %rdx
cmovbl %ecx, %edx
movl %ecx, %eax
subl %edx, %eax
addl $0x9, %eax
xorl %edx, %edx
pushq $0xa
popq %rsi
divl %esi
movl %eax, %r15d
imull $-0xa, %eax, %eax
incl %r15d
addl %eax, %ecx
addl $-0xa, %ecx
addb $0x30, %cl
movb %cl, 0x28(%rsp)
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x897c
incq %r14
jmp 0x347f
testl %r15d, %r15d
je 0x351d
addb $0x30, %r15b
movb %r15b, 0x28(%rsp)
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x897c
movq %rbx, %rdi
movq (%rsp), %r15
movq %r15, %rsi
leaq 0xa8(%rsp), %rdx
callq 0x3180
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2678
movq %rbx, %rdi
callq 0x253c
movq %rbp, %rdi
callq 0x2df6
incq %r12
jmp 0x344b
leaq 0xa8(%rsp), %rdi
callq 0x253c
movq %r15, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x358d
movq %rax, %rbx
jmp 0x359d
jmp 0x3584
jmp 0x358d
movq %rax, %rbx
movq (%rsp), %r15
jmp 0x3590
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x253c
movq %r15, %rdi
callq 0x253c
movq %rbx, %rdi
callq 0x2200
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::Pow(BigFloat const&, BigFloat const&)
BigFloat BigFloat::Pow(const BigFloat& left, const BigFloat& right)
{
    if(right == 0)
        return 1;
    else if(right % 2 == 0)
        return BigFloat::Pow(left, right / 2) * BigFloat::Pow(left, right / 2);
    else
        return left * BigFloat::Pow(left, right / 2) * BigFloat::Pow(left, right / 2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x290, %rsp            # imm = 0x290
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
andl $0x0, (%rsi)
movq %rdx, %rdi
callq 0x3860
testb %al, %al
je 0x35ea
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x2556
jmp 0x37a6
leaq 0x190(%rsp), %rdx
movl $0x2, (%rdx)
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x38b5
leaq 0x110(%rsp), %rsi
andl $0x0, (%rsi)
movq %r12, %rdi
callq 0x3860
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
callq 0x253c
testb %bpl, %bpl
je 0x36da
leaq 0x210(%rsp), %rdx
movl $0x2, (%rdx)
leaq 0x190(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x39de
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x35ae
leaq 0x8(%rsp), %rdx
movl $0x2, (%rdx)
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
callq 0x39de
leaq 0x110(%rsp), %rdi
leaq 0x90(%rsp), %rdx
movq %r14, %rsi
callq 0x35ae
leaq 0x10(%rsp), %rsi
leaq 0x110(%rsp), %rdx
movq %rbx, %rdi
callq 0x3925
leaq 0x110(%rsp), %rdi
callq 0x253c
leaq 0x90(%rsp), %rdi
callq 0x253c
leaq 0x10(%rsp), %rdi
callq 0x253c
leaq 0x190(%rsp), %rdi
jmp 0x37a1
leaq 0x8(%rsp), %rdx
movl $0x2, (%rdx)
leaq 0x110(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x39de
leaq 0x190(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x35ae
leaq 0x10(%rsp), %rdi
leaq 0x190(%rsp), %rdx
movq %r14, %rsi
callq 0x3925
leaq 0xc(%rsp), %rdx
movl $0x2, (%rdx)
leaq 0x210(%rsp), %rdi
movq %r15, %rsi
callq 0x39de
leaq 0x90(%rsp), %rdi
leaq 0x210(%rsp), %rdx
movq %r14, %rsi
callq 0x35ae
leaq 0x10(%rsp), %rsi
leaq 0x90(%rsp), %rdx
movq %rbx, %rdi
callq 0x3925
leaq 0x90(%rsp), %rdi
callq 0x253c
leaq 0x210(%rsp), %rdi
callq 0x253c
leaq 0x10(%rsp), %rdi
callq 0x253c
leaq 0x190(%rsp), %rdi
callq 0x253c
leaq 0x110(%rsp), %rdi
callq 0x253c
movq %rbx, %rax
addq $0x290, %rsp            # imm = 0x290
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x253c
jmp 0x37ce
movq %rax, %rbx
leaq 0x210(%rsp), %rdi
callq 0x253c
jmp 0x37f2
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x253c
jmp 0x3801
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x253c
jmp 0x3813
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x253c
jmp 0x3825
movq %rax, %rbx
leaq 0x190(%rsp), %rdi
callq 0x253c
jmp 0x3834
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x253c
jmp 0x3841
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
jmp 0x3853
movq %rax, %rbx
leaq 0x190(%rsp), %rdi
jmp 0x3853
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x253c
movq %rbx, %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: operator*(BigFloat const&, BigFloat const&)
BigFloat operator*(const BigFloat& left, const BigFloat& right)
{
    BigFloat tmp;
    if((left.error) || (right.error)) {
        return tmp;
    }

    tmp = BigFloat::Multiply(left, right);
    if(((left.sign == '-') && (right.sign == '-')) || ((left.sign == '+') && (right.sign == '+')))
        tmp.sign = '+';
    else
        tmp.sign = '-';

    tmp.decimals = left.decimals + right.decimals;
    tmp.error = 0;
    tmp.LeadTrim();

    return tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2610
cmpb $0x0, 0x5c(%r14)
jne 0x39b9
cmpb $0x0, 0x5c(%r15)
jne 0x39b9
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x33d6
leaq 0x8(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2678
movq %r12, %rdi
callq 0x253c
movb (%r14), %al
movl %eax, %ecx
xorb $0x2d, %cl
movb (%r15), %dl
movl %edx, %esi
xorb $0x2d, %sil
orb %cl, %sil
sete %cl
xorb $0x2b, %al
xorb $0x2b, %dl
orb %al, %dl
sete %al
orb %cl, %al
xorb $0x1, %al
addb %al, %al
addb $0x2b, %al
movb %al, (%rbx)
movl 0x58(%r15), %eax
addl 0x58(%r14), %eax
movl %eax, 0x58(%rbx)
movb $0x0, 0x5c(%rbx)
movq %rbx, %rdi
callq 0x3b2c
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x253c
movq %r14, %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::operator=(char const*)
BigFloat& BigFloat::operator=(const char* strNum)
{
    number.clear();
    decimals = 0;
    sign = '\0';
    error = 0;

    int count = 0;
    if(strNum[count] == '+') {
        sign = '+';
        count++;
    }
    else if(strNum[count] == '-') {
        sign = '-';
        count++;
    }
    else if(isdigit(strNum[count]))
        sign = '+';
    else {
        error = 1;
        error_code = "Unset";
        return *this;
    }

    bool start_dec = false;

    while(strNum[count] != '\0') {
        if(!start_dec)
            if(strNum[count] == '.') {
                if(number.empty()) {
                    sign = '\0';
                    error = 1;
                    error_code = "Unset";
                    return *this;
                }
                start_dec = true;
                count++;
            }

        if(isdigit(strNum[count])) {
            number.push_front(strNum[count]);
            count++;
            if(start_dec)
                decimals++;
        }
        else {
            sign = '\0';
            number.clear();
            decimals = 0;
            error = 1;
            error_code = "Unset";
            return *this;
        }
    }
    this->LeadTrim();
    return *this;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x2df6
andl $0x0, 0x58(%rbx)
xorl %eax, %eax
movb %al, (%rbx)
movb %al, 0x5c(%rbx)
movzbl (%r15), %eax
pushq $0x1
popq %rbp
cmpl $0x2b, %eax
je 0x3a93
cmpl $0x2d, %eax
je 0x3a93
movsbl %al, %eax
addl $-0x30, %eax
cmpl $0xa, %eax
jae 0x3b0b
xorl %ebp, %ebp
movb $0x2b, %al
movb %al, (%rbx)
xorl %r12d, %r12d
movslq %ebp, %rsi
movb (%r15,%rsi), %al
testb %al, %al
je 0x3aed
cmpb $0x2e, %al
setne %cl
orb %r12b, %cl
testb $0x1, %cl
jne 0x3aca
movq 0x38(%rbx), %rax
cmpq 0x18(%rbx), %rax
je 0x3b08
movslq %ebp, %rsi
movb 0x1(%r15,%rsi), %al
incq %rsi
movb $0x1, %r12b
movl %esi, %ebp
movsbl %al, %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x3af7
addq %r15, %rsi
movq %r14, %rdi
callq 0x6c84
incl %ebp
testb $0x1, %r12b
je 0x3a98
incl 0x58(%rbx)
jmp 0x3a98
movq %rbx, %rdi
callq 0x3b2c
jmp 0x3b1f
movb $0x0, (%rbx)
movq %r14, %rdi
callq 0x2df6
andl $0x0, 0x58(%rbx)
jmp 0x3b0b
movb $0x0, (%rbx)
movb $0x1, 0x5c(%rbx)
leaq 0x60(%rbx), %rdi
leaq 0x54ea(%rip), %rsi      # 0x9004
callq 0x2220
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::LeadTrim()
void BigFloat::LeadTrim()
{
    for(int i = number.size() - 1; i > decimals; --i) {
        if(number[i] == '0')
            number.pop_back();
        else
            break;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x298e
movq %rax, %r15
leaq 0x18(%rbx), %r12
decl %r15d
cmpl 0x58(%rbx), %r15d
jle 0x3b6d
movslq %r15d, %rsi
movq %r12, %rdi
callq 0x895c
cmpb $0x30, (%rax)
jne 0x3b6d
movq %r14, %rdi
callq 0x6d5c
jmp 0x3b4a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::operator==(BigFloat const&) const
bool BigFloat::operator== (const BigFloat& right) const
{
    if((error) || (right.error))
        return false;

    int check = CompareNum(*this, right);
    if((check == 0) && (sign == right.sign))
        return true;
    return false;
}

// Assembly:
cmpb $0x0, 0x5c(%rdi)
je 0x4d9b
xorl %eax, %eax
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpb $0x0, 0x5c(%rsi)
jne 0x4dc0
movq %rdi, %r14
movq %rbx, %rsi
callq 0x2edc
testl %eax, %eax
jne 0x4dc0
movb (%r14), %cl
movb $0x1, %al
cmpb (%rbx), %cl
je 0x4dc2
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::operator>(BigFloat const&) const
bool BigFloat::operator> (const BigFloat& right) const
{
    if((error) || (right.error))
        return false;

    if(((sign == '+') && (right.sign == '+'))) {
        int check = CompareNum(*this, right);
        if(check == 1)
            return true;
        return false;
    }
    if(((sign == '-') && (right.sign == '-'))) {
        int check = CompareNum(*this, right);
        if(check == 2)
            return true;
        return false;
    }
    if(((sign == '-') && (right.sign == '+')))
        return false;
    if(((sign == '+') && (right.sign == '-')))
        return true;

    return false; //all cases are covered above, this is only to prevent compiler warnings
}

// Assembly:
pushq %rax
cmpb $0x0, 0x5c(%rdi)
jne 0x4dd7
cmpb $0x0, 0x5c(%rsi)
je 0x4ddb
xorl %eax, %eax
jmp 0x4e12
movb (%rdi), %dl
movl %edx, %eax
xorb $0x2b, %al
movb (%rsi), %cl
movl %ecx, %r8d
xorb $0x2b, %r8b
orb %al, %r8b
jne 0x4df9
callq 0x2edc
cmpl $0x1, %eax
jmp 0x4e0f
xorb $0x2d, %dl
xorb $0x2d, %cl
orb %cl, %dl
jne 0x4e0d
callq 0x2edc
cmpl $0x2, %eax
jmp 0x4e0f
orb %cl, %al
sete %al
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::Power(BigFloat const&, BigFloat const&, int)
BigFloat BigFloat::Power(const BigFloat& left, const BigFloat& right, int div_precision)
{
    BigFloat tmp;

    tmp = BigFloat::Pow(left, right);

    tmp.sign = '+';
    if(left.sign == '-')
        if(right % 2 != 0)
            tmp.sign = '-';

    tmp.decimals = left.decimals;
    tmp.error = 0;
    tmp.LeadTrim();

    if(right.sign == '-')
        tmp = BigFloat::PrecDiv(1, tmp, div_precision);

    return tmp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x2610
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x35ae
leaq 0x10(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2678
movq %r12, %rdi
callq 0x253c
movb $0x2b, (%rbx)
cmpb $0x2d, (%r15)
jne 0x5d9c
leaq 0x90(%rsp), %rdx
movl $0x2, (%rdx)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x38b5
leaq 0xc(%rsp), %rsi
andl $0x0, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x5e48
movl %eax, %r12d
leaq 0x10(%rsp), %rdi
callq 0x253c
testb %r12b, %r12b
je 0x5d9c
movb $0x2d, (%rbx)
movl 0x58(%r15), %eax
movl %eax, 0x58(%rbx)
movb $0x0, 0x5c(%rbx)
movq %rbx, %rdi
callq 0x3b2c
cmpb $0x2d, (%r14)
jne 0x5e01
leaq 0x90(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x2556
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0x4f6e
leaq 0x10(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2678
movq %r14, %rdi
callq 0x253c
leaq 0x90(%rsp), %rdi
callq 0x253c
movq %rbx, %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x90(%rsp), %rdi
jmp 0x5e2b
jmp 0x5e34
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x253c
jmp 0x5e37
jmp 0x5e34
movq %rax, %r14
movq %rbx, %rdi
callq 0x253c
movq %r14, %rdi
callq 0x2200
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: operator<<(std::ostream&, BigFloat const&)
std::ostream& operator<<(std::ostream& out, const BigFloat& right)
{
    if(right.error) {
        out << "nan";
        return out;
    }

    out << right.sign;
    for(int i = right.number.size() - 1; i >= 0; --i) {
        out << right.number[i];
        if((i == right.decimals) && (i != 0))
            out << '.';
    }
    return out;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpb $0x1, 0x5c(%rsi)
jne 0x6391
leaq 0x2d05(%rip), %rsi      # 0x9082
movq %rbx, %rdi
callq 0x2120
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r14
movsbl (%rsi), %esi
movq %rbx, %rdi
callq 0x2150
leaq 0x8(%r14), %rdi
callq 0x298e
leaq 0x18(%r14), %r15
movl %eax, %r12d
decq %r12
pushq $0x2e
popq %rbp
testl %r12d, %r12d
js 0x6385
movl %r12d, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq %r15, %rdi
callq 0x895c
movsbl (%rax), %esi
movq %rbx, %rdi
callq 0x2150
testl %r12d, %r12d
je 0x63eb
cmpl 0x58(%r14), %r12d
jne 0x63eb
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2150
decq %r12
jmp 0x63b5
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: operator>>(std::istream&, BigFloat&)
std::istream& operator>>(std::istream& in, BigFloat& right)
{
    std::string c;
    in >> c;
    right = c;
    return in;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rsp), %rsi
callq 0x2170
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2190
movq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x3a4e
leaq 0x28(%rsp), %rdi
callq 0x2070
leaq 0x8(%rsp), %rdi
callq 0x2070
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x2070
jmp 0x6465
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2200
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::ToDouble() const
double BigFloat::ToDouble() const
{
    double var = 0;

    if(error) {
        var = std::nan("");
        return var;
    }

    double dec = 1;
    if(decimals > 0) {
        int aus = decimals;
        while(aus != 0) {
            dec /= 10;
            aus--;
        }
    }

    for(size_t i = 0; i < number.size(); i++) {
        var += CharToInt(number[i]) * dec;
        dec *= 10;
    }

    if(sign == '-')
        var *= -1;

    return var;
}

// Assembly:
cmpb $0x1, 0x5c(%rdi)
jne 0x6490
leaq 0x2ca6(%rip), %rdi      # 0x9131
jmp 0x2030
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl 0x58(%rdi), %eax
movsd 0x2b67(%rip), %xmm1     # 0x9010
testl %eax, %eax
jle 0x64c0
movsd 0x2b63(%rip), %xmm0     # 0x9018
subl $0x1, %eax
jb 0x64c0
divsd %xmm0, %xmm1
jmp 0x64b5
movsd %xmm1, 0x8(%rsp)
leaq 0x8(%rbx), %r14
leaq 0x18(%rbx), %r15
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x298e
cmpq %rax, %r12
jae 0x652a
movq %r15, %rdi
movq %r12, %rsi
callq 0x895c
movsbl (%rax), %eax
addl $-0x30, %eax
cvtsi2sd %eax, %xmm0
movsd 0x8(%rsp), %xmm1
mulsd %xmm1, %xmm0
movapd 0x10(%rsp), %xmm2
addsd %xmm0, %xmm2
movapd %xmm2, 0x10(%rsp)
mulsd 0x2af9(%rip), %xmm1     # 0x9018
movsd %xmm1, 0x8(%rsp)
incq %r12
jmp 0x64db
cmpb $0x2d, (%rbx)
je 0x6536
movaps 0x10(%rsp), %xmm0
jmp 0x6542
movaps 0x10(%rsp), %xmm0
xorps 0x2ade(%rip), %xmm0     # 0x9020
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::ToFloat() const
float BigFloat::ToFloat() const
{
    float var = 0;

    if(error) {
        var = std::nan("");
        return var;
    }

    float dec = 1;
    if(decimals > 0) {
        int aus = decimals;
        while(aus != 0) {
            dec /= 10;
            aus--;
        }
    }

    for(size_t i = 0; i < number.size(); i++) {
        var += CharToInt(number[i]) * dec;
        dec *= 10;
    }

    if(sign == '-')
        var *= -1;

    return var;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpb $0x1, 0x5c(%rdi)
jne 0x657a
leaq 0x2bc5(%rip), %rdi      # 0x9131
callq 0x2030
cvtsd2ss %xmm0, %xmm0
jmp 0x661d
movq %rdi, %rbx
movl 0x58(%rdi), %eax
movss 0x2ab8(%rip), %xmm1     # 0x9040
testl %eax, %eax
jle 0x659f
movss 0x2ab0(%rip), %xmm0     # 0x9044
subl $0x1, %eax
jb 0x659f
divss %xmm0, %xmm1
jmp 0x6594
movss %xmm1, 0xc(%rsp)
leaq 0x8(%rbx), %r14
leaq 0x18(%rbx), %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x298e
cmpq %rax, %r12
jae 0x6605
movq %r15, %rdi
movq %r12, %rsi
callq 0x895c
movsbl (%rax), %eax
addl $-0x30, %eax
cvtsi2ss %eax, %xmm0
movss 0xc(%rsp), %xmm1
mulss %xmm1, %xmm0
movaps 0x10(%rsp), %xmm2
addss %xmm0, %xmm2
movaps %xmm2, 0x10(%rsp)
mulss 0x2a4a(%rip), %xmm1     # 0x9044
movss %xmm1, 0xc(%rsp)
incq %r12
jmp 0x65b8
cmpb $0x2d, (%rbx)
je 0x6611
movaps 0x10(%rsp), %xmm0
jmp 0x661d
movaps 0x10(%rsp), %xmm0
xorps 0x2a13(%rip), %xmm0     # 0x9030
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::ToString[abi:cxx11]() const
std::string BigFloat::ToString() const
{
    std::string var;
    std::stringstream ss;

    if(error) {
        var = "nan";
        return var;
    }
    if(sign == '-') {
        ss << sign;
    }
    for(int i = number.size() - 1; i >= 0; i--) {
        ss << number[i];
        if((i == decimals) && (i != 0))
            ss << ".";
    }
    ss >> var;
    return var;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsp, %rdi
callq 0x20b0
cmpb $0x1, 0x5c(%r14)
jne 0x667f
leaq 0x2a0d(%rip), %rsi      # 0x9082
movq %rbx, %rdi
callq 0x2220
jmp 0x66f4
cmpb $0x2d, (%r14)
jne 0x6692
leaq 0x10(%rsp), %rdi
pushq $0x2d
popq %rsi
callq 0x2150
leaq 0x8(%r14), %rdi
callq 0x298e
leaq 0x10(%rsp), %r15
leaq 0x18(%r14), %r12
movl %eax, %ebp
decq %rbp
leaq 0x29d7(%rip), %r13      # 0x9087
testl %ebp, %ebp
js 0x66e9
movl %ebp, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq %r12, %rdi
callq 0x895c
movsbl (%rax), %esi
movq %r15, %rdi
callq 0x2150
testl %ebp, %ebp
je 0x66e4
cmpl 0x58(%r14), %ebp
jne 0x66e4
movq %r15, %rdi
movq %r13, %rsi
callq 0x2120
decq %rbp
jmp 0x66b0
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x2170
movq %rsp, %rdi
callq 0x20d0
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x6723
jmp 0x6718
movq %rax, %r14
movq %rsp, %rdi
callq 0x20d0
movq %rbx, %rdi
callq 0x2070
movq %r14, %rdi
callq 0x2200
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::SetPrecision(int)
void BigFloat::SetPrecision(int prec)
{
    if((error) || (prec < 0))
        return;
    if(this->decimals < prec) {
        while(this->decimals < prec) {
            this->decimals++;
            this->number.push_front('0');
        }
    }
    else if(this->decimals > prec) {
        char last;
        while(this->decimals > prec) {
            last = number[0];
            this->decimals--;
            this->number.pop_front();
        }
        if(CharToInt(last) >= 5) {
            if(prec == 0)
                (*this)++;
            else {
                std::stringstream ss;
                ss << "0.";
                for(int i = 1; i < prec; i++)
                    ss << "0";
                ss << "1";
                BigFloat aus(ss.str());
                *this = *this + aus;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x330, %rsp            # imm = 0x330
testl %esi, %esi
js 0x68b2
movq %rdi, %rbx
cmpb $0x0, 0x5c(%rdi)
jne 0x68b2
movl %esi, %ebp
movl 0x58(%rbx), %eax
cmpl %esi, %eax
jge 0x6792
leaq 0x8(%rbx), %r14
leaq 0xa8(%rsp), %r15
cmpl %ebp, %eax
jge 0x68b2
incl %eax
movl %eax, 0x58(%rbx)
movb $0x30, 0xa8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x88c4
movl 0x58(%rbx), %eax
jmp 0x676d
jbe 0x68b2
leaq 0x8(%rbx), %r14
leaq 0x18(%rbx), %r15
cmpl %ebp, %eax
jle 0x67c1
movq %r15, %rdi
xorl %esi, %esi
callq 0x895c
movb (%rax), %r12b
decl 0x58(%rbx)
movq %r14, %rdi
callq 0x6dda
movl 0x58(%rbx), %eax
jmp 0x67a0
cmpb $0x35, %r12b
jl 0x68b2
testl %ebp, %ebp
je 0x6895
leaq 0xa8(%rsp), %rdi
callq 0x20b0
leaq 0xb8(%rsp), %r14
leaq 0x2897(%rip), %rsi      # 0x9086
movq %r14, %rdi
callq 0x2120
decl %ebp
leaq 0x2855(%rip), %r15      # 0x9055
subl $0x1, %ebp
jb 0x6812
movq %r14, %rdi
movq %r15, %rsi
callq 0x2120
jmp 0x6800
leaq 0x2870(%rip), %rsi      # 0x9089
movq %r14, %rdi
callq 0x2120
leaq 0xc0(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x21c0
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x6e60
leaq 0x8(%rsp), %rdi
callq 0x2070
leaq 0x230(%rsp), %rdi
leaq 0x28(%rsp), %rdx
movq %rbx, %rsi
callq 0x3c1a
leaq 0x230(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2678
movq %r14, %rdi
callq 0x253c
leaq 0x28(%rsp), %rdi
callq 0x253c
leaq 0xa8(%rsp), %rdi
callq 0x20d0
jmp 0x68b2
leaq 0x2b0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x6df6
movq %r14, %rdi
callq 0x253c
addq $0x330, %rsp            # imm = 0x330
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x253c
jmp 0x68e7
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2070
jmp 0x68e7
jmp 0x68e4
jmp 0x68e4
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x20d0
movq %rbx, %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O2/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::TrailTrim()
void BigFloat::TrailTrim()
{
    if(!error)
        while((number[0] == '0') && (decimals > 0)) {
            number.pop_front();
            decimals--;
        }
}

// Assembly:
cmpb $0x0, 0x5c(%rdi)
jne 0x6939
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
leaq 0x18(%rdi), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x895c
cmpb $0x30, (%rax)
jne 0x6934
cmpl $0x0, 0x58(%rbx)
jle 0x6934
movq %r14, %rdi
callq 0x6dda
decl 0x58(%rbx)
jmp 0x6912
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/HarmonyHubControl.cpp
// Function: connectToHarmony(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, csocket&)
int connectToHarmony(std::string strHarmonyIPAddress, int harmonyPortNumber, csocket& harmonyCommunicationcsocket)
{
    if(strHarmonyIPAddress.length() == 0 || harmonyPortNumber == 0 || harmonyPortNumber > 65535)
    {
        errorString = "connectToHarmony : Empty Harmony IP Address or Port";
        return 1;
    }

    harmonyCommunicationcsocket.connect(strHarmonyIPAddress.c_str(), harmonyPortNumber);

    if (harmonyCommunicationcsocket.getState() != csocket::CONNECTED)
    {
        errorString = "connectToHarmony : Unable to connect to specified IP Address on specified Port";
        return 1;
    }

    return 0;
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
movl %esi, %edx
leaq 0x7484(%rip), %rsi      # 0xb29e
cmpl $0xffff, %edx           # imm = 0xFFFF
jg 0x3e50
testl %edx, %edx
je 0x3e50
cmpq $0x0, 0x8(%rdi)
je 0x3e50
movq (%rdi), %rsi
movq %rbx, %rdi
callq 0xa29e
movq %rbx, %rdi
callq 0xa5d6
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x1, %ecx
je 0x3e5f
leaq 0x7482(%rip), %rsi      # 0xb2d2
leaq 0xf461(%rip), %rdi      # 0x132b8
callq 0x34c0
pushq $0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/HarmonyHubControl.cpp
// Function: TryGetMemberString[abi:cxx11](rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> const&, char const*)
std::string TryGetMemberString(const rapidjson::Value& value, const char* memberName)
{
    rapidjson::Value::ConstMemberIterator itr = value.FindMember(memberName);
    if (itr != value.MemberEnd() && itr->value.IsString())
    {
        return itr->value.GetString();
    }
    return std::string();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x69c4
movq %rax, %r14
movq %r15, %rdi
callq 0x69e6
cmpq %rax, %r14
je 0x4dd2
testb $0x4, 0x1f(%r14)
jne 0x4de4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
andq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
jmp 0x4e00
addq $0x10, %r14
movq %r14, %rdi
callq 0x6a26
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x68b8
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/HarmonyHubControl.cpp
// Function: parseFunction(rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> const&, std::vector<Function, std::allocator<Function>>&)
int parseFunction(const rapidjson::Value& controlGroup, std::vector<Function>& vecDeviceFunctions)
{
    rapidjson::Value::ConstMemberIterator itr = controlGroup.FindMember("function");
    if (itr != controlGroup.MemberEnd() && itr->value.IsArray())
    {
        Function f;
        f.m_strName = TryGetMemberString(controlGroup, "name");
        if (f.m_strName.empty())
        {
            return 1;
        }
        for (const auto& function : itr->value.GetArray())
        {
            if(parseAction(function, f.m_vecActions) != 0)
            {
                return 1;
            }
        }
        vecDeviceFunctions.push_back(f);
    }
    else
    {
        return 1;
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x6979(%rip), %rsi      # 0xb92d
callq 0x69c4
movq %rax, %r14
movq %r15, %rdi
callq 0x69e6
pushq $0x1
popq %rbp
cmpq %rax, %r14
je 0x5091
cmpw $0x4, 0x1e(%r14)
jne 0x5091
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
andq $0x0, 0x20(%rax)
leaq 0x6922(%rip), %rdx      # 0xb922
movq %rsp, %rdi
movq %r15, %rsi
callq 0x4da1
leaq 0x20(%rsp), %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x3320
movq %r12, %rdi
callq 0x3518
movq 0x8(%r15), %r13
testq %r13, %r13
je 0x507e
addq $0x10, %r14
movq %rsp, %rdi
movq %r14, %rsi
callq 0x6b5e
movq (%rsp), %rdi
callq 0x9536
movq %rax, %r14
leaq 0x40(%rsp), %r15
movq (%rsp), %rdi
callq 0x956c
movq %rax, %r12
cmpq %r12, %r14
je 0x5071
movq %r14, %rdi
movq %r15, %rsi
callq 0x4e0d
addq $0x10, %r14
jmp 0x505b
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x6b8c
xorl %ebp, %ebp
testq %r13, %r13
sete %bpl
leaq 0x20(%rsp), %rdi
callq 0x6bb8
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x50aa
jmp 0x50aa
jmp 0x50aa
jmp 0x50aa
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x6bb8
movq %rbx, %rdi
callq 0x3470
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/HarmonyHubControl.cpp
// Function: parseControlGroup(rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> const&, std::vector<Function, std::allocator<Function>>&)
int parseControlGroup(const rapidjson::Value& device, std::vector<Function>& vecDeviceFunctions)
{
    rapidjson::Value::ConstMemberIterator itr = device.FindMember("controlGroup");
    if (itr != device.MemberEnd() && itr->value.IsArray())
    {
        for (const auto& controlGroup : itr->value.GetArray())
        {
            if(parseFunction(controlGroup, vecDeviceFunctions) != 0)
            {
                return 1;
            }
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x6863(%rip), %rsi      # 0xb936
callq 0x69c4
movq %rax, %r14
movq %r15, %rdi
callq 0x69e6
xorl %ebp, %ebp
cmpq %rax, %r14
je 0x5135
cmpw $0x4, 0x1e(%r14)
jne 0x5135
addq $0x10, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6b5e
movq (%r15), %rdi
callq 0x9536
movq %rax, %r14
movq (%r15), %rdi
callq 0x956c
movq %rax, %r15
cmpq %r15, %r14
je 0x5135
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4f99
addq $0x10, %r14
testl %eax, %eax
je 0x511a
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/HarmonyHubControl.cpp
// Function: ReadAuthorizationTokenFile[abi:cxx11]()
const std::string ReadAuthorizationTokenFile()
{
    std::string strAuthorizationToken;
    std::ifstream AuthorizationTokenFileStream (HARMONY_HUB_AUTHORIZATION_TOKEN_FILENAME);
    if (!AuthorizationTokenFileStream.is_open())
    {
        return strAuthorizationToken;
    }

    getline (AuthorizationTokenFileStream,strAuthorizationToken);

    AuthorizationTokenFileStream.close();
    
    return strAuthorizationToken;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x639a(%rip), %rsi      # 0xb989
movq %rsp, %rdi
pushq $0x8
popq %rdx
callq 0x34a0
leaq 0x78(%rsp), %rdi
callq 0x30d0
testb %al, %al
je 0x561b
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x30a0
movq %rsp, %rdi
callq 0x30b0
movq %rsp, %rdi
callq 0x3110
movq %rbx, %rax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rsp, %rdi
callq 0x3110
jmp 0x5641
movq %rax, %r14
movq %rbx, %rdi
callq 0x3518
movq %r14, %rdi
callq 0x3470
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/HarmonyHubControl.cpp
// Function: WriteAuthorizationTokenFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int WriteAuthorizationTokenFile(const std::string& strAuthorizationToken)
{
    std::ofstream AuthorizationTokenFileStream;
    AuthorizationTokenFileStream.open(HARMONY_HUB_AUTHORIZATION_TOKEN_FILENAME);
    if(!AuthorizationTokenFileStream.is_open())
    {
        return 1;
    }
    AuthorizationTokenFileStream << strAuthorizationToken;
    AuthorizationTokenFileStream.close();

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3460
leaq 0x6317(%rip), %rsi      # 0xb989
pushq $0x10
popq %rdx
movq %r14, %rdi
callq 0x3050
leaq 0x78(%rsp), %rdi
callq 0x30d0
testb %al, %al
je 0x56a6
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x3250
xorl %ebx, %ebx
leaq 0x8(%rsp), %rdi
callq 0x33b0
jmp 0x56a9
pushq $0x1
popq %rbx
leaq 0x8(%rsp), %rdi
callq 0x33e0
movl %ebx, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x33e0
movq %rbx, %rdi
callq 0x3470
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/./rapidjson/document.h
// Function: rapidjson::GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>::~GenericDocument()
~GenericDocument() {
        // Clear the ::ValueType before ownAllocator is destroyed, ~ValueType()
        // runs last and may access its elements or members which would be freed
        // with an allocator like MemoryPoolAllocator (CrtAllocator does not
        // free its data when destroyed, but MemoryPoolAllocator does).
        if (ownAllocator_) {
            ValueType::SetNull();
        }
        Destroy();
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x18(%rdi)
je 0x6b29
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %rbx, %rdi
callq 0x738a
addq $0x20, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x7370
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/HarmonyHubControl.cpp
// Function: Device::toString[abi:cxx11]()
std::string toString()
    {       
	std::string ret = m_strType;
	ret.append("\":\"");        
        ret.append(m_strLabel);
	ret.append("\"");
        ret.append(",\"ID\" :");
        ret.append(m_strID);
        ret.append(",\"");
        ret.append(m_strManufacturer);
	ret.append("\":\""); 
        ret.append(m_strModel);
	ret.append("\"");      
        ret.append(",\"Functions\": { \n ");
        std::vector<Function>::iterator it = m_vecFunctions.begin();
        std::vector<Function>::iterator ite = m_vecFunctions.end();
        for(; it != ite; ++it)
        {
            ret.append(it->toString());
        }
        ret=ret.substr(0, ret.size()-2);
        ret.append("}\n");
        return ret;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x80, %rsi
callq 0x3380
leaq 0x439f(%rip), %rsi      # 0xb0f9
movq %rbx, %rdi
callq 0x34b0
leaq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x34d0
leaq 0x51e4(%rip), %rsi      # 0xbf59
movq %rbx, %rdi
callq 0x34b0
leaq 0x51cc(%rip), %rsi      # 0xbf50
movq %rbx, %rdi
callq 0x34b0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x34d0
leaq 0x51ba(%rip), %rsi      # 0xbf58
movq %rbx, %rdi
callq 0x34b0
leaq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x34d0
leaq 0x4340(%rip), %rsi      # 0xb0f9
movq %rbx, %rdi
callq 0x34b0
leaq 0x60(%r14), %rsi
movq %rbx, %rdi
callq 0x34d0
leaq 0x5185(%rip), %rsi      # 0xbf59
movq %rbx, %rdi
callq 0x34b0
leaq 0x5178(%rip), %rsi      # 0xbf5b
movq %rbx, %rdi
callq 0x34b0
movq 0xa0(%r14), %r15
movq 0xa8(%r14), %r12
leaq 0x8(%rsp), %r14
cmpq %r12, %r15
je 0x6e27
movq %r14, %rdi
movq %r15, %rsi
callq 0x6ffa
movq %rbx, %rdi
movq %r14, %rsi
callq 0x34d0
movq %r14, %rdi
callq 0x3518
addq $0x38, %r15
jmp 0x6dfe
movq 0x8(%rbx), %rcx
addq $-0x2, %rcx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x32d0
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3320
movq %r14, %rdi
callq 0x3518
leaq 0x5111(%rip), %rsi      # 0xbf6e
movq %rbx, %rdi
callq 0x34b0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x6e7a
jmp 0x6e7a
jmp 0x6e7a
movq %rax, %r14
jmp 0x6e8c
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x3518
movq %rbx, %rdi
callq 0x3518
movq %r14, %rdi
callq 0x3470
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/HarmonyHubControl.cpp
// Function: Function::toString[abi:cxx11]()
std::string toString()
    {
        std::string ret=("\"");
	ret.append(m_strName);
	ret.append("\":[");
        std::vector<Action>::iterator it = m_vecActions.begin();
        std::vector<Action>::iterator ite = m_vecActions.end();
        for(; it != ite; ++it)
        {
	ret.append("\n\t");
	ret.append("\"");
        ret.append(it->toString());
	ret.append("\",");
        }
        ret=ret.substr(0, ret.size()-1);
        ret.append("],\n");
        return ret;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x4f44(%rip), %rsi      # 0xbf59
leaq 0x8(%rsp), %rdx
callq 0x68b8
movq %rbx, %rdi
movq %r15, %rsi
callq 0x34d0
leaq 0x4f40(%rip), %rsi      # 0xbf71
movq %rbx, %rdi
callq 0x34b0
movq 0x20(%r15), %r14
movq 0x28(%r15), %r15
leaq 0x4f11(%rip), %r12      # 0xbf59
leaq 0x8(%rsp), %r13
leaq 0x4b8e(%rip), %rbp      # 0xbbe2
cmpq %r15, %r14
je 0x70a2
movq %rbx, %rdi
leaq 0x4f12(%rip), %rsi      # 0xbf75
callq 0x34b0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x34b0
movq %r13, %rdi
movq %r14, %rsi
callq 0x3380
movq %rbx, %rdi
movq %r13, %rsi
callq 0x34d0
movq %r13, %rdi
callq 0x3518
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x34b0
addq $0x60, %r14
jmp 0x7054
movq 0x8(%rbx), %rcx
decq %rcx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x32d0
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3320
movq %r14, %rdi
callq 0x3518
leaq 0x4ea1(%rip), %rsi      # 0xbf78
movq %rbx, %rdi
callq 0x34b0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7108
jmp 0x7108
jmp 0x7108
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x3518
jmp 0x710b
jmp 0x7108
movq %rax, %r14
movq %rbx, %rdi
callq 0x3518
movq %r14, %rdi
callq 0x3470
nop
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/./rapidjson/allocators.h
// Function: rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>::MemoryPoolAllocator(unsigned long, rapidjson::CrtAllocator*)
explicit
    MemoryPoolAllocator(size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) : 
        chunk_capacity_(chunkSize),
        baseAllocator_(baseAllocator ? baseAllocator : RAPIDJSON_NEW(BaseAllocator)()),
        shared_(static_cast<SharedData*>(baseAllocator_ ? baseAllocator_->Malloc(SIZEOF_SHARED_DATA + SIZEOF_CHUNK_HEADER) : 0))
    {
        RAPIDJSON_ASSERT(baseAllocator_ != 0);
        RAPIDJSON_ASSERT(shared_ != 0);
        if (baseAllocator) {
            shared_->ownBaseAllocator = 0;
        }
        else {
            shared_->ownBaseAllocator = baseAllocator_;
        }
        shared_->chunkHead = GetChunkHead(shared_);
        shared_->chunkHead->capacity = 0;
        shared_->chunkHead->size = 0;
        shared_->chunkHead->next = 0;
        shared_->ownBuffer = true;
        shared_->refcount = 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, (%rdi)
testq %rdx, %rdx
je 0x72f0
xorl %r14d, %r14d
jmp 0x72fe
pushq $0x1
popq %rdi
callq 0x3280
movq %rax, %r14
movq %rax, %rdx
movq %rdx, 0x8(%rbx)
pushq $0x38
popq %rdi
callq 0x3350
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x7341
movq %r14, 0x8(%rax)
movq %rax, %rcx
addq $0x20, %rcx
movq %rcx, (%rax)
andq $0x0, 0x30(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movb $0x1, 0x18(%rax)
movq $0x1, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x4e46(%rip), %rdi      # 0xc18e
leaq 0x4dad(%rip), %rsi      # 0xc0fc
leaq 0x4dbf(%rip), %rcx      # 0xc115
movl $0xaf, %edx
callq 0x31c0
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/./rapidjson/allocators.h
// Function: rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>::~MemoryPoolAllocator()
~MemoryPoolAllocator() RAPIDJSON_NOEXCEPT {
        if (!shared_) {
            // do nothing if moved
            return;
        }
        if (shared_->refcount > 1) {
            --shared_->refcount;
            return;
        }
        Clear();
        BaseAllocator *a = shared_->ownBaseAllocator;
        if (shared_->ownBuffer) {
            baseAllocator_->Free(shared_);
        }
        RAPIDJSON_DELETE(a);
    }

// Assembly:
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x73c2
movq 0x10(%rax), %rcx
cmpq $0x2, %rcx
jb 0x73c3
decq %rcx
movq %rcx, 0x10(%rax)
retq
pushq %rbx
movq %rdi, %rbx
callq 0x73ec
movq 0x10(%rbx), %rdi
movq 0x8(%rdi), %rbx
cmpb $0x1, 0x18(%rdi)
jne 0x73df
callq 0x3310
pushq $0x1
popq %rsi
movq %rbx, %rdi
popq %rbx
jmp 0x32a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/./rapidjson/allocators.h
// Function: rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>::Clear()
void Clear() RAPIDJSON_NOEXCEPT {
        RAPIDJSON_NOEXCEPT_ASSERT(shared_->refcount > 0);
        for (;;) {
            ChunkHeader* c = shared_->chunkHead;
            if (!c->next) {
                break;
            }
            shared_->chunkHead = c->next;
            baseAllocator_->Free(c);
        }
        shared_->chunkHead->size = 0;
    }

// Assembly:
pushq %rbx
movq 0x10(%rdi), %rax
cmpq $0x0, 0x10(%rax)
je 0x741c
movq %rdi, %rbx
movq (%rax), %rdi
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x7415
movq %rcx, (%rax)
callq 0x3310
movq 0x10(%rbx), %rax
jmp 0x73fb
andq $0x0, 0x8(%rdi)
popq %rbx
retq
leaq 0x4d78(%rip), %rdi      # 0xc19b
leaq 0x4cd2(%rip), %rsi      # 0xc0fc
leaq 0x4d80(%rip), %rcx      # 0xc1b1
movl $0x115, %edx            # imm = 0x115
callq 0x31c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/NovaGL[P]HarmonyHubControl/./rapidjson/allocators.h
// Function: rapidjson::CrtAllocator::Realloc(void*, unsigned long, unsigned long)
void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
        (void)originalSize;
        if (newSize == 0) {
            RAPIDJSON_FREE(originalPtr);
            return NULL;
        }
        return RAPIDJSON_REALLOC(originalPtr, newSize);
    }

// Assembly:
movq %rsi, %rdi
testq %rcx, %rcx
je 0x85b2
movq %rcx, %rsi
jmp 0x3440
pushq %rax
callq 0x3310
xorl %eax, %eax
popq %rcx
retq