
_Bool revert_tz(timezone_t tz)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();
  uVar3 = *puVar1;
  if (tz->tz_is_set == '\0') {
    iVar2 = setenv_TZ((char *)0x0);
  }
  else {
    iVar2 = setenv_TZ(&tz->field_0x5);
  }
  if (iVar2 == 0) {
    (*(code *)PTR_tzset_000363d4)();
  }
  else {
    uVar3 = *puVar1;
  }
  tzfree(tz);
  *puVar1 = uVar3;
  return iVar2 == 0;
}



bool FUN_0001f888(int param_1)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();
  uVar3 = *puVar1;
  if (*(char *)(param_1 + 4) == '\0') {
    iVar2 = FUN_0001f3d0(0);
  }
  else {
    iVar2 = FUN_0001f3d0(param_1 + 5);
  }
  if (iVar2 == 0) {
    (*(code *)PTR_tzset_000363d4)();
  }
  else {
    uVar3 = *puVar1;
  }
  tzfree(param_1);
  *puVar1 = uVar3;
  return iVar2 == 0;
}


lui gp,0x2
addiu gp,gp,-0x1798
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7d90(gp)
sw s1,0x20(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw s2,0x24(sp)
sw s0,0x1c(sp)
sw ra,0x2c(sp)
jalr t9
_sw s3,0x28(sp)
lb v1,0x4(s1)
or s0,v0,zero
lw gp,0x10(sp)
beq v1,zero,0x0001f920
_lw s2,0x0(v0)
lw t9,-0x7fc8(gp)
addiu t9,t9,-0xc30
bal 0x0001f3d0
_addiu a0,s1,0x5
beq v0,zero,0x0001f938
_lw gp,0x10(sp)
lw s2,0x0(s0)
or s3,zero,zero
lw t9,-0x7e78(gp)
bal 0x0001f6d4
_or a0,s1,zero
or v0,s3,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s1,0x20(sp)
sw s2,0x0(s0)
lw s2,0x24(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7fc8(gp)
addiu t9,t9,-0xc30
bal 0x0001f3d0
_or a0,zero,zero
bne v0,zero,0x0001f8e8
_lw gp,0x10(sp)
lw t9,-0x7d1c(gp)
jalr t9
_li s3,0x1
b 0x0001f8f0
_lw gp,0x10(sp)
(translation_unit "bool FUN_0001f888(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(param_1);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}\n\n" (function_definition "bool FUN_0001f888(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(param_1);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}" primitive_type (function_declarator "FUN_0001f888(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(param_1);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00036360)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00036360)()" (parenthesized_expression "(*(code *)PTR___errno_location_00036360)" ( (pointer_expression "*(code *)PTR___errno_location_00036360" * (cast_expression "(code *)PTR___errno_location_00036360" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (if_statement "if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 4) == '\0')" ( (binary_expression "*(char *)(param_1 + 4) == '\0'" (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = FUN_0001f3d0(0);\n  }" { (expression_statement "iVar2 = FUN_0001f3d0(0);" (assignment_expression "iVar2 = FUN_0001f3d0(0)" identifier = (call_expression "FUN_0001f3d0(0)" identifier (argument_list "(0)" ( number_literal )))) ;) }) (else_clause "else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }" else (compound_statement "{\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }" { (expression_statement "iVar2 = FUN_0001f3d0(param_1 + 5);" (assignment_expression "iVar2 = FUN_0001f3d0(param_1 + 5)" identifier = (call_expression "FUN_0001f3d0(param_1 + 5)" identifier (argument_list "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) ;) }))) (if_statement "if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_tzset_000363d4)();\n  }" { (expression_statement "(*(code *)PTR_tzset_000363d4)();" (call_expression "(*(code *)PTR_tzset_000363d4)()" (parenthesized_expression "(*(code *)PTR_tzset_000363d4)" ( (pointer_expression "*(code *)PTR_tzset_000363d4" * (cast_expression "(code *)PTR_tzset_000363d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n    uVar3 = *puVar1;\n  }" else (compound_statement "{\n    uVar3 = *puVar1;\n  }" { (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) }))) (expression_statement "tzfree(param_1);" (call_expression "tzfree(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })))
(translation_unit "_Bool revert_tz(timezone_t tz)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (tz->tz_is_set == '\0') {\n    iVar2 = setenv_TZ((char *)0x0);\n  }\n  else {\n    iVar2 = setenv_TZ(&tz->field_0x5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(tz);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}\n\n" (function_definition "_Bool revert_tz(timezone_t tz)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (tz->tz_is_set == '\0') {\n    iVar2 = setenv_TZ((char *)0x0);\n  }\n  else {\n    iVar2 = setenv_TZ(&tz->field_0x5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(tz);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}" type_identifier (function_declarator "revert_tz(timezone_t tz)" identifier (parameter_list "(timezone_t tz)" ( (parameter_declaration "timezone_t tz" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (tz->tz_is_set == '\0') {\n    iVar2 = setenv_TZ((char *)0x0);\n  }\n  else {\n    iVar2 = setenv_TZ(&tz->field_0x5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(tz);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00036360)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00036360)()" (parenthesized_expression "(*(code *)PTR___errno_location_00036360)" ( (pointer_expression "*(code *)PTR___errno_location_00036360" * (cast_expression "(code *)PTR___errno_location_00036360" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (if_statement "if (tz->tz_is_set == '\0') {\n    iVar2 = setenv_TZ((char *)0x0);\n  }\n  else {\n    iVar2 = setenv_TZ(&tz->field_0x5);\n  }" if (parenthesized_expression "(tz->tz_is_set == '\0')" ( (binary_expression "tz->tz_is_set == '\0'" (field_expression "tz->tz_is_set" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = setenv_TZ((char *)0x0);\n  }" { (expression_statement "iVar2 = setenv_TZ((char *)0x0);" (assignment_expression "iVar2 = setenv_TZ((char *)0x0)" identifier = (call_expression "setenv_TZ((char *)0x0)" identifier (argument_list "((char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) }) (else_clause "else {\n    iVar2 = setenv_TZ(&tz->field_0x5);\n  }" else (compound_statement "{\n    iVar2 = setenv_TZ(&tz->field_0x5);\n  }" { (expression_statement "iVar2 = setenv_TZ(&tz->field_0x5);" (assignment_expression "iVar2 = setenv_TZ(&tz->field_0x5)" identifier = (call_expression "setenv_TZ(&tz->field_0x5)" identifier (argument_list "(&tz->field_0x5)" ( (pointer_expression "&tz->field_0x5" & (field_expression "tz->field_0x5" identifier -> field_identifier)) )))) ;) }))) (if_statement "if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_tzset_000363d4)();\n  }" { (expression_statement "(*(code *)PTR_tzset_000363d4)();" (call_expression "(*(code *)PTR_tzset_000363d4)()" (parenthesized_expression "(*(code *)PTR_tzset_000363d4)" ( (pointer_expression "*(code *)PTR_tzset_000363d4" * (cast_expression "(code *)PTR_tzset_000363d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n    uVar3 = *puVar1;\n  }" else (compound_statement "{\n    uVar3 = *puVar1;\n  }" { (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) }))) (expression_statement "tzfree(tz);" (call_expression "tzfree(tz)" identifier (argument_list "(tz)" ( identifier ))) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })))
(translation_unit "bool FUN_0001f888(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(param_1);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}\n\n" (function_definition "bool FUN_0001f888(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(param_1);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}" primitive_type (function_declarator "FUN_0001f888(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(param_1);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00036360)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00036360)()" (parenthesized_expression "(*(code *)PTR___errno_location_00036360)" ( (pointer_expression "*(code *)PTR___errno_location_00036360" * (cast_expression "(code *)PTR___errno_location_00036360" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (if_statement "if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 4) == '\0')" ( (binary_expression "*(char *)(param_1 + 4) == '\0'" (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = FUN_0001f3d0(0);\n  }" { (expression_statement "iVar2 = FUN_0001f3d0(0);" (assignment_expression "iVar2 = FUN_0001f3d0(0)" identifier = (call_expression "FUN_0001f3d0(0)" identifier (argument_list "(0)" ( number_literal )))) ;) }) (else_clause "else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }" else (compound_statement "{\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }" { (expression_statement "iVar2 = FUN_0001f3d0(param_1 + 5);" (assignment_expression "iVar2 = FUN_0001f3d0(param_1 + 5)" identifier = (call_expression "FUN_0001f3d0(param_1 + 5)" identifier (argument_list "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) ;) }))) (if_statement "if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_tzset_000363d4)();\n  }" { (expression_statement "(*(code *)PTR_tzset_000363d4)();" (call_expression "(*(code *)PTR_tzset_000363d4)()" (parenthesized_expression "(*(code *)PTR_tzset_000363d4)" ( (pointer_expression "*(code *)PTR_tzset_000363d4" * (cast_expression "(code *)PTR_tzset_000363d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n    uVar3 = *puVar1;\n  }" else (compound_statement "{\n    uVar3 = *puVar1;\n  }" { (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) }))) (expression_statement "tzfree(param_1);" (call_expression "tzfree(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression 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 ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return (binary_expression IDENT == LIT) ;) })))
(function_definition "bool FUN_0001f888(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(param_1);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}" (primitive_type "bool") (function_declarator "FUN_0001f888(int param_1)" (identifier "FUN_0001f888") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();\n  uVar3 = *puVar1;\n  if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }\n  if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }\n  tzfree(param_1);\n  *puVar1 = uVar3;\n  return iVar2 == 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00036360)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00036360)()" (parenthesized_expression "(*(code *)PTR___errno_location_00036360)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00036360" (* "*") (cast_expression "(code *)PTR___errno_location_00036360" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00036360"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" (identifier "uVar3") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (if_statement "if (*(char *)(param_1 + 4) == '\0') {\n    iVar2 = FUN_0001f3d0(0);\n  }\n  else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 4) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 4) == '\0'" (pointer_expression "*(char *)(param_1 + 4)" (* "*") (cast_expression "(char *)(param_1 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = FUN_0001f3d0(0);\n  }" ({ "{") (expression_statement "iVar2 = FUN_0001f3d0(0);" (assignment_expression "iVar2 = FUN_0001f3d0(0)" (identifier "iVar2") (= "=") (call_expression "FUN_0001f3d0(0)" (identifier "FUN_0001f3d0") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }" (else "else") (compound_statement "{\n    iVar2 = FUN_0001f3d0(param_1 + 5);\n  }" ({ "{") (expression_statement "iVar2 = FUN_0001f3d0(param_1 + 5);" (assignment_expression "iVar2 = FUN_0001f3d0(param_1 + 5)" (identifier "iVar2") (= "=") (call_expression "FUN_0001f3d0(param_1 + 5)" (identifier "FUN_0001f3d0") (argument_list "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar2 == 0) {\n    (*(code *)PTR_tzset_000363d4)();\n  }\n  else {\n    uVar3 = *puVar1;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_tzset_000363d4)();\n  }" ({ "{") (expression_statement "(*(code *)PTR_tzset_000363d4)();" (call_expression "(*(code *)PTR_tzset_000363d4)()" (parenthesized_expression "(*(code *)PTR_tzset_000363d4)" (( "(") (pointer_expression "*(code *)PTR_tzset_000363d4" (* "*") (cast_expression "(code *)PTR_tzset_000363d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_tzset_000363d4"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = *puVar1;\n  }" (else "else") (compound_statement "{\n    uVar3 = *puVar1;\n  }" ({ "{") (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" (identifier "uVar3") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (} "}")))) (expression_statement "tzfree(param_1);" (call_expression "tzfree(param_1)" (identifier "tzfree") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return iVar2 == 0;" (return "return") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) (; ";")) (} "}")))

type_1 function_1(type_2 tz)

{
  type_3 *puVar1;
  int var_2;
  type_3 uVar3;
  
  puVar1 = (type_3 *)(*(type_4 *)PTR___errno_location_00036360)();
  uVar3 = *puVar1;
  if (tz->tz_is_set == '\0') {
    var_2 = var_1((char *)0x0);
  }
  else {
    var_2 = var_1(&tz->field_0x5);
  }
  if (var_2 == 0) {
    (*(type_4 *)PTR_tzset_000363d4)();
  }
  else {
    uVar3 = *puVar1;
  }
  var_3(tz);
  *puVar1 = uVar3;
  return var_2 == 0;
}


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

bool MASKED(int param_1)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00036360)();
  uVar3 = *puVar1;
  if (*(char *)(param_1 + 4) == '\0') {
    iVar2 = FUN_0001f3d0(0);
  }
  else {
    iVar2 = FUN_0001f3d0(param_1 + 5);
  }
  if (iVar2 == 0) {
    (*(code *)PTR_tzset_000363d4)();
  }
  else {
    uVar3 = *puVar1;
  }
  tzfree(param_1);
  *puVar1 = uVar3;
  return iVar2 == 0;
}

