// File: /workspace/github_cpp_makefile_star2_O2/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 0x69d10
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)
andq $0x0, 0x30(%rdx)
movl $0x1, (%rdx)
movq %r13, %rdi
callq 0x6cf28
movl %eax, %r13d
movl %eax, %ebx
movl %eax, %r14d
testl %eax, %eax
je 0x69d78
movl -0x68(%rbp), %eax
movl -0x60(%rbp), %r13d
movl -0x64(%rbp), %ebx
movl -0x5c(%rbp), %r14d
jmp 0x69d78
movq %r13, %rdi
callq 0x6ce7d
testl %eax, %eax
js 0x69e1b
movq %r14, -0x38(%rbp)
movq %rbx, -0x40(%rbp)
movq 0x8(%r13), %rcx
movl %eax, %edx
movzbl 0x2(%rcx,%rdx), %eax
shll $0x8, %eax
movzbl 0x3(%rcx,%rdx), %esi
cwtl
orl %esi, %eax
movzbl 0x4(%rcx,%rdx), %esi
shll $0x8, %esi
movzbl 0x5(%rcx,%rdx), %edi
movswl %si, %r13d
orl %edi, %r13d
movzbl 0x6(%rcx,%rdx), %esi
shll $0x8, %esi
movzbl 0x7(%rcx,%rdx), %edi
movswl %si, %ebx
orl %edi, %ebx
movzbl 0x8(%rcx,%rdx), %esi
shll $0x8, %esi
movzbl 0x9(%rcx,%rdx), %ecx
movswl %si, %r14d
orl %ecx, %r14d
testq %r12, %r12
je 0x69d9a
cvtsi2ss %eax, %xmm1
mulss -0x2c(%rbp), %xmm1
xorps %xmm0, %xmm0
addss %xmm1, %xmm0
callq 0xc6d0
cvttss2si %xmm0, %eax
movl %eax, (%r12)
testq %r15, %r15
je 0x69dbf
negl %r14d
cvtsi2ss %r14d, %xmm1
mulss -0x30(%rbp), %xmm1
xorps %xmm0, %xmm0
addss %xmm1, %xmm0
callq 0xc6d0
cvttss2si %xmm0, %eax
movl %eax, (%r15)
movq -0x38(%rbp), %r14
testq %r14, %r14
je 0x69de4
cvtsi2ss %ebx, %xmm1
mulss -0x2c(%rbp), %xmm1
xorps %xmm0, %xmm0
addss %xmm1, %xmm0
callq 0xc310
cvttss2si %xmm0, %eax
movl %eax, (%r14)
movq -0x40(%rbp), %rbx
testq %rbx, %rbx
je 0x69e0c
negl %r13d
cvtsi2ss %r13d, %xmm1
mulss -0x30(%rbp), %xmm1
xorps %xmm0, %xmm0
addss %xmm1, %xmm0
callq 0xc310
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 0x69e25
andl $0x0, (%r12)
testq %r15, %r15
je 0x69e2e
andl $0x0, (%r15)
testq %r14, %r14
je 0x69e37
andl $0x0, (%r14)
xorl %eax, %eax
testq %rbx, %rbx
jne 0x69e0a
jmp 0x69e0c