// File: /workspace/github_cpp_makefile_star2_O3/4n6ist[P]usn_analytics/lib/usnjrnl.cpp
// Function: UsnJrnl::WriteAllHeader(_IO_FILE*, bool)
int UsnJrnl::WriteAllHeader(FILE *fp, bool lt) {
  string tzstr;
  tzstr = get_timezone_str(lt);
  
  fprintf(fp, "\"Offset\"\t");
  fprintf(fp, "\"RecLength\"\t");
  fprintf(fp, "\"MajorVer\"\t");
  fprintf(fp, "\"MinorVer\"\t");
  fprintf(fp, "\"FileID\"\t");
  fprintf(fp, "\"FileSeq\"\t");
  fprintf(fp, "\"ParentID\"\t");
  fprintf(fp, "\"ParentSeq\"\t");
  fprintf(fp, "\"Usn\"\t");
  fprintf(fp, "\"TimeStamp(%s)\"\t", tzstr.c_str());
  fprintf(fp, "\"Reason\"\t");
  fprintf(fp, "\"SourceInfo\"\t");
  fprintf(fp, "\"SecurityId\"\t");
  fprintf(fp, "\"FileAttr\"\t");
  fprintf(fp, "\"FileNameLength\"\t");
  fprintf(fp, "\"FileNameOffset\"\t");
  fprintf(fp, "\"FileName\"");
  fprintf(fp, "\n");
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq 0x20(%rsp), %rdi
movl %edx, %esi
callq 0xde4e
movq %rsp, %rdi
leaq 0x20(%rsp), %r14
movq %r14, %rsi
callq 0x3300
movq (%r14), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x87b5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x6d3e(%rip), %rdi      # 0xf4fa
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6d2f(%rip), %rdi      # 0xf504
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6d23(%rip), %rdi      # 0xf511
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6d16(%rip), %rdi      # 0xf51d
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6b2b(%rip), %rdi      # 0xf34b
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6cf0(%rip), %rdi      # 0xf529
movl $0xa, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6b03(%rip), %rdi      # 0xf355
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6cc9(%rip), %rdi      # 0xf534
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6a75(%rip), %rdi      # 0xf2f9
movl $0x6, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
movq (%rsp), %rdx
leaq 0x6a6a(%rip), %rsi      # 0xf30b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3350
leaq 0x6a83(%rip), %rdi      # 0xf335
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6c76(%rip), %rdi      # 0xf541
movl $0xd, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6c6b(%rip), %rdi      # 0xf54f
movl $0xd, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6a42(%rip), %rdi      # 0xf33f
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6c47(%rip), %rdi      # 0xf55d
movl $0x11, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6c40(%rip), %rdi      # 0xf56f
movl $0x11, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
leaq 0x6c39(%rip), %rdi      # 0xf581
movl $0xa, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34b0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x3310
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x897d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
xorl %eax, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x89a2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
movq %rbx, %rdi
callq 0x3460