// File: /workspace/github_cpp_makefile_star2_O1/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 0x17bffe(%rip), %r14    # 0x23e360
movq (%r14), %rcx
testq %rcx, %rcx
je 0xc2635
leaq 0x17c0d7(%rip), %r15    # 0x23e44c
movl (%r15), %eax
incl %eax
movl %eax, (%r15)
leaq 0x17c0c4(%rip), %rdx    # 0x23e448
movl (%rdx), %edx
cmpl $0xa, %edx
je 0xc2399
cmpl $0x1e, %edx
je 0xc23f0
cmpl $0x14, %edx
jne 0xc2609
leaq 0x6a6ba(%rip), %rdi     # 0x12ca5a
movl $0x8, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a6aa(%rip), %rdi     # 0x12ca63
movl $0x23, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rdi
movl (%r15), %edx
leaq 0x6a6b2(%rip), %rsi     # 0x12ca87
xorl %eax, %eax
callq 0x9560
movq (%r14), %rcx
leaq 0x6a6ba(%rip), %rdi     # 0x12caa0
movl $0xe, %esi
jmp 0xc25ff
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 0x6a675(%rip), %rdi     # 0x12caaf
movl $0xd, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rdi
leaq 0x24b0c1(%rip), %rax    # 0x30d514
movl (%rax), %edx
leaq 0x24b0b4(%rip), %rax    # 0x30d510
movl (%rax), %ecx
leaq 0x24b0a7(%rip), %rax    # 0x30d50c
movl (%rax), %r8d
leaq 0x24b099(%rip), %rax    # 0x30d508
movl (%rax), %r9d
leaq 0x24b08b(%rip), %rax    # 0x30d504
movl (%rax), %r10d
leaq 0x24b07d(%rip), %rax    # 0x30d500
movl (%rax), %r11d
leaq 0x6a630(%rip), %rsi     # 0x12cabd
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x9560
addq $0x10, %rsp
movq (%r14), %rcx
leaq 0x6a650(%rip), %rdi     # 0x12caf6
movl $0x34, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a66c(%rip), %rdi     # 0x12cb2b
movl $0x21, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a6ae(%rip), %rdi     # 0x12cb86
movl $0x15, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rsi
movl $0xa, %edi
callq 0x9480
movq (%r14), %rcx
leaq 0x6a64f(%rip), %rdi     # 0x12cb4d
movl $0x12, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a649(%rip), %rdi     # 0x12cb60
movl $0x23, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a654(%rip), %rdi     # 0x12cb84
movl $0x17, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rdi
leaq 0x6a653(%rip), %rsi     # 0x12cb9c
movl %ebx, %edx
xorl %eax, %eax
callq 0x9560
movq (%r14), %rdi
movl (%r15), %edx
leaq 0x6a663(%rip), %rsi     # 0x12cbc2
xorl %eax, %eax
callq 0x9560
movq (%r14), %rcx
leaq 0x6a671(%rip), %rdi     # 0x12cbe1
movl $0x35, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rsi
movl $0xa, %edi
callq 0x9480
movq (%r14), %rcx
leaq 0x6a681(%rip), %rdi     # 0x12cc17
movl $0x15, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a67e(%rip), %rdi     # 0x12cc2d
movl $0x1d, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a683(%rip), %rdi     # 0x12cc4b
movl $0x23, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a68e(%rip), %rdi     # 0x12cc6f
movl $0x2e, %esi
movl $0x1, %edx
callq 0x9750
movq (%r14), %rcx
leaq 0x6a6a4(%rip), %rdi     # 0x12cc9e
movl $0x18, %esi
movl $0x1, %edx
callq 0x9750
leaq 0x17be10(%rip), %rax    # 0x23e420
cmpl $0x0, (%rax)
setne %al
movq (%r14), %rdi
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xc2635
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