LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__get_subrs(stbtt__buf, stbtt__buf)
static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict)
{
   stbtt_uint32 subrsoff = 0, private_loc[2] = { 0, 0 };
   stbtt__buf pdict;
   stbtt__dict_get_ints(&fontdict, 18, 2, private_loc);
   if (!private_loc[1] || !private_loc[0]) return stbtt__new_buf(NULL, 0);
   pdict = stbtt__buf_range(&cff, private_loc[1], private_loc[0]);
   stbtt__dict_get_ints(&pdict, 19, 1, &subrsoff);
   if (!subrsoff) return stbtt__new_buf(NULL, 0);
   stbtt__buf_seek(&cff, private_loc[1]+subrsoff);
   return stbtt__cff_get_index(&cff);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, -0x28(%rbp)
movq %rsi, -0x20(%rbp)
leaq -0x50(%rbp), %rdi
movq %rdx, (%rdi)
movq %rcx, 0x8(%rdi)
andl $0x0, -0x14(%rbp)
leaq -0x30(%rbp), %rbx
andq $0x0, (%rbx)
pushq $0x12
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rcx
callq 0x6cb83
movl (%rbx), %edx
movl 0x4(%rbx), %ebx
testl %ebx, %ebx
setne %al
testl %edx, %edx
setne %sil
andb %al, %sil
xorl %eax, %eax
movl $0x0, %ecx
cmpb $0x1, %sil
jne 0x6cd53
leaq -0x28(%rbp), %rdi
movl %ebx, %esi
callq 0x6cd5f
leaq -0x40(%rbp), %rdi
movq %rax, (%rdi)
movq %rdx, 0x8(%rdi)
pushq $0x13
popq %rsi
pushq $0x1
popq %rdx
leaq -0x14(%rbp), %r14
movq %r14, %rcx
callq 0x6cb83
movl (%r14), %esi
testl %esi, %esi
je 0x6cd4f
addl %ebx, %esi
leaq -0x28(%rbp), %rbx
movq %rbx, %rdi
callq 0x6c9ae
movq %rbx, %rdi
callq 0x6c9fc
movq %rdx, %rcx
jmp 0x6cd53
xorl %eax, %eax
xorl %ecx, %ecx
movq %rcx, %rdx
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__buf_get(stbtt__buf*, int)
static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n)
{
   stbtt_uint32 v = 0;
   int i;
   STBTT_assert(n >= 1 && n <= 4);
   for (i = 0; i < n; i++)
      v = (v << 8) | stbtt__buf_get8(b);
   return v;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r15
xorl %r14d, %r14d
testl %esi, %esi
cmovlel %r14d, %ebx
subl $0x1, %ebx
jb 0x6cdcb
shll $0x8, %r14d
movq %r15, %rdi
callq 0x6c9de
movzbl %al, %eax
orl %eax, %r14d
jmp 0x6cdb2
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__cff_int(stbtt__buf*)
static stbtt_uint32 stbtt__cff_int(stbtt__buf *b)
{
   int b0 = stbtt__buf_get8(b);
   if (b0 >= 32 && b0 <= 246)       return b0 - 139;
   else if (b0 >= 247 && b0 <= 250) return (b0 - 247)*256 + stbtt__buf_get8(b) + 108;
   else if (b0 >= 251 && b0 <= 254) return -(b0 - 251)*256 - stbtt__buf_get8(b) - 108;
   else if (b0 == 28)               return stbtt__buf_get16(b);
   else if (b0 == 29)               return stbtt__buf_get32(b);
   STBTT_assert(0);
   return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x6c9de
movzbl %al, %ebx
leal -0x20(%rbx), %ecx
cmpb $-0x2a, %cl
ja 0x6cdfb
addl $0xffffff75, %ebx       # imm = 0xFFFFFF75
jmp 0x6ce3a
leal 0x9(%rax), %ecx
cmpb $0x3, %cl
ja 0x6ce1b
shll $0x8, %ebx
movq %r14, %rdi
callq 0x6c9de
movzbl %al, %eax
addl %eax, %ebx
addl $0xffff096c, %ebx       # imm = 0xFFFF096C
jmp 0x6ce3a
addb $0x5, %al
cmpb $0x3, %al
ja 0x6ce41
movq %r14, %rdi
callq 0x6c9de
movzbl %al, %eax
shll $0x8, %ebx
orl %eax, %ebx
movl $0xfa94, %eax           # imm = 0xFA94
subl %ebx, %eax
movl %eax, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
cmpl $0x1d, %ebx
je 0x6ce4f
cmpl $0x1c, %ebx
jne 0x6ce5e
pushq $0x2
jmp 0x6ce51
pushq $0x4
popq %rsi
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x6cd9a
leaq 0x322b7(%rip), %rdi     # 0x9f11c
leaq 0x483b6(%rip), %rsi     # 0xb5222
leaq 0x4849e(%rip), %rcx     # 0xb5311
movl $0x4ab, %edx            # imm = 0x4AB
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__GetGlyfOffset(stbtt_fontinfo const*, int)
static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index)
{
   int g1,g2;

   STBTT_assert(!info->cff.size);

   if (glyph_index >= info->numGlyphs) return -1; // glyph index out of range
   if (info->indexToLocFormat >= 2)    return -1; // unknown index->glyph map format

   if (info->indexToLocFormat == 0) {
      g1 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2) * 2;
      g2 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2 + 2) * 2;
   } else {
      g1 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4);
      g2 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4 + 4);
   }

   return g1==g2 ? -1 : g1; // if length is 0, return -1
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpl $0x0, 0x4c(%rdi)
jne 0x6cf09
pushq $-0x1
popq %rax
cmpl %esi, 0x14(%rdi)
jle 0x6cf00
movl 0x38(%rdi), %ecx
cmpl $0x1, %ecx
jg 0x6cf00
movslq 0x18(%rdi), %r15
addq 0x8(%rdi), %r15
movl 0x20(%rdi), %r14d
testl %ecx, %ecx
je 0x6cece
shll $0x2, %esi
movslq %esi, %r12
leaq (%r15,%r12), %rdi
callq 0x6c92c
movl %eax, %ebx
leaq (%r15,%r12), %rdi
addq $0x4, %rdi
callq 0x6c92c
jmp 0x6cef4
movslq %esi, %rax
movzbl (%r15,%rax,2), %ecx
movzbl 0x1(%r15,%rax,2), %edx
shll $0x9, %ecx
leal (%rcx,%rdx,2), %ebx
movzbl 0x2(%r15,%rax,2), %ecx
movzbl 0x3(%r15,%rax,2), %eax
shll $0x9, %ecx
leal (%rcx,%rax,2), %eax
addl %ebx, %r14d
cmpl %eax, %ebx
pushq $-0x1
popq %rax
cmovnel %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x484f4(%rip), %rdi     # 0xb5404
leaq 0x4830b(%rip), %rsi     # 0xb5222
leaq 0x484f6(%rip), %rcx     # 0xb5414
movl $0x624, %edx            # imm = 0x624
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__csctx_rmove_to(stbtt__csctx*, float, float)
static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy)
{
   stbtt__csctx_close_shape(ctx);
   ctx->first_x = ctx->x = ctx->x + dx;
   ctx->first_y = ctx->y = ctx->y + dy;
   stbtt__csctx_v(ctx, STBTT_vmove, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movss %xmm1, -0x10(%rbp)
movss %xmm0, -0xc(%rbp)
movq %rdi, %rbx
callq 0x6dc11
movss -0xc(%rbp), %xmm0
addss 0x10(%rbx), %xmm0
movss %xmm0, 0x10(%rbx)
movss %xmm0, 0x8(%rbx)
movaps %xmm0, %xmm1
movss -0x10(%rbp), %xmm0
addss 0x14(%rbx), %xmm0
movss %xmm0, 0x14(%rbx)
movss %xmm0, 0xc(%rbx)
cvttss2si %xmm1, %edx
cvttss2si %xmm0, %ecx
andl $0x0, 0x8(%rsp)
andl $0x0, (%rsp)
pushq $0x1
popq %rsi
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x6dc58
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__csctx_rccurve_to(stbtt__csctx*, float, float, float, float, float, float)
static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3)
{
   float cx1 = ctx->x + dx1;
   float cy1 = ctx->y + dy1;
   float cx2 = cx1 + dx2;
   float cy2 = cy1 + dy2;
   ctx->x = cx2 + dx3;
   ctx->y = cy2 + dy3;
   stbtt__csctx_v(ctx, STBTT_vcubic, (int)ctx->x, (int)ctx->y, (int)cx1, (int)cy1, (int)cx2, (int)cy2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
addss 0x10(%rdi), %xmm0
addss 0x14(%rdi), %xmm1
addss %xmm0, %xmm2
addss %xmm1, %xmm3
addss %xmm2, %xmm4
movss %xmm4, 0x10(%rdi)
addss %xmm3, %xmm5
movss %xmm5, 0x14(%rdi)
cvttss2si %xmm4, %edx
cvttss2si %xmm5, %ecx
cvttss2si %xmm0, %r8d
cvttss2si %xmm1, %r9d
cvttss2si %xmm2, %eax
cvttss2si %xmm3, %r10d
pushq $0x4
popq %rsi
pushq %r10
pushq %rax
callq 0x6dc58
popq %rax
popq %rcx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__csctx_v(stbtt__csctx*, unsigned char, int, int, int, int, int, int)
static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1)
{
   if (c->bounds) {
      stbtt__track_vertex(c, x, y);
      if (type == STBTT_vcubic) {
         stbtt__track_vertex(c, cx, cy);
         stbtt__track_vertex(c, cx1, cy1);
      }
   } else {
      stbtt_setvertex(&c->pvertices[c->num_vertices], type, x, y, cx, cy);
      c->pvertices[c->num_vertices].cx1 = (stbtt_int16) cx1;
      c->pvertices[c->num_vertices].cy1 = (stbtt_int16) cy1;
   }
   c->num_vertices++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r15d
movl %r8d, %r13d
movl %esi, %r14d
movq %rdi, %rbx
movl 0x18(%rbp), %edi
movl 0x10(%rbp), %r12d
cmpl $0x0, (%rbx)
je 0x6dcae
movq %rbx, %rdi
movl %edx, %esi
movl %ecx, %edx
callq 0x6dcf1
cmpb $0x4, %r14b
jne 0x6dcdf
movq %rbx, %rdi
movl %r13d, %esi
movl %r15d, %edx
callq 0x6dcf1
movq %rbx, %rdi
movl %r12d, %esi
movl 0x18(%rbp), %edx
callq 0x6dcf1
jmp 0x6dcdf
movq 0x28(%rbx), %rax
movslq 0x30(%rbx), %rsi
imulq $0xe, %rsi, %rsi
movb %r14b, 0xc(%rax,%rsi)
movw %dx, (%rax,%rsi)
movw %cx, 0x2(%rax,%rsi)
movw %r13w, 0x4(%rax,%rsi)
movw %r15w, 0x6(%rax,%rsi)
movw %r12w, 0x8(%rax,%rsi)
movw %di, 0xa(%rax,%rsi)
incl 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__track_vertex(stbtt__csctx*, int, int)
static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y)
{
   if (x > c->max_x || !c->started) c->max_x = x;
   if (y > c->max_y || !c->started) c->max_y = y;
   if (x < c->min_x || !c->started) c->min_x = x;
   if (y < c->min_y || !c->started) c->min_y = y;
   c->started = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl %esi, 0x1c(%rdi)
jl 0x6dd00
cmpl $0x0, 0x4(%rdi)
jne 0x6dd03
movl %esi, 0x1c(%rdi)
cmpl %edx, 0x24(%rdi)
jl 0x6dd0e
cmpl $0x0, 0x4(%rdi)
jne 0x6dd11
movl %edx, 0x24(%rdi)
cmpl %esi, 0x18(%rdi)
jg 0x6dd1c
cmpl $0x0, 0x4(%rdi)
jne 0x6dd1f
movl %esi, 0x18(%rdi)
cmpl %edx, 0x20(%rdi)
jg 0x6dd2a
cmpl $0x0, 0x4(%rdi)
jne 0x6dd2d
movl %edx, 0x20(%rdi)
movl $0x1, 0x4(%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_rectpack.h
// Function: rect_height_compare(void const*, void const*)
static int STBRP__CDECL rect_height_compare(const void *a, const void *b)
{
   const stbrp_rect *p = (const stbrp_rect *) a;
   const stbrp_rect *q = (const stbrp_rect *) b;
   if (p->h > q->h)
      return -1;
   if (p->h < q->h)
      return  1;
   return (p->w > q->w) ? -1 : (p->w < q->w);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzwl 0x6(%rsi), %eax
cmpw %ax, 0x6(%rdi)
jbe 0x6dd4b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x6dd69
jae 0x6dd54
movl $0x1, %eax
jmp 0x6dd69
movzwl 0x4(%rdi), %eax
xorl %ecx, %ecx
cmpw 0x4(%rsi), %ax
setb %cl
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovbel %ecx, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_rectpack.h
// Function: stbrp__skyline_find_min_y(stbrp_context*, stbrp_node*, int, int, int*)
static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste)
{
   stbrp_node *node = first;
   int x1 = x0 + width;
   int min_y, visited_width, waste_area;

   STBRP__NOTUSED(c);

   STBRP_ASSERT(first->x <= x0);

   #if 0
   // skip in case we're past the node
   while (node->next->x <= x0)
      ++node;
   #else
   STBRP_ASSERT(node->next->x > x0); // we ended up handling this in the caller for efficiency
   #endif

   STBRP_ASSERT(node->x <= x0);

   min_y = 0;
   waste_area = 0;
   visited_width = 0;
   while (node->x < x1) {
      if (node->y > min_y) {
         // raise min_y higher.
         // we've accounted for all waste up to min_y,
         // but we'll now add more waste for everything we've visted
         waste_area += visited_width * (node->y - min_y);
         min_y = node->y;
         // the first time through, visited_width might be reduced
         if (node->x < x0)
            visited_width += node->next->x - x0;
         else
            visited_width += node->next->x - node->x;
      } else {
         // add waste area
         int under_width = node->next->x - node->x;
         if (under_width + visited_width > width)
            under_width = width - visited_width;
         waste_area += under_width * (min_y - node->y);
         visited_width += under_width;
      }
      node = node->next;
   }

   *pwaste = waste_area;
   return min_y;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movzwl (%rdi), %r11d
cmpl %esi, %r11d
jg 0x6de2d
movq 0x8(%rdi), %rax
movzwl (%rax), %eax
cmpl %esi, %eax
jbe 0x6de4c
leal (%rdx,%rsi), %r8d
xorl %eax, %eax
xorl %r10d, %r10d
xorl %r9d, %r9d
movzwl %r11w, %r12d
cmpl %r12d, %r8d
jle 0x6de21
movzwl 0x2(%rdi), %r14d
movl %eax, %ebx
subl %r14d, %ebx
jge 0x6ddeb
movl %r14d, %ebx
subl %eax, %ebx
imull %r10d, %ebx
movq 0x8(%rdi), %rdi
movzwl (%rdi), %r11d
movzwl %r11w, %r15d
cmpl %esi, %r12d
jge 0x6de13
subl %esi, %r15d
jmp 0x6de16
movq 0x8(%rdi), %rdi
movzwl (%rdi), %r11d
movl %r11d, %r14d
subl %r12d, %r14d
leal (%r14,%r10), %r12d
movl %edx, %r15d
subl %r10d, %r15d
cmpl %edx, %r12d
cmovlel %r14d, %r15d
imull %r15d, %ebx
movl %eax, %r14d
jmp 0x6de16
subl %r12d, %r15d
addl %ebx, %r9d
addl %r15d, %r10d
movl %r14d, %eax
jmp 0x6ddb7
movl %r9d, (%rcx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x47730(%rip), %rdi     # 0xb5564
leaq 0x47633(%rip), %rsi     # 0xb546e
leaq 0x47731(%rip), %rcx     # 0xb5573
movl $0x12f, %edx            # imm = 0x12F
callq 0xc140
leaq 0x4776e(%rip), %rdi     # 0xb55c1
leaq 0x47614(%rip), %rsi     # 0xb546e
leaq 0x47712(%rip), %rcx     # 0xb5573
movl $0x136, %edx            # imm = 0x136
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__close_shape(stbtt_vertex*, int, int, int, int, int, int, int, int, int)
static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off,
    stbtt_int32 sx, stbtt_int32 sy, stbtt_int32 scx, stbtt_int32 scy, stbtt_int32 cx, stbtt_int32 cy)
{
   if (start_off) {
      if (was_off)
         stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+scx)>>1, (cy+scy)>>1, cx,cy);
      stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx,sy,scx,scy);
   } else {
      if (was_off)
         stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve,sx,sy,cx,cy);
      else
         stbtt_setvertex(&vertices[num_vertices++], STBTT_vline,sx,sy,0,0);
   }
   return num_vertices;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %eax
movl 0x28(%rbp), %esi
movl 0x20(%rbp), %r11d
testl %ecx, %ecx
je 0x6e78c
movl 0x18(%rbp), %ecx
movl 0x10(%rbp), %ebx
testl %edx, %edx
je 0x6e76e
movslq %eax, %rdx
incl %eax
imulq $0xe, %rdx, %rdx
leal (%r11,%rbx), %r10d
shrl %r10d
leal (%rsi,%rcx), %r14d
shrl %r14d
movb $0x3, 0xc(%rdi,%rdx)
movw %r10w, (%rdi,%rdx)
movw %r14w, 0x2(%rdi,%rdx)
movw %r11w, 0x4(%rdi,%rdx)
movw %si, 0x6(%rdi,%rdx)
movslq %eax, %r10
imulq $0xe, %r10, %rdx
movb $0x3, 0xc(%rdi,%rdx)
movw %r8w, (%rdi,%rdx)
movw %r9w, 0x2(%rdi,%rdx)
movw %bx, 0x4(%rdi,%rdx)
jmp 0x6e7c4
movslq %eax, %r10
imulq $0xe, %r10, %rcx
addq %rdi, %rcx
testl %edx, %edx
je 0x6e7b0
movb $0x3, 0xc(%rcx)
movw %r8w, (%rcx)
movw %r9w, 0x2(%rcx)
movw %r11w, 0x4(%rcx)
movl %esi, %ecx
jmp 0x6e7c4
movb $0x2, 0xc(%rcx)
movw %r8w, (%rcx)
movw %r9w, 0x2(%rcx)
andw $0x0, 0x4(%rcx)
xorl %ecx, %ecx
imulq $0xe, %r10, %rdx
movw %cx, 0x6(%rdi,%rdx)
incl %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt__tesselate_curve(stbtt__point*, int*, float, float, float, float, float, float, float, int)
static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n)
{
   // midpoint
   float mx = (x0 + 2*x1 + x2)/4;
   float my = (y0 + 2*y1 + y2)/4;
   // versus directly drawn line
   float dx = (x0+x2)/2 - mx;
   float dy = (y0+y2)/2 - my;
   if (n > 16) // 65536 segments on one curve better be enough!
      return 1;
   if (dx*dx+dy*dy > objspace_flatness_squared) { // half-pixel error allowed... need to be smaller if AA
      stbtt__tesselate_curve(points, num_points, x0,y0, (x0+x1)/2.0f,(y0+y1)/2.0f, mx,my, objspace_flatness_squared,n+1);
      stbtt__tesselate_curve(points, num_points, mx,my, (x1+x2)/2.0f,(y1+y2)/2.0f, x2,y2, objspace_flatness_squared,n+1);
   } else {
      stbtt__add_point(points, *num_points,x2,y2);
      *num_points = *num_points+1;
   }
   return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %r14d
movss %xmm6, -0x24(%rbp)
movaps %xmm3, %xmm7
movaps %xmm2, %xmm8
movq %rsi, %rbx
movq %rdi, %r15
movss 0x2d819(%rip), %xmm9    # 0x9c018
movss %xmm5, -0x20(%rbp)
movss %xmm4, -0x1c(%rbp)
cmpl $0x10, %r14d
jg 0x6e929
movaps %xmm8, %xmm10
addss %xmm8, %xmm10
addss %xmm0, %xmm10
addss %xmm4, %xmm10
movss 0x2d7d2(%rip), %xmm2    # 0x9c000
mulss %xmm2, %xmm10
movaps %xmm7, %xmm11
addss %xmm7, %xmm11
addss %xmm1, %xmm11
addss %xmm5, %xmm11
mulss %xmm2, %xmm11
movaps %xmm1, %xmm2
addss %xmm5, %xmm2
mulss %xmm9, %xmm2
subss %xmm11, %xmm2
movaps %xmm0, %xmm3
addss %xmm4, %xmm3
mulss %xmm9, %xmm3
subss %xmm10, %xmm3
mulss %xmm2, %xmm2
mulss %xmm3, %xmm3
addss %xmm2, %xmm3
movss -0x24(%rbp), %xmm6
ucomiss %xmm6, %xmm3
jbe 0x6e910
movaps %xmm0, %xmm2
addss %xmm8, %xmm2
mulss %xmm9, %xmm2
movaps %xmm1, %xmm3
addss %xmm7, %xmm3
mulss %xmm9, %xmm3
incl %r14d
movq %r15, %rdi
movq %rbx, %rsi
movaps %xmm10, %xmm4
movaps %xmm11, %xmm5
movl %r14d, %edx
movss %xmm7, -0x34(%rbp)
movss %xmm8, -0x30(%rbp)
movss %xmm10, -0x28(%rbp)
movss %xmm11, -0x2c(%rbp)
callq 0x6e7d4
movss 0x2d73f(%rip), %xmm9    # 0x9c018
movss -0x30(%rbp), %xmm8
movss -0x34(%rbp), %xmm7
movss -0x1c(%rbp), %xmm4
movss -0x20(%rbp), %xmm5
addss %xmm4, %xmm8
mulss %xmm9, %xmm8
addss %xmm5, %xmm7
mulss %xmm9, %xmm7
movss -0x28(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
jmp 0x6e809
movslq (%rbx), %rax
testq %r15, %r15
je 0x6e925
movss %xmm4, (%r15,%rax,8)
movss %xmm5, 0x4(%r15,%rax,8)
incl %eax
movl %eax, (%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_draw.cpp
// Function: stb__match(unsigned char const*, unsigned int)
static void stb__match(const unsigned char *data, unsigned int length)
{
    // INVERSE of memmove... write each byte before copying the next...
    IM_ASSERT(stb__dout + length <= stb__barrier_out_e);
    if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; }
    if (data < stb__barrier_out_b) { stb__dout = stb__barrier_out_e+1; return; }
    while (length--) *stb__dout++ = *data++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x7b8a2(%rip), %rax     # 0xea7d8
movl %esi, %ecx
leaq (%rax,%rcx), %rsi
movq 0x7b885(%rip), %rdx     # 0xea7c8
cmpq %rdx, %rsi
ja 0x6ef7d
cmpq %rdi, 0x7b881(%rip)     # 0xea7d0
jbe 0x6ef5d
incq %rdx
movq %rdx, 0x7b87d(%rip)     # 0xea7d8
popq %rbp
retq
incq %rax
xorl %edx, %edx
cmpl %edx, %ecx
je 0x6ef5b
movb (%rdi,%rdx), %sil
movq %rax, 0x7b867(%rip)     # 0xea7d8
movb %sil, -0x1(%rax)
incq %rax
incq %rdx
jmp 0x6ef62
leaq 0x46c5f(%rip), %rdi     # 0xb5be3
leaq 0x4554b(%rip), %rsi     # 0xb44d6
leaq 0x46c7a(%rip), %rcx     # 0xb5c0c
movl $0xe6f, %edx            # imm = 0xE6F
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_draw.cpp
// Function: stb__lit(unsigned char const*, unsigned int)
static void stb__lit(const unsigned char *data, unsigned int length)
{
    IM_ASSERT(stb__dout + length <= stb__barrier_out_e);
    if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; }
    if (data < stb__barrier_in_b) { stb__dout = stb__barrier_out_e+1; return; }
    memcpy(stb__dout, data, length);
    stb__dout += length;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rax
movq 0x7b82c(%rip), %rdi     # 0xea7d8
movl %esi, %edx
leaq (%rdi,%rdx), %rbx
movq 0x7b80f(%rip), %rcx     # 0xea7c8
cmpq %rcx, %rbx
ja 0x6efe5
cmpq %rax, 0x7b7fb(%rip)     # 0xea7c0
jbe 0x6efcf
incq %rcx
movq %rcx, %rbx
jmp 0x6efd7
movq %rax, %rsi
callq 0xc080
movq %rbx, 0x7b7fa(%rip)     # 0xea7d8
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x46bf7(%rip), %rdi     # 0xb5be3
leaq 0x454e3(%rip), %rsi     # 0xb44d6
leaq 0x46c47(%rip), %rcx     # 0xb5c41
movl $0xe77, %edx            # imm = 0xE77
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableBeginInitMemory(ImGuiTable*, int)
void ImGui::TableBeginInitMemory(ImGuiTable* table, int columns_count)
{
    // Allocate single buffer for our arrays
    ImSpanAllocator<3> span_allocator;
    span_allocator.ReserveBytes(0, columns_count * sizeof(ImGuiTableColumn));
    span_allocator.ReserveBytes(1, columns_count * sizeof(ImGuiTableColumnIdx));
    span_allocator.ReserveBytes(2, columns_count * sizeof(ImGuiTableCellData));
    table->RawData = IM_ALLOC(span_allocator.GetArenaSizeInBytes());
    memset(table->RawData, 0, span_allocator.GetArenaSizeInBytes());
    span_allocator.SetArenaBasePtr(table->RawData);
    span_allocator.GetSpan(0, &table->Columns);
    span_allocator.GetSpan(1, &table->DisplayOrderToIndex);
    span_allocator.GetSpan(2, &table->RowCellData);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %r14
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movslq %esi, %r13
imulq $0x68, %r13, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x787f2
pushq $0x1
popq %r15
movq %r14, %rdi
movl %r15d, %esi
movq %r13, %rdx
callq 0x787f2
shlq $0x3, %r13
pushq $0x2
popq %r12
movq %r14, %rdi
movl %r12d, %esi
movq %r13, %rdx
callq 0x787f2
movslq 0x8(%r14), %rdi
callq 0x3440d
movq %rax, 0x8(%rbx)
movslq 0x8(%r14), %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0xc270
movq 0x8(%rbx), %rax
movq %rax, (%r14)
leaq 0x10(%rbx), %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x78836
leaq 0x20(%rbx), %rdx
movq %r14, %rdi
movl %r15d, %esi
callq 0x7886e
addq $0x30, %rbx
movq %r14, %rdi
movl %r12d, %esi
movq %rbx, %rdx
callq 0x788a6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableResetSettings(ImGuiTable*)
void ImGui::TableResetSettings(ImGuiTable* table)
{
    table->IsInitializing = table->IsSettingsDirty = true;
    table->IsResetAllRequest = false;
    table->IsSettingsRequestLoad = false;                   // Don't reload from ini
    table->SettingsLoadedFlags = ImGuiTableFlags_None;      // Mark as nothing loaded so our initialized data becomes authoritative
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb $0x1, 0x24a(%rdi)
movb $0x0, 0x251(%rdi)
movw $0x100, 0x24e(%rdi)     # imm = 0x100
andl $0x0, 0x60(%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableGetColumnWidthAuto(ImGuiTable*, ImGuiTableColumn*)
float ImGui::TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column)
{
    const float content_width_body = ImMax(column->ContentMaxXFrozen, column->ContentMaxXUnfrozen) - column->WorkMinX;
    const float content_width_headers = column->ContentMaxXHeadersIdeal - column->WorkMinX;
    float width_auto = content_width_body;
    if (!(column->Flags & ImGuiTableColumnFlags_NoHeaderWidth))
        width_auto = ImMax(width_auto, content_width_headers);

    // Non-resizable fixed columns preserve their requested width
    if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f)
        if (!(table->Flags & ImGuiTableFlags_Resizable) || (column->Flags & ImGuiTableColumnFlags_NoResize))
            width_auto = column->InitStretchWeightOrWidth;

    return ImMax(width_auto, table->MinColumnWidth);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movss 0x40(%rsi), %xmm0
movss 0x44(%rsi), %xmm2
movaps %xmm2, %xmm1
cmpless %xmm0, %xmm1
andps %xmm1, %xmm0
andnps %xmm2, %xmm1
orps %xmm0, %xmm1
movss 0x34(%rsi), %xmm0
subss %xmm0, %xmm1
movl (%rsi), %eax
btl $0xb, %eax
jb 0x72301
movss 0x4c(%rsi), %xmm2
subss %xmm0, %xmm2
movaps %xmm2, %xmm0
cmpless %xmm1, %xmm0
movaps %xmm0, %xmm3
andnps %xmm2, %xmm3
andps %xmm1, %xmm0
orps %xmm3, %xmm0
movaps %xmm0, %xmm1
testb $0x8, %al
je 0x72321
movss 0x1c(%rsi), %xmm0
xorps %xmm2, %xmm2
ucomiss %xmm2, %xmm0
jbe 0x72321
testb $0x10, %al
jne 0x7231e
movl 0x4(%rdi), %eax
andl $0x1, %eax
jne 0x72321
movaps %xmm0, %xmm1
movss 0xb4(%rdi), %xmm2
movaps %xmm2, %xmm0
cmpless %xmm1, %xmm0
andps %xmm0, %xmm1
andnps %xmm2, %xmm0
orps %xmm1, %xmm0
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableGetMaxColumnWidth(ImGuiTable const*, int)
float ImGui::TableGetMaxColumnWidth(const ImGuiTable* table, int column_n)
{
    const ImGuiTableColumn* column = &table->Columns[column_n];
    float max_width = FLT_MAX;
    const float min_column_distance = table->MinColumnWidth + table->CellPaddingX * 2.0f + table->CellSpacingX1 + table->CellSpacingX2;
    if (table->Flags & ImGuiTableFlags_ScrollX)
    {
        // Frozen columns can't reach beyond visible width else scrolling will naturally break.
        if (column->DisplayOrder < table->FreezeColumnsRequest)
        {
            max_width = (table->InnerClipRect.Max.x - (table->FreezeColumnsRequest - column->DisplayOrder) * min_column_distance) - column->MinX;
            max_width = max_width - table->OuterPaddingX - table->CellPaddingX - table->CellSpacingX2;
        }
    }
    else if ((table->Flags & ImGuiTableFlags_NoKeepColumnsVisible) == 0)
    {
        // If horizontal scrolling if disabled, we apply a final lossless shrinking of columns in order to make
        // sure they are all visible. Because of this we also know that all of the columns will always fit in
        // table->WorkRect and therefore in table->InnerRect (because ScrollX is off)
        // FIXME-TABLE: This is solved incorrectly but also quite a difficult problem to fix as we also want ClipRect width to match.
        // See "table_width_distrib" and "table_width_keep_visible" tests
        max_width = table->WorkRect.Max.x - (table->ColumnsEnabledCount - column->IndexWithinEnabledSet - 1) * min_column_distance - column->MinX;
        //max_width -= table->CellSpacingX1;
        max_width -= table->CellSpacingX2;
        max_width -= table->CellPaddingX * 2.0f;
        max_width -= table->OuterPaddingX;
    }
    return max_width;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x10, %rdi
callq 0x78948
movss 0xbc(%rbx), %xmm3
movaps %xmm3, %xmm4
addss %xmm3, %xmm4
movss 0xb4(%rbx), %xmm2
addss %xmm4, %xmm2
addss 0xc4(%rbx), %xmm2
movss 0xc8(%rbx), %xmm1
addss %xmm1, %xmm2
movl 0x4(%rbx), %ecx
btl $0x18, %ecx
jb 0x723c6
btl $0x12, %ecx
jb 0x72402
movss 0x114(%rbx), %xmm0
movsbl 0x231(%rbx), %ecx
movsbl 0x53(%rax), %edx
notl %edx
addl %ecx, %edx
cvtsi2ss %edx, %xmm3
mulss %xmm2, %xmm3
subss %xmm3, %xmm0
subss 0x8(%rax), %xmm0
subss %xmm1, %xmm0
subss %xmm4, %xmm0
subss 0xb8(%rbx), %xmm0
jmp 0x7240a
movsbl 0x52(%rax), %ecx
movsbl 0x242(%rbx), %edx
cmpb %dl, %cl
jge 0x72402
movss 0x124(%rbx), %xmm0
subl %ecx, %edx
cvtsi2ss %edx, %xmm4
mulss %xmm2, %xmm4
subss %xmm4, %xmm0
subss 0x8(%rax), %xmm0
subss 0xb8(%rbx), %xmm0
subss %xmm3, %xmm0
subss %xmm1, %xmm0
jmp 0x7240a
movss 0x2a466(%rip), %xmm0    # 0x9c870
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableSortSpecsBuild(ImGuiTable*)
void ImGui::TableSortSpecsBuild(ImGuiTable* table)
{
    IM_ASSERT(table->IsSortSpecsDirty);
    TableSortSpecsSanitize(table);

    // Write output
    table->SortSpecsMulti.resize(table->SortSpecsCount <= 1 ? 0 : table->SortSpecsCount);
    ImGuiTableColumnSortSpecs* sort_specs = (table->SortSpecsCount == 0) ? NULL : (table->SortSpecsCount == 1) ? &table->SortSpecsSingle : table->SortSpecsMulti.Data;
    for (int column_n = 0; column_n < table->ColumnsCount; column_n++)
    {
        ImGuiTableColumn* column = &table->Columns[column_n];
        if (column->SortOrder == -1)
            continue;
        IM_ASSERT(column->SortOrder < table->SortSpecsCount);
        ImGuiTableColumnSortSpecs* sort_spec = &sort_specs[column->SortOrder];
        sort_spec->ColumnUserID = column->UserID;
        sort_spec->ColumnIndex = (ImGuiTableColumnIdx)column_n;
        sort_spec->SortOrder = (ImGuiTableColumnIdx)column->SortOrder;
        sort_spec->SortDirection = column->SortDirection;
    }
    table->SortSpecs.Specs = sort_specs;
    table->SortSpecs.SpecsCount = table->SortSpecsCount;
    table->SortSpecs.SpecsDirty = true; // Mark as dirty for user
    table->IsSortSpecsDirty = false; // Mark as not dirty for us
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpb $0x0, 0x24b(%rdi)
je 0x72af1
movq %rdi, %rbx
callq 0x757dc
leaq 0x210(%rbx), %rdi
movl 0x230(%rbx), %eax
xorl %r14d, %r14d
cmpb $0x2, %al
cmovll %r14d, %eax
movsbl %al, %esi
callq 0x78a9e
movzbl 0x230(%rbx), %eax
testl %eax, %eax
je 0x72a36
cmpl $0x1, %eax
jne 0x72a3b
leaq 0x200(%rbx), %r12
jmp 0x72a42
xorl %r12d, %r12d
jmp 0x72a42
movq 0x218(%rbx), %r12
leaq 0x10(%rbx), %r15
xorl %r13d, %r13d
cmpl 0x6c(%rbx), %r14d
jge 0x72aa1
movq %r15, %rdi
movl %r14d, %esi
callq 0x4c4c6
movsbq 0x56(%rax), %rcx
cmpq $-0x1, %rcx
je 0x72a95
cmpb 0x230(%rbx), %cl
jge 0x72ad2
imulq $0xc, %rcx, %rdx
movl 0x30(%rax), %esi
movl %esi, (%r12,%rdx)
movswl %r13w, %esi
shrl $0x8, %esi
movw %si, 0x4(%r12,%rdx)
movw %cx, 0x6(%r12,%rdx)
movb 0x64(%rax), %al
andb $0x3, %al
movb %al, 0x8(%r12,%rdx)
incl %r14d
addl $0x100, %r13d           # imm = 0x100
jmp 0x72a49
movq %r12, 0x220(%rbx)
movsbl 0x230(%rbx), %eax
movl %eax, 0x228(%rbx)
movb $0x1, 0x22c(%rbx)
movb $0x0, 0x24b(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4461a(%rip), %rdi     # 0xb70f3
leaq 0x43626(%rip), %rsi     # 0xb6106
leaq 0x445de(%rip), %rcx     # 0xb70c5
movl $0xa60, %edx            # imm = 0xA60
callq 0xc140
leaq 0x445b5(%rip), %rdi     # 0xb70ad
leaq 0x43607(%rip), %rsi     # 0xb6106
leaq 0x445bf(%rip), %rcx     # 0xb70c5
movl $0xa55, %edx            # imm = 0xA55
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableSetColumnWidthAutoSingle(ImGuiTable*, int)
void ImGui::TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n)
{
    // Single auto width uses auto-fit
    ImGuiTableColumn* column = &table->Columns[column_n];
    if (!column->IsEnabled)
        return;
    column->CannotSkipItemsQueue = (1 << 0);
    table->AutoFitSingleColumn = (ImGuiTableColumnIdx)column_n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
addq $0x10, %rdi
callq 0x4c4c6
cmpb $0x1, 0x5a(%rax)
jne 0x72b71
movb $0x1, 0x63(%rax)
movb %bl, 0x236(%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableOpenContextMenu(int)
void ImGui::TableOpenContextMenu(int column_n)
{
    ImGuiContext& g = *GImGui;
    ImGuiTable* table = g.CurrentTable;
    if (column_n == -1 && table->CurrentColumn != -1)   // When called within a column automatically use this one (for consistency)
        column_n = table->CurrentColumn;
    if (column_n == table->ColumnsCount)                // To facilitate using with TableGetHoveredColumn()
        column_n = -1;
    IM_ASSERT(column_n >= -1 && column_n < table->ColumnsCount);
    if (table->Flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable))
    {
        table->IsContextPopupOpen = true;
        table->ContextPopupColumn = (ImGuiTableColumnIdx)column_n;
        table->InstanceInteracted = table->InstanceCurrent;
        const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID);
        OpenPopupEx(context_menu_id, ImGuiPopupFlags_None);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x7031a(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x20a8(%rax), %rax
cmpl $-0x1, %edi
jne 0x739d8
movl 0x74(%rax), %edi
movl 0x6c(%rax), %edx
cmpl %edx, %edi
pushq $-0x1
popq %rcx
cmovnel %edi, %ecx
cmpl $-0x1, %ecx
jl 0x73a23
cmpl %edx, %ecx
jge 0x73a23
testb $0x7, 0x4(%rax)
je 0x73a21
movb $0x1, 0x24d(%rax)
movb %cl, 0x23f(%rax)
movzwl 0x78(%rax), %ecx
movw %cx, 0x7a(%rax)
movl (%rax), %edx
leaq 0x429d1(%rip), %rdi     # 0xb63e1
xorl %esi, %esi
callq 0x3479a
movl %eax, %edi
xorl %esi, %esi
popq %rbp
jmp 0x4472e
popq %rbp
retq
leaq 0x437de(%rip), %rdi     # 0xb7208
leaq 0x426d5(%rip), %rsi     # 0xb6106
leaq 0x43801(%rip), %rcx     # 0xb7239
movl $0xb4f, %edx            # imm = 0xB4F
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableSetupScrollFreeze(int, int)
void ImGui::TableSetupScrollFreeze(int columns, int rows)
{
    ImGuiContext& g = *GImGui;
    ImGuiTable* table = g.CurrentTable;
    IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!");
    IM_ASSERT(table->IsLayoutLocked == false && "Need to call TableSetupColumn() before first row!");
    IM_ASSERT(columns >= 0 && columns < IMGUI_TABLE_MAX_COLUMNS);
    IM_ASSERT(rows >= 0 && rows < 128); // Arbitrary limit

    table->FreezeColumnsRequest = (table->Flags & ImGuiTableFlags_ScrollX) ? (ImGuiTableColumnIdx)columns : 0;
    table->FreezeColumnsCount = (table->InnerWindow->Scroll.x != 0.0f) ? table->FreezeColumnsRequest : 0;
    table->FreezeRowsRequest = (table->Flags & ImGuiTableFlags_ScrollY) ? (ImGuiTableColumnIdx)rows : 0;
    table->FreezeRowsCount = (table->InnerWindow->Scroll.y != 0.0f) ? table->FreezeRowsRequest : 0;
    table->IsUnfrozenRows = (table->FreezeRowsCount == 0); // Make sure this is set before TableUpdateLayout() so ImGuiListClipper can benefit from it.b
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x6f38b(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x20a8(%rax), %rax
testq %rax, %rax
je 0x749eb
cmpb $0x0, 0x248(%rax)
jne 0x74a0a
cmpl $0x40, %edi
jae 0x74a29
cmpl $0x80, %esi
jae 0x74a48
movl 0x4(%rax), %ecx
xorl %edx, %edx
btl $0x18, %ecx
cmovael %edx, %edi
movb %dil, 0x242(%rax)
movq 0x1d0(%rax), %r8
xorps %xmm0, %xmm0
ucomiss 0x5c(%r8), %xmm0
movl $0x0, %r9d
cmovnel %edi, %r9d
cmovpl %edi, %r9d
movb %r9b, 0x243(%rax)
btl $0x19, %ecx
cmovael %edx, %esi
movb %sil, 0x240(%rax)
ucomiss 0x60(%r8), %xmm0
cmovnel %esi, %edx
cmovpl %esi, %edx
movb %dl, 0x241(%rax)
testb %dl, %dl
sete 0x253(%rax)
popq %rbp
retq
leaq 0x41c84(%rip), %rdi     # 0xb6676
leaq 0x4170d(%rip), %rsi     # 0xb6106
leaq 0x41eb8(%rip), %rcx     # 0xb68b8
movl $0x58f, %edx            # imm = 0x58F
callq 0xc140
leaq 0x41ed4(%rip), %rdi     # 0xb68e5
leaq 0x416ee(%rip), %rsi     # 0xb6106
leaq 0x41e99(%rip), %rcx     # 0xb68b8
movl $0x590, %edx            # imm = 0x590
callq 0xc140
leaq 0x41f0b(%rip), %rdi     # 0xb693b
leaq 0x416cf(%rip), %rsi     # 0xb6106
leaq 0x41e7a(%rip), %rcx     # 0xb68b8
movl $0x591, %edx            # imm = 0x591
callq 0xc140
leaq 0x41f09(%rip), %rdi     # 0xb6958
leaq 0x416b0(%rip), %rsi     # 0xb6106
leaq 0x41e5b(%rip), %rcx     # 0xb68b8
movl $0x592, %edx            # imm = 0x592
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableGetColumnName(int)
const char* ImGui::TableGetColumnName(int column_n)
{
    ImGuiContext& g = *GImGui;
    ImGuiTable* table = g.CurrentTable;
    if (!table)
        return NULL;
    if (column_n < 0)
        column_n = table->CurrentColumn;
    return TableGetColumnName(table, column_n);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, %esi
leaq 0x6f249(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x20a8(%rax), %rdi
testq %rdi, %rdi
je 0x74ab3
testl %esi, %esi
jns 0x74aad
movl 0x74(%rdi), %esi
popq %rbp
jmp 0x74ab7
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableGetColumnName(ImGuiTable const*, int)
const char* ImGui::TableGetColumnName(const ImGuiTable* table, int column_n)
{
    if (table->IsLayoutLocked == false && column_n >= table->DeclColumnsCount)
        return ""; // NameOffset is invalid at this point
    const ImGuiTableColumn* column = &table->Columns[column_n];
    if (column->NameOffset == -1)
        return "";
    return &table->ColumnsNames.Buf[column->NameOffset];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0x248(%rdi)
jne 0x74ad4
movsbl 0x233(%rbx), %eax
cmpl %esi, %eax
jle 0x74afb
leaq 0x10(%rbx), %rdi
callq 0x78948
movswl 0x50(%rax), %esi
cmpl $-0x1, %esi
je 0x74afb
addq $0x1d8, %rbx            # imm = 0x1D8
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x78980
leaq 0x2741f(%rip), %rax     # 0x9bf21
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableGetColumnFlags(int)
ImGuiTableColumnFlags ImGui::TableGetColumnFlags(int column_n)
{
    ImGuiContext& g = *GImGui;
    ImGuiTable* table = g.CurrentTable;
    if (!table)
        return ImGuiTableColumnFlags_None;
    if (column_n < 0)
        column_n = table->CurrentColumn;
    if (column_n == table->ColumnsCount)
        return (table->HoveredColumnBody == column_n) ? ImGuiTableColumnFlags_IsHovered : ImGuiTableColumnFlags_None;
    return table->Columns[column_n].Flags;
}

// Assembly:
movl %edi, %esi
leaq 0x6f1ce(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x20a8(%rax), %rdi
testq %rdi, %rdi
je 0x74b3f
testl %esi, %esi
jns 0x74b28
movl 0x74(%rdi), %esi
cmpl 0x6c(%rdi), %esi
jne 0x74b42
movsbl 0x234(%rdi), %ecx
xorl %eax, %eax
cmpl %ecx, %esi
sete %al
shll $0x17, %eax
retq
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
addq $0x10, %rdi
callq 0x4c4c6
movl (%rax), %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableGetCellBgRect(ImGuiTable const*, int)
ImRect ImGui::TableGetCellBgRect(const ImGuiTable* table, int column_n)
{
    const ImGuiTableColumn* column = &table->Columns[column_n];
    float x1 = column->MinX;
    float x2 = column->MaxX;
    if (column->PrevEnabledColumn == -1)
        x1 -= table->CellSpacingX1;
    if (column->NextEnabledColumn == -1)
        x2 += table->CellSpacingX2;
    return ImRect(x1, table->RowPosY1, x2, table->RowPosY2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x10, %rdi
callq 0x78948
movss 0x8(%rax), %xmm0
cmpb $-0x1, 0x54(%rax)
jne 0x74b78
subss 0xc4(%rbx), %xmm0
movss 0xc(%rax), %xmm1
cmpb $-0x1, 0x55(%rax)
jne 0x74b8b
addss 0xc8(%rbx), %xmm1
movss 0x7c(%rbx), %xmm2
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movss 0x80(%rbx), %xmm2
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableGetHoveredColumn()
int ImGui::TableGetHoveredColumn()
{
    ImGuiContext& g = *GImGui;
    ImGuiTable* table = g.CurrentTable;
    if (!table)
        return -1;
    return (int)table->HoveredColumnBody;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x6f130(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x20a8(%rax), %rax
testq %rax, %rax
je 0x74bc8
movsbl 0x234(%rax), %eax
jmp 0x74bcd
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableSetBgColor(int, unsigned int, int)
void ImGui::TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n)
{
    ImGuiContext& g = *GImGui;
    ImGuiTable* table = g.CurrentTable;
    IM_ASSERT(target != ImGuiTableBgTarget_None);

    if (color == IM_COL32_DISABLE)
        color = 0;

    // We cannot draw neither the cell or row background immediately as we don't know the row height at this point in time.
    switch (target)
    {
    case ImGuiTableBgTarget_CellBg:
    {
        if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard
            return;
        if (column_n == -1)
            column_n = table->CurrentColumn;
        if ((table->VisibleMaskByIndex & ((ImU64)1 << column_n)) == 0)
            return;
        if (table->RowCellDataCurrent < 0 || table->RowCellData[table->RowCellDataCurrent].Column != column_n)
            table->RowCellDataCurrent++;
        ImGuiTableCellData* cell_data = &table->RowCellData[table->RowCellDataCurrent];
        cell_data->BgColor = color;
        cell_data->Column = (ImGuiTableColumnIdx)column_n;
        break;
    }
    case ImGuiTableBgTarget_RowBg0:
    case ImGuiTableBgTarget_RowBg1:
    {
        if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard
            return;
        IM_ASSERT(column_n == -1);
        int bg_idx = (target == ImGuiTableBgTarget_RowBg1) ? 1 : 0;
        table->RowBgColor[bg_idx] = color;
        break;
    }
    default:
        IM_ASSERT(0);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testl %edi, %edi
je 0x74cb3
movl %edx, %ebx
leaq 0x6f0f6(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x20a8(%rax), %r14
xorl %r15d, %r15d
cmpl $0x1000000, %esi        # imm = 0x1000000
cmovnel %esi, %r15d
leal -0x1(%rdi), %eax
cmpl $0x2, %eax
jae 0x74c38
movss 0x7c(%r14), %xmm0
ucomiss 0x128(%r14), %xmm0
ja 0x74ca8
cmpl $-0x1, %ebx
jne 0x74cf1
xorl %eax, %eax
cmpl $0x2, %edi
sete %al
movl %r15d, 0x98(%r14,%rax,4)
jmp 0x74ca8
cmpl $0x3, %edi
jne 0x74cd2
movss 0x7c(%r14), %xmm0
ucomiss 0x128(%r14), %xmm0
ja 0x74ca8
cmpl $-0x1, %ebx
jne 0x74c5a
movl 0x74(%r14), %ebx
movq 0x50(%r14), %rax
btq %rbx, %rax
jae 0x74ca8
movsbl 0x244(%r14), %esi
testl %esi, %esi
js 0x74c88
leaq 0x30(%r14), %rdi
callq 0x789b2
movsbl 0x4(%rax), %eax
movb 0x244(%r14), %sil
cmpl %eax, %ebx
je 0x74c92
incb %sil
movb %sil, 0x244(%r14)
addq $0x30, %r14
movsbl %sil, %esi
movq %r14, %rdi
callq 0x789b2
movl %r15d, (%rax)
movb %bl, 0x4(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x41d2a(%rip), %rdi     # 0xb69e4
leaq 0x41445(%rip), %rsi     # 0xb6106
leaq 0x41d3e(%rip), %rcx     # 0xb6a06
movl $0x5ec, %edx            # imm = 0x5EC
callq 0xc140
leaq 0x2a443(%rip), %rdi     # 0x9f11c
leaq 0x41426(%rip), %rsi     # 0xb6106
leaq 0x41d1f(%rip), %rcx     # 0xb6a06
movl $0x60e, %edx            # imm = 0x60E
callq 0xc140
leaq 0x41d4a(%rip), %rdi     # 0xb6a42
leaq 0x41407(%rip), %rsi     # 0xb6106
leaq 0x41d00(%rip), %rcx     # 0xb6a06
movl $0x608, %edx            # imm = 0x608
callq 0xc140
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableGetRowIndex()
int ImGui::TableGetRowIndex()
{
    ImGuiContext& g = *GImGui;
    ImGuiTable* table = g.CurrentTable;
    if (!table)
        return 0;
    return table->CurrentRow;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x6efc5(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x20a8(%rax), %rax
testq %rax, %rax
je 0x74d2f
movl 0x70(%rax), %eax
jmp 0x74d31
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableNextRow(int, float)
void ImGui::TableNextRow(ImGuiTableRowFlags row_flags, float row_min_height)
{
    ImGuiContext& g = *GImGui;
    ImGuiTable* table = g.CurrentTable;

    if (!table->IsLayoutLocked)
        TableUpdateLayout(table);
    if (table->IsInsideRow)
        TableEndRow(table);

    table->LastRowFlags = table->RowFlags;
    table->RowFlags = row_flags;
    table->RowMinHeight = row_min_height;
    TableBeginRow(table);

    // We honor min_row_height requested by user, but cannot guarantee per-row maximum height,
    // because that would essentially require a unique clipping rectangle per-cell.
    table->RowPosY2 += table->CellPaddingY * 2.0f;
    table->RowPosY2 = ImMax(table->RowPosY2, table->RowPosY1 + row_min_height);

    // Disable output until user calls TableNextColumn()
    table->InnerWindow->SkipItems = true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movaps %xmm0, -0x20(%rbp)
movl %edi, %r14d
leaq 0x6ef94(%rip), %rax     # 0xe3ce0
movq (%rax), %rax
movq 0x20a8(%rax), %rbx
cmpb $0x0, 0x248(%rbx)
jne 0x74d67
movq %rbx, %rdi
callq 0x712c6
cmpb $0x1, 0x249(%rbx)
jne 0x74d78
movq %rbx, %rdi
callq 0x733b7
movl 0x90(%rbx), %eax
shll $0x10, %eax
movzwl %r14w, %ecx
orl %eax, %ecx
movl %ecx, 0x90(%rbx)
movaps -0x20(%rbp), %xmm0
movss %xmm0, 0x84(%rbx)
movq %rbx, %rdi
callq 0x74dee
movss 0xc0(%rbx), %xmm0
addss %xmm0, %xmm0
addss 0x80(%rbx), %xmm0
movaps -0x20(%rbp), %xmm2
addss 0x7c(%rbx), %xmm2
movaps %xmm2, %xmm1
cmpless %xmm0, %xmm1
andps %xmm1, %xmm0
andnps %xmm2, %xmm1
orps %xmm0, %xmm1
movss %xmm1, 0x80(%rbx)
movq 0x1d0(%rbx), %rax
movb $0x1, 0x93(%rax)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_tables.cpp
// Function: ImGui::TableBeginRow(ImGuiTable*)
void ImGui::TableBeginRow(ImGuiTable* table)
{
    ImGuiWindow* window = table->InnerWindow;
    IM_ASSERT(!table->IsInsideRow);

    // New row
    table->CurrentRow++;
    table->CurrentColumn = -1;
    table->RowBgColor[0] = table->RowBgColor[1] = IM_COL32_DISABLE;
    table->RowCellDataCurrent = -1;
    table->IsInsideRow = true;

    // Begin frozen rows
    float next_y1 = table->RowPosY2;
    if (table->CurrentRow == 0 && table->FreezeRowsCount > 0)
        next_y1 = window->DC.CursorPos.y = table->OuterRect.Min.y;

    table->RowPosY1 = table->RowPosY2 = next_y1;
    table->RowTextBaseline = 0.0f;
    table->RowIndentOffsetX = window->DC.Indent.x - table->HostIndentX; // Lock indent
    window->DC.PrevLineTextBaseOffset = 0.0f;
    window->DC.CursorMaxPos.y = next_y1;

    // Making the header BG color non-transparent will allow us to overlay it multiple times when handling smooth dragging.
    if (table->RowFlags & ImGuiTableRowFlags_Headers)
    {
        TableSetBgColor(ImGuiTableBgTarget_RowBg0, GetColorU32(ImGuiCol_TableHeaderBg));
        if (table->CurrentRow == 0)
            table->IsUsingHeaders = true;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpb $0x1, 0x249(%rdi)
je 0x74eeb
movq %rdi, %rbx
movq 0x1d0(%rdi), %rax
orl $-0x1, 0x74(%rdi)
incl 0x70(%rdi)
movabsq $0x100000001000000, %rcx # imm = 0x100000001000000
movq %rcx, 0x98(%rdi)
movb $-0x1, 0x244(%rdi)
movb $0x1, 0x249(%rdi)
movss 0x80(%rdi), %xmm0
jne 0x74e54
cmpb $0x0, 0x241(%rbx)
jle 0x74e54
movss 0xf0(%rbx), %xmm0
movss %xmm0, 0xdc(%rax)
movss %xmm0, 0x80(%rbx)
movss %xmm0, 0x7c(%rbx)
andl $0x0, 0x88(%rbx)
movss 0x118(%rax), %xmm1
subss 0xb0(%rbx), %xmm1
movss %xmm1, 0x8c(%rbx)
andl $0x0, 0x114(%rax)
movss %xmm0, 0xf4(%rax)
testb $0x1, 0x90(%rbx)
je 0x74ee4
pushq $0x2a
popq %rdi
movss 0x27155(%rip), %xmm0    # 0x9bff8
callq 0x35d33
leaq 0x6ee31(%rip), %rcx     # 0xe3ce0
movq (%rcx), %rcx
movq 0x20a8(%rcx), %rcx
movss 0x7c(%rcx), %xmm0
ucomiss 0x128(%rcx), %xmm0
ja 0x74ed7
xorl %edx, %edx
cmpl $0x1000000, %eax        # imm = 0x1000000
cmovnel %eax, %edx
movl %edx, 0x98(%rcx)
cmpl $0x0, 0x70(%rbx)
jne 0x74ee4
movb $0x1, 0x24c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x41b5f(%rip), %rdi     # 0xb6a51
leaq 0x4120d(%rip), %rsi     # 0xb6106
leaq 0x41b65(%rip), %rcx     # 0xb6a65
movl $0x642, %edx            # imm = 0x642
callq 0xc140