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

void gold::Timer::get_time(TimeStats *now)

{
  long lVar1;
  clock_t cVar2;
  tms t;
  
  cVar2 = times((tms *)&t);
  lVar1 = ticks_per_sec;
  now->wall = (cVar2 * 1000) / ticks_per_sec;
  now->user = (t.tms_utime * 1000) / lVar1;
  now->sys = (t.tms_stime * 1000) / lVar1;
  return;
}



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

void FUN_001a4080(int *param_1)

{
  int iVar1;
  clock_t cVar2;
  tms local_1c;
  undefined4 uStack_c;
  
  uStack_c = 0x1a4087;
  cVar2 = times(&local_1c);
  iVar1 = DAT_003b63a4;
  param_1[2] = (cVar2 * 1000) / DAT_003b63a4;
  *param_1 = (local_1c.tms_utime * 1000) / iVar1;
  param_1[1] = (local_1c.tms_stime * 1000) / iVar1;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x20af79
SUB ESP,0x20
LEA EAX,[ESP + 0xc]
MOV ESI,dword ptr [ESP + 0x2c]
PUSH EAX
CALL 0x0002aa60
MOV ECX,dword ptr [EBX + 0x73a4]
IMUL EAX,EAX,0x3e8
CDQ
IDIV ECX
MOV dword ptr [ESI + 0x8],EAX
IMUL EAX,dword ptr [ESP + 0x10],0x3e8
CDQ
IDIV ECX
MOV dword ptr [ESI],EAX
IMUL EAX,dword ptr [ESP + 0x14],0x3e8
CDQ
IDIV ECX
MOV dword ptr [ESI + 0x4],EAX
ADD ESP,0x24
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001a4080(int *param_1)\n\n{\n  int iVar1;\n  clock_t cVar2;\n  tms local_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4087;\n  cVar2 = times(&local_1c);\n  iVar1 = DAT_003b63a4;\n  param_1[2] = (cVar2 * 1000) / DAT_003b63a4;\n  *param_1 = (local_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (local_1c.tms_stime * 1000) / iVar1;\n  return;\n}\n\n" comment (function_definition "void FUN_001a4080(int *param_1)\n\n{\n  int iVar1;\n  clock_t cVar2;\n  tms local_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4087;\n  cVar2 = times(&local_1c);\n  iVar1 = DAT_003b63a4;\n  param_1[2] = (cVar2 * 1000) / DAT_003b63a4;\n  *param_1 = (local_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (local_1c.tms_stime * 1000) / iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_001a4080(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  clock_t cVar2;\n  tms local_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4087;\n  cVar2 = times(&local_1c);\n  iVar1 = DAT_003b63a4;\n  param_1[2] = (cVar2 * 1000) / DAT_003b63a4;\n  *param_1 = (local_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (local_1c.tms_stime * 1000) / iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "clock_t cVar2;" type_identifier identifier ;) (declaration "tms local_1c;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x1a4087;" (assignment_expression "uStack_c = 0x1a4087" identifier = number_literal) ;) (expression_statement "cVar2 = times(&local_1c);" (assignment_expression "cVar2 = times(&local_1c)" identifier = (call_expression "times(&local_1c)" identifier (argument_list "(&local_1c)" ( (pointer_expression "&local_1c" & identifier) )))) ;) (expression_statement "iVar1 = DAT_003b63a4;" (assignment_expression "iVar1 = DAT_003b63a4" identifier = identifier) ;) (expression_statement "param_1[2] = (cVar2 * 1000) / DAT_003b63a4;" (assignment_expression "param_1[2] = (cVar2 * 1000) / DAT_003b63a4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "(cVar2 * 1000) / DAT_003b63a4" (parenthesized_expression "(cVar2 * 1000)" ( (binary_expression "cVar2 * 1000" identifier * number_literal) )) / identifier)) ;) (expression_statement "*param_1 = (local_1c.tms_utime * 1000) / iVar1;" (assignment_expression "*param_1 = (local_1c.tms_utime * 1000) / iVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "(local_1c.tms_utime * 1000) / iVar1" (parenthesized_expression "(local_1c.tms_utime * 1000)" ( (binary_expression "local_1c.tms_utime * 1000" (field_expression "local_1c.tms_utime" identifier . field_identifier) * number_literal) )) / identifier)) ;) (expression_statement "param_1[1] = (local_1c.tms_stime * 1000) / iVar1;" (assignment_expression "param_1[1] = (local_1c.tms_stime * 1000) / iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(local_1c.tms_stime * 1000) / iVar1" (parenthesized_expression "(local_1c.tms_stime * 1000)" ( (binary_expression "local_1c.tms_stime * 1000" (field_expression "local_1c.tms_stime" identifier . field_identifier) * number_literal) )) / identifier)) ;) (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 gold::Timer::get_time(TimeStats *now)\n\n{\n  long lVar1;\n  clock_t cVar2;\n  tms t;\n  \n  cVar2 = times((tms *)&t);\n  lVar1 = ticks_per_sec;\n  now->wall = (cVar2 * 1000) / ticks_per_sec;\n  now->user = (t.tms_utime * 1000) / lVar1;\n  now->sys = (t.tms_stime * 1000) / lVar1;\n  return;\n}\n\n" comment comment (function_definition "void gold::Timer::get_time(TimeStats *now)\n\n{\n  long lVar1;\n  clock_t cVar2;\n  tms t;\n  \n  cVar2 = times((tms *)&t);\n  lVar1 = ticks_per_sec;\n  now->wall = (cVar2 * 1000) / ticks_per_sec;\n  now->user = (t.tms_utime * 1000) / lVar1;\n  now->sys = (t.tms_stime * 1000) / lVar1;\n  return;\n}" primitive_type (ERROR "gold::Timer::" identifier : : identifier : :) (function_declarator "get_time(TimeStats *now)" identifier (parameter_list "(TimeStats *now)" ( (parameter_declaration "TimeStats *now" type_identifier (pointer_declarator "*now" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  clock_t cVar2;\n  tms t;\n  \n  cVar2 = times((tms *)&t);\n  lVar1 = ticks_per_sec;\n  now->wall = (cVar2 * 1000) / ticks_per_sec;\n  now->user = (t.tms_utime * 1000) / lVar1;\n  now->sys = (t.tms_stime * 1000) / lVar1;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "clock_t cVar2;" type_identifier identifier ;) (declaration "tms t;" type_identifier identifier ;) (expression_statement "cVar2 = times((tms *)&t);" (assignment_expression "cVar2 = times((tms *)&t)" identifier = (call_expression "times((tms *)&t)" identifier (argument_list "((tms *)&t)" ( (cast_expression "(tms *)&t" ( (type_descriptor "tms *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&t" & identifier)) )))) ;) (expression_statement "lVar1 = ticks_per_sec;" (assignment_expression "lVar1 = ticks_per_sec" identifier = identifier) ;) (expression_statement "now->wall = (cVar2 * 1000) / ticks_per_sec;" (assignment_expression "now->wall = (cVar2 * 1000) / ticks_per_sec" (field_expression "now->wall" identifier -> field_identifier) = (binary_expression "(cVar2 * 1000) / ticks_per_sec" (parenthesized_expression "(cVar2 * 1000)" ( (binary_expression "cVar2 * 1000" identifier * number_literal) )) / identifier)) ;) (expression_statement "now->user = (t.tms_utime * 1000) / lVar1;" (assignment_expression "now->user = (t.tms_utime * 1000) / lVar1" (field_expression "now->user" identifier -> field_identifier) = (binary_expression "(t.tms_utime * 1000) / lVar1" (parenthesized_expression "(t.tms_utime * 1000)" ( (binary_expression "t.tms_utime * 1000" (field_expression "t.tms_utime" identifier . field_identifier) * number_literal) )) / identifier)) ;) (expression_statement "now->sys = (t.tms_stime * 1000) / lVar1;" (assignment_expression "now->sys = (t.tms_stime * 1000) / lVar1" (field_expression "now->sys" identifier -> field_identifier) = (binary_expression "(t.tms_stime * 1000) / lVar1" (parenthesized_expression "(t.tms_stime * 1000)" ( (binary_expression "t.tms_stime * 1000" (field_expression "t.tms_stime" identifier . field_identifier) * number_literal) )) / identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001a4080(int *param_1)\n\n{\n  int iVar1;\n  clock_t cVar2;\n  tms local_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4087;\n  cVar2 = times(&local_1c);\n  iVar1 = DAT_003b63a4;\n  param_1[2] = (cVar2 * 1000) / DAT_003b63a4;\n  *param_1 = (local_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (local_1c.tms_stime * 1000) / iVar1;\n  return;\n}\n\n" (function_definition "void FUN_001a4080(int *param_1)\n\n{\n  int iVar1;\n  clock_t cVar2;\n  tms local_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4087;\n  cVar2 = times(&local_1c);\n  iVar1 = DAT_003b63a4;\n  param_1[2] = (cVar2 * 1000) / DAT_003b63a4;\n  *param_1 = (local_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (local_1c.tms_stime * 1000) / iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_001a4080(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  clock_t cVar2;\n  tms local_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4087;\n  cVar2 = times(&local_1c);\n  iVar1 = DAT_003b63a4;\n  param_1[2] = (cVar2 * 1000) / DAT_003b63a4;\n  *param_1 = (local_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (local_1c.tms_stime * 1000) / iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "clock_t cVar2;" type_identifier identifier ;) (declaration "tms local_1c;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x1a4087;" (assignment_expression "uStack_c = 0x1a4087" identifier = number_literal) ;) (expression_statement "cVar2 = times(&local_1c);" (assignment_expression "cVar2 = times(&local_1c)" identifier = (call_expression "times(&local_1c)" identifier (argument_list "(&local_1c)" ( (pointer_expression "&local_1c" & identifier) )))) ;) (expression_statement "iVar1 = DAT_003b63a4;" (assignment_expression "iVar1 = DAT_003b63a4" identifier = identifier) ;) (expression_statement "param_1[2] = (cVar2 * 1000) / DAT_003b63a4;" (assignment_expression "param_1[2] = (cVar2 * 1000) / DAT_003b63a4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "(cVar2 * 1000) / DAT_003b63a4" (parenthesized_expression "(cVar2 * 1000)" ( (binary_expression "cVar2 * 1000" identifier * number_literal) )) / identifier)) ;) (expression_statement "*param_1 = (local_1c.tms_utime * 1000) / iVar1;" (assignment_expression "*param_1 = (local_1c.tms_utime * 1000) / iVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "(local_1c.tms_utime * 1000) / iVar1" (parenthesized_expression "(local_1c.tms_utime * 1000)" ( (binary_expression "local_1c.tms_utime * 1000" (field_expression "local_1c.tms_utime" identifier . field_identifier) * number_literal) )) / identifier)) ;) (expression_statement "param_1[1] = (local_1c.tms_stime * 1000) / iVar1;" (assignment_expression "param_1[1] = (local_1c.tms_stime * 1000) / iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(local_1c.tms_stime * 1000) / iVar1" (parenthesized_expression "(local_1c.tms_stime * 1000)" ( (binary_expression "local_1c.tms_stime * 1000" (field_expression "local_1c.tms_stime" identifier . field_identifier) * number_literal) )) / identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression IDENT * LIT) )) / IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) * LIT) )) / IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) * LIT) )) / IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_001a4080(int *param_1)\n\n{\n  int iVar1;\n  clock_t cVar2;\n  tms local_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4087;\n  cVar2 = times(&local_1c);\n  iVar1 = DAT_003b63a4;\n  param_1[2] = (cVar2 * 1000) / DAT_003b63a4;\n  *param_1 = (local_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (local_1c.tms_stime * 1000) / iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001a4080(int *param_1)" (identifier "FUN_001a4080") (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  clock_t cVar2;\n  tms local_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1a4087;\n  cVar2 = times(&local_1c);\n  iVar1 = DAT_003b63a4;\n  param_1[2] = (cVar2 * 1000) / DAT_003b63a4;\n  *param_1 = (local_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (local_1c.tms_stime * 1000) / iVar1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "clock_t cVar2;" (type_identifier "clock_t") (identifier "cVar2") (; ";")) (declaration "tms local_1c;" (type_identifier "tms") (identifier "local_1c") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x1a4087;" (assignment_expression "uStack_c = 0x1a4087" (identifier "uStack_c") (= "=") (number_literal "0x1a4087")) (; ";")) (expression_statement "cVar2 = times(&local_1c);" (assignment_expression "cVar2 = times(&local_1c)" (identifier "cVar2") (= "=") (call_expression "times(&local_1c)" (identifier "times") (argument_list "(&local_1c)" (( "(") (pointer_expression "&local_1c" (& "&") (identifier "local_1c")) () ")")))) (; ";")) (expression_statement "iVar1 = DAT_003b63a4;" (assignment_expression "iVar1 = DAT_003b63a4" (identifier "iVar1") (= "=") (identifier "DAT_003b63a4")) (; ";")) (expression_statement "param_1[2] = (cVar2 * 1000) / DAT_003b63a4;" (assignment_expression "param_1[2] = (cVar2 * 1000) / DAT_003b63a4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "(cVar2 * 1000) / DAT_003b63a4" (parenthesized_expression "(cVar2 * 1000)" (( "(") (binary_expression "cVar2 * 1000" (identifier "cVar2") (* "*") (number_literal "1000")) () ")")) (/ "/") (identifier "DAT_003b63a4"))) (; ";")) (expression_statement "*param_1 = (local_1c.tms_utime * 1000) / iVar1;" (assignment_expression "*param_1 = (local_1c.tms_utime * 1000) / iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "(local_1c.tms_utime * 1000) / iVar1" (parenthesized_expression "(local_1c.tms_utime * 1000)" (( "(") (binary_expression "local_1c.tms_utime * 1000" (field_expression "local_1c.tms_utime" (identifier "local_1c") (. ".") (field_identifier "tms_utime")) (* "*") (number_literal "1000")) () ")")) (/ "/") (identifier "iVar1"))) (; ";")) (expression_statement "param_1[1] = (local_1c.tms_stime * 1000) / iVar1;" (assignment_expression "param_1[1] = (local_1c.tms_stime * 1000) / iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(local_1c.tms_stime * 1000) / iVar1" (parenthesized_expression "(local_1c.tms_stime * 1000)" (( "(") (binary_expression "local_1c.tms_stime * 1000" (field_expression "local_1c.tms_stime" (identifier "local_1c") (. ".") (field_identifier "tms_stime")) (* "*") (number_literal "1000")) () ")")) (/ "/") (identifier "iVar1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void gold::Timer::function_1(type_1 *now)

{
  long var_4;
  type_2 var_2;
  type_3 t;
  
  var_2 = var_1((type_3 *)&t);
  var_4 = var_3;
  now->wall = (var_2 * 1000) / var_3;
  now->user = (t.tms_utime * 1000) / var_4;
  now->sys = (t.tms_stime * 1000) / var_4;
  return;
}


(translation_unit (function_definition type: (primitive_type) 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)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (identifier)))) (return_statement))))

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

void MASKED(int *param_1)

{
  int iVar1;
  clock_t cVar2;
  tms local_1c;
  undefined4 uStack_c;
  
  uStack_c = 0x1a4087;
  cVar2 = times(&local_1c);
  iVar1 = DAT_003b63a4;
  param_1[2] = (cVar2 * 1000) / DAT_003b63a4;
  *param_1 = (local_1c.tms_utime * 1000) / iVar1;
  param_1[1] = (local_1c.tms_stime * 1000) / iVar1;
  return;
}

