// File: /workspace/github_c_makefile_star2_O0/ggerganov[P]font-rasterizer/./stb_truetype.h
// Function: stbtt_GetFontNameString
STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID)
{
   stbtt_int32 i,count,stringOffset;
   stbtt_uint8 *fc = font->data;
   stbtt_uint32 offset = font->fontstart;
   stbtt_uint32 nm = stbtt__find_table(fc, offset, "name");
   if (!nm) return NULL;

   count = ttUSHORT(fc+nm+2);
   stringOffset = nm + ttUSHORT(fc+nm+4);
   for (i=0; i < count; ++i) {
      stbtt_uint32 loc = nm + 6 + 12 * i;
      if (platformID == ttUSHORT(fc+loc+0) && encodingID == ttUSHORT(fc+loc+2)
          && languageID == ttUSHORT(fc+loc+4) && nameID == ttUSHORT(fc+loc+6)) {
         *length = ttUSHORT(fc+loc+8);
         return (const char *) (fc+stringOffset+ttUSHORT(fc+loc+10));
      }
   }
   return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x44(%rbp)
movq -0x40(%rbp), %rdi
movl -0x44(%rbp), %esi
leaq 0xaa51(%rip), %rdx      # 0x16933
callq 0x6a90
movl %eax, -0x48(%rbp)
cmpl $0x0, -0x48(%rbp)
jne 0xbefd
movq $0x0, -0x8(%rbp)
jmp 0xc067
movq -0x40(%rbp), %rdi
movl -0x48(%rbp), %eax
addq %rax, %rdi
addq $0x2, %rdi
callq 0x4990
movzwl %ax, %eax
movl %eax, -0x30(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x50(%rbp)
movq -0x40(%rbp), %rdi
movl -0x48(%rbp), %eax
addq %rax, %rdi
addq $0x4, %rdi
callq 0x4990
movw %ax, %cx
movl -0x50(%rbp), %eax
movzwl %cx, %ecx
addl %ecx, %eax
movl %eax, -0x34(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x30(%rbp), %eax
jge 0xc05f
movl -0x48(%rbp), %eax
addl $0x6, %eax
imull $0xc, -0x2c(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x4c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x40(%rbp), %rdi
movl -0x4c(%rbp), %eax
addq %rax, %rdi
callq 0x4990
movw %ax, %cx
movl -0x54(%rbp), %eax
movzwl %cx, %ecx
cmpl %ecx, %eax
jne 0xc04f
movl -0x20(%rbp), %eax
movl %eax, -0x58(%rbp)
movq -0x40(%rbp), %rdi
movl -0x4c(%rbp), %eax
addq %rax, %rdi
addq $0x2, %rdi
callq 0x4990
movw %ax, %cx
movl -0x58(%rbp), %eax
movzwl %cx, %ecx
cmpl %ecx, %eax
jne 0xc04f
movl -0x24(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x40(%rbp), %rdi
movl -0x4c(%rbp), %eax
addq %rax, %rdi
addq $0x4, %rdi
callq 0x4990
movw %ax, %cx
movl -0x5c(%rbp), %eax
movzwl %cx, %ecx
cmpl %ecx, %eax
jne 0xc04f
movl -0x28(%rbp), %eax
movl %eax, -0x60(%rbp)
movq -0x40(%rbp), %rdi
movl -0x4c(%rbp), %eax
addq %rax, %rdi
addq $0x6, %rdi
callq 0x4990
movw %ax, %cx
movl -0x60(%rbp), %eax
movzwl %cx, %ecx
cmpl %ecx, %eax
jne 0xc04f
movq -0x40(%rbp), %rdi
movl -0x4c(%rbp), %eax
addq %rax, %rdi
addq $0x8, %rdi
callq 0x4990
movzwl %ax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x40(%rbp), %rax
movslq -0x34(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %rdi
movl -0x4c(%rbp), %eax
addq %rax, %rdi
addq $0xa, %rdi
callq 0x4990
movw %ax, %cx
movq -0x68(%rbp), %rax
movzwl %cx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0xc067
jmp 0xc051
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xbf44
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)