// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x26d4ef(%rip), %rbx    # 0x30d464
xorl %eax, %eax
movl %eax, (%rbx)
leaq 0x26d4e8(%rip), %r13    # 0x30d468
movl %eax, (%r13)
leaq 0x26d4e1(%rip), %r12    # 0x30d46c
movl %eax, (%r12)
leaq 0x26d4da(%rip), %r15    # 0x30d470
movl %eax, (%r15)
leaq 0x26d4d4(%rip), %r14    # 0x30d474
movl %eax, (%r14)
leaq 0x26d4ce(%rip), %rcx    # 0x30d478
movl %eax, (%rcx)
leaq 0x2ccb8d(%rip), %rdi    # 0x36cb40
leaq 0x85580(%rip), %rsi     # 0x12553a
callq 0x9090
testq %rax, %rax
je 0x9ffef
leaq 0x2ccb75(%rip), %rdi    # 0x36cb40
leaq 0x85573(%rip), %rsi     # 0x125545
callq 0x9090
testq %rax, %rax
je 0x9ffe2
movl $0x1, (%rbx)
leaq 0x26d493(%rip), %rax    # 0x30d47c
movl $0x1, (%rax)
leaq 0x2ccb4a(%rip), %rdi    # 0x36cb40
leaq 0x85556(%rip), %rsi     # 0x125553
callq 0x9090
testq %rax, %rax
je 0xa0034
leaq 0x2ccb32(%rip), %rdi    # 0x36cb40
leaq 0x85547(%rip), %rsi     # 0x12555c
callq 0x9090
testq %rax, %rax
je 0xa0027
movl $0x1, (%r13)
leaq 0x26d452(%rip), %rax    # 0x30d480
movl $0x1, (%rax)
leaq 0x2ccb05(%rip), %rdi    # 0x36cb40
leaq 0x85526(%rip), %rsi     # 0x125568
callq 0x9090
testq %rax, %rax
je 0xa0079
leaq 0x2ccaed(%rip), %rdi    # 0x36cb40
leaq 0x85518(%rip), %rsi     # 0x125572
callq 0x9090
testq %rax, %rax
je 0xa006c
movl $0x1, (%r12)
leaq 0x26d411(%rip), %rax    # 0x30d484
movl $0x1, (%rax)
leaq 0x2ccac0(%rip), %rdi    # 0x36cb40
leaq 0x854f8(%rip), %rsi     # 0x12557f
callq 0x9090
testq %rax, %rax
je 0xa00bd
leaq 0x2ccaa8(%rip), %rdi    # 0x36cb40
leaq 0x854e6(%rip), %rsi     # 0x125585
callq 0x9090
testq %rax, %rax
je 0xa00b0
movl $0x1, (%r15)
leaq 0x26d3d1(%rip), %rax    # 0x30d488
movl $0x1, (%rax)
leaq 0x2cca7c(%rip), %rdi    # 0x36cb40
leaq 0x854c3(%rip), %rsi     # 0x12558e
callq 0x9090
testq %rax, %rax
je 0xa0101
leaq 0x2cca64(%rip), %rdi    # 0x36cb40
leaq 0x854b0(%rip), %rsi     # 0x125593
callq 0x9090
testq %rax, %rax
je 0xa00f4
movl $0x1, (%r14)
leaq 0x26d391(%rip), %rax    # 0x30d48c
movl $0x1, (%rax)
leaq 0x2cca38(%rip), %rdi    # 0x36cb40
leaq 0x8548c(%rip), %rsi     # 0x12559b
callq 0x9090
testq %rax, %rax
je 0xa014b
leaq 0x2cca20(%rip), %rdi    # 0x36cb40
leaq 0x8547d(%rip), %rsi     # 0x1255a4
callq 0x9090
testq %rax, %rax
je 0xa013e
leaq 0x26d340(%rip), %rax    # 0x30d478
movl $0x1, (%rax)
leaq 0x26d34b(%rip), %rax    # 0x30d490
movl $0x1, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq