
int setenv_TZ(char *tz)

{
  int iVar1;
  
  if (tz == (char *)0x0) {
    iVar1 = unsetenv("TZ");
  }
  else {
    iVar1 = setenv("TZ",tz,1);
  }
  return iVar1;
}



void FUN_0010defb(char *param_1)

{
  if (param_1 == (char *)0x0) {
    unsetenv("TZ");
  }
  else {
    setenv("TZ",param_1,1);
  }
  return;
}


SUB RSP,0x8
TEST RDI,RDI
JZ 0x0010df1d
MOV EDX,0x1
MOV RSI,RDI
LEA RDI,[0x11310d]
CALL 0x001030f0
ADD RSP,0x8
RET
LEA RDI,[0x11310d]
CALL 0x001033d0
JMP 0x0010df18
(translation_unit "void FUN_0010defb(char *param_1)\n\n{\n  if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010defb(char *param_1)\n\n{\n  if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010defb(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }\n  return;\n}" { (if_statement "if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    unsetenv("TZ");\n  }" { (expression_statement "unsetenv("TZ");" (call_expression "unsetenv("TZ")" identifier (argument_list "("TZ")" ( (string_literal ""TZ"" " string_content ") ))) ;) }) (else_clause "else {\n    setenv("TZ",param_1,1);\n  }" else (compound_statement "{\n    setenv("TZ",param_1,1);\n  }" { (expression_statement "setenv("TZ",param_1,1);" (call_expression "setenv("TZ",param_1,1)" identifier (argument_list "("TZ",param_1,1)" ( (string_literal ""TZ"" " string_content ") , identifier , number_literal ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "int setenv_TZ(char *tz)\n\n{\n  int iVar1;\n  \n  if (tz == (char *)0x0) {\n    iVar1 = unsetenv("TZ");\n  }\n  else {\n    iVar1 = setenv("TZ",tz,1);\n  }\n  return iVar1;\n}\n\n" (function_definition "int setenv_TZ(char *tz)\n\n{\n  int iVar1;\n  \n  if (tz == (char *)0x0) {\n    iVar1 = unsetenv("TZ");\n  }\n  else {\n    iVar1 = setenv("TZ",tz,1);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "setenv_TZ(char *tz)" identifier (parameter_list "(char *tz)" ( (parameter_declaration "char *tz" primitive_type (pointer_declarator "*tz" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (tz == (char *)0x0) {\n    iVar1 = unsetenv("TZ");\n  }\n  else {\n    iVar1 = setenv("TZ",tz,1);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (tz == (char *)0x0) {\n    iVar1 = unsetenv("TZ");\n  }\n  else {\n    iVar1 = setenv("TZ",tz,1);\n  }" if (parenthesized_expression "(tz == (char *)0x0)" ( (binary_expression "tz == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = unsetenv("TZ");\n  }" { (expression_statement "iVar1 = unsetenv("TZ");" (assignment_expression "iVar1 = unsetenv("TZ")" identifier = (call_expression "unsetenv("TZ")" identifier (argument_list "("TZ")" ( (string_literal ""TZ"" " string_content ") )))) ;) }) (else_clause "else {\n    iVar1 = setenv("TZ",tz,1);\n  }" else (compound_statement "{\n    iVar1 = setenv("TZ",tz,1);\n  }" { (expression_statement "iVar1 = setenv("TZ",tz,1);" (assignment_expression "iVar1 = setenv("TZ",tz,1)" identifier = (call_expression "setenv("TZ",tz,1)" identifier (argument_list "("TZ",tz,1)" ( (string_literal ""TZ"" " string_content ") , identifier , number_literal )))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_0010defb(char *param_1)\n\n{\n  if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010defb(char *param_1)\n\n{\n  if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010defb(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }\n  return;\n}" { (if_statement "if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    unsetenv("TZ");\n  }" { (expression_statement "unsetenv("TZ");" (call_expression "unsetenv("TZ")" identifier (argument_list "("TZ")" ( (string_literal ""TZ"" " string_content ") ))) ;) }) (else_clause "else {\n    setenv("TZ",param_1,1);\n  }" else (compound_statement "{\n    setenv("TZ",param_1,1);\n  }" { (expression_statement "setenv("TZ",param_1,1);" (call_expression "setenv("TZ",param_1,1)" identifier (argument_list "("TZ",param_1,1)" ( (string_literal ""TZ"" " string_content ") , identifier , number_literal ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , LIT ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_0010defb(char *param_1)\n\n{\n  if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0010defb(char *param_1)" (identifier "FUN_0010defb") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 == (char *)0x0) {\n    unsetenv("TZ");\n  }\n  else {\n    setenv("TZ",param_1,1);\n  }" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    unsetenv("TZ");\n  }" ({ "{") (expression_statement "unsetenv("TZ");" (call_expression "unsetenv("TZ")" (identifier "unsetenv") (argument_list "("TZ")" (( "(") (string_literal ""TZ"" (" """) (string_content "TZ") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    setenv("TZ",param_1,1);\n  }" (else "else") (compound_statement "{\n    setenv("TZ",param_1,1);\n  }" ({ "{") (expression_statement "setenv("TZ",param_1,1);" (call_expression "setenv("TZ",param_1,1)" (identifier "setenv") (argument_list "("TZ",param_1,1)" (( "(") (string_literal ""TZ"" (" """) (string_content "TZ") (" """)) (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(char *var_1)

{
  int iVar1;
  
  if (var_1 == (char *)0x0) {
    iVar1 = var_2("TZ");
  }
  else {
    iVar1 = var_3("TZ",var_1,1);
  }
  return iVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (number_literal))))))) (return_statement))))

void MASKED(char *param_1)

{
  if (param_1 == (char *)0x0) {
    unsetenv("TZ");
  }
  else {
    setenv("TZ",param_1,1);
  }
  return;
}

