// File: /workspace/github_cpp_makefile_star2_O3/buildsi[P]ldaudit-yaml/auditlib.cpp
// Function: la_objopen
unsigned int la_objopen(struct link_map *map, Lmid_t lmid, uintptr_t *cookie) {
 
  std::string flagName;
  std::string linkType;
  switch(lmid) {
    case LM_ID_BASE:
      flagName = "LM_ID_BASE";
      linkType = "Link map is part of the initial namespace";
      break;
    case LM_ID_NEWLM:
      flagName = "LM_ID_NEWLM";
      linkType = "Link map is part of a new namespace requested via dlmopen(3).";
      break;
    default:
      flagName = "???";
      linkType = "Unknown";
  }

  std::stringstream ss;
  ss << cookie;
   
  std::string output = "  - event: object_loaded\n    name: \"" + std::string(map->l_name) + "\"\n    function: la_objopen\n    identifier: " + ss.str() + "\n    flag: " + flagName + "\n    description: " + linkType +"\n";
  doPrint(output);
  return LA_FLG_BINDTO | LA_FLG_BINDFROM;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x338, %rsp            # imm = 0x338
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xe0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
cmpq $-0x1, %rsi
je 0x3ace
testq %rsi, %rsi
jne 0x3af8
leaq 0x299f(%rip), %rcx      # 0x644a
leaq 0x50(%rsp), %rdi
movl $0xa, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21f0
movl $0x29, %r8d
leaq 0x2989(%rip), %rcx      # 0x6455
jmp 0x3b20
leaq 0x29aa(%rip), %rcx      # 0x647f
leaq 0x50(%rsp), %rdi
movl $0xb, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21f0
movl $0x3d, %r8d
leaq 0x2995(%rip), %rcx      # 0x648b
jmp 0x3b20
leaq 0x28dd(%rip), %rcx      # 0x63dc
leaq 0x50(%rsp), %rdi
movl $0x3, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21f0
movl $0x7, %r8d
leaq 0x29a9(%rip), %rcx      # 0x64c9
leaq 0xd0(%rsp), %rdi
movq 0x8(%rdi), %rdx
xorl %esi, %esi
callq 0x21f0
leaq 0x1b0(%rsp), %rdi
callq 0x20b0
leaq 0x1c0(%rsp), %rdi
movq %r14, %rsi
callq 0x20e0
movq 0x8(%rbx), %rsi
leaq 0x190(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x2210
leaq 0x2964(%rip), %rcx      # 0x64d1
leaq 0x190(%rsp), %rdi
movl $0x24, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
leaq 0xa0(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3bb4
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x3bba
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x90(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2916(%rip), %rsi      # 0x64f6
callq 0x2250
leaq 0x40(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3c0c
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x3c13
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1c8(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x2200
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %rbp, %rcx
je 0x3c5f
movq 0x40(%rsp), %rdi
movq 0x70(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x3c88
leaq 0x80(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x3c83
movq 0x80(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x3c94
leaq 0x30(%rsp), %rdi
callq 0x2060
jmp 0x3ca2
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
leaq 0x20(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x3cc6
movq %rsi, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x3ccc
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x273b(%rip), %rsi      # 0x642b
leaq 0x10(%rsp), %rdi
callq 0x2250
leaq 0x100(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3d2d
movq %rsi, %r13
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x3d36
movups (%rcx), %xmm0
movq %rsi, %r13
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0xf0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x2060
leaq 0x120(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3d94
movq %rdx, 0x110(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x120(%rsp)
jmp 0x3d9b
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x110(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2676(%rip), %rsi      # 0x6437
callq 0x2250
leaq 0x140(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3df7
movq %rdx, 0x130(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x140(%rsp)
jmp 0x3dff
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x130(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
callq 0x2060
leaq 0x160(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3e63
movq %rdx, 0x150(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x160(%rsp)
jmp 0x3e6a
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x150(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x246a(%rip), %rsi      # 0x62fa
callq 0x2250
leaq 0xc0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3ec5
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x3ecb
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x150(%rsp), %rdi
cmpq %r14, %rdi
je 0x3f03
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x130(%rsp), %rdi
cmpq %r12, %rdi
je 0x3f20
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x3f3d
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x3f5a
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f75
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f96
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3fad
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x3fd2
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x1a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ff3
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x180(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x170(%rsp), %rdi
callq 0x2090
leaq 0x170(%rsp), %rdi
callq 0x2823
movq 0x170(%rsp), %rdi
cmpq %r14, %rdi
je 0x4049
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0xb0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4066
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x4f4b(%rip), %rsi      # 0x8fb8
leaq 0x1b0(%rsp), %rdi
callq 0x20d0
leaq 0x230(%rsp), %rdi
callq 0x2070
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x40ac
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x40c8
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2130
movl $0x3, %eax
addq $0x338, %rsp            # imm = 0x338
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, (%rsp)
movq 0x170(%rsp), %rdi
cmpq %r14, %rdi
je 0x4106
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4106
movq %rax, (%rsp)
movq 0xb0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x426d
movq 0xc0(%rsp), %rsi
jmp 0x425d
movq %rax, (%rsp)
movq 0x150(%rsp), %rdi
cmpq %r14, %rdi
je 0x414b
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x414b
movq %rax, (%rsp)
movq 0x130(%rsp), %rdi
cmpq %r12, %rdi
je 0x416e
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x416e
movq %rax, (%rsp)
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x4191
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4191
movq %rax, (%rsp)
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x41b4
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x41b4
movq %rax, (%rsp)
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41d5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x41d5
movq %rax, (%rsp)
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41fc
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x41fc
movq %rax, (%rsp)
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4219
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4219
movq %rax, (%rsp)
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x4244
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4244
movq %rax, (%rsp)
leaq 0x1a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x426d
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x426d
jmp 0x4269
movq %rax, (%rsp)
movq 0x4d44(%rip), %rsi      # 0x8fb8
leaq 0x1b0(%rsp), %rdi
callq 0x20d0
leaq 0x230(%rsp), %rdi
callq 0x2070
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x42b3
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x42cf
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2130
movq (%rsp), %rdi
callq 0x2230
jmp 0x42da
movq %rax, (%rsp)
jmp 0x428e