// File: /workspace/github_c_makefile_star2_O0/deplinenoise[P]vlink/linker.c
// Function: print_function_name
void print_function_name(struct Section *sec,unsigned long offs)
/* Try to determine the function to which the section offset */
/* belongs, by comparing with SYMI_FUNC-type symbol definitions. */
/* If this was successful and the current function is different */
/* from the last one printed, make an output to stderr. */
{
  static const char *infoname[] = { "", "object ", "function " };
  static struct Symbol *last_func=NULL;
  struct Symbol *sym,*func=NULL;
  int i;

  for (i=0; i<OBJSYMHTABSIZE; i++) {  /* scan all hash chains */
    for (sym=sec->obj->objsyms[i]; sym; sym=sym->obj_chain) {
      if (sym->relsect == sec) {
        if (sym->info <= SYMI_FUNC) {
          if (sym->type == SYM_RELOC) {
            if ((unsigned long)sym->value <= offs) {
              if (sym->size) {  /* size of function specified? */
                if ((unsigned long)(sym->value+sym->size) > offs) {
                  func = sym;
                  i = OBJSYMHTABSIZE;
                  break;  /* function found! */
                }
              }
              else {  /* no size - find nearest... */
                if (func) {
                  if (sym->value > func->value) {
                    if (func->bind<SYMB_GLOBAL || sym->bind>=SYMB_GLOBAL)
                      func = sym;
                  }
                }
                else
                  func = sym;
              }
            }
          }
        }
      }
    }
  }

  /* print function name */
  if (func && func!=last_func) {
    last_func = func;
    fprintf(stderr,"%s: In %s\"%s\":\n",getobjname(sec->obj),
            infoname[func->info],func->name);
  }
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq $0x0, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
cmpl $0x20, 0x14(%rsp)
jge 0x910a
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x48(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x90f8
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
cmpq 0x30(%rsp), %rax
jne 0x90e3
movq 0x20(%rsp), %rax
movzbl 0x42(%rax), %eax
cmpl $0x2, %eax
jg 0x90e1
movq 0x20(%rsp), %rax
movzbl 0x40(%rax), %eax
cmpl $0x2, %eax
jne 0x90df
movq 0x20(%rsp), %rax
movq 0x30(%rax), %rax
cmpq 0x28(%rsp), %rax
ja 0x90dd
movq 0x20(%rsp), %rax
cmpl $0x0, 0x44(%rax)
je 0x9089
movq 0x20(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x20(%rsp), %rcx
movl 0x44(%rcx), %ecx
addq %rcx, %rax
cmpq 0x28(%rsp), %rax
jbe 0x9087
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rsp)
movl $0x20, 0x14(%rsp)
jmp 0x90f8
jmp 0x90db
cmpq $0x0, 0x18(%rsp)
je 0x90cf
movq 0x20(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x18(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jle 0x90cd
movq 0x18(%rsp), %rax
movzbl 0x43(%rax), %eax
cmpl $0x2, %eax
jl 0x90c1
movq 0x20(%rsp), %rax
movzbl 0x43(%rax), %eax
cmpl $0x2, %eax
jl 0x90cb
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x90cd
jmp 0x90d9
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x90db
jmp 0x90dd
jmp 0x90df
jmp 0x90e1
jmp 0x90e3
jmp 0x90e5
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x8ff5
jmp 0x90fa
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x8fcf
cmpq $0x0, 0x18(%rsp)
je 0x917e
movq 0x18(%rsp), %rax
cmpq 0x3b4a2(%rip), %rax     # 0x445c0
je 0x917e
movq 0x18(%rsp), %rax
movq %rax, 0x3b494(%rip)     # 0x445c0
movq 0x35ec5(%rip), %rax     # 0x3eff8
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x8f00
movq 0x8(%rsp), %rdi
movq %rax, %rdx
movq 0x18(%rsp), %rax
movzbl 0x42(%rax), %eax
movl %eax, %ecx
leaq 0x3681d(%rip), %rax     # 0x3f980
movq (%rax,%rcx,8), %rcx
movq 0x18(%rsp), %rax
movq 0x20(%rax), %r8
leaq 0x2bf6a(%rip), %rsi     # 0x350e1
movb $0x0, %al
callq 0x5150
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)