// File: /workspace/github_c_makefile_star2_O1/smilingthax[P]libfontembed/test_analyze.c
// Function: show_name
void show_name(OTF_FILE *otf) // {{{
{
  assert(otf);
  int iA,len=0;
  char *buf;

  buf=otf_get_table(otf,OTF_TAG('n','a','m','e'),&len);
  if (!buf) {
    assert(len==-1);
    printf("No name table\n");
    return;
  }
  printf("NAME:\n");
  int name_count=get_USHORT(buf+2);
  const char *nstore=buf+get_USHORT(buf+4);
  for (iA=0;iA<name_count;iA++) {
    const char *nrec=buf+6+12*iA;
    printf("  { platformID/encodingID/languageID/nameID: %d/%d/%d/%d\n"
           "    length: %d, offset: %d, data                       :",
           get_USHORT(nrec),
           get_USHORT(nrec+2),
           get_USHORT(nrec+4),
           get_USHORT(nrec+6),
           get_USHORT(nrec+8),
           get_USHORT(nrec+10));
    if (  (get_USHORT(nrec)==0)||
          ( (get_USHORT(nrec)==3) )  ) { // WCHAR
      int nlen=get_USHORT(nrec+8);
      int npos=get_USHORT(nrec+10);
      for (;nlen>0;nlen-=2,npos+=2) {
        if (nstore[npos]!=0x00) {
          printf("?");
        } else {
          printf("%c",nstore[npos+1]);
        }
      }
      printf(" }\n");
    } else {
      printf("%.*s }\n",
             get_USHORT(nrec+8),nstore+get_USHORT(nrec+10));
    }
  }
  free(buf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x217a
leaq 0x14(%rsp), %rdx
movl $0x0, (%rdx)
movl $0x6e616d65, %esi       # imm = 0x6E616D65
callq 0x32fd
testq %rax, %rax
je 0x2158
movq %rax, %rbx
leaq 0x74ab(%rip), %rdi      # 0x9493
callq 0x11f0
movzwl 0x2(%rbx), %eax
rolw $0x8, %ax
testw %ax, %ax
je 0x214e
movzwl %ax, %eax
movzbl 0x4(%rbx), %ecx
shll $0x8, %ecx
movzbl 0x5(%rbx), %edx
leaq (%rcx,%rdx), %rsi
addq %rbx, %rsi
movq %rsi, 0x18(%rsp)
movl %eax, %ebp
addq %rdx, %rcx
leaq (%rbx,%rcx), %rax
incq %rax
movq %rax, 0x20(%rsp)
leaq 0x70c3(%rip), %r14      # 0x90f3
xorl %r15d, %r15d
leaq (,%r15,4), %rax
leaq (%rax,%rax,2), %r13
movzwl 0x6(%rbx,%r13), %eax
movzwl 0x8(%rbx,%r13), %ecx
rolw $0x8, %ax
movzwl %ax, %esi
rolw $0x8, %cx
movzwl %cx, %edx
movzwl 0xa(%rbx,%r13), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
movzwl 0xc(%rbx,%r13), %eax
rolw $0x8, %ax
movzwl %ax, %r8d
movzwl 0xe(%rbx,%r13), %eax
rolw $0x8, %ax
movzwl %ax, %r9d
movzwl 0x10(%rbx,%r13), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, (%rsp)
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movzwl 0x6(%rbx,%r13), %eax
rolw $0x8, %ax
cmpw $0x3, %ax
je 0x20b3
movzwl %ax, %eax
testl %eax, %eax
jne 0x2115
movzbl 0xe(%rbx,%r13), %eax
shll $0x8, %eax
movzbl 0xf(%rbx,%r13), %ecx
movl %eax, %edx
orl %ecx, %edx
je 0x2107
movzwl 0x10(%rbx,%r13), %edx
rolw $0x8, %dx
movzwl %dx, %r13d
addq 0x20(%rsp), %r13
leal (%rax,%rcx), %r12d
addl $0x2, %r12d
movl $0x3f, %edi
cmpb $0x0, -0x1(%r13)
jne 0x20f4
movsbl (%r13), %edi
callq 0x11c0
addq $0x2, %r13
addl $-0x2, %r12d
cmpl $0x2, %r12d
jg 0x20e3
leaq 0x738b(%rip), %rdi      # 0x9499
callq 0x11f0
jmp 0x2142
movzwl 0xe(%rbx,%r13), %eax
movzwl 0x10(%rbx,%r13), %ecx
rolw $0x8, %ax
movzwl %ax, %esi
rolw $0x8, %cx
movzwl %cx, %edx
addq 0x18(%rsp), %rdx
leaq 0x702a(%rip), %rdi      # 0x9165
xorl %eax, %eax
callq 0x1040
incq %r15
cmpq %rbp, %r15
jne 0x2033
movq %rbx, %rdi
callq 0x1190
jmp 0x216b
cmpl $-0x1, 0x14(%rsp)
jne 0x2199
leaq 0x731f(%rip), %rdi      # 0x9485
callq 0x11f0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6e83(%rip), %rdi      # 0x9004
leaq 0x6e80(%rip), %rsi      # 0x9008
leaq 0x6f49(%rip), %rcx      # 0x90d8
movl $0x39, %edx
callq 0x10e0
leaq 0x6e92(%rip), %rdi      # 0x9032
leaq 0x6e61(%rip), %rsi      # 0x9008
leaq 0x6f2a(%rip), %rcx      # 0x90d8
movl $0x3f, %edx
callq 0x10e0