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

void __regparm3 pinger_schedule(Pinger pinger)

{
  ulong uVar1;
  
  if (pinger->interval == 0) {
    pinger->pending = 0;
  }
  else {
    uVar1 = schedule_timer(pinger->interval * 1000,pinger_timer,pinger);
    if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {
      pinger->next = uVar1;
      uVar1 = timing_last_clock();
      pinger->pending = 1;
      pinger->when_set = uVar1;
      return;
    }
  }
  return;
}



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

void __regparm3 FUN_0002e1f0(int *param_1)

{
  int iVar1;
  
  if (*param_1 == 0) {
    param_1[1] = 0;
  }
  else {
    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);
    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {
      param_1[3] = iVar1;
      iVar1 = FUN_000465c0();
      param_1[1] = 1;
      param_1[2] = iVar1;
      return;
    }
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDX,dword ptr [EAX]
CALL 0x0001b410
ADD EBX,0x825aa
TEST EDX,EDX
JNZ 0x0002e210
MOV dword ptr [EAX + 0x4],0x0
POP EBX
POP ESI
POP EDI
RET
IMUL EDX,EDX,0x3e8
SUB ESP,0x4
MOV ESI,EAX
PUSH EAX
LEA EAX,[EBX + 0xfff7dabc]
PUSH EAX
PUSH EDX
CALL 0x000464d0
MOV EDX,dword ptr [ESI + 0x4]
ADD ESP,0x10
TEST EDX,EDX
JZ 0x0002e243
MOV EDX,dword ptr [ESI + 0x8]
MOV EDI,dword ptr [ESI + 0xc]
MOV ECX,EAX
SUB ECX,EDX
SUB EDI,EDX
CMP ECX,EDI
JNC 0x0002e20b
MOV dword ptr [ESI + 0xc],EAX
CALL 0x000465c0
MOV dword ptr [ESI + 0x4],0x1
MOV dword ptr [ESI + 0x8],EAX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0002e1f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0002e1f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002e1f0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    param_1[1] = 0;\n  }" { (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }" { (expression_statement "iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);" (assignment_expression "iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1)" identifier = (call_expression "FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1)" identifier (argument_list "(*param_1 * 1000,FUN_0002e260,param_1)" ( (binary_expression "*param_1 * 1000" (pointer_expression "*param_1" * identifier) * number_literal) , identifier , identifier )))) ;) (if_statement "if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }" if (parenthesized_expression "((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])))" ( (binary_expression "(param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) || (parenthesized_expression "((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" ( (binary_expression "(uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])" (call_expression "(uint)(iVar1 - param_1[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 - param_1[2])" ( (binary_expression "iVar1 - param_1[2]" identifier - (subscript_expression "param_1[2]" identifier [ number_literal ])) ))) < (call_expression "(uint)(param_1[3] - param_1[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[3] - param_1[2])" ( (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" identifier [ number_literal ]) - (subscript_expression "param_1[2]" identifier [ number_literal ])) )))) ))) )) (compound_statement "{\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }" { (expression_statement "param_1[3] = iVar1;" (assignment_expression "param_1[3] = iVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = FUN_000465c0();" (assignment_expression "iVar1 = FUN_000465c0()" identifier = (call_expression "FUN_000465c0()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 pinger_schedule(Pinger pinger)\n\n{\n  ulong uVar1;\n  \n  if (pinger->interval == 0) {\n    pinger->pending = 0;\n  }\n  else {\n    uVar1 = schedule_timer(pinger->interval * 1000,pinger_timer,pinger);\n    if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n      pinger->next = uVar1;\n      uVar1 = timing_last_clock();\n      pinger->pending = 1;\n      pinger->when_set = uVar1;\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 pinger_schedule(Pinger pinger)\n\n{\n  ulong uVar1;\n  \n  if (pinger->interval == 0) {\n    pinger->pending = 0;\n  }\n  else {\n    uVar1 = schedule_timer(pinger->interval * 1000,pinger_timer,pinger);\n    if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n      pinger->next = uVar1;\n      uVar1 = timing_last_clock();\n      pinger->pending = 1;\n      pinger->when_set = uVar1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "pinger_schedule(Pinger pinger)" identifier (parameter_list "(Pinger pinger)" ( (parameter_declaration "Pinger pinger" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  \n  if (pinger->interval == 0) {\n    pinger->pending = 0;\n  }\n  else {\n    uVar1 = schedule_timer(pinger->interval * 1000,pinger_timer,pinger);\n    if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n      pinger->next = uVar1;\n      uVar1 = timing_last_clock();\n      pinger->pending = 1;\n      pinger->when_set = uVar1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (if_statement "if (pinger->interval == 0) {\n    pinger->pending = 0;\n  }\n  else {\n    uVar1 = schedule_timer(pinger->interval * 1000,pinger_timer,pinger);\n    if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n      pinger->next = uVar1;\n      uVar1 = timing_last_clock();\n      pinger->pending = 1;\n      pinger->when_set = uVar1;\n      return;\n    }\n  }" if (parenthesized_expression "(pinger->interval == 0)" ( (binary_expression "pinger->interval == 0" (field_expression "pinger->interval" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    pinger->pending = 0;\n  }" { (expression_statement "pinger->pending = 0;" (assignment_expression "pinger->pending = 0" (field_expression "pinger->pending" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n    uVar1 = schedule_timer(pinger->interval * 1000,pinger_timer,pinger);\n    if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n      pinger->next = uVar1;\n      uVar1 = timing_last_clock();\n      pinger->pending = 1;\n      pinger->when_set = uVar1;\n      return;\n    }\n  }" else (compound_statement "{\n    uVar1 = schedule_timer(pinger->interval * 1000,pinger_timer,pinger);\n    if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n      pinger->next = uVar1;\n      uVar1 = timing_last_clock();\n      pinger->pending = 1;\n      pinger->when_set = uVar1;\n      return;\n    }\n  }" { (expression_statement "uVar1 = schedule_timer(pinger->interval * 1000,pinger_timer,pinger);" (assignment_expression "uVar1 = schedule_timer(pinger->interval * 1000,pinger_timer,pinger)" identifier = (call_expression "schedule_timer(pinger->interval * 1000,pinger_timer,pinger)" identifier (argument_list "(pinger->interval * 1000,pinger_timer,pinger)" ( (binary_expression "pinger->interval * 1000" (field_expression "pinger->interval" identifier -> field_identifier) * number_literal) , identifier , identifier )))) ;) (if_statement "if ((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)) {\n      pinger->next = uVar1;\n      uVar1 = timing_last_clock();\n      pinger->pending = 1;\n      pinger->when_set = uVar1;\n      return;\n    }" if (parenthesized_expression "((pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set))" ( (binary_expression "(pinger->pending == 0) || (uVar1 - pinger->when_set < pinger->next - pinger->when_set)" (parenthesized_expression "(pinger->pending == 0)" ( (binary_expression "pinger->pending == 0" (field_expression "pinger->pending" identifier -> field_identifier) == number_literal) )) || (parenthesized_expression "(uVar1 - pinger->when_set < pinger->next - pinger->when_set)" ( (binary_expression "uVar1 - pinger->when_set < pinger->next - pinger->when_set" (binary_expression "uVar1 - pinger->when_set" identifier - (field_expression "pinger->when_set" identifier -> field_identifier)) < (binary_expression "pinger->next - pinger->when_set" (field_expression "pinger->next" identifier -> field_identifier) - (field_expression "pinger->when_set" identifier -> field_identifier))) ))) )) (compound_statement "{\n      pinger->next = uVar1;\n      uVar1 = timing_last_clock();\n      pinger->pending = 1;\n      pinger->when_set = uVar1;\n      return;\n    }" { (expression_statement "pinger->next = uVar1;" (assignment_expression "pinger->next = uVar1" (field_expression "pinger->next" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar1 = timing_last_clock();" (assignment_expression "uVar1 = timing_last_clock()" identifier = (call_expression "timing_last_clock()" identifier (argument_list "()" ( )))) ;) (expression_statement "pinger->pending = 1;" (assignment_expression "pinger->pending = 1" (field_expression "pinger->pending" identifier -> field_identifier) = number_literal) ;) (expression_statement "pinger->when_set = uVar1;" (assignment_expression "pinger->when_set = uVar1" (field_expression "pinger->when_set" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0002e1f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002e1f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002e1f0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    param_1[1] = 0;\n  }" { (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }" { (expression_statement "iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);" (assignment_expression "iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1)" identifier = (call_expression "FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1)" identifier (argument_list "(*param_1 * 1000,FUN_0002e260,param_1)" ( (binary_expression "*param_1 * 1000" (pointer_expression "*param_1" * identifier) * number_literal) , identifier , identifier )))) ;) (if_statement "if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }" if (parenthesized_expression "((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])))" ( (binary_expression "(param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) || (parenthesized_expression "((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" ( (binary_expression "(uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])" (call_expression "(uint)(iVar1 - param_1[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 - param_1[2])" ( (binary_expression "iVar1 - param_1[2]" identifier - (subscript_expression "param_1[2]" identifier [ number_literal ])) ))) < (call_expression "(uint)(param_1[3] - param_1[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[3] - param_1[2])" ( (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" identifier [ number_literal ]) - (subscript_expression "param_1[2]" identifier [ number_literal ])) )))) ))) )) (compound_statement "{\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }" { (expression_statement "param_1[3] = iVar1;" (assignment_expression "param_1[3] = iVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = FUN_000465c0();" (assignment_expression "iVar1 = FUN_000465c0()" identifier = (call_expression "FUN_000465c0()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * IDENT) * LIT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) || (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - (subscript_expression IDENT [ LIT ])) ))) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) )))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) }))) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0002e1f0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002e1f0(int *param_1)" (identifier "FUN_0002e1f0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*param_1 == 0) {\n    param_1[1] = 0;\n  }\n  else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_1[1] = 0;\n  }" ({ "{") (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);\n    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);" (assignment_expression "iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1)" (identifier "FUN_000464d0") (argument_list "(*param_1 * 1000,FUN_0002e260,param_1)" (( "(") (binary_expression "*param_1 * 1000" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "1000")) (, ",") (identifier "FUN_0002e260") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }" (if "if") (parenthesized_expression "((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])))" (( "(") (binary_expression "(param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" (parenthesized_expression "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))" (( "(") (binary_expression "(uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2])" (call_expression "(uint)(iVar1 - param_1[2])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 - param_1[2])" (( "(") (binary_expression "iVar1 - param_1[2]" (identifier "iVar1") (- "-") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) () ")"))) (< "<") (call_expression "(uint)(param_1[3] - param_1[2])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[3] - param_1[2])" (( "(") (binary_expression "param_1[3] - param_1[2]" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (- "-") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) () ")")))) () ")"))) () ")")) (compound_statement "{\n      param_1[3] = iVar1;\n      iVar1 = FUN_000465c0();\n      param_1[1] = 1;\n      param_1[2] = iVar1;\n      return;\n    }" ({ "{") (expression_statement "param_1[3] = iVar1;" (assignment_expression "param_1[3] = iVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar1 = FUN_000465c0();" (assignment_expression "iVar1 = FUN_000465c0()" (identifier "iVar1") (= "=") (call_expression "FUN_000465c0()" (identifier "FUN_000465c0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 pinger)

{
  type_2 var_2;
  
  if (pinger->interval == 0) {
    pinger->pending = 0;
  }
  else {
    var_2 = var_1(pinger->interval * 1000,pinger_timer,pinger);
    if ((pinger->pending == 0) || (var_2 - pinger->when_set < pinger->next - pinger->when_set)) {
      pinger->next = var_2;
      var_2 = var_3();
      pinger->pending = 1;
      pinger->when_set = var_2;
      return;
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement)))))) (return_statement))))

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

void __regparm3 MASKED(int *param_1)

{
  int iVar1;
  
  if (*param_1 == 0) {
    param_1[1] = 0;
  }
  else {
    iVar1 = FUN_000464d0(*param_1 * 1000,FUN_0002e260,param_1);
    if ((param_1[1] == 0) || ((uint)(iVar1 - param_1[2]) < (uint)(param_1[3] - param_1[2]))) {
      param_1[3] = iVar1;
      iVar1 = FUN_000465c0();
      param_1[1] = 1;
      param_1[2] = iVar1;
      return;
    }
  }
  return;
}

