
char * trim(char *s)

{
  int iVar1;
  char *pcVar2;
  int iVar3;
  int iVar4;
  
  iVar1 = (*(code *)PTR_strlen_0012af3c)();
  iVar4 = iVar1;
  if (iVar1 != 0) {
    do {
      iVar3 = iVar4 + -1;
      if (((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U))) {
        pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);
        if (s != pcVar2) {
          iVar4 = iVar4 - ((int)pcVar2 - (int)s);
          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);
        }
        pcVar2 = s + iVar4;
        if (iVar4 == iVar1) {
          return pcVar2;
        }
        *pcVar2 = '\0';
        return pcVar2;
      }
      iVar4 = iVar3;
    } while (iVar3 != 0);
    *s = '\0';
  }
  return s;
}



undefined1 * FUN_000f8e2c(undefined1 *param_1)

{
  int iVar1;
  undefined1 *puVar2;
  int iVar3;
  int iVar4;
  
  iVar1 = (*(code *)PTR_strlen_0012af3c)();
  iVar4 = iVar1;
  if (iVar1 != 0) {
    do {
      iVar3 = iVar4 + -1;
      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {
        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);
        if (param_1 != puVar2) {
          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);
          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);
        }
        param_1 = param_1 + iVar4;
        if (iVar4 == iVar1) {
          return param_1;
        }
        *param_1 = 0;
        return param_1;
      }
      iVar4 = iVar3;
    } while (iVar3 != 0);
    *param_1 = 0;
  }
  return param_1;
}


lui gp,0x4
addiu gp,gp,-0x6cdc
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7214(gp)
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x24(sp)
sw s2,0x20(sp)
jalr t9
_sw s1,0x1c(sp)
beq v0,zero,0x000f8e98
_lw gp,0x10(sp)
li a0,0x17
or s2,v0,zero
or s1,v0,zero
addiu v1,s1,-0x1
addu v0,s0,v1
lbu v0,0x0(v0)
addiu v0,v0,-0x9
andi v0,v0,0xff
bne v0,a0,0x000f8eb4
_sltiu v0,v0,0x5
bne v1,zero,0x000f8e70
_or s1,v1,zero
sb zero,0x0(s0)
lw ra,0x24(sp)
or v0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
bne v0,zero,0x000f8e8c
_lw t9,-0x7fb8(gp)
jalr t9
_or a0,s0,zero
beq s0,v0,0x000f8ee8
_lw gp,0x10(sp)
subu v1,v0,s0
lw t9,-0x6fdc(gp)
or a1,v0,zero
subu s1,s1,v1
or a0,s0,zero
jalr t9
_or a2,s1,zero
beq s1,s2,0x000f8e98
_addu s0,s0,s1
b 0x000f8e98
_sb zero,0x0(s0)
(translation_unit "undefined1 * FUN_000f8e2c(undefined1 *param_1)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }\n  return param_1;\n}\n\n" (function_definition "undefined1 * FUN_000f8e2c(undefined1 *param_1)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_000f8e2c(undefined1 *param_1)" * (function_declarator "FUN_000f8e2c(undefined1 *param_1)" identifier (parameter_list "(undefined1 *param_1)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)()" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)()" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }" { (do_statement "do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);" do (compound_statement "{\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    }" { (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }" if (parenthesized_expression "(((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9)))" ( (binary_expression "((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))" (parenthesized_expression "((byte)(param_1[iVar3] - 9) != 0x17)" ( (binary_expression "(byte)(param_1[iVar3] - 9) != 0x17" (call_expression "(byte)(param_1[iVar3] - 9)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_1[iVar3] - 9)" ( (binary_expression "param_1[iVar3] - 9" (subscript_expression "param_1[iVar3]" identifier [ identifier ]) - number_literal) ))) != number_literal) )) && (parenthesized_expression "(4 < (byte)(param_1[iVar3] - 9))" ( (binary_expression "4 < (byte)(param_1[iVar3] - 9)" number_literal < (call_expression "(byte)(param_1[iVar3] - 9)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_1[iVar3] - 9)" ( (binary_expression "param_1[iVar3] - 9" (subscript_expression "param_1[iVar3]" identifier [ identifier ]) - number_literal) )))) ))) )) (compound_statement "{\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }" { (expression_statement "puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);" (assignment_expression "puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_0012a198)(param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a198)" ( (pointer_expression "*(code *)PTR_FUN_0012a198" * (cast_expression "(code *)PTR_FUN_0012a198" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }" if (parenthesized_expression "(param_1 != puVar2)" ( (binary_expression "param_1 != puVar2" identifier != identifier) )) (compound_statement "{\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }" { (expression_statement "iVar4 = iVar4 - ((int)puVar2 - (int)param_1);" (assignment_expression "iVar4 = iVar4 - ((int)puVar2 - (int)param_1)" identifier = (binary_expression "iVar4 - ((int)puVar2 - (int)param_1)" identifier - (parenthesized_expression "((int)puVar2 - (int)param_1)" ( (binary_expression "(int)puVar2 - (int)param_1" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "(*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);" (call_expression "(*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" ( (pointer_expression "*(code *)PTR_memmove_0012b174" * (cast_expression "(code *)PTR_memmove_0012b174" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,puVar2,iVar4)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "param_1 = param_1 + iVar4;" (assignment_expression "param_1 = param_1 + iVar4" identifier = (binary_expression "param_1 + iVar4" identifier + identifier)) ;) (if_statement "if (iVar4 == iVar1) {\n          return param_1;\n        }" if (parenthesized_expression "(iVar4 == iVar1)" ( (binary_expression "iVar4 == iVar1" identifier == identifier) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "char * trim(char *s)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U))) {\n        pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);\n        if (s != pcVar2) {\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }\n        pcVar2 = s + iVar4;\n        if (iVar4 == iVar1) {\n          return pcVar2;\n        }\n        *pcVar2 = '\0';\n        return pcVar2;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *s = '\0';\n  }\n  return s;\n}\n\n" (function_definition "char * trim(char *s)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U))) {\n        pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);\n        if (s != pcVar2) {\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }\n        pcVar2 = s + iVar4;\n        if (iVar4 == iVar1) {\n          return pcVar2;\n        }\n        *pcVar2 = '\0';\n        return pcVar2;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *s = '\0';\n  }\n  return s;\n}" primitive_type (pointer_declarator "* trim(char *s)" * (function_declarator "trim(char *s)" identifier (parameter_list "(char *s)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U))) {\n        pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);\n        if (s != pcVar2) {\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }\n        pcVar2 = s + iVar4;\n        if (iVar4 == iVar1) {\n          return pcVar2;\n        }\n        *pcVar2 = '\0';\n        return pcVar2;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *s = '\0';\n  }\n  return s;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)()" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)()" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U))) {\n        pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);\n        if (s != pcVar2) {\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }\n        pcVar2 = s + iVar4;\n        if (iVar4 == iVar1) {\n          return pcVar2;\n        }\n        *pcVar2 = '\0';\n        return pcVar2;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *s = '\0';\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U))) {\n        pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);\n        if (s != pcVar2) {\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }\n        pcVar2 = s + iVar4;\n        if (iVar4 == iVar1) {\n          return pcVar2;\n        }\n        *pcVar2 = '\0';\n        return pcVar2;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *s = '\0';\n  }" { (do_statement "do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U))) {\n        pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);\n        if (s != pcVar2) {\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }\n        pcVar2 = s + iVar4;\n        if (iVar4 == iVar1) {\n          return pcVar2;\n        }\n        *pcVar2 = '\0';\n        return pcVar2;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);" do (compound_statement "{\n      iVar3 = iVar4 + -1;\n      if (((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U))) {\n        pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);\n        if (s != pcVar2) {\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }\n        pcVar2 = s + iVar4;\n        if (iVar4 == iVar1) {\n          return pcVar2;\n        }\n        *pcVar2 = '\0';\n        return pcVar2;\n      }\n      iVar4 = iVar3;\n    }" { (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U))) {\n        pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);\n        if (s != pcVar2) {\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }\n        pcVar2 = s + iVar4;\n        if (iVar4 == iVar1) {\n          return pcVar2;\n        }\n        *pcVar2 = '\0';\n        return pcVar2;\n      }" if (parenthesized_expression "(((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U)))" ( (binary_expression "((byte)(s[iVar3] - 9U) != 0x17) && (4 < (byte)(s[iVar3] - 9U))" (parenthesized_expression "((byte)(s[iVar3] - 9U) != 0x17)" ( (binary_expression "(byte)(s[iVar3] - 9U) != 0x17" (call_expression "(byte)(s[iVar3] - 9U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(s[iVar3] - 9U)" ( (binary_expression "s[iVar3] - 9U" (subscript_expression "s[iVar3]" identifier [ identifier ]) - number_literal) ))) != number_literal) )) && (parenthesized_expression "(4 < (byte)(s[iVar3] - 9U))" ( (binary_expression "4 < (byte)(s[iVar3] - 9U)" number_literal < (call_expression "(byte)(s[iVar3] - 9U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(s[iVar3] - 9U)" ( (binary_expression "s[iVar3] - 9U" (subscript_expression "s[iVar3]" identifier [ identifier ]) - number_literal) )))) ))) )) (compound_statement "{\n        pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);\n        if (s != pcVar2) {\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }\n        pcVar2 = s + iVar4;\n        if (iVar4 == iVar1) {\n          return pcVar2;\n        }\n        *pcVar2 = '\0';\n        return pcVar2;\n      }" { (expression_statement "pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_skip_whitespace_0012a198)(s)" identifier = (cast_expression "(char *)(*(code *)PTR_skip_whitespace_0012a198)(s)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_skip_whitespace_0012a198)(s)" (parenthesized_expression "(*(code *)PTR_skip_whitespace_0012a198)" ( (pointer_expression "*(code *)PTR_skip_whitespace_0012a198" * (cast_expression "(code *)PTR_skip_whitespace_0012a198" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s)" ( identifier ))))) ;) (if_statement "if (s != pcVar2) {\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }" if (parenthesized_expression "(s != pcVar2)" ( (binary_expression "s != pcVar2" identifier != identifier) )) (compound_statement "{\n          iVar4 = iVar4 - ((int)pcVar2 - (int)s);\n          (*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);\n        }" { (expression_statement "iVar4 = iVar4 - ((int)pcVar2 - (int)s);" (assignment_expression "iVar4 = iVar4 - ((int)pcVar2 - (int)s)" identifier = (binary_expression "iVar4 - ((int)pcVar2 - (int)s)" identifier - (parenthesized_expression "((int)pcVar2 - (int)s)" ( (binary_expression "(int)pcVar2 - (int)s" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)s" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "(*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4);" (call_expression "(*(code *)PTR_memmove_0012b174)(s,pcVar2,iVar4)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" ( (pointer_expression "*(code *)PTR_memmove_0012b174" * (cast_expression "(code *)PTR_memmove_0012b174" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s,pcVar2,iVar4)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "pcVar2 = s + iVar4;" (assignment_expression "pcVar2 = s + iVar4" identifier = (binary_expression "s + iVar4" identifier + identifier)) ;) (if_statement "if (iVar4 == iVar1) {\n          return pcVar2;\n        }" if (parenthesized_expression "(iVar4 == iVar1)" ( (binary_expression "iVar4 == iVar1" identifier == identifier) )) (compound_statement "{\n          return pcVar2;\n        }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (expression_statement "*s = '\0';" (assignment_expression "*s = '\0'" (pointer_expression "*s" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (return_statement "return s;" return identifier ;) })))
(translation_unit "undefined1 * FUN_000f8e2c(undefined1 *param_1)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }\n  return param_1;\n}\n\n" (function_definition "undefined1 * FUN_000f8e2c(undefined1 *param_1)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_000f8e2c(undefined1 *param_1)" * (function_declarator "FUN_000f8e2c(undefined1 *param_1)" identifier (parameter_list "(undefined1 *param_1)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)()" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)()" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }" { (do_statement "do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);" do (compound_statement "{\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    }" { (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }" if (parenthesized_expression "(((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9)))" ( (binary_expression "((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))" (parenthesized_expression "((byte)(param_1[iVar3] - 9) != 0x17)" ( (binary_expression "(byte)(param_1[iVar3] - 9) != 0x17" (call_expression "(byte)(param_1[iVar3] - 9)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_1[iVar3] - 9)" ( (binary_expression "param_1[iVar3] - 9" (subscript_expression "param_1[iVar3]" identifier [ identifier ]) - number_literal) ))) != number_literal) )) && (parenthesized_expression "(4 < (byte)(param_1[iVar3] - 9))" ( (binary_expression "4 < (byte)(param_1[iVar3] - 9)" number_literal < (call_expression "(byte)(param_1[iVar3] - 9)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_1[iVar3] - 9)" ( (binary_expression "param_1[iVar3] - 9" (subscript_expression "param_1[iVar3]" identifier [ identifier ]) - number_literal) )))) ))) )) (compound_statement "{\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }" { (expression_statement "puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);" (assignment_expression "puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_0012a198)(param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a198)" ( (pointer_expression "*(code *)PTR_FUN_0012a198" * (cast_expression "(code *)PTR_FUN_0012a198" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }" if (parenthesized_expression "(param_1 != puVar2)" ( (binary_expression "param_1 != puVar2" identifier != identifier) )) (compound_statement "{\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }" { (expression_statement "iVar4 = iVar4 - ((int)puVar2 - (int)param_1);" (assignment_expression "iVar4 = iVar4 - ((int)puVar2 - (int)param_1)" identifier = (binary_expression "iVar4 - ((int)puVar2 - (int)param_1)" identifier - (parenthesized_expression "((int)puVar2 - (int)param_1)" ( (binary_expression "(int)puVar2 - (int)param_1" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "(*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);" (call_expression "(*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" ( (pointer_expression "*(code *)PTR_memmove_0012b174" * (cast_expression "(code *)PTR_memmove_0012b174" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,puVar2,iVar4)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "param_1 = param_1 + iVar4;" (assignment_expression "param_1 = param_1 + iVar4" identifier = (binary_expression "param_1 + iVar4" identifier + identifier)) ;) (if_statement "if (iVar4 == iVar1) {\n          return param_1;\n        }" if (parenthesized_expression "(iVar4 == iVar1)" ( (binary_expression "iVar4 == iVar1" identifier == identifier) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ IDENT ]) - LIT) ))) != LIT) )) && (parenthesized_expression ( (binary_expression LIT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ IDENT ]) - LIT) )))) ))) )) (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 ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined1 * FUN_000f8e2c(undefined1 *param_1)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }\n  return param_1;\n}" (type_identifier "undefined1") (pointer_declarator "* FUN_000f8e2c(undefined1 *param_1)" (* "*") (function_declarator "FUN_000f8e2c(undefined1 *param_1)" (identifier "FUN_000f8e2c") (parameter_list "(undefined1 *param_1)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strlen_0012af3c)();\n  iVar4 = iVar1;\n  if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strlen_0012af3c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0012af3c)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0012af3c)()" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0012af3c" (* "*") (cast_expression "(code *)PTR_strlen_0012af3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0012af3c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" (identifier "iVar4") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 != 0) {\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);\n    *param_1 = 0;\n  }" ({ "{") (do_statement "do {\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    } while (iVar3 != 0);" (do "do") (compound_statement "{\n      iVar3 = iVar4 + -1;\n      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }\n      iVar4 = iVar3;\n    }" ({ "{") (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }" (if "if") (parenthesized_expression "(((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9)))" (( "(") (binary_expression "((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))" (parenthesized_expression "((byte)(param_1[iVar3] - 9) != 0x17)" (( "(") (binary_expression "(byte)(param_1[iVar3] - 9) != 0x17" (call_expression "(byte)(param_1[iVar3] - 9)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_1[iVar3] - 9)" (( "(") (binary_expression "param_1[iVar3] - 9" (subscript_expression "param_1[iVar3]" (identifier "param_1") ([ "[") (identifier "iVar3") (] "]")) (- "-") (number_literal "9")) () ")"))) (!= "!=") (number_literal "0x17")) () ")")) (&& "&&") (parenthesized_expression "(4 < (byte)(param_1[iVar3] - 9))" (( "(") (binary_expression "4 < (byte)(param_1[iVar3] - 9)" (number_literal "4") (< "<") (call_expression "(byte)(param_1[iVar3] - 9)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_1[iVar3] - 9)" (( "(") (binary_expression "param_1[iVar3] - 9" (subscript_expression "param_1[iVar3]" (identifier "param_1") ([ "[") (identifier "iVar3") (] "]")) (- "-") (number_literal "9")) () ")")))) () ")"))) () ")")) (compound_statement "{\n        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);\n        if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }\n        param_1 = param_1 + iVar4;\n        if (iVar4 == iVar1) {\n          return param_1;\n        }\n        *param_1 = 0;\n        return param_1;\n      }" ({ "{") (expression_statement "puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);" (assignment_expression "puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_FUN_0012a198)(param_1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a198)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a198" (* "*") (cast_expression "(code *)PTR_FUN_0012a198" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a198"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (param_1 != puVar2) {\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }" (if "if") (parenthesized_expression "(param_1 != puVar2)" (( "(") (binary_expression "param_1 != puVar2" (identifier "param_1") (!= "!=") (identifier "puVar2")) () ")")) (compound_statement "{\n          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);\n          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);\n        }" ({ "{") (expression_statement "iVar4 = iVar4 - ((int)puVar2 - (int)param_1);" (assignment_expression "iVar4 = iVar4 - ((int)puVar2 - (int)param_1)" (identifier "iVar4") (= "=") (binary_expression "iVar4 - ((int)puVar2 - (int)param_1)" (identifier "iVar4") (- "-") (parenthesized_expression "((int)puVar2 - (int)param_1)" (( "(") (binary_expression "(int)puVar2 - (int)param_1" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);" (call_expression "(*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" (( "(") (pointer_expression "*(code *)PTR_memmove_0012b174" (* "*") (cast_expression "(code *)PTR_memmove_0012b174" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_0012b174"))) () ")")) (argument_list "(param_1,puVar2,iVar4)" (( "(") (identifier "param_1") (, ",") (identifier "puVar2") (, ",") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + iVar4;" (assignment_expression "param_1 = param_1 + iVar4" (identifier "param_1") (= "=") (binary_expression "param_1 + iVar4" (identifier "param_1") (+ "+") (identifier "iVar4"))) (; ";")) (if_statement "if (iVar4 == iVar1) {\n          return param_1;\n        }" (if "if") (parenthesized_expression "(iVar4 == iVar1)" (( "(") (binary_expression "iVar4 == iVar1" (identifier "iVar4") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n          return param_1;\n        }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal)))))))) consequence: (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 (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (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 (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (return_statement (identifier)))))

undefined1 * MASKED(undefined1 *param_1)

{
  int iVar1;
  undefined1 *puVar2;
  int iVar3;
  int iVar4;
  
  iVar1 = (*(code *)PTR_strlen_0012af3c)();
  iVar4 = iVar1;
  if (iVar1 != 0) {
    do {
      iVar3 = iVar4 + -1;
      if (((byte)(param_1[iVar3] - 9) != 0x17) && (4 < (byte)(param_1[iVar3] - 9))) {
        puVar2 = (undefined1 *)(*(code *)PTR_FUN_0012a198)(param_1);
        if (param_1 != puVar2) {
          iVar4 = iVar4 - ((int)puVar2 - (int)param_1);
          (*(code *)PTR_memmove_0012b174)(param_1,puVar2,iVar4);
        }
        param_1 = param_1 + iVar4;
        if (iVar4 == iVar1) {
          return param_1;
        }
        *param_1 = 0;
        return param_1;
      }
      iVar4 = iVar3;
    } while (iVar3 != 0);
    *param_1 = 0;
  }
  return param_1;
}

