// File: /workspace/github_c_makefile_star2_O3/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 $0xb8, %rsp
movq %rcx, 0x90(%rsp)
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
xorl %r13d, %r13d
cmpb $0x2, 0x5(%rdx)
sete %r13b
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x1407e
movq %rax, 0x58(%rsp)
movq 0x20(%r14), %rdx
movq %rbx, 0x38(%rsp)
movq %rbx, %rdi
movq %r14, 0x28(%rsp)
movq %r14, %rsi
callq 0xbeac
movq %rax, 0x10(%rsp)
leaq 0x10(%r12), %rsi
movl %r13d, %edi
callq 0x695f
cmpw $0x3, %ax
movq %r12, 0x60(%rsp)
movl %r13d, 0xc(%rsp)
je 0x14fd1
movzwl %ax, %eax
cmpl $0x2, %eax
je 0x14fae
cmpl $0x1, %eax
jne 0x15412
leaq 0x2c(%r12), %rsi
movl %r13d, %edi
callq 0x695f
testw %ax, %ax
je 0x149a1
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x20(%rax), %rdx
movl $0x2f, %edi
xorl %eax, %eax
callq 0x6f14
leaq 0x30(%r12), %rsi
movl %r13d, %edi
callq 0x695f
movw %ax, 0x1e(%rsp)
cmpw $0x2, %ax
jb 0x15430
movzwl 0x1e(%rsp), %ebp
movl $0x1, %ebx
movl $0x182, %r15d           # imm = 0x182
movzwl %bx, %edx
movq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x1413c
movq %rax, %r14
leaq 0x4(%rax), %rsi
movl %r13d, %edi
callq 0x696f
cmpl $0x8, %eax
ja 0x14a14
btl %eax, %r15d
jae 0x14a14
movq 0x38(%rsp), %rdi
movq %r12, %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rcx
movl %ebx, %r8d
movq 0x58(%rsp), %r9
callq 0x1434f
incl %ebx
cmpl %ebx, %ebp
jne 0x149cd
cmpw $0x2, 0x1e(%rsp)
jb 0x15430
movw $0x1, %ax
movl %eax, 0x78(%rsp)
movzwl %ax, %edx
movq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x1413c
movq %rax, %r14
leaq 0x4(%rax), %rbx
movl %r13d, %edi
movq %rbx, %rsi
callq 0x696f
cmpl $0x9, %eax
ja 0x14f80
movl $0x18b, %ecx            # imm = 0x18B
btl %eax, %ecx
jae 0x14a7f
movl 0x78(%rsp), %eax
incl %eax
cmpw 0x1e(%rsp), %ax
movq 0x60(%rsp), %r12
movl 0xc(%rsp), %r13d
jne 0x14a2a
jmp 0x15430
movq %r14, %r13
movl $0x210, %ecx            # imm = 0x210
btl %eax, %ecx
jae 0x14f5a
leaq 0x10(%r14), %rsi
movl 0xc(%rsp), %r12d
movl %r12d, %edi
callq 0x696f
movl %eax, %ebp
movl %r12d, %edi
movq %rbx, %rsi
callq 0x696f
movl %eax, 0x70(%rsp)
leaq 0x24(%r14), %rsi
movl %r12d, %edi
callq 0x696f
movl %eax, %ebx
leaq 0x18(%r14), %rsi
movl %r12d, %edi
callq 0x696f
movl %eax, 0x54(%rsp)
leaq 0x14(%r14), %r15
movl %r12d, %edi
movq %r15, %rsi
callq 0x696f
movl %eax, 0x68(%rsp)
xorl %edx, %edx
movl %ebx, 0x30(%rsp)
divl %ebx
movl %eax, 0x74(%rsp)
movl %r12d, %edi
movq %r13, %rsi
callq 0x696f
movq 0x10(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rcx, 0x48(%rsp)
movq 0x38(%rsp), %rcx
cmpb $0x0, 0x6c(%rcx)
je 0x14b8a
movl %eax, %ebx
addq 0x58(%rsp), %rbx
movl $0xa, %edx
movq %rbx, %rdi
leaq 0xed17(%rip), %rsi      # 0x23840
callq 0x5070
testl %eax, %eax
je 0x14a63
movl $0x9, %edx
movq %rbx, %rdi
leaq 0xed06(%rip), %rsi      # 0x2384b
callq 0x5070
testl %eax, %eax
je 0x14a63
movl $0xb, %edx
movq %rbx, %rdi
leaq 0xecf4(%rip), %rsi      # 0x23855
callq 0x5070
testl %eax, %eax
je 0x14a63
movl $0xa, %edx
movq %rbx, %rdi
leaq 0xece4(%rip), %rsi      # 0x23861
callq 0x5070
testl %eax, %eax
je 0x14a63
movl %ebp, %ebp
addq 0x60(%rsp), %rbp
movq 0x48(%rsp), %rbx
cmpq 0x28(%rbx), %rbp
jb 0x14bba
movl 0xc(%rsp), %edi
movq %r15, %rsi
callq 0x696f
movl %eax, %eax
addq %rbp, %rax
movq 0x28(%rbx), %rcx
addq 0x30(%rbx), %rcx
cmpq %rcx, %rax
jbe 0x14bd5
movq 0x10(%rbx), %rsi
movq 0x20(%rbx), %rcx
movl $0x33, %edi
leaq 0xfd33(%rip), %rdx      # 0x24901
xorl %eax, %eax
callq 0x6f14
addq $0x1c, %r14
movl 0xc(%rsp), %edi
movq %r14, %rsi
callq 0x696f
movq 0x10(%rsp), %rdi
movl %eax, %esi
callq 0xbdad
movq %rax, %r12
testq %rax, %rax
jne 0x14c54
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
movl 0xc(%rsp), %ebx
movl %ebx, %edi
movq %r13, %rsi
callq 0x696f
movl %eax, %r15d
addq 0x58(%rsp), %r15
movq 0x10(%rsp), %rdi
callq 0x7104
movq %rbp, %r13
movq %rax, %rbp
movl %ebx, %edi
movq %r14, %rsi
callq 0x696f
movl $0x34, %edi
movq 0x20(%rsp), %rsi
movq %r15, %rdx
movq %rbp, %rcx
movq %r13, %rbp
movl %eax, %r8d
xorl %eax, %eax
callq 0x6f14
movl 0x30(%rsp), %eax
movq %rax, 0x80(%rsp)
cmpl 0x68(%rsp), %eax
ja 0x14a63
movzwl 0x54(%rsp), %eax
movl %eax, 0x9c(%rsp)
movq 0x48(%rsp), %r14
movq %r14, %rdi
movq 0x60(%rsp), %rbx
movq %rbx, %rsi
movl 0x9c(%rsp), %edx
callq 0x1413c
movq %rax, 0x88(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movl 0x54(%rsp), %edx
callq 0x1429e
movq %rax, %r13
movq %rbp, %r14
addq $0x4, %rbp
movl 0xc(%rsp), %r15d
movl %r15d, %edi
movq %rbp, %rsi
callq 0x696f
movl %eax, %ebx
shrl $0x4, %ebx
andl $-0x10, %ebx
movl %r15d, %edi
movq %r14, 0x30(%rsp)
movq %r14, %rsi
callq 0x696f
movl %eax, %r14d
movq %r13, 0x20(%rsp)
leaq (%rbx,%r13), %rsi
addq $0xe, %rsi
movl %r15d, %edi
callq 0x695f
movl %eax, %r13d
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movq $0x0, 0xb0(%rsp)
movl %r15d, %edi
movq %rbp, %rsi
callq 0x696f
movzbl %al, %edi
leaq 0xa0(%rsp), %rsi
callq *0x90(%rsp)
testb %al, %al
je 0x14ec2
movl %r14d, %ecx
movq %rcx, 0x68(%rsp)
movzbl %al, %r14d
cmpl $0x4, 0x70(%rsp)
jne 0x14d5b
movq 0x30(%rsp), %rax
leaq 0x8(%rax), %rsi
movl 0xc(%rsp), %edi
callq 0x696f
cltq
jmp 0x14d8d
movq 0x40(%r12), %rdx
addq 0x68(%rsp), %rdx
movzwl 0xa8(%rsp), %ecx
movzwl 0xaa(%rsp), %r8d
movq 0xb0(%rsp), %r9
movq 0x38(%rsp), %rdi
movl %r14d, %esi
callq 0xb3fc
cltq
movq %rax, 0x40(%rsp)
movq 0x20(%rsp), %rbp
addq %rbx, %rbp
movzwl %r13w, %esi
cmpl $0xfff2, %esi           # imm = 0xFFF2
je 0x14daa
testl %esi, %esi
jne 0x14def
movq 0x88(%rsp), %rsi
addq $0x18, %rsi
movl 0xc(%rsp), %ebx
movl %ebx, %edi
callq 0x696f
movq 0x48(%rsp), %rdi
movq 0x60(%rsp), %rsi
movl %eax, %edx
callq 0x141f2
movq %r14, %r15
movq %rax, %r14
movl %ebx, %edi
movq %rbp, %rsi
callq 0x696f
movl %eax, %ebx
addq %r14, %rbx
movq %r15, %r14
xorl %r15d, %r15d
jmp 0x14e3b
movb 0xc(%rbp), %al
andb $0xf, %al
cmpb $0x3, %al
jne 0x14e07
movq 0x10(%rsp), %rdi
callq 0xbdad
movq %rax, %r15
jmp 0x14e39
jae 0x14ede
cmpw $-0x10, %r13w
ja 0x14ede
movq 0x10(%rsp), %rdi
callq 0xbdad
movq %rax, %r15
leaq 0x4(%rbp), %rsi
movl 0xc(%rsp), %edi
callq 0x696f
movl %eax, %eax
addq %rax, 0x40(%rsp)
xorl %ebx, %ebx
movq 0x38(%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
movq 0x68(%rsp), %r9
pushq 0x40(%rsp)
pushq %r14
callq 0xb13c
addq $0x10, %rsp
movq %rax, %r15
leaq 0xa0(%rsp), %r14
movzwl 0x8(%r14), %edx
movzwl 0xa(%r14), %ecx
movq 0x10(%r14), %r8
movq %r12, %rdi
movq %r15, %rsi
callq 0xb1f1
movq (%r14), %r14
testq %r14, %r14
jne 0x14e6b
testq %rbx, %rbx
je 0x14e9f
movb 0xc(%rbp), %al
andb $-0x10, %al
cmpb $0x20, %al
jne 0x14e9f
orb $0x1, 0x39(%r15)
cmpl $0x4, 0x70(%rsp)
jne 0x14ec2
movq 0x68(%rsp), %rsi
addq 0x40(%r12), %rsi
movq 0x38(%rsp), %rdi
movq %r15, %rdx
movq 0x40(%rsp), %rcx
callq 0xb4ed
movq 0x30(%rsp), %rbp
addq 0x80(%rsp), %rbp
decl 0x74(%rsp)
jne 0x14c76
jmp 0x14a63
movq %r14, %r15
movq 0x48(%rsp), %r14
movq 0x10(%r14), %rbx
movq 0x20(%r14), %rax
movq %rax, 0x20(%rsp)
movq 0x88(%rsp), %rsi
addq $0x18, %rsi
movq %rbp, %r13
movl 0xc(%rsp), %ebp
movl %ebp, %edi
callq 0x696f
movq %r14, %rdi
movq 0x60(%rsp), %rsi
movl %eax, %edx
callq 0x141f2
movq %rax, %r14
movl %ebp, %edi
movq %r13, %rbp
movq %r13, %rsi
callq 0x696f
movl %eax, %ecx
addq %r14, %rcx
movq %r15, %r14
movzbl 0xc(%r13), %r8d
andl $0xf, %r8d
leaq 0xe928(%rip), %rdi      # 0x2386c
movq %rbx, %rsi
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x52b0
xorl %ebx, %ebx
jmp 0x14dea
movq %r13, %rcx
cmpl $0x2, %eax
movl 0xc(%rsp), %r13d
jne 0x14f80
movq 0x38(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x1454e
jmp 0x14a63
movq 0x28(%rsp), %r15
movq 0x10(%r15), %r14
movl %r13d, %edi
movq %rbx, %rsi
callq 0x696f
movq 0x20(%r15), %rcx
movl $0x30, %edi
movq %r14, %rsi
movl %eax, %edx
xorl %eax, %eax
callq 0x6f14
jmp 0x14a63
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0xe52b(%rip), %rdi      # 0x234e9
leaq 0xe514(%rip), %rsi      # 0x234d9
xorl %eax, %eax
callq 0x52b0
jmp 0x156c4
leaq 0x30(%r12), %rsi
movl %r13d, %edi
callq 0x695f
cmpw $0x2, %ax
jb 0x156c4
movw %ax, 0x48(%rsp)
movzwl %ax, %ebp
movl $0x1, %ebx
movq $0x0, 0x78(%rsp)
xorl %r15d, %r15d
movzwl %bx, %edx
movq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x1413c
movq %rax, %r14
leaq 0x4(%rax), %rsi
movl %r13d, %edi
callq 0x696f
cmpl $0x7, %eax
jg 0x1504a
cmpl $0x1, %eax
je 0x15059
cmpl $0x6, %eax
jne 0x15076
addq $0x10, %r14
movl %r13d, %edi
movq %r14, %rsi
callq 0x696f
movl %eax, %eax
addq %r12, %rax
movq %rax, 0x78(%rsp)
jmp 0x15076
cmpl $0x8, %eax
je 0x15059
cmpl $0xb, %eax
jne 0x15076
movl %ebx, %r15d
jmp 0x15076
movq 0x38(%rsp), %rdi
movq %r12, %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rcx
movl %ebx, %r8d
movq 0x58(%rsp), %r9
callq 0x1434f
incl %ebx
cmpl %ebx, %ebp
jne 0x15001
cmpw $0x2, 0x48(%rsp)
movq 0x78(%rsp), %rbp
jb 0x156c4
movq %rbp, 0x78(%rsp)
movzwl %r15w, %eax
movl %eax, 0x74(%rsp)
movw $0x1, %r14w
movl $0x1ef, %ebp            # imm = 0x1EF
movl $0x0, 0x54(%rsp)
movzwl %r14w, %edx
movq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x1413c
movq %rax, %r15
leaq 0x4(%rax), %rbx
movl %r13d, %edi
movq %rbx, %rsi
callq 0x696f
cmpl $0xb, %eax
ja 0x153d9
btl %eax, %ebp
jae 0x150ed
incl %r14d
cmpw 0x48(%rsp), %r14w
jne 0x150ac
jmp 0x156e7
movl $0x210, %ecx            # imm = 0x210
btl %eax, %ecx
jae 0x153a7
movq 0x38(%rsp), %rax
movzbl 0x50(%rax), %eax
leaq 0x1a075(%rip), %rcx     # 0x2f180
movq (%rcx,%rax,8), %rax
testb $0x8, 0xac(%rax)
je 0x150dd
leaq 0x18(%r15), %rbx
movl %r13d, %edi
movq %rbx, %rsi
callq 0x696f
cmpl 0x74(%rsp), %eax
jne 0x150dd
movl %r14d, 0x80(%rsp)
leaq 0x10(%r15), %rsi
movl %r13d, %edi
callq 0x696f
movl %eax, %r14d
addq %r12, %r14
leaq 0x24(%r15), %rsi
movl %r13d, %edi
callq 0x696f
movl %r13d, %ebp
movl %eax, %r13d
movl %ebp, %edi
movq %rbx, %rsi
callq 0x696f
movl %eax, 0x40(%rsp)
addq $0x14, %r15
movl %ebp, %edi
movq %r15, %rsi
callq 0x696f
movl %eax, %ebp
xorl %edx, %edx
movl %r13d, 0x30(%rsp)
divl %r13d
movl %eax, %ebx
movq 0x10(%rsp), %rax
movq 0x10(%rax), %r13
cmpq 0x28(%r13), %r14
jb 0x151b0
movl 0xc(%rsp), %edi
movq %r15, %rsi
callq 0x696f
movl %eax, %eax
addq %r14, %rax
movq 0x28(%r13), %rcx
addq 0x30(%r13), %rcx
cmpq %rcx, %rax
jbe 0x151cb
movq 0x10(%r13), %rsi
movq 0x20(%r13), %rcx
movl $0x33, %edi
leaq 0xf73d(%rip), %rdx      # 0x24901
xorl %eax, %eax
callq 0x6f14
movq %r13, 0x58(%rsp)
movl 0x30(%rsp), %r15d
movq 0x10(%rsp), %rdi
callq 0xc25f
movq %r15, 0x88(%rsp)
cmpl %ebp, %r15d
ja 0x15390
movq %rax, %r13
movzwl 0x40(%rsp), %eax
movl %eax, 0x70(%rsp)
movl %ebx, 0x68(%rsp)
movq 0x58(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movl 0x70(%rsp), %edx
callq 0x1413c
movq %rax, 0x20(%rsp)
movq %r15, %rdi
movq %r12, %rsi
movl 0x40(%rsp), %edx
callq 0x1429e
movq %rax, %rbx
leaq 0x4(%r14), %rbp
movl 0xc(%rsp), %r15d
movl %r15d, %edi
movq %rbp, %rsi
callq 0x696f
movl %eax, %r12d
shrl $0x4, %r12d
andl $-0x10, %r12d
movl %r15d, %edi
movq %r14, %rsi
callq 0x696f
movq %rbx, 0x30(%rsp)
leaq (%rbx,%r12), %rsi
addq $0xe, %rsi
movl %r15d, %edi
callq 0x695f
cmpw $-0xe, %ax
je 0x1527b
movzwl %ax, %eax
testl %eax, %eax
jne 0x15377
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movq $0x0, 0xb0(%rsp)
movl 0xc(%rsp), %edi
movq %rbp, %rsi
callq 0x696f
movzbl %al, %edi
leaq 0xa0(%rsp), %rsi
callq *0x90(%rsp)
testb %al, %al
je 0x15377
movl %eax, %ebp
movq 0x30(%rsp), %rbx
addq %r12, %rbx
movq 0x20(%rsp), %rsi
addq $0x18, %rsi
movl 0xc(%rsp), %r15d
movl %r15d, %edi
callq 0x696f
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
movl %eax, %edx
callq 0x141f2
movq %rax, 0x20(%rsp)
movl %r15d, %edi
movq %rbx, 0x30(%rsp)
movq %rbx, %rsi
callq 0x696f
movl %eax, %r12d
addq 0x20(%rsp), %r12
movl %r15d, %edi
movq %r14, %rsi
callq 0x696f
movl %eax, %r9d
movzbl %bpl, %eax
movq 0x38(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq $0x0
pushq %rax
callq 0xb13c
addq $0x10, %rsp
movq %rax, %r15
leaq 0xa0(%rsp), %r12
movzwl 0x8(%r12), %edx
movzwl 0xa(%r12), %ecx
movq 0x10(%r12), %r8
movq %r13, %rdi
movq %r15, %rsi
callq 0xb1f1
movq (%r12), %r12
testq %r12, %r12
jne 0x1533f
movq 0x30(%rsp), %rax
movb 0xc(%rax), %al
andb $-0x10, %al
cmpb $0x20, %al
jne 0x15377
orb $0x1, 0x39(%r15)
addq 0x88(%rsp), %r14
movl 0x68(%rsp), %ebx
decl %ebx
movq 0x60(%rsp), %r12
jne 0x151fc
movl 0xc(%rsp), %r13d
movl 0x80(%rsp), %r14d
movl $0x1ef, %ebp            # imm = 0x1EF
jmp 0x150dd
cmpl $0xb, %eax
jne 0x153d9
movq %r15, %rsi
addq $0x18, %rsi
movl %r13d, %edi
callq 0x696f
movl %eax, 0x54(%rsp)
movq 0x38(%rsp), %rdi
movq %r12, %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rcx
callq 0x1454e
jmp 0x150dd
movq 0x28(%rsp), %r15
movl %r14d, %ebp
movq 0x10(%r15), %r14
movl %r13d, %edi
movq %rbx, %rsi
callq 0x696f
movq 0x20(%r15), %rcx
movl $0x3c, %edi
movq %r14, %rsi
movl %ebp, %r14d
movl $0x1ef, %ebp            # imm = 0x1EF
movl %eax, %edx
xorl %eax, %eax
callq 0x6f14
jmp 0x150dd
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x20(%rax), %rdx
movl $0x29, %edi
xorl %eax, %eax
callq 0x6f14
jmp 0x156c4
movl $0x0, 0xc(%rsp)
cmpb $0x2, 0x5(%r12)
sete %bl
leaq 0xe41e(%rip), %rsi      # 0x23866
movq 0x10(%rsp), %rdi
callq 0xbdc5
testq %rax, %rax
je 0x156c4
movq %rax, %r14
movl 0x90(%rax), %edx
movq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x141f2
movq %rax, 0x48(%rsp)
movq 0x48(%r14), %r12
cmpq $0xc, %r12
movq %r14, 0x58(%rsp)
jb 0x15695
movl 0xc(%rsp), %eax
movb %bl, %al
movl %eax, 0xc(%rsp)
movq 0x40(%r14), %rbp
leaq 0x6(%rbp), %rsi
movl 0xc(%rsp), %ebx
movl %ebx, %edi
callq 0x695f
movl %eax, %r15d
leaq 0x8(%rbp), %rsi
movl %ebx, %edi
callq 0x696f
movl %eax, 0x90(%rsp)
addq $-0xc, %r12
leaq 0xc(%rbp), %r14
testw %r15w, %r15w
je 0x1567c
movzwl %r15w, %r13d
addq $0x14, %rbp
movq $0x0, 0x20(%rsp)
movl $0x0, 0x40(%rsp)
subq $0xc, %r12
jae 0x1550c
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x20(%rax), %rcx
movl $0x76, %edi
leaq 0xe362(%rip), %rdx      # 0x23867
xorl %eax, %eax
callq 0x6f14
cmpl $0x0, (%r14)
je 0x15527
movl 0xc(%rsp), %edi
movq %r14, %rsi
callq 0x696f
movl %eax, %ebx
addq 0x48(%rsp), %rbx
jmp 0x15529
xorl %ebx, %ebx
movzbl 0x4(%r14), %eax
andl $0x1e, %eax
cmpl $0x8, %eax
movq %r12, 0x60(%rsp)
ja 0x1558e
movl $0x150, %ecx            # imm = 0x150
btl %eax, %ecx
jae 0x1558e
movq %rbp, %rsi
movq 0x58(%rsp), %rdi
subq 0x40(%rdi), %rsi
callq 0xb2ac
testq %rax, %rax
je 0x1558e
movq %rax, %r15
cmpb $0x1, 0x38(%rax)
jne 0x1556f
movq 0x30(%r15), %rax
cmpw $0x20, 0xa(%rax)
je 0x15584
leaq 0xe382(%rip), %rdi      # 0x238f8
leaq 0xe36f(%rip), %rsi      # 0x238ec
xorl %eax, %eax
callq 0x52b0
movq 0x18(%r15), %r12
movl 0x28(%r15), %ecx
jmp 0x155a0
leaq 0x8(%r14), %rsi
movl 0xc(%rsp), %edi
callq 0x696f
movl %eax, %ecx
xorl %r12d, %r12d
movzbl 0x4(%r14), %r15d
cmpl $0x44, %r15d
movq %rbx, 0x30(%rsp)
movq %rbp, 0x68(%rsp)
je 0x155d8
cmpl $0x24, %r15d
jne 0x15600
cmpl $0x0, (%r14)
je 0x155f4
movb $0x24, %r15b
testq %r12, %r12
je 0x1565b
movl %ecx, 0x40(%rsp)
movq %r12, 0x20(%rsp)
jmp 0x15600
testq %r12, %r12
cmoveq 0x20(%rsp), %r12
movl $0x0, %eax
cmovel 0x40(%rsp), %eax
addl %ecx, %eax
movb $0x44, %r15b
movl %eax, %ebp
jmp 0x15603
addl 0x40(%rsp), %ecx
movb $0x24, %r15b
movq 0x20(%rsp), %r12
movq %rcx, %rbp
decl %r13d
movsbl 0x5(%r14), %ebx
leaq 0x6(%r14), %rsi
movl 0xc(%rsp), %edi
callq 0x695f
subq $0x8, %rsp
movswl %ax, %r9d
movzbl %r15b, %ecx
movq 0x18(%rsp), %rdi
movq %r12, %rsi
movq 0x38(%rsp), %rdx
movl %ebx, %r8d
pushq %rbp
callq 0xb2ca
addq $0x10, %rsp
addq $0xc, %r14
movq 0x68(%rsp), %rbp
addq $0xc, %rbp
testl %r13d, %r13d
movq 0x60(%rsp), %r12
jne 0x154e6
jmp 0x1567c
leaq 0xe2af(%rip), %rdi      # 0x23911
leaq 0xe283(%rip), %rsi      # 0x238ec
xorl %eax, %eax
movq %rcx, %rbp
callq 0x52b0
movb 0x4(%r14), %r15b
xorl %r12d, %r12d
jmp 0x15603
movl 0x90(%rsp), %eax
addq %rax, 0x48(%rsp)
movq %r14, %rbp
cmpq $0xb, %r12
ja 0x15497
testq %r12, %r12
je 0x156ba
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x20(%rax), %rcx
leaq 0xe1b9(%rip), %rdx      # 0x23867
movl $0x76, %edi
xorl %eax, %eax
callq 0x6f14
movq 0x58(%rsp), %rdi
callq 0x6759
movq 0x38(%rsp), %rdi
movq 0x10(%rsp), %rsi
xorl %edx, %edx
callq 0xbf8e
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x54(%rsp), %eax
testw %ax, %ax
movq 0x78(%rsp), %r14
je 0x156c4
testq %r14, %r14
je 0x156c4
movzwl %ax, %edx
movq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x1413c
movq %rax, %rbx
movl %r13d, %edi
movq %r14, %rsi
callq 0x696f
testl %eax, %eax
je 0x156c4
cmpl $0xe, %eax
je 0x15727
addq $0x8, %r14
jmp 0x1570d
addq $0x10, %rbx
movl %r13d, %edi
movq %rbx, %rsi
callq 0x696f
movl %eax, %eax
addq %rax, %r12
addq $0x4, %r14
movl %r13d, %edi
movq %r14, %rsi
callq 0x696f
movl %eax, %eax
addq %r12, %rax
movq 0x10(%rsp), %rcx
movq %rax, 0x18(%rcx)
jmp 0x156c4