LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/mflatt[P]gc-demo/gengc/gengc.c
// Function: collect_garbage
void collect_garbage()
{
  if (!chunks) return;
  
  /* minor collection: */
  mark_and_sweep_from_roots();

  /* The minor collection above relies on having no references from
     old object to new objects; this is not a general-purpose GC. If
     such references were allowed, we'd have to add them as roots. */
  
  /* move non-empty chunks to old generation: */
  if (chunks) {
    struct gc_chunk *prev_c = NULL, *next;

    for (struct gc_chunk *c = chunks; c; c = next) {
      next = c->next;
      if (c->num_marked_nodes == 0) {
        /* This chunk is empty, so free it */
        raw_free(c->mem, NODES_PER_CHUNK * sizeof(struct gc_node));
        raw_free(c, sizeof(struct gc_chunk));
        if (!prev_c)
          chunks = next;
      } else {
        /* Keep this chunk, now as an old-generation chunk */
        num_gen1_chunks++;
        if (prev_c)
          prev_c->next = c;
        prev_c = c;
      }
    }

    if (prev_c) {
      prev_c->next = gen1_chunks;
      gen1_chunks = chunks;
    }

    chunks = NULL;
    free_list = NULL;
  }

  if (num_gen1_chunks >= (last_major_gen1_chunks * 2)) {
    /* perform major collection by moving all old-generation
       chunks back to the "new" generation, and GC again */
    // printf("Major GC\n");
    last_major_gen1_chunks = num_gen1_chunks;
    chunks = gen1_chunks;
    gen1_chunks = NULL;
    num_gen1_chunks = 0;
    collect_garbage();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x2d1e(%rip), %r14      # 0x4080
cmpq $0x0, (%r14)
je 0x143e
xorl %r15d, %r15d
leaq 0x2cfa(%rip), %r12      # 0x4070
xorl %eax, %eax
callq 0x1503
movq (%r14), %rbx
testq %rbx, %rbx
je 0x13fe
xorl %r13d, %r13d
movq (%rbx), %rbp
cmpl $0x0, 0x10(%rbx)
je 0x13a5
incl 0x2cc1(%rip)            # 0x4058
testq %r13, %r13
je 0x13a0
movq %rbx, (%r13)
movq %rbx, %r13
jmp 0x13c5
movq 0x8(%rbx), %rdi
movl $0xc0000, %esi          # imm = 0xC0000
callq 0x1342
movl $0x18, %esi
movq %rbx, %rdi
callq 0x1342
testq %r13, %r13
je 0x13cf
movq %rbp, %rbx
testq %rbp, %rbp
jne 0x1388
jmp 0x13e2
movq %rbp, (%r14)
movq %rbp, %rbx
movl $0x0, %r13d
testq %rbp, %rbp
jne 0x1388
jmp 0x13f7
movq 0x2c77(%rip), %rax      # 0x4060
movq %rax, (%r13)
movq (%r14), %rax
movq %rax, 0x2c69(%rip)      # 0x4060
movq %r15, (%r14)
movq %r15, (%r12)
movl 0x2c54(%rip), %eax      # 0x4058
movl 0x2c5e(%rip), %ecx      # 0x4068
addl %ecx, %ecx
cmpl %ecx, %eax
jl 0x143e
movl %eax, 0x2c52(%rip)      # 0x4068
movq 0x2c43(%rip), %rax      # 0x4060
movq %rax, (%r14)
movq $0x0, 0x2c35(%rip) # 0x4060
movl $0x0, 0x2c23(%rip)      # 0x4058
testq %rax, %rax
jne 0x1376
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/c-zhou[P]yahs/juicer.c
// Function: assembly_scale_max_seq
uint64_t assembly_scale_max_seq(asm_dict_t *dict, int *scale, uint64_t max_s, uint64_t *g)
{
    uint32_t i;
    uint64_t s;
    sd_aseq_t seq;
 
    s = 0;
    for (i = 0; i < dict->n; ++i) {
        seq = dict->s[i];
        s = MAX(s, seq.len + seq.gap);
    }
    
    *g = s;

    return linear_scale(s, scale, max_s);
}

// Assembly:
movl (%rdi), %r8d
testq %r8, %r8
je 0x9f65
movq 0x8(%rdi), %rax
imulq $0x58, %r8, %r8
xorl %r9d, %r9d
xorl %edi, %edi
movq 0x10(%rax,%r9), %r10
addq 0x8(%rax,%r9), %r10
cmpq %r10, %rdi
cmovbeq %r10, %rdi
addq $0x58, %r9
cmpq %r9, %r8
jne 0x9f49
jmp 0x9f67
xorl %edi, %edi
movq %rdi, (%rcx)
jmp 0x34f0
// File: /workspace/github_c_makefile_star2_O3/c-zhou[P]yahs/juicer.c
// Function: usage
static int usage(FILE *fo)
{
    fprintf(fo, "\n");
    fprintf(fo, "Usage:   juicer <command> <arguments>\n");
    fprintf(fo, "Version: %s\n\n", JUICER_VERSION);
    fprintf(fo, "Command: pre       generate files compatible with Juicebox toolset\n");
    fprintf(fo, "         post      generate assembly files after Juicebox curation\n");
    fprintf(fo, "\n");
    return fo == stdout? 0 : 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0xa, %edi
movq %rbx, %rsi
callq 0x21e0
leaq 0x4584(%rip), %rdi      # 0x1016f
movl $0x26, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23f0
leaq 0x4592(%rip), %rsi      # 0x10196
leaq 0x452e(%rip), %rdx      # 0x10139
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2230
leaq 0x4588(%rip), %rdi      # 0x101a4
movl $0x43, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23f0
leaq 0x45b3(%rip), %rdi      # 0x101e8
movl $0x43, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23f0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x21e0
movq 0x9375(%rip), %rcx      # 0x14fd0
xorl %eax, %eax
cmpq %rbx, (%rcx)
setne %al
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/c-zhou[P]yahs/juicer.c
// Function: print_help_pre
static void print_help_pre(FILE *fp_help)
{
    fprintf(fp_help, "Usage: juicer pre [options] <hic.bed>|<hic.bam>|<hic.pa5>|<hic.bin> <scaffolds.agp> <contigs.fa.fai>\n");
    fprintf(fp_help, "Options:\n");
    fprintf(fp_help, "    -a                preprocess for assembly mode\n");
    fprintf(fp_help, "    -q INT            minimum mapping quality [10]\n");
    fprintf(fp_help, "    -o STR            output file prefix (required for '-a' mode) [stdout]\n");
    fprintf(fp_help, "    --file-type STR   input file type BED|BAM|PA5|BIN, file name extension is ignored if set\n");
    fprintf(fp_help, "    --version         show version number\n");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x45f9(%rip), %rdi      # 0x10712
movl $0x65, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23f0
leaq 0x4646(%rip), %rdi      # 0x10778
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23f0
leaq 0x4637(%rip), %rdi      # 0x10782
movl $0x33, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23f0
leaq 0x4652(%rip), %rdi      # 0x107b6
movl $0x33, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23f0
leaq 0x466d(%rip), %rdi      # 0x107ea
movl $0x4b, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23f0
leaq 0x46a0(%rip), %rdi      # 0x10836
movl $0x5d, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23f0
leaq 0x46e5(%rip), %rdi      # 0x10894
movl $0x2a, %esi
movl $0x1, %edx
movq %rbx, %rcx
popq %rbx
jmp 0x23f0
// File: /workspace/github_c_makefile_star2_O3/c-zhou[P]yahs/juicer.c
// Function: parse_bam_rec
static char *parse_bam_rec(bam1_t *b, bam_header_t *h, uint8_t q, int32_t *s, int32_t *e, char **cname)
{
    // 0x4 0x100 0x200 0x400 0x800
    if ((b->core.flag & 0xF04) || (!b->core.flag) || b->core.qual < q)
        return 0;
    *cname = h->target_name[b->core.tid];
    *s = b->core.pos;
    *e = get_target_end(b);

    return strdup(bam1_qname(b));
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
movq %rax, %rdi
shrq $0x20, %rdi
testl $0xf04, %edi            # imm = 0xF04
setne %r8b
testw %di, %di
sete %dil
orb %r8b, %dil
jne 0xdcc8
shrl $0x10, %eax
movzbl %al, %eax
movzbl %dl, %edx
cmpl %edx, %eax
jae 0xdcd2
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x8(%rsi), %rax
movslq (%r14), %rdx
movq (%rax,%rdx,8), %rax
movq %rax, (%r9)
movl 0x4(%r14), %eax
movl %eax, (%rcx)
movq %r14, %rdi
callq 0x3f39
movl %eax, (%rbx)
movq 0x30(%r14), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2420
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiSetFont
void GuiSetFont(Font font)
{
    if (font.texture.id > 0)
    {
        // NOTE: If we try to setup a font but default style has not been
        // lazily loaded before, it will be overwritten, so we need to force
        // default style loading first
        if (!guiStyleLoaded) GuiLoadStyleDefault();

        guiFont = font;
        GuiSetStyle(DEFAULT, TEXT_SIZE, font.baseSize);
    }
}

// Assembly:
pushq %rbx
cmpl $0x0, 0x1c(%rsp)
je 0x6a3a
leaq 0x10(%rsp), %rbx
cmpb $0x1, 0x9d87c(%rip)     # 0xa4255
jne 0x69ff
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movaps %xmm2, 0x9d893(%rip)    # 0xa4280
movaps %xmm1, 0x9d87c(%rip)    # 0xa4270
movaps %xmm0, 0x9d865(%rip)    # 0xa4260
movl (%rbx), %ebx
jmp 0x6a34
callq 0x6a3c
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movaps %xmm2, 0x9d86a(%rip)    # 0xa4280
movaps %xmm1, 0x9d853(%rip)    # 0xa4270
movaps %xmm0, 0x9d83c(%rip)    # 0xa4260
movl (%rbx), %ebx
cmpb $0x0, 0x9d828(%rip)     # 0xa4255
jne 0x6a34
callq 0x6a3c
movl %ebx, 0x9d896(%rip)     # 0xa42d0
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiSetStyle
void GuiSetStyle(int control, int property, int value)
{
    if (!guiStyleLoaded) GuiLoadStyleDefault();
    guiStyle[control*(NUM_PROPS_DEFAULT + NUM_PROPS_EXTENDED) + property] = value;

    // Default properties are propagated to all controls
    if ((control == 0) && (property < NUM_PROPS_DEFAULT))
    {
        for (int i = 1; i < NUM_CONTROLS; i++) guiStyle[i*(NUM_PROPS_DEFAULT + NUM_PROPS_EXTENDED) + property] = value;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %r14d
movl %edi, %r15d
cmpb $0x0, 0x9cbd5(%rip)     # 0xa4255
jne 0x7687
callq 0x6a3c
leal (%r15,%r15,2), %eax
leal (%r14,%rax,8), %eax
movslq %eax, %rcx
leaq 0x9cbf7(%rip), %rax     # 0xa4290
movl %ebx, (%rax,%rcx,4)
testl %r15d, %r15d
setne %cl
cmpl $0x10, %r14d
setge %dl
orb %cl, %dl
jne 0x7779
movslq %r14d, %rcx
leaq (%rax,%rcx,4), %rax
addq $0x180, %rax            # imm = 0x180
xorl %ecx, %ecx
movdqa 0x5d9c8(%rip), %xmm0    # 0x65090
movdqa 0x5d9d0(%rip), %xmm1    # 0x650a0
movdqa 0x5d9d8(%rip), %xmm2    # 0x650b0
movdqa 0x5d9e0(%rip), %xmm3    # 0x650c0
pshufd $0xf5, %xmm3, %xmm4     # xmm4 = xmm3[1,1,3,3]
movq %rcx, %xmm5
pshufd $0x44, %xmm5, %xmm5     # xmm5 = xmm5[0,1,0,1]
movdqa %xmm5, %xmm6
por %xmm1, %xmm6
pxor %xmm2, %xmm6
movdqa %xmm3, %xmm7
pcmpgtd %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm6     # xmm6 = xmm6[1,1,3,3]
pcmpeqd %xmm4, %xmm6
pand %xmm7, %xmm6
movd %xmm6, %edx
testb $0x1, %dl
je 0x771f
movl %ebx, -0x120(%rax)
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x772f
movl %ebx, -0xc0(%rax)
por %xmm0, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm3, %xmm6
pcmpgtd %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pcmpeqd %xmm4, %xmm5
pand %xmm6, %xmm5
pextrw $0x0, %xmm5, %edx
testb $0x1, %dl
je 0x7759
movl %ebx, -0x60(%rax)
pextrw $0x4, %xmm5, %edx
testb $0x1, %dl
je 0x7765
movl %ebx, (%rax)
addq $0x4, %rcx
addq $0x180, %rax            # imm = 0x180
cmpq $0x10, %rcx
jne 0x76e5
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiStatusBar
void GuiStatusBar(Rectangle bounds, const char *text)
{
    GuiControlState state = guiState;

    // Draw control
    //--------------------------------------------------------------------
    GuiDrawRectangle(bounds, GuiGetStyle(STATUSBAR, BORDER_WIDTH), Fade(GetColor(GuiGetStyle(STATUSBAR, (state != GUI_STATE_DISABLED)? BORDER_COLOR_NORMAL : BORDER_COLOR_DISABLED)), guiAlpha),
                     Fade(GetColor(GuiGetStyle(STATUSBAR, (state != GUI_STATE_DISABLED)? BASE_COLOR_NORMAL : BASE_COLOR_DISABLED)), guiAlpha));
    GuiDrawText(text, GetTextBounds(STATUSBAR, bounds), GuiGetStyle(STATUSBAR, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(STATUSBAR, (state != GUI_STATE_DISABLED)? TEXT_COLOR_NORMAL : TEXT_COLOR_DISABLED)), guiAlpha));
    //--------------------------------------------------------------------
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl 0x9c866(%rip), %r14d    # 0xa4250
cmpb $0x1, 0x9c864(%rip)     # 0xa4255
jne 0x7a0a
movl 0x9ce67(%rip), %ebp     # 0xa4860
xorl %r12d, %r12d
cmpl $0x3, %r14d
sete %r12b
leal (%r12,%r12,8), %r14d
jmp 0x7a32
callq 0x6a3c
movl 0x9ce4b(%rip), %ebp     # 0xa4860
xorl %r12d, %r12d
cmpl $0x3, %r14d
sete %r12b
leal (%r12,%r12,8), %r14d
cmpb $0x0, 0x9c82a(%rip)     # 0xa4255
jne 0x7a32
callq 0x6a3c
movl %r14d, %eax
leaq 0x9c854(%rip), %r15     # 0xa4290
movl 0x5a0(%r15,%rax,4), %edi
callq 0x4144d
movss 0x9b9df(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movl %eax, %r14d
cmpb $0x0, 0x9c7f3(%rip)     # 0xa4255
jne 0x7a69
callq 0x6a3c
movzbl %r12b, %r12d
leal (,%r12,4), %eax
leal (%rax,%rax,8), %eax
movl 0x5a4(%rax,%r15), %edi
callq 0x4144d
movss 0x9b9a3(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movl %ebp, %edi
movl %r14d, %esi
movl %eax, %edx
callq 0x7ee9
movl $0xf, %edi
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0xa726
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, (%rsp)
cmpb $0x1, 0x9c789(%rip)     # 0xa4255
jne 0x7ade
movl 0x9cd94(%rip), %ebp     # 0xa4868
leal (%r12,%r12,8), %r14d
addl $0x2, %r14d
jmp 0x7aff
callq 0x6a3c
movl 0x9cd7f(%rip), %ebp     # 0xa4868
leal (%r12,%r12,8), %r14d
addl $0x2, %r14d
cmpb $0x0, 0x9c75d(%rip)     # 0xa4255
jne 0x7aff
callq 0x6a3c
movl %r14d, %eax
movl 0x5a0(%r15,%rax,4), %edi
callq 0x4144d
movss 0x9b919(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movq %rbx, %rdi
movaps 0x10(%rsp), %xmm0
movaps (%rsp), %xmm1
movl %ebp, %esi
movl %eax, %edx
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xa506
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiPanel
void GuiPanel(Rectangle bounds)
{
    #define PANEL_BORDER_WIDTH   1

    GuiControlState state = guiState;

    // Draw control
    //--------------------------------------------------------------------
    GuiDrawRectangle(bounds, PANEL_BORDER_WIDTH, Fade(GetColor(GuiGetStyle(DEFAULT, (state == GUI_STATE_DISABLED)? BORDER_COLOR_DISABLED: LINE_COLOR)), guiAlpha),
                     Fade(GetColor(GuiGetStyle(DEFAULT, (state == GUI_STATE_DISABLED)? BASE_COLOR_DISABLED : BACKGROUND_COLOR)), guiAlpha));
    //--------------------------------------------------------------------
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl 0x9c6fa(%rip), %ebp     # 0xa4250
xorl %eax, %eax
cmpl $0x3, %ebp
setne %al
leaq (%rax,%rax,8), %rbx
addq $0x9, %rbx
cmpb $0x0, 0x9c6e8(%rip)     # 0xa4255
jne 0x7b74
callq 0x6a3c
leaq 0x9c715(%rip), %r14     # 0xa4290
movl (%r14,%rbx,4), %edi
callq 0x4144d
movss 0x9b8a4(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movl %eax, %ebx
cmpb $0x0, 0x9c6b9(%rip)     # 0xa4255
jne 0x7ba3
callq 0x6a3c
xorl %eax, %eax
cmpl $0x3, %ebp
setne %al
shll $0x2, %eax
leal (%rax,%rax,8), %eax
movl 0x28(%rax,%r14), %edi
callq 0x4144d
movss 0x9b86d(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movl $0x1, %edi
movl %ebx, %esi
movl %eax, %edx
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x7ee9
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiGroupBox
void GuiGroupBox(Rectangle bounds, const char *text)
{
    #define GROUPBOX_LINE_THICK     1
    #define GROUPBOX_TEXT_PADDING  10

    GuiControlState state = guiState;

    // Draw control
    //--------------------------------------------------------------------
    GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y, GROUPBOX_LINE_THICK, bounds.height }, 0, BLANK, Fade(GetColor(GuiGetStyle(DEFAULT, (state == GUI_STATE_DISABLED)? BORDER_COLOR_DISABLED : LINE_COLOR)), guiAlpha));
    GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y + bounds.height - 1, bounds.width, GROUPBOX_LINE_THICK }, 0, BLANK, Fade(GetColor(GuiGetStyle(DEFAULT, (state == GUI_STATE_DISABLED)? BORDER_COLOR_DISABLED : LINE_COLOR)), guiAlpha));
    GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x + bounds.width - 1, bounds.y, GROUPBOX_LINE_THICK, bounds.height }, 0, BLANK, Fade(GetColor(GuiGetStyle(DEFAULT, (state == GUI_STATE_DISABLED)? BORDER_COLOR_DISABLED : LINE_COLOR)), guiAlpha));

    GuiLine(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y, bounds.width, 1 }, text);
    //--------------------------------------------------------------------
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movaps %xmm0, (%rsp)
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, 0x20(%rsp)
movaps %xmm1, 0x30(%rsp)
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
movaps %xmm1, 0x10(%rsp)
xorl %eax, %eax
cmpl $0x3, 0x9c4a1(%rip)     # 0xa4250
setne %al
leaq (%rax,%rax,8), %r14
addq $0x9, %r14
cmpb $0x0, 0x9c494(%rip)     # 0xa4255
jne 0x7dc8
callq 0x6a3c
leaq 0x9c4c1(%rip), %r15     # 0xa4290
movl (%r15,%r14,4), %edi
callq 0x4144d
movss 0x9b650(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0x7e0c
cvttss2si (%rsp), %edi
cvttss2si 0x20(%rsp), %esi
cvttss2si 0x10(%rsp), %ecx
movl $0x1, %edx
movl %eax, %r8d
callq 0x2e4dc
cmpb $0x0, 0x9c442(%rip)     # 0xa4255
jne 0x7e1a
callq 0x6a3c
movl (%r15,%r14,4), %edi
callq 0x4144d
movss 0x9b605(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0x7e68
movaps 0x20(%rsp), %xmm0
addss 0x10(%rsp), %xmm0
addss 0x5d1bc(%rip), %xmm0    # 0x65008
cvttss2si (%rsp), %edi
cvttss2si %xmm0, %esi
cvttss2si 0x30(%rsp), %edx
movl $0x1, %ecx
movl %eax, %r8d
callq 0x2e4dc
cmpb $0x0, 0x9c3e6(%rip)     # 0xa4255
jne 0x7e76
callq 0x6a3c
movl (%r15,%r14,4), %edi
callq 0x4144d
movss 0x9b5a9(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0x7ec4
movaps (%rsp), %xmm0
addss 0x30(%rsp), %xmm0
addss 0x5d161(%rip), %xmm0    # 0x65008
cvttss2si %xmm0, %edi
cvttss2si 0x20(%rsp), %esi
cvttss2si 0x10(%rsp), %ecx
movl $0x1, %edx
movl %eax, %r8d
callq 0x2e4dc
movaps 0x5d275(%rip), %xmm1    # 0x65140
movaps 0x30(%rsp), %xmm0
movss %xmm0, %xmm1            # xmm1 = xmm0[0],xmm1[1,2,3]
movaps (%rsp), %xmm0
movq %rbx, %rdi
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x7fef
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiDrawRectangle
static void GuiDrawRectangle(Rectangle rec, int borderWidth, Color borderColor, Color color)
{
    if (color.a > 0)
    {
        // Draw rectangle filled with color
        DrawRectangle((int)rec.x, (int)rec.y, (int)rec.width, (int)rec.height, color);
    }

    if (borderWidth > 0)
    {
        // Draw rectangle border lines with color
        DrawRectangle((int)rec.x, (int)rec.y, (int)rec.width, borderWidth, borderColor);
        DrawRectangle((int)rec.x, (int)rec.y + borderWidth, borderWidth, (int)rec.height - 2*borderWidth, borderColor);
        DrawRectangle((int)rec.x + (int)rec.width - borderWidth, (int)rec.y + borderWidth, borderWidth, (int)rec.height - 2*borderWidth, borderColor);
        DrawRectangle((int)rec.x, (int)rec.y + (int)rec.height - borderWidth, (int)rec.width, borderWidth, borderColor);
    }

    // TODO: For n-patch-based style we would need: [state] and maybe [control]
    // In this case all controls drawing logic should be moved to this function... I don't like it...
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %r15d
movl %edi, %r14d
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movaps %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm2     # xmm2 = xmm2[1,1],xmm1[1,1]
movaps %xmm2, (%rsp)
cmpl $0x1000000, %edx        # imm = 0x1000000
jb 0x7f4e
movl %edx, %r8d
cvttss2si %xmm0, %edi
cvttss2si %xmm3, %esi
cvttss2si %xmm1, %edx
cvttss2si (%rsp), %ecx
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm3, 0x20(%rsp)
callq 0x2e4dc
movaps 0x20(%rsp), %xmm3
movaps 0x30(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
testl %r14d, %r14d
jle 0x7fe0
cvttss2si %xmm0, %ebp
cvttss2si %xmm3, %r12d
cvttss2si %xmm1, %r13d
movl %ebp, %edi
movl %r12d, %esi
movl %r13d, %edx
movl %r14d, %ecx
movl %r15d, %r8d
callq 0x2e4dc
cvttss2si (%rsp), %ecx
movl %ecx, (%rsp)
leal (%r12,%r14), %esi
movl %esi, 0x10(%rsp)
movl %ecx, %ebx
subl %r14d, %ebx
subl %r14d, %ebx
movl %ebp, %edi
movl %r14d, %edx
movl %ebx, %ecx
movl %r15d, %r8d
callq 0x2e4dc
movl %ebp, %edi
subl %r14d, %edi
addl %r13d, %edi
movl 0x10(%rsp), %esi
movl %r14d, %edx
movl %ebx, %ecx
movl %r15d, %r8d
callq 0x2e4dc
subl %r14d, %r12d
addl (%rsp), %r12d
movl %ebp, %edi
movl %r12d, %esi
movl %r13d, %edx
movl %r14d, %ecx
movl %r15d, %r8d
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2e4dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GetTextWidth
static int GetTextWidth(const char *text)
{
    Vector2 size = { 0 };

    if ((text != NULL) && (text[0] != '\0')) size = MeasureTextEx(guiFont, text, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), (float)GuiGetStyle(DEFAULT, TEXT_SPACING));

    // TODO: Consider text icon width here???

    return (int)size.x;
}

// Assembly:
xorps %xmm0, %xmm0
testq %rdi, %rdi
je 0x8273
pushq %rbp
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
cmpb $0x0, (%rdi)
je 0x826d
cmpb $0x1, 0x9c045(%rip)     # 0xa4255
jne 0x821a
movl 0x9c0b8(%rip), %ebp     # 0xa42d0
jmp 0x8233
callq 0x6a3c
movl 0x9c0ab(%rip), %ebp     # 0xa42d0
cmpb $0x0, 0x9c029(%rip)     # 0xa4255
jne 0x8233
callq 0x6a3c
xorps %xmm0, %xmm0
cvtsi2ss %ebp, %xmm0
cvtsi2ssl 0x9c092(%rip), %xmm1 # 0xa42d4
movaps 0x9c037(%rip), %xmm2    # 0xa4280
movups %xmm2, 0x20(%rsp)
movaps 0x9c01b(%rip), %xmm2    # 0xa4270
movups %xmm2, 0x10(%rsp)
movaps 0x9bfff(%rip), %xmm2    # 0xa4260
movups %xmm2, (%rsp)
movq %rbx, %rdi
callq 0x4eae9
addq $0x38, %rsp
popq %rbx
popq %rbp
cvttss2si %xmm0, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiLabel
void GuiLabel(Rectangle bounds, const char *text)
{
    GuiControlState state = guiState;

    // Update control
    //--------------------------------------------------------------------
    // ...
    //--------------------------------------------------------------------

    // Draw control
    //--------------------------------------------------------------------
    GuiDrawText(text, GetTextBounds(LABEL, bounds), GuiGetStyle(LABEL, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(LABEL, (state == GUI_STATE_DISABLED)? TEXT_COLOR_DISABLED : TEXT_COLOR_NORMAL)), guiAlpha));
    //--------------------------------------------------------------------
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movl 0x9bfc6(%rip), %r14d    # 0xa4250
movl $0x1, %edi
callq 0xa726
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, (%rsp)
cmpb $0x1, 0x9bfb1(%rip)     # 0xa4255
jne 0x82bf
movl 0x9c07c(%rip), %ebp     # 0xa4328
xorl %eax, %eax
cmpl $0x3, %r14d
sete %al
leal (%rax,%rax,8), %r14d
addl $0x2, %r14d
jmp 0x82e9
callq 0x6a3c
movl 0x9c05e(%rip), %ebp     # 0xa4328
xorl %eax, %eax
cmpl $0x3, %r14d
sete %al
leal (%rax,%rax,8), %r14d
addl $0x2, %r14d
cmpb $0x0, 0x9bf73(%rip)     # 0xa4255
jne 0x82e9
callq 0x6a3c
movl %r14d, %eax
leaq 0x9bf9d(%rip), %rcx     # 0xa4290
movl 0x60(%rcx,%rax,4), %edi
callq 0x4144d
movss 0x9b12c(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movq %rbx, %rdi
movaps 0x10(%rsp), %xmm0
movaps (%rsp), %xmm1
movl %ebp, %esi
movl %eax, %edx
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xa506
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiToggleGroup
int GuiToggleGroup(Rectangle bounds, const char *text, int active)
{
    #if !defined(TOGGLEGROUP_MAX_ELEMENTS)
        #define TOGGLEGROUP_MAX_ELEMENTS    32
    #endif

    float initBoundsX = bounds.x;

    // Get substrings items from text (items pointers)
    int rows[TOGGLEGROUP_MAX_ELEMENTS] = { 0 };
    int itemsCount = 0;
    const char **items = GuiTextSplit(text, &itemsCount, rows);

    int prevRow = rows[0];

    for (int i = 0; i < itemsCount; i++)
    {
        if (prevRow != rows[i])
        {
            bounds.x = initBoundsX;
            bounds.y += (bounds.height + GuiGetStyle(TOGGLE, GROUP_PADDING));
            prevRow = rows[i];
        }

        if (i == active) GuiToggle(bounds, items[i], true);
        else if (GuiToggle(bounds, items[i], false) == true) active = i;

        bounds.x += (bounds.width + GuiGetStyle(TOGGLE, GROUP_PADDING));
    }

    return active;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movl %esi, %ebx
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rdx
movaps %xmm0, 0x70(%rdx)
movaps %xmm0, 0x60(%rdx)
movaps %xmm0, 0x50(%rdx)
movaps %xmm0, 0x40(%rdx)
movaps %xmm0, 0x30(%rdx)
movaps %xmm0, 0x20(%rdx)
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
leaq 0x3c(%rsp), %r14
movl $0x0, (%r14)
movq %r14, %rsi
callq 0xb11b
movslq (%r14), %r14
testq %r14, %r14
jle 0xb109
movl 0x50(%rsp), %ebp
movaps 0x10(%rsp), %xmm1
movaps %xmm1, %xmm0
shufps $0x55, %xmm1, %xmm0     # xmm0 = xmm0[1,1],xmm1[1,1]
movaps %xmm0, 0x40(%rsp)
leaq 0x99859(%rip), %r15     # 0xa48a0
xorl %r12d, %r12d
movaps (%rsp), %xmm2
movaps %xmm2, %xmm0
movl 0x50(%rsp,%r12,4), %eax
cmpl %eax, %ebp
je 0xb0a2
cmpb $0x0, 0x991f4(%rip)     # 0xa4255
jne 0xb080
movaps %xmm0, 0x20(%rsp)
callq 0x6a3c
movaps 0x20(%rsp), %xmm0
movaps (%rsp), %xmm2
movaps 0x10(%rsp), %xmm1
movl 0x50(%rsp,%r12,4), %eax
xorps %xmm3, %xmm3
cvtsi2ssl 0x99365(%rip), %xmm3 # 0xa43f0
addss 0x40(%rsp), %xmm3
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
addss %xmm3, %xmm0
movlhps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0]
shufps $0xe2, %xmm2, %xmm0     # xmm0 = xmm0[2,0],xmm2[2,3]
movl %eax, %ebp
movl %ebx, %eax
movq (%r15), %rdi
cmpq %rax, %r12
movaps %xmm0, 0x20(%rsp)
jne 0xb0bd
movl $0x1, %esi
callq 0xacf1
jmp 0xb0ca
xorl %esi, %esi
callq 0xacf1
testb %al, %al
cmovnel %r12d, %ebx
cmpb $0x0, 0x99184(%rip)     # 0xa4255
jne 0xb0d8
callq 0x6a3c
xorps %xmm2, %xmm2
cvtsi2ssl 0x9930d(%rip), %xmm2 # 0xa43f0
movaps 0x10(%rsp), %xmm1
addss %xmm1, %xmm2
movaps 0x20(%rsp), %xmm0
addss %xmm2, %xmm0
incq %r12
addq $0x8, %r15
cmpq %r12, %r14
movaps (%rsp), %xmm2
jne 0xb051
movl %ebx, %eax
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiTextSplit
static const char **GuiTextSplit(const char *text, int *count, int *textRow)
{
    // NOTE: Current implementation returns a copy of the provided string with '\0' (string end delimiter)
    // inserted between strings defined by "delimiter" parameter. No memory is dynamically allocated,
    // all used memory is static... it has some limitations:
    //      1. Maximum number of possible split strings is set by TEXTSPLIT_MAX_TEXT_ELEMENTS
    //      2. Maximum size of text to split is TEXTSPLIT_MAX_TEXT_LENGTH
    // NOTE: Those definitions could be externally provided if required

    #if !defined(TEXTSPLIT_MAX_TEXT_LENGTH)
        #define TEXTSPLIT_MAX_TEXT_LENGTH      1024
    #endif

    #if !defined(TEXTSPLIT_MAX_TEXT_ELEMENTS)
        #define TEXTSPLIT_MAX_TEXT_ELEMENTS     128
    #endif

    static const char *result[TEXTSPLIT_MAX_TEXT_ELEMENTS] = { NULL };
    static char buffer[TEXTSPLIT_MAX_TEXT_LENGTH] = { 0 };
    memset(buffer, 0, TEXTSPLIT_MAX_TEXT_LENGTH);

    result[0] = buffer;
    int counter = 1;

    if (textRow != NULL) textRow[0] = 0;

    // Count how many substrings we have on text and point to every one
    for (int i = 0; i < TEXTSPLIT_MAX_TEXT_LENGTH; i++)
    {
        buffer[i] = text[i];
        if (buffer[i] == '\0') break;
        else if ((buffer[i] == ';') || (buffer[i] == '\n'))
        {
            result[counter] = buffer + i + 1;

            if (textRow != NULL)
            {
                if (buffer[i] == '\n') textRow[counter] = textRow[counter - 1] + 1;
                else textRow[counter] = textRow[counter - 1];
            }

            buffer[i] = '\0';   // Set an end of string at this point

            counter++;
            if (counter == TEXTSPLIT_MAX_TEXT_ELEMENTS) break;
        }
    }

    *count = counter;

    return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x99b6d(%rip), %r12     # 0xa4ca0
movl $0x400, %edx            # imm = 0x400
movq %r12, %rdi
xorl %esi, %esi
callq 0x6060
movq %r12, 0x99757(%rip)     # 0xa48a0
testq %r14, %r14
je 0xb155
movl $0x0, (%r14)
movl $0x1, %eax
xorl %ecx, %ecx
leaq 0x9973d(%rip), %rdx     # 0xa48a0
movzbl (%r15,%rcx), %esi
movb %sil, (%rcx,%r12)
cmpl $0xa, %esi
je 0xb17c
cmpl $0x3b, %esi
je 0xb17c
testl %esi, %esi
jne 0xb1b1
jmp 0xb1c4
leaq (%rcx,%r12), %r8
incq %r8
movslq %eax, %rdi
movq %r8, (%rdx,%rdi,8)
testq %r14, %r14
je 0xb1a3
xorl %r8d, %r8d
cmpb $0xa, %sil
sete %r8b
addl -0x4(%r14,%rdi,4), %r8d
movl %r8d, (%r14,%rdi,4)
movb $0x0, (%rcx,%r12)
incl %eax
cmpl $0x80, %eax
je 0xb1bf
incq %rcx
cmpq $0x400, %rcx            # imm = 0x400
jne 0xb163
jmp 0xb1c4
movl $0x80, %eax
movl %eax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiDummyRec
void GuiDummyRec(Rectangle bounds, const char *text)
{
    GuiControlState state = guiState;

    // Update control
    //--------------------------------------------------------------------
    if ((state != GUI_STATE_DISABLED) && !guiLocked)
    {
        Vector2 mousePoint = GetMousePosition();

        // Check button state
        if (CheckCollisionPointRec(mousePoint, bounds))
        {
            if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = GUI_STATE_PRESSED;
            else state = GUI_STATE_FOCUSED;
        }
    }
    //--------------------------------------------------------------------

    // Draw control
    //--------------------------------------------------------------------
    GuiDrawRectangle(bounds, 0, BLANK, Fade(GetColor(GuiGetStyle(DEFAULT, (state != GUI_STATE_DISABLED)? BASE_COLOR_NORMAL : BASE_COLOR_DISABLED)), guiAlpha));
    GuiDrawText(text, GetTextBounds(DEFAULT, bounds), GUI_TEXT_ALIGN_CENTER, Fade(GetColor(GuiGetStyle(BUTTON, (state != GUI_STATE_DISABLED)? TEXT_COLOR_NORMAL : TEXT_COLOR_DISABLED)), guiAlpha));
    //------------------------------------------------------------------
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl 0x95063(%rip), %ebp     # 0xa4250
movl $0xa, %r15d
cmpl $0x3, %ebp
je 0xf225
movl $0x1, %r15d
cmpb $0x0, 0x9504f(%rip)     # 0xa4254
jne 0xf225
callq 0x26136
movaps (%rsp), %xmm1
movaps 0x10(%rsp), %xmm2
callq 0x320c1
testb %al, %al
je 0xf225
xorl %edi, %edi
callq 0x2615e
cmpb $0x0, 0x95029(%rip)     # 0xa4255
jne 0xf233
callq 0x6a3c
leaq 0x95056(%rip), %r14     # 0xa4290
movl (%r14,%r15,4), %edi
callq 0x4144d
movss 0x941e5(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0xf282
movaps (%rsp), %xmm0
cvttss2si %xmm0, %edi
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
cvttss2si %xmm0, %esi
movaps 0x10(%rsp), %xmm0
cvttss2si %xmm0, %edx
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
cvttss2si %xmm0, %ecx
movl %eax, %r8d
callq 0x2e4dc
xorl %edi, %edi
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0xa726
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, (%rsp)
cmpb $0x0, 0x94fb3(%rip)     # 0xa4255
jne 0xf2a9
callq 0x6a3c
xorl %eax, %eax
cmpl $0x3, %ebp
sete %al
shll $0x2, %eax
leal (%rax,%rax,8), %eax
movl 0xc8(%rax,%r14), %edi
callq 0x4144d
movss 0x94164(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movq %rbx, %rdi
movaps 0x10(%rsp), %xmm0
movaps (%rsp), %xmm1
movl $0x1, %esi
movl %eax, %edx
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xa506
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiListView
int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int active)
{
    int itemsCount = 0;
    const char **items = NULL;

    if (text != NULL) items = GuiTextSplit(text, &itemsCount, NULL);

    return GuiListViewEx(bounds, items, itemsCount, NULL, scrollIndex, active);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %edx, %ebx
movq %rsi, %r14
movl $0x0, 0xc(%rsp)
testq %rdi, %rdi
je 0xf33f
leaq 0xc(%rsp), %r15
movq %r15, %rsi
xorl %edx, %edx
movaps %xmm1, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
callq 0xb11b
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
leaq 0x95566(%rip), %rdi     # 0xa48a0
movl (%r15), %esi
jmp 0xf343
xorl %esi, %esi
xorl %edi, %edi
xorl %edx, %edx
movq %r14, %rcx
movl %ebx, %r8d
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xf359
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/map.c
// Function: LoadSdfFont
Font LoadSdfFont(const char* fileName) {
	uint32_t fontFileSize = 0;
	uint8_t* fontFileData = LoadFileData(fileName, &fontFileSize);
		Font font = { .baseSize = 32, .charsCount = 95 };
		font.chars = LoadFontData(fontFileData, fontFileSize, font.baseSize, NULL, 0, FONT_SDF);
		Image atlas = GenImageFontAtlas(font.chars, &font.recs, font.charsCount, font.baseSize, 0, 1);
			font.texture = LoadTextureFromImage(atlas);
			SetTextureFilter(font.texture, FILTER_BILINEAR);
		UnloadImage(atlas);
	UnloadFileData(fontFileData);
	return font;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x1c(%rsp), %r15
movl $0x0, (%r15)
movq %rsi, %rdi
movq %r15, %rsi
callq 0x52441
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movups %xmm0, 0x18(%rbx)
movabsq $0x5f00000020, %rax     # imm = 0x5F00000020
movq %rax, (%rbx)
movl (%r15), %esi
movq %r14, %rdi
movl $0x20, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0x4aadb
movq %rax, 0x28(%rbx)
leaq 0x20(%rbx), %rdx
movl $0x1, (%rsp)
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
movl $0x5f, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
callq 0x4d9b4
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x3f17c
movl 0x10(%r12), %eax
movl %eax, 0x1c(%rbx)
movups (%r12), %xmm0
movups %xmm0, 0xc(%rbx)
movl 0x1c(%rbx), %eax
movl %eax, 0x10(%r12)
movups 0xc(%rbx), %xmm0
movaps %xmm0, (%r12)
movl 0x10(%r12), %eax
movl %eax, 0x10(%rsp)
movaps (%r12), %xmm0
movups %xmm0, (%rsp)
movl $0x1, %edi
callq 0x3fa50
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
callq 0x39568
movq %r14, %rdi
callq 0x52551
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/map.c
// Function: HilberCurvePosToDist
uint64_t HilberCurvePosToDist(uint64_t curveOrder, int x, int y) {
	uint64_t d = 0, tmp;
	for (uint64_t s = (1 << curveOrder) / 2; s > 0; s /= 2) {
		uint64_t rx = 0, ry = 0;
		
		if ((x & s) > 0) rx = 1;
		if ((y & s) > 0) ry = 1;
		
		d += s * s * ((3 * rx) ^ ry);
		
		// inlining
		// hilbertRot(s, p, rx, ry)
		if (ry == 0) {
			if (rx == 1) {
				x = s - 1 - x;
				y = s - 1 - y;
			}
			tmp = x;
			x = y;
			y = tmp;
		}
		// end inline
	}
	return d;
}

// Assembly:
testl %edi, %edi
je 0x14f25
pushq %rbx
movl $0x1, %eax
movl %edi, %ecx
shll %cl, %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movslq %ecx, %rcx
xorl %eax, %eax
movslq %esi, %r11
xorl %r8d, %r8d
testq %r11, %rcx
setne %r9b
movslq %edx, %rbx
xorl %edi, %edi
testq %rbx, %rcx
setne %r10b
testq %rbx, %rcx
jne 0x14ef9
leal -0x1(%rcx), %esi
movl %esi, %ebx
subl %r11d, %ebx
subl %edx, %esi
testq %r11, %rcx
cmovel %edx, %esi
cmovel %r11d, %ebx
movl %ebx, %edx
movb %r9b, %r8b
leaq (%r8,%r8,2), %r8
movb %r10b, %dil
xorq %r8, %rdi
movq %rcx, %r8
imulq %rcx, %r8
imulq %rdi, %r8
addq %r8, %rax
movq %rcx, %rdi
shrq %rdi
cmpq $0x2, %rcx
movq %rdi, %rcx
jae 0x14ec5
popq %rbx
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/map.c
// Function: HumanReadableByteSize
double HumanReadableByteSize(size_t bytes, const char** unit) {
	static const char* units[] = { "Byte", "KiByte", "MiByte", "GiByte", "TiByte", "PiByte", "EiByte", "ZiByte", "YiByte" };
	size_t unitIndex = floor(log2(bytes) / 10);
	if (unitIndex >= sizeof(units) / sizeof(units[0]))
		unitIndex = sizeof(units) / sizeof(units[0]) - 1;
	
	*unit = units[unitIndex];
	return bytes / pow(1024, unitIndex);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %xmm1
punpckldq 0x50115(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x5011d(%rip), %xmm1    # 0x65280
movq %rsi, %rbx
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movapd %xmm0, (%rsp)
callq 0x6660
divsd 0x501fc(%rip), %xmm0    # 0x65380
callq 0x6710
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x501eb(%rip), %xmm0    # 0x65388
cvttsd2si %xmm0, %rdx
andq %rcx, %rdx
orq %rax, %rdx
cmpq $0x8, %rdx
movl $0x8, %eax
cmovbq %rdx, %rax
movl %eax, %ecx
leaq 0x8d2e2(%rip), %rdx     # 0xa24a0
movq (%rdx,%rcx,8), %rcx
movq %rcx, (%rbx)
addl %eax, %eax
leal (%rax,%rax,4), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x6430
movapd (%rsp), %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/map.c
// Function: UnloadTaskTraces
void UnloadTaskTraces(TaskTraces* traces) {
	for (size_t i = 0; i < traces->taskCount; i++) {
		if ( ptrace(PTRACE_DETACH, traces->tasks[i].pid, NULL, NULL) != 0 )
			perror("ptrace(PTRACE_DETACH)");
		free(traces->tasks[i].name);
		glDeleteBuffers(1, (const GLuint[]){ traces->tasks[i].particleVBO });
		glDeleteVertexArrays(1, (const GLuint[]){ traces->tasks[i].particleVAO });
	}
	
	free(traces->tasks);
	UnloadShader(traces->particleShader);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0x15290
leaq 0x4(%rsp), %r14
leaq 0x90b7a(%rip), %rbp     # 0xa5d88
movq %rsp, %r15
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%rbx), %rax
movl (%rax,%r12), %esi
movl $0x11, %edi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x63d0
testq %rax, %rax
jne 0x15282
movq (%rbx), %rax
movq 0x8(%rax,%r12), %rdi
callq 0x62e0
movq (%rbx), %rax
movl 0x18(%rax,%r12), %eax
movl %eax, 0x4(%rsp)
movl $0x1, %edi
movq %r14, %rsi
leaq 0x90b25(%rip), %rax     # 0xa5d80
callq *(%rax)
movq (%rbx), %rax
movl 0x14(%rax,%r12), %eax
movl %eax, (%rsp)
movl $0x1, %edi
movq %r15, %rsi
callq *(%rbp)
incq %r13
addq $0x20, %r12
cmpq 0x8(%rbx), %r13
jb 0x15217
jmp 0x15290
leaq 0x50414(%rip), %rdi     # 0x6569d
callq 0x6730
jmp 0x15233
movq (%rbx), %rdi
callq 0x62e0
movl 0x18(%rbx), %edi
movq 0x20(%rbx), %rsi
callq 0x22967
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/map.c
// Function: UnloadAddrRanges
void UnloadAddrRanges(AddrRange** ranges, size_t* rangeCount) {
	for (size_t i = 0; i < *rangeCount; i++) {
		AddrRange* range = &(*ranges)[i];
		free(range->perms);
		free(range->filePath);
		free(range->label.text);
		
		UnloadTexture(range->symbolMap);
		for (size_t s = 0; s < range->symbolCount; s++)
			free(range->symbolLabels[s].text);
		free(range->symbolLabels);
	}
	free(*ranges);
	*ranges = NULL;
	*rangeCount = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, (%rsi)
je 0x15369
xorl %r15d, %r15d
movq (%r14), %r13
leaq (%r15,%r15,4), %rbp
shlq $0x5, %rbp
movq %r13, %r12
addq %rbp, %r12
movq 0x18(%r13,%rbp), %rdi
callq 0x62e0
movq 0x20(%r13,%rbp), %rdi
callq 0x62e0
movq 0x58(%r13,%rbp), %rdi
callq 0x62e0
movl 0x88(%r13,%rbp), %eax
movl %eax, 0x10(%rsp)
movups 0x78(%r13,%rbp), %xmm0
movups %xmm0, (%rsp)
callq 0x3f8de
cmpq $0x0, 0x90(%r13,%rbp)
je 0x15350
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x98(%r12), %rax
movq (%rax,%r13), %rdi
callq 0x62e0
incq %rbp
addq $0x20, %r13
cmpq 0x90(%r12), %rbp
jb 0x1532e
movq 0x98(%r12), %rdi
callq 0x62e0
incq %r15
cmpq (%rbx), %r15
jb 0x152d4
movq (%r14), %rdi
callq 0x62e0
xorl %eax, %eax
movq %rax, (%r14)
movq %rax, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/map.c
// Function: LabelFor
Label LabelFor(char* text, Rectangle container, Font font) {
	Vector2 textSize = MeasureTextEx(font, text, 10, 0);
	float textScale = (container.width * 0.66) / textSize.x;
	return (Label){
		.text = text,
		.fontSize = 10 * textScale,
		.boundingBox = (Rectangle){
			.x = container.x + (container.width  - textSize.x * textScale) / 2,
			.y = container.y + (container.height - textSize.y * textScale) / 2,
			.width  = textSize.x * textScale,
			.height = textSize.y * textScale
		}
	};
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movaps %xmm1, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
movaps 0x70(%rsp), %xmm0
movaps 0x80(%rsp), %xmm1
movaps 0x90(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movss 0x4fc46(%rip), %xmm0    # 0x65010
xorps %xmm1, %xmm1
movq %rsi, %rdi
callq 0x4eae9
movaps 0x30(%rsp), %xmm3
xorps %xmm1, %xmm1
cvtss2sd %xmm3, %xmm1
mulsd 0x4ffaf(%rip), %xmm1    # 0x65398
xorps %xmm2, %xmm2
cvtss2sd %xmm0, %xmm2
divsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
movq %r14, (%rbx)
movss 0x4fc0d(%rip), %xmm2    # 0x65010
mulss %xmm1, %xmm2
movss %xmm2, 0x8(%rbx)
shufps $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
movlhps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
mulps %xmm1, %xmm0
subps %xmm0, %xmm3
movaps %xmm3, %xmm0
mulps 0x4fd2d(%rip), %xmm0    # 0x65150
addps 0x40(%rsp), %xmm0
mulps %xmm1, %xmm2
movsd %xmm0, %xmm2            # xmm2 = xmm0[0],xmm2[1]
movupd %xmm2, 0xc(%rbx)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/map.c
// Function: fnv1a
uint32_t fnv1a(void *buffer, size_t size) {
	uint32_t hash = 2166136261;
	for (char* c = buffer; c < (char*)buffer + size; c++) {
		hash ^= *c;
		hash *= 16777619;
	}
	return hash;
}

// Assembly:
testq %rsi, %rsi
jle 0x15460
addq %rdi, %rsi
movl $0x811c9dc5, %eax       # imm = 0x811C9DC5
movsbl (%rdi), %ecx
xorl %eax, %ecx
imull $0x1000193, %ecx, %eax  # imm = 0x1000193
incq %rdi
cmpq %rsi, %rdi
jb 0x1544c
retq
movl $0x811c9dc5, %eax       # imm = 0x811C9DC5
retq
// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/map.c
// Function: HilberCurveDistToPos
void HilberCurveDistToPos(uint64_t curveOrder, uint64_t dist, int* x, int* y) {
	*x = 0; *y = 0;
	uint64_t tmp;
	uint64_t n = 1 << curveOrder;
	for (uint64_t s = 1; s < n; s *= 2) {
		uint64_t rx = 1 & (dist / 2);
		uint64_t ry = 1 & (dist ^ rx);
		// inlining
		// hilbertRot(s, p, rx, ry)
		if (ry == 0) {
			if (rx == 1) {
				*x = s - 1 - *x;
				*y = s - 1 - *y;
			}
			tmp = *x;
			*x = *y;
			*y = tmp;
		}
		// end inline

		*x += s * rx;
		*y += s * ry;
		dist /= 4;
	}
}

// Assembly:
movq %rcx, %rax
movq %rdi, %rcx
xorl %r8d, %r8d
movl %r8d, (%rdx)
movl %r8d, (%rax)
movl $0x1, %edi
shll %cl, %edi
testl %ecx, %ecx
je 0x154e3
movslq %edi, %rcx
movl $0x1, %edi
movq %rsi, %r10
shrq %r10
movl %esi, %r9d
xorl %r10d, %r9d
andl $0x1, %r10d
testb $0x1, %r9b
jne 0x154bf
testq %r10, %r10
je 0x154b6
leal -0x1(%rdi), %r8d
movl %r8d, %r11d
subl (%rdx), %r11d
movl %r11d, (%rdx)
subl (%rax), %r8d
movl %r8d, (%rax)
movl (%rdx), %r11d
movl %r8d, (%rdx)
movl %r11d, (%rax)
andl $0x1, %r9d
imull %edi, %r10d
addl %r10d, (%rdx)
imull %edi, %r9d
addl (%rax), %r9d
movl %r9d, (%rax)
shrq $0x2, %rsi
addq %rdi, %rdi
movl %r9d, %r8d
cmpq %rcx, %rdi
jb 0x15488
retq
// File: /workspace/github_c_makefile_star2_O3/mabdi[P]bunney/bunny-gcc.c
// Function: wait_execvp
static void wait_execvp(_u8* path, _u8** argv) {
  _s32 pid, st;
  
  if (getenv("BUNNY_EXEC")) {    
    _u32 i = 0;
    debug(">> EXEC");
    while (argv[i]) debug(" %s",argv[i++]);
    debug("\n");
  }
  
  pid = fork();
  if (pid < 0) fatal("unable to spawn a process");
  
  if (!pid) {
    argv[0] = path;
    execvp(path,(char**)argv);
    pfatal("unable to invoke gcc (set $BUNNY_GCC)");
  } else {

    if (waitpid(pid,&st,0) != pid) pfatal("waitpid() fails?");
    
    if (WIFSIGNALED(st)) fatal("gcc died on signal %u",WTERMSIG(st));
    else if (WEXITSTATUS(st))
      fatal("gcc error (exit code %u)",WEXITSTATUS(st));
  }
  
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xeb6(%rip), %rdi       # 0x5273
callq 0x11b0
testq %rax, %rax
jne 0x4416
callq 0x1060
testl %eax, %eax
js 0x4420
je 0x4425
movl %eax, %ebp
leaq 0xc(%rsp), %rsi
movl %eax, %edi
xorl %edx, %edx
callq 0x1100
cmpl %ebp, %eax
jne 0x4430
movl 0xc(%rsp), %edi
movl %edi, %eax
andl $0x7f, %eax
movl %eax, %ecx
shll $0x18, %ecx
addl $0x1000000, %ecx        # imm = 0x1000000
cmpl $0x2000000, %ecx        # imm = 0x2000000
jge 0x4435
shrl $0x8, %edi
andl $0xff, %edi
jne 0x443c
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
callq 0x1260
jmp 0x43c7
callq 0x140b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13ad
callq 0x12c7
movl %eax, %edi
callq 0x1365
callq 0x131d
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Download/./../URL/URL.h
// Function: URL::setStateToDB(int)
int setStateToDB( int state )
	{
		char buf[1024] = { 0 };
		Persistence *db = Persistence::getPersistence();
		sprintf(buf,"update url set state=%d where id=%d",state,this->id);
		db->exec(buf);
	
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
movl %esi, %ebx
movq %rdi, %r14
leaq -0x420(%rbp), %r15
movl $0x400, %edx            # imm = 0x400
movq %r15, %rdi
xorl %esi, %esi
callq 0x8160
callq 0x93ea
movq %rax, %r12
movl (%r14), %ecx
leaq 0x6eaee(%rip), %rsi     # 0x770ad
movq %r15, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0x8080
movq %r12, %rdi
movq %r15, %rsi
callq 0x9496
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Download/./../URL/URL.h
// Function: URL::save()
int save()
	{
		char buf[1024] = { 0 };
		Persistence *db = Persistence::getPersistence();
		sprintf(buf,"insert into url(urlstr,type,deep) values('%s',%d,%d)",this->urlStr,this->type,this->deep);
		db->exec(buf);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdi, %r14
leaq -0x420(%rbp), %rbx
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
xorl %esi, %esi
callq 0x8160
callq 0x93ea
movq %rax, %r15
movq 0x8(%r14), %rdx
movl 0x10(%r14), %ecx
movl 0x14(%r14), %r8d
leaq 0x6eb36(%rip), %rsi     # 0x77150
movq %rbx, %rdi
xorl %eax, %eax
callq 0x8080
movq %r15, %rdi
movq %rbx, %rsi
callq 0x9496