// File: /workspace/github_cpp_makefile_star2_O2/buildsi[P]ldaudit-yaml/auditlib.cpp
// Function: la_activity
void la_activity (uintptr_t *cookie, unsigned int flag) {

  std::string flagName;
  std::string desc;
  switch(flag) {
    case LA_ACT_CONSISTENT:
      flagName = "LA_ACT_CONSISTENT";
      desc = "Link-map activity has been completed (map is consistent)";
      break;
    case LA_ACT_ADD:
      flagName = "LA_ACT_ADD";
      desc = "New objects are being added to the link map.";
      break;
    case LA_ACT_DELETE:
      flagName = "LA_ACT_DELETE";
      desc = "Objects are being removed from the link map.";
      break;
    default:
      flagName = "???";
    }

  std::stringstream ss;
  ss << cookie;
   
  std::string output = "  - event: activity_occurring\n    function: la_activity\n    initiated_by: " + ss.str() + "\n    flag: " + flagName + "\n    description: "+ desc +"\n";
  doPrint(output);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %rbx
xorl %ecx, %ecx
leaq 0x30(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb %cl, (%rax)
movb %cl, (%rdx)
leaq 0x20(%rsp), %r14
cmpl $0x2, %esi
je 0x2bf0
cmpl $0x1, %esi
je 0x2bd8
testl %esi, %esi
jne 0x2c08
leaq 0x1757(%rip), %rsi      # 0x431e
movq %rsp, %rdi
callq 0x22a0
leaq 0x175a(%rip), %rsi      # 0x4330
jmp 0x2c12
leaq 0x178a(%rip), %rsi      # 0x4369
movq %rsp, %rdi
callq 0x22a0
leaq 0x1786(%rip), %rsi      # 0x4374
jmp 0x2c12
leaq 0x17aa(%rip), %rsi      # 0x43a1
movq %rsp, %rdi
callq 0x22a0
leaq 0x17a9(%rip), %rsi      # 0x43af
jmp 0x2c12
leaq 0x17cd(%rip), %rsi      # 0x43dc
movq %rsp, %r14
movq %r14, %rdi
callq 0x22a0
leaq 0x140(%rsp), %rdi
callq 0x20b0
leaq 0x150(%rsp), %rdi
movq %rbx, %rsi
callq 0x20e0
leaq 0x158(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x2220
leaq 0x1790(%rip), %rsi      # 0x43e0
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x2240
leaq 0x17c2(%rip), %rdx      # 0x442b
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x2050
leaq 0xc0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
movq %rsp, %rdx
callq 0x21e0
leaq 0x179a(%rip), %rdx      # 0x4437
leaq 0xe0(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x2050
leaq 0x100(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x21e0
leaq 0x1627(%rip), %rdx      # 0x42fa
leaq 0x120(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x2050
leaq 0x100(%rsp), %rdi
callq 0x20a0
leaq 0xe0(%rsp), %rdi
callq 0x20a0
leaq 0xc0(%rsp), %rdi
callq 0x20a0
leaq 0xa0(%rsp), %rdi
callq 0x20a0
leaq 0x80(%rsp), %rdi
callq 0x20a0
leaq 0x60(%rsp), %rdi
callq 0x20a0
leaq 0x40(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x21a0
leaq 0x40(%rsp), %rdi
callq 0x25c5
leaq 0x40(%rsp), %rdi
callq 0x20a0
leaq 0x120(%rsp), %rdi
callq 0x20a0
leaq 0x140(%rsp), %rdi
callq 0x20d0
leaq 0x20(%rsp), %rdi
callq 0x20a0
movq %rsp, %rdi
callq 0x20a0
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x20a0
jmp 0x2da2
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
jmp 0x2e09
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0x20a0
jmp 0x2dc1
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x20a0
jmp 0x2dd3
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x20a0
jmp 0x2de5
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x20a0
jmp 0x2df7
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x20a0
leaq 0x60(%rsp), %rdi
callq 0x20a0
jmp 0x2e1a
movq %rax, %rbx
jmp 0x2e04
jmp 0x2e17
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x20d0
jmp 0x2e2e
jmp 0x2e2b
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x20a0
movq %rsp, %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2270