// File: /workspace/github_cpp_makefile_star2_O2/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 0x266501(%rip), %rbx    # 0x2f7464
andl $0x0, (%rbx)
leaq 0x2664fb(%rip), %r13    # 0x2f7468
andl $0x0, (%r13)
leaq 0x2664f3(%rip), %r12    # 0x2f746c
andl $0x0, (%r12)
leaq 0x2664eb(%rip), %r15    # 0x2f7470
andl $0x0, (%r15)
leaq 0x2664e4(%rip), %r14    # 0x2f7474
andl $0x0, (%r14)
leaq 0x2664dd(%rip), %rax    # 0x2f7478
andl $0x0, (%rax)
leaq 0x2c5b9b(%rip), %rdi    # 0x356b40
leaq 0x7e4d6(%rip), %rsi     # 0x10f482
callq 0x9090
testq %rax, %rax
je 0x90fe1
leaq 0x2c5b83(%rip), %rdi    # 0x356b40
leaq 0x7e4c9(%rip), %rsi     # 0x10f48d
callq 0x9090
testq %rax, %rax
je 0x90fd4
movl $0x1, (%rbx)
leaq 0x2664a1(%rip), %rax    # 0x2f747c
movl $0x1, (%rax)
leaq 0x2c5b58(%rip), %rdi    # 0x356b40
leaq 0x7e4ac(%rip), %rsi     # 0x10f49b
callq 0x9090
testq %rax, %rax
je 0x91026
leaq 0x2c5b40(%rip), %rdi    # 0x356b40
leaq 0x7e49d(%rip), %rsi     # 0x10f4a4
callq 0x9090
testq %rax, %rax
je 0x91019
movl $0x1, (%r13)
leaq 0x266460(%rip), %rax    # 0x2f7480
movl $0x1, (%rax)
leaq 0x2c5b13(%rip), %rdi    # 0x356b40
leaq 0x7e47c(%rip), %rsi     # 0x10f4b0
callq 0x9090
testq %rax, %rax
je 0x9106b
leaq 0x2c5afb(%rip), %rdi    # 0x356b40
leaq 0x7e46e(%rip), %rsi     # 0x10f4ba
callq 0x9090
testq %rax, %rax
je 0x9105e
movl $0x1, (%r12)
leaq 0x26641f(%rip), %rax    # 0x2f7484
movl $0x1, (%rax)
leaq 0x2c5ace(%rip), %rdi    # 0x356b40
leaq 0x7e44e(%rip), %rsi     # 0x10f4c7
callq 0x9090
testq %rax, %rax
je 0x910af
leaq 0x2c5ab6(%rip), %rdi    # 0x356b40
leaq 0x7e43c(%rip), %rsi     # 0x10f4cd
callq 0x9090
testq %rax, %rax
je 0x910a2
movl $0x1, (%r15)
leaq 0x2663df(%rip), %rax    # 0x2f7488
movl $0x1, (%rax)
leaq 0x2c5a8a(%rip), %rdi    # 0x356b40
leaq 0x7e419(%rip), %rsi     # 0x10f4d6
callq 0x9090
testq %rax, %rax
je 0x910f3
leaq 0x2c5a72(%rip), %rdi    # 0x356b40
leaq 0x7e406(%rip), %rsi     # 0x10f4db
callq 0x9090
testq %rax, %rax
je 0x910e6
movl $0x1, (%r14)
leaq 0x26639f(%rip), %rax    # 0x2f748c
movl $0x1, (%rax)
leaq 0x2c5a46(%rip), %rdi    # 0x356b40
leaq 0x7e3e2(%rip), %rsi     # 0x10f4e3
callq 0x9090
testq %rax, %rax
je 0x9113d
leaq 0x2c5a2e(%rip), %rdi    # 0x356b40
leaq 0x7e3d3(%rip), %rsi     # 0x10f4ec
callq 0x9090
testq %rax, %rax
je 0x91130
leaq 0x26634e(%rip), %rax    # 0x2f7478
movl $0x1, (%rax)
leaq 0x266359(%rip), %rax    # 0x2f7490
movl $0x1, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq