// File: jkingan[P]ladyheather/heathgps.cpp
// Function: parse_scpi_status_test()
void parse_scpi_status_test()
{

   // parse the STATUS message self test line

   scpi_self_test = 0;
   scpi_int_power = 0;
   scpi_oven_power = 0;
   scpi_ocxo = 0;
   scpi_efc = 0;
   scpi_gps = 0;

   if(strstr(scpi_status_line, "SELF TEST:")) {
      if(strstr(scpi_status_line, "SELF TEST: OK")) scpi_self_test = 1;
      have_scpi_self_test = 1;
   }

   if(strstr(scpi_status_line, "INT PWR:")) {
      if(strstr(scpi_status_line, "INT PWR: OK")) scpi_int_power = 1;
      have_scpi_int_power = 1;
   }

   if(strstr(scpi_status_line, "OVEN PWR:")) {
      if(strstr(scpi_status_line, "OVEN PWR: OK")) scpi_oven_power = 1;
      have_scpi_oven_power = 1;
   }

   if(strstr(scpi_status_line, "OCXO:")) {
      if(strstr(scpi_status_line, "OCXO: OK")) scpi_ocxo = 1;
      have_scpi_ocxo = 1;
   }

   if(strstr(scpi_status_line, "EFC:")) {
      if(strstr(scpi_status_line, "EFC: OK")) scpi_efc = 1;
      have_scpi_efc = 1;
   }

   if(strstr(scpi_status_line, "GPS RCV:")) {
      if(strstr(scpi_status_line, "GPS RCV: OK")) scpi_gps = 1;
      have_scpi_gps = 1;
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x293139(%rip), %rax    # 0x36c644
movl $0x0, (%rax)
leaq 0x293130(%rip), %rax    # 0x36c648
movl $0x0, (%rax)
leaq 0x293127(%rip), %rax    # 0x36c64c
movl $0x0, (%rax)
leaq 0x29311e(%rip), %rax    # 0x36c650
movl $0x0, (%rax)
leaq 0x293115(%rip), %rax    # 0x36c654
movl $0x0, (%rax)
leaq 0x29310c(%rip), %rax    # 0x36c658
movl $0x0, (%rax)
leaq 0x2f27b7(%rip), %rdi    # 0x3cbd10
leaq 0xaf2ce(%rip), %rsi     # 0x18882e
callq 0x9090
cmpq $0x0, %rax
je 0xd959e
leaq 0x2f279e(%rip), %rdi    # 0x3cbd10
leaq 0xaf2c0(%rip), %rsi     # 0x188839
callq 0x9090
cmpq $0x0, %rax
je 0xd9591
leaq 0x2930b9(%rip), %rax    # 0x36c644
movl $0x1, (%rax)
leaq 0x2930c4(%rip), %rax    # 0x36c65c
movl $0x1, (%rax)
leaq 0x2f276b(%rip), %rdi    # 0x3cbd10
leaq 0xaf29b(%rip), %rsi     # 0x188847
callq 0x9090
cmpq $0x0, %rax
je 0xd95ea
leaq 0x2f2752(%rip), %rdi    # 0x3cbd10
leaq 0xaf28b(%rip), %rsi     # 0x188850
callq 0x9090
cmpq $0x0, %rax
je 0xd95dd
leaq 0x293071(%rip), %rax    # 0x36c648
movl $0x1, (%rax)
leaq 0x29307c(%rip), %rax    # 0x36c660
movl $0x1, (%rax)
leaq 0x2f271f(%rip), %rdi    # 0x3cbd10
leaq 0xaf264(%rip), %rsi     # 0x18885c
callq 0x9090
cmpq $0x0, %rax
je 0xd9636
leaq 0x2f2706(%rip), %rdi    # 0x3cbd10
leaq 0xaf255(%rip), %rsi     # 0x188866
callq 0x9090
cmpq $0x0, %rax
je 0xd9629
leaq 0x293029(%rip), %rax    # 0x36c64c
movl $0x1, (%rax)
leaq 0x293034(%rip), %rax    # 0x36c664
movl $0x1, (%rax)
leaq 0x2f26d3(%rip), %rdi    # 0x3cbd10
leaq 0xaf22f(%rip), %rsi     # 0x188873
callq 0x9090
cmpq $0x0, %rax
je 0xd9682
leaq 0x2f26ba(%rip), %rdi    # 0x3cbd10
leaq 0xaf21c(%rip), %rsi     # 0x188879
callq 0x9090
cmpq $0x0, %rax
je 0xd9675
leaq 0x292fe1(%rip), %rax    # 0x36c650
movl $0x1, (%rax)
leaq 0x292fec(%rip), %rax    # 0x36c668
movl $0x1, (%rax)
leaq 0x2f2687(%rip), %rdi    # 0x3cbd10
leaq 0xaf1f2(%rip), %rsi     # 0x188882
callq 0x9090
cmpq $0x0, %rax
je 0xd96ce
leaq 0x2f266e(%rip), %rdi    # 0x3cbd10
leaq 0xaf1de(%rip), %rsi     # 0x188887
callq 0x9090
cmpq $0x0, %rax
je 0xd96c1
leaq 0x292f99(%rip), %rax    # 0x36c654
movl $0x1, (%rax)
leaq 0x292fa4(%rip), %rax    # 0x36c66c
movl $0x1, (%rax)
leaq 0x2f263b(%rip), %rdi    # 0x3cbd10
leaq 0xaf1b3(%rip), %rsi     # 0x18888f
callq 0x9090
cmpq $0x0, %rax
je 0xd971a
leaq 0x2f2622(%rip), %rdi    # 0x3cbd10
leaq 0xaf1a3(%rip), %rsi     # 0x188898
callq 0x9090
cmpq $0x0, %rax
je 0xd970d
leaq 0x292f51(%rip), %rax    # 0x36c658
movl $0x1, (%rax)
leaq 0x292f5c(%rip), %rax    # 0x36c670
movl $0x1, (%rax)
popq %rbp
retq
nopl (%rax)