// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imstb_truetype.h
// Function: stbtt_GetGlyphBitmapBoxSubpixel(stbtt_fontinfo const*, int, float, float, float, float, int*, int*, int*, int*)
STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1)
{
   int x0=0,y0=0,x1,y1; // =0 suppresses compiler warning
   if (!stbtt_GetGlyphBox(font, glyph, &x0,&y0,&x1,&y1)) {
      // e.g. space character
      if (ix0) *ix0 = 0;
      if (iy0) *iy0 = 0;
      if (ix1) *ix1 = 0;
      if (iy1) *iy1 = 0;
   } else {
      // move to integral bboxes (treating pixels as little squares, what pixels get touched)?
      if (ix0) *ix0 = STBTT_ifloor( x0 * scale_x + shift_x);
      if (iy0) *iy0 = STBTT_ifloor(-y1 * scale_y + shift_y);
      if (ix1) *ix1 = STBTT_iceil ( x1 * scale_x + shift_x);
      if (iy1) *iy1 = STBTT_iceil (-y0 * scale_y + shift_y);
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movss %xmm1, -0x30(%rbp)
movss %xmm0, -0x2c(%rbp)
movq %rdi, %r13
cmpl $0x0, 0x4c(%rdi)
je 0x7fb77
movq %r14, -0x38(%rbp)
movq %rbx, -0x40(%rbp)
xorps %xmm0, %xmm0
leaq -0x80(%rbp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x20(%rdx)
movaps %xmm0, 0x10(%rdx)
movq $0x0, 0x30(%rdx)
movl $0x1, (%rdx)
movq %r13, %rdi
callq 0x83b05
movl %eax, %r13d
movl %eax, %ebx
movl %eax, %r14d
testl %eax, %eax
je 0x7fbdf
movl -0x68(%rbp), %eax
movl -0x60(%rbp), %r13d
movl -0x64(%rbp), %ebx
movl -0x5c(%rbp), %r14d
jmp 0x7fbdf
movq %r13, %rdi
callq 0x83a7c
testl %eax, %eax
js 0x7fc8e
movq %r14, -0x38(%rbp)
movq %rbx, -0x40(%rbp)
movq 0x8(%r13), %rcx
movl %eax, %edx
movzbl 0x3(%rcx,%rdx), %esi
movzbl 0x2(%rcx,%rdx), %eax
shll $0x8, %eax
cwtl
orl %esi, %eax
movzbl 0x5(%rcx,%rdx), %esi
movzbl 0x4(%rcx,%rdx), %edi
shll $0x8, %edi
movswl %di, %r13d
orl %esi, %r13d
movzbl 0x7(%rcx,%rdx), %esi
movzbl 0x6(%rcx,%rdx), %edi
shll $0x8, %edi
movswl %di, %ebx
orl %esi, %ebx
movzbl 0x9(%rcx,%rdx), %esi
movzbl 0x8(%rcx,%rdx), %ecx
shll $0x8, %ecx
movswl %cx, %r14d
orl %esi, %r14d
testq %r12, %r12
je 0x7fc04
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
mulss -0x2c(%rbp), %xmm1
xorps %xmm0, %xmm0
addss %xmm1, %xmm0
callq 0xc6a0
cvttss2si %xmm0, %eax
movl %eax, (%r12)
testq %r15, %r15
je 0x7fc2c
negl %r14d
xorps %xmm1, %xmm1
cvtsi2ss %r14d, %xmm1
mulss -0x30(%rbp), %xmm1
xorps %xmm0, %xmm0
addss %xmm1, %xmm0
callq 0xc6a0
cvttss2si %xmm0, %eax
movl %eax, (%r15)
movq -0x38(%rbp), %r14
testq %r14, %r14
je 0x7fc54
xorps %xmm1, %xmm1
cvtsi2ss %ebx, %xmm1
mulss -0x2c(%rbp), %xmm1
xorps %xmm0, %xmm0
addss %xmm1, %xmm0
callq 0xc2f0
cvttss2si %xmm0, %eax
movl %eax, (%r14)
movq -0x40(%rbp), %rbx
testq %rbx, %rbx
je 0x7fc7f
negl %r13d
xorps %xmm1, %xmm1
cvtsi2ss %r13d, %xmm1
mulss -0x30(%rbp), %xmm1
xorps %xmm0, %xmm0
addss %xmm1, %xmm0
callq 0xc2f0
cvttss2si %xmm0, %eax
movl %eax, (%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %r12, %r12
je 0x7fc9b
movl $0x0, (%r12)
testq %r15, %r15
je 0x7fca7
movl $0x0, (%r15)
testq %r14, %r14
je 0x7fcb3
movl $0x0, (%r14)
xorl %eax, %eax
testq %rbx, %rbx
jne 0x7fc7d
jmp 0x7fc7f