
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void bar_draw(void *progress)

{
  double dl_total_time;
  int iVar1;
  size_t n;
  void *pvVar2;
  
  iVar1 = screen_width;
  if (received_sigwinch == 0) {
    dl_total_time = *(double *)((int)progress + 0x24);
    if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {
      return;
    }
    goto LAB_0003e47a;
  }
  screen_width = determine_screen_width();
  if (screen_width == 0) {
    screen_width = 0x50;
    if (iVar1 == 0x50) goto LAB_0003e4bb;
  }
  else {
    if (screen_width < 0x2d) {
      screen_width = 0x2d;
    }
    if (iVar1 == screen_width) {
LAB_0003e4bb:
      received_sigwinch = 0;
      dl_total_time = *(double *)((int)progress + 0x24);
      if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {
        received_sigwinch = 0;
        return;
      }
      goto LAB_0003e47a;
    }
  }
  n = screen_width + 99;
  *(int *)((int)progress + 0x2c) = screen_width + -1;
  pvVar2 = xrealloc(*(void **)((int)progress + 0x30),n);
  dl_total_time = *(double *)((int)progress + 0x24);
  received_sigwinch = 0;
  *(void **)((int)progress + 0x30) = pvVar2;
LAB_0003e47a:
  create_image((bar_progress *)progress,dl_total_time,false);
  display_image(*(char **)((int)progress + 0x30));
  *(undefined8 *)((int)progress + 0x1c) = *(undefined8 *)((int)progress + 0x24);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_0003e3f0(int param_1)

{
  double dVar1;
  int iVar2;
  undefined4 uVar3;
  
  iVar2 = DAT_000a84d0;
  if (DAT_000a84cc == 0) {
    dVar1 = *(double *)(param_1 + 0x24);
    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {
      return;
    }
    goto LAB_0003e47a;
  }
  DAT_000a84d0 = FUN_0004d7f0();
  if (DAT_000a84d0 == 0) {
    DAT_000a84d0 = 0x50;
    if (iVar2 == 0x50) goto LAB_0003e4bb;
  }
  else {
    if (DAT_000a84d0 < 0x2d) {
      DAT_000a84d0 = 0x2d;
    }
    if (iVar2 == DAT_000a84d0) {
LAB_0003e4bb:
      DAT_000a84cc = 0;
      dVar1 = *(double *)(param_1 + 0x24);
      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {
        DAT_000a84cc = 0;
        return;
      }
      goto LAB_0003e47a;
    }
  }
  iVar2 = DAT_000a84d0 + 99;
  *(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;
  uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);
  dVar1 = *(double *)(param_1 + 0x24);
  DAT_000a84cc = 0;
  *(undefined4 *)(param_1 + 0x30) = uVar3;
LAB_0003e47a:
  FUN_0003db10(dVar1);
  FUN_0003cc60();
  *(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019070
ADD EBX,0x627d8
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EBX + 0x78fc]
TEST EAX,EAX
JNZ 0x0003e430
FLD qword ptr [ESI + 0x24]
FLD qword ptr [ESI + 0x1c]
FSUBR ST0,ST1
FLD qword ptr [EBX + 0xfffdf928]
FST qword ptr [ESP + 0x8]
FCOMIP ST0,ST1
FSTP ST0
JBE 0x0003e47a
FSTP ST0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EDI,dword ptr [EBX + 0x7900]
CALL 0x0004d7f0
TEST EAX,EAX
JZ 0x0003e4a8
CMP EAX,0x2c
JLE 0x0003e4e8
MOV dword ptr [EBX + 0x7900],EAX
CMP EDI,EAX
JZ 0x0003e4bb
SUB ESP,0x8
LEA EDX,[EAX + -0x1]
ADD EAX,0x63
MOV dword ptr [ESI + 0x2c],EDX
PUSH EAX
PUSH dword ptr [ESI + 0x30]
CALL 0x0005ad30
FLD qword ptr [ESI + 0x24]
ADD ESP,0x10
MOV dword ptr [EBX + 0x78fc],0x0
MOV dword ptr [ESI + 0x30],EAX
SUB ESP,0x10
MOV EAX,ESI
XOR EDX,EDX
FSTP qword ptr [ESP]
CALL 0x0003db10
MOV EAX,dword ptr [ESI + 0x30]
CALL 0x0003cc60
FLD qword ptr [ESI + 0x24]
ADD ESP,0x10
FSTP qword ptr [ESI + 0x1c]
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV dword ptr [EBX + 0x7900],0x50
MOV EAX,0x50
CMP EDI,EAX
JNZ 0x0003e452
MOV dword ptr [EBX + 0x78fc],0x0
FLD qword ptr [ESI + 0x24]
FLD qword ptr [ESI + 0x1c]
FSUBR ST0,ST1
FLD qword ptr [EBX + 0xfffdf928]
FST qword ptr [ESP + 0x8]
FCOMIP ST0,ST1
FSTP ST0
JBE 0x0003e47a
FSTP ST0
JMP 0x0003e429
MOV dword ptr [EBX + 0x7900],0x2d
MOV EAX,0x2d
JMP 0x0003e44e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0003e3f0(int param_1)\n\n{\n  double dVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = DAT_000a84d0;\n  if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  DAT_000a84d0 = FUN_0004d7f0();\n  if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  iVar2 = DAT_000a84d0 + 99;\n  *(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;\n  uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);\n  dVar1 = *(double *)(param_1 + 0x24);\n  DAT_000a84cc = 0;\n  *(undefined4 *)(param_1 + 0x30) = uVar3;\nLAB_0003e47a:\n  FUN_0003db10(dVar1);\n  FUN_0003cc60();\n  *(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);\n  return;\n}\n\n" comment (function_definition "void FUN_0003e3f0(int param_1)\n\n{\n  double dVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = DAT_000a84d0;\n  if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  DAT_000a84d0 = FUN_0004d7f0();\n  if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  iVar2 = DAT_000a84d0 + 99;\n  *(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;\n  uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);\n  dVar1 = *(double *)(param_1 + 0x24);\n  DAT_000a84cc = 0;\n  *(undefined4 *)(param_1 + 0x30) = uVar3;\nLAB_0003e47a:\n  FUN_0003db10(dVar1);\n  FUN_0003cc60();\n  *(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);\n  return;\n}" primitive_type (function_declarator "FUN_0003e3f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  double dVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = DAT_000a84d0;\n  if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  DAT_000a84d0 = FUN_0004d7f0();\n  if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  iVar2 = DAT_000a84d0 + 99;\n  *(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;\n  uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);\n  dVar1 = *(double *)(param_1 + 0x24);\n  DAT_000a84cc = 0;\n  *(undefined4 *)(param_1 + 0x30) = uVar3;\nLAB_0003e47a:\n  FUN_0003db10(dVar1);\n  FUN_0003cc60();\n  *(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);\n  return;\n}" { (declaration "double dVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "iVar2 = DAT_000a84d0;" (assignment_expression "iVar2 = DAT_000a84d0" identifier = identifier) ;) (if_statement "if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }" if (parenthesized_expression "(DAT_000a84cc == 0)" ( (binary_expression "DAT_000a84cc == 0" identifier == number_literal) )) (compound_statement "{\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }" { (expression_statement "dVar1 = *(double *)(param_1 + 0x24);" (assignment_expression "dVar1 = *(double *)(param_1 + 0x24)" identifier = (pointer_expression "*(double *)(param_1 + 0x24)" * (cast_expression "(double *)(param_1 + 0x24)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }" if (parenthesized_expression "(dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8)" ( (binary_expression "dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8" (binary_expression "dVar1 - *(double *)(param_1 + 0x1c)" identifier - (pointer_expression "*(double *)(param_1 + 0x1c)" * (cast_expression "(double *)(param_1 + 0x1c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) < identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_0003e47a;" goto statement_identifier ;) })) (expression_statement "DAT_000a84d0 = FUN_0004d7f0();" (assignment_expression "DAT_000a84d0 = FUN_0004d7f0()" identifier = (call_expression "FUN_0004d7f0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" if (parenthesized_expression "(DAT_000a84d0 == 0)" ( (binary_expression "DAT_000a84d0 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }" { (expression_statement "DAT_000a84d0 = 0x50;" (assignment_expression "DAT_000a84d0 = 0x50" identifier = number_literal) ;) (if_statement "if (iVar2 == 0x50) goto LAB_0003e4bb;" if (parenthesized_expression "(iVar2 == 0x50)" ( (binary_expression "iVar2 == 0x50" identifier == number_literal) )) (goto_statement "goto LAB_0003e4bb;" goto statement_identifier ;)) }) (else_clause "else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" else (compound_statement "{\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" { (if_statement "if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }" if (parenthesized_expression "(DAT_000a84d0 < 0x2d)" ( (binary_expression "DAT_000a84d0 < 0x2d" identifier < number_literal) )) (compound_statement "{\n      DAT_000a84d0 = 0x2d;\n    }" { (expression_statement "DAT_000a84d0 = 0x2d;" (assignment_expression "DAT_000a84d0 = 0x2d" identifier = number_literal) ;) })) (if_statement "if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }" if (parenthesized_expression "(iVar2 == DAT_000a84d0)" ( (binary_expression "iVar2 == DAT_000a84d0" identifier == identifier) )) (compound_statement "{\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }" { (labeled_statement "LAB_0003e4bb:\n      DAT_000a84cc = 0;" statement_identifier : (expression_statement "DAT_000a84cc = 0;" (assignment_expression "DAT_000a84cc = 0" identifier = number_literal) ;)) (expression_statement "dVar1 = *(double *)(param_1 + 0x24);" (assignment_expression "dVar1 = *(double *)(param_1 + 0x24)" identifier = (pointer_expression "*(double *)(param_1 + 0x24)" * (cast_expression "(double *)(param_1 + 0x24)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }" if (parenthesized_expression "(dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8)" ( (binary_expression "dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8" (binary_expression "dVar1 - *(double *)(param_1 + 0x1c)" identifier - (pointer_expression "*(double *)(param_1 + 0x1c)" * (cast_expression "(double *)(param_1 + 0x1c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) < identifier) )) (compound_statement "{\n        DAT_000a84cc = 0;\n        return;\n      }" { (expression_statement "DAT_000a84cc = 0;" (assignment_expression "DAT_000a84cc = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })) (goto_statement "goto LAB_0003e47a;" goto statement_identifier ;) })) }))) (expression_statement "iVar2 = DAT_000a84d0 + 99;" (assignment_expression "iVar2 = DAT_000a84d0 + 99" identifier = (binary_expression "DAT_000a84d0 + 99" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;" (assignment_expression "*(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = (binary_expression "DAT_000a84d0 + -1" identifier + number_literal)) ;) (expression_statement "uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);" (assignment_expression "uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2)" identifier = (call_expression "FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x30),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "dVar1 = *(double *)(param_1 + 0x24);" (assignment_expression "dVar1 = *(double *)(param_1 + 0x24)" identifier = (pointer_expression "*(double *)(param_1 + 0x24)" * (cast_expression "(double *)(param_1 + 0x24)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "DAT_000a84cc = 0;" (assignment_expression "DAT_000a84cc = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0003e47a:\n  FUN_0003db10(dVar1);" statement_identifier : (expression_statement "FUN_0003db10(dVar1);" (call_expression "FUN_0003db10(dVar1)" identifier (argument_list "(dVar1)" ( identifier ))) ;)) (expression_statement "FUN_0003cc60();" (call_expression "FUN_0003cc60()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);" (assignment_expression "*(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24)" (pointer_expression "*(undefined8 *)(param_1 + 0x1c)" * (cast_expression "(undefined8 *)(param_1 + 0x1c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x24)" * (cast_expression "(undefined8 *)(param_1 + 0x24)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid bar_draw(void *progress)\n\n{\n  double dl_total_time;\n  int iVar1;\n  size_t n;\n  void *pvVar2;\n  \n  iVar1 = screen_width;\n  if (received_sigwinch == 0) {\n    dl_total_time = *(double *)((int)progress + 0x24);\n    if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  screen_width = determine_screen_width();\n  if (screen_width == 0) {\n    screen_width = 0x50;\n    if (iVar1 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (screen_width < 0x2d) {\n      screen_width = 0x2d;\n    }\n    if (iVar1 == screen_width) {\nLAB_0003e4bb:\n      received_sigwinch = 0;\n      dl_total_time = *(double *)((int)progress + 0x24);\n      if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n        received_sigwinch = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  n = screen_width + 99;\n  *(int *)((int)progress + 0x2c) = screen_width + -1;\n  pvVar2 = xrealloc(*(void **)((int)progress + 0x30),n);\n  dl_total_time = *(double *)((int)progress + 0x24);\n  received_sigwinch = 0;\n  *(void **)((int)progress + 0x30) = pvVar2;\nLAB_0003e47a:\n  create_image((bar_progress *)progress,dl_total_time,false);\n  display_image(*(char **)((int)progress + 0x30));\n  *(undefined8 *)((int)progress + 0x1c) = *(undefined8 *)((int)progress + 0x24);\n  return;\n}\n\n" comment comment (function_definition "void bar_draw(void *progress)\n\n{\n  double dl_total_time;\n  int iVar1;\n  size_t n;\n  void *pvVar2;\n  \n  iVar1 = screen_width;\n  if (received_sigwinch == 0) {\n    dl_total_time = *(double *)((int)progress + 0x24);\n    if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  screen_width = determine_screen_width();\n  if (screen_width == 0) {\n    screen_width = 0x50;\n    if (iVar1 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (screen_width < 0x2d) {\n      screen_width = 0x2d;\n    }\n    if (iVar1 == screen_width) {\nLAB_0003e4bb:\n      received_sigwinch = 0;\n      dl_total_time = *(double *)((int)progress + 0x24);\n      if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n        received_sigwinch = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  n = screen_width + 99;\n  *(int *)((int)progress + 0x2c) = screen_width + -1;\n  pvVar2 = xrealloc(*(void **)((int)progress + 0x30),n);\n  dl_total_time = *(double *)((int)progress + 0x24);\n  received_sigwinch = 0;\n  *(void **)((int)progress + 0x30) = pvVar2;\nLAB_0003e47a:\n  create_image((bar_progress *)progress,dl_total_time,false);\n  display_image(*(char **)((int)progress + 0x30));\n  *(undefined8 *)((int)progress + 0x1c) = *(undefined8 *)((int)progress + 0x24);\n  return;\n}" primitive_type (function_declarator "bar_draw(void *progress)" identifier (parameter_list "(void *progress)" ( (parameter_declaration "void *progress" primitive_type (pointer_declarator "*progress" * identifier)) ))) (compound_statement "{\n  double dl_total_time;\n  int iVar1;\n  size_t n;\n  void *pvVar2;\n  \n  iVar1 = screen_width;\n  if (received_sigwinch == 0) {\n    dl_total_time = *(double *)((int)progress + 0x24);\n    if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  screen_width = determine_screen_width();\n  if (screen_width == 0) {\n    screen_width = 0x50;\n    if (iVar1 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (screen_width < 0x2d) {\n      screen_width = 0x2d;\n    }\n    if (iVar1 == screen_width) {\nLAB_0003e4bb:\n      received_sigwinch = 0;\n      dl_total_time = *(double *)((int)progress + 0x24);\n      if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n        received_sigwinch = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  n = screen_width + 99;\n  *(int *)((int)progress + 0x2c) = screen_width + -1;\n  pvVar2 = xrealloc(*(void **)((int)progress + 0x30),n);\n  dl_total_time = *(double *)((int)progress + 0x24);\n  received_sigwinch = 0;\n  *(void **)((int)progress + 0x30) = pvVar2;\nLAB_0003e47a:\n  create_image((bar_progress *)progress,dl_total_time,false);\n  display_image(*(char **)((int)progress + 0x30));\n  *(undefined8 *)((int)progress + 0x1c) = *(undefined8 *)((int)progress + 0x24);\n  return;\n}" { (declaration "double dl_total_time;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t n;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (expression_statement "iVar1 = screen_width;" (assignment_expression "iVar1 = screen_width" identifier = identifier) ;) (if_statement "if (received_sigwinch == 0) {\n    dl_total_time = *(double *)((int)progress + 0x24);\n    if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }" if (parenthesized_expression "(received_sigwinch == 0)" ( (binary_expression "received_sigwinch == 0" identifier == number_literal) )) (compound_statement "{\n    dl_total_time = *(double *)((int)progress + 0x24);\n    if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }" { (expression_statement "dl_total_time = *(double *)((int)progress + 0x24);" (assignment_expression "dl_total_time = *(double *)((int)progress + 0x24)" identifier = (pointer_expression "*(double *)((int)progress + 0x24)" * (cast_expression "(double *)((int)progress + 0x24)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)progress + 0x24)" ( (binary_expression "(int)progress + 0x24" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n      return;\n    }" if (parenthesized_expression "(dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8)" ( (binary_expression "dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8" (binary_expression "dl_total_time - *(double *)((int)progress + 0x1c)" identifier - (pointer_expression "*(double *)((int)progress + 0x1c)" * (cast_expression "(double *)((int)progress + 0x1c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)progress + 0x1c)" ( (binary_expression "(int)progress + 0x1c" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) < identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_0003e47a;" goto statement_identifier ;) })) (expression_statement "screen_width = determine_screen_width();" (assignment_expression "screen_width = determine_screen_width()" identifier = (call_expression "determine_screen_width()" identifier (argument_list "()" ( )))) ;) (if_statement "if (screen_width == 0) {\n    screen_width = 0x50;\n    if (iVar1 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (screen_width < 0x2d) {\n      screen_width = 0x2d;\n    }\n    if (iVar1 == screen_width) {\nLAB_0003e4bb:\n      received_sigwinch = 0;\n      dl_total_time = *(double *)((int)progress + 0x24);\n      if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n        received_sigwinch = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" if (parenthesized_expression "(screen_width == 0)" ( (binary_expression "screen_width == 0" identifier == number_literal) )) (compound_statement "{\n    screen_width = 0x50;\n    if (iVar1 == 0x50) goto LAB_0003e4bb;\n  }" { (expression_statement "screen_width = 0x50;" (assignment_expression "screen_width = 0x50" identifier = number_literal) ;) (if_statement "if (iVar1 == 0x50) goto LAB_0003e4bb;" if (parenthesized_expression "(iVar1 == 0x50)" ( (binary_expression "iVar1 == 0x50" identifier == number_literal) )) (goto_statement "goto LAB_0003e4bb;" goto statement_identifier ;)) }) (else_clause "else {\n    if (screen_width < 0x2d) {\n      screen_width = 0x2d;\n    }\n    if (iVar1 == screen_width) {\nLAB_0003e4bb:\n      received_sigwinch = 0;\n      dl_total_time = *(double *)((int)progress + 0x24);\n      if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n        received_sigwinch = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" else (compound_statement "{\n    if (screen_width < 0x2d) {\n      screen_width = 0x2d;\n    }\n    if (iVar1 == screen_width) {\nLAB_0003e4bb:\n      received_sigwinch = 0;\n      dl_total_time = *(double *)((int)progress + 0x24);\n      if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n        received_sigwinch = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" { (if_statement "if (screen_width < 0x2d) {\n      screen_width = 0x2d;\n    }" if (parenthesized_expression "(screen_width < 0x2d)" ( (binary_expression "screen_width < 0x2d" identifier < number_literal) )) (compound_statement "{\n      screen_width = 0x2d;\n    }" { (expression_statement "screen_width = 0x2d;" (assignment_expression "screen_width = 0x2d" identifier = number_literal) ;) })) (if_statement "if (iVar1 == screen_width) {\nLAB_0003e4bb:\n      received_sigwinch = 0;\n      dl_total_time = *(double *)((int)progress + 0x24);\n      if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n        received_sigwinch = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }" if (parenthesized_expression "(iVar1 == screen_width)" ( (binary_expression "iVar1 == screen_width" identifier == identifier) )) (compound_statement "{\nLAB_0003e4bb:\n      received_sigwinch = 0;\n      dl_total_time = *(double *)((int)progress + 0x24);\n      if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n        received_sigwinch = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }" { (labeled_statement "LAB_0003e4bb:\n      received_sigwinch = 0;" statement_identifier : (expression_statement "received_sigwinch = 0;" (assignment_expression "received_sigwinch = 0" identifier = number_literal) ;)) (expression_statement "dl_total_time = *(double *)((int)progress + 0x24);" (assignment_expression "dl_total_time = *(double *)((int)progress + 0x24)" identifier = (pointer_expression "*(double *)((int)progress + 0x24)" * (cast_expression "(double *)((int)progress + 0x24)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)progress + 0x24)" ( (binary_expression "(int)progress + 0x24" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8) {\n        received_sigwinch = 0;\n        return;\n      }" if (parenthesized_expression "(dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8)" ( (binary_expression "dl_total_time - *(double *)((int)progress + 0x1c) < DAT_000804f8" (binary_expression "dl_total_time - *(double *)((int)progress + 0x1c)" identifier - (pointer_expression "*(double *)((int)progress + 0x1c)" * (cast_expression "(double *)((int)progress + 0x1c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)progress + 0x1c)" ( (binary_expression "(int)progress + 0x1c" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) < identifier) )) (compound_statement "{\n        received_sigwinch = 0;\n        return;\n      }" { (expression_statement "received_sigwinch = 0;" (assignment_expression "received_sigwinch = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })) (goto_statement "goto LAB_0003e47a;" goto statement_identifier ;) })) }))) (expression_statement "n = screen_width + 99;" (assignment_expression "n = screen_width + 99" identifier = (binary_expression "screen_width + 99" identifier + number_literal)) ;) (expression_statement "*(int *)((int)progress + 0x2c) = screen_width + -1;" (assignment_expression "*(int *)((int)progress + 0x2c) = screen_width + -1" (pointer_expression "*(int *)((int)progress + 0x2c)" * (cast_expression "(int *)((int)progress + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)progress + 0x2c)" ( (binary_expression "(int)progress + 0x2c" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "screen_width + -1" identifier + number_literal)) ;) (expression_statement "pvVar2 = xrealloc(*(void **)((int)progress + 0x30),n);" (assignment_expression "pvVar2 = xrealloc(*(void **)((int)progress + 0x30),n)" identifier = (call_expression "xrealloc(*(void **)((int)progress + 0x30),n)" identifier (argument_list "(*(void **)((int)progress + 0x30),n)" ( (pointer_expression "*(void **)((int)progress + 0x30)" * (cast_expression "(void **)((int)progress + 0x30)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)progress + 0x30)" ( (binary_expression "(int)progress + 0x30" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier )))) ;) (expression_statement "dl_total_time = *(double *)((int)progress + 0x24);" (assignment_expression "dl_total_time = *(double *)((int)progress + 0x24)" identifier = (pointer_expression "*(double *)((int)progress + 0x24)" * (cast_expression "(double *)((int)progress + 0x24)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)progress + 0x24)" ( (binary_expression "(int)progress + 0x24" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "received_sigwinch = 0;" (assignment_expression "received_sigwinch = 0" identifier = number_literal) ;) (expression_statement "*(void **)((int)progress + 0x30) = pvVar2;" (assignment_expression "*(void **)((int)progress + 0x30) = pvVar2" (pointer_expression "*(void **)((int)progress + 0x30)" * (cast_expression "(void **)((int)progress + 0x30)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)progress + 0x30)" ( (binary_expression "(int)progress + 0x30" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0003e47a:\n  create_image((bar_progress *)progress,dl_total_time,false);" statement_identifier : (expression_statement "create_image((bar_progress *)progress,dl_total_time,false);" (call_expression "create_image((bar_progress *)progress,dl_total_time,false)" identifier (argument_list "((bar_progress *)progress,dl_total_time,false)" ( (cast_expression "(bar_progress *)progress" ( (type_descriptor "bar_progress *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , false ))) ;)) (expression_statement "display_image(*(char **)((int)progress + 0x30));" (call_expression "display_image(*(char **)((int)progress + 0x30))" identifier (argument_list "(*(char **)((int)progress + 0x30))" ( (pointer_expression "*(char **)((int)progress + 0x30)" * (cast_expression "(char **)((int)progress + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)progress + 0x30)" ( (binary_expression "(int)progress + 0x30" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "*(undefined8 *)((int)progress + 0x1c) = *(undefined8 *)((int)progress + 0x24);" (assignment_expression "*(undefined8 *)((int)progress + 0x1c) = *(undefined8 *)((int)progress + 0x24)" (pointer_expression "*(undefined8 *)((int)progress + 0x1c)" * (cast_expression "(undefined8 *)((int)progress + 0x1c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)progress + 0x1c)" ( (binary_expression "(int)progress + 0x1c" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)((int)progress + 0x24)" * (cast_expression "(undefined8 *)((int)progress + 0x24)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)progress + 0x24)" ( (binary_expression "(int)progress + 0x24" (cast_expression "(int)progress" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0003e3f0(int param_1)\n\n{\n  double dVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = DAT_000a84d0;\n  if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  DAT_000a84d0 = FUN_0004d7f0();\n  if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  iVar2 = DAT_000a84d0 + 99;\n  *(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;\n  uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);\n  dVar1 = *(double *)(param_1 + 0x24);\n  DAT_000a84cc = 0;\n  *(undefined4 *)(param_1 + 0x30) = uVar3;\nLAB_0003e47a:\n  FUN_0003db10(dVar1);\n  FUN_0003cc60();\n  *(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);\n  return;\n}\n\n" (function_definition "void FUN_0003e3f0(int param_1)\n\n{\n  double dVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = DAT_000a84d0;\n  if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  DAT_000a84d0 = FUN_0004d7f0();\n  if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  iVar2 = DAT_000a84d0 + 99;\n  *(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;\n  uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);\n  dVar1 = *(double *)(param_1 + 0x24);\n  DAT_000a84cc = 0;\n  *(undefined4 *)(param_1 + 0x30) = uVar3;\nLAB_0003e47a:\n  FUN_0003db10(dVar1);\n  FUN_0003cc60();\n  *(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);\n  return;\n}" primitive_type (function_declarator "FUN_0003e3f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  double dVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = DAT_000a84d0;\n  if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  DAT_000a84d0 = FUN_0004d7f0();\n  if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  iVar2 = DAT_000a84d0 + 99;\n  *(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;\n  uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);\n  dVar1 = *(double *)(param_1 + 0x24);\n  DAT_000a84cc = 0;\n  *(undefined4 *)(param_1 + 0x30) = uVar3;\nLAB_0003e47a:\n  FUN_0003db10(dVar1);\n  FUN_0003cc60();\n  *(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);\n  return;\n}" { (declaration "double dVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "iVar2 = DAT_000a84d0;" (assignment_expression "iVar2 = DAT_000a84d0" identifier = identifier) ;) (if_statement "if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }" if (parenthesized_expression "(DAT_000a84cc == 0)" ( (binary_expression "DAT_000a84cc == 0" identifier == number_literal) )) (compound_statement "{\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }" { (expression_statement "dVar1 = *(double *)(param_1 + 0x24);" (assignment_expression "dVar1 = *(double *)(param_1 + 0x24)" identifier = (pointer_expression "*(double *)(param_1 + 0x24)" * (cast_expression "(double *)(param_1 + 0x24)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }" if (parenthesized_expression "(dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8)" ( (binary_expression "dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8" (binary_expression "dVar1 - *(double *)(param_1 + 0x1c)" identifier - (pointer_expression "*(double *)(param_1 + 0x1c)" * (cast_expression "(double *)(param_1 + 0x1c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) < identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_0003e47a;" goto statement_identifier ;) })) (expression_statement "DAT_000a84d0 = FUN_0004d7f0();" (assignment_expression "DAT_000a84d0 = FUN_0004d7f0()" identifier = (call_expression "FUN_0004d7f0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" if (parenthesized_expression "(DAT_000a84d0 == 0)" ( (binary_expression "DAT_000a84d0 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }" { (expression_statement "DAT_000a84d0 = 0x50;" (assignment_expression "DAT_000a84d0 = 0x50" identifier = number_literal) ;) (if_statement "if (iVar2 == 0x50) goto LAB_0003e4bb;" if (parenthesized_expression "(iVar2 == 0x50)" ( (binary_expression "iVar2 == 0x50" identifier == number_literal) )) (goto_statement "goto LAB_0003e4bb;" goto statement_identifier ;)) }) (else_clause "else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" else (compound_statement "{\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" { (if_statement "if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }" if (parenthesized_expression "(DAT_000a84d0 < 0x2d)" ( (binary_expression "DAT_000a84d0 < 0x2d" identifier < number_literal) )) (compound_statement "{\n      DAT_000a84d0 = 0x2d;\n    }" { (expression_statement "DAT_000a84d0 = 0x2d;" (assignment_expression "DAT_000a84d0 = 0x2d" identifier = number_literal) ;) })) (if_statement "if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }" if (parenthesized_expression "(iVar2 == DAT_000a84d0)" ( (binary_expression "iVar2 == DAT_000a84d0" identifier == identifier) )) (compound_statement "{\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }" { (labeled_statement "LAB_0003e4bb:\n      DAT_000a84cc = 0;" statement_identifier : (expression_statement "DAT_000a84cc = 0;" (assignment_expression "DAT_000a84cc = 0" identifier = number_literal) ;)) (expression_statement "dVar1 = *(double *)(param_1 + 0x24);" (assignment_expression "dVar1 = *(double *)(param_1 + 0x24)" identifier = (pointer_expression "*(double *)(param_1 + 0x24)" * (cast_expression "(double *)(param_1 + 0x24)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }" if (parenthesized_expression "(dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8)" ( (binary_expression "dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8" (binary_expression "dVar1 - *(double *)(param_1 + 0x1c)" identifier - (pointer_expression "*(double *)(param_1 + 0x1c)" * (cast_expression "(double *)(param_1 + 0x1c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) < identifier) )) (compound_statement "{\n        DAT_000a84cc = 0;\n        return;\n      }" { (expression_statement "DAT_000a84cc = 0;" (assignment_expression "DAT_000a84cc = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })) (goto_statement "goto LAB_0003e47a;" goto statement_identifier ;) })) }))) (expression_statement "iVar2 = DAT_000a84d0 + 99;" (assignment_expression "iVar2 = DAT_000a84d0 + 99" identifier = (binary_expression "DAT_000a84d0 + 99" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;" (assignment_expression "*(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = (binary_expression "DAT_000a84d0 + -1" identifier + number_literal)) ;) (expression_statement "uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);" (assignment_expression "uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2)" identifier = (call_expression "FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x30),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "dVar1 = *(double *)(param_1 + 0x24);" (assignment_expression "dVar1 = *(double *)(param_1 + 0x24)" identifier = (pointer_expression "*(double *)(param_1 + 0x24)" * (cast_expression "(double *)(param_1 + 0x24)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "DAT_000a84cc = 0;" (assignment_expression "DAT_000a84cc = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0003e47a:\n  FUN_0003db10(dVar1);" statement_identifier : (expression_statement "FUN_0003db10(dVar1);" (call_expression "FUN_0003db10(dVar1)" identifier (argument_list "(dVar1)" ( identifier ))) ;)) (expression_statement "FUN_0003cc60();" (call_expression "FUN_0003cc60()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);" (assignment_expression "*(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24)" (pointer_expression "*(undefined8 *)(param_1 + 0x1c)" * (cast_expression "(undefined8 *)(param_1 + 0x1c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x24)" * (cast_expression "(undefined8 *)(param_1 + 0x24)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) < IDENT) )) (compound_statement { (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (labeled_statement statement_identifier : (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (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 = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return ;) })))
(function_definition "void FUN_0003e3f0(int param_1)\n\n{\n  double dVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = DAT_000a84d0;\n  if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  DAT_000a84d0 = FUN_0004d7f0();\n  if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  iVar2 = DAT_000a84d0 + 99;\n  *(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;\n  uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);\n  dVar1 = *(double *)(param_1 + 0x24);\n  DAT_000a84cc = 0;\n  *(undefined4 *)(param_1 + 0x30) = uVar3;\nLAB_0003e47a:\n  FUN_0003db10(dVar1);\n  FUN_0003cc60();\n  *(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003e3f0(int param_1)" (identifier "FUN_0003e3f0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  double dVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  iVar2 = DAT_000a84d0;\n  if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }\n  DAT_000a84d0 = FUN_0004d7f0();\n  if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }\n  iVar2 = DAT_000a84d0 + 99;\n  *(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;\n  uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);\n  dVar1 = *(double *)(param_1 + 0x24);\n  DAT_000a84cc = 0;\n  *(undefined4 *)(param_1 + 0x30) = uVar3;\nLAB_0003e47a:\n  FUN_0003db10(dVar1);\n  FUN_0003cc60();\n  *(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);\n  return;\n}" ({ "{") (declaration "double dVar1;" (primitive_type "double") (identifier "dVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "iVar2 = DAT_000a84d0;" (assignment_expression "iVar2 = DAT_000a84d0" (identifier "iVar2") (= "=") (identifier "DAT_000a84d0")) (; ";")) (if_statement "if (DAT_000a84cc == 0) {\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }" (if "if") (parenthesized_expression "(DAT_000a84cc == 0)" (( "(") (binary_expression "DAT_000a84cc == 0" (identifier "DAT_000a84cc") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    dVar1 = *(double *)(param_1 + 0x24);\n    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }\n    goto LAB_0003e47a;\n  }" ({ "{") (expression_statement "dVar1 = *(double *)(param_1 + 0x24);" (assignment_expression "dVar1 = *(double *)(param_1 + 0x24)" (identifier "dVar1") (= "=") (pointer_expression "*(double *)(param_1 + 0x24)" (* "*") (cast_expression "(double *)(param_1 + 0x24)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n      return;\n    }" (if "if") (parenthesized_expression "(dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8)" (( "(") (binary_expression "dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8" (binary_expression "dVar1 - *(double *)(param_1 + 0x1c)" (identifier "dVar1") (- "-") (pointer_expression "*(double *)(param_1 + 0x1c)" (* "*") (cast_expression "(double *)(param_1 + 0x1c)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (< "<") (identifier "DAT_000804f8")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_0003e47a;" (goto "goto") (statement_identifier "LAB_0003e47a") (; ";")) (} "}"))) (expression_statement "DAT_000a84d0 = FUN_0004d7f0();" (assignment_expression "DAT_000a84d0 = FUN_0004d7f0()" (identifier "DAT_000a84d0") (= "=") (call_expression "FUN_0004d7f0()" (identifier "FUN_0004d7f0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (DAT_000a84d0 == 0) {\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }\n  else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" (if "if") (parenthesized_expression "(DAT_000a84d0 == 0)" (( "(") (binary_expression "DAT_000a84d0 == 0" (identifier "DAT_000a84d0") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_000a84d0 = 0x50;\n    if (iVar2 == 0x50) goto LAB_0003e4bb;\n  }" ({ "{") (expression_statement "DAT_000a84d0 = 0x50;" (assignment_expression "DAT_000a84d0 = 0x50" (identifier "DAT_000a84d0") (= "=") (number_literal "0x50")) (; ";")) (if_statement "if (iVar2 == 0x50) goto LAB_0003e4bb;" (if "if") (parenthesized_expression "(iVar2 == 0x50)" (( "(") (binary_expression "iVar2 == 0x50" (identifier "iVar2") (== "==") (number_literal "0x50")) () ")")) (goto_statement "goto LAB_0003e4bb;" (goto "goto") (statement_identifier "LAB_0003e4bb") (; ";"))) (} "}")) (else_clause "else {\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" (else "else") (compound_statement "{\n    if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }\n    if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }\n  }" ({ "{") (if_statement "if (DAT_000a84d0 < 0x2d) {\n      DAT_000a84d0 = 0x2d;\n    }" (if "if") (parenthesized_expression "(DAT_000a84d0 < 0x2d)" (( "(") (binary_expression "DAT_000a84d0 < 0x2d" (identifier "DAT_000a84d0") (< "<") (number_literal "0x2d")) () ")")) (compound_statement "{\n      DAT_000a84d0 = 0x2d;\n    }" ({ "{") (expression_statement "DAT_000a84d0 = 0x2d;" (assignment_expression "DAT_000a84d0 = 0x2d" (identifier "DAT_000a84d0") (= "=") (number_literal "0x2d")) (; ";")) (} "}"))) (if_statement "if (iVar2 == DAT_000a84d0) {\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }" (if "if") (parenthesized_expression "(iVar2 == DAT_000a84d0)" (( "(") (binary_expression "iVar2 == DAT_000a84d0" (identifier "iVar2") (== "==") (identifier "DAT_000a84d0")) () ")")) (compound_statement "{\nLAB_0003e4bb:\n      DAT_000a84cc = 0;\n      dVar1 = *(double *)(param_1 + 0x24);\n      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }\n      goto LAB_0003e47a;\n    }" ({ "{") (labeled_statement "LAB_0003e4bb:\n      DAT_000a84cc = 0;" (statement_identifier "LAB_0003e4bb") (: ":") (expression_statement "DAT_000a84cc = 0;" (assignment_expression "DAT_000a84cc = 0" (identifier "DAT_000a84cc") (= "=") (number_literal "0")) (; ";"))) (expression_statement "dVar1 = *(double *)(param_1 + 0x24);" (assignment_expression "dVar1 = *(double *)(param_1 + 0x24)" (identifier "dVar1") (= "=") (pointer_expression "*(double *)(param_1 + 0x24)" (* "*") (cast_expression "(double *)(param_1 + 0x24)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {\n        DAT_000a84cc = 0;\n        return;\n      }" (if "if") (parenthesized_expression "(dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8)" (( "(") (binary_expression "dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8" (binary_expression "dVar1 - *(double *)(param_1 + 0x1c)" (identifier "dVar1") (- "-") (pointer_expression "*(double *)(param_1 + 0x1c)" (* "*") (cast_expression "(double *)(param_1 + 0x1c)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (< "<") (identifier "DAT_000804f8")) () ")")) (compound_statement "{\n        DAT_000a84cc = 0;\n        return;\n      }" ({ "{") (expression_statement "DAT_000a84cc = 0;" (assignment_expression "DAT_000a84cc = 0" (identifier "DAT_000a84cc") (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_0003e47a;" (goto "goto") (statement_identifier "LAB_0003e47a") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar2 = DAT_000a84d0 + 99;" (assignment_expression "iVar2 = DAT_000a84d0 + 99" (identifier "iVar2") (= "=") (binary_expression "DAT_000a84d0 + 99" (identifier "DAT_000a84d0") (+ "+") (number_literal "99"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;" (assignment_expression "*(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (binary_expression "DAT_000a84d0 + -1" (identifier "DAT_000a84d0") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);" (assignment_expression "uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2)" (identifier "uVar3") (= "=") (call_expression "FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2)" (identifier "FUN_0005ad30") (argument_list "(*(undefined4 *)(param_1 + 0x30),iVar2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "dVar1 = *(double *)(param_1 + 0x24);" (assignment_expression "dVar1 = *(double *)(param_1 + 0x24)" (identifier "dVar1") (= "=") (pointer_expression "*(double *)(param_1 + 0x24)" (* "*") (cast_expression "(double *)(param_1 + 0x24)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "DAT_000a84cc = 0;" (assignment_expression "DAT_000a84cc = 0" (identifier "DAT_000a84cc") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x30) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (labeled_statement "LAB_0003e47a:\n  FUN_0003db10(dVar1);" (statement_identifier "LAB_0003e47a") (: ":") (expression_statement "FUN_0003db10(dVar1);" (call_expression "FUN_0003db10(dVar1)" (identifier "FUN_0003db10") (argument_list "(dVar1)" (( "(") (identifier "dVar1") () ")"))) (; ";"))) (expression_statement "FUN_0003cc60();" (call_expression "FUN_0003cc60()" (identifier "FUN_0003cc60") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);" (assignment_expression "*(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24)" (pointer_expression "*(undefined8 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(void *progress)

{
  double var_2;
  int var_6;
  size_t n;
  void *pvVar2;
  
  var_6 = var_5;
  if (var_1 == 0) {
    var_2 = *(double *)((int)progress + 0x24);
    if (var_2 - *(double *)((int)progress + 0x1c) < var_3) {
      return;
    }
    goto LAB_0003e47a;
  }
  var_5 = var_4();
  if (var_5 == 0) {
    var_5 = 0x50;
    if (var_6 == 0x50) goto LAB_0003e4bb;
  }
  else {
    if (var_5 < 0x2d) {
      var_5 = 0x2d;
    }
    if (var_6 == var_5) {
LAB_0003e4bb:
      var_1 = 0;
      var_2 = *(double *)((int)progress + 0x24);
      if (var_2 - *(double *)((int)progress + 0x1c) < var_3) {
        var_1 = 0;
        return;
      }
      goto LAB_0003e47a;
    }
  }
  n = var_5 + 99;
  *(int *)((int)progress + 0x2c) = var_5 + -1;
  pvVar2 = var_7(*(void **)((int)progress + 0x30),n);
  var_2 = *(double *)((int)progress + 0x24);
  var_1 = 0;
  *(void **)((int)progress + 0x30) = pvVar2;
LAB_0003e47a:
  var_8((type_1 *)progress,var_2,false);
  var_9(*(char **)((int)progress + 0x30));
  *(type_2 *)((int)progress + 0x1c) = *(type_2 *)((int)progress + 0x24);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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)))))) right: (identifier))) consequence: (compound_statement (return_statement))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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)))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (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))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier))))) (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: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int param_1)

{
  double dVar1;
  int iVar2;
  undefined4 uVar3;
  
  iVar2 = DAT_000a84d0;
  if (DAT_000a84cc == 0) {
    dVar1 = *(double *)(param_1 + 0x24);
    if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {
      return;
    }
    goto LAB_0003e47a;
  }
  DAT_000a84d0 = FUN_0004d7f0();
  if (DAT_000a84d0 == 0) {
    DAT_000a84d0 = 0x50;
    if (iVar2 == 0x50) goto LAB_0003e4bb;
  }
  else {
    if (DAT_000a84d0 < 0x2d) {
      DAT_000a84d0 = 0x2d;
    }
    if (iVar2 == DAT_000a84d0) {
LAB_0003e4bb:
      DAT_000a84cc = 0;
      dVar1 = *(double *)(param_1 + 0x24);
      if (dVar1 - *(double *)(param_1 + 0x1c) < DAT_000804f8) {
        DAT_000a84cc = 0;
        return;
      }
      goto LAB_0003e47a;
    }
  }
  iVar2 = DAT_000a84d0 + 99;
  *(int *)(param_1 + 0x2c) = DAT_000a84d0 + -1;
  uVar3 = FUN_0005ad30(*(undefined4 *)(param_1 + 0x30),iVar2);
  dVar1 = *(double *)(param_1 + 0x24);
  DAT_000a84cc = 0;
  *(undefined4 *)(param_1 + 0x30) = uVar3;
LAB_0003e47a:
  FUN_0003db10(dVar1);
  FUN_0003cc60();
  *(undefined8 *)(param_1 + 0x1c) = *(undefined8 *)(param_1 + 0x24);
  return;
}

