// File: /workspace/github_cpp_makefile_star2_O1/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 %rcx, %r15
movq %rdx, %r12
movss %xmm1, -0x30(%rbp)
movss %xmm0, -0x2c(%rbp)
movq %rdi, %r13
cmpl $0x0, 0x4c(%rdi)
movq %r9, -0x40(%rbp)
movq %r8, -0x38(%rbp)
je 0x815df
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 0x85767
movl %eax, %r13d
movl %eax, %ebx
movl %eax, %r14d
testl %eax, %eax
je 0x8163f
movl -0x68(%rbp), %eax
movl -0x60(%rbp), %r13d
movl -0x64(%rbp), %ebx
movl -0x5c(%rbp), %r14d
jmp 0x8163f
movq %r13, %rdi
callq 0x856de
testl %eax, %eax
js 0x81730
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
xorl %ecx, %ecx
testb %cl, %cl
je 0x81681
testq %r12, %r12
je 0x81652
movl $0x0, (%r12)
testq %r15, %r15
movq -0x40(%rbp), %rbx
movq -0x38(%rbp), %rax
je 0x81666
movl $0x0, (%r15)
testq %rax, %rax
je 0x81671
movl $0x0, (%rax)
xorl %eax, %eax
testq %rbx, %rbx
jne 0x8171f
jmp 0x81721
testq %r12, %r12
je 0x816a6
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 0x816ce
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 0x816f6
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 0x81721
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
movb $0x1, %cl
xorl %eax, %eax
xorl %r13d, %r13d
jmp 0x81641