// File: /workspace/github_cpp_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x176a04(%rip), %r14    # 0x228360
movq (%r14), %rcx
testq %rcx, %rcx
je 0xb1be0
leaq 0x176add(%rip), %r12    # 0x22844c
movl (%r12), %eax
incl %eax
movl %eax, (%r12)
leaq 0x176ac8(%rip), %rdx    # 0x228448
movl (%rdx), %edx
cmpl $0xa, %edx
je 0xb1995
cmpl $0x1e, %edx
je 0xb19e5
cmpl $0x14, %edx
jne 0xb1bb0
leaq 0x650ce(%rip), %rdi     # 0x116a6a
pushq $0x8
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rcx
leaq 0x650bf(%rip), %rdi     # 0x116a73
pushq $0x23
popq %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rdi
movl (%r12), %edx
leaq 0x650ca(%rip), %rsi     # 0x116a97
xorl %eax, %eax
callq 0x9560
movq (%r14), %rcx
leaq 0x650d2(%rip), %rdi     # 0x116ab0
pushq $0xe
jmp 0xb1ba7
pushq $0xf
popq %rsi
cltd
idivl %esi
leal -0x7(%rdx), %eax
leal 0x8(%rdx), %r15d
cmpl $0x8, %edx
cmovgel %eax, %r15d
pushq $0xa
popq %r13
movl %r13d, %edi
movq %rcx, %rsi
callq 0x9480
movq (%r14), %rcx
leaq 0x650ad(%rip), %rdi     # 0x116abf
pushq $0xd
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rdi
leaq 0x245aea(%rip), %rax    # 0x2f7514
movl (%rax), %edx
leaq 0x245add(%rip), %rax    # 0x2f7510
movl (%rax), %ecx
leaq 0x245ad0(%rip), %rax    # 0x2f750c
movl (%rax), %r8d
leaq 0x245ac2(%rip), %rax    # 0x2f7508
movl (%rax), %r9d
leaq 0x245ab4(%rip), %rax    # 0x2f7504
movl (%rax), %r10d
leaq 0x245aa6(%rip), %rax    # 0x2f7500
movl (%rax), %r11d
leaq 0x65069(%rip), %rsi     # 0x116acd
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x9560
popq %rcx
popq %rdx
movq (%r14), %rcx
leaq 0x6508b(%rip), %rdi     # 0x116b06
pushq $0x34
popq %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rcx
leaq 0x650ab(%rip), %rdi     # 0x116b3b
pushq $0x21
popq %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rcx
leaq 0x650f1(%rip), %rdi     # 0x116b96
pushq $0x15
popq %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rsi
movl %r13d, %edi
callq 0x9480
movq (%r14), %rcx
leaq 0x65098(%rip), %rdi     # 0x116b5d
pushq $0x12
popq %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rcx
leaq 0x65096(%rip), %rdi     # 0x116b70
pushq $0x23
popq %r13
movq %r13, %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rcx
leaq 0x650a1(%rip), %rdi     # 0x116b94
pushq $0x17
popq %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rdi
leaq 0x650a4(%rip), %rsi     # 0x116bac
movl %r15d, %edx
xorl %eax, %eax
callq 0x9560
movq (%r14), %rdi
movl (%r12), %edx
leaq 0x650b2(%rip), %rsi     # 0x116bd2
xorl %eax, %eax
callq 0x9560
movq (%r14), %rcx
leaq 0x650c0(%rip), %rdi     # 0x116bf1
pushq $0x35
popq %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rsi
pushq $0xa
popq %rdi
callq 0x9480
movq (%r14), %rcx
leaq 0x650d6(%rip), %rdi     # 0x116c27
pushq $0x15
popq %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rcx
leaq 0x650d7(%rip), %rdi     # 0x116c3d
pushq $0x1d
popq %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rcx
leaq 0x650e0(%rip), %rdi     # 0x116c5b
movq %r13, %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rcx
leaq 0x650ef(%rip), %rdi     # 0x116c7f
pushq $0x2e
popq %rsi
movq %rbx, %rdx
callq 0x9750
movq (%r14), %rcx
leaq 0x65109(%rip), %rdi     # 0x116cae
pushq $0x18
popq %rsi
movq %rbx, %rdx
callq 0x9750
leaq 0x176869(%rip), %rax    # 0x228420
cmpl $0x0, (%rax)
setne %al
movq (%r14), %rdi
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xb1be0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9420
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq