
void gettime(timespec *ts)

{
  int iVar1;
  int iVar2;
  undefined *puVar3;
  timeval tv;
  
  puVar3 = PTR___stack_chk_guard_000495fc;
  iVar1 = *(int *)PTR___stack_chk_guard_000495fc;
  iVar2 = (*(code *)PTR_clock_gettime_000495f4)(0,ts);
  if (iVar2 != 0) {
    (*(code *)PTR_gettimeofday_000495d8)(&tv,0);
    ts->tv_sec = tv.tv_sec;
    ts->tv_nsec = tv.tv_usec * 1000;
  }
  if (iVar1 == *(int *)puVar3) {
    return;
  }
  puVar3 = PTR___stack_chk_fail_000495d0;
  (*(code *)PTR___stack_chk_fail_000495d0)();
  iVar1 = (**(code **)(puVar3 + 0x2939c))();
  if (iVar1 == 0) {
    return;
  }
  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);
  if (iVar2 != 0) {
    (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);
    return;
  }
  return;
}



uint gettime(undefined4 *param_1)

{
  int iVar1;
  int iVar2;
  undefined *puVar3;
  undefined4 local_1c;
  int local_18;
  uint local_14;
  
  puVar3 = PTR___stack_chk_guard_000495fc;
  local_14 = *(uint *)PTR___stack_chk_guard_000495fc;
  iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);
  if (iVar1 != 0) {
    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);
    *param_1 = local_1c;
    param_1[1] = local_18 * 1000;
  }
  if (local_14 == *(uint *)puVar3) {
    return *(uint *)puVar3;
  }
  puVar3 = PTR___stack_chk_fail_000495d0;
  (*(code *)PTR___stack_chk_fail_000495d0)();
  iVar1 = (**(code **)(puVar3 + 0x2939c))();
  if (iVar1 == 0) {
    return 1;
  }
  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);
  if (iVar2 != 0) {
    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);
    return (uint)(iVar1 != 0);
  }
  return 0;
}


lui gp,0x3
addiu gp,gp,0x1150
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x7bec(gp)
sw s0,0x2c(sp)
lw s0,-0x7be4(gp)
sw s1,0x30(sp)
or s1,a0,zero
or a0,zero,zero
sw gp,0x10(sp)
sw ra,0x34(sp)
or a1,s1,zero
lw v0,0x0(s0)
sw v0,0x24(sp)
jalr t9
_nop
beq v0,zero,0x00020108
_lw gp,0x10(sp)
lw t9,-0x7c08(gp)
or a1,zero,zero
jalr t9
_addiu a0,sp,0x1c
li v1,0x3e8
lw v0,0x20(sp)
lw gp,0x10(sp)
mul v0,v0,v1
lw v1,0x1c(sp)
sw v1,0x0(s1)
sw v0,0x4(s1)
lw v1,0x24(sp)
lw v0,0x0(s0)
bne v1,v0,0x00020128
_lw ra,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7c10(gp)
jalr t9
_nop
nop
nop
nop
(translation_unit "uint gettime(undefined4 *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_1c;\n  int local_18;\n  uint local_14;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  local_14 = *(uint *)PTR___stack_chk_guard_000495fc;\n  iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);\n  if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }\n  if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return 1;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}\n\n" (function_definition "uint gettime(undefined4 *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_1c;\n  int local_18;\n  uint local_14;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  local_14 = *(uint *)PTR___stack_chk_guard_000495fc;\n  iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);\n  if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }\n  if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return 1;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}" type_identifier (function_declarator "gettime(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_1c;\n  int local_18;\n  uint local_14;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  local_14 = *(uint *)PTR___stack_chk_guard_000495fc;\n  iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);\n  if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }\n  if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return 1;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "uint local_14;" type_identifier identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000495fc;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000495fc" identifier = identifier) ;) (expression_statement "local_14 = *(uint *)PTR___stack_chk_guard_000495fc;" (assignment_expression "local_14 = *(uint *)PTR___stack_chk_guard_000495fc" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_000495fc" * (cast_expression "(uint *)PTR___stack_chk_guard_000495fc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);" (assignment_expression "iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1)" identifier = (call_expression "(*(code *)PTR_clock_gettime_000495f4)(0,param_1)" (parenthesized_expression "(*(code *)PTR_clock_gettime_000495f4)" ( (pointer_expression "*(code *)PTR_clock_gettime_000495f4" * (cast_expression "(code *)PTR_clock_gettime_000495f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,param_1)" ( number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }" { (expression_statement "(*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);" (call_expression "(*(code *)PTR_gettimeofday_000495d8)(&local_1c,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_000495d8)" ( (pointer_expression "*(code *)PTR_gettimeofday_000495d8" * (cast_expression "(code *)PTR_gettimeofday_000495d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_1c,0)" ( (pointer_expression "&local_1c" & identifier) , number_literal ))) ;) (expression_statement "*param_1 = local_1c;" (assignment_expression "*param_1 = local_1c" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_18 * 1000;" (assignment_expression "param_1[1] = local_18 * 1000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "local_18 * 1000" identifier * number_literal)) ;) })) (if_statement "if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }" if (parenthesized_expression "(local_14 == *(uint *)puVar3)" ( (binary_expression "local_14 == *(uint *)puVar3" identifier == (pointer_expression "*(uint *)puVar3" * (cast_expression "(uint *)puVar3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(uint *)puVar3;\n  }" { (return_statement "return *(uint *)puVar3;" return (pointer_expression "*(uint *)puVar3" * (cast_expression "(uint *)puVar3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_000495d0;" (assignment_expression "puVar3 = PTR___stack_chk_fail_000495d0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000495d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000495d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000495d0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000495d0" * (cast_expression "(code *)PTR___stack_chk_fail_000495d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(puVar3 + 0x2939c))();" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x2939c))()" identifier = (call_expression "(**(code **)(puVar3 + 0x2939c))()" (parenthesized_expression "(**(code **)(puVar3 + 0x2939c))" ( (pointer_expression "**(code **)(puVar3 + 0x2939c)" * (pointer_expression "*(code **)(puVar3 + 0x2939c)" * (cast_expression "(code **)(puVar3 + 0x2939c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x2939c)" ( (binary_expression "puVar3 + 0x2939c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    return 1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);" (assignment_expression "iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" identifier = (call_expression "(**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" (parenthesized_expression "(**(code **)(puVar3 + 0x294f8))" ( (pointer_expression "**(code **)(puVar3 + 0x294f8)" * (pointer_expression "*(code **)(puVar3 + 0x294f8)" * (cast_expression "(code **)(puVar3 + 0x294f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x294f8)" ( (binary_expression "puVar3 + 0x294f8" identifier + number_literal) ))))) )) (argument_list "(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" ( identifier , (binary_expression "*(int *)(puVar3 + 0x290d8) + 0x6634" (pointer_expression "*(int *)(puVar3 + 0x290d8)" * (cast_expression "(int *)(puVar3 + 0x290d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x290d8)" ( (binary_expression "puVar3 + 0x290d8" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }" { (expression_statement "iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" identifier = (call_expression "(**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" (parenthesized_expression "(**(code **)(puVar3 + 0x294f8))" ( (pointer_expression "**(code **)(puVar3 + 0x294f8)" * (pointer_expression "*(code **)(puVar3 + 0x294f8)" * (cast_expression "(code **)(puVar3 + 0x294f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x294f8)" ( (binary_expression "puVar3 + 0x294f8" identifier + number_literal) ))))) )) (argument_list "(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" ( identifier , (binary_expression "*(int *)(puVar3 + 0x290d8) + 0x6638" (pointer_expression "*(int *)(puVar3 + 0x290d8)" * (cast_expression "(int *)(puVar3 + 0x290d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x290d8)" ( (binary_expression "puVar3 + 0x290d8" identifier + number_literal) )))) + number_literal) )))) ;) (return_statement "return (uint)(iVar1 != 0);" return (call_expression "(uint)(iVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void gettime(timespec *ts)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  timeval tv;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  iVar1 = *(int *)PTR___stack_chk_guard_000495fc;\n  iVar2 = (*(code *)PTR_clock_gettime_000495f4)(0,ts);\n  if (iVar2 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&tv,0);\n    ts->tv_sec = tv.tv_sec;\n    ts->tv_nsec = tv.tv_usec * 1000;\n  }\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void gettime(timespec *ts)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  timeval tv;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  iVar1 = *(int *)PTR___stack_chk_guard_000495fc;\n  iVar2 = (*(code *)PTR_clock_gettime_000495f4)(0,ts);\n  if (iVar2 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&tv,0);\n    ts->tv_sec = tv.tv_sec;\n    ts->tv_nsec = tv.tv_usec * 1000;\n  }\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "gettime(timespec *ts)" identifier (parameter_list "(timespec *ts)" ( (parameter_declaration "timespec *ts" type_identifier (pointer_declarator "*ts" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  timeval tv;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  iVar1 = *(int *)PTR___stack_chk_guard_000495fc;\n  iVar2 = (*(code *)PTR_clock_gettime_000495f4)(0,ts);\n  if (iVar2 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&tv,0);\n    ts->tv_sec = tv.tv_sec;\n    ts->tv_nsec = tv.tv_usec * 1000;\n  }\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "timeval tv;" type_identifier identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000495fc;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000495fc" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_000495fc;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_000495fc" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000495fc" * (cast_expression "(int *)PTR___stack_chk_guard_000495fc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_clock_gettime_000495f4)(0,ts);" (assignment_expression "iVar2 = (*(code *)PTR_clock_gettime_000495f4)(0,ts)" identifier = (call_expression "(*(code *)PTR_clock_gettime_000495f4)(0,ts)" (parenthesized_expression "(*(code *)PTR_clock_gettime_000495f4)" ( (pointer_expression "*(code *)PTR_clock_gettime_000495f4" * (cast_expression "(code *)PTR_clock_gettime_000495f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,ts)" ( number_literal , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&tv,0);\n    ts->tv_sec = tv.tv_sec;\n    ts->tv_nsec = tv.tv_usec * 1000;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_gettimeofday_000495d8)(&tv,0);\n    ts->tv_sec = tv.tv_sec;\n    ts->tv_nsec = tv.tv_usec * 1000;\n  }" { (expression_statement "(*(code *)PTR_gettimeofday_000495d8)(&tv,0);" (call_expression "(*(code *)PTR_gettimeofday_000495d8)(&tv,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_000495d8)" ( (pointer_expression "*(code *)PTR_gettimeofday_000495d8" * (cast_expression "(code *)PTR_gettimeofday_000495d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&tv,0)" ( (pointer_expression "&tv" & identifier) , number_literal ))) ;) (expression_statement "ts->tv_sec = tv.tv_sec;" (assignment_expression "ts->tv_sec = tv.tv_sec" (field_expression "ts->tv_sec" identifier -> field_identifier) = (field_expression "tv.tv_sec" identifier . field_identifier)) ;) (expression_statement "ts->tv_nsec = tv.tv_usec * 1000;" (assignment_expression "ts->tv_nsec = tv.tv_usec * 1000" (field_expression "ts->tv_nsec" identifier -> field_identifier) = (binary_expression "tv.tv_usec * 1000" (field_expression "tv.tv_usec" identifier . field_identifier) * number_literal)) ;) })) (if_statement "if (iVar1 == *(int *)puVar3) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar3)" ( (binary_expression "iVar1 == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_000495d0;" (assignment_expression "puVar3 = PTR___stack_chk_fail_000495d0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000495d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000495d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000495d0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000495d0" * (cast_expression "(code *)PTR___stack_chk_fail_000495d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(puVar3 + 0x2939c))();" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x2939c))()" identifier = (call_expression "(**(code **)(puVar3 + 0x2939c))()" (parenthesized_expression "(**(code **)(puVar3 + 0x2939c))" ( (pointer_expression "**(code **)(puVar3 + 0x2939c)" * (pointer_expression "*(code **)(puVar3 + 0x2939c)" * (cast_expression "(code **)(puVar3 + 0x2939c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x2939c)" ( (binary_expression "puVar3 + 0x2939c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);" (assignment_expression "iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" identifier = (call_expression "(**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" (parenthesized_expression "(**(code **)(puVar3 + 0x294f8))" ( (pointer_expression "**(code **)(puVar3 + 0x294f8)" * (pointer_expression "*(code **)(puVar3 + 0x294f8)" * (cast_expression "(code **)(puVar3 + 0x294f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x294f8)" ( (binary_expression "puVar3 + 0x294f8" identifier + number_literal) ))))) )) (argument_list "(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" ( identifier , (binary_expression "*(int *)(puVar3 + 0x290d8) + 0x6634" (pointer_expression "*(int *)(puVar3 + 0x290d8)" * (cast_expression "(int *)(puVar3 + 0x290d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x290d8)" ( (binary_expression "puVar3 + 0x290d8" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return;\n  }" { (expression_statement "(**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);" (call_expression "(**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" (parenthesized_expression "(**(code **)(puVar3 + 0x294f8))" ( (pointer_expression "**(code **)(puVar3 + 0x294f8)" * (pointer_expression "*(code **)(puVar3 + 0x294f8)" * (cast_expression "(code **)(puVar3 + 0x294f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x294f8)" ( (binary_expression "puVar3 + 0x294f8" identifier + number_literal) ))))) )) (argument_list "(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" ( identifier , (binary_expression "*(int *)(puVar3 + 0x290d8) + 0x6638" (pointer_expression "*(int *)(puVar3 + 0x290d8)" * (cast_expression "(int *)(puVar3 + 0x290d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x290d8)" ( (binary_expression "puVar3 + 0x290d8" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "uint gettime(undefined4 *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_1c;\n  int local_18;\n  uint local_14;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  local_14 = *(uint *)PTR___stack_chk_guard_000495fc;\n  iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);\n  if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }\n  if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return 1;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}\n\n" (function_definition "uint gettime(undefined4 *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_1c;\n  int local_18;\n  uint local_14;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  local_14 = *(uint *)PTR___stack_chk_guard_000495fc;\n  iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);\n  if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }\n  if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return 1;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}" type_identifier (function_declarator "gettime(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_1c;\n  int local_18;\n  uint local_14;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  local_14 = *(uint *)PTR___stack_chk_guard_000495fc;\n  iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);\n  if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }\n  if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return 1;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "uint local_14;" type_identifier identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000495fc;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000495fc" identifier = identifier) ;) (expression_statement "local_14 = *(uint *)PTR___stack_chk_guard_000495fc;" (assignment_expression "local_14 = *(uint *)PTR___stack_chk_guard_000495fc" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_000495fc" * (cast_expression "(uint *)PTR___stack_chk_guard_000495fc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);" (assignment_expression "iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1)" identifier = (call_expression "(*(code *)PTR_clock_gettime_000495f4)(0,param_1)" (parenthesized_expression "(*(code *)PTR_clock_gettime_000495f4)" ( (pointer_expression "*(code *)PTR_clock_gettime_000495f4" * (cast_expression "(code *)PTR_clock_gettime_000495f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,param_1)" ( number_literal , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }" { (expression_statement "(*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);" (call_expression "(*(code *)PTR_gettimeofday_000495d8)(&local_1c,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_000495d8)" ( (pointer_expression "*(code *)PTR_gettimeofday_000495d8" * (cast_expression "(code *)PTR_gettimeofday_000495d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_1c,0)" ( (pointer_expression "&local_1c" & identifier) , number_literal ))) ;) (expression_statement "*param_1 = local_1c;" (assignment_expression "*param_1 = local_1c" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_18 * 1000;" (assignment_expression "param_1[1] = local_18 * 1000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "local_18 * 1000" identifier * number_literal)) ;) })) (if_statement "if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }" if (parenthesized_expression "(local_14 == *(uint *)puVar3)" ( (binary_expression "local_14 == *(uint *)puVar3" identifier == (pointer_expression "*(uint *)puVar3" * (cast_expression "(uint *)puVar3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(uint *)puVar3;\n  }" { (return_statement "return *(uint *)puVar3;" return (pointer_expression "*(uint *)puVar3" * (cast_expression "(uint *)puVar3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_000495d0;" (assignment_expression "puVar3 = PTR___stack_chk_fail_000495d0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000495d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000495d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000495d0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000495d0" * (cast_expression "(code *)PTR___stack_chk_fail_000495d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(puVar3 + 0x2939c))();" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x2939c))()" identifier = (call_expression "(**(code **)(puVar3 + 0x2939c))()" (parenthesized_expression "(**(code **)(puVar3 + 0x2939c))" ( (pointer_expression "**(code **)(puVar3 + 0x2939c)" * (pointer_expression "*(code **)(puVar3 + 0x2939c)" * (cast_expression "(code **)(puVar3 + 0x2939c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x2939c)" ( (binary_expression "puVar3 + 0x2939c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    return 1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);" (assignment_expression "iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" identifier = (call_expression "(**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" (parenthesized_expression "(**(code **)(puVar3 + 0x294f8))" ( (pointer_expression "**(code **)(puVar3 + 0x294f8)" * (pointer_expression "*(code **)(puVar3 + 0x294f8)" * (cast_expression "(code **)(puVar3 + 0x294f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x294f8)" ( (binary_expression "puVar3 + 0x294f8" identifier + number_literal) ))))) )) (argument_list "(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" ( identifier , (binary_expression "*(int *)(puVar3 + 0x290d8) + 0x6634" (pointer_expression "*(int *)(puVar3 + 0x290d8)" * (cast_expression "(int *)(puVar3 + 0x290d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x290d8)" ( (binary_expression "puVar3 + 0x290d8" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }" { (expression_statement "iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" identifier = (call_expression "(**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" (parenthesized_expression "(**(code **)(puVar3 + 0x294f8))" ( (pointer_expression "**(code **)(puVar3 + 0x294f8)" * (pointer_expression "*(code **)(puVar3 + 0x294f8)" * (cast_expression "(code **)(puVar3 + 0x294f8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x294f8)" ( (binary_expression "puVar3 + 0x294f8" identifier + number_literal) ))))) )) (argument_list "(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" ( identifier , (binary_expression "*(int *)(puVar3 + 0x290d8) + 0x6638" (pointer_expression "*(int *)(puVar3 + 0x290d8)" * (cast_expression "(int *)(puVar3 + 0x290d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x290d8)" ( (binary_expression "puVar3 + 0x290d8" identifier + number_literal) )))) + number_literal) )))) ;) (return_statement "return (uint)(iVar1 != 0);" return (call_expression "(uint)(iVar1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT * LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))) ;) })) (return_statement return LIT ;) })))
(function_definition "uint gettime(undefined4 *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_1c;\n  int local_18;\n  uint local_14;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  local_14 = *(uint *)PTR___stack_chk_guard_000495fc;\n  iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);\n  if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }\n  if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return 1;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "gettime(undefined4 *param_1)" (identifier "gettime") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_1c;\n  int local_18;\n  uint local_14;\n  \n  puVar3 = PTR___stack_chk_guard_000495fc;\n  local_14 = *(uint *)PTR___stack_chk_guard_000495fc;\n  iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);\n  if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }\n  if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }\n  puVar3 = PTR___stack_chk_fail_000495d0;\n  (*(code *)PTR___stack_chk_fail_000495d0)();\n  iVar1 = (**(code **)(puVar3 + 0x2939c))();\n  if (iVar1 == 0) {\n    return 1;\n  }\n  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);\n  if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 local_1c;" (type_identifier "undefined4") (identifier "local_1c") (; ";")) (declaration "int local_18;" (primitive_type "int") (identifier "local_18") (; ";")) (declaration "uint local_14;" (type_identifier "uint") (identifier "local_14") (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_000495fc;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000495fc" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_000495fc")) (; ";")) (expression_statement "local_14 = *(uint *)PTR___stack_chk_guard_000495fc;" (assignment_expression "local_14 = *(uint *)PTR___stack_chk_guard_000495fc" (identifier "local_14") (= "=") (pointer_expression "*(uint *)PTR___stack_chk_guard_000495fc" (* "*") (cast_expression "(uint *)PTR___stack_chk_guard_000495fc" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000495fc")))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1);" (assignment_expression "iVar1 = (*(code *)PTR_clock_gettime_000495f4)(0,param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_clock_gettime_000495f4)(0,param_1)" (parenthesized_expression "(*(code *)PTR_clock_gettime_000495f4)" (( "(") (pointer_expression "*(code *)PTR_clock_gettime_000495f4" (* "*") (cast_expression "(code *)PTR_clock_gettime_000495f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_clock_gettime_000495f4"))) () ")")) (argument_list "(0,param_1)" (( "(") (number_literal "0") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);\n    *param_1 = local_1c;\n    param_1[1] = local_18 * 1000;\n  }" ({ "{") (expression_statement "(*(code *)PTR_gettimeofday_000495d8)(&local_1c,0);" (call_expression "(*(code *)PTR_gettimeofday_000495d8)(&local_1c,0)" (parenthesized_expression "(*(code *)PTR_gettimeofday_000495d8)" (( "(") (pointer_expression "*(code *)PTR_gettimeofday_000495d8" (* "*") (cast_expression "(code *)PTR_gettimeofday_000495d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gettimeofday_000495d8"))) () ")")) (argument_list "(&local_1c,0)" (( "(") (pointer_expression "&local_1c" (& "&") (identifier "local_1c")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*param_1 = local_1c;" (assignment_expression "*param_1 = local_1c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "local_1c")) (; ";")) (expression_statement "param_1[1] = local_18 * 1000;" (assignment_expression "param_1[1] = local_18 * 1000" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "local_18 * 1000" (identifier "local_18") (* "*") (number_literal "1000"))) (; ";")) (} "}"))) (if_statement "if (local_14 == *(uint *)puVar3) {\n    return *(uint *)puVar3;\n  }" (if "if") (parenthesized_expression "(local_14 == *(uint *)puVar3)" (( "(") (binary_expression "local_14 == *(uint *)puVar3" (identifier "local_14") (== "==") (pointer_expression "*(uint *)puVar3" (* "*") (cast_expression "(uint *)puVar3" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n    return *(uint *)puVar3;\n  }" ({ "{") (return_statement "return *(uint *)puVar3;" (return "return") (pointer_expression "*(uint *)puVar3" (* "*") (cast_expression "(uint *)puVar3" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (; ";")) (} "}"))) (expression_statement "puVar3 = PTR___stack_chk_fail_000495d0;" (assignment_expression "puVar3 = PTR___stack_chk_fail_000495d0" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_fail_000495d0")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000495d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000495d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000495d0)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000495d0" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000495d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000495d0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = (**(code **)(puVar3 + 0x2939c))();" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x2939c))()" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar3 + 0x2939c))()" (parenthesized_expression "(**(code **)(puVar3 + 0x2939c))" (( "(") (pointer_expression "**(code **)(puVar3 + 0x2939c)" (* "*") (pointer_expression "*(code **)(puVar3 + 0x2939c)" (* "*") (cast_expression "(code **)(puVar3 + 0x2939c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x2939c)" (( "(") (binary_expression "puVar3 + 0x2939c" (identifier "puVar3") (+ "+") (number_literal "0x2939c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);" (assignment_expression "iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" (parenthesized_expression "(**(code **)(puVar3 + 0x294f8))" (( "(") (pointer_expression "**(code **)(puVar3 + 0x294f8)" (* "*") (pointer_expression "*(code **)(puVar3 + 0x294f8)" (* "*") (cast_expression "(code **)(puVar3 + 0x294f8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x294f8)" (( "(") (binary_expression "puVar3 + 0x294f8" (identifier "puVar3") (+ "+") (number_literal "0x294f8")) () ")"))))) () ")")) (argument_list "(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634)" (( "(") (identifier "iVar1") (, ",") (binary_expression "*(int *)(puVar3 + 0x290d8) + 0x6634" (pointer_expression "*(int *)(puVar3 + 0x290d8)" (* "*") (cast_expression "(int *)(puVar3 + 0x290d8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x290d8)" (( "(") (binary_expression "puVar3 + 0x290d8" (identifier "puVar3") (+ "+") (number_literal "0x290d8")) () ")")))) (+ "+") (number_literal "0x6634")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);\n    return (uint)(iVar1 != 0);\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" (parenthesized_expression "(**(code **)(puVar3 + 0x294f8))" (( "(") (pointer_expression "**(code **)(puVar3 + 0x294f8)" (* "*") (pointer_expression "*(code **)(puVar3 + 0x294f8)" (* "*") (cast_expression "(code **)(puVar3 + 0x294f8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x294f8)" (( "(") (binary_expression "puVar3 + 0x294f8" (identifier "puVar3") (+ "+") (number_literal "0x294f8")) () ")"))))) () ")")) (argument_list "(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638)" (( "(") (identifier "iVar1") (, ",") (binary_expression "*(int *)(puVar3 + 0x290d8) + 0x6638" (pointer_expression "*(int *)(puVar3 + 0x290d8)" (* "*") (cast_expression "(int *)(puVar3 + 0x290d8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x290d8)" (( "(") (binary_expression "puVar3 + 0x290d8" (identifier "puVar3") (+ "+") (number_literal "0x290d8")) () ")")))) (+ "+") (number_literal "0x6638")) () ")")))) (; ";")) (return_statement "return (uint)(iVar1 != 0);" (return "return") (call_expression "(uint)(iVar1 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

void function_1(type_1 *ts)

{
  int var_2;
  int var_1;
  type_2 *var_3;
  type_3 tv;
  
  var_3 = PTR___stack_chk_guard_000495fc;
  var_2 = *(int *)PTR___stack_chk_guard_000495fc;
  var_1 = (*(type_4 *)PTR_clock_gettime_000495f4)(0,ts);
  if (var_1 != 0) {
    (*(type_4 *)PTR_gettimeofday_000495d8)(&tv,0);
    ts->tv_sec = tv.tv_sec;
    ts->tv_nsec = tv.tv_usec * 1000;
  }
  if (var_2 == *(int *)var_3) {
    return;
  }
  var_3 = PTR___stack_chk_fail_000495d0;
  (*(type_4 *)PTR___stack_chk_fail_000495d0)();
  var_2 = (**(type_4 **)(var_3 + 0x2939c))();
  if (var_2 == 0) {
    return;
  }
  var_1 = (**(type_4 **)(var_3 + 0x294f8))(var_2,*(int *)(var_3 + 0x290d8) + 0x6634);
  if (var_1 != 0) {
    (**(type_4 **)(var_3 + 0x294f8))(var_2,*(int *)(var_3 + 0x290d8) + 0x6638);
    return;
  }
  return;
}


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

uint MASKED(undefined4 *param_1)

{
  int iVar1;
  int iVar2;
  undefined *puVar3;
  undefined4 local_1c;
  int local_18;
  uint local_14;
  
  puVar3 = PTR___stack_chk_guard_000495fc;
  local_14 = *(uint *)PTR___stack_chk_guard_000495fc;
  iVar1 = (*(code *)PTR_clock_MASKED_000495f4)(0,param_1);
  if (iVar1 != 0) {
    (*(code *)PTR_MASKEDofday_000495d8)(&local_1c,0);
    *param_1 = local_1c;
    param_1[1] = local_18 * 1000;
  }
  if (local_14 == *(uint *)puVar3) {
    return *(uint *)puVar3;
  }
  puVar3 = PTR___stack_chk_fail_000495d0;
  (*(code *)PTR___stack_chk_fail_000495d0)();
  iVar1 = (**(code **)(puVar3 + 0x2939c))();
  if (iVar1 == 0) {
    return 1;
  }
  iVar2 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6634);
  if (iVar2 != 0) {
    iVar1 = (**(code **)(puVar3 + 0x294f8))(iVar1,*(int *)(puVar3 + 0x290d8) + 0x6638);
    return (uint)(iVar1 != 0);
  }
  return 0;
}

