LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteByteCodeToFile(Compiler*, BackEndInfo*)
void WriteByteCodeToFile(Compiler* compiler, BackEndInfo* info)
{
    assert(compiler);
    assert(info);

    const char* output_file_name = DEFAULT_OUTPUT_FILE_NAME;

    if (info->output_file != nullptr)
    {
        output_file_name = info->output_file;
    }

    FILE* output = fopen(output_file_name, "w");
    assert(output && "Can't create output file");

    char chmod_str[chmod_str_len] = "";
    sprintf(chmod_str, "chmod +x %s", output_file_name);
    system(chmod_str);

    fwrite(compiler->writer.buffer, compiler->writer.offset, sizeof(char), output);
    fclose(output);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
testq %rdi, %rdi
je 0x2bd3
testq %rsi, %rsi
je 0x2bf2
movq %rdi, %rbx
movq (%rsi), %r15
testq %r15, %r15
jne 0x2b37
movq 0xb5e9(%rip), %r15      # 0xe120
leaq 0x5dbc(%rip), %rsi      # 0x88fa
movq %r15, %rdi
callq 0x2130
testq %rax, %rax
je 0x2c11
movq %rax, %r14
xorps %xmm0, %xmm0
leaq -0xa0(%rbp), %r12
movaps %xmm0, 0x70(%r12)
movaps %xmm0, 0x60(%r12)
movaps %xmm0, 0x50(%r12)
movaps %xmm0, 0x40(%r12)
movaps %xmm0, 0x30(%r12)
movaps %xmm0, 0x20(%r12)
movaps %xmm0, 0x10(%r12)
movaps %xmm0, (%r12)
leaq 0x5e92(%rip), %rsi      # 0x8a24
movq %r12, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2060
movq %r12, %rdi
callq 0x20e0
movq 0x28(%rbx), %rdi
movq 0x30(%rbx), %rsi
movl $0x1, %edx
movq %r14, %rcx
callq 0x21f0
movq %r14, %rdi
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2100
leaq 0x5d2b(%rip), %rdi      # 0x8905
leaq 0x5cda(%rip), %rsi      # 0x88bb
leaq 0x5de3(%rip), %rcx      # 0x89cb
movl $0xe2, %edx
callq 0x20b0
leaq 0x5d5d(%rip), %rdi      # 0x8956
leaq 0x5cbb(%rip), %rsi      # 0x88bb
leaq 0x5dc4(%rip), %rcx      # 0x89cb
movl $0xe3, %edx
callq 0x20b0
leaq 0x5de7(%rip), %rdi      # 0x89ff
leaq 0x5c9c(%rip), %rsi      # 0x88bb
leaq 0x5da5(%rip), %rcx      # 0x89cb
movl $0xed, %edx
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: DestructNameTable(NameTable*)
void DestructNameTable(NameTable* table)
{
    assert(table);

    for (size_t i = 0; i < table->num_func; ++i)
    {
        free(table->functions[i].vars);
    }
    
    free(table->functions);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2c7d
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0x2c6b
movl $0x8, %r14d
xorl %r15d, %r15d
movq (%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x2140
incq %r15
addq $0x30, %r14
cmpq 0x8(%rbx), %r15
jb 0x2c52
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2140
leaq 0x5ccc(%rip), %rdi      # 0x8950
leaq 0x5c30(%rip), %rsi      # 0x88bb
leaq 0x5f23(%rip), %rcx      # 0x8bb5
movl $0x2dd, %edx            # imm = 0x2DD
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: FindFunc(char const*, NameTable*)
Function* FindFunc(const char* name, NameTable* table)
{
    assert(name);

    for (size_t i = 0; i < table->num_func; ++i)
    {
        if (strcmp(table->functions[i].name, name) == 0)
        {
            return table->functions + i;
        }
    }

    printf("error : unknown function : '%s'\n", name);

    return nullptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2d59
movq %rdi, %rbx
movq 0x8(%rsi), %r15
testq %r15, %r15
setne %r12b
je 0x2d29
movq (%rsi), %r14
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x2170
testl %eax, %eax
je 0x2d2e
leaq -0x1(%r15), %r13
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x2d2b
movq 0x30(%r14), %rdi
addq $0x30, %r14
movq %rbx, %rsi
callq 0x2170
incq %r12
testl %eax, %eax
jne 0x2d04
cmpq %r15, %r12
setb %r12b
jmp 0x2d2e
jmp 0x2d2e
xorl %r12d, %r12d
testb %r12b, %r12b
jne 0x2d47
leaq 0x5de6(%rip), %rdi      # 0x8b20
xorl %r14d, %r14d
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2040
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x77e0(%rip), %rdi      # 0xa540
leaq 0x5b54(%rip), %rsi      # 0x88bb
leaq 0x5d84(%rip), %rcx      # 0x8af2
movl $0x28c, %edx            # imm = 0x28C
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmCompound(Node*, Compiler*)
void WriteAsmCompound(Node* node, Compiler* compiler)
{
    if (node == nullptr)
    {
        return;
    }

    ASSERT_COMPILER;

    while (node != nullptr)
    {
        WriteAsmStatement(node->left, compiler);
        node = node->right;
    }
}

// Assembly:
testq %rdi, %rdi
je 0x2da3
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0x2da4
movq 0x20(%r14), %r14
testq %r14, %r14
jne 0x2d8a
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmStatement(Node*, Compiler*)
void WriteAsmStatement(Node* node, Compiler* compiler)
{
    ASSERT_COMPILER;

    switch (node->type)
    {
        case DECL_TYPE :
        {
            WriteAsmAssignment(node, compiler);
            break;
        }
        case ADECL_TYPE :
        {
            WriteAsmArrayDeclaration(node, compiler);
            break;
        }
        case ASSG_TYPE :
        {
            WriteAsmAssignment(node, compiler);
            break;
        }
        case JUMP_TYPE :
        {
            if (!FUNC->is_void)
            {
                WriteAsmExpression(node->right, compiler);
                WritePopR64(compiler, RAX);
            }

            WriteMovR64R64(compiler, RSP, RBP);
            WritePopR64   (compiler, RBP);
            WriteRet      (compiler);
            break;
        }
        case COND_TYPE :
        {
            WriteAsmCondition(node, compiler);
            break;
        }
        case LOOP_TYPE :
        {
            WriteAsmLoop(node, compiler);
            break;
        }
        case CALL_TYPE :
        {
            WriteAsmCall(node, compiler);
            break;
        }
        default :
        {
            printf("I am here, but I shouldn't, line = %d\n", __LINE__);
            break;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl (%rdi), %eax
decl %eax
cmpl $0xc, %eax
ja 0x2dd4
movq %rsi, %rbx
leaq 0x5263(%rip), %rcx      # 0x8020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2e72
leaq 0x5c9c(%rip), %rdi      # 0x8a77
movl $0x172, %esi            # imm = 0x172
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2040
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3236
movq 0x8(%rbx), %rax
cmpb $0x0, 0x10(%rax)
jne 0x2e1b
movq 0x20(%rdi), %rdi
movq %rbx, %rsi
callq 0x2fa3
movq %rbx, %rdi
xorl %esi, %esi
callq 0x45a6
movq %rbx, %rdi
movl $0x4, %esi
movl $0x5, %edx
callq 0x3bb8
movq %rbx, %rdi
movl $0x5, %esi
callq 0x45a6
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4bf5
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2f3c
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2ffc
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x314d
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmAssignment(Node*, Compiler*)
void WriteAsmAssignment(Node* node, Compiler* compiler)
{
    ASSERT_COMPILER;

    WriteAsmExpression(node->right, compiler);

    if (node->left->type == MEM_ACCESS_TYPE)
    {
        WriteAsmExpression(node->left->right, compiler);

        WriteMovR64Mem(compiler, RAX, RBP, GetVarOfs(FUNC, node->left->left->value.name));
        WritePopR64   (compiler, RBX);
        WriteSalR64   (compiler, RBX, 3);    //sizeof(int64_t)
        WriteSubR64R64(compiler, RAX, RBX);
        WritePopR64   (compiler, RBX);
        WriteMovMemR64(compiler, RAX, RBX);

        return;
    }

    WritePopR64   (compiler, RAX);
    WriteMovMemR64(compiler, RBP, RAX, GetVarOfs(FUNC, node->left->value.name));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rdi
callq 0x2fa3
movq 0x18(%r14), %rax
cmpl $0x3, (%rax)
jne 0x2f0c
movq 0x20(%rax), %rdi
movq %rbx, %rsi
callq 0x2fa3
movq 0x8(%rbx), %rdi
movq 0x18(%r14), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x332a
movq %rbx, %rdi
xorl %esi, %esi
movl $0x5, %edx
movl %eax, %ecx
callq 0x3c77
movq %rbx, %rdi
movl $0x3, %esi
callq 0x45a6
movq %rbx, %rdi
movl $0x3, %esi
movl $0x3, %edx
callq 0x4693
movq %rbx, %rdi
xorl %esi, %esi
movl $0x3, %edx
callq 0x40e2
movq %rbx, %rdi
movl $0x3, %esi
callq 0x45a6
movq %rbx, %rdi
xorl %esi, %esi
movl $0x3, %edx
xorl %ecx, %ecx
jmp 0x2f33
movq %rbx, %rdi
xorl %esi, %esi
callq 0x45a6
movq 0x8(%rbx), %rdi
movq 0x18(%r14), %rax
movq 0x8(%rax), %rsi
callq 0x332a
movq %rbx, %rdi
movl $0x5, %esi
xorl %edx, %edx
movl %eax, %ecx
popq %rbx
popq %r14
popq %rbp
jmp 0x3d76
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmArrayDeclaration(Node*, Compiler*)
void WriteAsmArrayDeclaration(Node* node, Compiler* compiler)
{
    ASSERT_COMPILER;

    WriteAsmExpression(node->right, compiler);

    WriteMovMemR64(compiler, RBP, RSP, GetVarOfs(FUNC, node->left->value.name));
    WritePopR64   (compiler, RAX);
    WriteSalR64   (compiler, RAX, 3); //sizeof(int64_t)
    WriteSubR64R64(compiler, RSP, RAX);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rdi
callq 0x2fa3
movq 0x8(%rbx), %rdi
movq 0x18(%r14), %rax
movq 0x8(%rax), %rsi
callq 0x332a
movq %rbx, %rdi
movl $0x5, %esi
movl $0x4, %edx
movl %eax, %ecx
callq 0x3d76
movq %rbx, %rdi
xorl %esi, %esi
callq 0x45a6
movq %rbx, %rdi
xorl %esi, %esi
movl $0x3, %edx
callq 0x4693
movq %rbx, %rdi
movl $0x4, %esi
xorl %edx, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0x40e2
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmExpression(Node*, Compiler*)
void WriteAsmExpression(Node* node, Compiler* compiler)
{
    if (node == nullptr)
    {
        return;    
    }

    ASSERT_COMPILER;

    if (node->type == MATH_TYPE && node->value.op >= EQUAL_OP) // is comparison
    {
        WriteAsmExpression(node->left,  compiler);
        WriteAsmExpression(node->right, compiler);
        WriteAsmCompare(node, compiler);
    }
    else
    {
        WriteAsmSimpleExpression(node, compiler);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2ff7
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0xe, (%rdi)
jne 0x2fe8
cmpl $0x3, 0x8(%r14)
jle 0x2fe8
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0x2fa3
movq 0x20(%r14), %rdi
movq %rbx, %rsi
callq 0x2fa3
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x34b2
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x358f
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmCondition(Node*, Compiler*)
void WriteAsmCondition(Node* node, Compiler* compiler)
{
    ASSERT_COMPILER;

    WriteAsmExpression(node->left, compiler);

    size_t true_label = compiler->label++;
    size_t false_label = compiler->label++;
    size_t continue_label = compiler->label++;

    WritePopR64(compiler, RAX);
    WriteTest  (compiler, RAX, RAX);

    size_t true_jump_offset  = WriteJumpOp(compiler, NOT_EQUAL_OP, true_label);
    size_t false_jump_offset = WriteJump  (compiler, false_label);
    size_t true_label_offset = WriteLabel (compiler, true_label);

    WriteAsmCompound(node->right->left->right, compiler);

    size_t continue_jump_offset = WriteJump(compiler, continue_label);
    size_t false_label_offset   = WriteLabel(compiler, false_label);

    if (node->right->right != nullptr)
    {
        WriteAsmCompound(node->right->right->right, compiler);
    }

    size_t continue_label_offset = WriteLabel(compiler, continue_label);

    SetInt(&compiler->writer, true_label_offset - true_jump_offset - sizeof(int), true_jump_offset);
    SetInt(&compiler->writer, false_label_offset - false_jump_offset - sizeof(int), false_jump_offset);
    SetInt(&compiler->writer, continue_label_offset - continue_jump_offset - sizeof(int), continue_jump_offset);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r13
movq 0x18(%rdi), %rdi
callq 0x2fa3
movq 0x18(%rbx), %r14
leaq 0x1(%r14), %r15
leaq 0x2(%r14), %rax
movq %rax, -0x30(%rbp)
leaq 0x3(%r14), %rax
movq %rax, 0x18(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x45a6
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x480a
movq %rbx, %rdi
movl $0x5, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x48c9
movq %rax, -0x38(%rbp)
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x4985
movq %rax, -0x40(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4a0d
movq %rax, %r14
movq 0x20(%r13), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %r12
testq %r12, %r12
je 0x30a4
movq 0x18(%r12), %rdi
movq %rbx, %rsi
callq 0x2da4
movq 0x20(%r12), %r12
jmp 0x308b
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
xorl %edx, %edx
callq 0x4985
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4a0d
movq %rax, %r15
movq 0x20(%r13), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x30eb
movq 0x20(%rax), %r13
testq %r13, %r13
je 0x30eb
movq 0x18(%r13), %rdi
movq %rbx, %rsi
callq 0x2da4
movq 0x20(%r13), %r13
jmp 0x30d4
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x4a0d
movq %rax, %r13
addq $0x28, %rbx
movq -0x38(%rbp), %rdx
subl %edx, %r14d
addl $-0x4, %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x507d
movq -0x40(%rbp), %rdx
subl %edx, %r15d
addl $-0x4, %r15d
movq %rbx, %rdi
movl %r15d, %esi
callq 0x507d
subl %r12d, %r13d
addl $-0x4, %r13d
movq %rbx, %rdi
movl %r13d, %esi
movq %r12, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x507d
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmLoop(Node*, Compiler*)
void WriteAsmLoop(Node* node, Compiler* compiler)
{
    ASSERT_COMPILER;

    size_t loop_label     = compiler->label++;
    size_t continue_label = compiler->label++;

    size_t loop_label_offset = WriteLabel(compiler, loop_label);

    WriteAsmExpression(node->left, compiler);

    WritePopR64(compiler, RAX);
    WriteTest  (compiler, RAX, RAX);
    size_t continue_jump_offset = WriteJumpOp(compiler, EQUAL_OP, continue_label);

    WriteAsmCompound(node->right->right, compiler);

    size_t loop_jump_offset      = WriteJump (compiler, loop_label);
    size_t continue_label_offset = WriteLabel(compiler, continue_label);

    SetInt(&compiler->writer, loop_label_offset     - loop_jump_offset     - sizeof(int), loop_jump_offset);
    SetInt(&compiler->writer, continue_label_offset - continue_jump_offset - sizeof(int), continue_jump_offset);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq 0x18(%rsi), %r12
leaq 0x1(%r12), %r13
leaq 0x2(%r12), %rax
movq %rax, 0x18(%rsi)
movq %rsi, %rdi
movq %r12, %rsi
callq 0x4a0d
movq %rax, %r14
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0x2fa3
movq %rbx, %rdi
xorl %esi, %esi
callq 0x45a6
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x480a
movq %rbx, %rdi
movl $0x4, %esi
movq %r13, -0x30(%rbp)
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x48c9
movq %rax, %r13
movq 0x20(%r15), %rax
movq 0x20(%rax), %r15
testq %r15, %r15
je 0x31db
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0x2da4
movq 0x20(%r15), %r15
jmp 0x31c4
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x4985
movq %rax, %r15
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x4a0d
movq %rax, %r12
addq $0x28, %rbx
subl %r15d, %r14d
addl $-0x4, %r14d
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0x507d
subl %r13d, %r12d
addl $-0x4, %r12d
movq %rbx, %rdi
movl %r12d, %esi
movq %r13, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x507d
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmCall(Node*, Compiler*)
void WriteAsmCall(Node* node, Compiler* compiler)
{
    if (WriteAsmStdCall(node, compiler))
    {
        return;
    }

    ASSERT_COMPILER;

    Function* call_func = FindFunc(node->left->value.name, compiler->table);

    if (call_func != nullptr)
    {       
        for (size_t i = 0; i < call_func->num_args; ++i)
        {
            node = node->right;
            if (node == nullptr)
            {
                printf("error : too few arguments for '%s'\n", call_func->name);
                return;
            }

            WriteAsmExpression(node->left, compiler);
        }

        if (node->right != nullptr)
        {
            printf("error : too more arguments for '%s'\n", call_func->name);
        }

        WriteCall     (compiler, call_func);
        WriteAddR64Num(compiler, RSP, call_func->num_args * 8);

        if (!call_func->is_void)
        {
            WritePushR64(compiler, RAX);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
callq 0x3777
testb %al, %al
jne 0x3303
movq 0x18(%r15), %rax
movq 0x8(%rax), %rdi
movq (%rbx), %rsi
callq 0x2cc8
testq %rax, %rax
je 0x3303
movq %rax, %r14
cmpq $0x0, 0x18(%rax)
setne %r12b
je 0x32c0
movq 0x20(%r15), %r15
testq %r15, %r15
je 0x32ac
xorl %r13d, %r13d
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0x2fa3
incq %r13
cmpq 0x18(%r14), %r13
setb %r12b
jae 0x32c0
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0x328a
movq (%r14), %rsi
leaq 0x57e8(%rip), %rdi      # 0x8a9e
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x2040
testb %r12b, %r12b
jne 0x3303
cmpq $0x0, 0x20(%r15)
je 0x32dd
movq (%r14), %rsi
leaq 0x57ec(%rip), %rdi      # 0x8ac2
xorl %eax, %eax
callq 0x2040
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4a77
movl 0x18(%r14), %edx
shll $0x3, %edx
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3fdc
cmpb $0x0, 0x10(%r14)
je 0x3312
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x440d
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: GetVarOfs(Function*, char*)
int GetVarOfs(Function* function, char* name)
{
    assert(function);
    assert(name);

    for (size_t i = 0; i < function->num_args; ++i)
    {
        if (strcmp(function->vars[i], name) == 0)
        {
            return (i + 2) * sizeof(int64_t);
        }
    }

    for (size_t i = function->num_args; i < function->num_vars + function->num_args; ++i)
    {
        if (strcmp(function->vars[i], name) == 0)
        {
            return - (i - function->num_args + 1) * sizeof(int64_t);
        }
    }
    
    printf("error : '%s' wasn't declarated here\n", name);
    return -0xFFFFFFFF;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x3474
movq %rsi, %rbx
testq %rsi, %rsi
je 0x3493
movq 0x18(%rdi), %r15
testq %r15, %r15
setne %r12b
je 0x33b3
movq %rdi, -0x30(%rbp)
movq 0x8(%rdi), %r13
movq (%r13), %rdi
movq %rbx, %rsi
callq 0x2170
testl %eax, %eax
je 0x33b5
movq %r15, -0x38(%rbp)
leaq -0x1(%r15), %r12
movl $0x10, %r14d
xorl %r15d, %r15d
cmpq %r15, %r12
je 0x33bd
movq 0x8(%r13,%r15,8), %rdi
movq %rbx, %rsi
callq 0x2170
addl $0x8, %r14d
incq %r15
testl %eax, %eax
jne 0x3386
movq -0x38(%rbp), %rax
cmpq %rax, %r15
movq %rax, %r15
setb %r12b
jmp 0x33c4
jmp 0x33c8
movl $0x10, %r14d
jmp 0x33c4
xorl %r12d, %r12d
movq -0x38(%rbp), %r15
movq -0x30(%rbp), %rdi
testb %r12b, %r12b
jne 0x3462
movq 0x20(%rdi), %r13
leaq (%r15,%r13), %rax
cmpq %rax, %r15
setb %cl
jae 0x3447
movl %ecx, -0x30(%rbp)
movq %rax, -0x40(%rbp)
movq %r15, %r12
movq 0x8(%rdi), %r15
movq (%r15,%r12,8), %rdi
movq %rbx, %rsi
callq 0x2170
movq %r12, %rcx
testl %eax, %eax
je 0x3434
decq %r13
movq %rcx, -0x38(%rbp)
movq %rcx, %r12
subq $0x1, %r13
jb 0x3445
movq 0x8(%r15,%r12,8), %rdi
movq %rbx, %rsi
callq 0x2170
incq %r12
testl %eax, %eax
jne 0x340c
cmpq -0x40(%rbp), %r12
setb %al
movl %eax, -0x30(%rbp)
movq -0x38(%rbp), %rcx
notl %r12d
addl %r12d, %ecx
shll $0x3, %ecx
movl %ecx, %r14d
movl -0x30(%rbp), %ecx
jmp 0x3447
xorl %ecx, %ecx
testb %cl, %cl
jne 0x3462
leaq 0x571a(%rip), %rdi      # 0x8b6c
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2040
movl $0x1, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x56c6(%rip), %rdi      # 0x8b41
leaq 0x5439(%rip), %rsi      # 0x88bb
leaq 0x56c1(%rip), %rcx      # 0x8b4a
movl $0x2b5, %edx            # imm = 0x2B5
callq 0x20b0
leaq 0x70a6(%rip), %rdi      # 0xa540
leaq 0x541a(%rip), %rsi      # 0x88bb
leaq 0x56a2(%rip), %rcx      # 0x8b4a
movl $0x2b6, %edx            # imm = 0x2B6
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmCompare(Node*, Compiler*)
void WriteAsmCompare(Node* node, Compiler* compiler)
{
    ASSERT_COMPILER;

    WritePopR64   (compiler, RAX);
    WritePopR64   (compiler, RBX);
    WriteCmpR64R64(compiler, RBX, RAX);

    size_t true_label     = compiler->label++;
    size_t continue_label = compiler->label++;

    size_t true_jump_offset = WriteJumpOp(compiler, node->value.op, true_label);

    WritePushNum(compiler, 0);
    size_t continue_jump_offset  = WriteJump (compiler, continue_label);
    size_t true_label_offset     = WriteLabel(compiler, true_label);

    WritePushNum(compiler, 1);
    size_t continue_label_offset = WriteLabel(compiler, continue_label);

    SetInt(&compiler->writer, true_label_offset     - true_jump_offset     - sizeof(int), true_jump_offset);
    SetInt(&compiler->writer, continue_label_offset - continue_jump_offset - sizeof(int), continue_jump_offset);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
xorl %esi, %esi
callq 0x45a6
movq %rbx, %rdi
movl $0x3, %esi
callq 0x45a6
movq %rbx, %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x474b
movq 0x18(%rbx), %r13
leaq 0x1(%r13), %r12
leaq 0x2(%r13), %rax
movq %rax, 0x18(%rbx)
movl 0x8(%r14), %esi
movq %rbx, %rdi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x48c9
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x44fa
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x4985
movq %rax, %r15
movq %rbx, %rdi
movq %r13, %rsi
callq 0x4a0d
movq %rax, %r13
movq %rbx, %rdi
movl $0x1, %esi
callq 0x44fa
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4a0d
movq %rax, %r12
addq $0x28, %rbx
subl %r14d, %r13d
addl $-0x4, %r13d
movq %rbx, %rdi
movl %r13d, %esi
movq %r14, %rdx
callq 0x507d
subl %r15d, %r12d
addl $-0x4, %r12d
movq %rbx, %rdi
movl %r12d, %esi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x507d
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmSimpleExpression(Node*, Compiler*)
void WriteAsmSimpleExpression(Node* node, Compiler* compiler)
{
    ASSERT_COMPILER;

    if (node->type == MATH_TYPE)
    {
        WriteAsmSimpleExpression(node->left,  compiler);
        WriteAsmSimpleExpression(node->right, compiler);
        
        WritePopR64(compiler, RBX);
        WritePopR64(compiler, RAX);

        switch (node->value.op)
        {
            case ADD_OP :
            {   
                WriteAddR64R64(compiler, RAX, RBX);
                break;
            }
            case SUB_OP :
            {
                WriteSubR64R64(compiler, RAX, RBX);
                break;
            }
            case MUL_OP :
            {
                WriteMulR64(compiler, RBX);
                break;
            }
            case DIV_OP :
            {   
                WriteDivR64(compiler, RBX);
                break;
            }
            default:
            {
                printf("I am here, but I shouldn't, line = %d\n", __LINE__);
            }
        }

        WritePushR64(compiler, RAX);
    }
    else
    {
        WriteAsmPrimaryExpression(node, compiler);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0xe, (%rdi)
jne 0x35fb
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0x358f
movq 0x20(%r14), %rdi
movq %rbx, %rsi
callq 0x358f
movq %rbx, %rdi
movl $0x3, %esi
callq 0x45a6
movq %rbx, %rdi
xorl %esi, %esi
callq 0x45a6
movl 0x8(%r14), %eax
cmpq $0x3, %rax
ja 0x3639
leaq 0x4a73(%rip), %rcx      # 0x8054
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
xorl %esi, %esi
movl $0x3, %edx
callq 0x3f1d
jmp 0x364c
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x365a
movq %rbx, %rdi
movl $0x3, %esi
callq 0x42a7
jmp 0x364c
movq %rbx, %rdi
movl $0x3, %esi
callq 0x434b
jmp 0x364c
movq %rbx, %rdi
xorl %esi, %esi
movl $0x3, %edx
callq 0x40e2
jmp 0x364c
leaq 0x5437(%rip), %rdi      # 0x8a77
movl $0x20f, %esi            # imm = 0x20F
xorl %eax, %eax
callq 0x2040
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x440d
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmPrimaryExpression(Node*, Compiler*)
void WriteAsmPrimaryExpression(Node* node, Compiler* compiler)
{
    ASSERT_COMPILER;

    switch (node->type)
    {
        case ID_TYPE :
        {
            WriteMovR64Mem(compiler, RAX, RBP, GetVarOfs(FUNC, node->value.name));
            WritePushR64  (compiler, RAX);
            break;
        }
        case NUMB_TYPE :
        {
            WritePushNum(compiler, node->value.number);
            break;
        }
        case MEM_ACCESS_TYPE :
        {
            WriteAsmMemoryAccess(node, compiler);
            break;
        }
        case CALL_TYPE :
        {
            WriteAsmCall(node, compiler);
            break;
        }
        default :
        {
            printf("I am here, but I shouldn't, line = %d\n", __LINE__);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl (%rdi), %eax
cmpl $0xb, %eax
jg 0x36a5
cmpl $0x3, %eax
je 0x36d9
cmpl $0x4, %eax
jne 0x36c0
movq 0x8(%rbx), %rax
movq 0x8(%rdi), %rsi
movq %rax, %rdi
callq 0x332a
movq %rbx, %rdi
xorl %esi, %esi
movl $0x5, %edx
movl %eax, %ecx
callq 0x3c77
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x440d
cmpl $0xc, %eax
je 0x36e7
cmpl $0xf, %eax
jne 0x36c0
movl 0x8(%rdi), %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x44fa
leaq 0x53b0(%rip), %rdi      # 0x8a77
movl $0x238, %esi            # imm = 0x238
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2040
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x36f5
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3236
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmMemoryAccess(Node*, Compiler*)
void WriteAsmMemoryAccess(Node* node, Compiler* compiler)
{
    ASSERT_COMPILER;

    WriteAsmExpression(node->right, compiler);

    WriteMovR64Mem(compiler, RAX, RBP, GetVarOfs(FUNC, node->left->value.name));
    WritePopR64   (compiler, RBX);
    WriteSalR64   (compiler, RBX, 3);
    WriteSubR64R64(compiler, RAX, RBX);
    WriteMovR64Mem(compiler, RAX, RAX);
    WritePushR64  (compiler, RAX);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rdi
callq 0x2fa3
movq 0x8(%rbx), %rdi
movq 0x18(%r14), %rax
movq 0x8(%rax), %rsi
callq 0x332a
movq %rbx, %rdi
xorl %esi, %esi
movl $0x5, %edx
movl %eax, %ecx
callq 0x3c77
movq %rbx, %rdi
movl $0x3, %esi
callq 0x45a6
movq %rbx, %rdi
movl $0x3, %esi
movl $0x3, %edx
callq 0x4693
movq %rbx, %rdi
xorl %esi, %esi
movl $0x3, %edx
callq 0x40e2
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x3c77
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x440d
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: WriteAsmStdCall(Node*, Compiler*)
bool WriteAsmStdCall(Node* node, Compiler* compiler)
{
    ASSERT_COMPILER;

    if (strcmp(node->left->value.name, SCAN) == 0)
    {
        WriteCall   (compiler, "scan");
        WritePushR64(compiler, RAX);
        return true;
    }

    if (strcmp(node->left->value.name, PRINT) == 0)
    {
        WriteAsmExpression(node->right->left, compiler);

        WriteCall  (compiler, "print");
        WritePopR64(compiler, RBX); //cleaning stack
        return true;
    }

    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rax
movq 0x8(%rax), %r15
movq 0xa9aa(%rip), %rsi      # 0xe140
movq %r15, %rdi
callq 0x2170
testl %eax, %eax
je 0x37b9
movq 0xa99f(%rip), %rsi      # 0xe148
movq %r15, %rdi
callq 0x2170
testl %eax, %eax
je 0x37d4
xorl %eax, %eax
jmp 0x3802
leaq 0x5327(%rip), %rsi      # 0x8ae7
movq %rbx, %rdi
callq 0x4b2a
movq %rbx, %rdi
xorl %esi, %esi
callq 0x440d
jmp 0x3800
movq 0x20(%r14), %rax
movq 0x18(%rax), %rdi
movq %rbx, %rsi
callq 0x2fa3
leaq 0x5301(%rip), %rsi      # 0x8aec
movq %rbx, %rdi
callq 0x4b2a
movq %rbx, %rdi
movl $0x3, %esi
callq 0x45a6
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: GetNumFunc(Tree*)
size_t GetNumFunc(Tree* tree)
{
    assert(tree);

    size_t result = 0;
    Node* node = tree->root;

    while (node != nullptr)
    {
        node = node->left;
        result++;
    }

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x382b
movq (%rdi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x3829
incq %rax
movq 0x18(%rcx), %rcx
jmp 0x381b
popq %rbp
retq
leaq 0x5428(%rip), %rdi      # 0x8c5a
leaq 0x5082(%rip), %rsi      # 0x88bb
leaq 0x53bb(%rip), %rcx      # 0x8bfb
movl $0x2f0, %edx            # imm = 0x2F0
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: NewNameTable()
NameTable* NewNameTable()
{
    NameTable* table = (NameTable*)calloc(1, sizeof(NameTable));
    assert(table);

    table->num_func  = 0;
    table->functions = nullptr;

    return table;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x1, %edi
movl $0x10, %esi
callq 0x20c0
testq %rax, %rax
je 0x386a
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
popq %rbp
retq
leaq 0x50df(%rip), %rdi      # 0x8950
leaq 0x5043(%rip), %rsi      # 0x88bb
leaq 0x5396(%rip), %rcx      # 0x8c15
movl $0x301, %edx            # imm = 0x301
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: FillNameTable(NameTable*, Tree*)
void FillNameTable(NameTable* table, Tree* tree)
{
    assert(table);
    assert(tree);

    Node* node = tree->root;

    for (size_t i = 0; i < table->num_func; ++i)
    {
        GetFunction(node->right, table->functions + i);
        node = node->left;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x38dd
movq %rsi, %rbx
testq %rsi, %rsi
je 0x38fc
movq %rdi, %r14
cmpq $0x0, 0x8(%rdi)
je 0x38d4
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%rbx), %rbx
movq 0x20(%rbx), %rdi
movq (%r14), %rsi
addq %r15, %rsi
callq 0x391b
addq $0x18, %rbx
incq %r12
addq $0x30, %r15
cmpq 0x8(%r14), %r12
jb 0x38b1
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x506c(%rip), %rdi      # 0x8950
leaq 0x4fd0(%rip), %rsi      # 0x88bb
leaq 0x533d(%rip), %rcx      # 0x8c2f
movl $0x30b, %edx            # imm = 0x30B
callq 0x20b0
leaq 0x5357(%rip), %rdi      # 0x8c5a
leaq 0x4fb1(%rip), %rsi      # 0x88bb
leaq 0x531e(%rip), %rcx      # 0x8c2f
movl $0x30c, %edx            # imm = 0x30C
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: GetFunction(Node*, Function*)
void GetFunction(Node* subtree, Function* function)
{
    assert(subtree);
    assert(function);

    function->name     = subtree->value.name;
    function->is_void  = subtree->parent->value.is_void;

    function->num_args = GetNumArgs(subtree->right);
    function->num_vars = GetNumVars(subtree->left->right);

    function->vars = (char**)calloc(function->num_args + function->num_vars, sizeof(char*));

    GetNames(function->vars, subtree);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x399e
movq %rsi, %r14
testq %rsi, %rsi
je 0x39bd
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq %rax, (%r14)
movq 0x10(%rdi), %rax
movb 0x8(%rax), %al
movb %al, 0x10(%r14)
movq 0x20(%rdi), %rax
xorl %r15d, %r15d
testq %rax, %rax
je 0x3960
movq 0x20(%rax), %rax
incq %r15
jmp 0x3952
movq %r15, 0x18(%r14)
movq 0x18(%rbx), %rax
movq 0x20(%rax), %rdi
callq 0x39f8
movq %rax, 0x20(%r14)
addq %rax, %r15
movl $0x8, %esi
movq %r15, %rdi
callq 0x20c0
movq %rax, 0x8(%r14)
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3a36
leaq 0x52b2(%rip), %rdi      # 0x8c57
leaq 0x4f0f(%rip), %rsi      # 0x88bb
leaq 0x52ac(%rip), %rcx      # 0x8c5f
movl $0x319, %edx            # imm = 0x319
callq 0x20b0
leaq 0x517d(%rip), %rdi      # 0x8b41
leaq 0x4ef0(%rip), %rsi      # 0x88bb
leaq 0x528d(%rip), %rcx      # 0x8c5f
movl $0x31a, %edx            # imm = 0x31A
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: GetNumArgs(Node*)
size_t GetNumArgs(Node* node)
{
    size_t result = 0;

    while (node != nullptr)
    {
        node = node->right;
        result++;
    }

    return result;
}

// Assembly:
testq %rdi, %rdi
je 0x39f5
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movq 0x20(%rdi), %rdi
incq %rax
testq %rdi, %rdi
jne 0x39e7
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: GetNumVars(Node*)
size_t GetNumVars(Node* node)
{
    if (node == nullptr)
    {
        return 0;
    }

    int num = 0;

    if (node->type == DECL_TYPE || node->type == ADECL_TYPE)
    {
        num = 1;
    }

    return num + GetNumVars(node->left) + GetNumVars(node->right);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %ebx, %ebx
testq %r14, %r14
je 0x3a28
movl (%r14), %r15d
decl %r15d
movq 0x18(%r14), %rdi
callq 0x39f8
cmpl $0x2, %r15d
adcq %rax, %rbx
movq 0x20(%r14), %r14
jmp 0x3a07
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: GetNames(char**, Node*)
void GetNames(char** vars, Node* subtree)
{
    assert(vars);
    assert(subtree);

    Node* arg = subtree->right;

    size_t ofs = 0;

    for (; arg != nullptr; ++ofs)
    {
        vars[ofs] = arg->value.name;

        arg = arg->right;
    }

    GetVars(subtree->left->right, vars, &ofs);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
testq %rdi, %rdi
je 0x3a84
testq %rsi, %rsi
je 0x3aa3
movq %rdi, %rax
movq 0x20(%rsi), %rdx
xorl %ecx, %ecx
testq %rdx, %rdx
je 0x3a67
movq 0x8(%rdx), %rdi
movq %rdi, (%rax,%rcx,8)
movq 0x20(%rdx), %rdx
incq %rcx
jmp 0x3a51
leaq -0x8(%rbp), %rdx
movq %rcx, (%rdx)
movq 0x18(%rsi), %rcx
movq 0x20(%rcx), %rdi
movq %rax, %rsi
callq 0x3ac2
addq $0x10, %rsp
popq %rbp
retq
leaq 0x51f9(%rip), %rdi      # 0x8c84
leaq 0x4e29(%rip), %rsi      # 0x88bb
leaq 0x51f0(%rip), %rcx      # 0x8c89
movl $0x347, %edx            # imm = 0x347
callq 0x20b0
leaq 0x51ad(%rip), %rdi      # 0x8c57
leaq 0x4e0a(%rip), %rsi      # 0x88bb
leaq 0x51d1(%rip), %rcx      # 0x8c89
movl $0x348, %edx            # imm = 0x348
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/compiling.cpp
// Function: GetVars(Node*, char**, unsigned long*)
void GetVars(Node* node, char** vars, size_t* ofs)
{
    assert(vars);
    assert(ofs);

    if (node == nullptr)
    {
        return;
    }

    if (node->type == DECL_TYPE || node->type == ADECL_TYPE)
    {
        vars[(*ofs)++] = node->left->value.name;
    }

    GetVars(node->right, vars, ofs);
    GetVars(node->left,  vars, ofs);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %r14, %r14
je 0x3b24
testq %rbx, %rbx
je 0x3b43
testq %r15, %r15
je 0x3b19
movl (%r15), %eax
decl %eax
cmpl $0x1, %eax
ja 0x3b04
movq 0x18(%r15), %rax
movq 0x8(%rax), %rax
movq (%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq %rax, (%r14,%rcx,8)
movq 0x20(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3ac2
movq 0x18(%r15), %r15
jmp 0x3ad5
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5159(%rip), %rdi      # 0x8c84
leaq 0x4d89(%rip), %rsi      # 0x88bb
leaq 0x516f(%rip), %rcx      # 0x8ca8
movl $0x35a, %edx            # imm = 0x35A
callq 0x20b0
leaq 0x5186(%rip), %rdi      # 0x8cd0
leaq 0x4d6a(%rip), %rsi      # 0x88bb
leaq 0x5150(%rip), %rcx      # 0x8ca8
movl $0x35b, %edx            # imm = 0x35B
callq 0x20b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/byte_code.cpp
// Function: WriteMovR64R64(Compiler*, R64, R64)
void WriteMovR64R64(Compiler* compiler, R64 reg1, R64 reg2)
{
    assert(compiler);

    SetByte(&compiler->writer, CodeRexByteR64R64(reg1, reg2));
    SetByte(&compiler->writer, mov_r64_r64);
    SetByte(&compiler->writer, CodeR64R64(mode_r64_r64, reg2, reg1));

    if (compiler->asm_listing_required)
    {
        fprintf(compiler->file, "mov %s, %s\n\t", REGS[reg1], REGS[reg2]);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x3c58
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
leaq 0x28(%rdi), %r12
cmpl $0x8, %esi
setge %al
cmpl $0x8, %edx
setge %cl
shlb $0x2, %cl
orb %al, %cl
orb $0x48, %cl
movzbl %cl, %esi
movq %r12, %rdi
callq 0x5014
movq %r12, %rdi
movl $0xffffff89, %esi       # imm = 0xFFFFFF89
callq 0x5014
movl %r14d, %eax
andl $0x7, %eax
leal (%rax,%rbx,8), %eax
orb $-0x40, %al
movsbl %al, %esi
movq %r12, %rdi
callq 0x5014
cmpb $0x1, 0x20(%r15)
jne 0x3c4f
movq 0x10(%r15), %rdi
movl %r14d, %eax
leaq 0xa521(%rip), %rcx      # 0xe150
movq (%rcx,%rax,8), %rdx
movl %ebx, %eax
movq (%rcx,%rax,8), %rcx
leaq 0x517b(%rip), %rsi      # 0x8dbb
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2180
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4ca6(%rip), %rdi      # 0x8905
leaq 0x5110(%rip), %rsi      # 0x8d76
leaq 0x5124(%rip), %rcx      # 0x8d91
movl $0x6e, %edx
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/byte_code.cpp
// Function: WriteMovR64Mem(Compiler*, R64, R64, int)
void WriteMovR64Mem(Compiler* compiler, R64 reg1, R64 reg2, int offset)
{
    assert(compiler);

    SetByte(&compiler->writer, CodeRexByteR64R64(reg1, reg2));
    SetByte(&compiler->writer, mov_r64_mem);
    SetByte(&compiler->writer, CodeR64R64(mode_r64_mem_4_bytes, reg1, reg2));

    if (reg2 == RSP || reg2 == R12)
    {
        SetByte(&compiler->writer, additional_rsp_r12_byte);
    }

    SetInt(&compiler->writer, offset);

    if (compiler->asm_listing_required)
    {
        fprintf(compiler->file, "mov %s, [%s + %d]\n\t", REGS[reg1], REGS[reg2], offset);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3d57
movl %ecx, %ebx
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %r12
leaq 0x28(%rdi), %r13
cmpl $0x8, %esi
setge %al
cmpl $0x8, %edx
setge %cl
shlb $0x2, %cl
orb %al, %cl
orb $0x48, %cl
movzbl %cl, %esi
movq %r13, %rdi
callq 0x5014
movq %r13, %rdi
movl $0xffffff8b, %esi       # imm = 0xFFFFFF8B
callq 0x5014
movl %r15d, %eax
andl $0x7, %eax
movl %r14d, %ecx
andl $0x7, %ecx
leal (%rcx,%rax,8), %eax
orb $-0x80, %al
movsbl %al, %esi
movq %r13, %rdi
callq 0x5014
movl %r14d, %eax
andl $-0x9, %eax
cmpl $0x4, %eax
jne 0x3cfd
movq %r13, %rdi
movl $0x24, %esi
callq 0x5014
movq %r13, %rdi
movl %ebx, %esi
callq 0x5055
cmpb $0x1, 0x20(%r12)
jne 0x3d48
movq 0x10(%r12), %rdi
movl %r15d, %eax
leaq 0xa432(%rip), %rcx      # 0xe150
movq (%rcx,%rax,8), %rdx
movl %r14d, %eax
movq (%rcx,%rax,8), %rcx
leaq 0x50c7(%rip), %rsi      # 0x8df7
movl %ebx, %r8d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2180
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4ba7(%rip), %rdi      # 0x8905
leaq 0x5011(%rip), %rsi      # 0x8d76
leaq 0x505c(%rip), %rcx      # 0x8dc8
movl $0x7c, %edx
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/byte_code.cpp
// Function: WriteMovMemR64(Compiler*, R64, R64, int)
void WriteMovMemR64(Compiler* compiler, R64 reg1, R64 reg2, int offset)
{
    assert(compiler);

    SetByte(&compiler->writer, CodeRexByteR64R64(reg2, reg1));
    SetByte(&compiler->writer, mov_mem_r64);
    SetByte(&compiler->writer, CodeR64R64(mode_r64_mem_4_bytes, reg2, reg1));

    if (reg1 == RSP || reg1 == R12)
    {
        SetByte(&compiler->writer, additional_rsp_r12_byte);
    }

    SetInt(&compiler->writer, offset);

    if (compiler->asm_listing_required)
    {
        fprintf(compiler->file, "mov [%s + %d], %s\n\t", REGS[reg1], offset, REGS[reg2]);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3e55
movl %ecx, %ebx
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %r12
leaq 0x28(%rdi), %r13
cmpl $0x8, %edx
setge %al
cmpl $0x8, %esi
setge %cl
shlb $0x2, %cl
orb %al, %cl
orb $0x48, %cl
movzbl %cl, %esi
movq %r13, %rdi
callq 0x5014
movq %r13, %rdi
movl $0xffffff89, %esi       # imm = 0xFFFFFF89
callq 0x5014
movl %r14d, %eax
andl $0x7, %eax
movl %r15d, %ecx
andl $0x7, %ecx
leal (%rcx,%rax,8), %eax
orb $-0x80, %al
movsbl %al, %esi
movq %r13, %rdi
callq 0x5014
movl %r15d, %eax
andl $-0x9, %eax
cmpl $0x4, %eax
jne 0x3dfc
movq %r13, %rdi
movl $0x24, %esi
callq 0x5014
movq %r13, %rdi
movl %ebx, %esi
callq 0x5055
cmpb $0x1, 0x20(%r12)
jne 0x3e46
movq 0x10(%r12), %rdi
movl %r15d, %eax
leaq 0xa333(%rip), %rcx      # 0xe150
movq (%rcx,%rax,8), %rdx
movl %r14d, %eax
movq (%rcx,%rax,8), %r8
leaq 0x500b(%rip), %rsi      # 0x8e3a
movl %ebx, %ecx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2180
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4aa9(%rip), %rdi      # 0x8905
leaq 0x4f13(%rip), %rsi      # 0x8d76
leaq 0x4fa1(%rip), %rcx      # 0x8e0b
movl $0x91, %edx
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/byte_code.cpp
// Function: WriteMovR64Num(Compiler*, R64, long)
void WriteMovR64Num(Compiler* compiler, R64 reg, int64_t value)
{
    assert(compiler);

    if (compiler->memory_optimization_required && abs(value) < max_int)
    {
        if (reg > RDI)
        {
            SetByte(&compiler->writer, additional_push_pop_byte);
        }

        SetByte(&compiler->writer, CodeR64(mode_mov_r64_num, reg));
        SetInt(&compiler->writer, value);
    }
    else
    {
        SetByte(&compiler->writer, CodeRexByteR64(reg));
        SetByte(&compiler->writer, CodeR64(mode_mov_r64_num, reg));
        SetLong(&compiler->writer, value);
    }

    if (compiler->asm_listing_required)
    {
        fprintf(compiler->file, "mov %s, %ld\n\t", REGS[reg], value);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x3efe
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
leaq 0x28(%rdi), %r12
xorl %esi, %esi
cmpl $0x8, %r14d
setge %sil
orl $0x48, %esi
movq %r12, %rdi
callq 0x5014
movl %r14d, %eax
andb $0x7, %al
orb $-0x48, %al
movsbl %al, %esi
movq %r12, %rdi
callq 0x5014
movq %r12, %rdi
movq %rbx, %rsi
callq 0x5089
cmpb $0x1, 0x20(%r15)
jne 0x3ef5
movq 0x10(%r15), %rdi
movl %r14d, %eax
leaq 0xa278(%rip), %rcx      # 0xe150
movq (%rcx,%rax,8), %rdx
leaq 0x4f99(%rip), %rsi      # 0x8e7c
movq %rbx, %rcx
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2180
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4a00(%rip), %rdi      # 0x8905
leaq 0x4e6a(%rip), %rsi      # 0x8d76
leaq 0x4f3b(%rip), %rcx      # 0x8e4e
movl $0xa6, %edx
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/byte_code.cpp
// Function: WriteAddR64R64(Compiler*, R64, R64)
void WriteAddR64R64(Compiler* compiler, R64 reg1, R64 reg2)
{
    assert(compiler);

    SetByte(&compiler->writer, CodeRexByteR64R64(reg1, reg2));
    SetByte(&compiler->writer, add_r64_r64);
    SetByte(&compiler->writer, CodeR64R64(mode_r64_r64, reg2, reg1));

    if (compiler->asm_listing_required)
    {
        fprintf(compiler->file, "add %s, %s\n\t", REGS[reg1], REGS[reg2]);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x3fbd
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
leaq 0x28(%rdi), %r12
cmpl $0x8, %esi
setge %al
cmpl $0x8, %edx
setge %cl
shlb $0x2, %cl
orb %al, %cl
orb $0x48, %cl
movzbl %cl, %esi
movq %r12, %rdi
callq 0x5014
movq %r12, %rdi
movl $0x1, %esi
callq 0x5014
movl %r14d, %eax
andl $0x7, %eax
leal (%rax,%rbx,8), %eax
orb $-0x40, %al
movsbl %al, %esi
movq %r12, %rdi
callq 0x5014
cmpb $0x1, 0x20(%r15)
jne 0x3fb4
movq 0x10(%r15), %rdi
movl %r14d, %eax
leaq 0xa1bc(%rip), %rcx      # 0xe150
movq (%rcx,%rax,8), %rdx
movl %ebx, %eax
movq (%rcx,%rax,8), %rcx
leaq 0x4f0f(%rip), %rsi      # 0x8eb4
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2180
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4941(%rip), %rdi      # 0x8905
leaq 0x4dab(%rip), %rsi      # 0x8d76
leaq 0x4eb8(%rip), %rcx      # 0x8e8a
movl $0xc1, %edx
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/back-end/byte_code.cpp
// Function: WriteAddR64Num(Compiler*, R64, int)
void WriteAddR64Num(Compiler* compiler, R64 reg, int value)
{
    assert(compiler);

    SetByte(&compiler->writer, CodeRexByteR64(reg));

    if (compiler->memory_optimization_required && abs(value) < max_char)
    {
        SetByte(&compiler->writer, add_r64_num1);
        SetByte(&compiler->writer, CodeR64(mode_add_r64_num, reg));
        SetByte(&compiler->writer, value);
    }
    else
    {
        SetByte(&compiler->writer, add_r64_num4);
        SetByte(&compiler->writer, CodeR64(mode_add_r64_num, reg));
        SetInt (&compiler->writer, value);
    }

    if (compiler->asm_listing_required)
    {
        fprintf(compiler->file, "add %s, %d\n\t", REGS[reg], value);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x40c3
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
leaq 0x28(%rdi), %r12
xorl %esi, %esi
cmpl $0x8, %r14d
setge %sil
orl $0x48, %esi
movq %r12, %rdi
callq 0x5014
movl %ebx, %eax
negl %eax
cmovsl %ebx, %eax
movl %r14d, %r13d
andb $0x7, %r13b
orb $-0x40, %r13b
cmpb $0x1, 0x22(%r15)
jne 0x405a
cmpl $0xfe, %eax
ja 0x405a
movq %r12, %rdi
movl $0xffffff83, %esi       # imm = 0xFFFFFF83
callq 0x5014
movsbl %r13b, %esi
movq %r12, %rdi
callq 0x5014
movsbl %bl, %esi
movq %r12, %rdi
callq 0x5014
jmp 0x407d
movq %r12, %rdi
movl $0xffffff81, %esi       # imm = 0xFFFFFF81
callq 0x5014
movsbl %r13b, %esi
movq %r12, %rdi
callq 0x5014
movq %r12, %rdi
movl %ebx, %esi
callq 0x5055
cmpb $0x1, 0x20(%r15)
jne 0x40b4
movq 0x10(%r15), %rdi
movl %r14d, %eax
leaq 0xa0be(%rip), %rcx      # 0xe150
movq (%rcx,%rax,8), %rdx
leaq 0x4e4e(%rip), %rsi      # 0x8eeb
movl %ebx, %ecx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2180
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x483b(%rip), %rdi      # 0x8905
leaq 0x4ca5(%rip), %rsi      # 0x8d76
leaq 0x4de9(%rip), %rcx      # 0x8ec1
movl $0xcf, %edx
callq 0x20b0