
int net_service_lookup(char *service)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(service,0);
  if (iVar1 != 0) {
    return (uint)*(ushort *)(iVar1 + 10);
  }
  return 0;
}



undefined2 net_service_lookup(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);
  if (iVar1 != 0) {
    return *(undefined2 *)(iVar1 + 10);
  }
  return 0;
}


lui gp,0x3
addiu gp,gp,0x60a0
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x755c(gp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
jalr t9
_or a1,zero,zero
beq v0,zero,0x00084308
_lw ra,0x1c(sp)
lhu v0,0xa(v0)
jr ra
_addiu sp,sp,0x20
or v0,zero,zero
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined2 net_service_lookup(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);\n  if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }\n  return 0;\n}\n\n" (function_definition "undefined2 net_service_lookup(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);\n  if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }\n  return 0;\n}" type_identifier (function_declarator "net_service_lookup(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);\n  if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);" (assignment_expression "iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0)" identifier = (call_expression "(*(code *)PTR_getservbyname_000b2e14)(param_1,0)" (parenthesized_expression "(*(code *)PTR_getservbyname_000b2e14)" ( (pointer_expression "*(code *)PTR_getservbyname_000b2e14" * (cast_expression "(code *)PTR_getservbyname_000b2e14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return *(undefined2 *)(iVar1 + 10);\n  }" { (return_statement "return *(undefined2 *)(iVar1 + 10);" return (pointer_expression "*(undefined2 *)(iVar1 + 10)" * (cast_expression "(undefined2 *)(iVar1 + 10)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int net_service_lookup(char *service)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(service,0);\n  if (iVar1 != 0) {\n    return (uint)*(ushort *)(iVar1 + 10);\n  }\n  return 0;\n}\n\n" (function_definition "int net_service_lookup(char *service)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(service,0);\n  if (iVar1 != 0) {\n    return (uint)*(ushort *)(iVar1 + 10);\n  }\n  return 0;\n}" primitive_type (function_declarator "net_service_lookup(char *service)" identifier (parameter_list "(char *service)" ( (parameter_declaration "char *service" primitive_type (pointer_declarator "*service" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(service,0);\n  if (iVar1 != 0) {\n    return (uint)*(ushort *)(iVar1 + 10);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_getservbyname_000b2e14)(service,0);" (assignment_expression "iVar1 = (*(code *)PTR_getservbyname_000b2e14)(service,0)" identifier = (call_expression "(*(code *)PTR_getservbyname_000b2e14)(service,0)" (parenthesized_expression "(*(code *)PTR_getservbyname_000b2e14)" ( (pointer_expression "*(code *)PTR_getservbyname_000b2e14" * (cast_expression "(code *)PTR_getservbyname_000b2e14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(service,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    return (uint)*(ushort *)(iVar1 + 10);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return (uint)*(ushort *)(iVar1 + 10);\n  }" { (return_statement "return (uint)*(ushort *)(iVar1 + 10);" return (binary_expression "(uint)*(ushort *)(iVar1 + 10)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(iVar1 + 10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined2 net_service_lookup(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);\n  if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }\n  return 0;\n}\n\n" (function_definition "undefined2 net_service_lookup(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);\n  if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }\n  return 0;\n}" type_identifier (function_declarator "net_service_lookup(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);\n  if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);" (assignment_expression "iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0)" identifier = (call_expression "(*(code *)PTR_getservbyname_000b2e14)(param_1,0)" (parenthesized_expression "(*(code *)PTR_getservbyname_000b2e14)" ( (pointer_expression "*(code *)PTR_getservbyname_000b2e14" * (cast_expression "(code *)PTR_getservbyname_000b2e14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return *(undefined2 *)(iVar1 + 10);\n  }" { (return_statement "return *(undefined2 *)(iVar1 + 10);" return (pointer_expression "*(undefined2 *)(iVar1 + 10)" * (cast_expression "(undefined2 *)(iVar1 + 10)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(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 ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined2 net_service_lookup(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);\n  if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }\n  return 0;\n}" (type_identifier "undefined2") (function_declarator "net_service_lookup(undefined4 param_1)" (identifier "net_service_lookup") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);\n  if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);" (assignment_expression "iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_getservbyname_000b2e14)(param_1,0)" (parenthesized_expression "(*(code *)PTR_getservbyname_000b2e14)" (( "(") (pointer_expression "*(code *)PTR_getservbyname_000b2e14" (* "*") (cast_expression "(code *)PTR_getservbyname_000b2e14" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getservbyname_000b2e14"))) () ")")) (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    return *(undefined2 *)(iVar1 + 10);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return *(undefined2 *)(iVar1 + 10);\n  }" ({ "{") (return_statement "return *(undefined2 *)(iVar1 + 10);" (return "return") (pointer_expression "*(undefined2 *)(iVar1 + 10)" (* "*") (cast_expression "(undefined2 *)(iVar1 + 10)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 10)" (( "(") (binary_expression "iVar1 + 10" (identifier "iVar1") (+ "+") (number_literal "10")) () ")")))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(char *service)

{
  int var_1;
  
  var_1 = (*(type_1 *)PTR_getservbyname_000b2e14)(service,0);
  if (var_1 != 0) {
    return (uint)*(type_2 *)(var_1 + 10);
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) 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 (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (number_literal)))))

undefined2 MASKED(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_getservbyname_000b2e14)(param_1,0);
  if (iVar1 != 0) {
    return *(undefined2 *)(iVar1 + 10);
  }
  return 0;
}

