// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathgps.cpp
// Function: get_ticc_info(unsigned int)
void get_ticc_info(unsigned port)
{
int i;
int flag;
char *s;

   // parse the ticc config data from the TICC menu header.

   if(port >= NUM_COM_PORTS) return;

   // !!!!!! do something here   aaaaahhhhh
   i = 0;
   flag = 0;
   while(1) {
      if(get_ticc_line(port)) break;
      strupr(cfg_buf);

// aaaaaahhhhhh aaattt
if(sim_file) ; 
else if(strstr(cfg_buf, "DEFAULT")) flag = 1;    // things that should only occur in TAPR_TYPE output
else if(strstr(cfg_buf, "TAPR")) flag = 2;
else if(strstr(cfg_buf, "TICC")) flag = 3;
else if(strstr(cfg_buf, "ANY CHARACTER")) flag = 4;
else if(strstr(cfg_buf, " CHA")) flag = 4;
else if(strstr(cfg_buf, " CHB")) flag = 5;
else if(strstr(cfg_buf, " CHC")) flag = 6;
else if(strstr(cfg_buf, " CHD")) flag = 7;
else if(strstr(cfg_buf, " TI(A->B)")) flag = 8;
else if(strstr(cfg_buf, " TI(C->D)")) flag = 9;
//sprintf(debug_text2, "<<%s>>  flag:%d  ustt:%d  ticc_type:%c\n", cfg_buf, flag, user_set_ticc_type, ticc_type);

if(1 && cfg_buf[0] && (flag == 0)) {  // see if we are a TAPR TICC, if not assume generic time interval mode
// sprintf(debug_text, "Checking cfgbuf [%s] ustt:%d  petdata:%d", cfg_buf, user_set_ticc_type, pet_data((unsigned char *) &cfg_buf[0], 0, 0));
   if(is_numeric(cfg_buf)) {    // line that starts with a number should be a TICC reading
      if(user_set_ticc_type == 0) {
         if(pet_data((unsigned char *) &cfg_buf[0], 0, 0)) {
            ticc_type = PICPET_TICC;
            user_set_ticc_type = 3;
            if(user_set_ticc_mode == 0) {
               ticc_mode = 'T';
               user_set_ticc_mode = 3;
               have_ticc_mode = 3;
            }
         }
         else if(lars_data(&cfg_buf[0])) {
            ticc_type = LARS_TICC;
            user_set_ticc_type = 13;
            config_rcvr_plots();
            if(user_set_ticc_mode == 0) {
               ticc_mode = 'I';
               user_set_ticc_mode = 13;
               have_ticc_mode = 13;
            }
         }
         else if(strchr(cfg_buf, ',')) ticc_type = HP_TICC;
         else if(strchr(cfg_buf, ':')) ticc_type = HP_TICC;
         else                          ticc_type = COUNTER_TICC;  // generic counter
      }
      have_info |= ALL_ID_INFO;

      if(user_set_ticc_mode == 0) {
         ticc_mode = DEFAULT_TICC_MODE;
      }
//sprintf(debug_text, "cfg_buf [%s]", cfg_buf);
      break;
   }
}

      if(strstr(cfg_buf, "TYPE ANY")) break;  // end of the menu

      s = strchr(cfg_buf, ':');
      if(s) {
         ++s;   // eat the ':'
         if(*s == ' ') ++s;  // eat the ' '
      }

      if(s) {
         if(strstr(cfg_buf, "CAL")) {   // aaaacccc
            ticc_cal = (int) atof(s);
            have_ticc_cal |= 0x01;
            flag = 10;
         }
         else if(strstr(cfg_buf, "COARSE")) {
            ticc_coarse = atof(s);
            have_ticc_coarse |= 0x01;
            flag = 11;
         }
         else if(strstr(cfg_buf, "DILATION")) {   // aaaacccc
            dilat_a = (int) atof(s);
            have_ticc_dilat |= 0x01;
            flag = 12;
            s = strchr(s, ',');
            if(s) {
               ++s;
               if(s[0]) {
                  dilat_b = (int) atof(s+1);
                  have_ticc_dilat |= 0x02;
               }
            }
//sprintf(debug_text3, "dilat %d %d  have:%02X", dilat_a,dilat_b, have_ticc_dilat);
         }
         else if(strstr(cfg_buf, "EDGE")) {   // aaaacccc
            if(s[0]) {
               edge_a = s[0];
               flag = 13;
               have_ticc_edges |= 0x01;
            }
            s = strchr(s, ',');
            if(s) {
               ++s;
               if(s[0] && s[1]) {
                  edge_b = s[1];
                  have_ticc_edges |= 0x02;
                  flag = 14;
               }
            }
//sprintf(debug_text2, "edge %c %c  have:%02X", edge_a,edge_b, have_ticc_edges);
         }
         else if(strstr(cfg_buf, "EEPROM")) {
            ticc_eeprom = (int) atof(s);
            have_ticc_eeprom = 1;
            flag = 15;
            s = strchr(s, ':');
            if(s) {
               if(s[2]) {
                  s[6] = 0;
                  strcpy(ticc_board, &s[2]);
                  have_ticc_board = 1;
               }
            }
            have_info |= ALL_ID_INFO;
//sprintf(debug_text2, "ticc ee:%d  board:%s", ticc_eeprom,ticc_board);
         }
         else if(strstr(cfg_buf, "FUDGE")) {   // aaaacccc
            fudge_a = atof(s);
            have_ticc_fudge |= 0x01;
            flag = 16;
            s = strchr(s, ',');
            if(s) {
               ++s;
               if(s[0]) {
                  fudge_b = (int) atof(s+1);
                  have_ticc_fudge |= 0x02;
               }
            }
//sprintf(debug_text, "fudge %g %g  have:%02X", fudge_a,fudge_b, have_ticc_fudge);
         }
         else if(strstr(cfg_buf, "MEASUREMENT")) {  // aaaacccc - user_set_ticc_mode
            if(user_set_ticc_mode == 0) {
               if     (strstr(s, "TIMESTAMP")) ticc_mode = 'T';
               else if(strstr(s, "TIMELAB"))   ticc_mode = 'L';
               else if(strstr(s, "INTERVAL"))  ticc_mode = 'I';
               else if(strstr(s, "PERIOD"))    ticc_mode = 'P';
               else if(strstr(s, "DEBUG"))     ticc_mode = 'D';
               have_ticc_mode = 1;
            }
            flag = 17;
         }
         else if(strstr(cfg_buf, "SERIAL")) {
            s[8] = 0;
            sprintf(ticc_sn, "%s", s);
            flag = 18;
            have_info |= ALL_ID_INFO;
         }
         else if(strstr(cfg_buf, "SOFTWARE")) {
            s[12] = 0;
            sprintf(ticc_fw, "%s", s);
            flag = 19;
            have_info |= ALL_ID_INFO;
         }
         else if(strstr(cfg_buf, "SPEED")) {
            ticc_speed = atof(s);
            have_ticc_speed |= 0x01;
            flag = 20;
         }
         else if(strstr(cfg_buf, "SYNCMODE")) {
            if(s[0]) {
               ticc_syncmode = s[0];
               have_ticc_syncmode |= 0x01;
            }
            flag = 21;
         }
         else if(strstr(cfg_buf, "TIMEOUT")) {
            if(s[0]) {
               ticc_timeout = atohex(s);
               have_ticc_timeout |= 0x01;
            }
            flag = 22;
         }
         else if(strstr(cfg_buf, "TIME2")) {   // aaaacccc
            time2_a = (int) atof(s);
            have_ticc_time2 |= 0x01;
            flag = 23;
            s = strchr(s, ',');
            if(s) {
               ++s;
               if(s[0]) {
                  time2_b = (int) atof(s+1);
                  have_ticc_time2 |= 0x02;
               }
            }
//sprintf(debug_text3, "time2 %d %d  have:%02X", time2_a,time2_b, have_ticc_time2);
         }
else if(user_set_ticc_mode == 0) {
   if(strstr(cfg_buf, "DEBUG")) {
      ticc_mode = 'D';
      have_ticc_mode = 1;
      flag = 51;
   }
   else if(strstr(cfg_buf, "INTERVAL")) {
      ticc_mode = 'I';
      have_ticc_mode = 1;
      flag = 51;
   }
   else if(strstr(cfg_buf, "PERIOD")) {
      ticc_mode = 'P';
      have_ticc_mode = 1;
      flag = 51;
   }
   else if(strstr(cfg_buf, "TIMESTAMP")) {
      ticc_mode = 'T';
      have_ticc_mode = 1;
      flag = 50;
   }
}
      }
   }
}

// Assembly:
cmpl $0x12, %edi
ja 0xad12d
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
callq 0xace9f
testl %eax, %eax
je 0xad12e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
leaq 0x2c5128(%rip), %r14    # 0x372260
leaq 0x191281(%rip), %r13    # 0x23e3c0
movq %r14, %rdi
callq 0x9899
cmpq $0x0, (%r13)
je 0xad17f
movl %r15d, %r12d
cmpb $0x0, 0x2c5108(%rip)    # 0x372260
je 0xad277
testl %r12d, %r12d
jne 0xad277
movq %r14, %rdi
callq 0x81017
xorl %r12d, %r12d
testl %eax, %eax
je 0xad277
jmp 0xad8ce
movq %r14, %rdi
leaq 0x736ce(%rip), %rsi     # 0x120857
callq 0x9090
movl $0x1, %r12d
testq %rax, %rax
jne 0xad277
movq %r14, %rdi
leaq 0x791f7(%rip), %rsi     # 0x12639e
callq 0x9090
movl $0x2, %r12d
testq %rax, %rax
jne 0xad277
movq %r14, %rdi
leaq 0x806d6(%rip), %rsi     # 0x12d89b
callq 0x9090
movl $0x3, %r12d
testq %rax, %rax
jne 0xad277
movq %r14, %rdi
leaq 0x791c0(%rip), %rsi     # 0x1263a3
callq 0x9090
movl $0x4, %r12d
testq %rax, %rax
jne 0xad277
movq %r14, %rdi
leaq 0x791b0(%rip), %rsi     # 0x1263b1
callq 0x9090
testq %rax, %rax
jne 0xad277
movq %r14, %rdi
leaq 0x791a1(%rip), %rsi     # 0x1263b6
callq 0x9090
movl $0x5, %r12d
testq %rax, %rax
jne 0xad277
movq %r14, %rdi
leaq 0x7918c(%rip), %rsi     # 0x1263bb
callq 0x9090
movl $0x6, %r12d
testq %rax, %rax
jne 0xad277
movq %r14, %rdi
leaq 0x79177(%rip), %rsi     # 0x1263c0
callq 0x9090
movl $0x7, %r12d
testq %rax, %rax
jne 0xad277
movq %r14, %rdi
leaq 0x79162(%rip), %rsi     # 0x1263c5
callq 0x9090
movl $0x8, %r12d
testq %rax, %rax
je 0xad6db
movq %r14, %rdi
leaq 0x79158(%rip), %rsi     # 0x1263d9
callq 0x9090
testq %rax, %rax
jne 0xad11f
movq %r14, %rdi
movl $0x3a, %esi
callq 0x9100
testq %rax, %rax
je 0xad3bd
leaq 0x1(%rax), %rcx
movq %rax, %r15
addq $0x2, %r15
cmpb $0x20, 0x1(%rax)
cmovneq %rcx, %r15
movq %r14, %rdi
leaq 0x85e77(%rip), %rsi     # 0x133139
callq 0x9090
testq %rax, %rax
je 0xad2f6
movq %r15, %rdi
callq 0x9470
cvttsd2si %xmm0, %eax
leaq 0x25fa41(%rip), %rcx    # 0x30cd20
movl %eax, (%rcx)
leaq 0x25fa3c(%rip), %rax    # 0x30cd24
orb $0x1, (%rax)
movl $0xa, %r12d
jmp 0xad3bd
movq %r14, %rdi
leaq 0x790e2(%rip), %rsi     # 0x1263e2
callq 0x9090
testq %rax, %rax
je 0xad332
movq %r15, %rdi
callq 0x9470
leaq 0x25fa27(%rip), %rax    # 0x30cd40
movsd %xmm0, (%rax)
leaq 0x25fa24(%rip), %rax    # 0x30cd48
orb $0x1, (%rax)
movl $0xb, %r12d
jmp 0xad3bd
movq %r14, %rdi
leaq 0x790ad(%rip), %rsi     # 0x1263e9
callq 0x9090
testq %rax, %rax
je 0xad3d4
movq %r15, %rdi
callq 0x9470
cvttsd2si %xmm0, %eax
leaq 0x25fa3f(%rip), %rcx    # 0x30cd9c
movl %eax, (%rcx)
leaq 0x25fa46(%rip), %rcx    # 0x30cdac
movl (%rcx), %r13d
movl %r13d, %eax
orl $0x1, %eax
movl %eax, (%rcx)
movq %r15, %rdi
movl $0x2c, %esi
callq 0x9100
movl $0xc, %r12d
testq %rax, %rax
je 0xad3b6
cmpb $0x0, 0x1(%rax)
je 0xad3b6
addq $0x2, %rax
movq %rax, %rdi
callq 0x9470
cvttsd2si %xmm0, %eax
leaq 0x25f9fa(%rip), %rcx    # 0x30cda0
movl %eax, (%rcx)
orl $0x3, %r13d
leaq 0x25f9f9(%rip), %rax    # 0x30cdac
movl %r13d, (%rax)
leaq 0x191003(%rip), %r13    # 0x23e3c0
movl %ebx, %edi
callq 0xace9f
movl %r12d, %r15d
testl %eax, %eax
je 0xad13f
jmp 0xad11f
movq %r14, %rdi
leaq 0x79014(%rip), %rsi     # 0x1263f2
callq 0x9090
testq %rax, %rax
je 0xad447
movsbl (%r15), %eax
testl %eax, %eax
je 0xad409
leaq 0x25f97d(%rip), %rcx    # 0x30cd74
movl %eax, (%rcx)
leaq 0x25f984(%rip), %rax    # 0x30cd84
orb $0x1, (%rax)
movl $0xd, %r12d
movq %r15, %rdi
movl $0x2c, %esi
callq 0x9100
testq %rax, %rax
je 0xad3bd
cmpb $0x0, 0x1(%rax)
je 0xad3bd
movsbl 0x2(%rax), %eax
testl %eax, %eax
je 0xad3bd
leaq 0x25f948(%rip), %rcx    # 0x30cd78
movl %eax, (%rcx)
leaq 0x25f94b(%rip), %rax    # 0x30cd84
orb $0x2, (%rax)
movl $0xe, %r12d
jmp 0xad3bd
movq %r14, %rdi
leaq 0x608fd(%rip), %rsi     # 0x10dd4e
callq 0x9090
testq %rax, %rax
je 0xad4ce
movq %r15, %rdi
callq 0x9470
cvttsd2si %xmm0, %eax
leaq 0x25f892(%rip), %rcx    # 0x30cd00
movl %eax, (%rcx)
leaq 0x25f88d(%rip), %rax    # 0x30cd04
movl $0x1, (%rax)
movq %r15, %rdi
movl $0x3a, %esi
callq 0x9100
testq %rax, %rax
je 0xad4b9
cmpb $0x0, 0x2(%rax)
je 0xad4b9
movq %rax, %rsi
addq $0x2, %rsi
movb $0x0, 0x6(%rax)
leaq 0x25f839(%rip), %rdi    # 0x30cce0
callq 0x9340
leaq 0x25f855(%rip), %rax    # 0x30cd08
movl $0x1, (%rax)
leaq 0x2604b4(%rip), %rax    # 0x30d974
orb $0xf, (%rax)
movl $0xf, %r12d
jmp 0xad3bd
movq %r14, %rdi
leaq 0x78f1f(%rip), %rsi     # 0x1263f7
callq 0x9090
testq %rax, %rax
je 0xad55f
movq %r15, %rdi
callq 0x9470
leaq 0x25f85f(%rip), %rax    # 0x30cd50
movsd %xmm0, (%rax)
leaq 0x25f874(%rip), %rcx    # 0x30cd70
movl (%rcx), %eax
movl %eax, -0x2c(%rbp)
orl $0x1, %eax
movl %eax, (%rcx)
movq %r15, %rdi
movl $0x2c, %esi
callq 0x9100
movl $0x10, %r12d
testq %rax, %rax
je 0xad3bd
cmpb $0x0, 0x1(%rax)
je 0xad3bd
addq $0x2, %rax
movq %rax, %rdi
callq 0x9470
cvttpd2dq %xmm0, %xmm0
cvtdq2pd %xmm0, %xmm0
leaq 0x25f811(%rip), %rax    # 0x30cd58
movlpd %xmm0, (%rax)
movl -0x2c(%rbp), %ecx
orl $0x3, %ecx
leaq 0x25f818(%rip), %rax    # 0x30cd70
movl %ecx, (%rax)
jmp 0xad3bd
movq %r14, %rdi
leaq 0x78e94(%rip), %rsi     # 0x1263fd
callq 0x9090
testq %rax, %rax
je 0xad625
movl $0x11, %r12d
leaq 0x25f790(%rip), %rax    # 0x30cd14
cmpl $0x0, (%rax)
jne 0xad3bd
movq %r15, %rdi
leaq 0x78e72(%rip), %rsi     # 0x126409
callq 0x9090
movl $0x54, %ecx
testq %rax, %rax
jne 0xad60a
movq %r15, %rdi
leaq 0x78e63(%rip), %rsi     # 0x126413
callq 0x9090
movl $0x4c, %ecx
testq %rax, %rax
jne 0xad60a
movq %r15, %rdi
leaq 0x85ae3(%rip), %rsi     # 0x1330ac
callq 0x9090
movl $0x49, %ecx
testq %rax, %rax
jne 0xad60a
movq %r15, %rdi
leaq 0x85ad4(%rip), %rsi     # 0x1330b6
callq 0x9090
movl $0x50, %ecx
testq %rax, %rax
jne 0xad60a
movq %r15, %rdi
leaq 0x78e20(%rip), %rsi     # 0x12641b
callq 0x9090
movl $0x44, %ecx
testq %rax, %rax
je 0xad613
leaq 0x25f6fb(%rip), %rax    # 0x30cd0c
movl %ecx, (%rax)
leaq 0x25f6f6(%rip), %rax    # 0x30cd10
movl $0x1, (%rax)
jmp 0xad3bd
movq %r14, %rdi
leaq 0x686ab(%rip), %rsi     # 0x115cda
callq 0x9090
testq %rax, %rax
je 0xad662
movb $0x0, 0x8(%r15)
leaq 0x25f67b(%rip), %rdi    # 0x30ccc0
movq %r15, %rsi
callq 0x9340
leaq 0x260320(%rip), %rax    # 0x30d974
orb $0xf, (%rax)
movl $0x12, %r12d
jmp 0xad3bd
movq %r14, %rdi
leaq 0x78db5(%rip), %rsi     # 0x126421
callq 0x9090
testq %rax, %rax
je 0xad69f
movb $0x0, 0xc(%r15)
leaq 0x25f61e(%rip), %rdi    # 0x30cca0
movq %r15, %rsi
callq 0x9340
leaq 0x2602e3(%rip), %rax    # 0x30d974
orb $0xf, (%rax)
movl $0x13, %r12d
jmp 0xad3bd
movq %r14, %rdi
leaq 0x76fe7(%rip), %rsi     # 0x124690
callq 0x9090
testq %rax, %rax
je 0xad6fb
movq %r15, %rdi
callq 0x9470
leaq 0x25f66e(%rip), %rax    # 0x30cd30
movsd %xmm0, (%rax)
leaq 0x25f66b(%rip), %rax    # 0x30cd38
orb $0x1, (%rax)
movl $0x14, %r12d
jmp 0xad3bd
movq %r14, %rdi
leaq 0x78cea(%rip), %rsi     # 0x1263cf
callq 0x9090
testq %rax, %rax
movl $0x9, %eax
cmovnel %eax, %r15d
jmp 0xad14e
movq %r14, %rdi
leaq 0x78d25(%rip), %rsi     # 0x12642a
callq 0x9090
testq %rax, %rax
je 0xad733
movsbl (%r15), %eax
movl $0x15, %r12d
testl %eax, %eax
je 0xad3bd
leaq 0x25f5f0(%rip), %rcx    # 0x30cd18
movl %eax, (%rcx)
leaq 0x25f5eb(%rip), %rax    # 0x30cd1c
jmp 0xad76f
movq %r14, %rdi
leaq 0x78cf6(%rip), %rsi     # 0x126433
callq 0x9090
testq %rax, %rax
je 0xad777
movl $0x16, %r12d
cmpb $0x0, (%r15)
je 0xad3bd
movq %r15, %rdi
callq 0x98c6
leaq 0x25f5c2(%rip), %rcx    # 0x30cd28
movl %eax, (%rcx)
leaq 0x25f5bd(%rip), %rax    # 0x30cd2c
orb $0x1, (%rax)
jmp 0xad3bd
movq %r14, %rdi
leaq 0x78cba(%rip), %rsi     # 0x12643b
callq 0x9090
testq %rax, %rax
je 0xad802
movq %r15, %rdi
callq 0x9470
cvttsd2si %xmm0, %eax
leaq 0x25f5ea(%rip), %rcx    # 0x30cd88
movl %eax, (%rcx)
leaq 0x25f5f1(%rip), %rcx    # 0x30cd98
movl (%rcx), %eax
movl %eax, -0x2c(%rbp)
orl $0x1, %eax
movl %eax, (%rcx)
movq %r15, %rdi
movl $0x2c, %esi
callq 0x9100
movl $0x17, %r12d
testq %rax, %rax
je 0xad3bd
cmpb $0x0, 0x1(%rax)
je 0xad3bd
addq $0x2, %rax
movq %rax, %rdi
callq 0x9470
cvttsd2si %xmm0, %eax
leaq 0x25f59e(%rip), %rcx    # 0x30cd8c
movl %eax, (%rcx)
movl -0x2c(%rbp), %ecx
orl $0x3, %ecx
leaq 0x25f59b(%rip), %rax    # 0x30cd98
jmp 0xad558
leaq 0x25f50b(%rip), %rax    # 0x30cd14
cmpl $0x0, (%rax)
jne 0xad3bd
movq %r14, %rdi
leaq 0x78bff(%rip), %rsi     # 0x12641b
callq 0x9090
testq %rax, %rax
je 0xad835
leaq 0x25f4df(%rip), %rax    # 0x30cd0c
movl $0x44, (%rax)
jmp 0xad879
movq %r14, %rdi
leaq 0x8586d(%rip), %rsi     # 0x1330ac
callq 0x9090
testq %rax, %rax
je 0xad858
leaq 0x25f4bc(%rip), %rax    # 0x30cd0c
movl $0x49, (%rax)
jmp 0xad879
movq %r14, %rdi
leaq 0x85854(%rip), %rsi     # 0x1330b6
callq 0x9090
testq %rax, %rax
je 0xad891
leaq 0x25f499(%rip), %rax    # 0x30cd0c
movl $0x50, (%rax)
leaq 0x25f490(%rip), %rax    # 0x30cd10
movl $0x1, (%rax)
movl $0x33, %r12d
jmp 0xad3bd
movq %r14, %rdi
leaq 0x78b6e(%rip), %rsi     # 0x126409
callq 0x9090
testq %rax, %rax
je 0xad3bd
leaq 0x25f45c(%rip), %rax    # 0x30cd0c
movl $0x54, (%rax)
leaq 0x25f453(%rip), %rax    # 0x30cd10
movl $0x1, (%rax)
movl $0x32, %r12d
jmp 0xad3bd
leaq 0x16b037(%rip), %rbx    # 0x21890c
cmpl $0x0, (%rbx)
je 0xad906
leaq 0x260093(%rip), %rax    # 0x30d974
orb $0xf, (%rax)
leaq 0x25f429(%rip), %rax    # 0x30cd14
cmpl $0x0, (%rax)
jne 0xad11f
leaq 0x25f411(%rip), %rax    # 0x30cd0c
movl $0x49, (%rax)
jmp 0xad11f
leaq 0x2c4953(%rip), %rdi    # 0x372260
xorl %esi, %esi
xorl %edx, %edx
callq 0xacf60
testl %eax, %eax
je 0xad945
leaq 0x16afe7(%rip), %rax    # 0x218908
movl $0x50, (%rax)
movl $0x3, (%rbx)
leaq 0x25f3e0(%rip), %rdx    # 0x30cd14
cmpl $0x0, (%rdx)
jne 0xad997
movl $0x3, %eax
movl $0x54, %ecx
jmp 0xad983
leaq 0x2c4914(%rip), %rdi    # 0x372260
callq 0xad02a
testl %eax, %eax
je 0xad9a6
leaq 0x16afac(%rip), %rax    # 0x218908
movl $0x4c, (%rax)
movl $0xd, (%rbx)
callq 0x47bae
leaq 0x25f3a0(%rip), %rdx    # 0x30cd14
cmpl $0x0, (%rdx)
jne 0xad997
movl $0xd, %eax
movl $0x49, %ecx
leaq 0x25f382(%rip), %rsi    # 0x30cd0c
movl %ecx, (%rsi)
movl %eax, (%rdx)
leaq 0x25f37b(%rip), %rcx    # 0x30cd10
movl %eax, (%rcx)
leaq 0x25ffd6(%rip), %rax    # 0x30d974
orb $0xf, (%rax)
jmp 0xad11f
leaq 0x2c48b3(%rip), %rdi    # 0x372260
movl $0x2c, %esi
callq 0x9100
movl $0x48, %ecx
testq %rax, %rax
jne 0xad9db
leaq 0x2c4898(%rip), %rdi    # 0x372260
movl $0x3a, %esi
callq 0x9100
xorl %ecx, %ecx
cmpq $0x1, %rax
adcl $0x48, %ecx
leaq 0x16af26(%rip), %rax    # 0x218908
movl %ecx, (%rax)
jmp 0xad8da