// File: /workspace/github_c_makefile_star2_O0/ggerganov[P]font-rasterizer/./stb_truetype.h
// Function: stbtt_GetGlyphBitmapSubpixel
STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff)
{
   int ix0,iy0,ix1,iy1;
   stbtt__bitmap gbm;
   stbtt_vertex *vertices;   
   int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices);

   if (scale_x == 0) scale_x = scale_y;
   if (scale_y == 0) {
      if (scale_x == 0) {
         STBTT_free(vertices, info->userdata);
         return NULL;
      }
      scale_y = scale_x;
   }

   stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,&ix1,&iy1);

   // now we get the size
   gbm.w = (ix1 - ix0);
   gbm.h = (iy1 - iy0);
   gbm.pixels = NULL; // in case we error

   if (width ) *width  = gbm.w;
   if (height) *height = gbm.h;
   if (xoff  ) *xoff   = ix0;
   if (yoff  ) *yoff   = iy0;
   
   if (gbm.w && gbm.h) {
      gbm.pixels = (unsigned char *) STBTT_malloc(gbm.w * gbm.h, info->userdata);
      if (gbm.pixels) {
         gbm.stride = gbm.w;

         stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0, iy0, 1, info->userdata);
      }
   }
   STBTT_free(vertices, info->userdata);
   return gbm.pixels;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movss %xmm0, -0x14(%rbp)
movss %xmm1, -0x18(%rbp)
movss %xmm2, -0x1c(%rbp)
movss %xmm3, -0x20(%rbp)
movl %esi, -0x24(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %r8, -0x40(%rbp)
movq %r9, -0x48(%rbp)
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq -0x78(%rbp), %rdx
callq 0x4a50
movl %eax, -0x7c(%rbp)
movss -0x14(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x78f2
jp 0x78f2
movss -0x18(%rbp), %xmm0
movss %xmm0, -0x14(%rbp)
movss -0x18(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x7930
jp 0x7930
movss -0x14(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x7926
jp 0x7926
movq -0x78(%rbp), %rdi
callq 0x1030
movq $0x0, -0x8(%rbp)
jmp 0x7a3d
movss -0x14(%rbp), %xmm0
movss %xmm0, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %esi
movss -0x14(%rbp), %xmm0
movss -0x18(%rbp), %xmm1
movss -0x1c(%rbp), %xmm2
movss -0x20(%rbp), %xmm3
leaq -0x4c(%rbp), %rdx
leaq -0x50(%rbp), %rcx
leaq -0x54(%rbp), %r8
leaq -0x58(%rbp), %r9
callq 0x6d20
movl -0x54(%rbp), %eax
subl -0x4c(%rbp), %eax
movl %eax, -0x70(%rbp)
movl -0x58(%rbp), %eax
subl -0x50(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq $0x0, -0x60(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x798a
movl -0x70(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
cmpq $0x0, -0x38(%rbp)
je 0x799a
movl -0x6c(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
cmpq $0x0, -0x40(%rbp)
je 0x79aa
movl -0x4c(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, (%rax)
cmpq $0x0, -0x48(%rbp)
je 0x79ba
movl -0x50(%rbp), %ecx
movq -0x48(%rbp), %rax
movl %ecx, (%rax)
cmpl $0x0, -0x70(%rbp)
je 0x7a2c
cmpl $0x0, -0x6c(%rbp)
je 0x7a2c
movl -0x70(%rbp), %eax
imull -0x6c(%rbp), %eax
movslq %eax, %rdi
callq 0x1140
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
je 0x7a2a
movl -0x70(%rbp), %eax
movl %eax, -0x68(%rbp)
movq -0x78(%rbp), %rsi
movl -0x7c(%rbp), %edx
movss -0x14(%rbp), %xmm1
movss -0x18(%rbp), %xmm2
movss -0x1c(%rbp), %xmm3
movss -0x20(%rbp), %xmm4
movl -0x4c(%rbp), %ecx
movl -0x50(%rbp), %r8d
movq -0x10(%rbp), %rax
movq (%rax), %rax
leaq -0x70(%rbp), %rdi
movss 0xec09(%rip), %xmm0     # 0x16624
movl $0x1, %r9d
movq %rax, (%rsp)
callq 0x6fe0
jmp 0x7a2c
movq -0x78(%rbp), %rdi
callq 0x1030
movq -0x60(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)