// File: /workspace/github_cpp_makefile_star2_O3/buildsi[P]ldaudit-yaml/auditlib.cpp
// Function: la_version
unsigned int la_version(unsigned int version) {
  // If version == 0 the library will be ignored by the linker.
  if (version == 0) {
    return version;
  } 

  // Prepare output - top of the yaml, and first event (version)
  std::string output = "auditlib:\n  la_version: " + std::to_string(version) + "\n  audits:\n";
  output += "  - event: handshake\n    function: la_version\n    value: " + std::to_string(version) + "\n";
  doPrint(output);

  return LAV_CURRENT;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
testl %edi, %edi
je 0x244f
movl %edi, %ebx
movl $0x1, %eax
cmpl $0xa, %edi
jb 0x245d
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebx, %edx
cmpl $0x63, %edx
jbe 0x2456
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x245b
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x245d
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x241e
addl $-0x3, %eax
jmp 0x245d
xorl %eax, %eax
jmp 0x274f
addl $-0x2, %eax
jmp 0x245d
decl %eax
movl %eax, %esi
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x2160
movq (%r14), %rdi
movl 0x8(%r14), %esi
movl %ebx, %edx
callq 0x21a0
leaq 0x3ba3(%rip), %rcx      # 0x6030
movl $0x18, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x24c6
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x24ce
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3b58(%rip), %rsi      # 0x6049
callq 0x2250
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x251d
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x2524
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2553
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x256a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2130
movl $0x1, %eax
cmpl $0xa, %ebx
jb 0x25b8
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebx, %edx
cmpl $0x63, %edx
jbe 0x25b1
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x25b6
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x25b8
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x2580
addl $-0x3, %eax
jmp 0x25b8
addl $-0x2, %eax
jmp 0x25b8
decl %eax
movl %eax, %esi
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x88(%rsp), %rdi
xorl %edx, %edx
callq 0x2160
leaq 0x88(%rsp), %r14
movq (%r14), %rdi
movl 0x8(%r14), %esi
movl %ebx, %edx
callq 0x21a0
leaq 0x3a63(%rip), %rcx      # 0x6055
movl $0x39, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
movq %r12, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2627
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x262f
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3ca8(%rip), %rsi      # 0x62fa
callq 0x2250
movq %r13, 0x8(%rsp)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x267a
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2685
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq %r13, %rsi
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
callq 0x2060
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x26be
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x26d5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x26f2
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x2090
leaq 0x68(%rsp), %rdi
callq 0x2823
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x2733
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x274a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2130
movl $0x2, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x27d4
movq 0x78(%rsp), %rsi
jmp 0x27c7
jmp 0x27d1
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2796
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x2796
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x27b2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x27b2
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x27d4
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x27d4
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x281b
movq 0x58(%rsp), %rsi
jmp 0x2813
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2804
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x2804
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x281b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2130
movq %rbx, %rdi
callq 0x2230