
void strip_trailing_dot(hostname *host)

{
  int iVar1;
  char *pcVar2;
  
  iVar1 = (*(code *)PTR_strlen_000a6ea8)();
  if ((iVar1 != 0) && (pcVar2 = (char *)((int)host + iVar1 + -1), *pcVar2 == '.')) {
    *pcVar2 = '\0';
    return;
  }
  return;
}



void FUN_0002dbe0(int param_1)

{
  int iVar1;
  char *pcVar2;
  
  iVar1 = (*(code *)PTR_strlen_000a6ea8)();
  if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {
    *pcVar2 = '\0';
    return;
  }
  return;
}


lui gp,0x8
addiu gp,gp,0x530
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7268(gp)
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
jalr t9
_or s0,a0,zero
beq v0,zero,0x0002dc28
_lw ra,0x1c(sp)
addiu v0,v0,-0x1
li v1,0x2e
addu v0,s0,v0
lb a0,0x0(v0)
beq a0,v1,0x0002dc34
_nop
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
sb zero,0x0(v0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_0002dbe0(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002dbe0(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002dbe0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_000a6ea8)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000a6ea8)()" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)()" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.'))" ( (binary_expression "(iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')" ( (comma_expression "pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.'" (assignment_expression "pcVar2 = (char *)(param_1 + iVar1 + -1)" identifier = (cast_expression "(char *)(param_1 + iVar1 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 + -1)" ( (binary_expression "param_1 + iVar1 + -1" (binary_expression "param_1 + iVar1" identifier + identifier) + number_literal) )))) , (binary_expression "*pcVar2 == '.'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'.'" ' character '))) ))) )) (compound_statement "{\n    *pcVar2 = '\0';\n    return;\n  }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void strip_trailing_dot(hostname *host)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)((int)host + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}\n\n" (function_definition "void strip_trailing_dot(hostname *host)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)((int)host + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "strip_trailing_dot(hostname *host)" identifier (parameter_list "(hostname *host)" ( (parameter_declaration "hostname *host" type_identifier (pointer_declarator "*host" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)((int)host + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_000a6ea8)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000a6ea8)()" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)()" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (pcVar2 = (char *)((int)host + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) && (pcVar2 = (char *)((int)host + iVar1 + -1), *pcVar2 == '.'))" ( (binary_expression "(iVar1 != 0) && (pcVar2 = (char *)((int)host + iVar1 + -1), *pcVar2 == '.')" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar2 = (char *)((int)host + iVar1 + -1), *pcVar2 == '.')" ( (comma_expression "pcVar2 = (char *)((int)host + iVar1 + -1), *pcVar2 == '.'" (assignment_expression "pcVar2 = (char *)((int)host + iVar1 + -1)" identifier = (cast_expression "(char *)((int)host + iVar1 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)host + iVar1 + -1)" ( (binary_expression "(int)host + iVar1 + -1" (binary_expression "(int)host + iVar1" (cast_expression "(int)host" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) , (binary_expression "*pcVar2 == '.'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'.'" ' character '))) ))) )) (compound_statement "{\n    *pcVar2 = '\0';\n    return;\n  }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002dbe0(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002dbe0(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002dbe0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_000a6ea8)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000a6ea8)()" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)()" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.'))" ( (binary_expression "(iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')" ( (comma_expression "pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.'" (assignment_expression "pcVar2 = (char *)(param_1 + iVar1 + -1)" identifier = (cast_expression "(char *)(param_1 + iVar1 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 + -1)" ( (binary_expression "param_1 + iVar1 + -1" (binary_expression "param_1 + iVar1" identifier + identifier) + number_literal) )))) , (binary_expression "*pcVar2 == '.'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'.'" ' character '))) ))) )) (compound_statement "{\n    *pcVar2 = '\0';\n    return;\n  }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (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 ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) , (binary_expression (pointer_expression * IDENT) == (char_literal ' character '))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0002dbe0(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002dbe0(int param_1)" (identifier "FUN_0002dbe0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_000a6ea8)();\n  if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strlen_000a6ea8)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000a6ea8)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_000a6ea8)()" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" (( "(") (pointer_expression "*(code *)PTR_strlen_000a6ea8" (* "*") (cast_expression "(code *)PTR_strlen_000a6ea8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000a6ea8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {\n    *pcVar2 = '\0';\n    return;\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.'))" (( "(") (binary_expression "(iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')" (( "(") (comma_expression "pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.'" (assignment_expression "pcVar2 = (char *)(param_1 + iVar1 + -1)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(param_1 + iVar1 + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar1 + -1)" (( "(") (binary_expression "param_1 + iVar1 + -1" (binary_expression "param_1 + iVar1" (identifier "param_1") (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-1")) () ")")))) (, ",") (binary_expression "*pcVar2 == '.'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'.'" (' "'") (character ".") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    *pcVar2 = '\0';\n    return;\n  }" ({ "{") (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(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)) (declaration type: (primitive_type) declarator: (pointer_declarator 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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (return_statement))) (return_statement))))

void MASKED(int param_1)

{
  int iVar1;
  char *pcVar2;
  
  iVar1 = (*(code *)PTR_strlen_000a6ea8)();
  if ((iVar1 != 0) && (pcVar2 = (char *)(param_1 + iVar1 + -1), *pcVar2 == '.')) {
    *pcVar2 = '\0';
    return;
  }
  return;
}

