// File: /workspace/github_cpp_makefile_star2_O3/buildsi[P]ldaudit-yaml/auditlib.cpp
// Function: la_symbind32
uintptr_t la_symbind32(Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook,
               uintptr_t *defcook, unsigned int *flags, const char *symname) {

  std::stringstream refcookie;
  refcookie << refcook;
  std::stringstream defcookie;
  defcookie << defcook;

  std::string desc;
  switch (*flags) {
    case LA_SYMB_DLSYM:
      desc = "The binding resulted from a call to dlsym(3).";     
      break;
    case LA_SYMB_ALTVALUE:
      desc = "A previous la_symbind*() call returned an alternate value for this symbol.";
      break;
    default:
      desc = "Unknown";
  }
   
  std::string output = "  - event: symbol_bind\n    name: \"" + std::string(symname) + "\"\n    function: la_symbind32\n    where_needed: " + refcookie.str() + "\n    where_defined: " + defcookie.str() +"\n    index_symbol: " + std::to_string(ndx) + "\n    description: " + desc + "\n";
  doPrint(output);

  return sym->st_value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x528, %rsp            # imm = 0x528
movq %r9, %r12
movq %r8, %r13
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, 0x190(%rsp)
leaq 0x3a0(%rsp), %rbx
movq %rbx, %rdi
callq 0x20b0
leaq 0x3b0(%rsp), %rdi
movq %r14, %rsi
callq 0x20e0
leaq 0x218(%rsp), %rdi
callq 0x20b0
leaq 0x228(%rsp), %rdi
movq %r15, %rsi
callq 0x20e0
leaq 0x180(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl (%r13), %eax
cmpl $0x8, %eax
je 0x45c1
cmpl $0x10, %eax
jne 0x45d0
movl $0x4a, %r8d
leaq 0x1fd5(%rip), %rcx      # 0x6594
jmp 0x45dd
movl $0x2d, %r8d
leaq 0x1f98(%rip), %rcx      # 0x6566
jmp 0x45dd
movl $0x7, %r8d
leaq 0x1eec(%rip), %rcx      # 0x64c9
leaq 0x170(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21f0
leaq 0x1f8(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r12, %rsi
callq 0x2210
leaq 0x1fd5(%rip), %rcx      # 0x65df
leaq 0x1f8(%rsp), %rdi
movl $0x22, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
leaq 0x160(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4651
movq %rdx, 0x150(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x160(%rsp)
jmp 0x4657
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x150(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1f85(%rip), %rsi      # 0x6602
callq 0x2250
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x46aa
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x46b2
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3b8(%rsp), %rsi
leaq 0x130(%rsp), %rdi
callq 0x2200
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x138(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x4704
movq 0x20(%rsp), %rdi
movq 0x130(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x4730
leaq 0x140(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x472b
movq 0x140(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x473c
leaq 0x10(%rsp), %rdi
callq 0x2060
jmp 0x474d
leaq 0x130(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
leaq 0x40(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x4771
movq %rsi, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x4777
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x1e97(%rip), %rsi      # 0x6632
leaq 0x30(%rsp), %rdi
callq 0x2250
leaq 0xc0(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47d6
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x47de
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x230(%rsp), %rsi
leaq 0x110(%rsp), %rdi
callq 0x2200
movq 0xb0(%rsp), %rcx
movq 0xb8(%rsp), %r8
movq 0x118(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x483c
movq 0xc0(%rsp), %rdi
movq 0x110(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x4868
leaq 0x120(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x4863
movq 0x120(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x4877
leaq 0xb0(%rsp), %rdi
callq 0x2060
jmp 0x4888
leaq 0x110(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
leaq 0x60(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x48ac
movq %rsi, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x48b2
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x1d71(%rip), %rsi      # 0x6647
leaq 0x50(%rsp), %rdi
callq 0x2250
leaq 0xe0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4910
movq %rdx, 0xd0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe0(%rsp)
jmp 0x4917
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0xd8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x4980
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x4979
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x497e
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x4980
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x4948
addl $-0x3, %eax
jmp 0x4980
addl $-0x2, %eax
jmp 0x4980
decl %eax
movl %eax, %esi
leaq 0xa0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x90(%rsp), %rdi
xorl %edx, %edx
callq 0x2160
movq 0x90(%rsp), %rdi
movl 0x98(%rsp), %esi
movl %ebp, %edx
callq 0x21a0
movq 0xd0(%rsp), %rcx
movq 0xd8(%rsp), %r8
movq 0x98(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0x49e1
movq 0xe0(%rsp), %rdi
movq 0x90(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x4a05
movl $0xf, %edi
cmpq %r14, %rsi
je 0x4a00
movq 0xa0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x4a14
leaq 0xd0(%rsp), %rdi
callq 0x2060
jmp 0x4a25
leaq 0x90(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
leaq 0x80(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x4a4f
movq %rsi, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x4a55
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x19be(%rip), %rsi      # 0x6437
leaq 0x70(%rsp), %rdi
callq 0x2250
leaq 0x1a8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4ab3
movq %rdx, 0x198(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1a8(%rsp)
jmp 0x4abb
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq %r15, %rbp
movq 0x8(%rax), %rdx
leaq 0x198(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x170(%rsp), %rsi
movq 0x178(%rsp), %rdx
callq 0x2060
leaq 0x1c8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4b22
movq %rdx, 0x1b8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1c8(%rsp)
jmp 0x4b29
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x1b8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x17ab(%rip), %rsi      # 0x62fa
callq 0x2250
leaq 0x100(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4b84
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x4b8a
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xf8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x1b8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4bc2
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x198(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x160(%rsp), %r13
je 0x4be7
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x20(%rsp), %r15
je 0x4c0d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x90(%rsp), %rdi
cmpq %r14, %rdi
je 0x4c2a
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0xd0(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x218(%rsp), %r14
je 0x4c4f
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c6a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c8b
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0xb0(%rsp), %rdi
cmpq %r12, %rdi
je 0x4ca8
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4cc3
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ce4
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x4cfb
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x150(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d18
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x208(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d39
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x1e8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1d8(%rsp), %rdi
callq 0x2090
leaq 0x1d8(%rsp), %rdi
callq 0x2823
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4d8f
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x190(%rsp), %rax
movl 0x4(%rax), %r15d
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x4dc0
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x4de5
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x41cc(%rip), %r12      # 0x8fb8
movq %r14, %rdi
movq %r12, %rsi
callq 0x20d0
movl $0x80, %r13d
addq %r13, %r14
movq %r14, %rdi
callq 0x2070
movq %rbx, %rdi
movq %r12, %rsi
callq 0x20d0
addq %r13, %rbx
movq %rbx, %rdi
callq 0x2070
movq %r15, %rax
addq $0x528, %rsp            # imm = 0x528
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4e58
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4e58
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x505c
movq 0x100(%rsp), %rsi
jmp 0x5036
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4ea3
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4ea3
movq %rax, %rbx
movq 0x198(%rsp), %rdi
cmpq %r13, %rdi
je 0x4ec8
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4ec8
movq %r15, %rbp
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ef1
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4ef1
movq %r15, %rbp
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f16
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4f16
movq %r15, %rbp
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4f38
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4f38
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4f58
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4f58
movq %rax, %rbx
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4f7e
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4f7e
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r12, %rdi
je 0x4fa0
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4fa0
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4fbb
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4fdc
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4ff8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x501d
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x208(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x505c
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x505c
movq %rax, %rbx
jmp 0x4fbb
movq %rax, %rbx
jmp 0x4fdc
movq %rax, %rbx
jmp 0x4ff8
movq %rax, %rbx
jmp 0x501d
jmp 0x5059
movq %rax, %rbx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x5081
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x3f30(%rip), %rsi      # 0x8fb8
leaq 0x218(%rsp), %rdi
callq 0x20d0
leaq 0x298(%rsp), %rdi
callq 0x2070
movq 0x3f0f(%rip), %rsi      # 0x8fb8
leaq 0x3a0(%rsp), %rdi
callq 0x20d0
leaq 0x420(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2230
movq %rax, %rbx
jmp 0x5081
jmp 0x50d2
movq %rax, %rbx
jmp 0x50a2