// File: /workspace/github_cpp_makefile_star2_O1/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 0x45c9
cmpl $0x10, %eax
jne 0x45d8
movl $0x4a, %r8d
leaq 0x1fcd(%rip), %rcx      # 0x6594
jmp 0x45e5
movl $0x2d, %r8d
leaq 0x1f90(%rip), %rcx      # 0x6566
jmp 0x45e5
movl $0x7, %r8d
leaq 0x1ee4(%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 0x1fcd(%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 0x4659
movq %rdx, 0x150(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x160(%rsp)
jmp 0x465f
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 0x1f7d(%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 0x46b2
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x46ba
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, %esi
cmpq %r12, %rcx
je 0x470c
movq 0x20(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4731
leaq 0x140(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x472c
movq 0x140(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4745
movq 0x130(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x2060
jmp 0x4756
leaq 0x130(%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 0x477a
movq %rsi, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x4780
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 0x1e8e(%rip), %rsi      # 0x6632
leaq 0x50(%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 0x47df
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x47e7
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, %esi
cmpq %r12, %rcx
je 0x4845
movq 0xc0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x486a
leaq 0x120(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x4865
movq 0x120(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4881
movq 0x110(%rsp), %rsi
leaq 0xb0(%rsp), %rdi
callq 0x2060
jmp 0x4892
leaq 0x110(%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 0x48bc
movq %rsi, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x48c2
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 0x1d61(%rip), %rsi      # 0x6647
leaq 0x70(%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 0x4920
movq %rdx, 0xd0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe0(%rsp)
jmp 0x4927
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 0x4990
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x4989
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x498e
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x4990
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x4958
addl $-0x3, %eax
jmp 0x4990
addl $-0x2, %eax
jmp 0x4990
decl %eax
movl %eax, %esi
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x30(%rsp), %rdi
xorl %edx, %edx
callq 0x2160
movq 0x30(%rsp), %rdi
movl 0x38(%rsp), %esi
movl %ebp, %edx
callq 0x21a0
movq 0xd0(%rsp), %rcx
movq 0xd8(%rsp), %r8
movq 0x38(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0x49e2
movq 0xe0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x49fd
movl $0xf, %esi
cmpq %r14, 0x30(%rsp)
je 0x49f8
movq 0x40(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4a11
movq 0x30(%rsp), %rsi
leaq 0xd0(%rsp), %rdi
callq 0x2060
jmp 0x4a1f
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
leaq 0xa0(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x4a4c
movq %rsi, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x4a52
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x98(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x19be(%rip), %rsi      # 0x6437
leaq 0x90(%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 0x4ab6
movq %rdx, 0x198(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1a8(%rsp)
jmp 0x4abe
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 0x4b25
movq %rdx, 0x1b8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1c8(%rsp)
jmp 0x4b2c
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 0x17a8(%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 0x4b87
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x4b8d
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 0x4bc5
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x198(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x160(%rsp), %r13
je 0x4bea
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x20(%rsp), %r15
je 0x4c10
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x4c27
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0xd0(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x218(%rsp), %r14
je 0x4c4c
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c6d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c8e
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0xb0(%rsp), %rdi
cmpq %r12, %rdi
je 0x4cab
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4cc6
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ce7
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x4cfe
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x150(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d1b
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x208(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d3c
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 0x282a
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4d92
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 0x4dc3
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x4de8
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x41c9(%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 0x4e5b
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4e5b
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x505f
movq 0x100(%rsp), %rsi
jmp 0x5039
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4ea6
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4ea6
movq %rax, %rbx
movq 0x198(%rsp), %rdi
cmpq %r13, %rdi
je 0x4ecb
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4ecb
movq %r15, %rbp
movq %rax, %rbx
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ef4
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4ef4
movq %r15, %rbp
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f13
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4f13
movq %r15, %rbp
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4f35
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4f35
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4f5b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4f5b
movq %rax, %rbx
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4f81
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4f81
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r12, %rdi
je 0x4fa3
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4fa3
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4fbe
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4fdf
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4ffb
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x5020
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x208(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x505f
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x505f
movq %rax, %rbx
jmp 0x4fbe
movq %rax, %rbx
jmp 0x4fdf
movq %rax, %rbx
jmp 0x4ffb
movq %rax, %rbx
jmp 0x5020
jmp 0x505c
movq %rax, %rbx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x5084
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x3f2d(%rip), %rsi      # 0x8fb8
leaq 0x218(%rsp), %rdi
callq 0x20d0
leaq 0x298(%rsp), %rdi
callq 0x2070
movq 0x3f0c(%rip), %rsi      # 0x8fb8
leaq 0x3a0(%rsp), %rdi
callq 0x20d0
leaq 0x420(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2230
movq %rax, %rbx
jmp 0x5084
jmp 0x50d5
movq %rax, %rbx
jmp 0x50a5