// File: /workspace/github_cpp_makefile_star2_O1/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 0x3ad5
testq %rsi, %rsi
jne 0x3aff
leaq 0x2998(%rip), %rcx      # 0x644a
leaq 0x50(%rsp), %rdi
movl $0xa, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21f0
movl $0x29, %r8d
leaq 0x2982(%rip), %rcx      # 0x6455
jmp 0x3b27
leaq 0x29a3(%rip), %rcx      # 0x647f
leaq 0x50(%rsp), %rdi
movl $0xb, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21f0
movl $0x3d, %r8d
leaq 0x298e(%rip), %rcx      # 0x648b
jmp 0x3b27
leaq 0x28d6(%rip), %rcx      # 0x63dc
leaq 0x50(%rsp), %rdi
movl $0x3, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x21f0
movl $0x7, %r8d
leaq 0x29a2(%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 0x295d(%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 0x3bbb
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x3bc1
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 0x290f(%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 0x3c13
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x3c1a
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, %esi
cmpq %rbp, %rcx
je 0x3c66
movq 0x40(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x3c8b
leaq 0x80(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x3c86
movq 0x80(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x3c9c
movq 0x70(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x2060
jmp 0x3caa
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 0x3cce
movq %rsi, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x3cd4
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 0x2733(%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 0x3d35
movq %rsi, %r13
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x3d3e
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 0x3d9c
movq %rdx, 0x110(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x120(%rsp)
jmp 0x3da3
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 0x266e(%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 0x3dff
movq %rdx, 0x130(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x140(%rsp)
jmp 0x3e07
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 0x3e6b
movq %rdx, 0x150(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x160(%rsp)
jmp 0x3e72
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 0x2462(%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 0x3ecd
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x3ed3
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 0x3f0b
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x130(%rsp), %rdi
cmpq %r12, %rdi
je 0x3f28
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x3f45
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x3f62
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f7d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f9e
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3fb5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x3fda
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x1a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ffb
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 0x282a
movq 0x170(%rsp), %rdi
cmpq %r14, %rdi
je 0x4051
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0xb0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x406e
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x4f43(%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 0x40b4
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x40d0
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 0x410e
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x410e
movq %rax, (%rsp)
movq 0xb0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4275
movq 0xc0(%rsp), %rsi
jmp 0x4265
movq %rax, (%rsp)
movq 0x150(%rsp), %rdi
cmpq %r14, %rdi
je 0x4153
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4153
movq %rax, (%rsp)
movq 0x130(%rsp), %rdi
cmpq %r12, %rdi
je 0x4176
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4176
movq %rax, (%rsp)
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x4199
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4199
movq %rax, (%rsp)
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x41bc
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x41bc
movq %rax, (%rsp)
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41dd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x41dd
movq %rax, (%rsp)
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4204
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4204
movq %rax, (%rsp)
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4221
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4221
movq %rax, (%rsp)
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x424c
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x424c
movq %rax, (%rsp)
leaq 0x1a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4275
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4275
jmp 0x4271
movq %rax, (%rsp)
movq 0x4d3c(%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 0x42bb
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x42d7
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2130
movq (%rsp), %rdi
callq 0x2230
jmp 0x42e2
movq %rax, (%rsp)
jmp 0x4296