// File: /workspace/github_cpp_makefile_star2_O1/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 0xde82
movq %rsp, %rdi
leaq 0x20(%rsp), %r14
movq %r14, %rsi
callq 0x3300
movq (%r14), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x877d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x6d76(%rip), %rdi      # 0xf4fa
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6d67(%rip), %rdi      # 0xf504
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6d5b(%rip), %rdi      # 0xf511
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6d4e(%rip), %rdi      # 0xf51d
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6b63(%rip), %rdi      # 0xf34b
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6d28(%rip), %rdi      # 0xf529
movl $0xa, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6b3b(%rip), %rdi      # 0xf355
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6d01(%rip), %rdi      # 0xf534
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6aad(%rip), %rdi      # 0xf2f9
movl $0x6, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
movq (%rsp), %rdx
leaq 0x6aa2(%rip), %rsi      # 0xf30b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3360
leaq 0x6abb(%rip), %rdi      # 0xf335
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6cae(%rip), %rdi      # 0xf541
movl $0xd, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6ca3(%rip), %rdi      # 0xf54f
movl $0xd, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6a7a(%rip), %rdi      # 0xf33f
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6c7f(%rip), %rdi      # 0xf55d
movl $0x11, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6c78(%rip), %rdi      # 0xf56f
movl $0x11, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
leaq 0x6c71(%rip), %rdi      # 0xf581
movl $0xa, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x34c0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x3310
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x8945
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 0x896a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
movq %rbx, %rdi
callq 0x3470