
_Bool is_valid_ip_address(char *name)

{
  undefined3 extraout_var;
  int iVar1;
  _Bool _Var2;
  char *end;
  
  iVar1 = (*(code *)PTR_strlen_000afc68)();
  end = name + iVar1;
  _Var2 = is_valid_ipv4_address(name,end);
  if (CONCAT31(extraout_var,_Var2) == 0) {
    _Var2 = is_valid_ipv6_address(name,end);
    return _Var2;
  }
  return _Var2;
}



void is_valid_ip_address(int param_1)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_strlen_000afc68)();
  iVar1 = FUN_0002f300(param_1,param_1 + iVar1);
  if (iVar1 == 0) {
    is_valid_ipv6_address(param_1);
    return;
  }
  return;
}


lui gp,0x8
addiu gp,gp,0x6fcc
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x77c8(gp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
sw s0,0x18(sp)
jalr t9
_or s0,a0,zero
or a0,s0,zero
lw gp,0x10(sp)
addu t4,s0,v0
lw t9,-0x7c70(gp)
addiu t9,t9,-0xd00
bal 0x0002f300
_or a1,t4,zero
bne v0,zero,0x000304c8
_lw gp,0x10(sp)
lw ra,0x1c(sp)
or a0,s0,zero
lw t9,-0x7c34(gp)
lw s0,0x18(sp)
b 0x0002f788
_addiu sp,sp,0x20
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void is_valid_ip_address(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  iVar1 = FUN_0002f300(param_1,param_1 + iVar1);\n  if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void is_valid_ip_address(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  iVar1 = FUN_0002f300(param_1,param_1 + iVar1);\n  if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "is_valid_ip_address(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  iVar1 = FUN_0002f300(param_1,param_1 + iVar1);\n  if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_000afc68)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000afc68)()" identifier = (call_expression "(*(code *)PTR_strlen_000afc68)()" (parenthesized_expression "(*(code *)PTR_strlen_000afc68)" ( (pointer_expression "*(code *)PTR_strlen_000afc68" * (cast_expression "(code *)PTR_strlen_000afc68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar1 = FUN_0002f300(param_1,param_1 + iVar1);" (assignment_expression "iVar1 = FUN_0002f300(param_1,param_1 + iVar1)" identifier = (call_expression "FUN_0002f300(param_1,param_1 + iVar1)" identifier (argument_list "(param_1,param_1 + iVar1)" ( identifier , (binary_expression "param_1 + iVar1" identifier + identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    is_valid_ipv6_address(param_1);\n    return;\n  }" { (expression_statement "is_valid_ipv6_address(param_1);" (call_expression "is_valid_ipv6_address(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "_Bool is_valid_ip_address(char *name)\n\n{\n  undefined3 extraout_var;\n  int iVar1;\n  _Bool _Var2;\n  char *end;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  end = name + iVar1;\n  _Var2 = is_valid_ipv4_address(name,end);\n  if (CONCAT31(extraout_var,_Var2) == 0) {\n    _Var2 = is_valid_ipv6_address(name,end);\n    return _Var2;\n  }\n  return _Var2;\n}\n\n" (function_definition "_Bool is_valid_ip_address(char *name)\n\n{\n  undefined3 extraout_var;\n  int iVar1;\n  _Bool _Var2;\n  char *end;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  end = name + iVar1;\n  _Var2 = is_valid_ipv4_address(name,end);\n  if (CONCAT31(extraout_var,_Var2) == 0) {\n    _Var2 = is_valid_ipv6_address(name,end);\n    return _Var2;\n  }\n  return _Var2;\n}" type_identifier (function_declarator "is_valid_ip_address(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  undefined3 extraout_var;\n  int iVar1;\n  _Bool _Var2;\n  char *end;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  end = name + iVar1;\n  _Var2 = is_valid_ipv4_address(name,end);\n  if (CONCAT31(extraout_var,_Var2) == 0) {\n    _Var2 = is_valid_ipv6_address(name,end);\n    return _Var2;\n  }\n  return _Var2;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "char *end;" primitive_type (pointer_declarator "*end" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_000afc68)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000afc68)()" identifier = (call_expression "(*(code *)PTR_strlen_000afc68)()" (parenthesized_expression "(*(code *)PTR_strlen_000afc68)" ( (pointer_expression "*(code *)PTR_strlen_000afc68" * (cast_expression "(code *)PTR_strlen_000afc68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "end = name + iVar1;" (assignment_expression "end = name + iVar1" identifier = (binary_expression "name + iVar1" identifier + identifier)) ;) (expression_statement "_Var2 = is_valid_ipv4_address(name,end);" (assignment_expression "_Var2 = is_valid_ipv4_address(name,end)" identifier = (call_expression "is_valid_ipv4_address(name,end)" identifier (argument_list "(name,end)" ( identifier , identifier )))) ;) (if_statement "if (CONCAT31(extraout_var,_Var2) == 0) {\n    _Var2 = is_valid_ipv6_address(name,end);\n    return _Var2;\n  }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var2) == 0)" ( (binary_expression "CONCAT31(extraout_var,_Var2) == 0" (call_expression "CONCAT31(extraout_var,_Var2)" identifier (argument_list "(extraout_var,_Var2)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n    _Var2 = is_valid_ipv6_address(name,end);\n    return _Var2;\n  }" { (expression_statement "_Var2 = is_valid_ipv6_address(name,end);" (assignment_expression "_Var2 = is_valid_ipv6_address(name,end)" identifier = (call_expression "is_valid_ipv6_address(name,end)" identifier (argument_list "(name,end)" ( identifier , identifier )))) ;) (return_statement "return _Var2;" return identifier ;) })) (return_statement "return _Var2;" return identifier ;) })))
(translation_unit "void is_valid_ip_address(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  iVar1 = FUN_0002f300(param_1,param_1 + iVar1);\n  if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void is_valid_ip_address(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  iVar1 = FUN_0002f300(param_1,param_1 + iVar1);\n  if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "is_valid_ip_address(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  iVar1 = FUN_0002f300(param_1,param_1 + iVar1);\n  if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_000afc68)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000afc68)()" identifier = (call_expression "(*(code *)PTR_strlen_000afc68)()" (parenthesized_expression "(*(code *)PTR_strlen_000afc68)" ( (pointer_expression "*(code *)PTR_strlen_000afc68" * (cast_expression "(code *)PTR_strlen_000afc68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar1 = FUN_0002f300(param_1,param_1 + iVar1);" (assignment_expression "iVar1 = FUN_0002f300(param_1,param_1 + iVar1)" identifier = (call_expression "FUN_0002f300(param_1,param_1 + iVar1)" identifier (argument_list "(param_1,param_1 + iVar1)" ( identifier , (binary_expression "param_1 + iVar1" identifier + identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    is_valid_ipv6_address(param_1);\n    return;\n  }" { (expression_statement "is_valid_ipv6_address(param_1);" (call_expression "is_valid_ipv6_address(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void is_valid_ip_address(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  iVar1 = FUN_0002f300(param_1,param_1 + iVar1);\n  if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "is_valid_ip_address(int param_1)" (identifier "is_valid_ip_address") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_000afc68)();\n  iVar1 = FUN_0002f300(param_1,param_1 + iVar1);\n  if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strlen_000afc68)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000afc68)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_000afc68)()" (parenthesized_expression "(*(code *)PTR_strlen_000afc68)" (( "(") (pointer_expression "*(code *)PTR_strlen_000afc68" (* "*") (cast_expression "(code *)PTR_strlen_000afc68" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000afc68"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = FUN_0002f300(param_1,param_1 + iVar1);" (assignment_expression "iVar1 = FUN_0002f300(param_1,param_1 + iVar1)" (identifier "iVar1") (= "=") (call_expression "FUN_0002f300(param_1,param_1 + iVar1)" (identifier "FUN_0002f300") (argument_list "(param_1,param_1 + iVar1)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_1 + iVar1" (identifier "param_1") (+ "+") (identifier "iVar1")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    is_valid_ipv6_address(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    is_valid_ipv6_address(param_1);\n    return;\n  }" ({ "{") (expression_statement "is_valid_ipv6_address(param_1);" (call_expression "is_valid_ipv6_address(param_1)" (identifier "is_valid_ipv6_address") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_1 function_1(char *var_1)

{
  type_2 extraout_var;
  int var_2;
  type_1 _Var2;
  char *end;
  
  var_2 = (*(type_3 *)PTR_strlen_000afc68)();
  end = var_1 + var_2;
  _Var2 = var_3(var_1,end);
  if (var_4(extraout_var,_Var2) == 0) {
    _Var2 = var_5(var_1,end);
    return _Var2;
  }
  return _Var2;
}


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

void MASKED(int param_1)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_strlen_000afc68)();
  iVar1 = FUN_0002f300(param_1,param_1 + iVar1);
  if (iVar1 == 0) {
    is_valid_ipv6_address(param_1);
    return;
  }
  return;
}

