
time_t rtc_tm2time(tm *ptm,int utc)

{
  undefined *puVar1;
  int iVar2;
  time_t tVar3;
  
  puVar1 = PTR_bdcommands_4__name_4__001311a4;
  if (utc == 0) {
    tVar3 = (*(code *)PTR_mktime_00132100)();
  }
  else {
    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_bdcommands_4__name_4__001311a4 + 0x6734);
    (*(code *)PTR_putenv_00131df8)(PTR_bdcommands_4__name_4__001311a4 + 0x28bc);
    (*(code *)PTR_tzset_00132048)();
    tVar3 = (*(code *)PTR_mktime_00132100)(ptm);
    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);
    if (iVar2 != 0) {
      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);
    }
    (*(code *)PTR_tzset_00132048)();
  }
  return tVar3;
}



undefined4 FUN_000ff684(undefined4 param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  puVar1 = PTR_FUN_001311a4;
  if (param_2 == 0) {
    uVar3 = (*(code *)PTR_mktime_00132100)();
  }
  else {
    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);
    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);
    (*(code *)PTR_tzset_00132048)();
    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);
    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);
    if (iVar2 != 0) {
      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);
    }
    (*(code *)PTR_tzset_00132048)();
  }
  return uVar3;
}


lui gp,0x4
addiu gp,gp,-0x6534
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
beq a1,zero,0x000ff764
_or s0,a0,zero
lw s2,-0x7fac(gp)
addiu a0,s2,0x6734
lw t9,-0x7168(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s1,v0,zero
lw a0,-0x7fac(gp)
addiu a0,a0,0x28bc
lw t9,-0x7358(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7108(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7050(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
addiu a0,s2,0x6734
lw t9,-0x6f2c(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq s1,zero,0x000ff738
_addiu a0,s1,-0x3
lw t9,-0x7358(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7108(gp)
jalr t9
_nop
lw gp,0x10(sp)
or v0,s0,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7050(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x000ff748
_or s0,v0,zero
(translation_unit "undefined4 FUN_000ff684(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_FUN_001311a4;\n  if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_000ff684(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_FUN_001311a4;\n  if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_000ff684(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_FUN_001311a4;\n  if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_FUN_001311a4;" (assignment_expression "puVar1 = PTR_FUN_001311a4" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }" { (expression_statement "uVar3 = (*(code *)PTR_mktime_00132100)();" (assignment_expression "uVar3 = (*(code *)PTR_mktime_00132100)()" identifier = (call_expression "(*(code *)PTR_mktime_00132100)()" (parenthesized_expression "(*(code *)PTR_mktime_00132100)" ( (pointer_expression "*(code *)PTR_mktime_00132100" * (cast_expression "(code *)PTR_mktime_00132100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) }) (else_clause "else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" else (compound_statement "{\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" { (expression_statement "iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);" (assignment_expression "iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734)" identifier = (call_expression "(*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734)" (parenthesized_expression "(*(code *)PTR_getenv_00131fe8)" ( (pointer_expression "*(code *)PTR_getenv_00131fe8" * (cast_expression "(code *)PTR_getenv_00131fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_001311a4 + 0x6734)" ( (binary_expression "PTR_FUN_001311a4 + 0x6734" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);" (call_expression "(*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc)" (parenthesized_expression "(*(code *)PTR_putenv_00131df8)" ( (pointer_expression "*(code *)PTR_putenv_00131df8" * (cast_expression "(code *)PTR_putenv_00131df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_001311a4 + 0x28bc)" ( (binary_expression "PTR_FUN_001311a4 + 0x28bc" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_tzset_00132048)();" (call_expression "(*(code *)PTR_tzset_00132048)()" (parenthesized_expression "(*(code *)PTR_tzset_00132048)" ( (pointer_expression "*(code *)PTR_tzset_00132048" * (cast_expression "(code *)PTR_tzset_00132048" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar3 = (*(code *)PTR_mktime_00132100)(param_1);" (assignment_expression "uVar3 = (*(code *)PTR_mktime_00132100)(param_1)" identifier = (call_expression "(*(code *)PTR_mktime_00132100)(param_1)" (parenthesized_expression "(*(code *)PTR_mktime_00132100)" ( (pointer_expression "*(code *)PTR_mktime_00132100" * (cast_expression "(code *)PTR_mktime_00132100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);" (call_expression "(*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734)" (parenthesized_expression "(*(code *)PTR_unsetenv_00132224)" ( (pointer_expression "*(code *)PTR_unsetenv_00132224" * (cast_expression "(code *)PTR_unsetenv_00132224" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1 + 0x6734)" ( (binary_expression "puVar1 + 0x6734" identifier + number_literal) ))) ;) (if_statement "if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }" { (expression_statement "(*(code *)PTR_putenv_00131df8)(iVar2 + -3);" (call_expression "(*(code *)PTR_putenv_00131df8)(iVar2 + -3)" (parenthesized_expression "(*(code *)PTR_putenv_00131df8)" ( (pointer_expression "*(code *)PTR_putenv_00131df8" * (cast_expression "(code *)PTR_putenv_00131df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + -3)" ( (binary_expression "iVar2 + -3" identifier + number_literal) ))) ;) })) (expression_statement "(*(code *)PTR_tzset_00132048)();" (call_expression "(*(code *)PTR_tzset_00132048)()" (parenthesized_expression "(*(code *)PTR_tzset_00132048)" ( (pointer_expression "*(code *)PTR_tzset_00132048" * (cast_expression "(code *)PTR_tzset_00132048" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "time_t rtc_tm2time(tm *ptm,int utc)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  time_t tVar3;\n  \n  puVar1 = PTR_bdcommands_4__name_4__001311a4;\n  if (utc == 0) {\n    tVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_bdcommands_4__name_4__001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_bdcommands_4__name_4__001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    tVar3 = (*(code *)PTR_mktime_00132100)(ptm);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return tVar3;\n}\n\n" (function_definition "time_t rtc_tm2time(tm *ptm,int utc)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  time_t tVar3;\n  \n  puVar1 = PTR_bdcommands_4__name_4__001311a4;\n  if (utc == 0) {\n    tVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_bdcommands_4__name_4__001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_bdcommands_4__name_4__001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    tVar3 = (*(code *)PTR_mktime_00132100)(ptm);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return tVar3;\n}" type_identifier (function_declarator "rtc_tm2time(tm *ptm,int utc)" identifier (parameter_list "(tm *ptm,int utc)" ( (parameter_declaration "tm *ptm" type_identifier (pointer_declarator "*ptm" * identifier)) , (parameter_declaration "int utc" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  time_t tVar3;\n  \n  puVar1 = PTR_bdcommands_4__name_4__001311a4;\n  if (utc == 0) {\n    tVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_bdcommands_4__name_4__001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_bdcommands_4__name_4__001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    tVar3 = (*(code *)PTR_mktime_00132100)(ptm);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return tVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "time_t tVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_bdcommands_4__name_4__001311a4;" (assignment_expression "puVar1 = PTR_bdcommands_4__name_4__001311a4" identifier = identifier) ;) (if_statement "if (utc == 0) {\n    tVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_bdcommands_4__name_4__001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_bdcommands_4__name_4__001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    tVar3 = (*(code *)PTR_mktime_00132100)(ptm);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" if (parenthesized_expression "(utc == 0)" ( (binary_expression "utc == 0" identifier == number_literal) )) (compound_statement "{\n    tVar3 = (*(code *)PTR_mktime_00132100)();\n  }" { (expression_statement "tVar3 = (*(code *)PTR_mktime_00132100)();" (assignment_expression "tVar3 = (*(code *)PTR_mktime_00132100)()" identifier = (call_expression "(*(code *)PTR_mktime_00132100)()" (parenthesized_expression "(*(code *)PTR_mktime_00132100)" ( (pointer_expression "*(code *)PTR_mktime_00132100" * (cast_expression "(code *)PTR_mktime_00132100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) }) (else_clause "else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_bdcommands_4__name_4__001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_bdcommands_4__name_4__001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    tVar3 = (*(code *)PTR_mktime_00132100)(ptm);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" else (compound_statement "{\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_bdcommands_4__name_4__001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_bdcommands_4__name_4__001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    tVar3 = (*(code *)PTR_mktime_00132100)(ptm);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" { (expression_statement "iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_bdcommands_4__name_4__001311a4 + 0x6734);" (assignment_expression "iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_bdcommands_4__name_4__001311a4 + 0x6734)" identifier = (call_expression "(*(code *)PTR_getenv_00131fe8)(PTR_bdcommands_4__name_4__001311a4 + 0x6734)" (parenthesized_expression "(*(code *)PTR_getenv_00131fe8)" ( (pointer_expression "*(code *)PTR_getenv_00131fe8" * (cast_expression "(code *)PTR_getenv_00131fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_bdcommands_4__name_4__001311a4 + 0x6734)" ( (binary_expression "PTR_bdcommands_4__name_4__001311a4 + 0x6734" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_putenv_00131df8)(PTR_bdcommands_4__name_4__001311a4 + 0x28bc);" (call_expression "(*(code *)PTR_putenv_00131df8)(PTR_bdcommands_4__name_4__001311a4 + 0x28bc)" (parenthesized_expression "(*(code *)PTR_putenv_00131df8)" ( (pointer_expression "*(code *)PTR_putenv_00131df8" * (cast_expression "(code *)PTR_putenv_00131df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_bdcommands_4__name_4__001311a4 + 0x28bc)" ( (binary_expression "PTR_bdcommands_4__name_4__001311a4 + 0x28bc" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_tzset_00132048)();" (call_expression "(*(code *)PTR_tzset_00132048)()" (parenthesized_expression "(*(code *)PTR_tzset_00132048)" ( (pointer_expression "*(code *)PTR_tzset_00132048" * (cast_expression "(code *)PTR_tzset_00132048" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "tVar3 = (*(code *)PTR_mktime_00132100)(ptm);" (assignment_expression "tVar3 = (*(code *)PTR_mktime_00132100)(ptm)" identifier = (call_expression "(*(code *)PTR_mktime_00132100)(ptm)" (parenthesized_expression "(*(code *)PTR_mktime_00132100)" ( (pointer_expression "*(code *)PTR_mktime_00132100" * (cast_expression "(code *)PTR_mktime_00132100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ptm)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);" (call_expression "(*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734)" (parenthesized_expression "(*(code *)PTR_unsetenv_00132224)" ( (pointer_expression "*(code *)PTR_unsetenv_00132224" * (cast_expression "(code *)PTR_unsetenv_00132224" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1 + 0x6734)" ( (binary_expression "puVar1 + 0x6734" identifier + number_literal) ))) ;) (if_statement "if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }" { (expression_statement "(*(code *)PTR_putenv_00131df8)(iVar2 + -3);" (call_expression "(*(code *)PTR_putenv_00131df8)(iVar2 + -3)" (parenthesized_expression "(*(code *)PTR_putenv_00131df8)" ( (pointer_expression "*(code *)PTR_putenv_00131df8" * (cast_expression "(code *)PTR_putenv_00131df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + -3)" ( (binary_expression "iVar2 + -3" identifier + number_literal) ))) ;) })) (expression_statement "(*(code *)PTR_tzset_00132048)();" (call_expression "(*(code *)PTR_tzset_00132048)()" (parenthesized_expression "(*(code *)PTR_tzset_00132048)" ( (pointer_expression "*(code *)PTR_tzset_00132048" * (cast_expression "(code *)PTR_tzset_00132048" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) (return_statement "return tVar3;" return identifier ;) })))
(translation_unit "undefined4 FUN_000ff684(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_FUN_001311a4;\n  if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_000ff684(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_FUN_001311a4;\n  if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_000ff684(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_FUN_001311a4;\n  if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_FUN_001311a4;" (assignment_expression "puVar1 = PTR_FUN_001311a4" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }" { (expression_statement "uVar3 = (*(code *)PTR_mktime_00132100)();" (assignment_expression "uVar3 = (*(code *)PTR_mktime_00132100)()" identifier = (call_expression "(*(code *)PTR_mktime_00132100)()" (parenthesized_expression "(*(code *)PTR_mktime_00132100)" ( (pointer_expression "*(code *)PTR_mktime_00132100" * (cast_expression "(code *)PTR_mktime_00132100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) }) (else_clause "else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" else (compound_statement "{\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" { (expression_statement "iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);" (assignment_expression "iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734)" identifier = (call_expression "(*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734)" (parenthesized_expression "(*(code *)PTR_getenv_00131fe8)" ( (pointer_expression "*(code *)PTR_getenv_00131fe8" * (cast_expression "(code *)PTR_getenv_00131fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_001311a4 + 0x6734)" ( (binary_expression "PTR_FUN_001311a4 + 0x6734" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);" (call_expression "(*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc)" (parenthesized_expression "(*(code *)PTR_putenv_00131df8)" ( (pointer_expression "*(code *)PTR_putenv_00131df8" * (cast_expression "(code *)PTR_putenv_00131df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_001311a4 + 0x28bc)" ( (binary_expression "PTR_FUN_001311a4 + 0x28bc" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_tzset_00132048)();" (call_expression "(*(code *)PTR_tzset_00132048)()" (parenthesized_expression "(*(code *)PTR_tzset_00132048)" ( (pointer_expression "*(code *)PTR_tzset_00132048" * (cast_expression "(code *)PTR_tzset_00132048" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar3 = (*(code *)PTR_mktime_00132100)(param_1);" (assignment_expression "uVar3 = (*(code *)PTR_mktime_00132100)(param_1)" identifier = (call_expression "(*(code *)PTR_mktime_00132100)(param_1)" (parenthesized_expression "(*(code *)PTR_mktime_00132100)" ( (pointer_expression "*(code *)PTR_mktime_00132100" * (cast_expression "(code *)PTR_mktime_00132100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);" (call_expression "(*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734)" (parenthesized_expression "(*(code *)PTR_unsetenv_00132224)" ( (pointer_expression "*(code *)PTR_unsetenv_00132224" * (cast_expression "(code *)PTR_unsetenv_00132224" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1 + 0x6734)" ( (binary_expression "puVar1 + 0x6734" identifier + number_literal) ))) ;) (if_statement "if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }" { (expression_statement "(*(code *)PTR_putenv_00131df8)(iVar2 + -3);" (call_expression "(*(code *)PTR_putenv_00131df8)(iVar2 + -3)" (parenthesized_expression "(*(code *)PTR_putenv_00131df8)" ( (pointer_expression "*(code *)PTR_putenv_00131df8" * (cast_expression "(code *)PTR_putenv_00131df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + -3)" ( (binary_expression "iVar2 + -3" identifier + number_literal) ))) ;) })) (expression_statement "(*(code *)PTR_tzset_00132048)();" (call_expression "(*(code *)PTR_tzset_00132048)()" (parenthesized_expression "(*(code *)PTR_tzset_00132048)" ( (pointer_expression "*(code *)PTR_tzset_00132048" * (cast_expression "(code *)PTR_tzset_00132048" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (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 ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000ff684(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_FUN_001311a4;\n  if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_000ff684(undefined4 param_1,int param_2)" (identifier "FUN_000ff684") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_FUN_001311a4;\n  if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }\n  return uVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = PTR_FUN_001311a4;" (assignment_expression "puVar1 = PTR_FUN_001311a4" (identifier "puVar1") (= "=") (identifier "PTR_FUN_001311a4")) (; ";")) (if_statement "if (param_2 == 0) {\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }\n  else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = (*(code *)PTR_mktime_00132100)();\n  }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_mktime_00132100)();" (assignment_expression "uVar3 = (*(code *)PTR_mktime_00132100)()" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_mktime_00132100)()" (parenthesized_expression "(*(code *)PTR_mktime_00132100)" (( "(") (pointer_expression "*(code *)PTR_mktime_00132100" (* "*") (cast_expression "(code *)PTR_mktime_00132100" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mktime_00132100"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" (else "else") (compound_statement "{\n    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);\n    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);\n    (*(code *)PTR_tzset_00132048)();\n    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);\n    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);\n    if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }\n    (*(code *)PTR_tzset_00132048)();\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);" (assignment_expression "iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734)" (parenthesized_expression "(*(code *)PTR_getenv_00131fe8)" (( "(") (pointer_expression "*(code *)PTR_getenv_00131fe8" (* "*") (cast_expression "(code *)PTR_getenv_00131fe8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_00131fe8"))) () ")")) (argument_list "(PTR_FUN_001311a4 + 0x6734)" (( "(") (binary_expression "PTR_FUN_001311a4 + 0x6734" (identifier "PTR_FUN_001311a4") (+ "+") (number_literal "0x6734")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);" (call_expression "(*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc)" (parenthesized_expression "(*(code *)PTR_putenv_00131df8)" (( "(") (pointer_expression "*(code *)PTR_putenv_00131df8" (* "*") (cast_expression "(code *)PTR_putenv_00131df8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_putenv_00131df8"))) () ")")) (argument_list "(PTR_FUN_001311a4 + 0x28bc)" (( "(") (binary_expression "PTR_FUN_001311a4 + 0x28bc" (identifier "PTR_FUN_001311a4") (+ "+") (number_literal "0x28bc")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_tzset_00132048)();" (call_expression "(*(code *)PTR_tzset_00132048)()" (parenthesized_expression "(*(code *)PTR_tzset_00132048)" (( "(") (pointer_expression "*(code *)PTR_tzset_00132048" (* "*") (cast_expression "(code *)PTR_tzset_00132048" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_tzset_00132048"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_mktime_00132100)(param_1);" (assignment_expression "uVar3 = (*(code *)PTR_mktime_00132100)(param_1)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_mktime_00132100)(param_1)" (parenthesized_expression "(*(code *)PTR_mktime_00132100)" (( "(") (pointer_expression "*(code *)PTR_mktime_00132100" (* "*") (cast_expression "(code *)PTR_mktime_00132100" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mktime_00132100"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);" (call_expression "(*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734)" (parenthesized_expression "(*(code *)PTR_unsetenv_00132224)" (( "(") (pointer_expression "*(code *)PTR_unsetenv_00132224" (* "*") (cast_expression "(code *)PTR_unsetenv_00132224" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_unsetenv_00132224"))) () ")")) (argument_list "(puVar1 + 0x6734)" (( "(") (binary_expression "puVar1 + 0x6734" (identifier "puVar1") (+ "+") (number_literal "0x6734")) () ")"))) (; ";")) (if_statement "if (iVar2 != 0) {\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);\n    }" ({ "{") (expression_statement "(*(code *)PTR_putenv_00131df8)(iVar2 + -3);" (call_expression "(*(code *)PTR_putenv_00131df8)(iVar2 + -3)" (parenthesized_expression "(*(code *)PTR_putenv_00131df8)" (( "(") (pointer_expression "*(code *)PTR_putenv_00131df8" (* "*") (cast_expression "(code *)PTR_putenv_00131df8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_putenv_00131df8"))) () ")")) (argument_list "(iVar2 + -3)" (( "(") (binary_expression "iVar2 + -3" (identifier "iVar2") (+ "+") (number_literal "-3")) () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_tzset_00132048)();" (call_expression "(*(code *)PTR_tzset_00132048)()" (parenthesized_expression "(*(code *)PTR_tzset_00132048)" (( "(") (pointer_expression "*(code *)PTR_tzset_00132048" (* "*") (cast_expression "(code *)PTR_tzset_00132048" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_tzset_00132048"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

type_1 function_1(type_2 *ptm,int var_1)

{
  type_3 *var_3;
  int var_4;
  type_1 tVar3;
  
  var_3 = var_2;
  if (var_1 == 0) {
    tVar3 = (*(type_4 *)PTR_mktime_00132100)();
  }
  else {
    var_4 = (*(type_4 *)PTR_getenv_00131fe8)(var_2 + 0x6734);
    (*(type_4 *)PTR_putenv_00131df8)(var_2 + 0x28bc);
    (*(type_4 *)PTR_tzset_00132048)();
    tVar3 = (*(type_4 *)PTR_mktime_00132100)(ptm);
    (*(type_4 *)PTR_unsetenv_00132224)(var_3 + 0x6734);
    if (var_4 != 0) {
      (*(type_4 *)PTR_putenv_00131df8)(var_4 + -3);
    }
    (*(type_4 *)PTR_tzset_00132048)();
  }
  return tVar3;
}


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

undefined4 MASKED(undefined4 param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  puVar1 = PTR_FUN_001311a4;
  if (param_2 == 0) {
    uVar3 = (*(code *)PTR_mktime_00132100)();
  }
  else {
    iVar2 = (*(code *)PTR_getenv_00131fe8)(PTR_FUN_001311a4 + 0x6734);
    (*(code *)PTR_putenv_00131df8)(PTR_FUN_001311a4 + 0x28bc);
    (*(code *)PTR_tzset_00132048)();
    uVar3 = (*(code *)PTR_mktime_00132100)(param_1);
    (*(code *)PTR_unsetenv_00132224)(puVar1 + 0x6734);
    if (iVar2 != 0) {
      (*(code *)PTR_putenv_00131df8)(iVar2 + -3);
    }
    (*(code *)PTR_tzset_00132048)();
  }
  return uVar3;
}

