// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathmsc.cpp
// Function: start_log_track()
void start_log_track()
{
int color;

   if(log_file == 0) return;

   ++gpx_track_number;
   if((log_fmt == GPX) || (log_fmt == XML)) {
      fprintf(log_file, "  <trk>\n");
      fprintf(log_file, "    <name>Lady Heather data</name>\n");
      fprintf(log_file, "    <number>%d</number>\n", gpx_track_number);
      fprintf(log_file, "    <trkseg>\n\n");
   }
   else if(log_fmt == KML) {
      color = (gpx_track_number % 15) + 8;  // 1..15
      if(color > 15) color = color - 15;

      fprintf(log_file, "\n");
      fprintf(log_file, "    <Folder>\n");
      fprintf(log_file, "      <name>Track %04d/%02d/%02d  %02d:%02d:%02d</name>\n", pri_year,pri_month,pri_day, pri_hours,pri_minutes,pri_seconds);
      fprintf(log_file, "      <description>Lady Heather Track</description>\n");
      fprintf(log_file, "      <visibility>1</visibility>\n");
      fprintf(log_file, "      <open>0</open>\n");
      fprintf(log_file, "\n");
      fprintf(log_file, "      <Placemark>\n");
      fprintf(log_file, "        <visibility>0</visibility>\n");
      fprintf(log_file, "        <open>0</open>\n");
      fprintf(log_file, "        <styleUrl>color%d</styleUrl>\n", color);
      fprintf(log_file, "        <name>Track %d</name>\n", gpx_track_number);
      fprintf(log_file, "        <description>Track coordinates</description>\n");
      fprintf(log_file, "\n");
      fprintf(log_file, "        <LineString>\n");
      fprintf(log_file, "        <extrude>1</extrude>\n");
      fprintf(log_file, "        <tessellate>1</tessellate>\n");
//    fprintf(log_file, "        <altitudeMode>clampToGround</altitudeMode>\n");
      fprintf(log_file, "        <altitudeMode>absolute</altitudeMode>\n");
      fprintf(log_file, "          <coordinates>\n");
   }
   if(log_flush_mode && log_file) fflush(log_file);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x17ba20(%rip), %r14    # 0x23e360
movq (%r14), %rcx
testq %rcx, %rcx
je 0xc2c13
leaq 0x17baf9(%rip), %r15    # 0x23e44c
movl (%r15), %eax
incl %eax
movl %eax, (%r15)
leaq 0x17bae6(%rip), %rdx    # 0x23e448
movl (%rdx), %edx
cmpl $0xa, %edx
je 0xc2977
cmpl $0x1e, %edx
je 0xc29ce
cmpl $0x14, %edx
jne 0xc2be7
leaq 0x6a1cc(%rip), %rdi     # 0x12cb4a
movl $0x8, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a1bc(%rip), %rdi     # 0x12cb53
movl $0x23, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rdi
movl (%r15), %edx
leaq 0x6a1c4(%rip), %rsi     # 0x12cb77
xorl %eax, %eax
callq 0x9560
movq (%r14), %rcx
leaq 0x6a1cc(%rip), %rdi     # 0x12cb90
movl $0xe, %esi
jmp 0xc2bdd
movslq %eax, %rdx
imulq $-0x77777777, %rdx, %rdx # imm = 0x88888889
shrq $0x20, %rdx
addl %eax, %edx
movl %edx, %esi
shrl $0x1f, %esi
sarl $0x3, %edx
addl %esi, %edx
leal (%rdx,%rdx,4), %edx
leal (%rdx,%rdx,2), %edx
movl %eax, %esi
subl %edx, %esi
leal 0x8(%rsi), %edi
negl %edx
cmpl $0x8, %esi
leal -0x7(%rax,%rdx), %ebx
cmovll %edi, %ebx
movl $0xa, %edi
movq %rcx, %rsi
callq 0x9480
movq (%r14), %rcx
leaq 0x6a187(%rip), %rdi     # 0x12cb9f
movl $0xd, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rdi
leaq 0x24aae3(%rip), %rax    # 0x30d514
movl (%rax), %edx
leaq 0x24aad6(%rip), %rax    # 0x30d510
movl (%rax), %ecx
leaq 0x24aac9(%rip), %rax    # 0x30d50c
movl (%rax), %r8d
leaq 0x24aabb(%rip), %rax    # 0x30d508
movl (%rax), %r9d
leaq 0x24aaad(%rip), %rax    # 0x30d504
movl (%rax), %r10d
leaq 0x24aa9f(%rip), %rax    # 0x30d500
movl (%rax), %r11d
leaq 0x6a142(%rip), %rsi     # 0x12cbad
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x9560
addq $0x10, %rsp
movq (%r14), %rcx
leaq 0x6a162(%rip), %rdi     # 0x12cbe6
movl $0x34, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a17e(%rip), %rdi     # 0x12cc1b
movl $0x21, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a1c0(%rip), %rdi     # 0x12cc76
movl $0x15, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rsi
movl $0xa, %edi
callq 0x9480
movq (%r14), %rcx
leaq 0x6a161(%rip), %rdi     # 0x12cc3d
movl $0x12, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a15b(%rip), %rdi     # 0x12cc50
movl $0x23, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a166(%rip), %rdi     # 0x12cc74
movl $0x17, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rdi
leaq 0x6a165(%rip), %rsi     # 0x12cc8c
movl %ebx, %edx
xorl %eax, %eax
callq 0x9560
movq (%r14), %rdi
movl (%r15), %edx
leaq 0x6a175(%rip), %rsi     # 0x12ccb2
xorl %eax, %eax
callq 0x9560
movq (%r14), %rcx
leaq 0x6a183(%rip), %rdi     # 0x12ccd1
movl $0x35, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rsi
movl $0xa, %edi
callq 0x9480
movq (%r14), %rcx
leaq 0x6a193(%rip), %rdi     # 0x12cd07
movl $0x15, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a190(%rip), %rdi     # 0x12cd1d
movl $0x1d, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a195(%rip), %rdi     # 0x12cd3b
movl $0x23, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a1a0(%rip), %rdi     # 0x12cd5f
movl $0x2e, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a1b6(%rip), %rdi     # 0x12cd8e
movl $0x18, %esi
movl $0x1, %edx
callq 0x9750
leaq 0x17b832(%rip), %rax    # 0x23e420
cmpl $0x0, (%rax)
setne %al
movq (%r14), %rdi
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xc2c13
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x9420
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq