LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: jkingan[P]ladyheather/heathui.cpp
// Function: set_monitor_params()
void set_monitor_params()
{
char *s;

   // setup monitor port and hex/ascii flag

   strupr(edit_buffer);

   s = trim_whitespace(edit_buffer);
   if(s == 0) return;

   if(isdigit(s[0])) {
      monitor_port = atoi(s);
   }
   if(strchr(s, 'D')) monitor_port = DAC_PORT;
   if(strchr(s, 'E')) monitor_port = ECHO_PORT;
   if(strchr(s, 'F')) monitor_port = FAN_PORT;
   if(strchr(s, 'I')) monitor_port = TICC_PORT;
   if(strchr(s, 'K')) monitor_port = NMEA_PORT;
   if(strchr(s, 'N')) monitor_port = THERMO_PORT;
   if(strchr(s, 'R')) monitor_port = RCVR_PORT;
   if(strchr(s, 'T')) monitor_port = TRACK_PORT;

   if(strchr(s, 'A')) monitor_hex = 0;
   if(strchr(s, 'H')) monitor_hex = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x3533f1(%rip), %rdi    # 0x39e4c0
callq 0x9890
leaq 0x3533e5(%rip), %rdi    # 0x39e4c0
callq 0xa150
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x4b0f0
jmp 0x4b25f
movq -0x8(%rbp), %rax
movsbl (%rax), %edi
callq 0x9330
cmpl $0x0, %eax
je 0x4b115
movq -0x8(%rbp), %rdi
callq 0x95c0
movl %eax, %ecx
leaq 0x32239d(%rip), %rax    # 0x36d4b0
movl %ecx, (%rax)
movq -0x8(%rbp), %rdi
movl $0x44, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x4b136
leaq 0x322380(%rip), %rax    # 0x36d4b0
movl $0x10, (%rax)
movq -0x8(%rbp), %rdi
movl $0x45, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x4b157
leaq 0x32235f(%rip), %rax    # 0x36d4b0
movl $0xb, (%rax)
movq -0x8(%rbp), %rdi
movl $0x46, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x4b178
leaq 0x32233e(%rip), %rax    # 0x36d4b0
movl $0x11, (%rax)
movq -0x8(%rbp), %rdi
movl $0x49, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x4b199
leaq 0x32231d(%rip), %rax    # 0x36d4b0
movl $0xd, (%rax)
movq -0x8(%rbp), %rdi
movl $0x4b, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x4b1ba
leaq 0x3222fc(%rip), %rax    # 0x36d4b0
movl $0xc, (%rax)
movq -0x8(%rbp), %rdi
movl $0x4e, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x4b1db
leaq 0x3222db(%rip), %rax    # 0x36d4b0
movl $0xf, (%rax)
movq -0x8(%rbp), %rdi
movl $0x52, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x4b1fc
leaq 0x3222ba(%rip), %rax    # 0x36d4b0
movl $0xa, (%rax)
movq -0x8(%rbp), %rdi
movl $0x54, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x4b21d
leaq 0x322299(%rip), %rax    # 0x36d4b0
movl $0x12, (%rax)
movq -0x8(%rbp), %rdi
movl $0x41, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x4b23e
leaq 0x2523ec(%rip), %rax    # 0x29d624
movl $0x0, (%rax)
movq -0x8(%rbp), %rdi
movl $0x48, %esi
callq 0x9100
cmpq $0x0, %rax
je 0x4b25f
leaq 0x2523cb(%rip), %rax    # 0x29d624
movl $0x1, (%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_ticc_mode()
void edit_ticc_mode()
{
int i;
unsigned port;

   if(rcvr_type == TICC_RCVR) port = RCVR_PORT;
   else if(ticc_port_open())  port = TICC_PORT;
   else {
      edit_error("No TICC device found.");
      return;
   }

   strupr(edit_buffer);
   i = edit_buffer[0];
   if     (i == 'T') ; // timestamp
   else if(i == 'I') ; // interval
   else if(i == 'P') ; // period
   else if(i == 'F') { // frequency
      if(ticc_type == TAPR_TICC) goto bad_mode;   // frequency
   }
   else if(i == 'H') { // phase
      if(ticc_type == TAPR_TICC) goto bad_mode;   // phase
   }
   else if(ticc_type != TAPR_TICC) {
      goto bad_mode;
   }
   else if(i == 'D') ;
   else if(i == 'L') ;
   else {
      bad_mode:
      sprintf(out, "Invalid TICC mode: %c", i);
      edit_error(out);
      return;
   }

   if(ticc_type != TAPR_TICC) {
      ticc_mode = i;
      have_ticc_mode = i;
      new_queue(RESET_ALL_QUEUES, 222);
   }
   else {
      sprintf(out, "M%c", i);
      set_ticc_config(port, out);
      get_ticc_config(port);
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x22c831(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x4b291
movl $0xa, -0x8(%rbp)
jmp 0x4b2b7
callq 0x992e0
cmpl $0x0, %eax
je 0x4b2a4
movl $0xd, -0x8(%rbp)
jmp 0x4b2b5
leaq 0x12f167(%rip), %rdi    # 0x17a412
callq 0x30d60
jmp 0x4b3d2
jmp 0x4b2b7
leaq 0x353202(%rip), %rdi    # 0x39e4c0
callq 0x9890
leaq 0x3531f6(%rip), %rax    # 0x39e4c0
movsbl (%rax), %eax
movl %eax, -0x4(%rbp)
cmpl $0x54, -0x4(%rbp)
jne 0x4b2db
jmp 0x4b36e
cmpl $0x49, -0x4(%rbp)
jne 0x4b2e6
jmp 0x4b36c
cmpl $0x50, -0x4(%rbp)
jne 0x4b2ee
jmp 0x4b36a
cmpl $0x46, -0x4(%rbp)
jne 0x4b304
leaq 0x22c7ed(%rip), %rax    # 0x277ae8
cmpl $0x54, (%rax)
jne 0x4b302
jmp 0x4b33a
jmp 0x4b368
cmpl $0x48, -0x4(%rbp)
jne 0x4b31a
leaq 0x22c7d7(%rip), %rax    # 0x277ae8
cmpl $0x54, (%rax)
jne 0x4b318
jmp 0x4b33a
jmp 0x4b366
leaq 0x22c7c7(%rip), %rax    # 0x277ae8
cmpl $0x54, (%rax)
je 0x4b328
jmp 0x4b33a
cmpl $0x44, -0x4(%rbp)
jne 0x4b330
jmp 0x4b362
cmpl $0x4c, -0x4(%rbp)
jne 0x4b338
jmp 0x4b360
jmp 0x4b33a
movl -0x4(%rbp), %edx
leaq 0x3500bc(%rip), %rdi    # 0x39b400
leaq 0x12f0dd(%rip), %rsi    # 0x17a428
movb $0x0, %al
callq 0x9060
leaq 0x3500a7(%rip), %rdi    # 0x39b400
callq 0x30d60
jmp 0x4b3d2
jmp 0x4b362
jmp 0x4b364
jmp 0x4b366
jmp 0x4b368
jmp 0x4b36a
jmp 0x4b36c
jmp 0x4b36e
leaq 0x22c773(%rip), %rax    # 0x277ae8
cmpl $0x54, (%rax)
je 0x4b3a3
movl -0x4(%rbp), %ecx
leaq 0x320b68(%rip), %rax    # 0x36beec
movl %ecx, (%rax)
movl -0x4(%rbp), %ecx
leaq 0x320b60(%rip), %rax    # 0x36bef0
movl %ecx, (%rax)
movl $0x7, %edi
movl $0xde, %esi
callq 0x14df0
jmp 0x4b3d2
movl -0x4(%rbp), %edx
leaq 0x350053(%rip), %rdi    # 0x39b400
leaq 0x12f08a(%rip), %rsi    # 0x17a43e
movb $0x0, %al
callq 0x9060
movl -0x8(%rbp), %edi
leaq 0x35003b(%rip), %rsi    # 0x39b400
callq 0x899f0
movl -0x8(%rbp), %edi
callq 0x89bc0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_ticc_sync()
void edit_ticc_sync()
{
int i;
unsigned port;

   if(rcvr_type == TICC_RCVR) port = RCVR_PORT;
   else if(ticc_port_open())  port = TICC_PORT;
   else {
      edit_error("No TICC device found.");
      return;
   }

   strupr(edit_buffer);  // aaaacccc
   i = edit_buffer[0];
   if     (i == 'M') ;
   else if(i == 'S') ;
   else {
      sprintf(out, "Invalid TICC sync mode: %c", i);
      edit_error(out);
   }
   sprintf(out, "Y%c", i);

   set_ticc_config(port, out);
   get_ticc_config(port);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x22c6c1(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x4b401
movl $0xa, -0x8(%rbp)
jmp 0x4b427
callq 0x992e0
cmpl $0x0, %eax
je 0x4b414
movl $0xd, -0x8(%rbp)
jmp 0x4b425
leaq 0x12eff7(%rip), %rdi    # 0x17a412
callq 0x30d60
jmp 0x4b4a5
jmp 0x4b427
leaq 0x353092(%rip), %rdi    # 0x39e4c0
callq 0x9890
leaq 0x353086(%rip), %rax    # 0x39e4c0
movsbl (%rax), %eax
movl %eax, -0x4(%rbp)
cmpl $0x4d, -0x4(%rbp)
jne 0x4b448
jmp 0x4b476
cmpl $0x53, -0x4(%rbp)
jne 0x4b450
jmp 0x4b474
movl -0x4(%rbp), %edx
leaq 0x34ffa6(%rip), %rdi    # 0x39b400
leaq 0x12efe1(%rip), %rsi    # 0x17a442
movb $0x0, %al
callq 0x9060
leaq 0x34ff91(%rip), %rdi    # 0x39b400
callq 0x30d60
jmp 0x4b476
movl -0x4(%rbp), %edx
leaq 0x34ff80(%rip), %rdi    # 0x39b400
leaq 0x12efd6(%rip), %rsi    # 0x17a45d
movb $0x0, %al
callq 0x9060
movl -0x8(%rbp), %edi
leaq 0x34ff68(%rip), %rsi    # 0x39b400
callq 0x899f0
movl -0x8(%rbp), %edi
callq 0x89bc0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_ticc_fudge()
void edit_ticc_fudge()
{
double val1, val2, val3, val4;
unsigned port;

   if(rcvr_type == TICC_RCVR) port = RCVR_PORT;
   else if(ticc_port_open())  port = TICC_PORT;
   else {
      edit_error("No TICC device found.");
      return;
   }

   val1 = fudge_a;  // aaaacccc
   val2 = fudge_b;
   val3 = fudge_c;
   val4 = fudge_d;
   sscanf(edit_buffer, "%lf %lf %lf %lf", &val1, &val2, &val3, &val4);

   sprintf(out, "GA%d", (int) val1);
   set_ticc_config(port, out);

   sprintf(out, "GB%d", (int) val2);
   set_ticc_config(port, out);

   get_ticc_config(port);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
leaq 0x22c5f1(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x4b4d1
movl $0xa, -0x24(%rbp)
jmp 0x4b4f7
callq 0x992e0
cmpl $0x0, %eax
je 0x4b4e4
movl $0xd, -0x24(%rbp)
jmp 0x4b4f5
leaq 0x12ef27(%rip), %rdi    # 0x17a412
callq 0x30d60
jmp 0x4b5b6
jmp 0x4b4f7
leaq 0x320a32(%rip), %rax    # 0x36bf30
movsd (%rax), %xmm0
movsd %xmm0, -0x8(%rbp)
leaq 0x320a2a(%rip), %rax    # 0x36bf38
movsd (%rax), %xmm0
movsd %xmm0, -0x10(%rbp)
leaq 0x320a22(%rip), %rax    # 0x36bf40
movsd (%rax), %xmm0
movsd %xmm0, -0x18(%rbp)
leaq 0x320a1a(%rip), %rax    # 0x36bf48
movsd (%rax), %xmm0
movsd %xmm0, -0x20(%rbp)
leaq 0x352f82(%rip), %rdi    # 0x39e4c0
leaq 0x12ef1c(%rip), %rsi    # 0x17a461
leaq -0x8(%rbp), %rdx
leaq -0x10(%rbp), %rcx
leaq -0x18(%rbp), %r8
leaq -0x20(%rbp), %r9
movb $0x0, %al
callq 0x9370
cvttsd2si -0x8(%rbp), %edx
leaq 0x34fe98(%rip), %rdi    # 0x39b400
leaq 0x12ef02(%rip), %rsi    # 0x17a471
movb $0x0, %al
callq 0x9060
movl -0x24(%rbp), %edi
leaq 0x34fe80(%rip), %rsi    # 0x39b400
callq 0x899f0
cvttsd2si -0x10(%rbp), %edx
leaq 0x34fe6f(%rip), %rdi    # 0x39b400
leaq 0x12eede(%rip), %rsi    # 0x17a476
movb $0x0, %al
callq 0x9060
movl -0x24(%rbp), %edi
leaq 0x34fe57(%rip), %rsi    # 0x39b400
callq 0x899f0
movl -0x24(%rbp), %edi
callq 0x89bc0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_ticc_time2()
void edit_ticc_time2()
{
int val1, val2, val3, val4;
unsigned port;

   if(rcvr_type == TICC_RCVR) port = RCVR_PORT;
   else if(ticc_port_open())  port = TICC_PORT;
   else {
      edit_error("No TICC device found.");
      return;
   }

   val1 = time2_a;  // aaaacccc
   val2 = time2_b;
   val3 = time2_c;
   val4 = time2_d;
   sscanf(edit_buffer, "%d %d %d %d", &val1, &val2, &val3, &val4);

   sprintf(out, "FA%d", (int) val1);
   set_ticc_config(port, out);

   sprintf(out, "FB%d", (int) val2);
   set_ticc_config(port, out);

   get_ticc_config(port);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
leaq 0x22c4e1(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x4b5e1
movl $0xa, -0x14(%rbp)
jmp 0x4b607
callq 0x992e0
cmpl $0x0, %eax
je 0x4b5f4
movl $0xd, -0x14(%rbp)
jmp 0x4b605
leaq 0x12ee17(%rip), %rdi    # 0x17a412
callq 0x30d60
jmp 0x4b6b2
jmp 0x4b607
leaq 0x32095a(%rip), %rax    # 0x36bf68
movl (%rax), %eax
movl %eax, -0x4(%rbp)
leaq 0x320952(%rip), %rax    # 0x36bf6c
movl (%rax), %eax
movl %eax, -0x8(%rbp)
leaq 0x32094a(%rip), %rax    # 0x36bf70
movl (%rax), %eax
movl %eax, -0xc(%rbp)
leaq 0x320942(%rip), %rax    # 0x36bf74
movl (%rax), %eax
movl %eax, -0x10(%rbp)
leaq 0x352e82(%rip), %rdi    # 0x39e4c0
leaq 0x124340(%rip), %rsi    # 0x16f985
leaq -0x4(%rbp), %rdx
leaq -0x8(%rbp), %rcx
leaq -0xc(%rbp), %r8
leaq -0x10(%rbp), %r9
movb $0x0, %al
callq 0x9370
movl -0x4(%rbp), %edx
leaq 0x34fd9a(%rip), %rdi    # 0x39b400
leaq 0x12ee0e(%rip), %rsi    # 0x17a47b
movb $0x0, %al
callq 0x9060
movl -0x14(%rbp), %edi
leaq 0x34fd82(%rip), %rsi    # 0x39b400
callq 0x899f0
movl -0x8(%rbp), %edx
leaq 0x34fd73(%rip), %rdi    # 0x39b400
leaq 0x12edec(%rip), %rsi    # 0x17a480
movb $0x0, %al
callq 0x9060
movl -0x14(%rbp), %edi
leaq 0x34fd5b(%rip), %rsi    # 0x39b400
callq 0x899f0
movl -0x14(%rbp), %edi
callq 0x89bc0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_ticc_tune()
void edit_ticc_tune()
{
unsigned port;
int val;
int min_time;

   dac_dac = 0;
   min_time = 30;
   if(rcvr_type == X72_RCVR) {
      port = RCVR_PORT;
      min_time = 600;
   }
   else if(rcvr_type == TICC_RCVR) port = RCVR_PORT;
   else if(ticc_port_open())  port = TICC_PORT;
   else {
      edit_error("No TICC device found.");
      return;
   }

   val = (int) atof(edit_buffer);

   if(val >= min_time) {  // start analyzing pps drift
      ticc_tune_time = val;
      dac_dac = 1;
   }
   else if(val) {
      sprintf(out, "Autotune time must be >= %d seconds.", min_time);
      edit_error(out);
   }
   else if(dac_dac) {
      dac_dac = 0;
      edit_error("Auto tune canceled");
   }

   return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x34f32d(%rip), %rax    # 0x39a9fc
movl $0x0, (%rax)
movl $0x1e, -0xc(%rbp)
leaq 0x22c3cd(%rip), %rax    # 0x277ab0
cmpq $0x2000000, (%rax)      # imm = 0x2000000
jne 0x4b6fc
movl $0xa, -0x4(%rbp)
movl $0x258, -0xc(%rbp)      # imm = 0x258
jmp 0x4b73d
leaq 0x22c3ad(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x4b715
movl $0xa, -0x4(%rbp)
jmp 0x4b73b
callq 0x992e0
cmpl $0x0, %eax
je 0x4b728
movl $0xd, -0x4(%rbp)
jmp 0x4b739
leaq 0x12ece3(%rip), %rdi    # 0x17a412
callq 0x30d60
jmp 0x4b7ca
jmp 0x4b73b
jmp 0x4b73d
leaq 0x352d7c(%rip), %rdi    # 0x39e4c0
callq 0x9480
cvttsd2si %xmm0, %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0xc(%rbp), %eax
jl 0x4b773
movl -0x8(%rbp), %ecx
leaq 0x32070e(%rip), %rax    # 0x36be70
movl %ecx, (%rax)
leaq 0x34f291(%rip), %rax    # 0x39a9fc
movl $0x1, (%rax)
jmp 0x4b7c8
cmpl $0x0, -0x8(%rbp)
je 0x4b79f
movl -0xc(%rbp), %edx
leaq 0x34fc7d(%rip), %rdi    # 0x39b400
leaq 0x12ecfb(%rip), %rsi    # 0x17a485
movb $0x0, %al
callq 0x9060
leaq 0x34fc68(%rip), %rdi    # 0x39b400
callq 0x30d60
jmp 0x4b7c6
leaq 0x34f256(%rip), %rax    # 0x39a9fc
cmpl $0x0, (%rax)
je 0x4b7c4
leaq 0x34f24a(%rip), %rax    # 0x39a9fc
movl $0x0, (%rax)
leaq 0x12eceb(%rip), %rdi    # 0x17a4aa
callq 0x30d60
jmp 0x4b7c6
jmp 0x4b7c8
jmp 0x4b7ca
addq $0x10, %rsp
popq %rbp
retq
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_ticc_dilat()
void edit_ticc_dilat()
{
int val1, val2, val3, val4;
unsigned port;

   if(rcvr_type == TICC_RCVR) port = RCVR_PORT;
   else if(ticc_port_open())  port = TICC_PORT;
   else {
      edit_error("No TICC device found.");
      return;
   }

   val1 = dilat_a;  // aaaacccc
   val2 = dilat_b;
   val3 = dilat_c;
   val4 = dilat_d;
   sscanf(edit_buffer, "%d %d %d %d", &val1, &val2, &val3, &val4);

   sprintf(out, "DA%d", (int) val1);
   set_ticc_config(port, out);

   sprintf(out, "DB%d", (int) val2);
   set_ticc_config(port, out);

   get_ticc_config(port);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
leaq 0x22c2d1(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x4b7f1
movl $0xa, -0x14(%rbp)
jmp 0x4b817
callq 0x992e0
cmpl $0x0, %eax
je 0x4b804
movl $0xd, -0x14(%rbp)
jmp 0x4b815
leaq 0x12ec07(%rip), %rdi    # 0x17a412
callq 0x30d60
jmp 0x4b8c2
jmp 0x4b817
leaq 0x32075e(%rip), %rax    # 0x36bf7c
movl (%rax), %eax
movl %eax, -0x4(%rbp)
leaq 0x320756(%rip), %rax    # 0x36bf80
movl (%rax), %eax
movl %eax, -0x8(%rbp)
leaq 0x32074e(%rip), %rax    # 0x36bf84
movl (%rax), %eax
movl %eax, -0xc(%rbp)
leaq 0x320746(%rip), %rax    # 0x36bf88
movl (%rax), %eax
movl %eax, -0x10(%rbp)
leaq 0x352c72(%rip), %rdi    # 0x39e4c0
leaq 0x124130(%rip), %rsi    # 0x16f985
leaq -0x4(%rbp), %rdx
leaq -0x8(%rbp), %rcx
leaq -0xc(%rbp), %r8
leaq -0x10(%rbp), %r9
movb $0x0, %al
callq 0x9370
movl -0x4(%rbp), %edx
leaq 0x34fb8a(%rip), %rdi    # 0x39b400
leaq 0x12ec40(%rip), %rsi    # 0x17a4bd
movb $0x0, %al
callq 0x9060
movl -0x14(%rbp), %edi
leaq 0x34fb72(%rip), %rsi    # 0x39b400
callq 0x899f0
movl -0x8(%rbp), %edx
leaq 0x34fb63(%rip), %rdi    # 0x39b400
leaq 0x12ec1e(%rip), %rsi    # 0x17a4c2
movb $0x0, %al
callq 0x9060
movl -0x14(%rbp), %edi
leaq 0x34fb4b(%rip), %rsi    # 0x39b400
callq 0x899f0
movl -0x14(%rbp), %edi
callq 0x89bc0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_ticc_cal()
void edit_ticc_cal()
{
unsigned port;
int val;

   if(rcvr_type == TICC_RCVR) port = RCVR_PORT;
   else if(ticc_port_open())  port = TICC_PORT;
   else {
      edit_error("No TICC device found.");
      return;
   }

   val = (int) atof(edit_buffer);
   if     (val == 2) ;
   else if(val == 10) ;
   else if(val == 20) ;
   else if(val == 40) ;
   else {
      edit_error("Cal periods must be 2, 10, 20, or 40");
      return;
   }
   sprintf(out, "P%d", val);
   set_ticc_config(port, out);

   get_ticc_config(port);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x22bff1(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x4bad1
movl $0xa, -0x4(%rbp)
jmp 0x4baf4
callq 0x992e0
cmpl $0x0, %eax
je 0x4bae4
movl $0xd, -0x4(%rbp)
jmp 0x4baf2
leaq 0x12e927(%rip), %rdi    # 0x17a412
callq 0x30d60
jmp 0x4bb6a
jmp 0x4baf4
leaq 0x3529c5(%rip), %rdi    # 0x39e4c0
callq 0x9480
cvttsd2si %xmm0, %eax
movl %eax, -0x8(%rbp)
cmpl $0x2, -0x8(%rbp)
jne 0x4bb0f
jmp 0x4bb3b
cmpl $0xa, -0x8(%rbp)
jne 0x4bb17
jmp 0x4bb39
cmpl $0x14, -0x8(%rbp)
jne 0x4bb1f
jmp 0x4bb37
cmpl $0x28, -0x8(%rbp)
jne 0x4bb27
jmp 0x4bb35
leaq 0x12e9c3(%rip), %rdi    # 0x17a4f1
callq 0x30d60
jmp 0x4bb6a
jmp 0x4bb37
jmp 0x4bb39
jmp 0x4bb3b
movl -0x8(%rbp), %edx
leaq 0x34f8bb(%rip), %rdi    # 0x39b400
leaq 0x13b44d(%rip), %rsi    # 0x186f99
movb $0x0, %al
callq 0x9060
movl -0x4(%rbp), %edi
leaq 0x34f8a3(%rip), %rsi    # 0x39b400
callq 0x899f0
movl -0x4(%rbp), %edi
callq 0x89bc0
addq $0x10, %rsp
popq %rbp
retq
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_ticc_timeout()
void edit_ticc_timeout()
{
unsigned port;
int val;

   if(rcvr_type == TICC_RCVR) port = RCVR_PORT;
   else if(ticc_port_open())  port = TICC_PORT;
   else {
      edit_error("No TICC device found.");
      return;
   }

   val = (int) atof(edit_buffer);
   sprintf(out, "T%d", val);
   set_ticc_config(port, out);

   get_ticc_config(port);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x22bf31(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x4bb91
movl $0xa, -0x4(%rbp)
jmp 0x4bbb4
callq 0x992e0
cmpl $0x0, %eax
je 0x4bba4
movl $0xd, -0x4(%rbp)
jmp 0x4bbb2
leaq 0x12e867(%rip), %rdi    # 0x17a412
callq 0x30d60
jmp 0x4bbf6
jmp 0x4bbb4
leaq 0x352905(%rip), %rdi    # 0x39e4c0
callq 0x9480
cvttsd2si %xmm0, %eax
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %edx
leaq 0x34f82f(%rip), %rdi    # 0x39b400
leaq 0x126557(%rip), %rsi    # 0x17212f
movb $0x0, %al
callq 0x9060
movl -0x4(%rbp), %edi
leaq 0x34f817(%rip), %rsi    # 0x39b400
callq 0x899f0
movl -0x4(%rbp), %edi
callq 0x89bc0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_ticc_speed()
void edit_ticc_speed()
{
unsigned port;
double val;

   if(rcvr_type == TICC_RCVR) port = RCVR_PORT;
   else if(ticc_port_open())  port = TICC_PORT;
   else {
      edit_error("No TICC device found.");
      return;
   }

   val = atof(edit_buffer);
   sprintf(out, "S%.6f", val);
   set_ticc_config(port, out);

   get_ticc_config(port);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x22bea1(%rip), %rax    # 0x277ab0
cmpq $0x10000, (%rax)        # imm = 0x10000
jne 0x4bc21
movl $0xa, -0x4(%rbp)
jmp 0x4bc44
callq 0x992e0
cmpl $0x0, %eax
je 0x4bc34
movl $0xd, -0x4(%rbp)
jmp 0x4bc42
leaq 0x12e7d7(%rip), %rdi    # 0x17a412
callq 0x30d60
jmp 0x4bc86
jmp 0x4bc44
leaq 0x352875(%rip), %rdi    # 0x39e4c0
callq 0x9480
movsd %xmm0, -0x10(%rbp)
movsd -0x10(%rbp), %xmm0
leaq 0x34f79f(%rip), %rdi    # 0x39b400
leaq 0x12e8ae(%rip), %rsi    # 0x17a516
movb $0x1, %al
callq 0x9060
movl -0x4(%rbp), %edi
leaq 0x34f787(%rip), %rsi    # 0x39b400
callq 0x899f0
movl -0x4(%rbp), %edi
callq 0x89bc0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: set_nominal_freqs(double)
void set_nominal_freqs(double dval)
{
    // set nominal freq val and phase wrap interval for all channels.
    if(dval == 0.0) dval = NOMINAL_FREQ;

    nominal_cha_freq = dval;
    nominal_chb_freq = dval;
    nominal_chc_freq = dval;
    nominal_chd_freq = dval;
    if(nominal_cha_freq) cha_phase_wrap_interval = (1.0 / nominal_cha_freq);  // !!!!! what about chc and chd
    if(nominal_chb_freq) chb_phase_wrap_interval = (1.0 / nominal_chb_freq);
    if(nominal_chc_freq) chc_phase_wrap_interval = (1.0 / nominal_chc_freq);  // !!!!! what about chc and chd
    if(nominal_chd_freq) chc_phase_wrap_interval = (1.0 / nominal_chd_freq);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x4bd46
jp 0x4bd46
movsd 0x12346f(%rip), %xmm0   # 0x16f1b0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
leaq 0x31fdf6(%rip), %rax    # 0x36bb48
movsd %xmm0, (%rax)
movsd -0x8(%rbp), %xmm0
leaq 0x31fdee(%rip), %rax    # 0x36bb50
movsd %xmm0, (%rax)
movsd -0x8(%rbp), %xmm0
leaq 0x31fde6(%rip), %rax    # 0x36bb58
movsd %xmm0, (%rax)
movsd -0x8(%rbp), %xmm0
leaq 0x31fdde(%rip), %rax    # 0x36bb60
movsd %xmm0, (%rax)
leaq 0x31fdbb(%rip), %rax    # 0x36bb48
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x4bd9e
jp 0x4bd9e
jmp 0x4bdbc
movsd 0x1232c2(%rip), %xmm0   # 0x16f068
leaq 0x31fd9b(%rip), %rax    # 0x36bb48
divsd (%rax), %xmm0
leaq 0x31fdb0(%rip), %rax    # 0x36bb68
movsd %xmm0, (%rax)
leaq 0x31fd8d(%rip), %rax    # 0x36bb50
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x4bdd4
jp 0x4bdd4
jmp 0x4bdf2
movsd 0x12328c(%rip), %xmm0   # 0x16f068
leaq 0x31fd6d(%rip), %rax    # 0x36bb50
divsd (%rax), %xmm0
leaq 0x31fd82(%rip), %rax    # 0x36bb70
movsd %xmm0, (%rax)
leaq 0x31fd5f(%rip), %rax    # 0x36bb58
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x4be0a
jp 0x4be0a
jmp 0x4be28
movsd 0x123256(%rip), %xmm0   # 0x16f068
leaq 0x31fd3f(%rip), %rax    # 0x36bb58
divsd (%rax), %xmm0
leaq 0x31fd54(%rip), %rax    # 0x36bb78
movsd %xmm0, (%rax)
leaq 0x31fd31(%rip), %rax    # 0x36bb60
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x4be40
jp 0x4be40
jmp 0x4be5e
movsd 0x123220(%rip), %xmm0   # 0x16f068
leaq 0x31fd11(%rip), %rax    # 0x36bb60
divsd (%rax), %xmm0
leaq 0x31fd1e(%rip), %rax    # 0x36bb78
movsd %xmm0, (%rax)
popq %rbp
retq
// File: jkingan[P]ladyheather/heathui.cpp
// Function: update_delta_t_file()
void update_delta_t_file()
{
FILE *file;

   // write user delta-t value to deltat.dat file

   file = fopen(DELTAT_FILE, "w");
   if(file) {
      fprintf(file, "%.6f\n", user_delta_t);
      fclose(file);
      file = 0;
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x12e6b3(%rip), %rdi    # 0x17a522
leaq 0x1387d5(%rip), %rsi    # 0x18464b
callq 0x9440
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x4beb4
movq -0x8(%rbp), %rdi
leaq 0x32083f(%rip), %rax    # 0x36c6d0
movsd (%rax), %xmm0
leaq 0x1395f6(%rip), %rsi    # 0x185492
movb $0x1, %al
callq 0x9550
movq -0x8(%rbp), %rdi
callq 0x9380
movq $0x0, -0x8(%rbp)
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: reset_eph_flags()
void reset_eph_flags()
{
int prn;

   for(prn=1; prn<MAX_PRN; prn++) {
      sat[prn].eph_valid = 0;
      sat[prn].eph_flag = 0;
   }
   have_range = 0;
   eph_polled = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x1, -0x4(%rbp)
cmpl $0x3e7, -0x4(%rbp)      # imm = 0x3E7
jge 0x4ff6a
movslq -0x4(%rbp), %rcx
leaq 0x24e261(%rip), %rax    # 0x29e190
imulq $0x348, %rcx, %rcx      # imm = 0x348
addq %rcx, %rax
movl $0x0, 0x244(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x24e242(%rip), %rax    # 0x29e190
imulq $0x348, %rcx, %rcx      # imm = 0x348
addq %rcx, %rax
movb $0x0, 0x202(%rax)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x4ff1b
leaq 0x31c5b7(%rip), %rax    # 0x36c528
movl $0x0, (%rax)
leaq 0x31c6ae(%rip), %rax    # 0x36c62c
movl $0x0, (%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: erase_debug_info()
void erase_debug_info()
{
   debug_text[0] = 0;  // erase debug info strings
   debug_text2[0] = 0;
   debug_text3[0] = 0;
   debug_text4[0] = 0;
   debug_text5[0] = 0;
   debug_text6[0] = 0;
   debug_text7[0] = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x34dbe5(%rip), %rax    # 0x39db80
movb $0x0, (%rax)
leaq 0x34dd2b(%rip), %rax    # 0x39dcd0
movb $0x0, (%rax)
leaq 0x34de71(%rip), %rax    # 0x39de20
movb $0x0, (%rax)
leaq 0x34dfb7(%rip), %rax    # 0x39df70
movb $0x0, (%rax)
leaq 0x34e0fd(%rip), %rax    # 0x39e0c0
movb $0x0, (%rax)
leaq 0x34e243(%rip), %rax    # 0x39e210
movb $0x0, (%rax)
leaq 0x34e389(%rip), %rax    # 0x39e360
movb $0x0, (%rax)
popq %rbp
retq
nopl (%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: set_steps()
void set_steps()
{
   scale_step = plot[selected_plot].scale_factor*(DATA_SIZE) 0.01;
   center_step = (DATA_SIZE) 0.0;
   if(plot[selected_plot].ref_scale) {
      center_step = plot[selected_plot].scale_factor/(plot[selected_plot].ref_scale*(DATA_SIZE)10.0);
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x34ea8d(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16c86b(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movsd 0x11ec59(%rip), %xmm0   # 0x16f120
mulsd 0x38(%rax), %xmm0
movsd %xmm0, 0x351664(%rip)   # 0x3a1b38
xorps %xmm0, %xmm0
movsd %xmm0, 0x351661(%rip)   # 0x3a1b40
leaq 0x34ea52(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16c830(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movsd 0x10(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x5050c
jp 0x5050c
jmp 0x50560
leaq 0x34ea25(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16c803(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movsd 0x38(%rax), %xmm0
leaq 0x34ea05(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16c7e3(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movsd 0x11eb71(%rip), %xmm1   # 0x16f0c0
mulsd 0x10(%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x3515e0(%rip)   # 0x3a1b40
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: kbd_exit()
void kbd_exit()
{
   // user told the program to exit
   break_flag = 1;
   erase_help();
   vidstr(EDIT_ROW+4, EDIT_COL, RED, "Exiting...");
   refresh_page();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x345489(%rip), %rax    # 0x396204
movl $0x1, (%rax)
callq 0x117a0
leaq 0x34da5f(%rip), %rax    # 0x39e7ec
movl (%rax), %edi
addl $0x4, %edi
leaq 0x34da57(%rip), %rax    # 0x39e7f0
movl (%rax), %esi
movl $0xc, %edx
leaq 0x12a48b(%rip), %rcx    # 0x17b232
callq 0x10ee0
callq 0xb0d0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: share_it()
void share_it()
{
if(0) {
   if(plot_azel == 0)   {
      plot_azel = AZEL_OK;
      shared_plot = 1;
   }
   else if(shared_plot) {
      plot_azel = 0;
      shared_plot = 0;
   }
   else shared_plot = 1;
   if(WIDE_SCREEN && (plot_watch == 0)) shared_plot = 0;  // no need to share plot on wide screens
   //shared_plot = 1;
}
   shared_plot = toggle_value(shared_plot);
if(rcvr_type == NO_RCVR) shared_plot = 0;
   reset_first_key(24);
   prot_menu = 0;
   config_screen(106);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x3495dd(%rip), %rax    # 0x39a5c8
movzbl (%rax), %edi
callq 0x49220
movb %al, %cl
leaq 0x3495cc(%rip), %rax    # 0x39a5c8
movb %cl, (%rax)
leaq 0x226aab(%rip), %rax    # 0x277ab0
cmpq $0x400, (%rax)          # imm = 0x400
jne 0x51018
leaq 0x3495b3(%rip), %rax    # 0x39a5c8
movb $0x0, (%rax)
movl $0x18, %edi
callq 0x37780
leaq 0x22930f(%rip), %rax    # 0x27a338
movb $0x0, (%rax)
movl $0x6a, %edi
callq 0xeaf0
popq %rbp
retq
nopl (%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_loc_format()
void edit_loc_format()
{
   // process the location formatting commands

   getting_plot = (-1);
   first_key = '{';
   prot_menu = 0;

   if(text_mode) erase_screen();
   else          erase_help();

   // display prompt string for the command
   sprintf(out, " Location format:  D)ecimal   dmS)   G)rads   R)adians    (ESC to abort)");
   vidstr(EDIT_ROW+0, EDIT_COL, PROMPT_COLOR, out);
   sprintf(out, "                   mI)ls      H)am   U)TM     N)ATO       E)CEF");
   vidstr(EDIT_ROW+1, EDIT_COL, PROMPT_COLOR, out);
   sprintf(out, "                   F)eet      M)eters         P)rivate    A)utoscale LLA");
   vidstr(EDIT_ROW+2, EDIT_COL, PROMPT_COLOR, out);
   sprintf(out, "                   earth T)ide displacement");
   vidstr(EDIT_ROW+3, EDIT_COL, PROMPT_COLOR, out);

   refresh_page();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0xffffffff, 0x350ace(%rip) # imm = 0xFFFFFFFF
leaq 0x24d0e3(%rip), %rax    # 0x29e138
movl $0x7b, (%rax)
leaq 0x2292d6(%rip), %rax    # 0x27a338
movb $0x0, (%rax)
leaq 0x22694c(%rip), %rax    # 0x2779b8
cmpl $0x0, (%rax)
je 0x51078
callq 0x117e0
jmp 0x5107d
callq 0x117a0
leaq 0x34a37c(%rip), %rdi    # 0x39b400
leaq 0x12a1f2(%rip), %rsi    # 0x17b27d
movb $0x0, %al
callq 0x9060
leaq 0x34d753(%rip), %rax    # 0x39e7ec
movl (%rax), %edi
addl $0x0, %edi
leaq 0x34d74b(%rip), %rax    # 0x39e7f0
movl (%rax), %esi
movl $0xb, %edx
leaq 0x34a34d(%rip), %rcx    # 0x39b400
callq 0x10ee0
leaq 0x34a341(%rip), %rdi    # 0x39b400
leaq 0x12a200(%rip), %rsi    # 0x17b2c6
movb $0x0, %al
callq 0x9060
leaq 0x34d718(%rip), %rax    # 0x39e7ec
movl (%rax), %edi
addl $0x1, %edi
leaq 0x34d710(%rip), %rax    # 0x39e7f0
movl (%rax), %esi
movl $0xb, %edx
leaq 0x34a312(%rip), %rcx    # 0x39b400
callq 0x10ee0
leaq 0x34a306(%rip), %rdi    # 0x39b400
leaq 0x12a205(%rip), %rsi    # 0x17b306
movb $0x0, %al
callq 0x9060
leaq 0x34d6dd(%rip), %rax    # 0x39e7ec
movl (%rax), %edi
addl $0x2, %edi
leaq 0x34d6d5(%rip), %rax    # 0x39e7f0
movl (%rax), %esi
movl $0xb, %edx
leaq 0x34a2d7(%rip), %rcx    # 0x39b400
callq 0x10ee0
leaq 0x34a2cb(%rip), %rdi    # 0x39b400
leaq 0x12a213(%rip), %rsi    # 0x17b34f
movb $0x0, %al
callq 0x9060
leaq 0x34d6a2(%rip), %rax    # 0x39e7ec
movl (%rax), %edi
addl $0x3, %edi
leaq 0x34d69a(%rip), %rax    # 0x39e7f0
movl (%rax), %esi
movl $0xb, %edx
leaq 0x34a29c(%rip), %rcx    # 0x39b400
callq 0x10ee0
callq 0xb0d0
popq %rbp
retq
// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_tide_plot()
void edit_tide_plot()
{
   // process the earth tide / gravity plot commands

   getting_plot = (-2);
   first_key = '{';
   prot_menu = 0;

   if(text_mode) erase_screen();
   else          erase_help();

   // display prompt string for the command
   sprintf(out, " Earth tide plot:  1)lat   2)lon   3)alt   4)uGals   A)ll   (ESC to abort)");
   vidstr(EDIT_ROW+0, EDIT_COL, PROMPT_COLOR, out);

   refresh_page();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0xfffffffe, 0x35099e(%rip) # imm = 0xFFFFFFFE
leaq 0x24cfb3(%rip), %rax    # 0x29e138
movl $0x7b, (%rax)
leaq 0x2291a6(%rip), %rax    # 0x27a338
movb $0x0, (%rax)
leaq 0x22681c(%rip), %rax    # 0x2779b8
cmpl $0x0, (%rax)
je 0x511a8
callq 0x117e0
jmp 0x511ad
callq 0x117a0
leaq 0x34a24c(%rip), %rdi    # 0x39b400
leaq 0x12a1c0(%rip), %rsi    # 0x17b37b
movb $0x0, %al
callq 0x9060
leaq 0x34d623(%rip), %rax    # 0x39e7ec
movl (%rax), %edi
addl $0x0, %edi
leaq 0x34d61b(%rip), %rax    # 0x39e7f0
movl (%rax), %esi
movl $0xb, %edx
leaq 0x34a21d(%rip), %rcx    # 0x39b400
callq 0x10ee0
callq 0xb0d0
popq %rbp
retq
nop
// File: jkingan[P]ladyheather/heathui.cpp
// Function: move_plot_up()
void move_plot_up()
{
   plot[selected_plot].user_scale = 1;
   plot[selected_plot].plot_center -= center_step;
   plot[selected_plot].float_center = 0;
   plot[selected_plot].user_set_float = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x34da7d(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b85b(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x30(%rax)
movsd 0x350662(%rip), %xmm1   # 0x3a1b40
leaq 0x34da53(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b831(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movsd 0x28(%rax), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rax)
leaq 0x34da2a(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b808(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x1c(%rax)
leaq 0x34da08(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b7e6(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0xdc(%rax)
popq %rbp
retq
// File: jkingan[P]ladyheather/heathui.cpp
// Function: move_plot_down()
void move_plot_down()
{
   plot[selected_plot].plot_center += center_step;
   plot[selected_plot].user_scale = 1;
   plot[selected_plot].float_center = 0;
   plot[selected_plot].user_set_float = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movsd 0x3505e4(%rip), %xmm0   # 0x3a1b40
leaq 0x34d9d5(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b7b3(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
addsd 0x28(%rax), %xmm0
movsd %xmm0, 0x28(%rax)
leaq 0x34d9b0(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b78e(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x30(%rax)
leaq 0x34d98e(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b76c(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x1c(%rax)
leaq 0x34d96c(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b74a(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0xdc(%rax)
popq %rbp
retq
nopl (%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: shrink_plot()
void shrink_plot()
{
   plot[selected_plot].user_scale = 1;
   plot[selected_plot].scale_factor += scale_step;
   plot[selected_plot].float_center = 0;
   plot[selected_plot].user_set_float = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x34d93d(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b71b(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x30(%rax)
movsd 0x35051a(%rip), %xmm0   # 0x3a1b38
leaq 0x34d913(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b6f1(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
addsd 0x38(%rax), %xmm0
movsd %xmm0, 0x38(%rax)
leaq 0x34d8ee(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b6cc(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x1c(%rax)
leaq 0x34d8cc(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x16b6aa(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0xdc(%rax)
popq %rbp
retq
nopl (%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: set_auto_scale()
void set_auto_scale()
{
int i;

   // enable / disable auto scaling of all plots

   for(i=0; i<NUM_PLOTS+DERIVED_PLOTS; i++) {
      if(auto_scale) {
         plot[i].user_scale = 0;
         plot[i].float_center = 1;
         plot[i].user_set_float = 1;
      }
      else {
         plot[i].user_scale = 1;
         plot[i].float_center = 0;
      }
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x0, -0x4(%rbp)
cmpl $0x14, -0x4(%rbp)
jge 0x51c02
leaq 0x228a58(%rip), %rax    # 0x27a5b4
cmpb $0x0, (%rax)
je 0x51bba
movslq -0x4(%rbp), %rcx
leaq 0x16b1b4(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x30(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x16b198(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x1c(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x16b17c(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0xdc(%rax)
jmp 0x51bf2
movslq -0x4(%rbp), %rcx
leaq 0x16b15b(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x30(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x16b13f(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x1c(%rax)
jmp 0x51bf4
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x51b4b
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: kbd_marker(int)
void kbd_marker(int c)
{
long val;

   // set a plot marker from the keyboard
   last_was_mark = c;
   if((c >= '0') && (c <= '9')) c -= '0';
   else if(c >= 'a') c = (c - 'a') + 10;
   else if(c >= 'A') c = (c - 'A') + 10;

   if((c < 0) || (c >= MAX_MARKER)) return;

   if(mark_q_entry[c]) {  // marker was set,  go to it
      goto_mark(c);
      hide_kbd(21);
   }
   else {  // mark current spot if it is not already marked
      for(val=1; val<MAX_MARKER; val++) {
         if(mark_q_entry[val] == last_mouse_q) {  // place is already marked
            BEEP(311);
            return;
         }
      }
      mark_q_entry[c] = last_mouse_q;
      draw_plot(REFRESH_SCREEN);
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %ecx
leaq 0x227c6b(%rip), %rax    # 0x27a4e0
movl %ecx, (%rax)
cmpl $0x30, -0x4(%rbp)
jl 0x5288e
cmpl $0x39, -0x4(%rbp)
jg 0x5288e
movl -0x4(%rbp), %eax
subl $0x30, %eax
movl %eax, -0x4(%rbp)
jmp 0x528b8
cmpl $0x61, -0x4(%rbp)
jl 0x528a2
movl -0x4(%rbp), %eax
subl $0x61, %eax
addl $0xa, %eax
movl %eax, -0x4(%rbp)
jmp 0x528b6
cmpl $0x41, -0x4(%rbp)
jl 0x528b4
movl -0x4(%rbp), %eax
subl $0x41, %eax
addl $0xa, %eax
movl %eax, -0x4(%rbp)
jmp 0x528b6
jmp 0x528b8
cmpl $0x0, -0x4(%rbp)
jl 0x528c4
cmpl $0xa, -0x4(%rbp)
jl 0x528c9
jmp 0x52958
movslq -0x4(%rbp), %rcx
leaq 0x227bbc(%rip), %rax    # 0x27a490
cmpq $0x0, (%rax,%rcx,8)
je 0x528ef
movl -0x4(%rbp), %edi
callq 0x27290
movl $0x15, %edi
callq 0x12e30
jmp 0x52958
movq $0x1, -0x10(%rbp)
cmpq $0xa, -0x10(%rbp)
jge 0x52935
movq -0x10(%rbp), %rcx
leaq 0x227b87(%rip), %rax    # 0x27a490
movq (%rax,%rcx,8), %rax
leaq 0x227b44(%rip), %rcx    # 0x27a458
cmpq (%rcx), %rax
jne 0x52925
movl $0x137, %edi            # imm = 0x137
callq 0x9ec0
jmp 0x52958
jmp 0x52927
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x528f7
leaq 0x227b1c(%rip), %rax    # 0x27a458
movq (%rax), %rdx
movslq -0x4(%rbp), %rcx
leaq 0x227b46(%rip), %rax    # 0x27a490
movq %rdx, (%rax,%rcx,8)
movl $0x1, %edi
callq 0x24e80
addq $0x10, %rsp
popq %rbp
retq
nop
// File: jkingan[P]ladyheather/heathui.cpp
// Function: set_next_marker()
int set_next_marker()
{
int val;

   // mark current mouse column with the next available marker number
   for(val=1; val<MAX_MARKER; val++) {
      if(mark_q_entry[val] == last_mouse_q) {  // place is already marked
         mark_q_entry[val] = 0;                // unmark it
         draw_plot(REFRESH_SCREEN);
         return 1;
      }
   }

   for(val=1; val<MAX_MARKER; val++) {
      if(mark_q_entry[val] == 0) {
         if(val < 10) last_was_mark = '0'+val;
         else         last_was_mark = 'A'+val-10;
         mark_q_entry[val] = last_mouse_q;  // last marker is mouse click marker
         draw_plot(REFRESH_SCREEN);
         return 1;
      }
   }

   BEEP(312);
   return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x1, -0x8(%rbp)
cmpl $0xa, -0x8(%rbp)
jge 0x529c6
movslq -0x8(%rbp), %rcx
leaq 0x227b10(%rip), %rax    # 0x27a490
movq (%rax,%rcx,8), %rax
leaq 0x227acd(%rip), %rcx    # 0x27a458
cmpq (%rcx), %rax
jne 0x529b9
movslq -0x8(%rbp), %rcx
leaq 0x227af5(%rip), %rax    # 0x27a490
movq $0x0, (%rax,%rcx,8)
movl $0x1, %edi
callq 0x24e80
movl $0x1, -0x4(%rbp)
jmp 0x52a58
jmp 0x529bb
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x5296f
movl $0x1, -0x8(%rbp)
cmpl $0xa, -0x8(%rbp)
jge 0x52a47
movslq -0x8(%rbp), %rcx
leaq 0x227ab2(%rip), %rax    # 0x27a490
cmpq $0x0, (%rax,%rcx,8)
jne 0x52a3a
cmpl $0xa, -0x8(%rbp)
jge 0x529fc
movl -0x8(%rbp), %ecx
addl $0x30, %ecx
leaq 0x227ae8(%rip), %rax    # 0x27a4e0
movl %ecx, (%rax)
jmp 0x52a0e
movl -0x8(%rbp), %ecx
addl $0x41, %ecx
subl $0xa, %ecx
leaq 0x227ad4(%rip), %rax    # 0x27a4e0
movl %ecx, (%rax)
leaq 0x227a43(%rip), %rax    # 0x27a458
movq (%rax), %rdx
movslq -0x8(%rbp), %rcx
leaq 0x227a6d(%rip), %rax    # 0x27a490
movq %rdx, (%rax,%rcx,8)
movl $0x1, %edi
callq 0x24e80
movl $0x1, -0x4(%rbp)
jmp 0x52a58
jmp 0x52a3c
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x529cd
movl $0x138, %edi            # imm = 0x138
callq 0x9ec0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: change_fix_config(int)
void change_fix_config(int save)
{
static int old_watch = 0;
static int old_azel = 0;
static int old_share = 0;
static int old_sigs = 0;
static int old_lla = 0;
static int saved_config = 0;
static int save_count = 0;
static int restore_count = 0;

   if(save > 0) {
      old_watch = plot_watch;
      old_azel = plot_azel;
      old_share = shared_plot;
      old_sigs = plot_signals;
      old_lla = plot_lla;
      saved_config = save;
      ++save_count;
//sprintf(debug_text, "plot watch fix save# %d: %d: %d", save_count, save, plot_watch);
   }
   else if(saved_config) {
      ++restore_count;
//sprintf(debug_text2, "plot watch fix restore# %d: %d: pw:%d  ow:%d", restore_count, saved_config, plot_watch, old_watch);
      plot_watch = old_watch;
      plot_azel = old_azel;
      shared_plot = old_share;
      plot_signals = old_sigs;
      if(show_fixes == 0) {
         plot_lla = 0; // !!!!! old_lla;
      }
      else plot_lla = old_lla;

      no_redraw = 1;
      config_screen(130);
      no_redraw = 0;
//saved_config = 0;  // (555)
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jle 0x52aee
leaq 0x227b60(%rip), %rax    # 0x27a5e8
movzbl (%rax), %eax
movl %eax, 0x350e6b(%rip)    # 0x3a38fc
leaq 0x227b5b(%rip), %rax    # 0x27a5f3
movzbl (%rax), %eax
movl %eax, 0x350e5f(%rip)    # 0x3a3900
leaq 0x347b20(%rip), %rax    # 0x39a5c8
movzbl (%rax), %eax
movl %eax, 0x350e53(%rip)    # 0x3a3904
leaq 0x227b3d(%rip), %rax    # 0x27a5f5
movzbl (%rax), %eax
movl %eax, 0x350e47(%rip)    # 0x3a3908
leaq 0x3479c8(%rip), %rax    # 0x39a490
movzbl (%rax), %eax
movl %eax, 0x350e3b(%rip)    # 0x3a390c
movl -0x4(%rbp), %eax
movl %eax, 0x350e36(%rip)    # 0x3a3910
movl 0x350e34(%rip), %eax    # 0x3a3914
addl $0x1, %eax
movl %eax, 0x350e2b(%rip)    # 0x3a3914
jmp 0x52ba0
cmpl $0x0, 0x350e1b(%rip)    # 0x3a3910
je 0x52b9e
movl 0x350e17(%rip), %eax    # 0x3a3918
addl $0x1, %eax
movl %eax, 0x350e0e(%rip)    # 0x3a3918
movl 0x350dec(%rip), %eax    # 0x3a38fc
movb %al, %cl
leaq 0x227acf(%rip), %rax    # 0x27a5e8
movb %cl, (%rax)
movl 0x350ddf(%rip), %eax    # 0x3a3900
movb %al, %cl
leaq 0x227ac9(%rip), %rax    # 0x27a5f3
movb %cl, (%rax)
movl 0x350dd2(%rip), %eax    # 0x3a3904
movb %al, %cl
leaq 0x347a8d(%rip), %rax    # 0x39a5c8
movb %cl, (%rax)
movl 0x350dc5(%rip), %eax    # 0x3a3908
movb %al, %cl
leaq 0x227aa9(%rip), %rax    # 0x27a5f5
movb %cl, (%rax)
leaq 0x34795f(%rip), %rax    # 0x39a4b4
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0x52b69
leaq 0x34792c(%rip), %rax    # 0x39a490
movb $0x0, (%rax)
jmp 0x52b7a
movl 0x350d9d(%rip), %eax    # 0x3a390c
movb %al, %cl
leaq 0x347918(%rip), %rax    # 0x39a490
movb %cl, (%rax)
leaq 0x224ea7(%rip), %rax    # 0x277a28
movl $0x1, (%rax)
movl $0x82, %edi
callq 0xeaf0
leaq 0x224e90(%rip), %rax    # 0x277a28
movl $0x0, (%rax)
jmp 0x52ba0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: dump_image()
void dump_image()
{
   dump_type = 's';
   #ifdef GIF_FILES
      sprintf(edit_buffer, "%s.gif", unit_file_name);
      if(top_line) start_edit(WRITE_CMD, "Enter name of .GIF or .BMP file for GRAPH image (ESC ESC to abort):");
      else         start_edit(WRITE_CMD, "Enter name of .GIF or .BMP file for SCREEN image (ESC ESC to abort):");
   #else
      sprintf(edit_buffer, "%s.bmp", unit_file_name);
      if(top_line) start_edit(WRITE_CMD, "Enter name of .BMP file for GRAPH image (ESC ESC to abort):");
      else         start_edit(WRITE_CMD, "Enter name of .BMP file for SCREEN image (ESC ESC to abort):");
   #endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x24a442(%rip), %rax    # 0x29d5ed
movb $0x73, (%rax)
leaq 0x17ccb3(%rip), %rax    # 0x1cfe68
movq (%rax), %rdx
leaq 0x34b301(%rip), %rdi    # 0x39e4c0
leaq 0x11da15(%rip), %rsi    # 0x170bdb
movb $0x0, %al
callq 0x9060
leaq 0x22484c(%rip), %rax    # 0x277a20
cmpl $0x0, (%rax)
je 0x531ec
movl $0x77, %edi
leaq 0x128633(%rip), %rsi    # 0x17b818
callq 0x3d470
jmp 0x531fd
movl $0x77, %edi
leaq 0x128664(%rip), %rsi    # 0x17b85c
callq 0x3d470
popq %rbp
retq
nop
// File: jkingan[P]ladyheather/heathui.cpp
// Function: clear_all_data()
void clear_all_data()
{
   dont_reset_queues = 0;
   new_queue(RESET_ALL_QUEUES, 13);

   #ifdef BUFFER_LLA
      clear_lla_points(1);
   #endif
   #ifdef SIG_LEVELS
      clear_signals();
   #endif
   #ifdef SAT_TRAILS
      clear_sat_trails();
   #endif

   if(view_all_data == 1) edit_user_view("A");
   else if(view_all_data == 2) edit_user_view("T");
   need_redraw = 5566;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x17c5c5(%rip), %rax    # 0x1cfe40
movl $0x0, (%rax)
movl $0x7, %edi
movl $0xd, %esi
callq 0x14df0
movl $0x1, %edi
callq 0x159b10
callq 0x157510
callq 0x150850
leaq 0x226cfa(%rip), %rax    # 0x27a5a5
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x538c1
leaq 0x131d8b(%rip), %rdi    # 0x185645
callq 0x426f0
jmp 0x538de
leaq 0x226cdd(%rip), %rax    # 0x27a5a5
movzbl (%rax), %eax
cmpl $0x2, %eax
jne 0x538dc
leaq 0x11e777(%rip), %rdi    # 0x17204e
callq 0x426f0
jmp 0x538de
leaq 0x22413f(%rip), %rax    # 0x277a24
movl $0x15be, (%rax)         # imm = 0x15BE
popq %rbp
retq
nopl (%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: config_fix_display()
void config_fix_display()
{
   change_fix_config(show_fixes);
   if(show_fixes && (precision_survey == 0) && (trimble_save == 0)) {  // set reference position for fix map
      precise_lat = lat;
      precise_lon = lon;
      precise_alt = alt;
      have_precise_lla = (-7);
      if(user_set_ref_lla == 0) {
         ref_lat = lat;
         ref_lon = lon;
         ref_alt = alt;
      }
      cos_factor = cos(ref_lat);
      if(cos_factor == 0.0) cos_factor = 0.001;
   }
   if(show_fixes) start_3d_fixes(-1, 2);
   if(1 || (GRAPH_LLA && (graph_lla == 0))) {
      config_lla_plots(KEEP_LLA_ON_HOLD, KEEP_LLA_SHOW);
   }

   config_screen(112);
   user_fix_set = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x346bb9(%rip), %rax    # 0x39a4b4
movzbl (%rax), %edi
callq 0x52a70
leaq 0x346baa(%rip), %rax    # 0x39a4b4
cmpb $0x0, (%rax)
je 0x53a19
leaq 0x31975e(%rip), %rax    # 0x36d078
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0x53a19
leaq 0x31974f(%rip), %rax    # 0x36d07c
cmpl $0x0, (%rax)
jne 0x53a19
leaq 0x318873(%rip), %rax    # 0x36c1b0
movsd (%rax), %xmm0
leaq 0x346b88(%rip), %rax    # 0x39a4d0
movsd %xmm0, (%rax)
leaq 0x318865(%rip), %rax    # 0x36c1b8
movsd (%rax), %xmm0
leaq 0x346b7a(%rip), %rax    # 0x39a4d8
movsd %xmm0, (%rax)
leaq 0x318857(%rip), %rax    # 0x36c1c0
movsd (%rax), %xmm0
leaq 0x346b6c(%rip), %rax    # 0x39a4e0
movsd %xmm0, (%rax)
leaq 0x346b69(%rip), %rax    # 0x39a4e8
movl $0xfffffff9, (%rax)     # imm = 0xFFFFFFF9
leaq 0x346b94(%rip), %rax    # 0x39a520
cmpl $0x0, (%rax)
jne 0x539d3
leaq 0x318818(%rip), %rax    # 0x36c1b0
movsd (%rax), %xmm0
leaq 0x346b4d(%rip), %rax    # 0x39a4f0
movsd %xmm0, (%rax)
leaq 0x31880a(%rip), %rax    # 0x36c1b8
movsd (%rax), %xmm0
leaq 0x346b3f(%rip), %rax    # 0x39a4f8
movsd %xmm0, (%rax)
leaq 0x3187fc(%rip), %rax    # 0x36c1c0
movsd (%rax), %xmm0
leaq 0x346b31(%rip), %rax    # 0x39a500
movsd %xmm0, (%rax)
leaq 0x346b16(%rip), %rax    # 0x39a4f0
movsd (%rax), %xmm0
callq 0x96f0
leaq 0x3187be(%rip), %rax    # 0x36c1a8
movsd %xmm0, (%rax)
leaq 0x3187b3(%rip), %rax    # 0x36c1a8
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x53a17
jp 0x53a17
leaq 0x31879d(%rip), %rax    # 0x36c1a8
movsd 0x11b77d(%rip), %xmm0   # 0x16f190
movsd %xmm0, (%rax)
jmp 0x53a19
leaq 0x346a94(%rip), %rax    # 0x39a4b4
cmpb $0x0, (%rax)
je 0x53a34
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0x2, %esi
callq 0x159a40
movl $0x1, %edi
xorl %esi, %esi
callq 0x52dd0
movl $0x70, %edi
callq 0xeaf0
leaq 0x346a64(%rip), %rax    # 0x39a4b5
movb $0x0, (%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jkingan[P]ladyheather/heathui.cpp
// Function: reset_parser()
void reset_parser()
{
   // reset serial port and message parser
   tsip_sync = 0;
   tsip_wptr = 0;
   tsip_rptr = 0;
   init_messages(110, 0);
   redraw_screen();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x33bacb(%rip), %rax    # 0x397436
movw $0x0, (%rax)
leaq 0x33babb(%rip), %rax    # 0x397432
movw $0x0, (%rax)
leaq 0x33bab1(%rip), %rax    # 0x397434
movw $0x0, (%rax)
movl $0x6e, %edi
xorl %esi, %esi
callq 0x86290
callq 0x12ae0
popq %rbp
retq
nopl (%rax,%rax)