LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka.c
// Function: help
void help(void)
{
    printf("%s\n", umkaGetVersion());
    printf("(C) Vasiliy Tereshkov, 2020-2025\n");
    printf("Usage: umka [<parameters>] <file.um> [<script-parameters>]\n");
    printf("Parameters:\n");
    printf("    -stack <stack-size>     - Set stack size\n");
    printf("    -asm                    - Write assembly listing\n");
    printf("    -check                  - Compile only\n");
    printf("    -warn                   - Enable warnings\n");
    printf("    -sandbox                - Run in sandbox mode\n");
}

// Assembly:
pushq %rax
callq 0xcb3d
movq %rax, %rdi
callq 0x30c0
leaq 0x670b0(%rip), %rdi     # 0x73131
callq 0x30c0
leaq 0x670c5(%rip), %rdi     # 0x73152
callq 0x30c0
leaq 0x670f4(%rip), %rdi     # 0x7318d
callq 0x30c0
leaq 0x670f4(%rip), %rdi     # 0x73199
callq 0x30c0
leaq 0x67115(%rip), %rdi     # 0x731c6
callq 0x30c0
leaq 0x6713e(%rip), %rdi     # 0x731fb
callq 0x30c0
leaq 0x6715d(%rip), %rdi     # 0x73226
callq 0x30c0
leaq 0x6717f(%rip), %rdi     # 0x73254
popq %rax
jmp 0x30c0
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka.c
// Function: writeAsmFile
bool writeAsmFile(void *umka, const char *mainPath)
{
    bool ok = false;

    char *asmFileName = malloc(strlen(mainPath) + 4 + 1);
    if (!asmFileName)
        fprintf(stderr, "Error: Out of memory\n");
    else
    {
        sprintf(asmFileName, "%s.asm", mainPath);
        const char *asmBuf = umkaAsm(umka);
        if (!asmBuf)
            fprintf(stderr, "Error: Cannot output assembly listing\n");
        else
        {
            FILE *asmFile = fopen(asmFileName, "w");
            if (!asmFile)
                fprintf(stderr, "Error: Cannot open file %s\n", asmFileName);
            else
            {
                if (fwrite(asmBuf, strlen(asmBuf), 1, asmFile) != 1)
                    fprintf(stderr, "Error: Cannot write file %s\n", asmFileName);
                else
                    ok = true;
                fclose(asmFile);
            }
        }
        free(asmFileName);
    }

    return ok;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
callq 0x3130
leaq 0x5(%rax), %rdi
callq 0x3290
testq %rax, %rax
je 0xc182
movq %rax, %rbx
leaq 0x66f0e(%rip), %rsi     # 0x7301a
movq %rax, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3380
movq %r14, %rdi
callq 0xc99e
testq %rax, %rax
je 0xc18b
movq %rax, %r15
leaq 0x67365(%rip), %rsi     # 0x73495
movq %rbx, %rdi
callq 0x3320
testq %rax, %rax
je 0xc194
movq %rax, %r14
movq %r15, %rdi
callq 0x3130
movl $0x1, %edx
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rcx
callq 0x3390
cmpq $0x1, %rax
sete %bpl
jne 0xc1b3
movq %r14, %rdi
callq 0x3120
movq %rbx, %rdi
callq 0x3040
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x3463
xorl %ebp, %ebp
jmp 0xc175
callq 0x3447
xorl %ebp, %ebp
jmp 0xc16d
movq 0x82e5d(%rip), %rax     # 0x8eff8
movq (%rax), %rdi
leaq 0x66ea3(%rip), %rsi     # 0x73048
xorl %ebp, %ebp
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3220
jmp 0xc16d
movq 0x82e3e(%rip), %rax     # 0x8eff8
movq (%rax), %rdi
leaq 0x66ea0(%rip), %rsi     # 0x73064
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3220
jmp 0xc165
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka.c
// Function: printRuntimeError
void printRuntimeError(void *umka)
{
    const UmkaError *error = umkaGetError(umka);

    if (error->msg[0])
    {
        fprintf(stderr, "\nRuntime error %s (%d): %s\n", error->fileName, error->line, error->msg);
        fprintf(stderr, "Stack trace:\n");

        for (int depth = 0; depth < MAX_CALL_STACK_DEPTH; depth++)
        {
            char fileName[MAX_STR_LENGTH + 1], fnName[MAX_STR_LENGTH + 1];
            int line;

            if (!umkaGetCallStack(umka, depth, MAX_STR_LENGTH + 1, NULL, fileName, fnName, &line))
                break;

            fprintf(stderr, "    %s: %s (%d)\n", fnName, fileName, line);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rdi, %rbx
callq 0xc98a
movq 0x20(%rax), %r8
cmpb $0x0, (%r8)
jne 0xc205
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x82dec(%rip), %r13     # 0x8eff8
movq (%r13), %rdi
movq (%rax), %rdx
movl 0x10(%rax), %ecx
leaq 0x66e94(%rip), %rsi     # 0x730b1
xorl %eax, %eax
callq 0x3220
movq (%r13), %rcx
leaq 0x66e9e(%rip), %rdi     # 0x730cd
movl $0xd, %esi
movl $0x1, %edx
callq 0x3390
leaq 0xc(%rsp), %r12
leaq 0x120(%rsp), %r14
leaq 0x10(%rsp), %r15
xorl %ebp, %ebp
movq %r12, (%rsp)
movq %rbx, %rdi
movl %ebp, %esi
movl $0x101, %edx            # imm = 0x101
xorl %ecx, %ecx
movq %r14, %r8
movq %r15, %r9
callq 0xc9b2
testb %al, %al
je 0xc1f3
movq (%r13), %rdi
movl 0xc(%rsp), %r8d
leaq 0x66e5a(%rip), %rsi     # 0x730db
movq %r15, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x3220
incl %ebp
cmpl $0xa, %ebp
jne 0xc252
jmp 0xc1f3
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_api.c
// Function: umkaInit
UMKA_API bool umkaInit(void *umka, const char *fileName, const char *sourceString, int stackSize, void *reserved, int argc, char **argv, bool fileSystemEnabled, bool implLibsEnabled, UmkaWarningCallback warningCallback)
{
    Compiler *comp = umka;
    memset(comp, 0, sizeof(Compiler));

    // First set error handlers
    comp->error.handler = compileError;
    comp->error.runtimeHandler = runtimeError;
    comp->error.warningHandler = compileWarning;
    comp->error.warningCallback = (WarningCallback)warningCallback;
    comp->error.context = comp;

    if (setjmp(comp->error.jumper) == 0)
    {
        compilerInit(comp, fileName, sourceString, stackSize, argc, argv, fileSystemEnabled, implLibsEnabled);
        return true;
    }
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x58(%rsp), %r13
movl $0x52d8, %edx           # imm = 0x52D8
xorl %esi, %esi
callq 0x3190
leaq 0x8d(%rip), %rax        # 0xc5dc
movq %rax, 0x50f8(%r12)
leaq 0x158(%rip), %rax       # 0xc6b6
movq %rax, 0x5100(%r12)
leaq 0x232(%rip), %rax       # 0xc79f
movq %rax, 0x5108(%r12)
movq %r13, 0x5110(%r12)
movq %r12, 0x5118(%r12)
leaq 0x5120(%r12), %rdi
callq 0x3200
movl %eax, %r13d
testl %eax, %eax
jne 0xc5c7
movb 0x48(%rsp), %al
movq 0x40(%rsp), %r9
movzbl 0x50(%rsp), %ecx
movzbl %al, %eax
movl %ecx, %r10d
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
movl %ebx, %r8d
pushq %r10
pushq %rax
callq 0xd944
addq $0x10, %rsp
testl %r13d, %r13d
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_api.c
// Function: compileError
static void compileError(void *context, const char *format, ...)
{
    va_list args;
    va_start(args, format);

    Compiler *comp = context;
    errorReportInit(&comp->error.report, &comp->storage, comp->lex.fileName, comp->debug.fnName, comp->lex.tok.line, comp->lex.tok.pos, 1, format, args);

    vmKill(&comp->vm);

    va_end(args);
    longjmp(comp->error.jumper, 1);
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rsi, %r10
movq %rdi, %rbx
leaq 0x20(%rsp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0xc63a
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rax
movq %rsi, 0x10(%rax)
leaq 0xe0(%rsp), %rcx
movq %rcx, 0x8(%rax)
movabsq $0x3000000010, %rcx     # imm = 0x3000000010
movq %rcx, (%rax)
addq $0x51f0, %rdi           # imm = 0x51F0
leaq 0xf0(%rbx), %rsi
movq 0x4ba8(%rbx), %rdx
movq 0x50e8(%rbx), %rcx
movl 0x4ce0(%rbx), %r8d
movl 0x4ce4(%rbx), %r9d
subq $0x8, %rsp
pushq %rax
pushq %r10
pushq $0x1
callq 0xcbc8
addq $0x20, %rsp
leaq 0x5058(%rbx), %rdi
callq 0x44cf9
addq $0x5120, %rbx           # imm = 0x5120
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3300
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_api.c
// Function: runtimeError
static void runtimeError(void *context, int code, const char *format, ...)
{
    va_list args;
    va_start(args, format);

    Compiler *comp = context;
    const DebugInfo *debug = &comp->vm.fiber->debugPerInstr[comp->vm.fiber->ip];
    errorReportInit(&comp->error.report, &comp->storage, debug->fileName, debug->fnName, debug->line, 1, code, format, args);

    vmKill(&comp->vm);

    va_end(args);
    longjmp(comp->error.jumper, 1);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r10
movl %esi, %r11d
movq %rdi, %rbx
leaq 0x20(%rsp), %rdx
movq %rcx, 0x18(%rdx)
movq %r8, 0x20(%rdx)
movq %r9, 0x28(%rdx)
testb %al, %al
je 0xc715
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rax
movq %rdx, 0x10(%rax)
leaq 0xf0(%rsp), %rcx
movq %rcx, 0x8(%rax)
movabsq $0x3000000018, %rcx     # imm = 0x3000000018
movq %rcx, (%rax)
leaq 0x5058(%rdi), %r14
movq 0x5058(%rdi), %rcx
movq 0x60(%rcx), %r8
movslq 0x8(%rcx), %rcx
leaq (%rcx,%rcx,2), %r9
addq $0x51f0, %rdi           # imm = 0x51F0
leaq 0xf0(%rbx), %rsi
movq (%r8,%r9,8), %rdx
movq 0x8(%r8,%r9,8), %rcx
movl 0x10(%r8,%r9,8), %r8d
subq $0x8, %rsp
movl $0x1, %r9d
pushq %rax
pushq %r10
pushq %r11
callq 0xcbc8
addq $0x20, %rsp
movq %r14, %rdi
callq 0x44cf9
addq $0x5120, %rbx           # imm = 0x5120
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3300
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_api.c
// Function: compileWarning
static void compileWarning(void *context, const DebugInfo *debug, const char *format, ...)
{
    va_list args;
    va_start(args, format);

    Compiler *comp = context;

    ErrorReport report = {0};
    errorReportInit(&report, &comp->storage,
                    debug ? debug->fileName : comp->lex.fileName,
                    debug ? debug->fnName : comp->debug.fnName,
                    debug ? debug->line : comp->lex.tok.line,
                    debug ? 1 : comp->lex.tok.pos,
                    0,
                    format, args);

    if (comp->error.warningCallback)
        ((UmkaWarningCallback)comp->error.warningCallback)((UmkaError *)&report);

    va_end(args);
}

// Assembly:
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdx, %r10
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x50(%rsp), %rsi
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0xc805
movaps %xmm0, 0x80(%rsp)
movaps %xmm1, 0x90(%rsp)
movaps %xmm2, 0xa0(%rsp)
movaps %xmm3, 0xb0(%rsp)
movaps %xmm4, 0xc0(%rsp)
movaps %xmm5, 0xd0(%rsp)
movaps %xmm6, 0xe0(%rsp)
movaps %xmm7, 0xf0(%rsp)
movq %rsi, 0x10(%rsp)
leaq 0x110(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000018, %rax     # imm = 0x3000000018
movq %rax, (%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0xf0(%rdi), %rsi
leaq 0x4ba8(%rdi), %rax
leaq 0x8(%rdx), %rcx
addq $0x50e8, %rdi           # imm = 0x50E8
leaq 0x10(%rdx), %r8
movl $0x1, %r9d
testq %rdx, %rdx
cmovneq %rdx, %rax
leaq 0x4ce0(%rbx), %r11
movq (%rax), %rdx
cmovneq %rcx, %rdi
movq (%rdi), %rcx
cmovneq %r8, %r11
movl (%r11), %r8d
jne 0xc886
movl 0x4ce4(%rbx), %r9d
subq $0x8, %rsp
leaq 0x8(%rsp), %rax
leaq 0x28(%rsp), %rdi
pushq %rax
pushq %r10
pushq $0x0
callq 0xcbc8
addq $0x20, %rsp
movq 0x5110(%rbx), %rax
testq %rax, %rax
je 0xc8b5
leaq 0x20(%rsp), %rdi
callq *%rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_api.c
// Function: umkaRun
UMKA_API int umkaRun(void *umka)
{
    Compiler *comp = umka;

    if (setjmp(comp->error.jumper) == 0)
    {
        comp->error.jumperNesting++;
        compilerRun(comp);
        comp->error.jumperNesting--;
        return 0;
    }

    return comp->error.report.code;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x5120, %rdi           # imm = 0x5120
callq 0x3200
testl %eax, %eax
je 0xc906
movl 0x5208(%rbx), %eax
jmp 0xc91c
incl 0x51e8(%rbx)
movq %rbx, %rdi
callq 0xebfe
decl 0x51e8(%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_api.c
// Function: umkaCall
UMKA_API int umkaCall(void *umka, UmkaFuncContext *fn)
{
    Compiler *comp = umka;

    // Nested calls to umkaCall() should not reset the error jumper
    jmp_buf dummyJumper;
    jmp_buf *jumper = comp->error.jumperNesting == 0 ? &comp->error.jumper : &dummyJumper;

    if (setjmp(*jumper) == 0)
    {
        comp->error.jumperNesting++;
        compilerCall(comp, (FuncContext *)fn);
        comp->error.jumperNesting--;
        return 0;
    }

    return comp->error.report.code;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x5120(%rdi), %rax
cmpl $0x0, 0x51e8(%rdi)
movq %rsp, %rdi
cmoveq %rax, %rdi
callq 0x3200
testl %eax, %eax
je 0xc954
movl 0x5208(%rbx), %eax
jmp 0xc96d
incl 0x51e8(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xec0c
decl 0x51e8(%rbx)
xorl %eax, %eax
addq $0xc8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_api.c
// Function: umkaGetCallStack
UMKA_API bool umkaGetCallStack(void *umka, int depth, int nameSize, int *offset, char *fileName, char *fnName, int *line)
{
    Compiler *comp = umka;
    Slot *base = comp->vm.fiber->base;
    int ip = comp->vm.fiber->ip;

    while (depth-- > 0)
        if (!vmUnwindCallStack(&comp->vm, &base, &ip))
            return false;

    if (offset)
        *offset = ip;

    if (fileName)
        snprintf(fileName, nameSize, "%s", comp->vm.fiber->debugPerInstr[ip].fileName);

    if (fnName)
        snprintf(fnName, nameSize, "%s", comp->vm.fiber->debugPerInstr[ip].fnName);

    if (line)
        *line = comp->vm.fiber->debugPerInstr[ip].line;

    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x18(%rsp)
movq %r8, 0x10(%rsp)
movq %rcx, %r13
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r14
movq 0x5058(%rdi), %rax
addq $0x5058, %r14           # imm = 0x5058
movq 0x20(%rax), %rcx
leaq 0x20(%rsp), %r15
movq %rcx, (%r15)
movl 0x8(%rax), %eax
leaq 0xc(%rsp), %r12
movl %eax, (%r12)
incl %ebx
decl %ebx
testl %ebx, %ebx
jle 0xca19
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x4502c
testb %al, %al
jne 0xc9fc
jmp 0xcaab
testq %r13, %r13
je 0xca26
movl 0xc(%rsp), %eax
movl %eax, (%r13)
movslq %ebp, %r13
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xca58
movq (%r14), %rax
movq 0x60(%rax), %rax
movslq 0xc(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %rcx
leaq 0x6c2c9(%rip), %rdx     # 0x78d17
movq %r13, %rsi
xorl %eax, %eax
callq 0x3170
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xca88
movq (%r14), %rax
movq 0x60(%rax), %rax
movslq 0xc(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x8(%rax,%rcx,8), %rcx
leaq 0x6c299(%rip), %rdx     # 0x78d17
movq %r13, %rsi
xorl %eax, %eax
callq 0x3170
cmpq $0x0, 0x60(%rsp)
je 0xcaab
movq (%r14), %rax
movq 0x60(%rax), %rax
movslq 0xc(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
movl 0x10(%rax,%rcx,8), %eax
movq 0x60(%rsp), %rcx
movl %eax, (%rcx)
testl %ebx, %ebx
setle %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_api.c
// Function: umkaGetResult
UMKA_API UmkaStackSlot *umkaGetResult(UmkaStackSlot *params, UmkaStackSlot *result)
{
    const ParamLayout *paramLayout = (ParamLayout *)params[-4].ptrVal;      // For -4, see the stack layout diagram in umka_vm.c
    if (paramLayout->numResultParams == 1)
        result->ptrVal = params[paramLayout->firstSlotIndex[paramLayout->numParams - 1]].ptrVal;
    return result;
}

// Assembly:
movq %rsi, %rax
movq -0x20(%rdi), %rcx
cmpq $0x1, 0x8(%rcx)
jne 0xcbb4
movq (%rcx), %rdx
movq 0x10(%rcx,%rdx,8), %rcx
movq (%rdi,%rcx,8), %rcx
movq %rcx, (%rax)
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: errorReportInit
void errorReportInit(ErrorReport *report, Storage *storage, const char *fileName, const char *fnName, int line, int pos, int code, const char *format, va_list args)
{
    char *reportFileName = storageAdd(storage, strlen(fileName) + 1);
    strcpy(reportFileName, fileName);
    report->fileName = reportFileName;

    char *reportFnName = storageAdd(storage, strlen(fnName) + 1);
    strcpy(reportFnName, fnName);
    report->fnName = reportFnName;

    report->line = line;
    report->pos = pos;
    report->code = code;

    va_list argsCopy;
    va_copy(argsCopy, args);

    const int msgLen = vsnprintf(NULL, 0, format, args);
    char *reportMsg = storageAdd(storage, msgLen + 1);
    vsnprintf(reportMsg, msgLen + 1, format, argsCopy);
    report->msg = reportMsg;

    va_end(argsCopy);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, 0xc(%rsp)
movl %r8d, %r13d
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq %rdx, %rdi
callq 0x3130
leaq 0x1(%rax), %rsi
movq %r15, %rdi
callq 0xcca8
movq %rax, %rbp
movq %rax, %rdi
movq %r12, %rsi
callq 0x30a0
movq %rbp, (%rbx)
movq %r14, %rdi
callq 0x3130
leaq 0x1(%rax), %rsi
movq %r15, %rdi
callq 0xcca8
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x30a0
movq %r12, 0x8(%rbx)
movl %r13d, 0x10(%rbx)
movl 0xc(%rsp), %eax
movl %eax, 0x14(%rbx)
movl 0x60(%rsp), %eax
movl %eax, 0x18(%rbx)
movq 0x70(%rsp), %rcx
movq 0x10(%rcx), %rax
leaq 0x10(%rsp), %r14
movq %rax, 0x10(%r14)
movups (%rcx), %xmm0
movaps %xmm0, (%r14)
xorl %edi, %edi
xorl %esi, %esi
movq 0x68(%rsp), %r13
movq %r13, %rdx
callq 0x30e0
incl %eax
movslq %eax, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xcca8
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x30e0
movq %r15, 0x20(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: storageAdd
void *storageAdd(Storage *storage, int64_t size)
{
    StorageChunk *chunk = malloc(sizeof(StorageChunk) + size);
    if (!chunk)
        storage->error->handler(storage->error->context, "Out of memory");

    chunk->prev = NULL;
    chunk->next = storage->first;
    chunk->size = size;
    memset(chunk->data, 0, size);

    if (storage->first)
        storage->first->prev = chunk;
    storage->first = chunk;

    return chunk->data;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x18(%rsi), %rdi
callq 0x3290
movq %rax, %r14
movq %rax, %r12
testq %rax, %rax
jne 0xccde
movq 0x8(%rbx), %rcx
movq 0x20(%rcx), %rdi
leaq 0x665d5(%rip), %rsi     # 0x732af
xorl %eax, %eax
callq *(%rcx)
movq $0x0, (%r12)
movq (%rbx), %r13
movq %r13, 0x8(%r12)
movq %r15, 0x10(%r12)
addq $0x18, %r14
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x3190
testq %r13, %r13
je 0xcd0d
movq %r12, (%r13)
movq %r12, (%rbx)
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: storageFree
void storageFree(Storage *storage)
{
    while (storage->first)
    {
        StorageChunk *next = storage->first->next;
        free(storage->first);
        storage->first = next;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xcd4c
movq 0x8(%rdi), %r14
callq 0x3040
movq %r14, (%rbx)
movq %r14, %rdi
testq %r14, %r14
jne 0xcd38
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: storageAddStr
char *storageAddStr(Storage *storage, int64_t len)
{
    StrDimensions dims = {.len = len, .capacity = len + 1};

    char *dimsAndData = storageAdd(storage, sizeof(StrDimensions) + dims.capacity);
    *(StrDimensions *)dimsAndData = dims;

    char *data = dimsAndData + sizeof(StrDimensions);
    data[len] = 0;

    return data;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x1(%rsi), %r14
addq $0x11, %rsi
callq 0xcca8
movq %rbx, (%rax)
movq %r14, 0x8(%rax)
movb $0x0, 0x10(%rax,%rbx)
addq $0x10, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: storageAddDynArray
DynArray *storageAddDynArray(Storage *storage, const struct tagType *type, int64_t len)
{
    DynArray *array = storageAdd(storage, sizeof(DynArray));

    array->type     = type;
    array->itemSize = array->type->base->size;

    DynArrayDimensions dims = {.len = len, .capacity = 2 * (len + 1)};

    char *dimsAndData = storageAdd(storage, sizeof(DynArrayDimensions) + dims.capacity * array->itemSize);
    *(DynArrayDimensions *)dimsAndData = dims;

    array->data = dimsAndData + sizeof(DynArrayDimensions);
    return array;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x18, %esi
callq 0xcca8
movq %rax, %r12
movq %r14, (%rax)
movq 0x8(%r14), %rax
movslq 0xc0(%rax), %rsi
movq %rsi, 0x8(%r12)
leaq 0x2(,%rbx,2), %r14
imulq %r14, %rsi
addq $0x10, %rsi
movq %r15, %rdi
callq 0xcca8
movq %rbx, (%rax)
movq %r14, 0x8(%rax)
addq $0x10, %rax
movq %rax, 0x10(%r12)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: storageRemove
void storageRemove(Storage *storage, void *data)
{
    StorageChunk *chunk = (StorageChunk *)((char *)data - sizeof(StorageChunk));

    if (chunk == storage->first)
        storage->first = chunk->next;

    if (chunk->prev)
        chunk->prev->next = chunk->next;

    if (chunk->next)
        chunk->next->prev = chunk->prev;

    free(chunk);
}

// Assembly:
movq %rdi, %rax
leaq -0x18(%rsi), %rdi
cmpq (%rax), %rdi
jne 0xcdfb
movq -0x10(%rsi), %rcx
movq %rcx, (%rax)
movq (%rdi), %rax
testq %rax, %rax
je 0xce0b
movq -0x10(%rsi), %rcx
movq %rcx, 0x8(%rax)
movq -0x10(%rsi), %rax
testq %rax, %rax
je 0x3040
movq (%rdi), %rcx
movq %rcx, (%rax)
jmp 0x3040
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: storageRealloc
void *storageRealloc(Storage *storage, void *data, int64_t size)
{
    const StorageChunk *chunk = (const StorageChunk *)((char *)data - sizeof(StorageChunk));

    void *newData = storageAdd(storage, size);
    memcpy(newData, data, chunk->size);
    storageRemove(storage, data);

    return newData;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rsi
callq 0xcca8
movq %rax, %r15
movq -0x8(%rbx), %rdx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3260
movq %r14, %rdi
movq %rbx, %rsi
callq 0xcde8
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: moduleInit
void moduleInit(Modules *modules, Storage *storage, bool implLibsEnabled, Error *error)
{
    for (int i = 0; i < MAX_MODULES; i++)
    {
        modules->module[i] = NULL;
        modules->moduleSource[i] = NULL;
    }
    modules->numModules = 0;
    modules->numModuleSources = 0;
    modules->implLibsEnabled = implLibsEnabled;
    modules->storage = storage;
    modules->error = error;

    if (!moduleCurFolder(modules->curFolder, DEFAULT_STR_LEN + 1))
        modules->error->handler(modules->error->context, "Cannot get current folder");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
movl $0x4000, %edx           # imm = 0x4000
xorl %esi, %esi
callq 0x3190
movq $0x0, 0x4000(%rbx)
movb %bpl, 0x4108(%rbx)
movq %r15, 0x4110(%rbx)
movq %r14, 0x4118(%rbx)
leaq 0x4008(%rbx), %rdi
movl $0x100, %esi            # imm = 0x100
callq 0xcede
testq %rax, %rax
je 0xcebb
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x4118(%rbx), %rax
movq (%rax), %rcx
movq 0x20(%rax), %rdi
leaq 0x663ed(%rip), %rsi     # 0x732bd
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *%rcx
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: moduleCurFolder
char *moduleCurFolder(char *buf, int size)
{
#ifdef _WIN32
    if (GetCurrentDirectory(size, buf) == 0)
        return NULL;
#else
    if (!getcwd(buf, size))
        return NULL;
#endif

    int len = strlen(buf);

    if (len > 0 && (buf[len - 1] == '/' || buf[len - 1] == '\\'))
        return buf;

    if (len > size - 2)
        return NULL;

    buf[len] = '/';
    buf[len + 1] = 0;
    return buf;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movslq %esi, %rsi
callq 0x31a0
testq %rax, %rax
je 0xcf1b
movq %rbx, %rdi
callq 0x3130
testl %eax, %eax
jle 0xcf14
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
addl %eax, %ecx
movzbl (%rbx,%rcx), %ecx
cmpl $0x2f, %ecx
je 0xcf3f
cmpl $0x5c, %ecx
je 0xcf3f
addl $-0x2, %ebp
cmpl %eax, %ebp
jge 0xcf1f
xorl %ebx, %ebx
jmp 0xcf3f
movq %rax, %rcx
shlq $0x20, %rcx
cltq
movb $0x2f, (%rbx,%rax)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq %rcx, %rax
incq %rax
sarq $0x20, %rax
movb $0x0, (%rbx,%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: moduleNameFromPath
void moduleNameFromPath(const Modules *modules, const char *path, char *folder, char *name, int size)
{
    const char *slash = strrchr(path, '/');
    const char *backslash = strrchr(path, '\\');

    if (backslash && (!slash || backslash > slash))
        slash = backslash;

    const char *start = slash ? (slash + 1) : path;

    const char *dot = strrchr(path, '.');
    const char *stop = dot ? dot : (path + strlen(path));

    if (stop <= start)
        modules->error->handler(modules->error->context, "Illegal module path %s", path);

    strncpy(folder, path, (start - path < size - 1) ? (start - path) : (size - 1));
    strncpy(name, start,  (stop - start < size - 1) ? (stop - start) : (size - 1));

    folder[size - 1] = 0;
    name[size - 1] = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rcx, (%rsp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
movl $0x2f, %esi
callq 0x3180
movq %rax, %r12
movq %r15, %rdi
movl $0x5c, %esi
callq 0x3180
cmpq %r12, %rax
movq %r12, %rcx
cmovaq %rax, %rcx
testq %r12, %r12
cmoveq %rax, %rcx
testq %rax, %rax
cmoveq %r12, %rcx
leaq 0x1(%rcx), %r12
testq %rcx, %rcx
cmoveq %r15, %r12
movq %r15, %rdi
movl $0x2e, %esi
callq 0x3180
movq %rax, %r13
testq %rax, %rax
jne 0xcfc8
movq %r15, %rdi
callq 0x3130
movq %rax, %r13
addq %r15, %r13
subq %r12, %r13
ja 0xcfe6
movq 0x4118(%rbx), %rcx
movq 0x20(%rcx), %rdi
leaq 0x662f8(%rip), %rsi     # 0x732d7
movq %r15, %rdx
xorl %eax, %eax
callq *(%rcx)
movq %r12, %rdx
subq %r15, %rdx
movslq %ebp, %rbx
leaq -0x1(%rbx), %rbp
cmpq %rbp, %rdx
cmovgeq %rbp, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3080
cmpq %rbp, %r13
cmovlq %r13, %rbp
movq (%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x3080
xorl %eax, %eax
movb %al, -0x1(%r14,%rbx)
movb %al, -0x1(%r15,%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: moduleFind
int moduleFind(const Modules *modules, const char *path)
{
    const unsigned int pathHash = hash(path);
    for (int i = 0; i < modules->numModules; i++)
        if (modules->module[i]->pathHash == pathHash && strcmp(modules->module[i]->path, path) == 0)
            return i;
    return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movb (%rsi), %al
testb %al, %al
je 0xd075
leaq 0x1(%rbx), %rcx
movl $0x1505, %r15d          # imm = 0x1505
movl %r15d, %edx
shll $0x5, %edx
addl %r15d, %edx
movsbl %al, %r15d
addl %edx, %r15d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0xd05a
jmp 0xd07b
movl $0x1505, %r15d          # imm = 0x1505
movslq 0x4000(%r14), %r12
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %r12, %r12
jle 0xd0b5
xorl %r13d, %r13d
movq (%r14,%r13,8), %rdi
cmpl %r15d, 0x300(%rdi)
jne 0xd0a8
movq %rbx, %rsi
callq 0x3210
testl %eax, %eax
je 0xd0b2
incq %r13
cmpq %r13, %r12
jne 0xd08f
jmp 0xd0b5
movl %r13d, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: moduleFindImported
int moduleFindImported(const Modules *modules, const Blocks *blocks, const char *alias)
{
    for (int i = 0; i < modules->numModules; i++)
    {
        const char *importAlias = modules->module[blocks->module]->importAlias[i];
        if (importAlias && strcmp(importAlias, alias) == 0)
            return i;
    }
    return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq 0x4000(%rdi), %r15
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r15, %r15
jle 0xd128
movq %rdx, %r14
movslq 0x968(%rsi), %rax
movq (%rdi,%rax,8), %r12
xorl %r13d, %r13d
movq 0x310(%r12,%r13,8), %rdi
movb $0x1, %bl
testq %rdi, %rdi
je 0xd113
movq %r14, %rsi
callq 0x3210
testl %eax, %eax
jne 0xd113
xorl %ebx, %ebx
movl %r13d, %ebp
testb %bl, %bl
je 0xd126
incq %r13
cmpq %r13, %r15
jne 0xd0f3
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xd128
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: moduleFindSource
const ModuleSource *moduleFindSource(const Modules *modules, const char *path)
{
    const unsigned int pathHash = hash(path);
    for (int i = 0; i < modules->numModuleSources; i++)
        if (modules->moduleSource[i]->pathHash == pathHash && strcmp(modules->moduleSource[i]->path, path) == 0)
            return modules->moduleSource[i];
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movb (%rsi), %al
testb %al, %al
je 0xd3ec
leaq 0x1(%rbx), %rcx
movl $0x1505, %ebp           # imm = 0x1505
movl %ebp, %edx
shll $0x5, %edx
addl %ebp, %edx
movsbl %al, %ebp
addl %edx, %ebp
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0xd3d5
jmp 0xd3f1
movl $0x1505, %ebp           # imm = 0x1505
movslq 0x4004(%r14), %r12
testq %r12, %r12
jle 0xd428
xorl %r13d, %r13d
movq 0x2000(%r14,%r13,8), %r15
cmpl %ebp, 0x300(%r15)
jne 0xd420
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3210
testl %eax, %eax
je 0xd42b
incq %r13
cmpq %r13, %r12
jne 0xd400
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: moduleAddSource
void moduleAddSource(Modules *modules, const char *path, const char *source, bool trusted)
{
    if (modules->numModuleSources >= MAX_MODULES)
        modules->error->handler(modules->error->context, "Too many module sources");

    char folder[DEFAULT_STR_LEN + 1] = "";
    char name  [DEFAULT_STR_LEN + 1] = "";

    moduleNameFromPath(modules, path, folder, name, DEFAULT_STR_LEN + 1);

    ModuleSource *moduleSource = storageAdd(modules->storage, sizeof(ModuleSource));

    strncpy(moduleSource->path, path, DEFAULT_STR_LEN);
    moduleSource->path[DEFAULT_STR_LEN] = 0;

    strncpy(moduleSource->folder, folder, DEFAULT_STR_LEN);
    moduleSource->folder[DEFAULT_STR_LEN] = 0;

    strncpy(moduleSource->name, name, DEFAULT_STR_LEN);
    moduleSource->name[DEFAULT_STR_LEN] = 0;

    int sourceLen = strlen(source);
    moduleSource->source = storageAdd(modules->storage, sourceLen + 1);
    strcpy(moduleSource->source, source);

    moduleSource->pathHash = hash(path);
    moduleSource->trusted = trusted;

    modules->moduleSource[modules->numModuleSources++] = moduleSource;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movl %ecx, 0x4(%rsp)
movq %rdx, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x400, 0x4004(%rdi)    # imm = 0x400
jl 0xd47f
movq 0x4118(%rbx), %rcx
movq 0x20(%rcx), %rdi
leaq 0x65ed2(%rip), %rsi     # 0x7334d
xorl %eax, %eax
callq *(%rcx)
leaq 0x110(%rsp), %r13
movl $0x100, %edx            # imm = 0x100
movq %r13, %rdi
xorl %esi, %esi
callq 0x3190
leaq 0x10(%rsp), %rbp
movl $0x100, %edx            # imm = 0x100
movq %rbp, %rdi
xorl %esi, %esi
callq 0x3190
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rbp, %rcx
movl $0x100, %r8d            # imm = 0x100
callq 0xcf4a
movq 0x4110(%rbx), %rdi
movl $0x318, %esi            # imm = 0x318
callq 0xcca8
movq %rax, %r12
movl $0xff, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x3080
xorl %r15d, %r15d
movb %r15b, 0xff(%r12)
leaq 0x100(%r12), %rdi
movl $0xff, %edx
movq %r13, %rsi
callq 0x3080
movb %r15b, 0x1ff(%r12)
xorl %r15d, %r15d
leaq 0x200(%r12), %rdi
movl $0xff, %edx
movq %rbp, %rsi
callq 0x3080
movb %r15b, 0x2ff(%r12)
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3130
movq 0x4110(%rbx), %rdi
incl %eax
movslq %eax, %rsi
callq 0xcca8
movq %rax, 0x308(%r12)
movq %rax, %rdi
movq %r15, %rsi
callq 0x30a0
movb (%r14), %cl
testb %cl, %cl
je 0xd585
incq %r14
movl $0x1505, %eax           # imm = 0x1505
movl %eax, %edx
shll $0x5, %edx
addl %eax, %edx
movsbl %cl, %eax
addl %edx, %eax
movb (%r14), %cl
incq %r14
testb %cl, %cl
jne 0xd56d
jmp 0xd58a
movl $0x1505, %eax           # imm = 0x1505
movl %eax, 0x300(%r12)
movl 0x4(%rsp), %eax
movb %al, 0x310(%r12)
movslq 0x4004(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x4004(%rbx)
movq %r12, 0x2000(%rbx,%rax,8)
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: blocksEnterFn
void blocksEnterFn(Blocks *blocks, const struct tagIdent *fn, bool hasUpvalues)
{
    if (blocks->top >= MAX_BLOCK_NESTING)
        blocks->error->handler(blocks->error->context, "Block nesting is too deep");

    blocks->top++;
    blocks->item[blocks->top].block = blocks->numBlocks++;
    blocks->item[blocks->top].fn = fn;
    blocks->item[blocks->top].localVarSize = 0;
    blocks->item[blocks->top].hasReturn = false;
    blocks->item[blocks->top].hasUpvalues = hasUpvalues;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
cmpl $0x64, 0x964(%rdi)
jl 0xd7a9
movq 0x970(%r14), %rcx
movq 0x20(%rcx), %rdi
leaq 0x65bdc(%rip), %rsi     # 0x73381
xorl %eax, %eax
callq *(%rcx)
movslq 0x964(%r14), %rax
incq %rax
movl %eax, 0x964(%r14)
movl 0x960(%r14), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x960(%r14)
leaq (%rax,%rax,2), %rax
movl %ecx, (%r14,%rax,8)
movq %r15, 0x8(%r14,%rax,8)
movl $0x0, 0x10(%r14,%rax,8)
movb $0x0, 0x14(%r14,%rax,8)
movb %bl, 0x15(%r14,%rax,8)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: externalFind
External *externalFind(const Externals *externals, const char *name)
{
    const unsigned int nameHash = hash(name);

    for (External *external = externals->first; external; external = external->next)
        if (external->hash == nameHash && strcmp(external->name, name) == 0)
            return external;

    return NULL;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movb (%rsi), %al
testb %al, %al
je 0xd86c
leaq 0x1(%rbx), %rcx
movl $0x1505, %ebp           # imm = 0x1505
movl %ebp, %edx
shll $0x5, %edx
addl %ebp, %edx
movsbl %al, %ebp
addl %edx, %ebp
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0xd855
jmp 0xd871
movl $0x1505, %ebp           # imm = 0x1505
movq (%rdi), %r14
testq %r14, %r14
je 0xd89a
cmpl %ebp, 0x100(%r14)
jne 0xd891
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3210
testl %eax, %eax
je 0xd89a
movq 0x118(%r14), %r14
jmp 0xd874
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_common.c
// Function: externalAdd
External *externalAdd(Externals *externals, const char *name, void *entry, bool resolveInTrusted)
{
    External *external = storageAdd(externals->storage, sizeof(External));

    external->entry = entry;
    external->resolved = false;
    external->resolveInTrusted = resolveInTrusted;

    strncpy(external->name, name, DEFAULT_STR_LEN);
    external->name[DEFAULT_STR_LEN] = 0;

    external->hash = hash(name);

    external->next = externals->first;
    externals->first = external;

    return external;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movl $0x120, %esi            # imm = 0x120
callq 0xcca8
movq %rax, %r14
movq %r12, 0x108(%rax)
xorl %r12d, %r12d
movb %r12b, 0x110(%rax)
movb %bpl, 0x111(%rax)
movl $0xff, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3080
movb %r12b, 0xff(%r14)
movb (%r15), %cl
testb %cl, %cl
je 0xd91c
incq %r15
movl $0x1505, %eax           # imm = 0x1505
movl %eax, %edx
shll $0x5, %edx
addl %eax, %edx
movsbl %cl, %eax
addl %edx, %eax
movb (%r15), %cl
incq %r15
testb %cl, %cl
jne 0xd904
jmp 0xd921
movl $0x1505, %eax           # imm = 0x1505
movl %eax, 0x100(%r14)
movq (%rbx), %rax
movq %rax, 0x118(%r14)
movq %r14, (%rbx)
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_compiler.c
// Function: compilerAsm
char *compilerAsm(Compiler *comp)
{
    const int chars = genAsm(&comp->gen, NULL, 0);
    if (chars < 0)
        return NULL;

    char *buf = storageAdd(&comp->storage, chars + 1);
    genAsm(&comp->gen, buf, chars);
    buf[chars] = 0;
    return buf;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r12
leaq 0x4e70(%rdi), %rbx
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x197e3
testl %eax, %eax
js 0xec6c
movl %eax, %r15d
addq $0xf0, %r12
leal 0x1(%r15), %esi
movq %r12, %rdi
callq 0xcca8
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
movl %r15d, %edx
callq 0x197e3
movl %r15d, %eax
movb $0x0, (%r14,%rax)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_compiler.c
// Function: compilerAddModule
bool compilerAddModule(Compiler *comp, const char *fileName, const char *sourceString)
{
    char modulePath[DEFAULT_STR_LEN + 1] = "";
    moduleAssertRegularizePath(&comp->modules, fileName, comp->modules.curFolder, modulePath, DEFAULT_STR_LEN + 1);

    if (moduleFindSource(&comp->modules, modulePath))
        return false;

    moduleAddSource(&comp->modules, modulePath, sourceString, false);
    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq %rsp, %r13
movl $0x100, %edx            # imm = 0x100
movq %r13, %rdi
xorl %esi, %esi
callq 0x3190
leaq 0x100(%r12), %r14
addq $0x4108, %r12           # imm = 0x4108
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
movl $0x100, %r8d            # imm = 0x100
callq 0xd70b
movq %r14, %rdi
movq %r13, %rsi
callq 0xd3b5
movq %rax, %r15
testq %rax, %rax
jne 0xecef
movq %rsp, %rsi
movq %r14, %rdi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xd43d
testq %r15, %r15
sete %al
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_compiler.c
// Function: compilerGetFunc
bool compilerGetFunc(Compiler *comp, const char *moduleName, const char *funcName, FuncContext *fn)
{
    int module = 1;
    if (moduleName)
    {
        char modulePath[DEFAULT_STR_LEN + 1] = "";
        moduleAssertRegularizePath(&comp->modules, moduleName, comp->modules.curFolder, modulePath, DEFAULT_STR_LEN + 1);
        module = moduleFind(&comp->modules, modulePath);
    }

    const Ident *fnIdent = identFind(&comp->idents, &comp->modules, &comp->blocks, module, funcName, NULL, false);
    if (!fnIdent || fnIdent->kind != IDENT_CONST || fnIdent->type->kind != TYPE_FN)
        return false;

    identSetUsed(fnIdent);

    compilerMakeFuncContext(comp, fnIdent->type, fnIdent->offset, fn);
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rcx, %rbx
movq %rdx, %r15
movq %rdi, %r14
testq %rsi, %rsi
je 0xedb7
movq %rsi, %r12
leaq 0x10(%rsp), %r13
movl $0x100, %edx            # imm = 0x100
movq %r13, %rdi
xorl %esi, %esi
callq 0x3190
leaq 0x100(%r14), %rbp
leaq 0x4108(%r14), %rdx
movq %rbp, %rdi
movq %r12, %rsi
movq %r13, %rcx
movl $0x100, %r8d            # imm = 0x100
callq 0xd70b
movq %rbp, %rdi
movq %r13, %rsi
callq 0xd039
movl %eax, %ecx
jmp 0xedbc
movl $0x1, %ecx
leaq 0x4e38(%r14), %rdi
leaq 0x100(%r14), %rsi
leaq 0x4220(%r14), %rdx
movl $0x0, (%rsp)
xorl %r12d, %r12d
movq %r15, %r8
xorl %r9d, %r9d
callq 0x19a9d
testq %rax, %rax
je 0xee1c
cmpl $0x0, (%rax)
jne 0xee19
movq 0x108(%rax), %rsi
cmpl $0x1a, (%rsi)
jne 0xee19
movb $0x1, 0x11a(%rax)
movl 0x120(%rax), %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0xee31
movb $0x1, %r12b
jmp 0xee1c
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_compiler.c
// Function: compilerMakeFuncContext
void compilerMakeFuncContext(Compiler *comp, const Type *fnType, int entryOffset, FuncContext *fn)
{
    fn->entryOffset = entryOffset;

    int paramSlots = typeParamSizeTotal(&comp->types, &fnType->sig) / sizeof(Slot);
    fn->params = (Slot *)storageAdd(&comp->storage, (paramSlots + 4) * sizeof(Slot)) + 4;          // + 4 slots for compatibility with umkaGetParam()

    const ParamLayout *paramLayout = typeMakeParamLayout(&comp->types, &fnType->sig);
    fn->params[-4].ptrVal = (ParamLayout *)paramLayout;

    fn->result = storageAdd(&comp->storage, sizeof(Slot));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movslq %edx, %rax
movq %rax, (%rcx)
leaq 0x4e18(%rdi), %r12
addq $0x28, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x1fd2f
sarl $0x3, %eax
addq $0xf0, %r14
cltq
leaq 0x20(,%rax,8), %rsi
movq %r14, %rdi
callq 0xcca8
addq $0x20, %rax
movq %rax, 0x8(%rbx)
movq %r12, %rdi
movq %r15, %rsi
callq 0x1fd62
movq 0x8(%rbx), %rcx
movq %rax, -0x20(%rcx)
movl $0x8, %esi
movq %r14, %rdi
callq 0xcca8
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_const.c
// Function: constArrayAlloc
void constArrayAlloc(ConstArray *array, Storage *storage, const Type *type)
{
    array->storage = storage;
    array->type = type;
    array->len = 0;
    array->capacity = 4;
    array->data = storageAdd(array->storage, array->capacity * sizeof(Const));
}

// Assembly:
pushq %rbx
movq %rsi, %rax
movq %rdi, %rbx
movq %rsi, (%rdi)
movq %rdx, 0x10(%rdi)
movabsq $0x400000000, %rcx      # imm = 0x400000000
movq %rcx, 0x18(%rdi)
movl $0x20, %esi
movq %rax, %rdi
callq 0xcca8
movq %rax, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_const.c
// Function: constArrayAppend
void constArrayAppend(ConstArray *array, Const val)
{
    if (array->len == array->capacity)
    {
        array->capacity *= 2;
        array->data = storageRealloc(array->storage, array->data, array->capacity * sizeof(Const));
    }
    array->data[array->len++] = val;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movslq 0x1c(%rdi), %rdx
cmpl %edx, 0x18(%rdi)
jne 0xfa37
leal (%rdx,%rdx), %eax
movl %eax, 0x1c(%r14)
movq (%r14), %rdi
movq 0x8(%r14), %rsi
shlq $0x4, %rdx
callq 0xce23
movq %rax, 0x8(%r14)
movq 0x8(%r14), %rax
movslq 0x18(%r14), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x18(%r14)
movq %rbx, (%rax,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/vtereshkov[P]umka-lang/src/umka_const.c
// Function: constArrayFind
int constArrayFind(const Consts *consts, const ConstArray *array, Const val)
{
    for (int i = 0; i < array->len; i++)
    {
        Const result = array->data[i];
        constBinary(consts, &result, &val, TOK_EQEQ, array->type);
        if (result.intVal)
            return i;
    }
    return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x0, 0x18(%rsi)
jle 0xfac6
movq %rsi, %r14
movq %rdi, %r15
xorl %ebp, %ebp
leaq 0x8(%rsp), %r12
leaq 0x10(%rsp), %r13
movl %eax, %ebx
movq 0x8(%r14), %rax
movq (%rax,%rbp,8), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%r14), %r8
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movl $0x2e, %ecx
callq 0xf146
cmpq $0x0, 0x8(%rsp)
movl %ebp, %eax
cmovel %ebx, %eax
jne 0xfac6
incq %rbp
movslq 0x18(%r14), %rcx
cmpq %rcx, %rbp
jl 0xfa82
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq