// File: /workspace/github_c_makefile_star2_O1/deplinenoise[P]vlink/t_elf32.c
// Function: elf32_parse
void elf32_parse(struct GlobalVars *gv,struct LinkFile *lf,
                 struct Elf32_Ehdr *ehdr,
                 uint8_t (*reloc_elf2vlink)(uint8_t,struct RelocInsert *))
/* parses a complete ELF file and converts into vlink-internal format */
{
  static const char *fn = "elf32_parse(): ";
  bool be = (ehdr->e_ident[EI_DATA] == ELFDATA2MSB);
  struct ObjectUnit *u;
  struct Elf32_Shdr *shdr;
  uint16_t i,num_shdr,dynstr_idx,dynsym_idx;
  char *shstrtab,*dynstrtab;
  struct Elf32_Dyn *dyn;

  shstrtab = elf32_shstrtab(lf,ehdr);
  u = create_objunit(gv,lf,lf->objname);

  switch (read16(be,ehdr->e_type)) {

    case ET_REL:  /* relocatable object file */
      if (read16(be,ehdr->e_phnum) > 0)
        error(47,lf->pathname,lf->objname);  /* ignoring program hdr. tab */
      num_shdr = read16(be,ehdr->e_shnum);

      /* create vlink sections */
      for (i=1; i<num_shdr; i++) {
        shdr = elf32_shdr(lf,ehdr,i);

        switch (read32(be,shdr->sh_type)) {
          case SHT_PROGBITS:
          case SHT_NOBITS:
          case SHT_NOTE:
            /* create a new section */
            elf32_section(gv,ehdr,u,shdr,i,shstrtab);
          default:
            break;
        }
      }

      /* parse the other section headers */
      for (i=1; i<num_shdr; i++) {
        shdr = elf32_shdr(lf,ehdr,i);

        switch (read32(be,shdr->sh_type)) {
          case SHT_NULL:
          case SHT_STRTAB:
          case SHT_NOTE:
          case SHT_PROGBITS:
          case SHT_NOBITS:
            break;
          case SHT_SYMTAB:
            elf32_symbols(gv,ehdr,u,shdr);  /* symbol definitions */
            break;
          case SHT_REL:
          case SHT_RELA:
            elf32_reloc(gv,ehdr,u,shdr,shstrtab,be,reloc_elf2vlink);
            break;
          default:
            /* section header type not needed in relocatable objects */
            error(48,lf->pathname,read32(be,shdr->sh_type),lf->objname);
            break;
        }
      }

      elf32_stabs(gv,lf,ehdr,u);  /* convert .stab into internal format */
      break;


    case ET_DYN:  /* shared object file */
      dynstrtab = NULL;
      dyn = NULL;
      dynstr_idx = dynsym_idx = 0;
      num_shdr = read16(be,ehdr->e_shnum);

      /* create vlink sections */
      for (i=1; i<num_shdr; i++) {
        shdr = elf32_shdr(lf,ehdr,i);

        switch (read32(be,shdr->sh_type)) {
          case SHT_DYNAMIC:
            /* remember pointer to .dynamic section contents */
            dyn = (struct Elf32_Dyn *)((uint8_t *)ehdr
                                       + read32(be,shdr->sh_offset));
            break;
          case SHT_DYNSYM:
            dynsym_idx = i;
            break;
          case SHT_PROGBITS:
          case SHT_NOBITS:
            /* create a new section */
            elf32_section(gv,ehdr,u,shdr,i,shstrtab);
          default:
            break;
        }
      }

      /* parse the other section headers */
      for (i=1; i<num_shdr; i++) {
        shdr = elf32_shdr(lf,ehdr,i);

        switch (read32(be,shdr->sh_type)) {
          case SHT_NULL:
          case SHT_STRTAB:
          case SHT_NOTE:
          case SHT_PROGBITS:
          case SHT_NOBITS:
          case SHT_HASH:
          case SHT_DYNAMIC:
          case SHT_SYMTAB:
            break;
          case SHT_DYNSYM:
            dynstr_idx = read32(be,shdr->sh_link);
            elf32_symbols(gv,ehdr,u,shdr);  /* symbol definitions */
            break;
          case SHT_REL:
          case SHT_RELA:
            if (fff[gv->dest_format]->flags & FFF_DYN_RESOLVE_ALL) {
              /* The dynamic link editor is limited, so we even have to
                 resolve references from the shared object at link time.
                 But only those which are linked to .dynsym. */
              if (read32(be,shdr->sh_link) == dynsym_idx)
                elf32_dynrefs(gv,ehdr,u,shdr,be,reloc_elf2vlink);
            }
            break;
          default:
            /* section header type not needed in shared objects */
            error(60,lf->pathname,read32(be,shdr->sh_type),lf->objname);
            break;
        }
      }

      if (dynstr_idx!=0 && dyn!=NULL) {
        /* set ObjectUnit's objname to the SONAME of the shared object */
        uint32_t tag;

        shdr = elf32_shdr(lf,ehdr,dynstr_idx);  /* .dynstr */
        while (tag = read32(be,dyn->d_tag)) {
          if (tag == DT_SONAME) {
            u->objname = (char *)ehdr + read32(be,shdr->sh_offset)
                         + read32(be,dyn->d_val);
            break;
          }
          dyn++;
        }
      }
      break;


    case ET_EXEC: /* executable file */
      /* @@@ */
      ierror("%s%s: Executables are currently not supported",fn,lf->pathname);
      break;


    default:
      error(41,lf->pathname,lf->objname);  /* illegal fmt./file corrupted */
      break;
  }

  /* add new object unit to the appropriate list */
  add_objunit(gv,u,FALSE);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, 0x98(%rsp)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
xorl %r13d, %r13d
cmpb $0x2, 0x5(%rdx)
sete %r13b
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x141ee
movq %rax, %r12
movq 0x20(%r14), %rdx
movq %rbx, 0x50(%rsp)
movq %rbx, %rdi
movq %r14, 0x28(%rsp)
movq %r14, %rsi
callq 0xbf5e
movq %rax, 0x18(%rsp)
movq %r15, 0x10(%rsp)
leaq 0x10(%r15), %rsi
movl %r13d, %edi
callq 0x6993
cmpw $0x3, %ax
movl %r13d, 0xc(%rsp)
je 0x1513b
movzwl %ax, %eax
cmpl $0x2, %eax
je 0x15118
cmpl $0x1, %eax
jne 0x15216
movq 0x10(%rsp), %rax
leaq 0x2c(%rax), %rsi
movl %r13d, %edi
callq 0x6993
testw %ax, %ax
je 0x14afb
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x20(%rax), %rdx
movl $0x2f, %edi
xorl %eax, %eax
callq 0x6f84
movq 0x10(%rsp), %rax
leaq 0x30(%rax), %rsi
movl %r13d, %edi
callq 0x6993
movw %ax, 0x26(%rsp)
cmpw $0x2, %ax
jb 0x14b76
movzwl 0x26(%rsp), %ebp
movl $0x1, %ebx
movl $0x182, %r15d           # imm = 0x182
movzwl %bx, %edx
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x142ac
movq %rax, %r14
leaq 0x4(%rax), %rsi
movl %r13d, %edi
callq 0x69b3
cmpl $0x8, %eax
ja 0x14b70
btl %eax, %r15d
jae 0x14b70
movq 0x50(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r14, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x144bf
incl %ebx
cmpl %ebx, %ebp
jne 0x14b27
movq %r12, 0xb8(%rsp)
cmpw $0x2, 0x26(%rsp)
jb 0x15234
movw $0x1, %ax
movl %eax, 0x88(%rsp)
movzwl %ax, %edx
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x142ac
movq %rax, %r15
leaq 0x4(%rax), %rbx
movl %r13d, %edi
movq %rbx, %rsi
callq 0x69b3
cmpl $0x9, %eax
ja 0x150e9
movl $0x18b, %ecx            # imm = 0x18B
btl %eax, %ecx
jae 0x14be6
movl 0x88(%rsp), %eax
incl %eax
cmpw 0x26(%rsp), %ax
movl 0xc(%rsp), %r13d
jne 0x14b8e
jmp 0x15234
movq %r15, %r13
movl $0x210, %ecx            # imm = 0x210
btl %eax, %ecx
jae 0x150c8
leaq 0x10(%r15), %rsi
movl 0xc(%rsp), %r14d
movl %r14d, %edi
callq 0x69b3
movl %eax, %ebp
movl %r14d, %edi
movq %rbx, %rsi
callq 0x69b3
movl %eax, 0x6c(%rsp)
leaq 0x24(%r15), %rsi
movl %r14d, %edi
callq 0x69b3
movl %eax, %ebx
leaq 0x18(%r15), %rsi
movl %r14d, %edi
callq 0x69b3
movl %eax, 0x3c(%rsp)
leaq 0x14(%r15), %r12
movl %r14d, %edi
movq %r12, %rsi
callq 0x69b3
movl %eax, 0x60(%rsp)
xorl %edx, %edx
movl %ebx, 0x30(%rsp)
divl %ebx
movl %eax, 0x90(%rsp)
movl %r14d, %edi
movq %r13, %rsi
callq 0x69b3
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rcx, 0x48(%rsp)
movq 0x50(%rsp), %rcx
cmpb $0x0, 0x6c(%rcx)
je 0x14cf7
movl %eax, %ebx
addq 0xb8(%rsp), %rbx
movl $0xa, %edx
movq %rbx, %rdi
leaq 0xebca(%rip), %rsi      # 0x23860
callq 0x5070
testl %eax, %eax
je 0x14bcc
movl $0x9, %edx
movq %rbx, %rdi
leaq 0xebb9(%rip), %rsi      # 0x2386b
callq 0x5070
testl %eax, %eax
je 0x14bcc
movl $0xb, %edx
movq %rbx, %rdi
leaq 0xeba7(%rip), %rsi      # 0x23875
callq 0x5070
testl %eax, %eax
je 0x14bcc
movl $0xa, %edx
movq %rbx, %rdi
leaq 0xeb97(%rip), %rsi      # 0x23881
callq 0x5070
testl %eax, %eax
je 0x14bcc
movl %ebp, %eax
addq 0x10(%rsp), %rax
movq 0x48(%rsp), %rbx
movq %rax, %r14
cmpq 0x28(%rbx), %rax
jb 0x14d2a
movl 0xc(%rsp), %edi
movq %r12, %rsi
callq 0x69b3
movl %eax, %eax
addq %r14, %rax
movq 0x28(%rbx), %rcx
addq 0x30(%rbx), %rcx
cmpq %rcx, %rax
jbe 0x14d45
movq 0x10(%rbx), %rsi
movq 0x20(%rbx), %rcx
movl $0x33, %edi
leaq 0xfbe3(%rip), %rdx      # 0x24921
xorl %eax, %eax
callq 0x6f84
addq $0x1c, %r15
movl 0xc(%rsp), %edi
movq %r15, %rsi
callq 0x69b3
movq 0x18(%rsp), %rdi
movl %eax, %esi
callq 0xbe4a
movq %rax, %r12
testq %rax, %rax
jne 0x14dc1
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x40(%rsp)
movl 0xc(%rsp), %ebx
movl %ebx, %edi
movq %r13, %rsi
callq 0x69b3
movl %eax, %r13d
addq 0xb8(%rsp), %r13
movq 0x18(%rsp), %rdi
callq 0x7174
movq %rax, %rbp
movl %ebx, %edi
movq %r15, %rsi
callq 0x69b3
movl $0x34, %edi
movq 0x40(%rsp), %rsi
movq %r13, %rdx
movq %rbp, %rcx
movl %eax, %r8d
xorl %eax, %eax
callq 0x6f84
movl 0x30(%rsp), %eax
movq %rax, 0x80(%rsp)
cmpl 0x60(%rsp), %eax
ja 0x14bcc
movq %r14, %r13
movzwl 0x3c(%rsp), %eax
movl %eax, 0x7c(%rsp)
movq 0x48(%rsp), %r15
movq %r15, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
movl 0x7c(%rsp), %edx
callq 0x142ac
movq %rax, 0x70(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
movl 0x3c(%rsp), %edx
callq 0x1440e
movq %rax, %r14
leaq 0x4(%r13), %rbp
movl 0xc(%rsp), %r15d
movl %r15d, %edi
movq %rbp, %rsi
callq 0x69b3
movl %eax, %ebx
shrl $0x4, %ebx
andl $-0x10, %ebx
movl %r15d, %edi
movq %r13, 0x60(%rsp)
movq %r13, %rsi
callq 0x69b3
movl %eax, %r13d
movq %r14, 0x30(%rsp)
leaq (%r14,%rbx), %rsi
addq $0xe, %rsi
movl %r15d, %edi
callq 0x6993
movw %ax, 0x40(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movq $0x0, 0xb0(%rsp)
movl %r15d, %edi
movq %rbp, %rsi
callq 0x69b3
movzbl %al, %edi
leaq 0xa0(%rsp), %rsi
callq *0x98(%rsp)
testb %al, %al
je 0x15033
movl %r13d, %ecx
movzbl %al, %r14d
cmpl $0x4, 0x6c(%rsp)
jne 0x14ec6
movq %rcx, %r13
movq 0x60(%rsp), %rax
leaq 0x8(%rax), %rsi
movl 0xc(%rsp), %ebp
movl %ebp, %edi
callq 0x69b3
cltq
movq %rax, 0x58(%rsp)
jmp 0x14f02
movq 0x40(%r12), %rdx
movq %rcx, %r13
addq %rcx, %rdx
movzwl 0xa8(%rsp), %ecx
movzwl 0xaa(%rsp), %r8d
movq 0xb0(%rsp), %r9
movq 0x50(%rsp), %rdi
movl %r14d, %esi
callq 0xb4bf
cltq
movq %rax, 0x58(%rsp)
movl 0xc(%rsp), %ebp
movq 0x30(%rsp), %rax
addq %rbx, %rax
movq %rax, %rbx
movzwl 0x40(%rsp), %ecx
movzwl %cx, %esi
cmpl $0xfff2, %esi           # imm = 0xFFF2
movq %rax, 0x30(%rsp)
je 0x14f26
testl %esi, %esi
jne 0x14f5e
movq 0x70(%rsp), %rsi
addq $0x18, %rsi
movl %ebp, %edi
callq 0x69b3
movq 0x48(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl %eax, %edx
callq 0x14362
movq %rax, %r15
movl %ebp, %edi
movq %rbx, %rsi
callq 0x69b3
movl %eax, %ebx
addq %r15, %rbx
xorl %r15d, %r15d
jmp 0x14fa7
movb 0xc(%rbx), %al
andb $0xf, %al
cmpb $0x3, %al
jne 0x14f76
movq 0x18(%rsp), %rdi
callq 0xbe4a
movq %rax, %r15
jmp 0x14fa5
jae 0x15052
cmpw $-0x10, %cx
ja 0x15052
movq 0x18(%rsp), %rdi
callq 0xbe4a
movq %rax, %r15
leaq 0x4(%rbx), %rsi
movl %ebp, %edi
callq 0x69b3
movl %eax, %eax
addq %rax, 0x58(%rsp)
xorl %ebx, %ebx
movq 0x50(%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
movq %r13, %rbp
movq %r13, %r9
pushq 0x58(%rsp)
pushq %r14
callq 0xb202
addq $0x10, %rsp
movq %rax, %r15
leaq 0xa0(%rsp), %r13
movzwl 0x8(%r13), %edx
movzwl 0xa(%r13), %ecx
movq 0x10(%r13), %r8
movq %r12, %rdi
movq %r15, %rsi
callq 0xb2b7
movq (%r13), %r13
testq %r13, %r13
jne 0x14fd8
testq %rbx, %rbx
je 0x15012
movq 0x30(%rsp), %rax
movb 0xc(%rax), %al
andb $-0x10, %al
cmpb $0x20, %al
jne 0x15012
orb $0x1, 0x39(%r15)
cmpl $0x4, 0x6c(%rsp)
jne 0x15033
addq 0x40(%r12), %rbp
movq 0x50(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
movq 0x58(%rsp), %rcx
callq 0xb5b0
movq 0x60(%rsp), %r13
addq 0x80(%rsp), %r13
decl 0x90(%rsp)
jne 0x14de3
jmp 0x14bcc
movq 0x48(%rsp), %r15
movq 0x10(%r15), %rax
movq %rax, 0x40(%rsp)
movq 0x20(%r15), %rax
movq %rax, 0xc0(%rsp)
movq 0x70(%rsp), %rsi
addq $0x18, %rsi
movl %ebp, %edi
callq 0x69b3
movq %r15, %rdi
movq 0x10(%rsp), %rsi
movl %eax, %edx
callq 0x14362
movq %rax, %r15
movl %ebp, %edi
movq %rbx, %rsi
callq 0x69b3
movl %eax, %ecx
addq %r15, %rcx
movzbl 0xc(%rbx), %r8d
andl $0xf, %r8d
leaq 0xe7df(%rip), %rdi      # 0x2388c
movq 0x40(%rsp), %rsi
movq 0xc0(%rsp), %rdx
xorl %eax, %eax
callq 0x52b0
xorl %ebx, %ebx
jmp 0x14f59
cmpl $0x2, %eax
jne 0x150e9
movq 0x50(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rcx
callq 0x146be
jmp 0x14bcc
movq 0x28(%rsp), %r15
movq 0x10(%r15), %r14
movl 0xc(%rsp), %edi
movq %rbx, %rsi
callq 0x69b3
movq 0x20(%r15), %rcx
movl $0x30, %edi
movq %r14, %rsi
movl %eax, %edx
xorl %eax, %eax
callq 0x6f84
jmp 0x14bcc
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0xe3e1(%rip), %rdi      # 0x23509
leaq 0xe3ca(%rip), %rsi      # 0x234f9
xorl %eax, %eax
callq 0x52b0
jmp 0x158f6
movq 0x10(%rsp), %rax
leaq 0x30(%rax), %rsi
movl %r13d, %edi
callq 0x6993
movl %eax, %ebp
cmpw $0x2, %ax
movw %ax, 0x80(%rsp)
jb 0x154ca
movzwl %bp, %ebp
movl $0x1, %ebx
movq $0x0, 0x88(%rsp)
xorl %r15d, %r15d
movzwl %bx, %edx
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x142ac
movq %rax, %r14
leaq 0x4(%rax), %rsi
movl %r13d, %edi
callq 0x69b3
cmpl $0x7, %eax
jg 0x151c7
cmpl $0x1, %eax
je 0x151d6
cmpl $0x6, %eax
jne 0x151f3
addq $0x10, %r14
movl %r13d, %edi
movq %r14, %rsi
callq 0x69b3
movl %eax, %eax
addq 0x10(%rsp), %rax
movq %rax, 0x88(%rsp)
jmp 0x151f3
cmpl $0x8, %eax
je 0x151d6
cmpl $0xb, %eax
jne 0x151f3
movl %ebx, %r15d
jmp 0x151f3
movq 0x50(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r14, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x144bf
incl %ebx
cmpl %ebx, %ebp
jne 0x15177
movzwl %r15w, %eax
movq %rax, 0x90(%rsp)
movzwl 0x80(%rsp), %ebp
jmp 0x154e2
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x20(%rax), %rdx
movl $0x29, %edi
xorl %eax, %eax
callq 0x6f84
jmp 0x158f6
movl $0x0, 0xc(%rsp)
movq 0x10(%rsp), %rax
cmpb $0x2, 0x5(%rax)
sete %bl
leaq 0xe637(%rip), %rsi      # 0x23886
movq 0x18(%rsp), %rdi
callq 0xbe62
testq %rax, %rax
je 0x158f6
movq %rax, %r14
movl 0x90(%rax), %edx
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x14362
movq %rax, 0x40(%rsp)
movq 0x48(%r14), %rbp
cmpq $0xc, %rbp
movq %r14, 0x48(%rsp)
jb 0x15496
movl 0xc(%rsp), %eax
movb %bl, %al
movl %eax, 0xc(%rsp)
movq 0x40(%r14), %r15
leaq 0x6(%r15), %rsi
movl 0xc(%rsp), %ebx
movl %ebx, %edi
callq 0x6993
movl %eax, %r14d
leaq 0x8(%r15), %rsi
movl %ebx, %edi
movq %r15, %rbx
callq 0x69b3
movl %eax, 0x98(%rsp)
addq $-0xc, %rbp
addq $0xc, %r15
testw %r14w, %r14w
je 0x15480
movzwl %r14w, %r13d
addq $0x14, %rbx
movq $0x0, 0x58(%rsp)
movl $0x0, 0x70(%rsp)
subq $0xc, %rbp
jae 0x15318
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x20(%rax), %rcx
movl $0x76, %edi
leaq 0xe576(%rip), %rdx      # 0x23887
xorl %eax, %eax
callq 0x6f84
cmpl $0x0, (%r15)
je 0x15338
movl 0xc(%rsp), %edi
movq %r15, %rsi
callq 0x69b3
movl %eax, %eax
addq 0x40(%rsp), %rax
movq %rax, 0x60(%rsp)
jmp 0x15341
movq $0x0, 0x60(%rsp)
movzbl 0x4(%r15), %eax
andl $0x1e, %eax
cmpl $0x8, %eax
ja 0x153a4
movl $0x150, %ecx            # imm = 0x150
btl %eax, %ecx
jae 0x153a4
movq %rbx, %rsi
movq 0x48(%rsp), %rdi
subq 0x40(%rdi), %rsi
callq 0xb372
testq %rax, %rax
je 0x153a4
movq %rax, %r12
cmpb $0x1, 0x38(%rax)
jne 0x15383
movq 0x30(%r12), %rax
cmpw $0x20, 0xa(%rax)
je 0x15398
leaq 0xe58e(%rip), %rdi      # 0x23918
leaq 0xe57b(%rip), %rsi      # 0x2390c
xorl %eax, %eax
callq 0x52b0
movq 0x18(%r12), %r14
movl 0x28(%r12), %r12d
jmp 0x153b7
leaq 0x8(%r15), %rsi
movl 0xc(%rsp), %edi
callq 0x69b3
movl %eax, %r12d
xorl %r14d, %r14d
movzbl 0x4(%r15), %eax
cmpl $0x44, %eax
movq %rbp, 0x10(%rsp)
movq %rbx, 0x30(%rsp)
je 0x153e7
cmpl $0x24, %eax
jne 0x15426
cmpl $0x0, (%r15)
je 0x15402
testq %r14, %r14
je 0x1540e
movl %r12d, 0x70(%rsp)
movq %r14, 0x58(%rsp)
jmp 0x15426
testq %r14, %r14
cmoveq 0x58(%rsp), %r14
movl $0x0, %eax
cmovel 0x70(%rsp), %eax
addl %r12d, %eax
movl %eax, %r12d
jmp 0x15426
addl 0x70(%rsp), %r12d
movq 0x58(%rsp), %r14
jmp 0x15426
leaq 0xe51c(%rip), %rdi      # 0x23931
leaq 0xe4f0(%rip), %rsi      # 0x2390c
xorl %eax, %eax
callq 0x52b0
xorl %r14d, %r14d
decl %r13d
movzbl 0x4(%r15), %ebx
movsbl 0x5(%r15), %ebp
leaq 0x6(%r15), %rsi
movl 0xc(%rsp), %edi
callq 0x6993
subq $0x8, %rsp
movswl %ax, %r9d
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq 0x68(%rsp), %rdx
movl %ebx, %ecx
movl %ebp, %r8d
pushq %r12
callq 0xb395
addq $0x10, %rsp
addq $0xc, %r15
movq 0x30(%rsp), %rbx
addq $0xc, %rbx
testl %r13d, %r13d
movq 0x10(%rsp), %rbp
jne 0x152f2
movl 0x98(%rsp), %eax
addq %rax, 0x40(%rsp)
cmpq $0xb, %rbp
ja 0x152a0
testq %rbp, %rbp
je 0x154bb
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x20(%rax), %rcx
leaq 0xe3d8(%rip), %rdx      # 0x23887
movl $0x76, %edi
xorl %eax, %eax
callq 0x6f84
movq 0x48(%rsp), %rdi
callq 0x6789
jmp 0x158f6
movq $0x0, 0x90(%rsp)
movq $0x0, 0x88(%rsp)
cmpw $0x2, %bp
jb 0x15873
movw $0x1, %r12w
movl $0x1ef, %r14d           # imm = 0x1EF
movl $0x0, 0x3c(%rsp)
movzwl %r12w, %edx
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x142ac
movq %rax, %r15
leaq 0x4(%rax), %rbx
movl %r13d, %edi
movq %rbx, %rsi
callq 0x69b3
cmpl $0xb, %eax
ja 0x15686
btl %eax, %r14d
jae 0x15541
incl %r12d
cmpw %bp, %r12w
jne 0x154ff
jmp 0x1587b
movl $0x210, %ecx            # imm = 0x210
btl %eax, %ecx
jae 0x15652
movq 0x50(%rsp), %rax
movzbl 0x50(%rax), %eax
leaq 0x19c21(%rip), %rcx     # 0x2f180
movq (%rcx,%rax,8), %rax
testb $0x8, 0xac(%rax)
je 0x15533
leaq 0x18(%r15), %rbx
movl %r13d, %edi
movq %rbx, %rsi
callq 0x69b3
cmpl 0x90(%rsp), %eax
jne 0x15533
leaq 0x10(%r15), %rsi
movl %r13d, %edi
callq 0x69b3
movl %eax, %r14d
addq 0x10(%rsp), %r14
leaq 0x24(%r15), %rsi
movl %r13d, %edi
callq 0x69b3
movl %eax, %ebp
movl %r13d, %edi
movq %rbx, %rsi
callq 0x69b3
movl %eax, 0x58(%rsp)
addq $0x14, %r15
movl %r13d, %edi
movq %r15, %rsi
callq 0x69b3
movl %eax, %r13d
xorl %edx, %edx
movl %ebp, 0x30(%rsp)
divl %ebp
movl %eax, %ebx
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rbp
cmpq 0x28(%rbp), %r14
jb 0x155fe
movl 0xc(%rsp), %edi
movq %r15, %rsi
callq 0x69b3
movl %eax, %eax
addq %r14, %rax
movq 0x28(%rbp), %rcx
addq 0x30(%rbp), %rcx
cmpq %rcx, %rax
jbe 0x15619
movq 0x10(%rbp), %rsi
movq 0x20(%rbp), %rcx
movl $0x33, %edi
leaq 0xf30f(%rip), %rdx      # 0x24921
xorl %eax, %eax
callq 0x6f84
movq %rbp, 0x48(%rsp)
movl 0x30(%rsp), %ebp
movq 0x18(%rsp), %rdi
callq 0xc30c
movq %rbp, 0x70(%rsp)
cmpl %r13d, %ebp
jbe 0x156ba
movl 0xc(%rsp), %r13d
movzwl 0x80(%rsp), %ebp
movl $0x1ef, %r14d           # imm = 0x1EF
jmp 0x15533
cmpl $0xb, %eax
jne 0x15686
movq %r15, %rsi
addq $0x18, %rsi
movl %r13d, %edi
callq 0x69b3
movl %eax, 0x3c(%rsp)
movq 0x50(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rcx
callq 0x146be
jmp 0x15533
movq 0x28(%rsp), %r15
movq 0x10(%r15), %r14
movl %r13d, %edi
movq %rbx, %rsi
callq 0x69b3
movq 0x20(%r15), %rcx
movl $0x3c, %edi
movq %r14, %rsi
movl $0x1ef, %r14d           # imm = 0x1EF
movl %eax, %edx
xorl %eax, %eax
callq 0x6f84
jmp 0x15533
movq %rax, %r15
movl %r12d, 0x7c(%rsp)
movzwl 0x58(%rsp), %eax
movl %eax, 0x6c(%rsp)
movq 0x48(%rsp), %r13
movl %ebx, 0x60(%rsp)
movq %r13, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
movl 0x6c(%rsp), %edx
callq 0x142ac
movq %rax, 0x40(%rsp)
movq %r13, %rdi
movq %rbx, %rsi
movl 0x58(%rsp), %edx
callq 0x1440e
movq %rax, %r12
leaq 0x4(%r14), %rbp
movl 0xc(%rsp), %r13d
movl %r13d, %edi
movq %rbp, %rsi
callq 0x69b3
movl %eax, %ebx
shrl $0x4, %ebx
andl $-0x10, %ebx
movl %r13d, %edi
movq %r14, %rsi
callq 0x69b3
movq %r12, 0x30(%rsp)
leaq (%r12,%rbx), %rsi
addq $0xe, %rsi
movl %r13d, %edi
callq 0x6993
cmpw $-0xe, %ax
je 0x1574c
movzwl %ax, %eax
testl %eax, %eax
jne 0x15840
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movq $0x0, 0xb0(%rsp)
movl 0xc(%rsp), %edi
movq %rbp, %rsi
callq 0x69b3
movzbl %al, %edi
leaq 0xa0(%rsp), %rsi
callq *0x98(%rsp)
testb %al, %al
je 0x15840
movl %eax, %ebp
movq 0x30(%rsp), %r12
addq %rbx, %r12
movq 0x40(%rsp), %rsi
addq $0x18, %rsi
movl 0xc(%rsp), %ebx
movl %ebx, %edi
callq 0x69b3
movq 0x48(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl %eax, %edx
callq 0x14362
movq %rax, 0x40(%rsp)
movl %ebx, %edi
movq %r12, 0x30(%rsp)
movq %r12, %rsi
callq 0x69b3
movl %eax, %r13d
addq 0x40(%rsp), %r13
movl %ebx, %edi
movq %r14, %rsi
callq 0x69b3
movl %eax, %r9d
movzbl %bpl, %eax
movq 0x50(%rsp), %rdi
movq %r15, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq $0x0
pushq %rax
callq 0xb202
addq $0x10, %rsp
movq %rax, %rbx
leaq 0xa0(%rsp), %r13
movzwl 0x8(%r13), %edx
movzwl 0xa(%r13), %ecx
movq 0x10(%r13), %r8
movq %r15, %rdi
movq %rbx, %rsi
callq 0xb2b7
movq (%r13), %r13
testq %r13, %r13
jne 0x1580c
movq 0x30(%rsp), %rax
movb 0xc(%rax), %al
andb $-0x10, %al
cmpb $0x20, %al
jne 0x15840
orb $0x1, 0x39(%rbx)
addq 0x70(%rsp), %r14
movl 0x60(%rsp), %ebx
decl %ebx
movq 0x48(%rsp), %r13
jne 0x156d0
movl 0xc(%rsp), %r13d
movzwl 0x80(%rsp), %ebp
movl $0x1ef, %r14d           # imm = 0x1EF
movl 0x7c(%rsp), %r12d
jmp 0x15533
movl $0x0, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
testw %ax, %ax
movq 0x88(%rsp), %r14
je 0x158f6
testq %r14, %r14
je 0x158f6
movzwl %ax, %edx
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x142ac
movq %rax, %rbx
movl %r13d, %edi
movq %r14, %rsi
callq 0x69b3
testl %eax, %eax
je 0x158f6
cmpl $0xe, %eax
je 0x158c0
addq $0x8, %r14
jmp 0x158a6
addq $0x10, %rbx
movl %r13d, %edi
movq %rbx, %rsi
callq 0x69b3
movl %eax, %eax
movq 0x10(%rsp), %rbx
addq %rax, %rbx
addq $0x4, %r14
movl %r13d, %edi
movq %r14, %rsi
callq 0x69b3
movl %eax, %eax
addq %rbx, %rax
movq 0x18(%rsp), %rcx
movq %rax, 0x18(%rcx)
movq 0x50(%rsp), %rdi
movq 0x18(%rsp), %rsi
xorl %edx, %edx
callq 0xc040
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq