// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x28(%rsp), %rdi
movl %edx, %esi
callq 0xb712
leaq 0x8(%rsp), %r13
leaq 0x28(%rsp), %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x3320
movq %r14, %rdi
callq 0x3100
leaq 0x59c4(%rip), %rdi      # 0xc4fa
pushq $0x9
popq %rbp
pushq $0x1
popq %r15
movq %rbp, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x59b2(%rip), %rdi      # 0xc504
pushq $0xc
popq %r14
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x59a6(%rip), %rdi      # 0xc511
pushq $0xb
popq %r12
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x5999(%rip), %rdi      # 0xc51d
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x57b2(%rip), %rdi      # 0xc34b
movq %rbp, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x597b(%rip), %rdi      # 0xc529
pushq $0xa
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x5792(%rip), %rdi      # 0xc355
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x595c(%rip), %rdi      # 0xc534
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x570c(%rip), %rdi      # 0xc2f9
pushq $0x6
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
movq (%r13), %rdx
leaq 0x5705(%rip), %rsi      # 0xc30b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3380
leaq 0x571e(%rip), %rdi      # 0xc335
movq %rbp, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x5915(%rip), %rdi      # 0xc541
pushq $0xd
popq %r14
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x590a(%rip), %rdi      # 0xc54f
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x56e5(%rip), %rdi      # 0xc33f
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x58ee(%rip), %rdi      # 0xc55d
pushq $0x11
popq %r14
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x58e7(%rip), %rdi      # 0xc56f
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
leaq 0x58e4(%rip), %rdi      # 0xc581
pushq $0xa
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x34d0
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x3330
movq %r13, %rdi
callq 0x3100
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x3480