
_Bool revert_tz(timezone_t tz)

{
  undefined4 *puVar1;
  int iVar2;
  char *tz_00;
  bool bVar3;
  undefined4 uVar4;
  
  if (tz == (timezone_t)0x1) {
    bVar3 = true;
  }
  else {
    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();
    uVar4 = *puVar1;
    tz_00 = (char *)0x0;
    if (tz->tz_is_set != '\0') {
      tz_00 = &tz->field_0x5;
    }
    iVar2 = setenv_TZ(tz_00);
    bVar3 = iVar2 == 0;
    if (bVar3) {
      (*(code *)PTR_tzset_0004a59c)();
    }
    else {
      uVar4 = *puVar1;
    }
    tzfree(tz);
    *puVar1 = uVar4;
  }
  return bVar3;
}



bool FUN_00030cbc(int param_1)

{
  undefined4 *puVar1;
  int iVar2;
  bool bVar3;
  undefined4 uVar4;
  
  if (param_1 == 1) {
    bVar3 = true;
  }
  else {
    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();
    uVar4 = *puVar1;
    iVar2 = 0;
    if (*(char *)(param_1 + 4) != '\0') {
      iVar2 = param_1 + 5;
    }
    iVar2 = FUN_000307e0(iVar2);
    bVar3 = iVar2 == 0;
    if (bVar3) {
      (*(code *)PTR_tzset_0004a59c)();
    }
    else {
      uVar4 = *puVar1;
    }
    tzfree(param_1);
    *puVar1 = uVar4;
  }
  return bVar3;
}


lui gp,0x2
addiu gp,gp,0x1524
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
li v0,0x1
beq a0,v0,0x00030d88
_or s0,a0,zero
lw t9,-0x7cc8(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s2,v0,zero
lw s3,0x0(v0)
lb v0,0x4(s0)
beq v0,zero,0x00030d18
_or a0,zero,zero
addiu a0,s0,0x5
lw t9,-0x7fc8(gp)
addiu t9,t9,0x7e0
bal 0x000307e0
_nop
lw gp,0x10(sp)
beq v0,zero,0x00030d74
_lw t9,-0x7c44(gp)
lw s3,0x0(s2)
or s1,zero,zero
or a0,s0,zero
lw t9,-0x7dc4(gp)
bal 0x00030b20
_nop
lw gp,0x10(sp)
sw s3,0x0(s2)
or v0,s1,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
jalr t9
_nop
lw gp,0x10(sp)
b 0x00030d3c
_li s1,0x1
b 0x00030d54
_li s1,0x1
(translation_unit "bool FUN_00030cbc(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  bool bVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\n}\n\n" (function_definition "bool FUN_00030cbc(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  bool bVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\n}" primitive_type (function_declarator "FUN_00030cbc(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  bool bVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n    bVar3 = true;\n  }" { (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) }) (else_clause "else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }" else (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0004a518)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0004a518)()" (parenthesized_expression "(*(code *)PTR___errno_location_0004a518)" ( (pointer_expression "*(code *)PTR___errno_location_0004a518" * (cast_expression "(code *)PTR___errno_location_0004a518" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = 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 = param_1 + 5;\n    }" { (expression_statement "iVar2 = param_1 + 5;" (assignment_expression "iVar2 = param_1 + 5" identifier = (binary_expression "param_1 + 5" identifier + number_literal)) ;) })) (expression_statement "iVar2 = FUN_000307e0(iVar2);" (assignment_expression "iVar2 = FUN_000307e0(iVar2)" identifier = (call_expression "FUN_000307e0(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "bVar3 = iVar2 == 0;" (assignment_expression "bVar3 = iVar2 == 0" identifier = (binary_expression "iVar2 == 0" identifier == number_literal)) ;) (if_statement "if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n      (*(code *)PTR_tzset_0004a59c)();\n    }" { (expression_statement "(*(code *)PTR_tzset_0004a59c)();" (call_expression "(*(code *)PTR_tzset_0004a59c)()" (parenthesized_expression "(*(code *)PTR_tzset_0004a59c)" ( (pointer_expression "*(code *)PTR_tzset_0004a59c" * (cast_expression "(code *)PTR_tzset_0004a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n      uVar4 = *puVar1;\n    }" else (compound_statement "{\n      uVar4 = *puVar1;\n    }" { (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *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 = uVar4;" (assignment_expression "*puVar1 = uVar4" (pointer_expression "*puVar1" * identifier) = identifier) ;) }))) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit "_Bool revert_tz(timezone_t tz)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *tz_00;\n  bool bVar3;\n  undefined4 uVar4;\n  \n  if (tz == (timezone_t)0x1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    tz_00 = (char *)0x0;\n    if (tz->tz_is_set != '\0') {\n      tz_00 = &tz->field_0x5;\n    }\n    iVar2 = setenv_TZ(tz_00);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(tz);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\n}\n\n" (function_definition "_Bool revert_tz(timezone_t tz)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *tz_00;\n  bool bVar3;\n  undefined4 uVar4;\n  \n  if (tz == (timezone_t)0x1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    tz_00 = (char *)0x0;\n    if (tz->tz_is_set != '\0') {\n      tz_00 = &tz->field_0x5;\n    }\n    iVar2 = setenv_TZ(tz_00);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(tz);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\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  char *tz_00;\n  bool bVar3;\n  undefined4 uVar4;\n  \n  if (tz == (timezone_t)0x1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    tz_00 = (char *)0x0;\n    if (tz->tz_is_set != '\0') {\n      tz_00 = &tz->field_0x5;\n    }\n    iVar2 = setenv_TZ(tz_00);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(tz);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *tz_00;" primitive_type (pointer_declarator "*tz_00" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (tz == (timezone_t)0x1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    tz_00 = (char *)0x0;\n    if (tz->tz_is_set != '\0') {\n      tz_00 = &tz->field_0x5;\n    }\n    iVar2 = setenv_TZ(tz_00);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(tz);\n    *puVar1 = uVar4;\n  }" if (parenthesized_expression "(tz == (timezone_t)0x1)" ( (binary_expression "tz == (timezone_t)0x1" identifier == (cast_expression "(timezone_t)0x1" ( (type_descriptor "timezone_t" type_identifier) ) number_literal)) )) (compound_statement "{\n    bVar3 = true;\n  }" { (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) }) (else_clause "else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    tz_00 = (char *)0x0;\n    if (tz->tz_is_set != '\0') {\n      tz_00 = &tz->field_0x5;\n    }\n    iVar2 = setenv_TZ(tz_00);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(tz);\n    *puVar1 = uVar4;\n  }" else (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    tz_00 = (char *)0x0;\n    if (tz->tz_is_set != '\0') {\n      tz_00 = &tz->field_0x5;\n    }\n    iVar2 = setenv_TZ(tz_00);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(tz);\n    *puVar1 = uVar4;\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0004a518)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0004a518)()" (parenthesized_expression "(*(code *)PTR___errno_location_0004a518)" ( (pointer_expression "*(code *)PTR___errno_location_0004a518" * (cast_expression "(code *)PTR___errno_location_0004a518" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "tz_00 = (char *)0x0;" (assignment_expression "tz_00 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (tz->tz_is_set != '\0') {\n      tz_00 = &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      tz_00 = &tz->field_0x5;\n    }" { (expression_statement "tz_00 = &tz->field_0x5;" (assignment_expression "tz_00 = &tz->field_0x5" identifier = (pointer_expression "&tz->field_0x5" & (field_expression "tz->field_0x5" identifier -> field_identifier))) ;) })) (expression_statement "iVar2 = setenv_TZ(tz_00);" (assignment_expression "iVar2 = setenv_TZ(tz_00)" identifier = (call_expression "setenv_TZ(tz_00)" identifier (argument_list "(tz_00)" ( identifier )))) ;) (expression_statement "bVar3 = iVar2 == 0;" (assignment_expression "bVar3 = iVar2 == 0" identifier = (binary_expression "iVar2 == 0" identifier == number_literal)) ;) (if_statement "if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n      (*(code *)PTR_tzset_0004a59c)();\n    }" { (expression_statement "(*(code *)PTR_tzset_0004a59c)();" (call_expression "(*(code *)PTR_tzset_0004a59c)()" (parenthesized_expression "(*(code *)PTR_tzset_0004a59c)" ( (pointer_expression "*(code *)PTR_tzset_0004a59c" * (cast_expression "(code *)PTR_tzset_0004a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n      uVar4 = *puVar1;\n    }" else (compound_statement "{\n      uVar4 = *puVar1;\n    }" { (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) }))) (expression_statement "tzfree(tz);" (call_expression "tzfree(tz)" identifier (argument_list "(tz)" ( identifier ))) ;) (expression_statement "*puVar1 = uVar4;" (assignment_expression "*puVar1 = uVar4" (pointer_expression "*puVar1" * identifier) = identifier) ;) }))) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit "bool FUN_00030cbc(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  bool bVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\n}\n\n" (function_definition "bool FUN_00030cbc(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  bool bVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\n}" primitive_type (function_declarator "FUN_00030cbc(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  bool bVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n    bVar3 = true;\n  }" { (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) }) (else_clause "else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }" else (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0004a518)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0004a518)()" (parenthesized_expression "(*(code *)PTR___errno_location_0004a518)" ( (pointer_expression "*(code *)PTR___errno_location_0004a518" * (cast_expression "(code *)PTR___errno_location_0004a518" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = 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 = param_1 + 5;\n    }" { (expression_statement "iVar2 = param_1 + 5;" (assignment_expression "iVar2 = param_1 + 5" identifier = (binary_expression "param_1 + 5" identifier + number_literal)) ;) })) (expression_statement "iVar2 = FUN_000307e0(iVar2);" (assignment_expression "iVar2 = FUN_000307e0(iVar2)" identifier = (call_expression "FUN_000307e0(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "bVar3 = iVar2 == 0;" (assignment_expression "bVar3 = iVar2 == 0" identifier = (binary_expression "iVar2 == 0" identifier == number_literal)) ;) (if_statement "if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n      (*(code *)PTR_tzset_0004a59c)();\n    }" { (expression_statement "(*(code *)PTR_tzset_0004a59c)();" (call_expression "(*(code *)PTR_tzset_0004a59c)()" (parenthesized_expression "(*(code *)PTR_tzset_0004a59c)" ( (pointer_expression "*(code *)PTR_tzset_0004a59c" * (cast_expression "(code *)PTR_tzset_0004a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n      uVar4 = *puVar1;\n    }" else (compound_statement "{\n      uVar4 = *puVar1;\n    }" { (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *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 = uVar4;" (assignment_expression "*puVar1 = uVar4" (pointer_expression "*puVar1" * identifier) = identifier) ;) }))) (return_statement "return bVar3;" return identifier ;) })))
(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 ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (compound_statement { (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)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (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 IDENT ;) })))
(function_definition "bool FUN_00030cbc(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  bool bVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\n}" (primitive_type "bool") (function_declarator "FUN_00030cbc(int param_1)" (identifier "FUN_00030cbc") (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  bool bVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }\n  return bVar3;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (if_statement "if (param_1 == 1) {\n    bVar3 = true;\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }" (if "if") (parenthesized_expression "(param_1 == 1)" (( "(") (binary_expression "param_1 == 1" (identifier "param_1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    bVar3 = true;\n  }" ({ "{") (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" (identifier "bVar3") (= "=") (true "true")) (; ";")) (} "}")) (else_clause "else {\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }" (else "else") (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();\n    uVar4 = *puVar1;\n    iVar2 = 0;\n    if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = param_1 + 5;\n    }\n    iVar2 = FUN_000307e0(iVar2);\n    bVar3 = iVar2 == 0;\n    if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }\n    tzfree(param_1);\n    *puVar1 = uVar4;\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0004a518)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0004a518)()" (parenthesized_expression "(*(code *)PTR___errno_location_0004a518)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0004a518" (* "*") (cast_expression "(code *)PTR___errno_location_0004a518" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0004a518"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" (identifier "uVar4") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)(param_1 + 4) != '\0') {\n      iVar2 = 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 = param_1 + 5;\n    }" ({ "{") (expression_statement "iVar2 = param_1 + 5;" (assignment_expression "iVar2 = param_1 + 5" (identifier "iVar2") (= "=") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5"))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_000307e0(iVar2);" (assignment_expression "iVar2 = FUN_000307e0(iVar2)" (identifier "iVar2") (= "=") (call_expression "FUN_000307e0(iVar2)" (identifier "FUN_000307e0") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "bVar3 = iVar2 == 0;" (assignment_expression "bVar3 = iVar2 == 0" (identifier "bVar3") (= "=") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar3) {\n      (*(code *)PTR_tzset_0004a59c)();\n    }\n    else {\n      uVar4 = *puVar1;\n    }" (if "if") (parenthesized_expression "(bVar3)" (( "(") (identifier "bVar3") () ")")) (compound_statement "{\n      (*(code *)PTR_tzset_0004a59c)();\n    }" ({ "{") (expression_statement "(*(code *)PTR_tzset_0004a59c)();" (call_expression "(*(code *)PTR_tzset_0004a59c)()" (parenthesized_expression "(*(code *)PTR_tzset_0004a59c)" (( "(") (pointer_expression "*(code *)PTR_tzset_0004a59c" (* "*") (cast_expression "(code *)PTR_tzset_0004a59c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_tzset_0004a59c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      uVar4 = *puVar1;\n    }" (else "else") (compound_statement "{\n      uVar4 = *puVar1;\n    }" ({ "{") (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" (identifier "uVar4") (= "=") (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 = uVar4;" (assignment_expression "*puVar1 = uVar4" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar4")) (; ";")) (} "}")))) (return_statement "return bVar3;" (return "return") (identifier "bVar3") (; ";")) (} "}")))
(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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true)))) alternative: (else_clause (compound_statement (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)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (identifier)) 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 (identifier)))))

bool MASKED(int param_1)

{
  undefined4 *puVar1;
  int iVar2;
  bool bVar3;
  undefined4 uVar4;
  
  if (param_1 == 1) {
    bVar3 = true;
  }
  else {
    puVar1 = (undefined4 *)(*(code *)PTR___errno_location_0004a518)();
    uVar4 = *puVar1;
    iVar2 = 0;
    if (*(char *)(param_1 + 4) != '\0') {
      iVar2 = param_1 + 5;
    }
    iVar2 = FUN_000307e0(iVar2);
    bVar3 = iVar2 == 0;
    if (bVar3) {
      (*(code *)PTR_tzset_0004a59c)();
    }
    else {
      uVar4 = *puVar1;
    }
    tzfree(param_1);
    *puVar1 = uVar4;
  }
  return bVar3;
}

