
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void __regparm2 display_speed(int total_chars,double elapsed_time,int errcount)

{
  int iVar1;
  char cVar2;
  code *pcVar3;
  double dVar4;
  undefined *puVar5;
  undefined *puVar6;
  char *pcVar7;
  int iVar8;
  char **ppcVar9;
  int iVar10;
  char *pcVar11;
  size_t sVar12;
  char *pcVar13;
  FILE *__stream;
  char *pcVar14;
  tm *ptVar15;
  int iVar16;
  int in_GS_OFFSET;
  double test_time;
  double dVar17;
  int local_d8;
  undefined8 local_d4;
  _Bool local_ca;
  char local_c9;
  time_t nowts;
  double best_cpm;
  char message [128];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar10 = *(int *)PTR_LINES_0001dff0;
  iVar16 = iVar10 + -5;
  if (elapsed_time <= 0.0) {
    dVar17 = DAT_0001a3e8;
    local_d4 = DAT_0001a3e8;
  }
  else {
    dVar17 = (double)total_chars / (elapsed_time / (double)DAT_0001a3d8);
    dVar4 = (double)(total_chars + errcount * -5) / (elapsed_time / (double)DAT_0001a3d8);
    local_d4 = DAT_0001a3e8;
    if (DAT_0001a3e8 <= dVar17) {
      dVar17 = DAT_0001a3e8;
    }
    if (dVar4 < DAT_0001a3e8) {
      if (dVar4 <= 0.0) {
        local_d4 = 0.0;
      }
      else {
        local_d4 = dVar4;
        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {
          local_d4 = 0.0;
        }
      }
    }
  }
  local_c9 = cl_personal_best;
  local_ca = false;
  if (cl_personal_best) {
    local_ca = get_best_speed(global_script_filename,__last_label,&best_cpm);
    if ((!local_ca) || (best_cpm < local_d4)) {
      iVar10 = is_error_too_high(total_chars,errcount);
      pcVar7 = __last_label;
      pcVar14 = global_script_filename;
      pcVar13 = global_home_env;
      if (iVar10 == 0) {
        pcVar11 = getenv(global_home_env);
        sVar12 = strlen(pcVar11);
        pcVar11 = (char *)malloc(sVar12 + 0x12);
        if (pcVar11 == (char *)0x0) {
          perror("malloc");
          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);
          fatal_error(pcVar13,(char *)0x0);
          pcVar13 = global_home_env;
        }
        pcVar13 = getenv(pcVar13);
        __sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);
        __stream = fopen(pcVar11,"a");
        if (__stream == (FILE *)0x0) {
          perror("fopen");
          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);
          fatal_error(pcVar13,(char *)0x0);
        }
        pcVar13 = strdup(pcVar14);
        if (pcVar13 == (char *)0x0) {
          perror("malloc");
          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);
          fatal_error(pcVar13,(char *)0x0);
                    /* WARNING: Does not return */
          pcVar3 = (code *)invalidInstructionException();
          (*pcVar3)();
        }
        cVar2 = *pcVar13;
        pcVar14 = pcVar13;
        while (cVar2 != '\0') {
          if (cVar2 == ' ') {
            *pcVar14 = '+';
          }
          pcVar14 = pcVar14 + 1;
          cVar2 = *pcVar14;
        }
        nowts = time((time_t *)0x0);
        ptVar15 = localtime(&nowts);
        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c
                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,
                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);
        free(pcVar11);
        free(pcVar13);
        fclose(__stream);
        iVar16 = iVar16 - (local_ca + 1);
      }
      else {
        local_c9 = '\0';
        iVar16 = iVar16 - (uint)local_ca;
      }
    }
    else {
      iVar16 = iVar10 + -6;
      local_c9 = '\0';
    }
  }
  if (cl_scoring_cpm == false) {
    dVar17 = dVar17 / (double)DAT_0001a3dc;
    ppcVar9 = &SPEED_RAW_WPM;
  }
  else {
    ppcVar9 = &SPEED_RAW_CPM;
  }
  __sprintf_chk(message,1,0x80,*ppcVar9,dVar17);
  puVar6 = PTR_COLS_0001dfe4;
  iVar10 = *(int *)PTR_COLS_0001dfe4;
  iVar8 = utf8len(message);
  puVar5 = PTR_stdscr_0001dfdc;
  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar10 - iVar8) + -1);
  wideaddstr_rev(message);
  if (cl_scoring_cpm == false) {
    ppcVar9 = &SPEED_ADJ_WPM;
    local_d4 = local_d4 / (double)DAT_0001a3dc;
  }
  else {
    ppcVar9 = &SPEED_ADJ_CPM;
  }
  __sprintf_chk(message,1,0x80,*ppcVar9,local_d4);
  iVar10 = *(int *)puVar6;
  iVar8 = utf8len(message);
  wmove(*(undefined4 *)puVar5,iVar16 + 1,(iVar10 - iVar8) + -1);
  wideaddstr_rev(message);
  __sprintf_chk(message,1,0x80,SPEED_PCT_ERROR,
                (double)(((float)errcount * DAT_0001a3d4) / (float)total_chars));
  iVar10 = *(int *)puVar6;
  iVar8 = utf8len(message);
  wmove(*(undefined4 *)puVar5,iVar16 + 2,(iVar10 - iVar8) + -1);
  wideaddstr_rev(message);
  local_d8 = iVar16 + 3;
  if (local_ca != false) {
    if (cl_scoring_cpm == false) {
      best_cpm = best_cpm / (double)DAT_0001a3dc;
      ppcVar9 = &SPEED_BEST_WPM;
    }
    else {
      ppcVar9 = &SPEED_BEST_CPM;
    }
    local_d8 = iVar16 + 4;
    __sprintf_chk(message,1,0x80,*ppcVar9,best_cpm);
    iVar10 = *(int *)puVar6;
    iVar8 = utf8len(message);
    wmove(*(undefined4 *)puVar5,iVar16 + 3,(iVar10 - iVar8) + -1);
    wideaddstr_rev(message);
  }
  if (local_c9 != '\0') {
    iVar16 = *(int *)puVar6;
    iVar10 = utf8len(SPEED_BEST_NEW_MSG);
    wmove(*(undefined4 *)puVar5,local_d8,(iVar16 - iVar10) + -1);
    wideaddstr_rev(SPEED_BEST_NEW_MSG);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void __regparm2 FUN_00016440(int param_1,int param_2,double param_3)

{
  char cVar1;
  code *pcVar2;
  double dVar3;
  undefined *puVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined4 *puVar8;
  int iVar9;
  char *pcVar10;
  size_t sVar11;
  char *pcVar12;
  FILE *__stream;
  char *pcVar13;
  tm *ptVar14;
  undefined4 uVar15;
  int iVar16;
  int in_GS_OFFSET;
  double dVar17;
  int local_d8;
  undefined8 local_d4;
  byte local_ca;
  char local_c9;
  time_t local_b0;
  double local_ac;
  undefined1 local_a0 [128];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x16449;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar9 = *(int *)PTR_LINES_0001dff0;
  iVar16 = iVar9 + -5;
  if (param_3 <= 0.0) {
    dVar17 = DAT_0001a3e8;
    local_d4 = DAT_0001a3e8;
  }
  else {
    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);
    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);
    local_d4 = DAT_0001a3e8;
    if (DAT_0001a3e8 <= dVar17) {
      dVar17 = DAT_0001a3e8;
    }
    if (dVar3 < DAT_0001a3e8) {
      if (dVar3 <= 0.0) {
        local_d4 = 0.0;
      }
      else {
        local_d4 = dVar3;
        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {
          local_d4 = 0.0;
        }
      }
    }
  }
  local_c9 = DAT_0001e381;
  local_ca = 0;
  if (DAT_0001e381 != '\0') {
    local_ca = FUN_000161a0(dVar17);
    if ((local_ca == 0) || (local_ac < local_d4)) {
      iVar9 = FUN_00015890(dVar17);
      pcVar13 = DAT_0001e374;
      pcVar12 = DAT_0001e370;
      if (iVar9 == 0) {
        uVar5 = DAT_0001e3a4;
        pcVar10 = getenv(DAT_0001e370);
        sVar11 = strlen(pcVar10);
        pcVar10 = (char *)malloc(sVar11 + 0x12);
        if (pcVar10 == (char *)0x0) {
          perror("malloc");
          uVar15 = dcgettext(0,"internal error: malloc",5);
          FUN_00018320(uVar15);
          pcVar12 = DAT_0001e370;
        }
        pcVar12 = getenv(pcVar12);
        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);
        __stream = fopen(pcVar10,"a");
        if (__stream == (FILE *)0x0) {
          perror("fopen");
          uVar15 = dcgettext(0," internal error: fopen",5);
          FUN_00018320(uVar15);
        }
        pcVar12 = strdup(pcVar13);
        if (pcVar12 == (char *)0x0) {
          perror("malloc");
          uVar5 = dcgettext(0,"internal error: malloc",5);
          FUN_00018320(uVar5,0);
                    /* WARNING: Does not return */
          pcVar2 = (code *)invalidInstructionException();
          (*pcVar2)();
        }
        cVar1 = *pcVar12;
        pcVar13 = pcVar12;
        while (cVar1 != '\0') {
          if (cVar1 == ' ') {
            *pcVar13 = '+';
          }
          pcVar13 = pcVar13 + 1;
          cVar1 = *pcVar13;
        }
        local_b0 = time((time_t *)0x0);
        ptVar14 = localtime(&local_b0);
        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c
                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,
                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);
        free(pcVar10);
        free(pcVar12);
        fclose(__stream);
        iVar16 = iVar16 - (local_ca + 1);
      }
      else {
        local_c9 = '\0';
        iVar16 = iVar16 - (uint)local_ca;
      }
    }
    else {
      iVar16 = iVar9 + -6;
      local_c9 = '\0';
    }
  }
  if (DAT_0001e382 == '\0') {
    dVar17 = dVar17 / (double)DAT_0001a3dc;
    puVar6 = &DAT_0001e404;
  }
  else {
    puVar6 = &DAT_0001e3d0;
  }
  __sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);
  puVar4 = PTR_COLS_0001dfe4;
  iVar9 = *(int *)PTR_COLS_0001dfe4;
  iVar7 = FUN_00018750(local_a0);
  puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;
  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);
  FUN_000185e0(local_a0);
  if (DAT_0001e382 == '\0') {
    puVar8 = &DAT_0001e3bc;
    local_d4 = local_d4 / (double)DAT_0001a3dc;
  }
  else {
    puVar8 = &DAT_0001e3d4;
  }
  __sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);
  iVar9 = *(int *)puVar4;
  iVar7 = FUN_00018750(local_a0);
  wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);
  FUN_000185e0(local_a0);
  __sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,
                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));
  iVar9 = *(int *)puVar4;
  iVar7 = FUN_00018750(local_a0);
  wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);
  FUN_000185e0(local_a0);
  local_d8 = iVar16 + 3;
  if (local_ca != 0) {
    if (DAT_0001e382 == '\0') {
      local_ac = local_ac / (double)DAT_0001a3dc;
      puVar8 = &DAT_0001e3dc;
    }
    else {
      puVar8 = &DAT_0001e3c0;
    }
    local_d8 = iVar16 + 4;
    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);
    iVar9 = *(int *)puVar4;
    iVar7 = FUN_00018750(local_a0);
    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);
    FUN_000185e0(local_a0);
  }
  if (local_c9 != '\0') {
    iVar16 = *(int *)puVar4;
    iVar9 = FUN_00018750(DAT_0001e3f4);
    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);
    FUN_000185e0(DAT_0001e3f4);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00018b10();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000156e0
ADD EBX,0x7bb7
SUB ESP,0xdc
MOV dword ptr [ESP + 0x14],EAX
FLD qword ptr [ESP + 0xf0]
MOV dword ptr [ESP + 0x24],EDX
FLDZ
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xcc],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EBX + 0xfffffff0]
FSTP dword ptr [ESP]
FLDZ
FXCH
MOV ESI,dword ptr [EAX]
FCOMI ST0,ST1
LEA EBP,[ESI + -0x5]
JBE 0x00016720
MOV ECX,dword ptr [ESP + 0x14]
LEA EAX,[EDX + EDX*0x4]
FDIV dword ptr [EBX + 0xffffc3d8]
SUB ECX,EAX
MOV dword ptr [ESP + 0x8],ECX
FILD dword ptr [ESP + 0x14]
FDIV ST0,ST1
FILD dword ptr [ESP + 0x8]
FDIVRP ST2,ST0
FLD ST1
FLD qword ptr [EBX + 0xffffc3e8]
FCOMI ST0,ST2
FXCH ST2
FCMOVBE ST0,ST2
FXCH ST2
FCOMI ST0,ST3
JA 0x000166b8
FSTP ST3
FSTP ST0
FSTP ST2
FSTP qword ptr [ESP + 0x18]
MOVZX EAX,byte ptr [EBX + 0x381]
MOV byte ptr [ESP + 0x22],0x0
MOV byte ptr [ESP + 0x23],AL
TEST AL,AL
JNZ 0x00016780
CMP byte ptr [EBX + 0x382],0x0
JZ 0x00016708
SUB ESP,0x10
LEA EAX,[EBX + 0x3d0]
FSTP qword ptr [ESP]
PUSH dword ptr [EAX]
PUSH 0x80
PUSH 0x1
LEA ESI,[ESP + 0x68]
PUSH ESI
CALL 0x000125d0
MOV EAX,dword ptr [EBX + 0xffffffe4]
ADD ESP,0x20
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
MOV EDI,dword ptr [EAX]
PUSH ESI
CALL 0x00018750
LEA ECX,[EBP + 0x1]
SUB EDI,EAX
MOV dword ptr [ESP + 0x38],ECX
ADD ESP,0xc
MOV EAX,dword ptr [EBX + 0xffffffdc]
SUB EDI,0x1
PUSH EDI
PUSH EBP
MOV dword ptr [ESP + 0xc],EAX
PUSH dword ptr [EAX]
CALL 0x00012080
MOV dword ptr [ESP],ESI
CALL 0x000185e0
ADD ESP,0x10
CMP byte ptr [EBX + 0x382],0x0
JZ 0x000166e8
SUB ESP,0x8
LEA EAX,[EBX + 0x3d4]
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [EAX]
PUSH 0x80
PUSH 0x1
PUSH ESI
CALL 0x000125d0
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x8]
SUB ESP,0xc
MOV EDI,dword ptr [EAX]
PUSH ESI
CALL 0x00018750
ADD ESP,0xc
SUB EDI,EAX
SUB EDI,0x1
PUSH EDI
PUSH dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0xc]
PUSH dword ptr [ECX]
CALL 0x00012080
MOV dword ptr [ESP],ESI
CALL 0x000185e0
FILD dword ptr [ESP + 0x34]
FMUL dword ptr [EBX + 0xffffc3d4]
FILD dword ptr [ESP + 0x24]
LEA EAX,[EBX + 0x3e4]
FDIVP
FSTP qword ptr [ESP]
PUSH dword ptr [EAX]
PUSH 0x80
PUSH 0x1
PUSH ESI
CALL 0x000125d0
MOV EAX,dword ptr [ESP + 0x28]
ADD ESP,0x14
MOV EDI,dword ptr [EAX]
PUSH ESI
CALL 0x00018750
LEA EDX,[EBP + 0x3]
SUB EDI,EAX
MOV dword ptr [ESP + 0x24],EDX
LEA EAX,[EBP + 0x2]
ADD ESP,0xc
SUB EDI,0x1
PUSH EDI
PUSH EAX
MOV ECX,dword ptr [ESP + 0xc]
PUSH dword ptr [ECX]
CALL 0x00012080
MOV dword ptr [ESP],ESI
CALL 0x000185e0
ADD ESP,0x10
CMP byte ptr [ESP + 0x22],0x0
JZ 0x00016688
CMP byte ptr [EBX + 0x382],0x0
FLD qword ptr [ESP + 0x40]
JZ 0x00016940
SUB ESP,0x10
LEA EAX,[EBX + 0x3c0]
FSTP qword ptr [ESP]
PUSH dword ptr [EAX]
ADD EBP,0x4
PUSH 0x80
PUSH 0x1
PUSH ESI
CALL 0x000125d0
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x8]
SUB ESP,0xc
MOV EDI,dword ptr [EAX]
PUSH ESI
CALL 0x00018750
ADD ESP,0xc
SUB EDI,EAX
SUB EDI,0x1
PUSH EDI
PUSH dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0xc]
PUSH dword ptr [EAX]
CALL 0x00012080
MOV dword ptr [ESP],ESI
CALL 0x000185e0
ADD ESP,0x10
MOV dword ptr [ESP + 0x14],EBP
CMP byte ptr [ESP + 0x23],0x0
JNZ 0x00016738
MOV EAX,dword ptr [ESP + 0xcc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00016a22
ADD ESP,0xdc
POP EBX
POP ESI
POP EDI
POP EBP
RET
FSTP ST0
FXCH ST2
FCOMI ST0,ST3
JBE 0x00016960
FLD qword ptr [EBX + 0xffffc3f0]
FST qword ptr [ESP]
FUCOMIP ST0,ST1
FSTP ST0
FXCH
FCMOVNBE ST0,ST2
FSTP ST2
FXCH
FSTP qword ptr [ESP + 0x18]
JMP 0x000164d0
SUB ESP,0x10
LEA EAX,[EBX + 0x3bc]
FLD qword ptr [ESP + 0x28]
FDIV dword ptr [EBX + 0xffffc3dc]
FSTP qword ptr [ESP]
JMP 0x00016577
FDIV dword ptr [EBX + 0xffffc3dc]
SUB ESP,0x10
LEA EAX,[EBX + 0x404]
FSTP qword ptr [ESP]
JMP 0x00016501
FSTP ST0
FSTP ST0
FLD qword ptr [EBX + 0xffffc3e8]
FST qword ptr [ESP + 0x18]
JMP 0x000164d0
MOV EAX,dword ptr [ESP + 0x8]
LEA EDI,[EBX + 0x3f4]
SUB ESP,0xc
MOV ESI,dword ptr [EAX]
PUSH dword ptr [EDI]
CALL 0x00018750
ADD ESP,0xc
SUB ESI,EAX
SUB ESI,0x1
PUSH ESI
PUSH dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0xc]
PUSH dword ptr [EAX]
CALL 0x00012080
POP EAX
PUSH dword ptr [EDI]
CALL 0x000185e0
ADD ESP,0x10
JMP 0x00016693
LEA EDI,[EBX + 0x3a4]
MOV EAX,dword ptr [EBX + 0x374]
LEA ECX,[ESP + 0x40]
FSTP qword ptr [ESP]
MOV EDX,dword ptr [EDI]
CALL 0x000161a0
FLD qword ptr [ESP]
TEST AL,AL
MOV byte ptr [ESP + 0x22],AL
JZ 0x000167b7
FLD qword ptr [ESP + 0x40]
FLD qword ptr [ESP + 0x18]
FCOMIP ST0,ST1
FSTP ST0
JBE 0x00016978
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x14]
FSTP qword ptr [ESP]
CALL 0x00015890
FLD qword ptr [ESP]
TEST EAX,EAX
JNZ 0x00016988
MOV EAX,dword ptr [EDI]
MOV ESI,dword ptr [EBX + 0x370]
FSTP qword ptr [ESP + 0x28]
SUB ESP,0xc
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EBX + 0x374]
MOV dword ptr [ESP + 0x14],EAX
PUSH ESI
CALL 0x00012250
MOV dword ptr [ESP],EAX
CALL 0x000122f0
ADD EAX,0x12
MOV dword ptr [ESP],EAX
CALL 0x00012270
ADD ESP,0x10
FLD qword ptr [ESP + 0x28]
TEST EAX,EAX
MOV EDI,EAX
JZ 0x000169a0
FSTP qword ptr [ESP + 0x28]
SUB ESP,0xc
PUSH ESI
CALL 0x00012250
POP ESI
POP EDX
LEA EDX,[EBX + 0xffffb028]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xffffb039]
PUSH EAX
PUSH -0x1
PUSH 0x1
PUSH EDI
CALL 0x000125d0
ADD ESP,0x18
LEA EAX,[EBX + 0xffffb04b]
PUSH EAX
PUSH EDI
CALL 0x000123a0
ADD ESP,0x10
FLD qword ptr [ESP + 0x28]
TEST EAX,EAX
MOV ESI,EAX
JZ 0x000169e8
FSTP qword ptr [ESP + 0x28]
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
CALL 0x00012100
ADD ESP,0x10
MOV ECX,EAX
TEST EAX,EAX
JZ 0x00012625
MOVZX EDX,byte ptr [EAX]
FLD qword ptr [ESP + 0x28]
TEST DL,DL
JZ 0x000168a2
LEA ESI,[ESI]
CMP DL,0x20
JNZ 0x00016898
MOV byte ptr [EAX],0x2b
ADD EAX,0x1
MOVZX EDX,byte ptr [EAX]
TEST DL,DL
JNZ 0x00016890
FSTP qword ptr [ESP + 0x8]
SUB ESP,0xc
MOV dword ptr [ESP + 0x34],ECX
PUSH 0x0
CALL 0x00012160
MOV dword ptr [ESP + 0x4c],EAX
POP EDX
LEA EAX,[ESP + 0x48]
PUSH EAX
CALL 0x000122e0
POP ECX
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x14]
MOV ECX,dword ptr [ESP + 0x40]
PUSH ECX
MOV dword ptr [ESP + 0x1c],ECX
PUSH dword ptr [EAX]
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [EAX + 0x8]
PUSH dword ptr [EAX + 0xc]
MOV ECX,dword ptr [EAX + 0x10]
LEA EDX,[ECX + 0x1]
PUSH EDX
MOV EAX,dword ptr [EAX + 0x14]
ADD EAX,0x76c
PUSH EAX
LEA EAX,[EBX + 0xffffb65c]
PUSH EAX
PUSH 0x1
PUSH ESI
CALL 0x000124e0
ADD ESP,0x34
PUSH EDI
CALL 0x000120f0
MOV ECX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP],ECX
CALL 0x000120f0
MOV dword ptr [ESP],ESI
CALL 0x00012150
MOVZX EAX,byte ptr [ESP + 0x32]
ADD ESP,0x10
FLD qword ptr [ESP + 0x8]
ADD EAX,0x1
SUB EBP,EAX
JMP 0x000164e8
FDIV dword ptr [EBX + 0xffffc3dc]
SUB ESP,0x10
LEA EAX,[EBX + 0x3dc]
FSTP qword ptr [ESP]
JMP 0x0001663d
FSTP ST0
FSTP ST1
FSTP ST1
FLD dword ptr [ESP]
FSTP qword ptr [ESP + 0x18]
JMP 0x000164d0
LEA EBP,[ESI + -0x6]
MOV byte ptr [ESP + 0x23],0x0
JMP 0x000164e8
MOVZX EAX,byte ptr [ESP + 0x22]
MOV byte ptr [ESP + 0x23],0x0
SUB EBP,EAX
JMP 0x000164e8
FSTP qword ptr [ESP + 0x28]
LEA EAX,[EBX + 0xffffb021]
SUB ESP,0xc
PUSH EAX
CALL 0x00012200
ADD ESP,0xc
LEA EAX,[EBX + 0xffffb011]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012190
POP ECX
POP ESI
PUSH 0x0
PUSH EAX
CALL 0x00018320
ADD ESP,0x10
MOV ESI,dword ptr [EBX + 0x370]
FLD qword ptr [ESP + 0x28]
JMP 0x00016819
FSTP ST0
SUB ESP,0xc
LEA EAX,[EBX + 0xffffb05e]
PUSH EAX
CALL 0x00012200
ADD ESP,0xc
LEA EAX,[EBX + 0xffffb04d]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012190
POP EDX
POP ECX
PUSH 0x0
PUSH EAX
CALL 0x00018320
ADD ESP,0x10
FLD qword ptr [ESP + 0x28]
JMP 0x00016862
CALL 0x00018b10
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid __regparm2 FUN_00016440(int param_1,int param_2,double param_3)\n\n{\n  char cVar1;\n  code *pcVar2;\n  double dVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  char *pcVar12;\n  FILE *__stream;\n  char *pcVar13;\n  tm *ptVar14;\n  undefined4 uVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  byte local_ca;\n  char local_c9;\n  time_t local_b0;\n  double local_ac;\n  undefined1 local_a0 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16449;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar9 + -5;\n  if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = DAT_0001e381;\n  local_ca = 0;\n  if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);\n  puVar4 = PTR_COLS_0001dfe4;\n  iVar9 = *(int *)PTR_COLS_0001dfe4;\n  iVar7 = FUN_00018750(local_a0);\n  puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  __sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  local_d8 = iVar16 + 3;\n  if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018b10();\n}\n\n" comment comment (function_definition "void __regparm2 FUN_00016440(int param_1,int param_2,double param_3)\n\n{\n  char cVar1;\n  code *pcVar2;\n  double dVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  char *pcVar12;\n  FILE *__stream;\n  char *pcVar13;\n  tm *ptVar14;\n  undefined4 uVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  byte local_ca;\n  char local_c9;\n  time_t local_b0;\n  double local_ac;\n  undefined1 local_a0 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16449;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar9 + -5;\n  if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = DAT_0001e381;\n  local_ca = 0;\n  if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);\n  puVar4 = PTR_COLS_0001dfe4;\n  iVar9 = *(int *)PTR_COLS_0001dfe4;\n  iVar7 = FUN_00018750(local_a0);\n  puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  __sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  local_d8 = iVar16 + 3;\n  if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018b10();\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00016440(int param_1,int param_2,double param_3)" identifier (parameter_list "(int param_1,int param_2,double param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "double param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  code *pcVar2;\n  double dVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  char *pcVar12;\n  FILE *__stream;\n  char *pcVar13;\n  tm *ptVar14;\n  undefined4 uVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  byte local_ca;\n  char local_c9;\n  time_t local_b0;\n  double local_ac;\n  undefined1 local_a0 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16449;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar9 + -5;\n  if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = DAT_0001e381;\n  local_ca = 0;\n  if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);\n  puVar4 = PTR_COLS_0001dfe4;\n  iVar9 = *(int *)PTR_COLS_0001dfe4;\n  iVar7 = FUN_00018750(local_a0);\n  puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  __sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  local_d8 = iVar16 + 3;\n  if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018b10();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "size_t sVar11;" primitive_type identifier ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "char *pcVar13;" primitive_type (pointer_declarator "*pcVar13" * identifier) ;) (declaration "tm *ptVar14;" type_identifier (pointer_declarator "*ptVar14" * identifier) ;) (declaration "undefined4 uVar15;" type_identifier identifier ;) (declaration "int iVar16;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "double dVar17;" primitive_type identifier ;) (declaration "int local_d8;" primitive_type identifier ;) (declaration "undefined8 local_d4;" type_identifier identifier ;) (declaration "byte local_ca;" type_identifier identifier ;) (declaration "char local_c9;" primitive_type identifier ;) (declaration "time_t local_b0;" type_identifier identifier ;) (declaration "double local_ac;" primitive_type identifier ;) (declaration "undefined1 local_a0 [128];" type_identifier (array_declarator "local_a0 [128]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x16449;" (assignment_expression "uStack_14 = 0x16449" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar9 = *(int *)PTR_LINES_0001dff0;" (assignment_expression "iVar9 = *(int *)PTR_LINES_0001dff0" identifier = (pointer_expression "*(int *)PTR_LINES_0001dff0" * (cast_expression "(int *)PTR_LINES_0001dff0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar16 = iVar9 + -5;" (assignment_expression "iVar16 = iVar9 + -5" identifier = (binary_expression "iVar9 + -5" identifier + number_literal)) ;) (if_statement "if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(param_3 <= 0.0)" ( (binary_expression "param_3 <= 0.0" identifier <= number_literal) )) (compound_statement "{\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }" { (expression_statement "dVar17 = DAT_0001a3e8;" (assignment_expression "dVar17 = DAT_0001a3e8" identifier = identifier) ;) (expression_statement "local_d4 = DAT_0001a3e8;" (assignment_expression "local_d4 = DAT_0001a3e8" identifier = identifier) ;) }) (else_clause "else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" else (compound_statement "{\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" { (expression_statement "dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);" (assignment_expression "dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8)" identifier = (binary_expression "(double)param_1 / (param_3 / (double)DAT_0001a3d8)" (cast_expression "(double)param_1" ( (type_descriptor "double" primitive_type) ) identifier) / (parenthesized_expression "(param_3 / (double)DAT_0001a3d8)" ( (binary_expression "param_3 / (double)DAT_0001a3d8" identifier / (cast_expression "(double)DAT_0001a3d8" ( (type_descriptor "double" primitive_type) ) identifier)) )))) ;) (expression_statement "dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);" (assignment_expression "dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8)" identifier = (binary_expression "(double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8)" (cast_expression "(double)(param_1 + param_2 * -5)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(param_1 + param_2 * -5)" ( (binary_expression "param_1 + param_2 * -5" identifier + (binary_expression "param_2 * -5" identifier * number_literal)) ))) / (parenthesized_expression "(param_3 / (double)DAT_0001a3d8)" ( (binary_expression "param_3 / (double)DAT_0001a3d8" identifier / (cast_expression "(double)DAT_0001a3d8" ( (type_descriptor "double" primitive_type) ) identifier)) )))) ;) (expression_statement "local_d4 = DAT_0001a3e8;" (assignment_expression "local_d4 = DAT_0001a3e8" identifier = identifier) ;) (if_statement "if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }" if (parenthesized_expression "(DAT_0001a3e8 <= dVar17)" ( (binary_expression "DAT_0001a3e8 <= dVar17" identifier <= identifier) )) (compound_statement "{\n      dVar17 = DAT_0001a3e8;\n    }" { (expression_statement "dVar17 = DAT_0001a3e8;" (assignment_expression "dVar17 = DAT_0001a3e8" identifier = identifier) ;) })) (if_statement "if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }" if (parenthesized_expression "(dVar3 < DAT_0001a3e8)" ( (binary_expression "dVar3 < DAT_0001a3e8" identifier < identifier) )) (compound_statement "{\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }" { (if_statement "if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }" if (parenthesized_expression "(dVar3 <= 0.0)" ( (binary_expression "dVar3 <= 0.0" identifier <= number_literal) )) (compound_statement "{\n        local_d4 = 0.0;\n      }" { (expression_statement "local_d4 = 0.0;" (assignment_expression "local_d4 = 0.0" identifier = number_literal) ;) }) (else_clause "else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }" else (compound_statement "{\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }" { (expression_statement "local_d4 = dVar3;" (assignment_expression "local_d4 = dVar3" identifier = identifier) ;) (if_statement "if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }" if (parenthesized_expression "(dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3)" ( (binary_expression "dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3" (binary_expression "dVar3 <= _DAT_0001a3f0" identifier <= identifier) || (binary_expression "_DAT_0001a3f0 != dVar3" identifier != identifier)) )) (compound_statement "{\n          local_d4 = 0.0;\n        }" { (expression_statement "local_d4 = 0.0;" (assignment_expression "local_d4 = 0.0" identifier = number_literal) ;) })) }))) })) }))) (expression_statement "local_c9 = DAT_0001e381;" (assignment_expression "local_c9 = DAT_0001e381" identifier = identifier) ;) (expression_statement "local_ca = 0;" (assignment_expression "local_ca = 0" identifier = number_literal) ;) (if_statement "if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }" if (parenthesized_expression "(DAT_0001e381 != '\0')" ( (binary_expression "DAT_0001e381 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }" { (expression_statement "local_ca = FUN_000161a0(dVar17);" (assignment_expression "local_ca = FUN_000161a0(dVar17)" identifier = (call_expression "FUN_000161a0(dVar17)" identifier (argument_list "(dVar17)" ( identifier )))) ;) (if_statement "if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }" if (parenthesized_expression "((local_ca == 0) || (local_ac < local_d4))" ( (binary_expression "(local_ca == 0) || (local_ac < local_d4)" (parenthesized_expression "(local_ca == 0)" ( (binary_expression "local_ca == 0" identifier == number_literal) )) || (parenthesized_expression "(local_ac < local_d4)" ( (binary_expression "local_ac < local_d4" identifier < identifier) ))) )) (compound_statement "{\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }" { (expression_statement "iVar9 = FUN_00015890(dVar17);" (assignment_expression "iVar9 = FUN_00015890(dVar17)" identifier = (call_expression "FUN_00015890(dVar17)" identifier (argument_list "(dVar17)" ( identifier )))) ;) (expression_statement "pcVar13 = DAT_0001e374;" (assignment_expression "pcVar13 = DAT_0001e374" identifier = identifier) ;) (expression_statement "pcVar12 = DAT_0001e370;" (assignment_expression "pcVar12 = DAT_0001e370" identifier = identifier) ;) (if_statement "if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }" { (expression_statement "uVar5 = DAT_0001e3a4;" (assignment_expression "uVar5 = DAT_0001e3a4" identifier = identifier) ;) (expression_statement "pcVar10 = getenv(DAT_0001e370);" (assignment_expression "pcVar10 = getenv(DAT_0001e370)" identifier = (call_expression "getenv(DAT_0001e370)" identifier (argument_list "(DAT_0001e370)" ( identifier )))) ;) (expression_statement "sVar11 = strlen(pcVar10);" (assignment_expression "sVar11 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "pcVar10 = (char *)malloc(sVar11 + 0x12);" (assignment_expression "pcVar10 = (char *)malloc(sVar11 + 0x12)" identifier = (cast_expression "(char *)malloc(sVar11 + 0x12)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(sVar11 + 0x12)" identifier (argument_list "(sVar11 + 0x12)" ( (binary_expression "sVar11 + 0x12" identifier + number_literal) ))))) ;) (if_statement "if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }" { (expression_statement "perror("malloc");" (call_expression "perror("malloc")" identifier (argument_list "("malloc")" ( (string_literal ""malloc"" " string_content ") ))) ;) (expression_statement "uVar15 = dcgettext(0,"internal error: malloc",5);" (assignment_expression "uVar15 = dcgettext(0,"internal error: malloc",5)" identifier = (call_expression "dcgettext(0,"internal error: malloc",5)" identifier (argument_list "(0,"internal error: malloc",5)" ( number_literal , (string_literal ""internal error: malloc"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00018320(uVar15);" (call_expression "FUN_00018320(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "pcVar12 = DAT_0001e370;" (assignment_expression "pcVar12 = DAT_0001e370" identifier = identifier) ;) })) (expression_statement "pcVar12 = getenv(pcVar12);" (assignment_expression "pcVar12 = getenv(pcVar12)" identifier = (call_expression "getenv(pcVar12)" identifier (argument_list "(pcVar12)" ( identifier )))) ;) (expression_statement "__sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);" (call_expression "__sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12)" identifier (argument_list "(pcVar10,1,0xffffffff,"%s/%s",pcVar12)" ( identifier , number_literal , number_literal , (string_literal ""%s/%s"" " string_content ") , identifier ))) ;) (expression_statement "__stream = fopen(pcVar10,"a");" (assignment_expression "__stream = fopen(pcVar10,"a")" identifier = (call_expression "fopen(pcVar10,"a")" identifier (argument_list "(pcVar10,"a")" ( identifier , (string_literal ""a"" " string_content ") )))) ;) (if_statement "if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }" { (expression_statement "perror("fopen");" (call_expression "perror("fopen")" identifier (argument_list "("fopen")" ( (string_literal ""fopen"" " string_content ") ))) ;) (expression_statement "uVar15 = dcgettext(0," internal error: fopen",5);" (assignment_expression "uVar15 = dcgettext(0," internal error: fopen",5)" identifier = (call_expression "dcgettext(0," internal error: fopen",5)" identifier (argument_list "(0," internal error: fopen",5)" ( number_literal , (string_literal "" internal error: fopen"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00018320(uVar15);" (call_expression "FUN_00018320(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) })) (expression_statement "pcVar12 = strdup(pcVar13);" (assignment_expression "pcVar12 = strdup(pcVar13)" identifier = (call_expression "strdup(pcVar13)" identifier (argument_list "(pcVar13)" ( identifier )))) ;) (if_statement "if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }" if (parenthesized_expression "(pcVar12 == (char *)0x0)" ( (binary_expression "pcVar12 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    /* WARNING: Does not return */\n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }" { (expression_statement "perror("malloc");" (call_expression "perror("malloc")" identifier (argument_list "("malloc")" ( (string_literal ""malloc"" " string_content ") ))) ;) (expression_statement "uVar5 = dcgettext(0,"internal error: malloc",5);" (assignment_expression "uVar5 = dcgettext(0,"internal error: malloc",5)" identifier = (call_expression "dcgettext(0,"internal error: malloc",5)" identifier (argument_list "(0,"internal error: malloc",5)" ( number_literal , (string_literal ""internal error: malloc"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00018320(uVar5,0);" (call_expression "FUN_00018320(uVar5,0)" identifier (argument_list "(uVar5,0)" ( identifier , number_literal ))) ;) comment (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "cVar1 = *pcVar12;" (assignment_expression "cVar1 = *pcVar12" identifier = (pointer_expression "*pcVar12" * identifier)) ;) (expression_statement "pcVar13 = pcVar12;" (assignment_expression "pcVar13 = pcVar12" identifier = identifier) ;) (while_statement "while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }" { (if_statement "if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }" if (parenthesized_expression "(cVar1 == ' ')" ( (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character ')) )) (compound_statement "{\n            *pcVar13 = '+';\n          }" { (expression_statement "*pcVar13 = '+';" (assignment_expression "*pcVar13 = '+'" (pointer_expression "*pcVar13" * identifier) = (char_literal "'+'" ' character ')) ;) })) (expression_statement "pcVar13 = pcVar13 + 1;" (assignment_expression "pcVar13 = pcVar13 + 1" identifier = (binary_expression "pcVar13 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar13;" (assignment_expression "cVar1 = *pcVar13" identifier = (pointer_expression "*pcVar13" * identifier)) ;) })) (expression_statement "local_b0 = time((time_t *)0x0);" (assignment_expression "local_b0 = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "ptVar14 = localtime(&local_b0);" (assignment_expression "ptVar14 = localtime(&local_b0)" identifier = (call_expression "localtime(&local_b0)" identifier (argument_list "(&local_b0)" ( (pointer_expression "&local_b0" & identifier) )))) ;) (expression_statement "__fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);" (call_expression "__fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_)" identifier (argument_list "(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_)" ( identifier , number_literal , (string_literal ""%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n"" " string_content escape_sequence ") , (binary_expression "ptVar14->tm_year + 0x76c" (field_expression "ptVar14->tm_year" identifier -> field_identifier) + number_literal) , (binary_expression "ptVar14->tm_mon + 1" (field_expression "ptVar14->tm_mon" identifier -> field_identifier) + number_literal) , (field_expression "ptVar14->tm_mday" identifier -> field_identifier) , (field_expression "ptVar14->tm_hour" identifier -> field_identifier) , (field_expression "ptVar14->tm_min" identifier -> field_identifier) , (field_expression "ptVar14->tm_sec" identifier -> field_identifier) , identifier , identifier , (cast_expression "(undefined4)local_d4" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (field_expression "local_d4._4_4_" identifier . field_identifier) ))) ;) (expression_statement "free(pcVar10);" (call_expression "free(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier ))) ;) (expression_statement "free(pcVar12);" (call_expression "free(pcVar12)" identifier (argument_list "(pcVar12)" ( identifier ))) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "iVar16 = iVar16 - (local_ca + 1);" (assignment_expression "iVar16 = iVar16 - (local_ca + 1)" identifier = (binary_expression "iVar16 - (local_ca + 1)" identifier - (parenthesized_expression "(local_ca + 1)" ( (binary_expression "local_ca + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" else (compound_statement "{\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" { (expression_statement "local_c9 = '\0';" (assignment_expression "local_c9 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar16 = iVar16 - (uint)local_ca;" (assignment_expression "iVar16 = iVar16 - (uint)local_ca" identifier = (binary_expression "iVar16 - (uint)local_ca" identifier - (cast_expression "(uint)local_ca" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }))) }) (else_clause "else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }" else (compound_statement "{\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }" { (expression_statement "iVar16 = iVar9 + -6;" (assignment_expression "iVar16 = iVar9 + -6" identifier = (binary_expression "iVar9 + -6" identifier + number_literal)) ;) (expression_statement "local_c9 = '\0';" (assignment_expression "local_c9 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) })) (if_statement "if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }" if (parenthesized_expression "(DAT_0001e382 == '\0')" ( (binary_expression "DAT_0001e382 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }" { (expression_statement "dVar17 = dVar17 / (double)DAT_0001a3dc;" (assignment_expression "dVar17 = dVar17 / (double)DAT_0001a3dc" identifier = (binary_expression "dVar17 / (double)DAT_0001a3dc" identifier / (cast_expression "(double)DAT_0001a3dc" ( (type_descriptor "double" primitive_type) ) identifier))) ;) (expression_statement "puVar6 = &DAT_0001e404;" (assignment_expression "puVar6 = &DAT_0001e404" identifier = (pointer_expression "&DAT_0001e404" & identifier)) ;) }) (else_clause "else {\n    puVar6 = &DAT_0001e3d0;\n  }" else (compound_statement "{\n    puVar6 = &DAT_0001e3d0;\n  }" { (expression_statement "puVar6 = &DAT_0001e3d0;" (assignment_expression "puVar6 = &DAT_0001e3d0" identifier = (pointer_expression "&DAT_0001e3d0" & identifier)) ;) }))) (expression_statement "__sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);" (call_expression "__sprintf_chk(local_a0,1,0x80,*puVar6,dVar17)" identifier (argument_list "(local_a0,1,0x80,*puVar6,dVar17)" ( identifier , number_literal , number_literal , (pointer_expression "*puVar6" * identifier) , identifier ))) ;) (expression_statement "puVar4 = PTR_COLS_0001dfe4;" (assignment_expression "puVar4 = PTR_COLS_0001dfe4" identifier = identifier) ;) (expression_statement "iVar9 = *(int *)PTR_COLS_0001dfe4;" (assignment_expression "iVar9 = *(int *)PTR_COLS_0001dfe4" identifier = (pointer_expression "*(int *)PTR_COLS_0001dfe4" * (cast_expression "(int *)PTR_COLS_0001dfe4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" identifier = (call_expression "FUN_00018750(local_a0)" identifier (argument_list "(local_a0)" ( identifier )))) ;) (expression_statement "puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;" (assignment_expression "puVar6 = (undefined4 *)PTR_stdscr_0001dfdc" identifier = (cast_expression "(undefined4 *)PTR_stdscr_0001dfdc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);" (call_expression "wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1)" identifier (argument_list "(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1)" ( (pointer_expression "*(undefined4 *)PTR_stdscr_0001dfdc" * (cast_expression "(undefined4 *)PTR_stdscr_0001dfdc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" ( (binary_expression "iVar9 - iVar7" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" identifier (argument_list "(local_a0)" ( identifier ))) ;) (if_statement "if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }" if (parenthesized_expression "(DAT_0001e382 == '\0')" ( (binary_expression "DAT_0001e382 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }" { (expression_statement "puVar8 = &DAT_0001e3bc;" (assignment_expression "puVar8 = &DAT_0001e3bc" identifier = (pointer_expression "&DAT_0001e3bc" & identifier)) ;) (expression_statement "local_d4 = local_d4 / (double)DAT_0001a3dc;" (assignment_expression "local_d4 = local_d4 / (double)DAT_0001a3dc" identifier = (binary_expression "local_d4 / (double)DAT_0001a3dc" identifier / (cast_expression "(double)DAT_0001a3dc" ( (type_descriptor "double" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    puVar8 = &DAT_0001e3d4;\n  }" else (compound_statement "{\n    puVar8 = &DAT_0001e3d4;\n  }" { (expression_statement "puVar8 = &DAT_0001e3d4;" (assignment_expression "puVar8 = &DAT_0001e3d4" identifier = (pointer_expression "&DAT_0001e3d4" & identifier)) ;) }))) (expression_statement "__sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);" (call_expression "__sprintf_chk(local_a0,1,0x80,*puVar8,local_d4)" identifier (argument_list "(local_a0,1,0x80,*puVar8,local_d4)" ( identifier , number_literal , number_literal , (pointer_expression "*puVar8" * identifier) , identifier ))) ;) (expression_statement "iVar9 = *(int *)puVar4;" (assignment_expression "iVar9 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" identifier = (call_expression "FUN_00018750(local_a0)" identifier (argument_list "(local_a0)" ( identifier )))) ;) (expression_statement "wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);" (call_expression "wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1)" identifier (argument_list "(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1)" ( (pointer_expression "*puVar6" * identifier) , (binary_expression "iVar16 + 1" identifier + number_literal) , (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" ( (binary_expression "iVar9 - iVar7" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" identifier (argument_list "(local_a0)" ( identifier ))) ;) (expression_statement "__sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));" (call_expression "__sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1))" identifier (argument_list "(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1))" ( identifier , number_literal , number_literal , identifier , (cast_expression "(double)(((float)param_2 * DAT_0001a3d4) / (float)param_1)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(((float)param_2 * DAT_0001a3d4) / (float)param_1)" ( (binary_expression "((float)param_2 * DAT_0001a3d4) / (float)param_1" (parenthesized_expression "((float)param_2 * DAT_0001a3d4)" ( (binary_expression "(float)param_2 * DAT_0001a3d4" (cast_expression "(float)param_2" ( (type_descriptor "float" primitive_type) ) identifier) * identifier) )) / (cast_expression "(float)param_1" ( (type_descriptor "float" primitive_type) ) identifier)) ))) ))) ;) (expression_statement "iVar9 = *(int *)puVar4;" (assignment_expression "iVar9 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" identifier = (call_expression "FUN_00018750(local_a0)" identifier (argument_list "(local_a0)" ( identifier )))) ;) (expression_statement "wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);" (call_expression "wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1)" identifier (argument_list "(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1)" ( (pointer_expression "*puVar6" * identifier) , (binary_expression "iVar16 + 2" identifier + number_literal) , (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" ( (binary_expression "iVar9 - iVar7" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" identifier (argument_list "(local_a0)" ( identifier ))) ;) (expression_statement "local_d8 = iVar16 + 3;" (assignment_expression "local_d8 = iVar16 + 3" identifier = (binary_expression "iVar16 + 3" identifier + number_literal)) ;) (if_statement "if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }" if (parenthesized_expression "(local_ca != 0)" ( (binary_expression "local_ca != 0" identifier != number_literal) )) (compound_statement "{\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }" { (if_statement "if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }" if (parenthesized_expression "(DAT_0001e382 == '\0')" ( (binary_expression "DAT_0001e382 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }" { (expression_statement "local_ac = local_ac / (double)DAT_0001a3dc;" (assignment_expression "local_ac = local_ac / (double)DAT_0001a3dc" identifier = (binary_expression "local_ac / (double)DAT_0001a3dc" identifier / (cast_expression "(double)DAT_0001a3dc" ( (type_descriptor "double" primitive_type) ) identifier))) ;) (expression_statement "puVar8 = &DAT_0001e3dc;" (assignment_expression "puVar8 = &DAT_0001e3dc" identifier = (pointer_expression "&DAT_0001e3dc" & identifier)) ;) }) (else_clause "else {\n      puVar8 = &DAT_0001e3c0;\n    }" else (compound_statement "{\n      puVar8 = &DAT_0001e3c0;\n    }" { (expression_statement "puVar8 = &DAT_0001e3c0;" (assignment_expression "puVar8 = &DAT_0001e3c0" identifier = (pointer_expression "&DAT_0001e3c0" & identifier)) ;) }))) (expression_statement "local_d8 = iVar16 + 4;" (assignment_expression "local_d8 = iVar16 + 4" identifier = (binary_expression "iVar16 + 4" identifier + number_literal)) ;) (expression_statement "__sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);" (call_expression "__sprintf_chk(local_a0,1,0x80,*puVar8,local_ac)" identifier (argument_list "(local_a0,1,0x80,*puVar8,local_ac)" ( identifier , number_literal , number_literal , (pointer_expression "*puVar8" * identifier) , identifier ))) ;) (expression_statement "iVar9 = *(int *)puVar4;" (assignment_expression "iVar9 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" identifier = (call_expression "FUN_00018750(local_a0)" identifier (argument_list "(local_a0)" ( identifier )))) ;) (expression_statement "wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);" (call_expression "wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1)" identifier (argument_list "(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1)" ( (pointer_expression "*puVar6" * identifier) , (binary_expression "iVar16 + 3" identifier + number_literal) , (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" ( (binary_expression "iVar9 - iVar7" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" identifier (argument_list "(local_a0)" ( identifier ))) ;) })) (if_statement "if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }" if (parenthesized_expression "(local_c9 != '\0')" ( (binary_expression "local_c9 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }" { (expression_statement "iVar16 = *(int *)puVar4;" (assignment_expression "iVar16 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar9 = FUN_00018750(DAT_0001e3f4);" (assignment_expression "iVar9 = FUN_00018750(DAT_0001e3f4)" identifier = (call_expression "FUN_00018750(DAT_0001e3f4)" identifier (argument_list "(DAT_0001e3f4)" ( identifier )))) ;) (expression_statement "wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);" (call_expression "wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1)" identifier (argument_list "(*puVar6,local_d8,(iVar16 - iVar9) + -1)" ( (pointer_expression "*puVar6" * identifier) , identifier , (binary_expression "(iVar16 - iVar9) + -1" (parenthesized_expression "(iVar16 - iVar9)" ( (binary_expression "iVar16 - iVar9" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "FUN_000185e0(DAT_0001e3f4);" (call_expression "FUN_000185e0(DAT_0001e3f4)" identifier (argument_list "(DAT_0001e3f4)" ( identifier ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00018b10();" (call_expression "FUN_00018b10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid __regparm2 display_speed(int total_chars,double elapsed_time,int errcount)\n\n{\n  int iVar1;\n  char cVar2;\n  code *pcVar3;\n  double dVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  char *pcVar7;\n  int iVar8;\n  char **ppcVar9;\n  int iVar10;\n  char *pcVar11;\n  size_t sVar12;\n  char *pcVar13;\n  FILE *__stream;\n  char *pcVar14;\n  tm *ptVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double test_time;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  _Bool local_ca;\n  char local_c9;\n  time_t nowts;\n  double best_cpm;\n  char message [128];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar10 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar10 + -5;\n  if (elapsed_time <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)total_chars / (elapsed_time / (double)DAT_0001a3d8);\n    dVar4 = (double)(total_chars + errcount * -5) / (elapsed_time / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar4 < DAT_0001a3e8) {\n      if (dVar4 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = cl_personal_best;\n  local_ca = false;\n  if (cl_personal_best) {\n    local_ca = get_best_speed(global_script_filename,__last_label,&best_cpm);\n    if ((!local_ca) || (best_cpm < local_d4)) {\n      iVar10 = is_error_too_high(total_chars,errcount);\n      pcVar7 = __last_label;\n      pcVar14 = global_script_filename;\n      pcVar13 = global_home_env;\n      if (iVar10 == 0) {\n        pcVar11 = getenv(global_home_env);\n        sVar12 = strlen(pcVar11);\n        pcVar11 = (char *)malloc(sVar12 + 0x12);\n        if (pcVar11 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }\n        pcVar13 = getenv(pcVar13);\n        __sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);\n        __stream = fopen(pcVar11,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }\n        pcVar13 = strdup(pcVar14);\n        if (pcVar13 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }\n        cVar2 = *pcVar13;\n        pcVar14 = pcVar13;\n        while (cVar2 != '\0') {\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }\n        nowts = time((time_t *)0x0);\n        ptVar15 = localtime(&nowts);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar11);\n        free(pcVar13);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar10 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (cl_scoring_cpm == false) {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    ppcVar9 = &SPEED_RAW_WPM;\n  }\n  else {\n    ppcVar9 = &SPEED_RAW_CPM;\n  }\n  __sprintf_chk(message,1,0x80,*ppcVar9,dVar17);\n  puVar6 = PTR_COLS_0001dfe4;\n  iVar10 = *(int *)PTR_COLS_0001dfe4;\n  iVar8 = utf8len(message);\n  puVar5 = PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar10 - iVar8) + -1);\n  wideaddstr_rev(message);\n  if (cl_scoring_cpm == false) {\n    ppcVar9 = &SPEED_ADJ_WPM;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    ppcVar9 = &SPEED_ADJ_CPM;\n  }\n  __sprintf_chk(message,1,0x80,*ppcVar9,local_d4);\n  iVar10 = *(int *)puVar6;\n  iVar8 = utf8len(message);\n  wmove(*(undefined4 *)puVar5,iVar16 + 1,(iVar10 - iVar8) + -1);\n  wideaddstr_rev(message);\n  __sprintf_chk(message,1,0x80,SPEED_PCT_ERROR,\n                (double)(((float)errcount * DAT_0001a3d4) / (float)total_chars));\n  iVar10 = *(int *)puVar6;\n  iVar8 = utf8len(message);\n  wmove(*(undefined4 *)puVar5,iVar16 + 2,(iVar10 - iVar8) + -1);\n  wideaddstr_rev(message);\n  local_d8 = iVar16 + 3;\n  if (local_ca != false) {\n    if (cl_scoring_cpm == false) {\n      best_cpm = best_cpm / (double)DAT_0001a3dc;\n      ppcVar9 = &SPEED_BEST_WPM;\n    }\n    else {\n      ppcVar9 = &SPEED_BEST_CPM;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(message,1,0x80,*ppcVar9,best_cpm);\n    iVar10 = *(int *)puVar6;\n    iVar8 = utf8len(message);\n    wmove(*(undefined4 *)puVar5,iVar16 + 3,(iVar10 - iVar8) + -1);\n    wideaddstr_rev(message);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar6;\n    iVar10 = utf8len(SPEED_BEST_NEW_MSG);\n    wmove(*(undefined4 *)puVar5,local_d8,(iVar16 - iVar10) + -1);\n    wideaddstr_rev(SPEED_BEST_NEW_MSG);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void __regparm2 display_speed(int total_chars,double elapsed_time,int errcount)\n\n{\n  int iVar1;\n  char cVar2;\n  code *pcVar3;\n  double dVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  char *pcVar7;\n  int iVar8;\n  char **ppcVar9;\n  int iVar10;\n  char *pcVar11;\n  size_t sVar12;\n  char *pcVar13;\n  FILE *__stream;\n  char *pcVar14;\n  tm *ptVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double test_time;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  _Bool local_ca;\n  char local_c9;\n  time_t nowts;\n  double best_cpm;\n  char message [128];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar10 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar10 + -5;\n  if (elapsed_time <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)total_chars / (elapsed_time / (double)DAT_0001a3d8);\n    dVar4 = (double)(total_chars + errcount * -5) / (elapsed_time / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar4 < DAT_0001a3e8) {\n      if (dVar4 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = cl_personal_best;\n  local_ca = false;\n  if (cl_personal_best) {\n    local_ca = get_best_speed(global_script_filename,__last_label,&best_cpm);\n    if ((!local_ca) || (best_cpm < local_d4)) {\n      iVar10 = is_error_too_high(total_chars,errcount);\n      pcVar7 = __last_label;\n      pcVar14 = global_script_filename;\n      pcVar13 = global_home_env;\n      if (iVar10 == 0) {\n        pcVar11 = getenv(global_home_env);\n        sVar12 = strlen(pcVar11);\n        pcVar11 = (char *)malloc(sVar12 + 0x12);\n        if (pcVar11 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }\n        pcVar13 = getenv(pcVar13);\n        __sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);\n        __stream = fopen(pcVar11,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }\n        pcVar13 = strdup(pcVar14);\n        if (pcVar13 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }\n        cVar2 = *pcVar13;\n        pcVar14 = pcVar13;\n        while (cVar2 != '\0') {\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }\n        nowts = time((time_t *)0x0);\n        ptVar15 = localtime(&nowts);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar11);\n        free(pcVar13);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar10 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (cl_scoring_cpm == false) {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    ppcVar9 = &SPEED_RAW_WPM;\n  }\n  else {\n    ppcVar9 = &SPEED_RAW_CPM;\n  }\n  __sprintf_chk(message,1,0x80,*ppcVar9,dVar17);\n  puVar6 = PTR_COLS_0001dfe4;\n  iVar10 = *(int *)PTR_COLS_0001dfe4;\n  iVar8 = utf8len(message);\n  puVar5 = PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar10 - iVar8) + -1);\n  wideaddstr_rev(message);\n  if (cl_scoring_cpm == false) {\n    ppcVar9 = &SPEED_ADJ_WPM;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    ppcVar9 = &SPEED_ADJ_CPM;\n  }\n  __sprintf_chk(message,1,0x80,*ppcVar9,local_d4);\n  iVar10 = *(int *)puVar6;\n  iVar8 = utf8len(message);\n  wmove(*(undefined4 *)puVar5,iVar16 + 1,(iVar10 - iVar8) + -1);\n  wideaddstr_rev(message);\n  __sprintf_chk(message,1,0x80,SPEED_PCT_ERROR,\n                (double)(((float)errcount * DAT_0001a3d4) / (float)total_chars));\n  iVar10 = *(int *)puVar6;\n  iVar8 = utf8len(message);\n  wmove(*(undefined4 *)puVar5,iVar16 + 2,(iVar10 - iVar8) + -1);\n  wideaddstr_rev(message);\n  local_d8 = iVar16 + 3;\n  if (local_ca != false) {\n    if (cl_scoring_cpm == false) {\n      best_cpm = best_cpm / (double)DAT_0001a3dc;\n      ppcVar9 = &SPEED_BEST_WPM;\n    }\n    else {\n      ppcVar9 = &SPEED_BEST_CPM;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(message,1,0x80,*ppcVar9,best_cpm);\n    iVar10 = *(int *)puVar6;\n    iVar8 = utf8len(message);\n    wmove(*(undefined4 *)puVar5,iVar16 + 3,(iVar10 - iVar8) + -1);\n    wideaddstr_rev(message);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar6;\n    iVar10 = utf8len(SPEED_BEST_NEW_MSG);\n    wmove(*(undefined4 *)puVar5,local_d8,(iVar16 - iVar10) + -1);\n    wideaddstr_rev(SPEED_BEST_NEW_MSG);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "display_speed(int total_chars,double elapsed_time,int errcount)" identifier (parameter_list "(int total_chars,double elapsed_time,int errcount)" ( (parameter_declaration "int total_chars" primitive_type identifier) , (parameter_declaration "double elapsed_time" primitive_type identifier) , (parameter_declaration "int errcount" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  code *pcVar3;\n  double dVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  char *pcVar7;\n  int iVar8;\n  char **ppcVar9;\n  int iVar10;\n  char *pcVar11;\n  size_t sVar12;\n  char *pcVar13;\n  FILE *__stream;\n  char *pcVar14;\n  tm *ptVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double test_time;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  _Bool local_ca;\n  char local_c9;\n  time_t nowts;\n  double best_cpm;\n  char message [128];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar10 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar10 + -5;\n  if (elapsed_time <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)total_chars / (elapsed_time / (double)DAT_0001a3d8);\n    dVar4 = (double)(total_chars + errcount * -5) / (elapsed_time / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar4 < DAT_0001a3e8) {\n      if (dVar4 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = cl_personal_best;\n  local_ca = false;\n  if (cl_personal_best) {\n    local_ca = get_best_speed(global_script_filename,__last_label,&best_cpm);\n    if ((!local_ca) || (best_cpm < local_d4)) {\n      iVar10 = is_error_too_high(total_chars,errcount);\n      pcVar7 = __last_label;\n      pcVar14 = global_script_filename;\n      pcVar13 = global_home_env;\n      if (iVar10 == 0) {\n        pcVar11 = getenv(global_home_env);\n        sVar12 = strlen(pcVar11);\n        pcVar11 = (char *)malloc(sVar12 + 0x12);\n        if (pcVar11 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }\n        pcVar13 = getenv(pcVar13);\n        __sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);\n        __stream = fopen(pcVar11,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }\n        pcVar13 = strdup(pcVar14);\n        if (pcVar13 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }\n        cVar2 = *pcVar13;\n        pcVar14 = pcVar13;\n        while (cVar2 != '\0') {\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }\n        nowts = time((time_t *)0x0);\n        ptVar15 = localtime(&nowts);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar11);\n        free(pcVar13);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar10 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (cl_scoring_cpm == false) {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    ppcVar9 = &SPEED_RAW_WPM;\n  }\n  else {\n    ppcVar9 = &SPEED_RAW_CPM;\n  }\n  __sprintf_chk(message,1,0x80,*ppcVar9,dVar17);\n  puVar6 = PTR_COLS_0001dfe4;\n  iVar10 = *(int *)PTR_COLS_0001dfe4;\n  iVar8 = utf8len(message);\n  puVar5 = PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar10 - iVar8) + -1);\n  wideaddstr_rev(message);\n  if (cl_scoring_cpm == false) {\n    ppcVar9 = &SPEED_ADJ_WPM;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    ppcVar9 = &SPEED_ADJ_CPM;\n  }\n  __sprintf_chk(message,1,0x80,*ppcVar9,local_d4);\n  iVar10 = *(int *)puVar6;\n  iVar8 = utf8len(message);\n  wmove(*(undefined4 *)puVar5,iVar16 + 1,(iVar10 - iVar8) + -1);\n  wideaddstr_rev(message);\n  __sprintf_chk(message,1,0x80,SPEED_PCT_ERROR,\n                (double)(((float)errcount * DAT_0001a3d4) / (float)total_chars));\n  iVar10 = *(int *)puVar6;\n  iVar8 = utf8len(message);\n  wmove(*(undefined4 *)puVar5,iVar16 + 2,(iVar10 - iVar8) + -1);\n  wideaddstr_rev(message);\n  local_d8 = iVar16 + 3;\n  if (local_ca != false) {\n    if (cl_scoring_cpm == false) {\n      best_cpm = best_cpm / (double)DAT_0001a3dc;\n      ppcVar9 = &SPEED_BEST_WPM;\n    }\n    else {\n      ppcVar9 = &SPEED_BEST_CPM;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(message,1,0x80,*ppcVar9,best_cpm);\n    iVar10 = *(int *)puVar6;\n    iVar8 = utf8len(message);\n    wmove(*(undefined4 *)puVar5,iVar16 + 3,(iVar10 - iVar8) + -1);\n    wideaddstr_rev(message);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar6;\n    iVar10 = utf8len(SPEED_BEST_NEW_MSG);\n    wmove(*(undefined4 *)puVar5,local_d8,(iVar16 - iVar10) + -1);\n    wideaddstr_rev(SPEED_BEST_NEW_MSG);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "double dVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "char **ppcVar9;" primitive_type (pointer_declarator "**ppcVar9" * (pointer_declarator "*ppcVar9" * identifier)) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "size_t sVar12;" primitive_type identifier ;) (declaration "char *pcVar13;" primitive_type (pointer_declarator "*pcVar13" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "char *pcVar14;" primitive_type (pointer_declarator "*pcVar14" * identifier) ;) (declaration "tm *ptVar15;" type_identifier (pointer_declarator "*ptVar15" * identifier) ;) (declaration "int iVar16;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "double test_time;" primitive_type identifier ;) (declaration "double dVar17;" primitive_type identifier ;) (declaration "int local_d8;" primitive_type identifier ;) (declaration "undefined8 local_d4;" type_identifier identifier ;) (declaration "_Bool local_ca;" type_identifier identifier ;) (declaration "char local_c9;" primitive_type identifier ;) (declaration "time_t nowts;" type_identifier identifier ;) (declaration "double best_cpm;" primitive_type identifier ;) (declaration "char message [128];" primitive_type (array_declarator "message [128]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = *(int *)PTR_LINES_0001dff0;" (assignment_expression "iVar10 = *(int *)PTR_LINES_0001dff0" identifier = (pointer_expression "*(int *)PTR_LINES_0001dff0" * (cast_expression "(int *)PTR_LINES_0001dff0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar16 = iVar10 + -5;" (assignment_expression "iVar16 = iVar10 + -5" identifier = (binary_expression "iVar10 + -5" identifier + number_literal)) ;) (if_statement "if (elapsed_time <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)total_chars / (elapsed_time / (double)DAT_0001a3d8);\n    dVar4 = (double)(total_chars + errcount * -5) / (elapsed_time / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar4 < DAT_0001a3e8) {\n      if (dVar4 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(elapsed_time <= 0.0)" ( (binary_expression "elapsed_time <= 0.0" identifier <= number_literal) )) (compound_statement "{\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }" { (expression_statement "dVar17 = DAT_0001a3e8;" (assignment_expression "dVar17 = DAT_0001a3e8" identifier = identifier) ;) (expression_statement "local_d4 = DAT_0001a3e8;" (assignment_expression "local_d4 = DAT_0001a3e8" identifier = identifier) ;) }) (else_clause "else {\n    dVar17 = (double)total_chars / (elapsed_time / (double)DAT_0001a3d8);\n    dVar4 = (double)(total_chars + errcount * -5) / (elapsed_time / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar4 < DAT_0001a3e8) {\n      if (dVar4 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" else (compound_statement "{\n    dVar17 = (double)total_chars / (elapsed_time / (double)DAT_0001a3d8);\n    dVar4 = (double)(total_chars + errcount * -5) / (elapsed_time / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar4 < DAT_0001a3e8) {\n      if (dVar4 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" { (expression_statement "dVar17 = (double)total_chars / (elapsed_time / (double)DAT_0001a3d8);" (assignment_expression "dVar17 = (double)total_chars / (elapsed_time / (double)DAT_0001a3d8)" identifier = (binary_expression "(double)total_chars / (elapsed_time / (double)DAT_0001a3d8)" (cast_expression "(double)total_chars" ( (type_descriptor "double" primitive_type) ) identifier) / (parenthesized_expression "(elapsed_time / (double)DAT_0001a3d8)" ( (binary_expression "elapsed_time / (double)DAT_0001a3d8" identifier / (cast_expression "(double)DAT_0001a3d8" ( (type_descriptor "double" primitive_type) ) identifier)) )))) ;) (expression_statement "dVar4 = (double)(total_chars + errcount * -5) / (elapsed_time / (double)DAT_0001a3d8);" (assignment_expression "dVar4 = (double)(total_chars + errcount * -5) / (elapsed_time / (double)DAT_0001a3d8)" identifier = (binary_expression "(double)(total_chars + errcount * -5) / (elapsed_time / (double)DAT_0001a3d8)" (cast_expression "(double)(total_chars + errcount * -5)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(total_chars + errcount * -5)" ( (binary_expression "total_chars + errcount * -5" identifier + (binary_expression "errcount * -5" identifier * number_literal)) ))) / (parenthesized_expression "(elapsed_time / (double)DAT_0001a3d8)" ( (binary_expression "elapsed_time / (double)DAT_0001a3d8" identifier / (cast_expression "(double)DAT_0001a3d8" ( (type_descriptor "double" primitive_type) ) identifier)) )))) ;) (expression_statement "local_d4 = DAT_0001a3e8;" (assignment_expression "local_d4 = DAT_0001a3e8" identifier = identifier) ;) (if_statement "if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }" if (parenthesized_expression "(DAT_0001a3e8 <= dVar17)" ( (binary_expression "DAT_0001a3e8 <= dVar17" identifier <= identifier) )) (compound_statement "{\n      dVar17 = DAT_0001a3e8;\n    }" { (expression_statement "dVar17 = DAT_0001a3e8;" (assignment_expression "dVar17 = DAT_0001a3e8" identifier = identifier) ;) })) (if_statement "if (dVar4 < DAT_0001a3e8) {\n      if (dVar4 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }\n    }" if (parenthesized_expression "(dVar4 < DAT_0001a3e8)" ( (binary_expression "dVar4 < DAT_0001a3e8" identifier < identifier) )) (compound_statement "{\n      if (dVar4 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }\n    }" { (if_statement "if (dVar4 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }" if (parenthesized_expression "(dVar4 <= 0.0)" ( (binary_expression "dVar4 <= 0.0" identifier <= number_literal) )) (compound_statement "{\n        local_d4 = 0.0;\n      }" { (expression_statement "local_d4 = 0.0;" (assignment_expression "local_d4 = 0.0" identifier = number_literal) ;) }) (else_clause "else {\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }" else (compound_statement "{\n        local_d4 = dVar4;\n        if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }\n      }" { (expression_statement "local_d4 = dVar4;" (assignment_expression "local_d4 = dVar4" identifier = identifier) ;) (if_statement "if (dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4) {\n          local_d4 = 0.0;\n        }" if (parenthesized_expression "(dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4)" ( (binary_expression "dVar4 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar4" (binary_expression "dVar4 <= _DAT_0001a3f0" identifier <= identifier) || (binary_expression "_DAT_0001a3f0 != dVar4" identifier != identifier)) )) (compound_statement "{\n          local_d4 = 0.0;\n        }" { (expression_statement "local_d4 = 0.0;" (assignment_expression "local_d4 = 0.0" identifier = number_literal) ;) })) }))) })) }))) (expression_statement "local_c9 = cl_personal_best;" (assignment_expression "local_c9 = cl_personal_best" identifier = identifier) ;) (expression_statement "local_ca = false;" (assignment_expression "local_ca = false" identifier = false) ;) (if_statement "if (cl_personal_best) {\n    local_ca = get_best_speed(global_script_filename,__last_label,&best_cpm);\n    if ((!local_ca) || (best_cpm < local_d4)) {\n      iVar10 = is_error_too_high(total_chars,errcount);\n      pcVar7 = __last_label;\n      pcVar14 = global_script_filename;\n      pcVar13 = global_home_env;\n      if (iVar10 == 0) {\n        pcVar11 = getenv(global_home_env);\n        sVar12 = strlen(pcVar11);\n        pcVar11 = (char *)malloc(sVar12 + 0x12);\n        if (pcVar11 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }\n        pcVar13 = getenv(pcVar13);\n        __sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);\n        __stream = fopen(pcVar11,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }\n        pcVar13 = strdup(pcVar14);\n        if (pcVar13 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }\n        cVar2 = *pcVar13;\n        pcVar14 = pcVar13;\n        while (cVar2 != '\0') {\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }\n        nowts = time((time_t *)0x0);\n        ptVar15 = localtime(&nowts);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar11);\n        free(pcVar13);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar10 + -6;\n      local_c9 = '\0';\n    }\n  }" if (parenthesized_expression "(cl_personal_best)" ( identifier )) (compound_statement "{\n    local_ca = get_best_speed(global_script_filename,__last_label,&best_cpm);\n    if ((!local_ca) || (best_cpm < local_d4)) {\n      iVar10 = is_error_too_high(total_chars,errcount);\n      pcVar7 = __last_label;\n      pcVar14 = global_script_filename;\n      pcVar13 = global_home_env;\n      if (iVar10 == 0) {\n        pcVar11 = getenv(global_home_env);\n        sVar12 = strlen(pcVar11);\n        pcVar11 = (char *)malloc(sVar12 + 0x12);\n        if (pcVar11 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }\n        pcVar13 = getenv(pcVar13);\n        __sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);\n        __stream = fopen(pcVar11,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }\n        pcVar13 = strdup(pcVar14);\n        if (pcVar13 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }\n        cVar2 = *pcVar13;\n        pcVar14 = pcVar13;\n        while (cVar2 != '\0') {\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }\n        nowts = time((time_t *)0x0);\n        ptVar15 = localtime(&nowts);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar11);\n        free(pcVar13);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar10 + -6;\n      local_c9 = '\0';\n    }\n  }" { (expression_statement "local_ca = get_best_speed(global_script_filename,__last_label,&best_cpm);" (assignment_expression "local_ca = get_best_speed(global_script_filename,__last_label,&best_cpm)" identifier = (call_expression "get_best_speed(global_script_filename,__last_label,&best_cpm)" identifier (argument_list "(global_script_filename,__last_label,&best_cpm)" ( identifier , identifier , (pointer_expression "&best_cpm" & identifier) )))) ;) (if_statement "if ((!local_ca) || (best_cpm < local_d4)) {\n      iVar10 = is_error_too_high(total_chars,errcount);\n      pcVar7 = __last_label;\n      pcVar14 = global_script_filename;\n      pcVar13 = global_home_env;\n      if (iVar10 == 0) {\n        pcVar11 = getenv(global_home_env);\n        sVar12 = strlen(pcVar11);\n        pcVar11 = (char *)malloc(sVar12 + 0x12);\n        if (pcVar11 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }\n        pcVar13 = getenv(pcVar13);\n        __sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);\n        __stream = fopen(pcVar11,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }\n        pcVar13 = strdup(pcVar14);\n        if (pcVar13 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }\n        cVar2 = *pcVar13;\n        pcVar14 = pcVar13;\n        while (cVar2 != '\0') {\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }\n        nowts = time((time_t *)0x0);\n        ptVar15 = localtime(&nowts);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar11);\n        free(pcVar13);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar10 + -6;\n      local_c9 = '\0';\n    }" if (parenthesized_expression "((!local_ca) || (best_cpm < local_d4))" ( (binary_expression "(!local_ca) || (best_cpm < local_d4)" (parenthesized_expression "(!local_ca)" ( (unary_expression "!local_ca" ! identifier) )) || (parenthesized_expression "(best_cpm < local_d4)" ( (binary_expression "best_cpm < local_d4" identifier < identifier) ))) )) (compound_statement "{\n      iVar10 = is_error_too_high(total_chars,errcount);\n      pcVar7 = __last_label;\n      pcVar14 = global_script_filename;\n      pcVar13 = global_home_env;\n      if (iVar10 == 0) {\n        pcVar11 = getenv(global_home_env);\n        sVar12 = strlen(pcVar11);\n        pcVar11 = (char *)malloc(sVar12 + 0x12);\n        if (pcVar11 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }\n        pcVar13 = getenv(pcVar13);\n        __sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);\n        __stream = fopen(pcVar11,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }\n        pcVar13 = strdup(pcVar14);\n        if (pcVar13 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }\n        cVar2 = *pcVar13;\n        pcVar14 = pcVar13;\n        while (cVar2 != '\0') {\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }\n        nowts = time((time_t *)0x0);\n        ptVar15 = localtime(&nowts);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar11);\n        free(pcVar13);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }" { (expression_statement "iVar10 = is_error_too_high(total_chars,errcount);" (assignment_expression "iVar10 = is_error_too_high(total_chars,errcount)" identifier = (call_expression "is_error_too_high(total_chars,errcount)" identifier (argument_list "(total_chars,errcount)" ( identifier , identifier )))) ;) (expression_statement "pcVar7 = __last_label;" (assignment_expression "pcVar7 = __last_label" identifier = identifier) ;) (expression_statement "pcVar14 = global_script_filename;" (assignment_expression "pcVar14 = global_script_filename" identifier = identifier) ;) (expression_statement "pcVar13 = global_home_env;" (assignment_expression "pcVar13 = global_home_env" identifier = identifier) ;) (if_statement "if (iVar10 == 0) {\n        pcVar11 = getenv(global_home_env);\n        sVar12 = strlen(pcVar11);\n        pcVar11 = (char *)malloc(sVar12 + 0x12);\n        if (pcVar11 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }\n        pcVar13 = getenv(pcVar13);\n        __sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);\n        __stream = fopen(pcVar11,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }\n        pcVar13 = strdup(pcVar14);\n        if (pcVar13 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }\n        cVar2 = *pcVar13;\n        pcVar14 = pcVar13;\n        while (cVar2 != '\0') {\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }\n        nowts = time((time_t *)0x0);\n        ptVar15 = localtime(&nowts);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar11);\n        free(pcVar13);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar11 = getenv(global_home_env);\n        sVar12 = strlen(pcVar11);\n        pcVar11 = (char *)malloc(sVar12 + 0x12);\n        if (pcVar11 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }\n        pcVar13 = getenv(pcVar13);\n        __sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);\n        __stream = fopen(pcVar11,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }\n        pcVar13 = strdup(pcVar14);\n        if (pcVar13 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }\n        cVar2 = *pcVar13;\n        pcVar14 = pcVar13;\n        while (cVar2 != '\0') {\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }\n        nowts = time((time_t *)0x0);\n        ptVar15 = localtime(&nowts);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar11);\n        free(pcVar13);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }" { (expression_statement "pcVar11 = getenv(global_home_env);" (assignment_expression "pcVar11 = getenv(global_home_env)" identifier = (call_expression "getenv(global_home_env)" identifier (argument_list "(global_home_env)" ( identifier )))) ;) (expression_statement "sVar12 = strlen(pcVar11);" (assignment_expression "sVar12 = strlen(pcVar11)" identifier = (call_expression "strlen(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier )))) ;) (expression_statement "pcVar11 = (char *)malloc(sVar12 + 0x12);" (assignment_expression "pcVar11 = (char *)malloc(sVar12 + 0x12)" identifier = (cast_expression "(char *)malloc(sVar12 + 0x12)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(sVar12 + 0x12)" identifier (argument_list "(sVar12 + 0x12)" ( (binary_expression "sVar12 + 0x12" identifier + number_literal) ))))) ;) (if_statement "if (pcVar11 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }" if (parenthesized_expression "(pcVar11 == (char *)0x0)" ( (binary_expression "pcVar11 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n          pcVar13 = global_home_env;\n        }" { (expression_statement "perror("malloc");" (call_expression "perror("malloc")" identifier (argument_list "("malloc")" ( (string_literal ""malloc"" " string_content ") ))) ;) (expression_statement "pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);" (assignment_expression "pcVar13 = (char *)dcgettext(0,"internal error: malloc",5)" identifier = (cast_expression "(char *)dcgettext(0,"internal error: malloc",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"internal error: malloc",5)" identifier (argument_list "(0,"internal error: malloc",5)" ( number_literal , (string_literal ""internal error: malloc"" " string_content ") , number_literal ))))) ;) (expression_statement "fatal_error(pcVar13,(char *)0x0);" (call_expression "fatal_error(pcVar13,(char *)0x0)" identifier (argument_list "(pcVar13,(char *)0x0)" ( identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "pcVar13 = global_home_env;" (assignment_expression "pcVar13 = global_home_env" identifier = identifier) ;) })) (expression_statement "pcVar13 = getenv(pcVar13);" (assignment_expression "pcVar13 = getenv(pcVar13)" identifier = (call_expression "getenv(pcVar13)" identifier (argument_list "(pcVar13)" ( identifier )))) ;) (expression_statement "__sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13);" (call_expression "__sprintf_chk(pcVar11,1,0xffffffff,"%s/%s",pcVar13)" identifier (argument_list "(pcVar11,1,0xffffffff,"%s/%s",pcVar13)" ( identifier , number_literal , number_literal , (string_literal ""%s/%s"" " string_content ") , identifier ))) ;) (expression_statement "__stream = fopen(pcVar11,"a");" (assignment_expression "__stream = fopen(pcVar11,"a")" identifier = (call_expression "fopen(pcVar11,"a")" identifier (argument_list "(pcVar11,"a")" ( identifier , (string_literal ""a"" " string_content ") )))) ;) (if_statement "if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          perror("fopen");\n          pcVar13 = (char *)dcgettext(0," internal error: fopen",5);\n          fatal_error(pcVar13,(char *)0x0);\n        }" { (expression_statement "perror("fopen");" (call_expression "perror("fopen")" identifier (argument_list "("fopen")" ( (string_literal ""fopen"" " string_content ") ))) ;) (expression_statement "pcVar13 = (char *)dcgettext(0," internal error: fopen",5);" (assignment_expression "pcVar13 = (char *)dcgettext(0," internal error: fopen",5)" identifier = (cast_expression "(char *)dcgettext(0," internal error: fopen",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0," internal error: fopen",5)" identifier (argument_list "(0," internal error: fopen",5)" ( number_literal , (string_literal "" internal error: fopen"" " string_content ") , number_literal ))))) ;) (expression_statement "fatal_error(pcVar13,(char *)0x0);" (call_expression "fatal_error(pcVar13,(char *)0x0)" identifier (argument_list "(pcVar13,(char *)0x0)" ( identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (expression_statement "pcVar13 = strdup(pcVar14);" (assignment_expression "pcVar13 = strdup(pcVar14)" identifier = (call_expression "strdup(pcVar14)" identifier (argument_list "(pcVar14)" ( identifier )))) ;) (if_statement "if (pcVar13 == (char *)0x0) {\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }" if (parenthesized_expression "(pcVar13 == (char *)0x0)" ( (binary_expression "pcVar13 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          perror("malloc");\n          pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);\n          fatal_error(pcVar13,(char *)0x0);\n                    /* WARNING: Does not return */\n          pcVar3 = (code *)invalidInstructionException();\n          (*pcVar3)();\n        }" { (expression_statement "perror("malloc");" (call_expression "perror("malloc")" identifier (argument_list "("malloc")" ( (string_literal ""malloc"" " string_content ") ))) ;) (expression_statement "pcVar13 = (char *)dcgettext(0,"internal error: malloc",5);" (assignment_expression "pcVar13 = (char *)dcgettext(0,"internal error: malloc",5)" identifier = (cast_expression "(char *)dcgettext(0,"internal error: malloc",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"internal error: malloc",5)" identifier (argument_list "(0,"internal error: malloc",5)" ( number_literal , (string_literal ""internal error: malloc"" " string_content ") , number_literal ))))) ;) (expression_statement "fatal_error(pcVar13,(char *)0x0);" (call_expression "fatal_error(pcVar13,(char *)0x0)" identifier (argument_list "(pcVar13,(char *)0x0)" ( identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) comment (expression_statement "pcVar3 = (code *)invalidInstructionException();" (assignment_expression "pcVar3 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar3)();" (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "cVar2 = *pcVar13;" (assignment_expression "cVar2 = *pcVar13" identifier = (pointer_expression "*pcVar13" * identifier)) ;) (expression_statement "pcVar14 = pcVar13;" (assignment_expression "pcVar14 = pcVar13" identifier = identifier) ;) (while_statement "while (cVar2 != '\0') {\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }\n          pcVar14 = pcVar14 + 1;\n          cVar2 = *pcVar14;\n        }" { (if_statement "if (cVar2 == ' ') {\n            *pcVar14 = '+';\n          }" if (parenthesized_expression "(cVar2 == ' ')" ( (binary_expression "cVar2 == ' '" identifier == (char_literal "' '" ' character ')) )) (compound_statement "{\n            *pcVar14 = '+';\n          }" { (expression_statement "*pcVar14 = '+';" (assignment_expression "*pcVar14 = '+'" (pointer_expression "*pcVar14" * identifier) = (char_literal "'+'" ' character ')) ;) })) (expression_statement "pcVar14 = pcVar14 + 1;" (assignment_expression "pcVar14 = pcVar14 + 1" identifier = (binary_expression "pcVar14 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar14;" (assignment_expression "cVar2 = *pcVar14" identifier = (pointer_expression "*pcVar14" * identifier)) ;) })) (expression_statement "nowts = time((time_t *)0x0);" (assignment_expression "nowts = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "ptVar15 = localtime(&nowts);" (assignment_expression "ptVar15 = localtime(&nowts)" identifier = (call_expression "localtime(&nowts)" identifier (argument_list "(&nowts)" ( (pointer_expression "&nowts" & identifier) )))) ;) (expression_statement "__fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_);" (call_expression "__fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_)" identifier (argument_list "(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c\n                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,\n                      ptVar15->tm_sec,pcVar13,pcVar7,(undefined4)local_d4,local_d4._4_4_)" ( identifier , number_literal , (string_literal ""%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n"" " string_content escape_sequence ") , (binary_expression "ptVar15->tm_year + 0x76c" (field_expression "ptVar15->tm_year" identifier -> field_identifier) + number_literal) , (binary_expression "ptVar15->tm_mon + 1" (field_expression "ptVar15->tm_mon" identifier -> field_identifier) + number_literal) , (field_expression "ptVar15->tm_mday" identifier -> field_identifier) , (field_expression "ptVar15->tm_hour" identifier -> field_identifier) , (field_expression "ptVar15->tm_min" identifier -> field_identifier) , (field_expression "ptVar15->tm_sec" identifier -> field_identifier) , identifier , identifier , (cast_expression "(undefined4)local_d4" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (field_expression "local_d4._4_4_" identifier . field_identifier) ))) ;) (expression_statement "free(pcVar11);" (call_expression "free(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier ))) ;) (expression_statement "free(pcVar13);" (call_expression "free(pcVar13)" identifier (argument_list "(pcVar13)" ( identifier ))) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "iVar16 = iVar16 - (local_ca + 1);" (assignment_expression "iVar16 = iVar16 - (local_ca + 1)" identifier = (binary_expression "iVar16 - (local_ca + 1)" identifier - (parenthesized_expression "(local_ca + 1)" ( (binary_expression "local_ca + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" else (compound_statement "{\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" { (expression_statement "local_c9 = '\0';" (assignment_expression "local_c9 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar16 = iVar16 - (uint)local_ca;" (assignment_expression "iVar16 = iVar16 - (uint)local_ca" identifier = (binary_expression "iVar16 - (uint)local_ca" identifier - (cast_expression "(uint)local_ca" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }))) }) (else_clause "else {\n      iVar16 = iVar10 + -6;\n      local_c9 = '\0';\n    }" else (compound_statement "{\n      iVar16 = iVar10 + -6;\n      local_c9 = '\0';\n    }" { (expression_statement "iVar16 = iVar10 + -6;" (assignment_expression "iVar16 = iVar10 + -6" identifier = (binary_expression "iVar10 + -6" identifier + number_literal)) ;) (expression_statement "local_c9 = '\0';" (assignment_expression "local_c9 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) })) (if_statement "if (cl_scoring_cpm == false) {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    ppcVar9 = &SPEED_RAW_WPM;\n  }\n  else {\n    ppcVar9 = &SPEED_RAW_CPM;\n  }" if (parenthesized_expression "(cl_scoring_cpm == false)" ( (binary_expression "cl_scoring_cpm == false" identifier == false) )) (compound_statement "{\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    ppcVar9 = &SPEED_RAW_WPM;\n  }" { (expression_statement "dVar17 = dVar17 / (double)DAT_0001a3dc;" (assignment_expression "dVar17 = dVar17 / (double)DAT_0001a3dc" identifier = (binary_expression "dVar17 / (double)DAT_0001a3dc" identifier / (cast_expression "(double)DAT_0001a3dc" ( (type_descriptor "double" primitive_type) ) identifier))) ;) (expression_statement "ppcVar9 = &SPEED_RAW_WPM;" (assignment_expression "ppcVar9 = &SPEED_RAW_WPM" identifier = (pointer_expression "&SPEED_RAW_WPM" & identifier)) ;) }) (else_clause "else {\n    ppcVar9 = &SPEED_RAW_CPM;\n  }" else (compound_statement "{\n    ppcVar9 = &SPEED_RAW_CPM;\n  }" { (expression_statement "ppcVar9 = &SPEED_RAW_CPM;" (assignment_expression "ppcVar9 = &SPEED_RAW_CPM" identifier = (pointer_expression "&SPEED_RAW_CPM" & identifier)) ;) }))) (expression_statement "__sprintf_chk(message,1,0x80,*ppcVar9,dVar17);" (call_expression "__sprintf_chk(message,1,0x80,*ppcVar9,dVar17)" identifier (argument_list "(message,1,0x80,*ppcVar9,dVar17)" ( identifier , number_literal , number_literal , (pointer_expression "*ppcVar9" * identifier) , identifier ))) ;) (expression_statement "puVar6 = PTR_COLS_0001dfe4;" (assignment_expression "puVar6 = PTR_COLS_0001dfe4" identifier = identifier) ;) (expression_statement "iVar10 = *(int *)PTR_COLS_0001dfe4;" (assignment_expression "iVar10 = *(int *)PTR_COLS_0001dfe4" identifier = (pointer_expression "*(int *)PTR_COLS_0001dfe4" * (cast_expression "(int *)PTR_COLS_0001dfe4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = utf8len(message);" (assignment_expression "iVar8 = utf8len(message)" identifier = (call_expression "utf8len(message)" identifier (argument_list "(message)" ( identifier )))) ;) (expression_statement "puVar5 = PTR_stdscr_0001dfdc;" (assignment_expression "puVar5 = PTR_stdscr_0001dfdc" identifier = identifier) ;) (expression_statement "wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar10 - iVar8) + -1);" (call_expression "wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar10 - iVar8) + -1)" identifier (argument_list "(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar10 - iVar8) + -1)" ( (pointer_expression "*(undefined4 *)PTR_stdscr_0001dfdc" * (cast_expression "(undefined4 *)PTR_stdscr_0001dfdc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , (binary_expression "(iVar10 - iVar8) + -1" (parenthesized_expression "(iVar10 - iVar8)" ( (binary_expression "iVar10 - iVar8" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "wideaddstr_rev(message);" (call_expression "wideaddstr_rev(message)" identifier (argument_list "(message)" ( identifier ))) ;) (if_statement "if (cl_scoring_cpm == false) {\n    ppcVar9 = &SPEED_ADJ_WPM;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    ppcVar9 = &SPEED_ADJ_CPM;\n  }" if (parenthesized_expression "(cl_scoring_cpm == false)" ( (binary_expression "cl_scoring_cpm == false" identifier == false) )) (compound_statement "{\n    ppcVar9 = &SPEED_ADJ_WPM;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }" { (expression_statement "ppcVar9 = &SPEED_ADJ_WPM;" (assignment_expression "ppcVar9 = &SPEED_ADJ_WPM" identifier = (pointer_expression "&SPEED_ADJ_WPM" & identifier)) ;) (expression_statement "local_d4 = local_d4 / (double)DAT_0001a3dc;" (assignment_expression "local_d4 = local_d4 / (double)DAT_0001a3dc" identifier = (binary_expression "local_d4 / (double)DAT_0001a3dc" identifier / (cast_expression "(double)DAT_0001a3dc" ( (type_descriptor "double" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    ppcVar9 = &SPEED_ADJ_CPM;\n  }" else (compound_statement "{\n    ppcVar9 = &SPEED_ADJ_CPM;\n  }" { (expression_statement "ppcVar9 = &SPEED_ADJ_CPM;" (assignment_expression "ppcVar9 = &SPEED_ADJ_CPM" identifier = (pointer_expression "&SPEED_ADJ_CPM" & identifier)) ;) }))) (expression_statement "__sprintf_chk(message,1,0x80,*ppcVar9,local_d4);" (call_expression "__sprintf_chk(message,1,0x80,*ppcVar9,local_d4)" identifier (argument_list "(message,1,0x80,*ppcVar9,local_d4)" ( identifier , number_literal , number_literal , (pointer_expression "*ppcVar9" * identifier) , identifier ))) ;) (expression_statement "iVar10 = *(int *)puVar6;" (assignment_expression "iVar10 = *(int *)puVar6" identifier = (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = utf8len(message);" (assignment_expression "iVar8 = utf8len(message)" identifier = (call_expression "utf8len(message)" identifier (argument_list "(message)" ( identifier )))) ;) (expression_statement "wmove(*(undefined4 *)puVar5,iVar16 + 1,(iVar10 - iVar8) + -1);" (call_expression "wmove(*(undefined4 *)puVar5,iVar16 + 1,(iVar10 - iVar8) + -1)" identifier (argument_list "(*(undefined4 *)puVar5,iVar16 + 1,(iVar10 - iVar8) + -1)" ( (pointer_expression "*(undefined4 *)puVar5" * (cast_expression "(undefined4 *)puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "iVar16 + 1" identifier + number_literal) , (binary_expression "(iVar10 - iVar8) + -1" (parenthesized_expression "(iVar10 - iVar8)" ( (binary_expression "iVar10 - iVar8" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "wideaddstr_rev(message);" (call_expression "wideaddstr_rev(message)" identifier (argument_list "(message)" ( identifier ))) ;) (expression_statement "__sprintf_chk(message,1,0x80,SPEED_PCT_ERROR,\n                (double)(((float)errcount * DAT_0001a3d4) / (float)total_chars));" (call_expression "__sprintf_chk(message,1,0x80,SPEED_PCT_ERROR,\n                (double)(((float)errcount * DAT_0001a3d4) / (float)total_chars))" identifier (argument_list "(message,1,0x80,SPEED_PCT_ERROR,\n                (double)(((float)errcount * DAT_0001a3d4) / (float)total_chars))" ( identifier , number_literal , number_literal , identifier , (cast_expression "(double)(((float)errcount * DAT_0001a3d4) / (float)total_chars)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(((float)errcount * DAT_0001a3d4) / (float)total_chars)" ( (binary_expression "((float)errcount * DAT_0001a3d4) / (float)total_chars" (parenthesized_expression "((float)errcount * DAT_0001a3d4)" ( (binary_expression "(float)errcount * DAT_0001a3d4" (cast_expression "(float)errcount" ( (type_descriptor "float" primitive_type) ) identifier) * identifier) )) / (cast_expression "(float)total_chars" ( (type_descriptor "float" primitive_type) ) identifier)) ))) ))) ;) (expression_statement "iVar10 = *(int *)puVar6;" (assignment_expression "iVar10 = *(int *)puVar6" identifier = (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = utf8len(message);" (assignment_expression "iVar8 = utf8len(message)" identifier = (call_expression "utf8len(message)" identifier (argument_list "(message)" ( identifier )))) ;) (expression_statement "wmove(*(undefined4 *)puVar5,iVar16 + 2,(iVar10 - iVar8) + -1);" (call_expression "wmove(*(undefined4 *)puVar5,iVar16 + 2,(iVar10 - iVar8) + -1)" identifier (argument_list "(*(undefined4 *)puVar5,iVar16 + 2,(iVar10 - iVar8) + -1)" ( (pointer_expression "*(undefined4 *)puVar5" * (cast_expression "(undefined4 *)puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "iVar16 + 2" identifier + number_literal) , (binary_expression "(iVar10 - iVar8) + -1" (parenthesized_expression "(iVar10 - iVar8)" ( (binary_expression "iVar10 - iVar8" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "wideaddstr_rev(message);" (call_expression "wideaddstr_rev(message)" identifier (argument_list "(message)" ( identifier ))) ;) (expression_statement "local_d8 = iVar16 + 3;" (assignment_expression "local_d8 = iVar16 + 3" identifier = (binary_expression "iVar16 + 3" identifier + number_literal)) ;) (if_statement "if (local_ca != false) {\n    if (cl_scoring_cpm == false) {\n      best_cpm = best_cpm / (double)DAT_0001a3dc;\n      ppcVar9 = &SPEED_BEST_WPM;\n    }\n    else {\n      ppcVar9 = &SPEED_BEST_CPM;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(message,1,0x80,*ppcVar9,best_cpm);\n    iVar10 = *(int *)puVar6;\n    iVar8 = utf8len(message);\n    wmove(*(undefined4 *)puVar5,iVar16 + 3,(iVar10 - iVar8) + -1);\n    wideaddstr_rev(message);\n  }" if (parenthesized_expression "(local_ca != false)" ( (binary_expression "local_ca != false" identifier != false) )) (compound_statement "{\n    if (cl_scoring_cpm == false) {\n      best_cpm = best_cpm / (double)DAT_0001a3dc;\n      ppcVar9 = &SPEED_BEST_WPM;\n    }\n    else {\n      ppcVar9 = &SPEED_BEST_CPM;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(message,1,0x80,*ppcVar9,best_cpm);\n    iVar10 = *(int *)puVar6;\n    iVar8 = utf8len(message);\n    wmove(*(undefined4 *)puVar5,iVar16 + 3,(iVar10 - iVar8) + -1);\n    wideaddstr_rev(message);\n  }" { (if_statement "if (cl_scoring_cpm == false) {\n      best_cpm = best_cpm / (double)DAT_0001a3dc;\n      ppcVar9 = &SPEED_BEST_WPM;\n    }\n    else {\n      ppcVar9 = &SPEED_BEST_CPM;\n    }" if (parenthesized_expression "(cl_scoring_cpm == false)" ( (binary_expression "cl_scoring_cpm == false" identifier == false) )) (compound_statement "{\n      best_cpm = best_cpm / (double)DAT_0001a3dc;\n      ppcVar9 = &SPEED_BEST_WPM;\n    }" { (expression_statement "best_cpm = best_cpm / (double)DAT_0001a3dc;" (assignment_expression "best_cpm = best_cpm / (double)DAT_0001a3dc" identifier = (binary_expression "best_cpm / (double)DAT_0001a3dc" identifier / (cast_expression "(double)DAT_0001a3dc" ( (type_descriptor "double" primitive_type) ) identifier))) ;) (expression_statement "ppcVar9 = &SPEED_BEST_WPM;" (assignment_expression "ppcVar9 = &SPEED_BEST_WPM" identifier = (pointer_expression "&SPEED_BEST_WPM" & identifier)) ;) }) (else_clause "else {\n      ppcVar9 = &SPEED_BEST_CPM;\n    }" else (compound_statement "{\n      ppcVar9 = &SPEED_BEST_CPM;\n    }" { (expression_statement "ppcVar9 = &SPEED_BEST_CPM;" (assignment_expression "ppcVar9 = &SPEED_BEST_CPM" identifier = (pointer_expression "&SPEED_BEST_CPM" & identifier)) ;) }))) (expression_statement "local_d8 = iVar16 + 4;" (assignment_expression "local_d8 = iVar16 + 4" identifier = (binary_expression "iVar16 + 4" identifier + number_literal)) ;) (expression_statement "__sprintf_chk(message,1,0x80,*ppcVar9,best_cpm);" (call_expression "__sprintf_chk(message,1,0x80,*ppcVar9,best_cpm)" identifier (argument_list "(message,1,0x80,*ppcVar9,best_cpm)" ( identifier , number_literal , number_literal , (pointer_expression "*ppcVar9" * identifier) , identifier ))) ;) (expression_statement "iVar10 = *(int *)puVar6;" (assignment_expression "iVar10 = *(int *)puVar6" identifier = (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = utf8len(message);" (assignment_expression "iVar8 = utf8len(message)" identifier = (call_expression "utf8len(message)" identifier (argument_list "(message)" ( identifier )))) ;) (expression_statement "wmove(*(undefined4 *)puVar5,iVar16 + 3,(iVar10 - iVar8) + -1);" (call_expression "wmove(*(undefined4 *)puVar5,iVar16 + 3,(iVar10 - iVar8) + -1)" identifier (argument_list "(*(undefined4 *)puVar5,iVar16 + 3,(iVar10 - iVar8) + -1)" ( (pointer_expression "*(undefined4 *)puVar5" * (cast_expression "(undefined4 *)puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "iVar16 + 3" identifier + number_literal) , (binary_expression "(iVar10 - iVar8) + -1" (parenthesized_expression "(iVar10 - iVar8)" ( (binary_expression "iVar10 - iVar8" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "wideaddstr_rev(message);" (call_expression "wideaddstr_rev(message)" identifier (argument_list "(message)" ( identifier ))) ;) })) (if_statement "if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar6;\n    iVar10 = utf8len(SPEED_BEST_NEW_MSG);\n    wmove(*(undefined4 *)puVar5,local_d8,(iVar16 - iVar10) + -1);\n    wideaddstr_rev(SPEED_BEST_NEW_MSG);\n  }" if (parenthesized_expression "(local_c9 != '\0')" ( (binary_expression "local_c9 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar16 = *(int *)puVar6;\n    iVar10 = utf8len(SPEED_BEST_NEW_MSG);\n    wmove(*(undefined4 *)puVar5,local_d8,(iVar16 - iVar10) + -1);\n    wideaddstr_rev(SPEED_BEST_NEW_MSG);\n  }" { (expression_statement "iVar16 = *(int *)puVar6;" (assignment_expression "iVar16 = *(int *)puVar6" identifier = (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar10 = utf8len(SPEED_BEST_NEW_MSG);" (assignment_expression "iVar10 = utf8len(SPEED_BEST_NEW_MSG)" identifier = (call_expression "utf8len(SPEED_BEST_NEW_MSG)" identifier (argument_list "(SPEED_BEST_NEW_MSG)" ( identifier )))) ;) (expression_statement "wmove(*(undefined4 *)puVar5,local_d8,(iVar16 - iVar10) + -1);" (call_expression "wmove(*(undefined4 *)puVar5,local_d8,(iVar16 - iVar10) + -1)" identifier (argument_list "(*(undefined4 *)puVar5,local_d8,(iVar16 - iVar10) + -1)" ( (pointer_expression "*(undefined4 *)puVar5" * (cast_expression "(undefined4 *)puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , (binary_expression "(iVar16 - iVar10) + -1" (parenthesized_expression "(iVar16 - iVar10)" ( (binary_expression "iVar16 - iVar10" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "wideaddstr_rev(SPEED_BEST_NEW_MSG);" (call_expression "wideaddstr_rev(SPEED_BEST_NEW_MSG)" identifier (argument_list "(SPEED_BEST_NEW_MSG)" ( identifier ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm2 FUN_00016440(int param_1,int param_2,double param_3)\n\n{\n  char cVar1;\n  code *pcVar2;\n  double dVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  char *pcVar12;\n  FILE *__stream;\n  char *pcVar13;\n  tm *ptVar14;\n  undefined4 uVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  byte local_ca;\n  char local_c9;\n  time_t local_b0;\n  double local_ac;\n  undefined1 local_a0 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16449;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar9 + -5;\n  if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = DAT_0001e381;\n  local_ca = 0;\n  if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);\n  puVar4 = PTR_COLS_0001dfe4;\n  iVar9 = *(int *)PTR_COLS_0001dfe4;\n  iVar7 = FUN_00018750(local_a0);\n  puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  __sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  local_d8 = iVar16 + 3;\n  if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00018b10();\n}\n\n" (function_definition "void __regparm2 FUN_00016440(int param_1,int param_2,double param_3)\n\n{\n  char cVar1;\n  code *pcVar2;\n  double dVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  char *pcVar12;\n  FILE *__stream;\n  char *pcVar13;\n  tm *ptVar14;\n  undefined4 uVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  byte local_ca;\n  char local_c9;\n  time_t local_b0;\n  double local_ac;\n  undefined1 local_a0 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16449;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar9 + -5;\n  if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = DAT_0001e381;\n  local_ca = 0;\n  if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);\n  puVar4 = PTR_COLS_0001dfe4;\n  iVar9 = *(int *)PTR_COLS_0001dfe4;\n  iVar7 = FUN_00018750(local_a0);\n  puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  __sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  local_d8 = iVar16 + 3;\n  if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00018b10();\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00016440(int param_1,int param_2,double param_3)" identifier (parameter_list "(int param_1,int param_2,double param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "double param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  code *pcVar2;\n  double dVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  char *pcVar12;\n  FILE *__stream;\n  char *pcVar13;\n  tm *ptVar14;\n  undefined4 uVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  byte local_ca;\n  char local_c9;\n  time_t local_b0;\n  double local_ac;\n  undefined1 local_a0 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16449;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar9 + -5;\n  if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = DAT_0001e381;\n  local_ca = 0;\n  if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);\n  puVar4 = PTR_COLS_0001dfe4;\n  iVar9 = *(int *)PTR_COLS_0001dfe4;\n  iVar7 = FUN_00018750(local_a0);\n  puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  __sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  local_d8 = iVar16 + 3;\n  if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00018b10();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "size_t sVar11;" primitive_type identifier ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "char *pcVar13;" primitive_type (pointer_declarator "*pcVar13" * identifier) ;) (declaration "tm *ptVar14;" type_identifier (pointer_declarator "*ptVar14" * identifier) ;) (declaration "undefined4 uVar15;" type_identifier identifier ;) (declaration "int iVar16;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "double dVar17;" primitive_type identifier ;) (declaration "int local_d8;" primitive_type identifier ;) (declaration "undefined8 local_d4;" type_identifier identifier ;) (declaration "byte local_ca;" type_identifier identifier ;) (declaration "char local_c9;" primitive_type identifier ;) (declaration "time_t local_b0;" type_identifier identifier ;) (declaration "double local_ac;" primitive_type identifier ;) (declaration "undefined1 local_a0 [128];" type_identifier (array_declarator "local_a0 [128]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x16449;" (assignment_expression "uStack_14 = 0x16449" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar9 = *(int *)PTR_LINES_0001dff0;" (assignment_expression "iVar9 = *(int *)PTR_LINES_0001dff0" identifier = (pointer_expression "*(int *)PTR_LINES_0001dff0" * (cast_expression "(int *)PTR_LINES_0001dff0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar16 = iVar9 + -5;" (assignment_expression "iVar16 = iVar9 + -5" identifier = (binary_expression "iVar9 + -5" identifier + number_literal)) ;) (if_statement "if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(param_3 <= 0.0)" ( (binary_expression "param_3 <= 0.0" identifier <= number_literal) )) (compound_statement "{\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }" { (expression_statement "dVar17 = DAT_0001a3e8;" (assignment_expression "dVar17 = DAT_0001a3e8" identifier = identifier) ;) (expression_statement "local_d4 = DAT_0001a3e8;" (assignment_expression "local_d4 = DAT_0001a3e8" identifier = identifier) ;) }) (else_clause "else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" else (compound_statement "{\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" { (expression_statement "dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);" (assignment_expression "dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8)" identifier = (binary_expression "(double)param_1 / (param_3 / (double)DAT_0001a3d8)" (cast_expression "(double)param_1" ( (type_descriptor "double" primitive_type) ) identifier) / (parenthesized_expression "(param_3 / (double)DAT_0001a3d8)" ( (binary_expression "param_3 / (double)DAT_0001a3d8" identifier / (cast_expression "(double)DAT_0001a3d8" ( (type_descriptor "double" primitive_type) ) identifier)) )))) ;) (expression_statement "dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);" (assignment_expression "dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8)" identifier = (binary_expression "(double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8)" (cast_expression "(double)(param_1 + param_2 * -5)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(param_1 + param_2 * -5)" ( (binary_expression "param_1 + param_2 * -5" identifier + (binary_expression "param_2 * -5" identifier * number_literal)) ))) / (parenthesized_expression "(param_3 / (double)DAT_0001a3d8)" ( (binary_expression "param_3 / (double)DAT_0001a3d8" identifier / (cast_expression "(double)DAT_0001a3d8" ( (type_descriptor "double" primitive_type) ) identifier)) )))) ;) (expression_statement "local_d4 = DAT_0001a3e8;" (assignment_expression "local_d4 = DAT_0001a3e8" identifier = identifier) ;) (if_statement "if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }" if (parenthesized_expression "(DAT_0001a3e8 <= dVar17)" ( (binary_expression "DAT_0001a3e8 <= dVar17" identifier <= identifier) )) (compound_statement "{\n      dVar17 = DAT_0001a3e8;\n    }" { (expression_statement "dVar17 = DAT_0001a3e8;" (assignment_expression "dVar17 = DAT_0001a3e8" identifier = identifier) ;) })) (if_statement "if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }" if (parenthesized_expression "(dVar3 < DAT_0001a3e8)" ( (binary_expression "dVar3 < DAT_0001a3e8" identifier < identifier) )) (compound_statement "{\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }" { (if_statement "if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }" if (parenthesized_expression "(dVar3 <= 0.0)" ( (binary_expression "dVar3 <= 0.0" identifier <= number_literal) )) (compound_statement "{\n        local_d4 = 0.0;\n      }" { (expression_statement "local_d4 = 0.0;" (assignment_expression "local_d4 = 0.0" identifier = number_literal) ;) }) (else_clause "else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }" else (compound_statement "{\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }" { (expression_statement "local_d4 = dVar3;" (assignment_expression "local_d4 = dVar3" identifier = identifier) ;) (if_statement "if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }" if (parenthesized_expression "(dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3)" ( (binary_expression "dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3" (binary_expression "dVar3 <= _DAT_0001a3f0" identifier <= identifier) || (binary_expression "_DAT_0001a3f0 != dVar3" identifier != identifier)) )) (compound_statement "{\n          local_d4 = 0.0;\n        }" { (expression_statement "local_d4 = 0.0;" (assignment_expression "local_d4 = 0.0" identifier = number_literal) ;) })) }))) })) }))) (expression_statement "local_c9 = DAT_0001e381;" (assignment_expression "local_c9 = DAT_0001e381" identifier = identifier) ;) (expression_statement "local_ca = 0;" (assignment_expression "local_ca = 0" identifier = number_literal) ;) (if_statement "if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }" if (parenthesized_expression "(DAT_0001e381 != '\0')" ( (binary_expression "DAT_0001e381 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }" { (expression_statement "local_ca = FUN_000161a0(dVar17);" (assignment_expression "local_ca = FUN_000161a0(dVar17)" identifier = (call_expression "FUN_000161a0(dVar17)" identifier (argument_list "(dVar17)" ( identifier )))) ;) (if_statement "if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }" if (parenthesized_expression "((local_ca == 0) || (local_ac < local_d4))" ( (binary_expression "(local_ca == 0) || (local_ac < local_d4)" (parenthesized_expression "(local_ca == 0)" ( (binary_expression "local_ca == 0" identifier == number_literal) )) || (parenthesized_expression "(local_ac < local_d4)" ( (binary_expression "local_ac < local_d4" identifier < identifier) ))) )) (compound_statement "{\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }" { (expression_statement "iVar9 = FUN_00015890(dVar17);" (assignment_expression "iVar9 = FUN_00015890(dVar17)" identifier = (call_expression "FUN_00015890(dVar17)" identifier (argument_list "(dVar17)" ( identifier )))) ;) (expression_statement "pcVar13 = DAT_0001e374;" (assignment_expression "pcVar13 = DAT_0001e374" identifier = identifier) ;) (expression_statement "pcVar12 = DAT_0001e370;" (assignment_expression "pcVar12 = DAT_0001e370" identifier = identifier) ;) (if_statement "if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }" { (expression_statement "uVar5 = DAT_0001e3a4;" (assignment_expression "uVar5 = DAT_0001e3a4" identifier = identifier) ;) (expression_statement "pcVar10 = getenv(DAT_0001e370);" (assignment_expression "pcVar10 = getenv(DAT_0001e370)" identifier = (call_expression "getenv(DAT_0001e370)" identifier (argument_list "(DAT_0001e370)" ( identifier )))) ;) (expression_statement "sVar11 = strlen(pcVar10);" (assignment_expression "sVar11 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "pcVar10 = (char *)malloc(sVar11 + 0x12);" (assignment_expression "pcVar10 = (char *)malloc(sVar11 + 0x12)" identifier = (cast_expression "(char *)malloc(sVar11 + 0x12)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(sVar11 + 0x12)" identifier (argument_list "(sVar11 + 0x12)" ( (binary_expression "sVar11 + 0x12" identifier + number_literal) ))))) ;) (if_statement "if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }" { (expression_statement "perror("malloc");" (call_expression "perror("malloc")" identifier (argument_list "("malloc")" ( (string_literal ""malloc"" " string_content ") ))) ;) (expression_statement "uVar15 = dcgettext(0,"internal error: malloc",5);" (assignment_expression "uVar15 = dcgettext(0,"internal error: malloc",5)" identifier = (call_expression "dcgettext(0,"internal error: malloc",5)" identifier (argument_list "(0,"internal error: malloc",5)" ( number_literal , (string_literal ""internal error: malloc"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00018320(uVar15);" (call_expression "FUN_00018320(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "pcVar12 = DAT_0001e370;" (assignment_expression "pcVar12 = DAT_0001e370" identifier = identifier) ;) })) (expression_statement "pcVar12 = getenv(pcVar12);" (assignment_expression "pcVar12 = getenv(pcVar12)" identifier = (call_expression "getenv(pcVar12)" identifier (argument_list "(pcVar12)" ( identifier )))) ;) (expression_statement "__sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);" (call_expression "__sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12)" identifier (argument_list "(pcVar10,1,0xffffffff,"%s/%s",pcVar12)" ( identifier , number_literal , number_literal , (string_literal ""%s/%s"" " string_content ") , identifier ))) ;) (expression_statement "__stream = fopen(pcVar10,"a");" (assignment_expression "__stream = fopen(pcVar10,"a")" identifier = (call_expression "fopen(pcVar10,"a")" identifier (argument_list "(pcVar10,"a")" ( identifier , (string_literal ""a"" " string_content ") )))) ;) (if_statement "if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }" { (expression_statement "perror("fopen");" (call_expression "perror("fopen")" identifier (argument_list "("fopen")" ( (string_literal ""fopen"" " string_content ") ))) ;) (expression_statement "uVar15 = dcgettext(0," internal error: fopen",5);" (assignment_expression "uVar15 = dcgettext(0," internal error: fopen",5)" identifier = (call_expression "dcgettext(0," internal error: fopen",5)" identifier (argument_list "(0," internal error: fopen",5)" ( number_literal , (string_literal "" internal error: fopen"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00018320(uVar15);" (call_expression "FUN_00018320(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) })) (expression_statement "pcVar12 = strdup(pcVar13);" (assignment_expression "pcVar12 = strdup(pcVar13)" identifier = (call_expression "strdup(pcVar13)" identifier (argument_list "(pcVar13)" ( identifier )))) ;) (if_statement "if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }" if (parenthesized_expression "(pcVar12 == (char *)0x0)" ( (binary_expression "pcVar12 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }" { (expression_statement "perror("malloc");" (call_expression "perror("malloc")" identifier (argument_list "("malloc")" ( (string_literal ""malloc"" " string_content ") ))) ;) (expression_statement "uVar5 = dcgettext(0,"internal error: malloc",5);" (assignment_expression "uVar5 = dcgettext(0,"internal error: malloc",5)" identifier = (call_expression "dcgettext(0,"internal error: malloc",5)" identifier (argument_list "(0,"internal error: malloc",5)" ( number_literal , (string_literal ""internal error: malloc"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00018320(uVar5,0);" (call_expression "FUN_00018320(uVar5,0)" identifier (argument_list "(uVar5,0)" ( identifier , number_literal ))) ;) (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "cVar1 = *pcVar12;" (assignment_expression "cVar1 = *pcVar12" identifier = (pointer_expression "*pcVar12" * identifier)) ;) (expression_statement "pcVar13 = pcVar12;" (assignment_expression "pcVar13 = pcVar12" identifier = identifier) ;) (while_statement "while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }" { (if_statement "if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }" if (parenthesized_expression "(cVar1 == ' ')" ( (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character ')) )) (compound_statement "{\n            *pcVar13 = '+';\n          }" { (expression_statement "*pcVar13 = '+';" (assignment_expression "*pcVar13 = '+'" (pointer_expression "*pcVar13" * identifier) = (char_literal "'+'" ' character ')) ;) })) (expression_statement "pcVar13 = pcVar13 + 1;" (assignment_expression "pcVar13 = pcVar13 + 1" identifier = (binary_expression "pcVar13 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar13;" (assignment_expression "cVar1 = *pcVar13" identifier = (pointer_expression "*pcVar13" * identifier)) ;) })) (expression_statement "local_b0 = time((time_t *)0x0);" (assignment_expression "local_b0 = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "ptVar14 = localtime(&local_b0);" (assignment_expression "ptVar14 = localtime(&local_b0)" identifier = (call_expression "localtime(&local_b0)" identifier (argument_list "(&local_b0)" ( (pointer_expression "&local_b0" & identifier) )))) ;) (expression_statement "__fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);" (call_expression "__fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_)" identifier (argument_list "(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_)" ( identifier , number_literal , (string_literal ""%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n"" " string_content escape_sequence ") , (binary_expression "ptVar14->tm_year + 0x76c" (field_expression "ptVar14->tm_year" identifier -> field_identifier) + number_literal) , (binary_expression "ptVar14->tm_mon + 1" (field_expression "ptVar14->tm_mon" identifier -> field_identifier) + number_literal) , (field_expression "ptVar14->tm_mday" identifier -> field_identifier) , (field_expression "ptVar14->tm_hour" identifier -> field_identifier) , (field_expression "ptVar14->tm_min" identifier -> field_identifier) , (field_expression "ptVar14->tm_sec" identifier -> field_identifier) , identifier , identifier , (cast_expression "(undefined4)local_d4" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (field_expression "local_d4._4_4_" identifier . field_identifier) ))) ;) (expression_statement "free(pcVar10);" (call_expression "free(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier ))) ;) (expression_statement "free(pcVar12);" (call_expression "free(pcVar12)" identifier (argument_list "(pcVar12)" ( identifier ))) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "iVar16 = iVar16 - (local_ca + 1);" (assignment_expression "iVar16 = iVar16 - (local_ca + 1)" identifier = (binary_expression "iVar16 - (local_ca + 1)" identifier - (parenthesized_expression "(local_ca + 1)" ( (binary_expression "local_ca + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" else (compound_statement "{\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" { (expression_statement "local_c9 = '\0';" (assignment_expression "local_c9 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar16 = iVar16 - (uint)local_ca;" (assignment_expression "iVar16 = iVar16 - (uint)local_ca" identifier = (binary_expression "iVar16 - (uint)local_ca" identifier - (cast_expression "(uint)local_ca" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }))) }) (else_clause "else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }" else (compound_statement "{\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }" { (expression_statement "iVar16 = iVar9 + -6;" (assignment_expression "iVar16 = iVar9 + -6" identifier = (binary_expression "iVar9 + -6" identifier + number_literal)) ;) (expression_statement "local_c9 = '\0';" (assignment_expression "local_c9 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) })) (if_statement "if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }" if (parenthesized_expression "(DAT_0001e382 == '\0')" ( (binary_expression "DAT_0001e382 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }" { (expression_statement "dVar17 = dVar17 / (double)DAT_0001a3dc;" (assignment_expression "dVar17 = dVar17 / (double)DAT_0001a3dc" identifier = (binary_expression "dVar17 / (double)DAT_0001a3dc" identifier / (cast_expression "(double)DAT_0001a3dc" ( (type_descriptor "double" primitive_type) ) identifier))) ;) (expression_statement "puVar6 = &DAT_0001e404;" (assignment_expression "puVar6 = &DAT_0001e404" identifier = (pointer_expression "&DAT_0001e404" & identifier)) ;) }) (else_clause "else {\n    puVar6 = &DAT_0001e3d0;\n  }" else (compound_statement "{\n    puVar6 = &DAT_0001e3d0;\n  }" { (expression_statement "puVar6 = &DAT_0001e3d0;" (assignment_expression "puVar6 = &DAT_0001e3d0" identifier = (pointer_expression "&DAT_0001e3d0" & identifier)) ;) }))) (expression_statement "__sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);" (call_expression "__sprintf_chk(local_a0,1,0x80,*puVar6,dVar17)" identifier (argument_list "(local_a0,1,0x80,*puVar6,dVar17)" ( identifier , number_literal , number_literal , (pointer_expression "*puVar6" * identifier) , identifier ))) ;) (expression_statement "puVar4 = PTR_COLS_0001dfe4;" (assignment_expression "puVar4 = PTR_COLS_0001dfe4" identifier = identifier) ;) (expression_statement "iVar9 = *(int *)PTR_COLS_0001dfe4;" (assignment_expression "iVar9 = *(int *)PTR_COLS_0001dfe4" identifier = (pointer_expression "*(int *)PTR_COLS_0001dfe4" * (cast_expression "(int *)PTR_COLS_0001dfe4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" identifier = (call_expression "FUN_00018750(local_a0)" identifier (argument_list "(local_a0)" ( identifier )))) ;) (expression_statement "puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;" (assignment_expression "puVar6 = (undefined4 *)PTR_stdscr_0001dfdc" identifier = (cast_expression "(undefined4 *)PTR_stdscr_0001dfdc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);" (call_expression "wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1)" identifier (argument_list "(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1)" ( (pointer_expression "*(undefined4 *)PTR_stdscr_0001dfdc" * (cast_expression "(undefined4 *)PTR_stdscr_0001dfdc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" ( (binary_expression "iVar9 - iVar7" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" identifier (argument_list "(local_a0)" ( identifier ))) ;) (if_statement "if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }" if (parenthesized_expression "(DAT_0001e382 == '\0')" ( (binary_expression "DAT_0001e382 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }" { (expression_statement "puVar8 = &DAT_0001e3bc;" (assignment_expression "puVar8 = &DAT_0001e3bc" identifier = (pointer_expression "&DAT_0001e3bc" & identifier)) ;) (expression_statement "local_d4 = local_d4 / (double)DAT_0001a3dc;" (assignment_expression "local_d4 = local_d4 / (double)DAT_0001a3dc" identifier = (binary_expression "local_d4 / (double)DAT_0001a3dc" identifier / (cast_expression "(double)DAT_0001a3dc" ( (type_descriptor "double" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    puVar8 = &DAT_0001e3d4;\n  }" else (compound_statement "{\n    puVar8 = &DAT_0001e3d4;\n  }" { (expression_statement "puVar8 = &DAT_0001e3d4;" (assignment_expression "puVar8 = &DAT_0001e3d4" identifier = (pointer_expression "&DAT_0001e3d4" & identifier)) ;) }))) (expression_statement "__sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);" (call_expression "__sprintf_chk(local_a0,1,0x80,*puVar8,local_d4)" identifier (argument_list "(local_a0,1,0x80,*puVar8,local_d4)" ( identifier , number_literal , number_literal , (pointer_expression "*puVar8" * identifier) , identifier ))) ;) (expression_statement "iVar9 = *(int *)puVar4;" (assignment_expression "iVar9 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" identifier = (call_expression "FUN_00018750(local_a0)" identifier (argument_list "(local_a0)" ( identifier )))) ;) (expression_statement "wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);" (call_expression "wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1)" identifier (argument_list "(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1)" ( (pointer_expression "*puVar6" * identifier) , (binary_expression "iVar16 + 1" identifier + number_literal) , (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" ( (binary_expression "iVar9 - iVar7" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" identifier (argument_list "(local_a0)" ( identifier ))) ;) (expression_statement "__sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));" (call_expression "__sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1))" identifier (argument_list "(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1))" ( identifier , number_literal , number_literal , identifier , (cast_expression "(double)(((float)param_2 * DAT_0001a3d4) / (float)param_1)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(((float)param_2 * DAT_0001a3d4) / (float)param_1)" ( (binary_expression "((float)param_2 * DAT_0001a3d4) / (float)param_1" (parenthesized_expression "((float)param_2 * DAT_0001a3d4)" ( (binary_expression "(float)param_2 * DAT_0001a3d4" (cast_expression "(float)param_2" ( (type_descriptor "float" primitive_type) ) identifier) * identifier) )) / (cast_expression "(float)param_1" ( (type_descriptor "float" primitive_type) ) identifier)) ))) ))) ;) (expression_statement "iVar9 = *(int *)puVar4;" (assignment_expression "iVar9 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" identifier = (call_expression "FUN_00018750(local_a0)" identifier (argument_list "(local_a0)" ( identifier )))) ;) (expression_statement "wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);" (call_expression "wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1)" identifier (argument_list "(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1)" ( (pointer_expression "*puVar6" * identifier) , (binary_expression "iVar16 + 2" identifier + number_literal) , (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" ( (binary_expression "iVar9 - iVar7" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" identifier (argument_list "(local_a0)" ( identifier ))) ;) (expression_statement "local_d8 = iVar16 + 3;" (assignment_expression "local_d8 = iVar16 + 3" identifier = (binary_expression "iVar16 + 3" identifier + number_literal)) ;) (if_statement "if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }" if (parenthesized_expression "(local_ca != 0)" ( (binary_expression "local_ca != 0" identifier != number_literal) )) (compound_statement "{\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }" { (if_statement "if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }" if (parenthesized_expression "(DAT_0001e382 == '\0')" ( (binary_expression "DAT_0001e382 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }" { (expression_statement "local_ac = local_ac / (double)DAT_0001a3dc;" (assignment_expression "local_ac = local_ac / (double)DAT_0001a3dc" identifier = (binary_expression "local_ac / (double)DAT_0001a3dc" identifier / (cast_expression "(double)DAT_0001a3dc" ( (type_descriptor "double" primitive_type) ) identifier))) ;) (expression_statement "puVar8 = &DAT_0001e3dc;" (assignment_expression "puVar8 = &DAT_0001e3dc" identifier = (pointer_expression "&DAT_0001e3dc" & identifier)) ;) }) (else_clause "else {\n      puVar8 = &DAT_0001e3c0;\n    }" else (compound_statement "{\n      puVar8 = &DAT_0001e3c0;\n    }" { (expression_statement "puVar8 = &DAT_0001e3c0;" (assignment_expression "puVar8 = &DAT_0001e3c0" identifier = (pointer_expression "&DAT_0001e3c0" & identifier)) ;) }))) (expression_statement "local_d8 = iVar16 + 4;" (assignment_expression "local_d8 = iVar16 + 4" identifier = (binary_expression "iVar16 + 4" identifier + number_literal)) ;) (expression_statement "__sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);" (call_expression "__sprintf_chk(local_a0,1,0x80,*puVar8,local_ac)" identifier (argument_list "(local_a0,1,0x80,*puVar8,local_ac)" ( identifier , number_literal , number_literal , (pointer_expression "*puVar8" * identifier) , identifier ))) ;) (expression_statement "iVar9 = *(int *)puVar4;" (assignment_expression "iVar9 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" identifier = (call_expression "FUN_00018750(local_a0)" identifier (argument_list "(local_a0)" ( identifier )))) ;) (expression_statement "wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);" (call_expression "wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1)" identifier (argument_list "(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1)" ( (pointer_expression "*puVar6" * identifier) , (binary_expression "iVar16 + 3" identifier + number_literal) , (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" ( (binary_expression "iVar9 - iVar7" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" identifier (argument_list "(local_a0)" ( identifier ))) ;) })) (if_statement "if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }" if (parenthesized_expression "(local_c9 != '\0')" ( (binary_expression "local_c9 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }" { (expression_statement "iVar16 = *(int *)puVar4;" (assignment_expression "iVar16 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar9 = FUN_00018750(DAT_0001e3f4);" (assignment_expression "iVar9 = FUN_00018750(DAT_0001e3f4)" identifier = (call_expression "FUN_00018750(DAT_0001e3f4)" identifier (argument_list "(DAT_0001e3f4)" ( identifier )))) ;) (expression_statement "wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);" (call_expression "wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1)" identifier (argument_list "(*puVar6,local_d8,(iVar16 - iVar9) + -1)" ( (pointer_expression "*puVar6" * identifier) , identifier , (binary_expression "(iVar16 - iVar9) + -1" (parenthesized_expression "(iVar16 - iVar9)" ( (binary_expression "iVar16 - iVar9" identifier - identifier) )) + number_literal) ))) ;) (expression_statement "FUN_000185e0(DAT_0001e3f4);" (call_expression "FUN_000185e0(DAT_0001e3f4)" identifier (argument_list "(DAT_0001e3f4)" ( identifier ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00018b10();" (call_expression "FUN_00018b10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / (parenthesized_expression ( (binary_expression IDENT / (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))) / (parenthesized_expression ( (binary_expression IDENT / (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) || (binary_expression IDENT != IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }))) })) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content escape_sequence ") , (binary_expression (field_expression IDENT -> field_identifier) + LIT) , (binary_expression (field_expression IDENT -> field_identifier) + LIT) , (field_expression IDENT -> field_identifier) , (field_expression IDENT -> field_identifier) , (field_expression IDENT -> field_identifier) , (field_expression IDENT -> field_identifier) , IDENT , IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) , (field_expression IDENT . field_identifier) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT / (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression * IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression * IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * IDENT) )) / (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT / (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression * IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm2 FUN_00016440(int param_1,int param_2,double param_3)\n\n{\n  char cVar1;\n  code *pcVar2;\n  double dVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  char *pcVar12;\n  FILE *__stream;\n  char *pcVar13;\n  tm *ptVar14;\n  undefined4 uVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  byte local_ca;\n  char local_c9;\n  time_t local_b0;\n  double local_ac;\n  undefined1 local_a0 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16449;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar9 + -5;\n  if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = DAT_0001e381;\n  local_ca = 0;\n  if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);\n  puVar4 = PTR_COLS_0001dfe4;\n  iVar9 = *(int *)PTR_COLS_0001dfe4;\n  iVar7 = FUN_00018750(local_a0);\n  puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  __sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  local_d8 = iVar16 + 3;\n  if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00018b10();\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00016440(int param_1,int param_2,double param_3)" (identifier "FUN_00016440") (parameter_list "(int param_1,int param_2,double param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "double param_3" (primitive_type "double") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  code *pcVar2;\n  double dVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  char *pcVar10;\n  size_t sVar11;\n  char *pcVar12;\n  FILE *__stream;\n  char *pcVar13;\n  tm *ptVar14;\n  undefined4 uVar15;\n  int iVar16;\n  int in_GS_OFFSET;\n  double dVar17;\n  int local_d8;\n  undefined8 local_d4;\n  byte local_ca;\n  char local_c9;\n  time_t local_b0;\n  double local_ac;\n  undefined1 local_a0 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x16449;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = *(int *)PTR_LINES_0001dff0;\n  iVar16 = iVar9 + -5;\n  if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }\n  local_c9 = DAT_0001e381;\n  local_ca = 0;\n  if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }\n  if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);\n  puVar4 = PTR_COLS_0001dfe4;\n  iVar9 = *(int *)PTR_COLS_0001dfe4;\n  iVar7 = FUN_00018750(local_a0);\n  puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;\n  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }\n  __sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  __sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));\n  iVar9 = *(int *)puVar4;\n  iVar7 = FUN_00018750(local_a0);\n  wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);\n  FUN_000185e0(local_a0);\n  local_d8 = iVar16 + 3;\n  if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }\n  if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00018b10();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "code *pcVar2;" (type_identifier "code") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "double dVar3;" (primitive_type "double") (identifier "dVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "size_t sVar11;" (primitive_type "size_t") (identifier "sVar11") (; ";")) (declaration "char *pcVar12;" (primitive_type "char") (pointer_declarator "*pcVar12" (* "*") (identifier "pcVar12")) (; ";")) (declaration "FILE *__stream;" (type_identifier "FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "char *pcVar13;" (primitive_type "char") (pointer_declarator "*pcVar13" (* "*") (identifier "pcVar13")) (; ";")) (declaration "tm *ptVar14;" (type_identifier "tm") (pointer_declarator "*ptVar14" (* "*") (identifier "ptVar14")) (; ";")) (declaration "undefined4 uVar15;" (type_identifier "undefined4") (identifier "uVar15") (; ";")) (declaration "int iVar16;" (primitive_type "int") (identifier "iVar16") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "double dVar17;" (primitive_type "double") (identifier "dVar17") (; ";")) (declaration "int local_d8;" (primitive_type "int") (identifier "local_d8") (; ";")) (declaration "undefined8 local_d4;" (type_identifier "undefined8") (identifier "local_d4") (; ";")) (declaration "byte local_ca;" (type_identifier "byte") (identifier "local_ca") (; ";")) (declaration "char local_c9;" (primitive_type "char") (identifier "local_c9") (; ";")) (declaration "time_t local_b0;" (type_identifier "time_t") (identifier "local_b0") (; ";")) (declaration "double local_ac;" (primitive_type "double") (identifier "local_ac") (; ";")) (declaration "undefined1 local_a0 [128];" (type_identifier "undefined1") (array_declarator "local_a0 [128]" (identifier "local_a0") ([ "[") (number_literal "128") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x16449;" (assignment_expression "uStack_14 = 0x16449" (identifier "uStack_14") (= "=") (number_literal "0x16449")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar9 = *(int *)PTR_LINES_0001dff0;" (assignment_expression "iVar9 = *(int *)PTR_LINES_0001dff0" (identifier "iVar9") (= "=") (pointer_expression "*(int *)PTR_LINES_0001dff0" (* "*") (cast_expression "(int *)PTR_LINES_0001dff0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LINES_0001dff0")))) (; ";")) (expression_statement "iVar16 = iVar9 + -5;" (assignment_expression "iVar16 = iVar9 + -5" (identifier "iVar16") (= "=") (binary_expression "iVar9 + -5" (identifier "iVar9") (+ "+") (number_literal "-5"))) (; ";")) (if_statement "if (param_3 <= 0.0) {\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }\n  else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_3 <= 0.0)" (( "(") (binary_expression "param_3 <= 0.0" (identifier "param_3") (<= "<=") (number_literal "0.0")) () ")")) (compound_statement "{\n    dVar17 = DAT_0001a3e8;\n    local_d4 = DAT_0001a3e8;\n  }" ({ "{") (expression_statement "dVar17 = DAT_0001a3e8;" (assignment_expression "dVar17 = DAT_0001a3e8" (identifier "dVar17") (= "=") (identifier "DAT_0001a3e8")) (; ";")) (expression_statement "local_d4 = DAT_0001a3e8;" (assignment_expression "local_d4 = DAT_0001a3e8" (identifier "local_d4") (= "=") (identifier "DAT_0001a3e8")) (; ";")) (} "}")) (else_clause "else {\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" (else "else") (compound_statement "{\n    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);\n    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);\n    local_d4 = DAT_0001a3e8;\n    if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }\n    if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);" (assignment_expression "dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8)" (identifier "dVar17") (= "=") (binary_expression "(double)param_1 / (param_3 / (double)DAT_0001a3d8)" (cast_expression "(double)param_1" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "param_1")) (/ "/") (parenthesized_expression "(param_3 / (double)DAT_0001a3d8)" (( "(") (binary_expression "param_3 / (double)DAT_0001a3d8" (identifier "param_3") (/ "/") (cast_expression "(double)DAT_0001a3d8" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_0001a3d8"))) () ")")))) (; ";")) (expression_statement "dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);" (assignment_expression "dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8)" (identifier "dVar3") (= "=") (binary_expression "(double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8)" (cast_expression "(double)(param_1 + param_2 * -5)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "(param_1 + param_2 * -5)" (( "(") (binary_expression "param_1 + param_2 * -5" (identifier "param_1") (+ "+") (binary_expression "param_2 * -5" (identifier "param_2") (* "*") (number_literal "-5"))) () ")"))) (/ "/") (parenthesized_expression "(param_3 / (double)DAT_0001a3d8)" (( "(") (binary_expression "param_3 / (double)DAT_0001a3d8" (identifier "param_3") (/ "/") (cast_expression "(double)DAT_0001a3d8" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_0001a3d8"))) () ")")))) (; ";")) (expression_statement "local_d4 = DAT_0001a3e8;" (assignment_expression "local_d4 = DAT_0001a3e8" (identifier "local_d4") (= "=") (identifier "DAT_0001a3e8")) (; ";")) (if_statement "if (DAT_0001a3e8 <= dVar17) {\n      dVar17 = DAT_0001a3e8;\n    }" (if "if") (parenthesized_expression "(DAT_0001a3e8 <= dVar17)" (( "(") (binary_expression "DAT_0001a3e8 <= dVar17" (identifier "DAT_0001a3e8") (<= "<=") (identifier "dVar17")) () ")")) (compound_statement "{\n      dVar17 = DAT_0001a3e8;\n    }" ({ "{") (expression_statement "dVar17 = DAT_0001a3e8;" (assignment_expression "dVar17 = DAT_0001a3e8" (identifier "dVar17") (= "=") (identifier "DAT_0001a3e8")) (; ";")) (} "}"))) (if_statement "if (dVar3 < DAT_0001a3e8) {\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(dVar3 < DAT_0001a3e8)" (( "(") (binary_expression "dVar3 < DAT_0001a3e8" (identifier "dVar3") (< "<") (identifier "DAT_0001a3e8")) () ")")) (compound_statement "{\n      if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }\n    }" ({ "{") (if_statement "if (dVar3 <= 0.0) {\n        local_d4 = 0.0;\n      }\n      else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }" (if "if") (parenthesized_expression "(dVar3 <= 0.0)" (( "(") (binary_expression "dVar3 <= 0.0" (identifier "dVar3") (<= "<=") (number_literal "0.0")) () ")")) (compound_statement "{\n        local_d4 = 0.0;\n      }" ({ "{") (expression_statement "local_d4 = 0.0;" (assignment_expression "local_d4 = 0.0" (identifier "local_d4") (= "=") (number_literal "0.0")) (; ";")) (} "}")) (else_clause "else {\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }" (else "else") (compound_statement "{\n        local_d4 = dVar3;\n        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }\n      }" ({ "{") (expression_statement "local_d4 = dVar3;" (assignment_expression "local_d4 = dVar3" (identifier "local_d4") (= "=") (identifier "dVar3")) (; ";")) (if_statement "if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {\n          local_d4 = 0.0;\n        }" (if "if") (parenthesized_expression "(dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3)" (( "(") (binary_expression "dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3" (binary_expression "dVar3 <= _DAT_0001a3f0" (identifier "dVar3") (<= "<=") (identifier "_DAT_0001a3f0")) (|| "||") (binary_expression "_DAT_0001a3f0 != dVar3" (identifier "_DAT_0001a3f0") (!= "!=") (identifier "dVar3"))) () ")")) (compound_statement "{\n          local_d4 = 0.0;\n        }" ({ "{") (expression_statement "local_d4 = 0.0;" (assignment_expression "local_d4 = 0.0" (identifier "local_d4") (= "=") (number_literal "0.0")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (} "}")))) (expression_statement "local_c9 = DAT_0001e381;" (assignment_expression "local_c9 = DAT_0001e381" (identifier "local_c9") (= "=") (identifier "DAT_0001e381")) (; ";")) (expression_statement "local_ca = 0;" (assignment_expression "local_ca = 0" (identifier "local_ca") (= "=") (number_literal "0")) (; ";")) (if_statement "if (DAT_0001e381 != '\0') {\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }" (if "if") (parenthesized_expression "(DAT_0001e381 != '\0')" (( "(") (binary_expression "DAT_0001e381 != '\0'" (identifier "DAT_0001e381") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_ca = FUN_000161a0(dVar17);\n    if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }\n  }" ({ "{") (expression_statement "local_ca = FUN_000161a0(dVar17);" (assignment_expression "local_ca = FUN_000161a0(dVar17)" (identifier "local_ca") (= "=") (call_expression "FUN_000161a0(dVar17)" (identifier "FUN_000161a0") (argument_list "(dVar17)" (( "(") (identifier "dVar17") () ")")))) (; ";")) (if_statement "if ((local_ca == 0) || (local_ac < local_d4)) {\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }\n    else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }" (if "if") (parenthesized_expression "((local_ca == 0) || (local_ac < local_d4))" (( "(") (binary_expression "(local_ca == 0) || (local_ac < local_d4)" (parenthesized_expression "(local_ca == 0)" (( "(") (binary_expression "local_ca == 0" (identifier "local_ca") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(local_ac < local_d4)" (( "(") (binary_expression "local_ac < local_d4" (identifier "local_ac") (< "<") (identifier "local_d4")) () ")"))) () ")")) (compound_statement "{\n      iVar9 = FUN_00015890(dVar17);\n      pcVar13 = DAT_0001e374;\n      pcVar12 = DAT_0001e370;\n      if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }\n    }" ({ "{") (expression_statement "iVar9 = FUN_00015890(dVar17);" (assignment_expression "iVar9 = FUN_00015890(dVar17)" (identifier "iVar9") (= "=") (call_expression "FUN_00015890(dVar17)" (identifier "FUN_00015890") (argument_list "(dVar17)" (( "(") (identifier "dVar17") () ")")))) (; ";")) (expression_statement "pcVar13 = DAT_0001e374;" (assignment_expression "pcVar13 = DAT_0001e374" (identifier "pcVar13") (= "=") (identifier "DAT_0001e374")) (; ";")) (expression_statement "pcVar12 = DAT_0001e370;" (assignment_expression "pcVar12 = DAT_0001e370" (identifier "pcVar12") (= "=") (identifier "DAT_0001e370")) (; ";")) (if_statement "if (iVar9 == 0) {\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }\n      else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar5 = DAT_0001e3a4;\n        pcVar10 = getenv(DAT_0001e370);\n        sVar11 = strlen(pcVar10);\n        pcVar10 = (char *)malloc(sVar11 + 0x12);\n        if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }\n        pcVar12 = getenv(pcVar12);\n        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);\n        __stream = fopen(pcVar10,"a");\n        if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }\n        pcVar12 = strdup(pcVar13);\n        if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }\n        cVar1 = *pcVar12;\n        pcVar13 = pcVar12;\n        while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }\n        local_b0 = time((time_t *)0x0);\n        ptVar14 = localtime(&local_b0);\n        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);\n        free(pcVar10);\n        free(pcVar12);\n        fclose(__stream);\n        iVar16 = iVar16 - (local_ca + 1);\n      }" ({ "{") (expression_statement "uVar5 = DAT_0001e3a4;" (assignment_expression "uVar5 = DAT_0001e3a4" (identifier "uVar5") (= "=") (identifier "DAT_0001e3a4")) (; ";")) (expression_statement "pcVar10 = getenv(DAT_0001e370);" (assignment_expression "pcVar10 = getenv(DAT_0001e370)" (identifier "pcVar10") (= "=") (call_expression "getenv(DAT_0001e370)" (identifier "getenv") (argument_list "(DAT_0001e370)" (( "(") (identifier "DAT_0001e370") () ")")))) (; ";")) (expression_statement "sVar11 = strlen(pcVar10);" (assignment_expression "sVar11 = strlen(pcVar10)" (identifier "sVar11") (= "=") (call_expression "strlen(pcVar10)" (identifier "strlen") (argument_list "(pcVar10)" (( "(") (identifier "pcVar10") () ")")))) (; ";")) (expression_statement "pcVar10 = (char *)malloc(sVar11 + 0x12);" (assignment_expression "pcVar10 = (char *)malloc(sVar11 + 0x12)" (identifier "pcVar10") (= "=") (cast_expression "(char *)malloc(sVar11 + 0x12)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(sVar11 + 0x12)" (identifier "malloc") (argument_list "(sVar11 + 0x12)" (( "(") (binary_expression "sVar11 + 0x12" (identifier "sVar11") (+ "+") (number_literal "0x12")) () ")"))))) (; ";")) (if_statement "if (pcVar10 == (char *)0x0) {\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }" (if "if") (parenthesized_expression "(pcVar10 == (char *)0x0)" (( "(") (binary_expression "pcVar10 == (char *)0x0" (identifier "pcVar10") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          perror("malloc");\n          uVar15 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar15);\n          pcVar12 = DAT_0001e370;\n        }" ({ "{") (expression_statement "perror("malloc");" (call_expression "perror("malloc")" (identifier "perror") (argument_list "("malloc")" (( "(") (string_literal ""malloc"" (" """) (string_content "malloc") (" """)) () ")"))) (; ";")) (expression_statement "uVar15 = dcgettext(0,"internal error: malloc",5);" (assignment_expression "uVar15 = dcgettext(0,"internal error: malloc",5)" (identifier "uVar15") (= "=") (call_expression "dcgettext(0,"internal error: malloc",5)" (identifier "dcgettext") (argument_list "(0,"internal error: malloc",5)" (( "(") (number_literal "0") (, ",") (string_literal ""internal error: malloc"" (" """) (string_content "internal error: malloc") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00018320(uVar15);" (call_expression "FUN_00018320(uVar15)" (identifier "FUN_00018320") (argument_list "(uVar15)" (( "(") (identifier "uVar15") () ")"))) (; ";")) (expression_statement "pcVar12 = DAT_0001e370;" (assignment_expression "pcVar12 = DAT_0001e370" (identifier "pcVar12") (= "=") (identifier "DAT_0001e370")) (; ";")) (} "}"))) (expression_statement "pcVar12 = getenv(pcVar12);" (assignment_expression "pcVar12 = getenv(pcVar12)" (identifier "pcVar12") (= "=") (call_expression "getenv(pcVar12)" (identifier "getenv") (argument_list "(pcVar12)" (( "(") (identifier "pcVar12") () ")")))) (; ";")) (expression_statement "__sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);" (call_expression "__sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12)" (identifier "__sprintf_chk") (argument_list "(pcVar10,1,0xffffffff,"%s/%s",pcVar12)" (( "(") (identifier "pcVar10") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (string_literal ""%s/%s"" (" """) (string_content "%s/%s") (" """)) (, ",") (identifier "pcVar12") () ")"))) (; ";")) (expression_statement "__stream = fopen(pcVar10,"a");" (assignment_expression "__stream = fopen(pcVar10,"a")" (identifier "__stream") (= "=") (call_expression "fopen(pcVar10,"a")" (identifier "fopen") (argument_list "(pcVar10,"a")" (( "(") (identifier "pcVar10") (, ",") (string_literal ""a"" (" """) (string_content "a") (" """)) () ")")))) (; ";")) (if_statement "if (__stream == (FILE *)0x0) {\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }" (if "if") (parenthesized_expression "(__stream == (FILE *)0x0)" (( "(") (binary_expression "__stream == (FILE *)0x0" (identifier "__stream") (== "==") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          perror("fopen");\n          uVar15 = dcgettext(0," internal error: fopen",5);\n          FUN_00018320(uVar15);\n        }" ({ "{") (expression_statement "perror("fopen");" (call_expression "perror("fopen")" (identifier "perror") (argument_list "("fopen")" (( "(") (string_literal ""fopen"" (" """) (string_content "fopen") (" """)) () ")"))) (; ";")) (expression_statement "uVar15 = dcgettext(0," internal error: fopen",5);" (assignment_expression "uVar15 = dcgettext(0," internal error: fopen",5)" (identifier "uVar15") (= "=") (call_expression "dcgettext(0," internal error: fopen",5)" (identifier "dcgettext") (argument_list "(0," internal error: fopen",5)" (( "(") (number_literal "0") (, ",") (string_literal "" internal error: fopen"" (" """) (string_content " internal error: fopen") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00018320(uVar15);" (call_expression "FUN_00018320(uVar15)" (identifier "FUN_00018320") (argument_list "(uVar15)" (( "(") (identifier "uVar15") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar12 = strdup(pcVar13);" (assignment_expression "pcVar12 = strdup(pcVar13)" (identifier "pcVar12") (= "=") (call_expression "strdup(pcVar13)" (identifier "strdup") (argument_list "(pcVar13)" (( "(") (identifier "pcVar13") () ")")))) (; ";")) (if_statement "if (pcVar12 == (char *)0x0) {\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }" (if "if") (parenthesized_expression "(pcVar12 == (char *)0x0)" (( "(") (binary_expression "pcVar12 == (char *)0x0" (identifier "pcVar12") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          perror("malloc");\n          uVar5 = dcgettext(0,"internal error: malloc",5);\n          FUN_00018320(uVar5,0);\n                    \n          pcVar2 = (code *)invalidInstructionException();\n          (*pcVar2)();\n        }" ({ "{") (expression_statement "perror("malloc");" (call_expression "perror("malloc")" (identifier "perror") (argument_list "("malloc")" (( "(") (string_literal ""malloc"" (" """) (string_content "malloc") (" """)) () ")"))) (; ";")) (expression_statement "uVar5 = dcgettext(0,"internal error: malloc",5);" (assignment_expression "uVar5 = dcgettext(0,"internal error: malloc",5)" (identifier "uVar5") (= "=") (call_expression "dcgettext(0,"internal error: malloc",5)" (identifier "dcgettext") (argument_list "(0,"internal error: malloc",5)" (( "(") (number_literal "0") (, ",") (string_literal ""internal error: malloc"" (" """) (string_content "internal error: malloc") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00018320(uVar5,0);" (call_expression "FUN_00018320(uVar5,0)" (identifier "FUN_00018320") (argument_list "(uVar5,0)" (( "(") (identifier "uVar5") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" (identifier "pcVar2") (= "=") (cast_expression "(code *)invalidInstructionException()" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "invalidInstructionException()" (identifier "invalidInstructionException") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" (( "(") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "cVar1 = *pcVar12;" (assignment_expression "cVar1 = *pcVar12" (identifier "cVar1") (= "=") (pointer_expression "*pcVar12" (* "*") (identifier "pcVar12"))) (; ";")) (expression_statement "pcVar13 = pcVar12;" (assignment_expression "pcVar13 = pcVar12" (identifier "pcVar13") (= "=") (identifier "pcVar12")) (; ";")) (while_statement "while (cVar1 != '\0') {\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }" (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }\n          pcVar13 = pcVar13 + 1;\n          cVar1 = *pcVar13;\n        }" ({ "{") (if_statement "if (cVar1 == ' ') {\n            *pcVar13 = '+';\n          }" (if "if") (parenthesized_expression "(cVar1 == ' ')" (( "(") (binary_expression "cVar1 == ' '" (identifier "cVar1") (== "==") (char_literal "' '" (' "'") (character " ") (' "'"))) () ")")) (compound_statement "{\n            *pcVar13 = '+';\n          }" ({ "{") (expression_statement "*pcVar13 = '+';" (assignment_expression "*pcVar13 = '+'" (pointer_expression "*pcVar13" (* "*") (identifier "pcVar13")) (= "=") (char_literal "'+'" (' "'") (character "+") (' "'"))) (; ";")) (} "}"))) (expression_statement "pcVar13 = pcVar13 + 1;" (assignment_expression "pcVar13 = pcVar13 + 1" (identifier "pcVar13") (= "=") (binary_expression "pcVar13 + 1" (identifier "pcVar13") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar13;" (assignment_expression "cVar1 = *pcVar13" (identifier "cVar1") (= "=") (pointer_expression "*pcVar13" (* "*") (identifier "pcVar13"))) (; ";")) (} "}"))) (expression_statement "local_b0 = time((time_t *)0x0);" (assignment_expression "local_b0 = time((time_t *)0x0)" (identifier "local_b0") (= "=") (call_expression "time((time_t *)0x0)" (identifier "time") (argument_list "((time_t *)0x0)" (( "(") (cast_expression "(time_t *)0x0" (( "(") (type_descriptor "time_t *" (type_identifier "time_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")")))) (; ";")) (expression_statement "ptVar14 = localtime(&local_b0);" (assignment_expression "ptVar14 = localtime(&local_b0)" (identifier "ptVar14") (= "=") (call_expression "localtime(&local_b0)" (identifier "localtime") (argument_list "(&local_b0)" (( "(") (pointer_expression "&local_b0" (& "&") (identifier "local_b0")) () ")")))) (; ";")) (expression_statement "__fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);" (call_expression "__fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_)" (identifier "__fprintf_chk") (argument_list "(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c\n                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,\n                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_)" (( "(") (identifier "__stream") (, ",") (number_literal "1") (, ",") (string_literal ""%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n"" (" """) (string_content "%04d-%02d-%02d %02d:%02d:%02d %s:%s %g") (escape_sequence "\n") (" """)) (, ",") (binary_expression "ptVar14->tm_year + 0x76c" (field_expression "ptVar14->tm_year" (identifier "ptVar14") (-> "->") (field_identifier "tm_year")) (+ "+") (number_literal "0x76c")) (, ",") (binary_expression "ptVar14->tm_mon + 1" (field_expression "ptVar14->tm_mon" (identifier "ptVar14") (-> "->") (field_identifier "tm_mon")) (+ "+") (number_literal "1")) (, ",") (field_expression "ptVar14->tm_mday" (identifier "ptVar14") (-> "->") (field_identifier "tm_mday")) (, ",") (field_expression "ptVar14->tm_hour" (identifier "ptVar14") (-> "->") (field_identifier "tm_hour")) (, ",") (field_expression "ptVar14->tm_min" (identifier "ptVar14") (-> "->") (field_identifier "tm_min")) (, ",") (field_expression "ptVar14->tm_sec" (identifier "ptVar14") (-> "->") (field_identifier "tm_sec")) (, ",") (identifier "pcVar12") (, ",") (identifier "uVar5") (, ",") (cast_expression "(undefined4)local_d4" (( "(") (type_descriptor "undefined4" (type_identifier "undefined4")) () ")") (identifier "local_d4")) (, ",") (field_expression "local_d4._4_4_" (identifier "local_d4") (. ".") (field_identifier "_4_4_")) () ")"))) (; ";")) (expression_statement "free(pcVar10);" (call_expression "free(pcVar10)" (identifier "free") (argument_list "(pcVar10)" (( "(") (identifier "pcVar10") () ")"))) (; ";")) (expression_statement "free(pcVar12);" (call_expression "free(pcVar12)" (identifier "free") (argument_list "(pcVar12)" (( "(") (identifier "pcVar12") () ")"))) (; ";")) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (expression_statement "iVar16 = iVar16 - (local_ca + 1);" (assignment_expression "iVar16 = iVar16 - (local_ca + 1)" (identifier "iVar16") (= "=") (binary_expression "iVar16 - (local_ca + 1)" (identifier "iVar16") (- "-") (parenthesized_expression "(local_ca + 1)" (( "(") (binary_expression "local_ca + 1" (identifier "local_ca") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" (else "else") (compound_statement "{\n        local_c9 = '\0';\n        iVar16 = iVar16 - (uint)local_ca;\n      }" ({ "{") (expression_statement "local_c9 = '\0';" (assignment_expression "local_c9 = '\0'" (identifier "local_c9") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar16 = iVar16 - (uint)local_ca;" (assignment_expression "iVar16 = iVar16 - (uint)local_ca" (identifier "iVar16") (= "=") (binary_expression "iVar16 - (uint)local_ca" (identifier "iVar16") (- "-") (cast_expression "(uint)local_ca" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_ca")))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }" (else "else") (compound_statement "{\n      iVar16 = iVar9 + -6;\n      local_c9 = '\0';\n    }" ({ "{") (expression_statement "iVar16 = iVar9 + -6;" (assignment_expression "iVar16 = iVar9 + -6" (identifier "iVar16") (= "=") (binary_expression "iVar9 + -6" (identifier "iVar9") (+ "+") (number_literal "-6"))) (; ";")) (expression_statement "local_c9 = '\0';" (assignment_expression "local_c9 = '\0'" (identifier "local_c9") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (DAT_0001e382 == '\0') {\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }\n  else {\n    puVar6 = &DAT_0001e3d0;\n  }" (if "if") (parenthesized_expression "(DAT_0001e382 == '\0')" (( "(") (binary_expression "DAT_0001e382 == '\0'" (identifier "DAT_0001e382") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    dVar17 = dVar17 / (double)DAT_0001a3dc;\n    puVar6 = &DAT_0001e404;\n  }" ({ "{") (expression_statement "dVar17 = dVar17 / (double)DAT_0001a3dc;" (assignment_expression "dVar17 = dVar17 / (double)DAT_0001a3dc" (identifier "dVar17") (= "=") (binary_expression "dVar17 / (double)DAT_0001a3dc" (identifier "dVar17") (/ "/") (cast_expression "(double)DAT_0001a3dc" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_0001a3dc")))) (; ";")) (expression_statement "puVar6 = &DAT_0001e404;" (assignment_expression "puVar6 = &DAT_0001e404" (identifier "puVar6") (= "=") (pointer_expression "&DAT_0001e404" (& "&") (identifier "DAT_0001e404"))) (; ";")) (} "}")) (else_clause "else {\n    puVar6 = &DAT_0001e3d0;\n  }" (else "else") (compound_statement "{\n    puVar6 = &DAT_0001e3d0;\n  }" ({ "{") (expression_statement "puVar6 = &DAT_0001e3d0;" (assignment_expression "puVar6 = &DAT_0001e3d0" (identifier "puVar6") (= "=") (pointer_expression "&DAT_0001e3d0" (& "&") (identifier "DAT_0001e3d0"))) (; ";")) (} "}")))) (expression_statement "__sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);" (call_expression "__sprintf_chk(local_a0,1,0x80,*puVar6,dVar17)" (identifier "__sprintf_chk") (argument_list "(local_a0,1,0x80,*puVar6,dVar17)" (( "(") (identifier "local_a0") (, ",") (number_literal "1") (, ",") (number_literal "0x80") (, ",") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (identifier "dVar17") () ")"))) (; ";")) (expression_statement "puVar4 = PTR_COLS_0001dfe4;" (assignment_expression "puVar4 = PTR_COLS_0001dfe4" (identifier "puVar4") (= "=") (identifier "PTR_COLS_0001dfe4")) (; ";")) (expression_statement "iVar9 = *(int *)PTR_COLS_0001dfe4;" (assignment_expression "iVar9 = *(int *)PTR_COLS_0001dfe4" (identifier "iVar9") (= "=") (pointer_expression "*(int *)PTR_COLS_0001dfe4" (* "*") (cast_expression "(int *)PTR_COLS_0001dfe4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0001dfe4")))) (; ";")) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" (identifier "iVar7") (= "=") (call_expression "FUN_00018750(local_a0)" (identifier "FUN_00018750") (argument_list "(local_a0)" (( "(") (identifier "local_a0") () ")")))) (; ";")) (expression_statement "puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;" (assignment_expression "puVar6 = (undefined4 *)PTR_stdscr_0001dfdc" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)PTR_stdscr_0001dfdc" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdscr_0001dfdc"))) (; ";")) (expression_statement "wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);" (call_expression "wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1)" (identifier "wmove") (argument_list "(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1)" (( "(") (pointer_expression "*(undefined4 *)PTR_stdscr_0001dfdc" (* "*") (cast_expression "(undefined4 *)PTR_stdscr_0001dfdc" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdscr_0001dfdc"))) (, ",") (identifier "iVar16") (, ",") (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" (( "(") (binary_expression "iVar9 - iVar7" (identifier "iVar9") (- "-") (identifier "iVar7")) () ")")) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" (identifier "FUN_000185e0") (argument_list "(local_a0)" (( "(") (identifier "local_a0") () ")"))) (; ";")) (if_statement "if (DAT_0001e382 == '\0') {\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }\n  else {\n    puVar8 = &DAT_0001e3d4;\n  }" (if "if") (parenthesized_expression "(DAT_0001e382 == '\0')" (( "(") (binary_expression "DAT_0001e382 == '\0'" (identifier "DAT_0001e382") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    puVar8 = &DAT_0001e3bc;\n    local_d4 = local_d4 / (double)DAT_0001a3dc;\n  }" ({ "{") (expression_statement "puVar8 = &DAT_0001e3bc;" (assignment_expression "puVar8 = &DAT_0001e3bc" (identifier "puVar8") (= "=") (pointer_expression "&DAT_0001e3bc" (& "&") (identifier "DAT_0001e3bc"))) (; ";")) (expression_statement "local_d4 = local_d4 / (double)DAT_0001a3dc;" (assignment_expression "local_d4 = local_d4 / (double)DAT_0001a3dc" (identifier "local_d4") (= "=") (binary_expression "local_d4 / (double)DAT_0001a3dc" (identifier "local_d4") (/ "/") (cast_expression "(double)DAT_0001a3dc" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_0001a3dc")))) (; ";")) (} "}")) (else_clause "else {\n    puVar8 = &DAT_0001e3d4;\n  }" (else "else") (compound_statement "{\n    puVar8 = &DAT_0001e3d4;\n  }" ({ "{") (expression_statement "puVar8 = &DAT_0001e3d4;" (assignment_expression "puVar8 = &DAT_0001e3d4" (identifier "puVar8") (= "=") (pointer_expression "&DAT_0001e3d4" (& "&") (identifier "DAT_0001e3d4"))) (; ";")) (} "}")))) (expression_statement "__sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);" (call_expression "__sprintf_chk(local_a0,1,0x80,*puVar8,local_d4)" (identifier "__sprintf_chk") (argument_list "(local_a0,1,0x80,*puVar8,local_d4)" (( "(") (identifier "local_a0") (, ",") (number_literal "1") (, ",") (number_literal "0x80") (, ",") (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (, ",") (identifier "local_d4") () ")"))) (; ";")) (expression_statement "iVar9 = *(int *)puVar4;" (assignment_expression "iVar9 = *(int *)puVar4" (identifier "iVar9") (= "=") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" (identifier "iVar7") (= "=") (call_expression "FUN_00018750(local_a0)" (identifier "FUN_00018750") (argument_list "(local_a0)" (( "(") (identifier "local_a0") () ")")))) (; ";")) (expression_statement "wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);" (call_expression "wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1)" (identifier "wmove") (argument_list "(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (binary_expression "iVar16 + 1" (identifier "iVar16") (+ "+") (number_literal "1")) (, ",") (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" (( "(") (binary_expression "iVar9 - iVar7" (identifier "iVar9") (- "-") (identifier "iVar7")) () ")")) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" (identifier "FUN_000185e0") (argument_list "(local_a0)" (( "(") (identifier "local_a0") () ")"))) (; ";")) (expression_statement "__sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));" (call_expression "__sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1))" (identifier "__sprintf_chk") (argument_list "(local_a0,1,0x80,DAT_0001e3e4,\n                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1))" (( "(") (identifier "local_a0") (, ",") (number_literal "1") (, ",") (number_literal "0x80") (, ",") (identifier "DAT_0001e3e4") (, ",") (cast_expression "(double)(((float)param_2 * DAT_0001a3d4) / (float)param_1)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "(((float)param_2 * DAT_0001a3d4) / (float)param_1)" (( "(") (binary_expression "((float)param_2 * DAT_0001a3d4) / (float)param_1" (parenthesized_expression "((float)param_2 * DAT_0001a3d4)" (( "(") (binary_expression "(float)param_2 * DAT_0001a3d4" (cast_expression "(float)param_2" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (identifier "param_2")) (* "*") (identifier "DAT_0001a3d4")) () ")")) (/ "/") (cast_expression "(float)param_1" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (identifier "param_1"))) () ")"))) () ")"))) (; ";")) (expression_statement "iVar9 = *(int *)puVar4;" (assignment_expression "iVar9 = *(int *)puVar4" (identifier "iVar9") (= "=") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" (identifier "iVar7") (= "=") (call_expression "FUN_00018750(local_a0)" (identifier "FUN_00018750") (argument_list "(local_a0)" (( "(") (identifier "local_a0") () ")")))) (; ";")) (expression_statement "wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);" (call_expression "wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1)" (identifier "wmove") (argument_list "(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (binary_expression "iVar16 + 2" (identifier "iVar16") (+ "+") (number_literal "2")) (, ",") (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" (( "(") (binary_expression "iVar9 - iVar7" (identifier "iVar9") (- "-") (identifier "iVar7")) () ")")) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" (identifier "FUN_000185e0") (argument_list "(local_a0)" (( "(") (identifier "local_a0") () ")"))) (; ";")) (expression_statement "local_d8 = iVar16 + 3;" (assignment_expression "local_d8 = iVar16 + 3" (identifier "local_d8") (= "=") (binary_expression "iVar16 + 3" (identifier "iVar16") (+ "+") (number_literal "3"))) (; ";")) (if_statement "if (local_ca != 0) {\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }" (if "if") (parenthesized_expression "(local_ca != 0)" (( "(") (binary_expression "local_ca != 0" (identifier "local_ca") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }\n    local_d8 = iVar16 + 4;\n    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);\n    iVar9 = *(int *)puVar4;\n    iVar7 = FUN_00018750(local_a0);\n    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);\n    FUN_000185e0(local_a0);\n  }" ({ "{") (if_statement "if (DAT_0001e382 == '\0') {\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }\n    else {\n      puVar8 = &DAT_0001e3c0;\n    }" (if "if") (parenthesized_expression "(DAT_0001e382 == '\0')" (( "(") (binary_expression "DAT_0001e382 == '\0'" (identifier "DAT_0001e382") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      local_ac = local_ac / (double)DAT_0001a3dc;\n      puVar8 = &DAT_0001e3dc;\n    }" ({ "{") (expression_statement "local_ac = local_ac / (double)DAT_0001a3dc;" (assignment_expression "local_ac = local_ac / (double)DAT_0001a3dc" (identifier "local_ac") (= "=") (binary_expression "local_ac / (double)DAT_0001a3dc" (identifier "local_ac") (/ "/") (cast_expression "(double)DAT_0001a3dc" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "DAT_0001a3dc")))) (; ";")) (expression_statement "puVar8 = &DAT_0001e3dc;" (assignment_expression "puVar8 = &DAT_0001e3dc" (identifier "puVar8") (= "=") (pointer_expression "&DAT_0001e3dc" (& "&") (identifier "DAT_0001e3dc"))) (; ";")) (} "}")) (else_clause "else {\n      puVar8 = &DAT_0001e3c0;\n    }" (else "else") (compound_statement "{\n      puVar8 = &DAT_0001e3c0;\n    }" ({ "{") (expression_statement "puVar8 = &DAT_0001e3c0;" (assignment_expression "puVar8 = &DAT_0001e3c0" (identifier "puVar8") (= "=") (pointer_expression "&DAT_0001e3c0" (& "&") (identifier "DAT_0001e3c0"))) (; ";")) (} "}")))) (expression_statement "local_d8 = iVar16 + 4;" (assignment_expression "local_d8 = iVar16 + 4" (identifier "local_d8") (= "=") (binary_expression "iVar16 + 4" (identifier "iVar16") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "__sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);" (call_expression "__sprintf_chk(local_a0,1,0x80,*puVar8,local_ac)" (identifier "__sprintf_chk") (argument_list "(local_a0,1,0x80,*puVar8,local_ac)" (( "(") (identifier "local_a0") (, ",") (number_literal "1") (, ",") (number_literal "0x80") (, ",") (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (, ",") (identifier "local_ac") () ")"))) (; ";")) (expression_statement "iVar9 = *(int *)puVar4;" (assignment_expression "iVar9 = *(int *)puVar4" (identifier "iVar9") (= "=") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "iVar7 = FUN_00018750(local_a0);" (assignment_expression "iVar7 = FUN_00018750(local_a0)" (identifier "iVar7") (= "=") (call_expression "FUN_00018750(local_a0)" (identifier "FUN_00018750") (argument_list "(local_a0)" (( "(") (identifier "local_a0") () ")")))) (; ";")) (expression_statement "wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);" (call_expression "wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1)" (identifier "wmove") (argument_list "(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (binary_expression "iVar16 + 3" (identifier "iVar16") (+ "+") (number_literal "3")) (, ",") (binary_expression "(iVar9 - iVar7) + -1" (parenthesized_expression "(iVar9 - iVar7)" (( "(") (binary_expression "iVar9 - iVar7" (identifier "iVar9") (- "-") (identifier "iVar7")) () ")")) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (expression_statement "FUN_000185e0(local_a0);" (call_expression "FUN_000185e0(local_a0)" (identifier "FUN_000185e0") (argument_list "(local_a0)" (( "(") (identifier "local_a0") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_c9 != '\0') {\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }" (if "if") (parenthesized_expression "(local_c9 != '\0')" (( "(") (binary_expression "local_c9 != '\0'" (identifier "local_c9") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar16 = *(int *)puVar4;\n    iVar9 = FUN_00018750(DAT_0001e3f4);\n    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);\n    FUN_000185e0(DAT_0001e3f4);\n  }" ({ "{") (expression_statement "iVar16 = *(int *)puVar4;" (assignment_expression "iVar16 = *(int *)puVar4" (identifier "iVar16") (= "=") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "iVar9 = FUN_00018750(DAT_0001e3f4);" (assignment_expression "iVar9 = FUN_00018750(DAT_0001e3f4)" (identifier "iVar9") (= "=") (call_expression "FUN_00018750(DAT_0001e3f4)" (identifier "FUN_00018750") (argument_list "(DAT_0001e3f4)" (( "(") (identifier "DAT_0001e3f4") () ")")))) (; ";")) (expression_statement "wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);" (call_expression "wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1)" (identifier "wmove") (argument_list "(*puVar6,local_d8,(iVar16 - iVar9) + -1)" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (identifier "local_d8") (, ",") (binary_expression "(iVar16 - iVar9) + -1" (parenthesized_expression "(iVar16 - iVar9)" (( "(") (binary_expression "iVar16 - iVar9" (identifier "iVar16") (- "-") (identifier "iVar9")) () ")")) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (expression_statement "FUN_000185e0(DAT_0001e3f4);" (call_expression "FUN_000185e0(DAT_0001e3f4)" (identifier "FUN_000185e0") (argument_list "(DAT_0001e3f4)" (( "(") (identifier "DAT_0001e3f4") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00018b10();" (call_expression "FUN_00018b10()" (identifier "FUN_00018b10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void __regparm2 function_1(int var_4,double var_3,int var_5)

{
  int var_44;
  char var_28;
  type_1 *pcVar3;
  double var_8;
  type_2 *puVar5;
  type_2 *puVar6;
  char *pcVar7;
  int var_40;
  char **ppcVar9;
  int var_2;
  char *var_18;
  size_t var_17;
  char *var_26;
  type_3 *var_24;
  char *var_29;
  type_4 *ptVar15;
  int var_35;
  int var_1;
  double test_time;
  double var_7;
  int local_d8;
  type_5 var_12;
  type_6 var_36;
  char var_43;
  type_7 nowts;
  double var_11;
  char message [128];
  
  var_44 = *(int *)(var_1 + 0x14);
  var_2 = *(int *)PTR_LINES_0001dff0;
  var_35 = var_2 + -5;
  if (var_3 <= 0.0) {
    var_7 = var_6;
    var_12 = var_6;
  }
  else {
    var_7 = (double)var_4 / (var_3 / (double)DAT_0001a3d8);
    var_8 = (double)(var_4 + var_5 * -5) / (var_3 / (double)DAT_0001a3d8);
    var_12 = var_6;
    if (var_6 <= var_7) {
      var_7 = var_6;
    }
    if (var_8 < var_6) {
      if (var_8 <= 0.0) {
        var_12 = 0.0;
      }
      else {
        var_12 = var_8;
        if (var_8 <= var_9 || var_9 != var_8) {
          var_12 = 0.0;
        }
      }
    }
  }
  var_43 = cl_personal_best;
  var_36 = false;
  if (cl_personal_best) {
    var_36 = var_10(global_script_filename,__last_label,&var_11);
    if ((!var_36) || (var_11 < var_12)) {
      var_2 = var_13(var_4,var_5);
      pcVar7 = __last_label;
      var_29 = global_script_filename;
      var_26 = global_home_env;
      if (var_2 == 0) {
        var_18 = var_14(global_home_env);
        var_17 = var_15(var_18);
        var_18 = (char *)var_16(var_17 + 0x12);
        if (var_18 == (char *)0x0) {
          var_19("malloc");
          var_26 = (char *)var_20(0,"internal error: malloc",5);
          var_21(var_26,(char *)0x0);
          var_26 = global_home_env;
        }
        var_26 = var_14(var_26);
        var_22(var_18,1,0xffffffff,"%s/%s",var_26);
        var_24 = var_23(var_18,"a");
        if (var_24 == (type_3 *)0x0) {
          var_19("fopen");
          var_26 = (char *)var_20(0," internal error: fopen",5);
          var_21(var_26,(char *)0x0);
        }
        var_26 = var_25(var_29);
        if (var_26 == (char *)0x0) {
          var_19("malloc");
          var_26 = (char *)var_20(0,"internal error: malloc",5);
          var_21(var_26,(char *)0x0);
                    /* WARNING: Does not return */
          pcVar3 = (type_1 *)var_27();
          (*pcVar3)();
        }
        var_28 = *var_26;
        var_29 = var_26;
        while (var_28 != '\0') {
          if (var_28 == ' ') {
            *var_29 = '+';
          }
          var_29 = var_29 + 1;
          var_28 = *var_29;
        }
        nowts = var_30((type_7 *)0x0);
        ptVar15 = var_31(&nowts);
        var_32(var_24,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar15->tm_year + 0x76c
                      ,ptVar15->tm_mon + 1,ptVar15->tm_mday,ptVar15->tm_hour,ptVar15->tm_min,
                      ptVar15->tm_sec,var_26,pcVar7,(type_8)var_12,var_12._4_4_);
        var_33(var_18);
        var_33(var_26);
        var_34(var_24);
        var_35 = var_35 - (var_36 + 1);
      }
      else {
        var_43 = '\0';
        var_35 = var_35 - (type_9)var_36;
      }
    }
    else {
      var_35 = var_2 + -6;
      var_43 = '\0';
    }
  }
  if (var_37 == false) {
    var_7 = var_7 / (double)DAT_0001a3dc;
    ppcVar9 = &SPEED_RAW_WPM;
  }
  else {
    ppcVar9 = &SPEED_RAW_CPM;
  }
  var_22(message,1,0x80,*ppcVar9,var_7);
  puVar6 = PTR_COLS_0001dfe4;
  var_2 = *(int *)PTR_COLS_0001dfe4;
  var_40 = var_38(message);
  puVar5 = PTR_stdscr_0001dfdc;
  var_39(*(type_8 *)PTR_stdscr_0001dfdc,var_35,(var_2 - var_40) + -1);
  var_41(message);
  if (var_37 == false) {
    ppcVar9 = &SPEED_ADJ_WPM;
    var_12 = var_12 / (double)DAT_0001a3dc;
  }
  else {
    ppcVar9 = &SPEED_ADJ_CPM;
  }
  var_22(message,1,0x80,*ppcVar9,var_12);
  var_2 = *(int *)puVar6;
  var_40 = var_38(message);
  var_39(*(type_8 *)puVar5,var_35 + 1,(var_2 - var_40) + -1);
  var_41(message);
  var_22(message,1,0x80,SPEED_PCT_ERROR,
                (double)(((float)var_5 * var_42) / (float)var_4));
  var_2 = *(int *)puVar6;
  var_40 = var_38(message);
  var_39(*(type_8 *)puVar5,var_35 + 2,(var_2 - var_40) + -1);
  var_41(message);
  local_d8 = var_35 + 3;
  if (var_36 != false) {
    if (var_37 == false) {
      var_11 = var_11 / (double)DAT_0001a3dc;
      ppcVar9 = &SPEED_BEST_WPM;
    }
    else {
      ppcVar9 = &SPEED_BEST_CPM;
    }
    local_d8 = var_35 + 4;
    var_22(message,1,0x80,*ppcVar9,var_11);
    var_2 = *(int *)puVar6;
    var_40 = var_38(message);
    var_39(*(type_8 *)puVar5,var_35 + 3,(var_2 - var_40) + -1);
    var_41(message);
  }
  if (var_43 != '\0') {
    var_35 = *(int *)puVar6;
    var_2 = var_38(SPEED_BEST_NEW_MSG);
    var_39(*(type_8 *)puVar5,local_d8,(var_35 - var_2) + -1);
    var_41(SPEED_BEST_NEW_MSG);
  }
  if (var_44 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_45();
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (string_literal (string_content)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (string_literal (string_content) (escape_sequence)) (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)) (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)) (field_expression argument: (identifier) field: (field_identifier)) (field_expression argument: (identifier) field: (field_identifier)) (field_expression argument: (identifier) field: (field_identifier)) (field_expression argument: (identifier) field: (field_identifier)) (identifier) (identifier) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) (field_expression argument: (identifier) field: (field_identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (pointer_expression argument: (identifier)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (pointer_expression argument: (identifier)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (pointer_expression argument: (identifier)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void __regparm2 MASKED(int param_1,int param_2,double param_3)

{
  char cVar1;
  code *pcVar2;
  double dVar3;
  undefined *puVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined4 *puVar8;
  int iVar9;
  char *pcVar10;
  size_t sVar11;
  char *pcVar12;
  FILE *__stream;
  char *pcVar13;
  tm *ptVar14;
  undefined4 uVar15;
  int iVar16;
  int in_GS_OFFSET;
  double dVar17;
  int local_d8;
  undefined8 local_d4;
  byte local_ca;
  char local_c9;
  time_t local_b0;
  double local_ac;
  undefined1 local_a0 [128];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x16449;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar9 = *(int *)PTR_LINES_0001dff0;
  iVar16 = iVar9 + -5;
  if (param_3 <= 0.0) {
    dVar17 = DAT_0001a3e8;
    local_d4 = DAT_0001a3e8;
  }
  else {
    dVar17 = (double)param_1 / (param_3 / (double)DAT_0001a3d8);
    dVar3 = (double)(param_1 + param_2 * -5) / (param_3 / (double)DAT_0001a3d8);
    local_d4 = DAT_0001a3e8;
    if (DAT_0001a3e8 <= dVar17) {
      dVar17 = DAT_0001a3e8;
    }
    if (dVar3 < DAT_0001a3e8) {
      if (dVar3 <= 0.0) {
        local_d4 = 0.0;
      }
      else {
        local_d4 = dVar3;
        if (dVar3 <= _DAT_0001a3f0 || _DAT_0001a3f0 != dVar3) {
          local_d4 = 0.0;
        }
      }
    }
  }
  local_c9 = DAT_0001e381;
  local_ca = 0;
  if (DAT_0001e381 != '\0') {
    local_ca = FUN_000161a0(dVar17);
    if ((local_ca == 0) || (local_ac < local_d4)) {
      iVar9 = FUN_00015890(dVar17);
      pcVar13 = DAT_0001e374;
      pcVar12 = DAT_0001e370;
      if (iVar9 == 0) {
        uVar5 = DAT_0001e3a4;
        pcVar10 = getenv(DAT_0001e370);
        sVar11 = strlen(pcVar10);
        pcVar10 = (char *)malloc(sVar11 + 0x12);
        if (pcVar10 == (char *)0x0) {
          perror("malloc");
          uVar15 = dcgettext(0,"internal error: malloc",5);
          FUN_00018320(uVar15);
          pcVar12 = DAT_0001e370;
        }
        pcVar12 = getenv(pcVar12);
        __sprintf_chk(pcVar10,1,0xffffffff,"%s/%s",pcVar12);
        __stream = fopen(pcVar10,"a");
        if (__stream == (FILE *)0x0) {
          perror("fopen");
          uVar15 = dcgettext(0," internal error: fopen",5);
          FUN_00018320(uVar15);
        }
        pcVar12 = strdup(pcVar13);
        if (pcVar12 == (char *)0x0) {
          perror("malloc");
          uVar5 = dcgettext(0,"internal error: malloc",5);
          FUN_00018320(uVar5,0);
                    /* WARNING: Does not return */
          pcVar2 = (code *)invalidInstructionException();
          (*pcVar2)();
        }
        cVar1 = *pcVar12;
        pcVar13 = pcVar12;
        while (cVar1 != '\0') {
          if (cVar1 == ' ') {
            *pcVar13 = '+';
          }
          pcVar13 = pcVar13 + 1;
          cVar1 = *pcVar13;
        }
        local_b0 = time((time_t *)0x0);
        ptVar14 = localtime(&local_b0);
        __fprintf_chk(__stream,1,"%04d-%02d-%02d %02d:%02d:%02d %s:%s %g\n",ptVar14->tm_year + 0x76c
                      ,ptVar14->tm_mon + 1,ptVar14->tm_mday,ptVar14->tm_hour,ptVar14->tm_min,
                      ptVar14->tm_sec,pcVar12,uVar5,(undefined4)local_d4,local_d4._4_4_);
        free(pcVar10);
        free(pcVar12);
        fclose(__stream);
        iVar16 = iVar16 - (local_ca + 1);
      }
      else {
        local_c9 = '\0';
        iVar16 = iVar16 - (uint)local_ca;
      }
    }
    else {
      iVar16 = iVar9 + -6;
      local_c9 = '\0';
    }
  }
  if (DAT_0001e382 == '\0') {
    dVar17 = dVar17 / (double)DAT_0001a3dc;
    puVar6 = &DAT_0001e404;
  }
  else {
    puVar6 = &DAT_0001e3d0;
  }
  __sprintf_chk(local_a0,1,0x80,*puVar6,dVar17);
  puVar4 = PTR_COLS_0001dfe4;
  iVar9 = *(int *)PTR_COLS_0001dfe4;
  iVar7 = FUN_00018750(local_a0);
  puVar6 = (undefined4 *)PTR_stdscr_0001dfdc;
  wmove(*(undefined4 *)PTR_stdscr_0001dfdc,iVar16,(iVar9 - iVar7) + -1);
  FUN_000185e0(local_a0);
  if (DAT_0001e382 == '\0') {
    puVar8 = &DAT_0001e3bc;
    local_d4 = local_d4 / (double)DAT_0001a3dc;
  }
  else {
    puVar8 = &DAT_0001e3d4;
  }
  __sprintf_chk(local_a0,1,0x80,*puVar8,local_d4);
  iVar9 = *(int *)puVar4;
  iVar7 = FUN_00018750(local_a0);
  wmove(*puVar6,iVar16 + 1,(iVar9 - iVar7) + -1);
  FUN_000185e0(local_a0);
  __sprintf_chk(local_a0,1,0x80,DAT_0001e3e4,
                (double)(((float)param_2 * DAT_0001a3d4) / (float)param_1));
  iVar9 = *(int *)puVar4;
  iVar7 = FUN_00018750(local_a0);
  wmove(*puVar6,iVar16 + 2,(iVar9 - iVar7) + -1);
  FUN_000185e0(local_a0);
  local_d8 = iVar16 + 3;
  if (local_ca != 0) {
    if (DAT_0001e382 == '\0') {
      local_ac = local_ac / (double)DAT_0001a3dc;
      puVar8 = &DAT_0001e3dc;
    }
    else {
      puVar8 = &DAT_0001e3c0;
    }
    local_d8 = iVar16 + 4;
    __sprintf_chk(local_a0,1,0x80,*puVar8,local_ac);
    iVar9 = *(int *)puVar4;
    iVar7 = FUN_00018750(local_a0);
    wmove(*puVar6,iVar16 + 3,(iVar9 - iVar7) + -1);
    FUN_000185e0(local_a0);
  }
  if (local_c9 != '\0') {
    iVar16 = *(int *)puVar4;
    iVar9 = FUN_00018750(DAT_0001e3f4);
    wmove(*puVar6,local_d8,(iVar16 - iVar9) + -1);
    FUN_000185e0(DAT_0001e3f4);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00018b10();
}

