
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void start(Timer * this) */

void __thiscall gold::Timer::start(Timer *this)

{
  long lVar1;
  clock_t cVar2;
  tms tStack_1c;
  undefined4 uStack_c;
  
  uStack_c = 0x160737;
  cVar2 = times(&tStack_1c);
  lVar1 = ticks_per_sec;
  (this->start_time_).wall = (cVar2 * 1000) / ticks_per_sec;
  (this->start_time_).user = (tStack_1c.tms_utime * 1000) / lVar1;
  (this->start_time_).sys = (tStack_1c.tms_stime * 1000) / lVar1;
  return;
}



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

void thunk_FUN_00160730(int *param_1)

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


JMP 0x00160730
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid thunk_FUN_00160730(int *param_1)\n\n{\n  int iVar1;\n  clock_t cVar2;\n  tms tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  iVar1 = DAT_00346364;\n  param_1[2] = (cVar2 * 1000) / DAT_00346364;\n  *param_1 = (tStack_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;\n  return;\n}\n\n" comment (function_definition "void thunk_FUN_00160730(int *param_1)\n\n{\n  int iVar1;\n  clock_t cVar2;\n  tms tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  iVar1 = DAT_00346364;\n  param_1[2] = (cVar2 * 1000) / DAT_00346364;\n  *param_1 = (tStack_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;\n  return;\n}" primitive_type (function_declarator "thunk_FUN_00160730(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 tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  iVar1 = DAT_00346364;\n  param_1[2] = (cVar2 * 1000) / DAT_00346364;\n  *param_1 = (tStack_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "clock_t cVar2;" type_identifier identifier ;) (declaration "tms tStack_1c;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x160737;" (assignment_expression "uStack_c = 0x160737" identifier = number_literal) ;) (expression_statement "cVar2 = times(&tStack_1c);" (assignment_expression "cVar2 = times(&tStack_1c)" identifier = (call_expression "times(&tStack_1c)" identifier (argument_list "(&tStack_1c)" ( (pointer_expression "&tStack_1c" & identifier) )))) ;) (expression_statement "iVar1 = DAT_00346364;" (assignment_expression "iVar1 = DAT_00346364" identifier = identifier) ;) (expression_statement "param_1[2] = (cVar2 * 1000) / DAT_00346364;" (assignment_expression "param_1[2] = (cVar2 * 1000) / DAT_00346364" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "(cVar2 * 1000) / DAT_00346364" (parenthesized_expression "(cVar2 * 1000)" ( (binary_expression "cVar2 * 1000" identifier * number_literal) )) / identifier)) ;) (expression_statement "*param_1 = (tStack_1c.tms_utime * 1000) / iVar1;" (assignment_expression "*param_1 = (tStack_1c.tms_utime * 1000) / iVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "(tStack_1c.tms_utime * 1000) / iVar1" (parenthesized_expression "(tStack_1c.tms_utime * 1000)" ( (binary_expression "tStack_1c.tms_utime * 1000" (field_expression "tStack_1c.tms_utime" identifier . field_identifier) * number_literal) )) / identifier)) ;) (expression_statement "param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;" (assignment_expression "param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(tStack_1c.tms_stime * 1000) / iVar1" (parenthesized_expression "(tStack_1c.tms_stime * 1000)" ( (binary_expression "tStack_1c.tms_stime * 1000" (field_expression "tStack_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/* DWARF original prototype: void start(Timer * this) */\n\nvoid __thiscall gold::Timer::start(Timer *this)\n\n{\n  long lVar1;\n  clock_t cVar2;\n  tms tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  lVar1 = ticks_per_sec;\n  (this->start_time_).wall = (cVar2 * 1000) / ticks_per_sec;\n  (this->start_time_).user = (tStack_1c.tms_utime * 1000) / lVar1;\n  (this->start_time_).sys = (tStack_1c.tms_stime * 1000) / lVar1;\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Timer::start(Timer *this)\n\n{\n  long lVar1;\n  clock_t cVar2;\n  tms tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  lVar1 = ticks_per_sec;\n  (this->start_time_).wall = (cVar2 * 1000) / ticks_per_sec;\n  (this->start_time_).user = (tStack_1c.tms_utime * 1000) / lVar1;\n  (this->start_time_).sys = (tStack_1c.tms_stime * 1000) / lVar1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Timer::" identifier : : identifier : :) (function_declarator "start(Timer *this)" identifier (parameter_list "(Timer *this)" ( (parameter_declaration "Timer *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  clock_t cVar2;\n  tms tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  lVar1 = ticks_per_sec;\n  (this->start_time_).wall = (cVar2 * 1000) / ticks_per_sec;\n  (this->start_time_).user = (tStack_1c.tms_utime * 1000) / lVar1;\n  (this->start_time_).sys = (tStack_1c.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 tStack_1c;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x160737;" (assignment_expression "uStack_c = 0x160737" identifier = number_literal) ;) (expression_statement "cVar2 = times(&tStack_1c);" (assignment_expression "cVar2 = times(&tStack_1c)" identifier = (call_expression "times(&tStack_1c)" identifier (argument_list "(&tStack_1c)" ( (pointer_expression "&tStack_1c" & identifier) )))) ;) (expression_statement "lVar1 = ticks_per_sec;" (assignment_expression "lVar1 = ticks_per_sec" identifier = identifier) ;) (expression_statement "(this->start_time_).wall = (cVar2 * 1000) / ticks_per_sec;" (assignment_expression "(this->start_time_).wall = (cVar2 * 1000) / ticks_per_sec" (field_expression "(this->start_time_).wall" (parenthesized_expression "(this->start_time_)" ( (field_expression "this->start_time_" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(cVar2 * 1000) / ticks_per_sec" (parenthesized_expression "(cVar2 * 1000)" ( (binary_expression "cVar2 * 1000" identifier * number_literal) )) / identifier)) ;) (expression_statement "(this->start_time_).user = (tStack_1c.tms_utime * 1000) / lVar1;" (assignment_expression "(this->start_time_).user = (tStack_1c.tms_utime * 1000) / lVar1" (field_expression "(this->start_time_).user" (parenthesized_expression "(this->start_time_)" ( (field_expression "this->start_time_" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(tStack_1c.tms_utime * 1000) / lVar1" (parenthesized_expression "(tStack_1c.tms_utime * 1000)" ( (binary_expression "tStack_1c.tms_utime * 1000" (field_expression "tStack_1c.tms_utime" identifier . field_identifier) * number_literal) )) / identifier)) ;) (expression_statement "(this->start_time_).sys = (tStack_1c.tms_stime * 1000) / lVar1;" (assignment_expression "(this->start_time_).sys = (tStack_1c.tms_stime * 1000) / lVar1" (field_expression "(this->start_time_).sys" (parenthesized_expression "(this->start_time_)" ( (field_expression "this->start_time_" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(tStack_1c.tms_stime * 1000) / lVar1" (parenthesized_expression "(tStack_1c.tms_stime * 1000)" ( (binary_expression "tStack_1c.tms_stime * 1000" (field_expression "tStack_1c.tms_stime" identifier . field_identifier) * number_literal) )) / identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void thunk_FUN_00160730(int *param_1)\n\n{\n  int iVar1;\n  clock_t cVar2;\n  tms tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  iVar1 = DAT_00346364;\n  param_1[2] = (cVar2 * 1000) / DAT_00346364;\n  *param_1 = (tStack_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;\n  return;\n}\n\n" (function_definition "void thunk_FUN_00160730(int *param_1)\n\n{\n  int iVar1;\n  clock_t cVar2;\n  tms tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  iVar1 = DAT_00346364;\n  param_1[2] = (cVar2 * 1000) / DAT_00346364;\n  *param_1 = (tStack_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;\n  return;\n}" primitive_type (function_declarator "thunk_FUN_00160730(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 tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  iVar1 = DAT_00346364;\n  param_1[2] = (cVar2 * 1000) / DAT_00346364;\n  *param_1 = (tStack_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "clock_t cVar2;" type_identifier identifier ;) (declaration "tms tStack_1c;" type_identifier identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x160737;" (assignment_expression "uStack_c = 0x160737" identifier = number_literal) ;) (expression_statement "cVar2 = times(&tStack_1c);" (assignment_expression "cVar2 = times(&tStack_1c)" identifier = (call_expression "times(&tStack_1c)" identifier (argument_list "(&tStack_1c)" ( (pointer_expression "&tStack_1c" & identifier) )))) ;) (expression_statement "iVar1 = DAT_00346364;" (assignment_expression "iVar1 = DAT_00346364" identifier = identifier) ;) (expression_statement "param_1[2] = (cVar2 * 1000) / DAT_00346364;" (assignment_expression "param_1[2] = (cVar2 * 1000) / DAT_00346364" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "(cVar2 * 1000) / DAT_00346364" (parenthesized_expression "(cVar2 * 1000)" ( (binary_expression "cVar2 * 1000" identifier * number_literal) )) / identifier)) ;) (expression_statement "*param_1 = (tStack_1c.tms_utime * 1000) / iVar1;" (assignment_expression "*param_1 = (tStack_1c.tms_utime * 1000) / iVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "(tStack_1c.tms_utime * 1000) / iVar1" (parenthesized_expression "(tStack_1c.tms_utime * 1000)" ( (binary_expression "tStack_1c.tms_utime * 1000" (field_expression "tStack_1c.tms_utime" identifier . field_identifier) * number_literal) )) / identifier)) ;) (expression_statement "param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;" (assignment_expression "param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(tStack_1c.tms_stime * 1000) / iVar1" (parenthesized_expression "(tStack_1c.tms_stime * 1000)" ( (binary_expression "tStack_1c.tms_stime * 1000" (field_expression "tStack_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 thunk_FUN_00160730(int *param_1)\n\n{\n  int iVar1;\n  clock_t cVar2;\n  tms tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  iVar1 = DAT_00346364;\n  param_1[2] = (cVar2 * 1000) / DAT_00346364;\n  *param_1 = (tStack_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "thunk_FUN_00160730(int *param_1)" (identifier "thunk_FUN_00160730") (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 tStack_1c;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x160737;\n  cVar2 = times(&tStack_1c);\n  iVar1 = DAT_00346364;\n  param_1[2] = (cVar2 * 1000) / DAT_00346364;\n  *param_1 = (tStack_1c.tms_utime * 1000) / iVar1;\n  param_1[1] = (tStack_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 tStack_1c;" (type_identifier "tms") (identifier "tStack_1c") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x160737;" (assignment_expression "uStack_c = 0x160737" (identifier "uStack_c") (= "=") (number_literal "0x160737")) (; ";")) (expression_statement "cVar2 = times(&tStack_1c);" (assignment_expression "cVar2 = times(&tStack_1c)" (identifier "cVar2") (= "=") (call_expression "times(&tStack_1c)" (identifier "times") (argument_list "(&tStack_1c)" (( "(") (pointer_expression "&tStack_1c" (& "&") (identifier "tStack_1c")) () ")")))) (; ";")) (expression_statement "iVar1 = DAT_00346364;" (assignment_expression "iVar1 = DAT_00346364" (identifier "iVar1") (= "=") (identifier "DAT_00346364")) (; ";")) (expression_statement "param_1[2] = (cVar2 * 1000) / DAT_00346364;" (assignment_expression "param_1[2] = (cVar2 * 1000) / DAT_00346364" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "(cVar2 * 1000) / DAT_00346364" (parenthesized_expression "(cVar2 * 1000)" (( "(") (binary_expression "cVar2 * 1000" (identifier "cVar2") (* "*") (number_literal "1000")) () ")")) (/ "/") (identifier "DAT_00346364"))) (; ";")) (expression_statement "*param_1 = (tStack_1c.tms_utime * 1000) / iVar1;" (assignment_expression "*param_1 = (tStack_1c.tms_utime * 1000) / iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "(tStack_1c.tms_utime * 1000) / iVar1" (parenthesized_expression "(tStack_1c.tms_utime * 1000)" (( "(") (binary_expression "tStack_1c.tms_utime * 1000" (field_expression "tStack_1c.tms_utime" (identifier "tStack_1c") (. ".") (field_identifier "tms_utime")) (* "*") (number_literal "1000")) () ")")) (/ "/") (identifier "iVar1"))) (; ";")) (expression_statement "param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;" (assignment_expression "param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(tStack_1c.tms_stime * 1000) / iVar1" (parenthesized_expression "(tStack_1c.tms_stime * 1000)" (( "(") (binary_expression "tStack_1c.tms_stime * 1000" (field_expression "tStack_1c.tms_stime" (identifier "tStack_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 */
/* DWARF original prototype: void start(Timer * this) */

void __thiscall gold::type_1::function_1(type_1 *this)

{
  long var_4;
  type_2 var_2;
  type_3 tStack_1c;
  type_4 uStack_c;
  
  uStack_c = 0x160737;
  var_2 = var_1(&tStack_1c);
  var_4 = var_3;
  (this->start_time_).wall = (var_2 * 1000) / var_3;
  (this->start_time_).user = (tStack_1c.tms_utime * 1000) / var_4;
  (this->start_time_).sys = (tStack_1c.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 tStack_1c;
  undefined4 uStack_c;
  
  uStack_c = 0x160737;
  cVar2 = times(&tStack_1c);
  iVar1 = DAT_00346364;
  param_1[2] = (cVar2 * 1000) / DAT_00346364;
  *param_1 = (tStack_1c.tms_utime * 1000) / iVar1;
  param_1[1] = (tStack_1c.tms_stime * 1000) / iVar1;
  return;
}

