// File: /workspace/github_cpp_makefile_star2_O2/4n6ist[P]usn_analytics/lib/usnjrnl.cpp
// Function: UsnJrnl::UsnJrnl(char*, char*)
UsnJrnl::UsnJrnl(char *ifname, char *odname) {
  offset = 0;

  if((fp_in = fopen(ifname, "rb")) == NULL) {
    perror("Input File Error");
    exit(EXIT_FAILURE);
  }
  
  string ofreport;
  ofreport = string(odname) + SEP + "usn_analytics_report.txt";
  fp_ofreport = fopen(ofreport.c_str(), "w");
      
  if(fp_ofreport == NULL ) {
    perror("Output File Error");
    exit(EXIT_FAILURE);
  }

  file_size = get_file_size(ifname);
  printf("%llu bytes (%s)\n", file_size, ifname);  
  fprintf(fp_ofreport, "%llu bytes (%s)\n", file_size, ifname);     
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movq %rdi, %rbx
leaq 0x70(%rdi), %rax
andl $0x0, 0x70(%rdi)
andq $0x0, 0x78(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
andq $0x0, 0x60(%rdi)
movq %rax, 0x80(%rdi)
movq %rax, 0x88(%rdi)
andq $0x0, 0x90(%rdi)
leaq 0xa0(%rdi), %rax
andl $0x0, 0xa0(%rdi)
andq $0x0, 0xa8(%rdi)
movq %rax, 0xb0(%rdi)
movq %rax, 0xb8(%rdi)
andq $0x0, 0xc0(%rdi)
leaq 0xd0(%rdi), %rax
andl $0x0, 0xd0(%rdi)
andq $0x0, 0xd8(%rdi)
movq %rax, 0xe0(%rdi)
movq %rax, 0xe8(%rdi)
andq $0x0, 0xf0(%rdi)
movq %rsi, %r14
andq $0x0, 0x8(%rdi)
leaq 0x889d(%rip), %rsi      # 0xc048
movq %r14, %rdi
callq 0x32f0
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x38ad
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r15, %rsi
callq 0x7072
leaq 0xeaaf(%rip), %rax      # 0x12299
movsbl (%rax), %edx
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x7050
leaq 0x8859(%rip), %rdx      # 0xc05c
leaq 0x78(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x7031
leaq 0x58(%rsp), %r15
leaq 0x78(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x3320
movq %r12, %rdi
callq 0x3100
leaq 0x38(%rsp), %rdi
callq 0x3100
leaq 0x18(%rsp), %rdi
callq 0x3100
movq (%r15), %rdi
leaq 0x9155(%rip), %rsi      # 0xc9a2
callq 0x32f0
movq %rax, 0x18(%rbx)
testq %rax, %rax
je 0x38b6
movq %r14, %rdi
callq 0xa692
movq %rax, (%rbx)
leaq 0x881a(%rip), %r15      # 0xc087
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3040
movq (%rbx), %rdx
movq 0x18(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rcx
xorl %eax, %eax
callq 0x3380
leaq 0x58(%rsp), %rdi
callq 0x3100
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8797(%rip), %rdi      # 0xc04b
jmp 0x38bd
leaq 0x87b8(%rip), %rdi      # 0xc075
callq 0x31f0
pushq $0x1
popq %rdi
callq 0x3310
jmp 0x38ee
movq %rax, 0x10(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x3100
jmp 0x38e2
movq %rax, 0x10(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x3100
jmp 0x38f3
movq %rax, 0x10(%rsp)
leaq 0x20(%rbx), %r15
leaq 0x50(%rbx), %r12
leaq 0x38(%rbx), %r13
leaq 0xc8(%rbx), %rbp
leaq 0x98(%rbx), %r14
addq $0x68, %rbx
leaq 0x58(%rsp), %rdi
callq 0x3100
movq %rbp, %rdi
callq 0x76f0
movq %r14, %rdi
callq 0x76f0
movq %rbx, %rdi
callq 0x7754
movq %r12, %rdi
callq 0x7010
movq %r13, %rdi
callq 0x790c
movq %r15, %rdi
callq 0x790c
movq 0x10(%rsp), %rdi
callq 0x3480
nop