
char * yank_delete(char *start,char *stop,int dist,int yf,int undo)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  char *q;
  
  pcVar3 = start;
  if (stop < start) {
    pcVar3 = stop;
    stop = start;
  }
  q = stop;
  if (dist < 1) {
    pcVar1 = pcVar3;
    if (*pcVar3 == '\n') {
      return pcVar3;
    }
    do {
      pcVar2 = pcVar1;
      q = stop;
      if (stop < pcVar2 + 1) break;
      pcVar1 = pcVar2 + 1;
      q = pcVar2;
    } while (pcVar2[1] != '\n');
  }
  text_yank(pcVar3,q,*(int *)(*(int *)PTR_ptr_to_globals_0012a304 + 0x80));
  if (yf != 1) {
    return pcVar3;
  }
  pcVar3 = text_hole_delete(pcVar3,q,1);
  return pcVar3;
}



char * FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  char *pcVar4;
  
  pcVar3 = param_1;
  if (param_2 < param_1) {
    pcVar3 = param_2;
    param_2 = param_1;
  }
  pcVar4 = param_2;
  if (param_3 < 1) {
    pcVar1 = pcVar3;
    if (*pcVar3 == '\n') {
      return pcVar3;
    }
    do {
      pcVar2 = pcVar1;
      pcVar4 = param_2;
      if (param_2 < pcVar2 + 1) break;
      pcVar1 = pcVar2 + 1;
      pcVar4 = pcVar2;
    } while (pcVar2[1] != '\n');
  }
  FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));
  if (param_4 != 1) {
    return pcVar3;
  }
  pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);
  return pcVar3;
}


lui gp,0x5
addiu gp,gp,0x6ae0
addu gp,gp,t9
addiu sp,sp,-0x28
sltu v0,a1,a0
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a3,zero
sw s1,0x1c(sp)
or s1,a1,zero
sw s0,0x18(sp)
or s0,a0,zero
beq v0,zero,0x000db6b0
_sw ra,0x24(sp)
or s0,a1,zero
or s1,a0,zero
bgtz a2,0x000db6e8
_li v0,0xa
lbu v1,0x0(s0)
beq v1,v0,0x000db740
_li a0,0xa
or v0,s0,zero
addiu v1,v0,0x1
sltu a1,s1,v1
bne a1,zero,0x000db6e8
_nop
lbu a1,0x1(v0)
bne a1,a0,0x000db75c
_nop
or s1,v0,zero
lw v0,-0x7e4c(gp)
or a1,s1,zero
lw t9,-0x756c(gp)
or a0,s0,zero
lw v0,0x0(v0)
addiu t9,t9,-0x7cd4
bal 0x000d832c
_lw a2,0x80(v0)
li v0,0x1
bne s2,v0,0x000db740
_lw gp,0x10(sp)
lw t9,-0x756c(gp)
or a1,s1,zero
lw ra,0x24(sp)
or a0,s0,zero
lw s2,0x20(sp)
li a2,0x1
lw s1,0x1c(sp)
addiu t9,t9,-0x7644
lw s0,0x18(sp)
b 0x000d89bc
_addiu sp,sp,0x28
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
b 0x000db6c8
_or v0,v1,zero
(translation_unit "char * FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  pcVar3 = param_1;\n  if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }\n  pcVar4 = param_2;\n  if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));\n  if (param_4 != 1) {\n    return pcVar3;\n  }\n  pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);\n  return pcVar3;\n}\n\n" (function_definition "char * FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  pcVar3 = param_1;\n  if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }\n  pcVar4 = param_2;\n  if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));\n  if (param_4 != 1) {\n    return pcVar3;\n  }\n  pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)" * (function_declarator "FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)" identifier (parameter_list "(char *param_1,char *param_2,int param_3,int param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  pcVar3 = param_1;\n  if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }\n  pcVar4 = param_2;\n  if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));\n  if (param_4 != 1) {\n    return pcVar3;\n  }\n  pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);\n  return pcVar3;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (if_statement "if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }" if (parenthesized_expression "(param_2 < param_1)" ( (binary_expression "param_2 < param_1" identifier < identifier) )) (compound_statement "{\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }" { (expression_statement "pcVar3 = param_2;" (assignment_expression "pcVar3 = param_2" identifier = identifier) ;) (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" identifier = identifier) ;) })) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) (if_statement "if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }" { (expression_statement "pcVar1 = pcVar3;" (assignment_expression "pcVar1 = pcVar3" identifier = identifier) ;) (if_statement "if (*pcVar3 == '\n') {\n      return pcVar3;\n    }" if (parenthesized_expression "(*pcVar3 == '\n')" ( (binary_expression "*pcVar3 == '\n'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n      return pcVar3;\n    }" { (return_statement "return pcVar3;" return identifier ;) })) (do_statement "do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');" do (compound_statement "{\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    }" { (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" identifier = identifier) ;) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) (if_statement "if (param_2 < pcVar2 + 1) break;" if (parenthesized_expression "(param_2 < pcVar2 + 1)" ( (binary_expression "param_2 < pcVar2 + 1" identifier < (binary_expression "pcVar2 + 1" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar1 = pcVar2 + 1;" (assignment_expression "pcVar1 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = pcVar2;" (assignment_expression "pcVar4 = pcVar2" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar2[1] != '\n')" ( (binary_expression "pcVar2[1] != '\n'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) != (char_literal "'\n'" ' escape_sequence ')) )) ;) })) (expression_statement "FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));" (call_expression "FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80))" identifier (argument_list "(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80)" * (cast_expression "(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_DAT_0012a304 + 0x80)" ( (binary_expression "*(int *)PTR_DAT_0012a304 + 0x80" (pointer_expression "*(int *)PTR_DAT_0012a304" * (cast_expression "(int *)PTR_DAT_0012a304" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) (if_statement "if (param_4 != 1) {\n    return pcVar3;\n  }" if (parenthesized_expression "(param_4 != 1)" ( (binary_expression "param_4 != 1" identifier != number_literal) )) (compound_statement "{\n    return pcVar3;\n  }" { (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);" (assignment_expression "pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1)" identifier = (cast_expression "(char *)FUN_000d89bc(pcVar3,pcVar4,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000d89bc(pcVar3,pcVar4,1)" identifier (argument_list "(pcVar3,pcVar4,1)" ( identifier , identifier , number_literal ))))) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "char * yank_delete(char *start,char *stop,int dist,int yf,int undo)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *q;\n  \n  pcVar3 = start;\n  if (stop < start) {\n    pcVar3 = stop;\n    stop = start;\n  }\n  q = stop;\n  if (dist < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      q = stop;\n      if (stop < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      q = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  text_yank(pcVar3,q,*(int *)(*(int *)PTR_ptr_to_globals_0012a304 + 0x80));\n  if (yf != 1) {\n    return pcVar3;\n  }\n  pcVar3 = text_hole_delete(pcVar3,q,1);\n  return pcVar3;\n}\n\n" (function_definition "char * yank_delete(char *start,char *stop,int dist,int yf,int undo)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *q;\n  \n  pcVar3 = start;\n  if (stop < start) {\n    pcVar3 = stop;\n    stop = start;\n  }\n  q = stop;\n  if (dist < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      q = stop;\n      if (stop < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      q = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  text_yank(pcVar3,q,*(int *)(*(int *)PTR_ptr_to_globals_0012a304 + 0x80));\n  if (yf != 1) {\n    return pcVar3;\n  }\n  pcVar3 = text_hole_delete(pcVar3,q,1);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* yank_delete(char *start,char *stop,int dist,int yf,int undo)" * (function_declarator "yank_delete(char *start,char *stop,int dist,int yf,int undo)" identifier (parameter_list "(char *start,char *stop,int dist,int yf,int undo)" ( (parameter_declaration "char *start" primitive_type (pointer_declarator "*start" * identifier)) , (parameter_declaration "char *stop" primitive_type (pointer_declarator "*stop" * identifier)) , (parameter_declaration "int dist" primitive_type identifier) , (parameter_declaration "int yf" primitive_type identifier) , (parameter_declaration "int undo" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *q;\n  \n  pcVar3 = start;\n  if (stop < start) {\n    pcVar3 = stop;\n    stop = start;\n  }\n  q = stop;\n  if (dist < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      q = stop;\n      if (stop < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      q = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  text_yank(pcVar3,q,*(int *)(*(int *)PTR_ptr_to_globals_0012a304 + 0x80));\n  if (yf != 1) {\n    return pcVar3;\n  }\n  pcVar3 = text_hole_delete(pcVar3,q,1);\n  return pcVar3;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *q;" primitive_type (pointer_declarator "*q" * identifier) ;) (expression_statement "pcVar3 = start;" (assignment_expression "pcVar3 = start" identifier = identifier) ;) (if_statement "if (stop < start) {\n    pcVar3 = stop;\n    stop = start;\n  }" if (parenthesized_expression "(stop < start)" ( (binary_expression "stop < start" identifier < identifier) )) (compound_statement "{\n    pcVar3 = stop;\n    stop = start;\n  }" { (expression_statement "pcVar3 = stop;" (assignment_expression "pcVar3 = stop" identifier = identifier) ;) (expression_statement "stop = start;" (assignment_expression "stop = start" identifier = identifier) ;) })) (expression_statement "q = stop;" (assignment_expression "q = stop" identifier = identifier) ;) (if_statement "if (dist < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      q = stop;\n      if (stop < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      q = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }" if (parenthesized_expression "(dist < 1)" ( (binary_expression "dist < 1" identifier < number_literal) )) (compound_statement "{\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      q = stop;\n      if (stop < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      q = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }" { (expression_statement "pcVar1 = pcVar3;" (assignment_expression "pcVar1 = pcVar3" identifier = identifier) ;) (if_statement "if (*pcVar3 == '\n') {\n      return pcVar3;\n    }" if (parenthesized_expression "(*pcVar3 == '\n')" ( (binary_expression "*pcVar3 == '\n'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n      return pcVar3;\n    }" { (return_statement "return pcVar3;" return identifier ;) })) (do_statement "do {\n      pcVar2 = pcVar1;\n      q = stop;\n      if (stop < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      q = pcVar2;\n    } while (pcVar2[1] != '\n');" do (compound_statement "{\n      pcVar2 = pcVar1;\n      q = stop;\n      if (stop < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      q = pcVar2;\n    }" { (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" identifier = identifier) ;) (expression_statement "q = stop;" (assignment_expression "q = stop" identifier = identifier) ;) (if_statement "if (stop < pcVar2 + 1) break;" if (parenthesized_expression "(stop < pcVar2 + 1)" ( (binary_expression "stop < pcVar2 + 1" identifier < (binary_expression "pcVar2 + 1" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar1 = pcVar2 + 1;" (assignment_expression "pcVar1 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "q = pcVar2;" (assignment_expression "q = pcVar2" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar2[1] != '\n')" ( (binary_expression "pcVar2[1] != '\n'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) != (char_literal "'\n'" ' escape_sequence ')) )) ;) })) (expression_statement "text_yank(pcVar3,q,*(int *)(*(int *)PTR_ptr_to_globals_0012a304 + 0x80));" (call_expression "text_yank(pcVar3,q,*(int *)(*(int *)PTR_ptr_to_globals_0012a304 + 0x80))" identifier (argument_list "(pcVar3,q,*(int *)(*(int *)PTR_ptr_to_globals_0012a304 + 0x80))" ( identifier , identifier , (pointer_expression "*(int *)(*(int *)PTR_ptr_to_globals_0012a304 + 0x80)" * (cast_expression "(int *)(*(int *)PTR_ptr_to_globals_0012a304 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ptr_to_globals_0012a304 + 0x80)" ( (binary_expression "*(int *)PTR_ptr_to_globals_0012a304 + 0x80" (pointer_expression "*(int *)PTR_ptr_to_globals_0012a304" * (cast_expression "(int *)PTR_ptr_to_globals_0012a304" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) (if_statement "if (yf != 1) {\n    return pcVar3;\n  }" if (parenthesized_expression "(yf != 1)" ( (binary_expression "yf != 1" identifier != number_literal) )) (compound_statement "{\n    return pcVar3;\n  }" { (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "pcVar3 = text_hole_delete(pcVar3,q,1);" (assignment_expression "pcVar3 = text_hole_delete(pcVar3,q,1)" identifier = (call_expression "text_hole_delete(pcVar3,q,1)" identifier (argument_list "(pcVar3,q,1)" ( identifier , identifier , number_literal )))) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "char * FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  pcVar3 = param_1;\n  if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }\n  pcVar4 = param_2;\n  if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));\n  if (param_4 != 1) {\n    return pcVar3;\n  }\n  pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);\n  return pcVar3;\n}\n\n" (function_definition "char * FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  pcVar3 = param_1;\n  if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }\n  pcVar4 = param_2;\n  if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));\n  if (param_4 != 1) {\n    return pcVar3;\n  }\n  pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)" * (function_declarator "FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)" identifier (parameter_list "(char *param_1,char *param_2,int param_3,int param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  pcVar3 = param_1;\n  if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }\n  pcVar4 = param_2;\n  if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));\n  if (param_4 != 1) {\n    return pcVar3;\n  }\n  pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);\n  return pcVar3;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (if_statement "if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }" if (parenthesized_expression "(param_2 < param_1)" ( (binary_expression "param_2 < param_1" identifier < identifier) )) (compound_statement "{\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }" { (expression_statement "pcVar3 = param_2;" (assignment_expression "pcVar3 = param_2" identifier = identifier) ;) (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" identifier = identifier) ;) })) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) (if_statement "if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }" { (expression_statement "pcVar1 = pcVar3;" (assignment_expression "pcVar1 = pcVar3" identifier = identifier) ;) (if_statement "if (*pcVar3 == '\n') {\n      return pcVar3;\n    }" if (parenthesized_expression "(*pcVar3 == '\n')" ( (binary_expression "*pcVar3 == '\n'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'\n'" ' escape_sequence ')) )) (compound_statement "{\n      return pcVar3;\n    }" { (return_statement "return pcVar3;" return identifier ;) })) (do_statement "do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');" do (compound_statement "{\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    }" { (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" identifier = identifier) ;) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) (if_statement "if (param_2 < pcVar2 + 1) break;" if (parenthesized_expression "(param_2 < pcVar2 + 1)" ( (binary_expression "param_2 < pcVar2 + 1" identifier < (binary_expression "pcVar2 + 1" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar1 = pcVar2 + 1;" (assignment_expression "pcVar1 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = pcVar2;" (assignment_expression "pcVar4 = pcVar2" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar2[1] != '\n')" ( (binary_expression "pcVar2[1] != '\n'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) != (char_literal "'\n'" ' escape_sequence ')) )) ;) })) (expression_statement "FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));" (call_expression "FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80))" identifier (argument_list "(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80)" * (cast_expression "(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_DAT_0012a304 + 0x80)" ( (binary_expression "*(int *)PTR_DAT_0012a304 + 0x80" (pointer_expression "*(int *)PTR_DAT_0012a304" * (cast_expression "(int *)PTR_DAT_0012a304" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) (if_statement "if (param_4 != 1) {\n    return pcVar3;\n  }" if (parenthesized_expression "(param_4 != 1)" ( (binary_expression "param_4 != 1" identifier != number_literal) )) (compound_statement "{\n    return pcVar3;\n  }" { (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);" (assignment_expression "pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1)" identifier = (cast_expression "(char *)FUN_000d89bc(pcVar3,pcVar4,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000d89bc(pcVar3,pcVar4,1)" identifier (argument_list "(pcVar3,pcVar4,1)" ( identifier , identifier , number_literal ))))) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))))) ;) (return_statement return IDENT ;) })))
(function_definition "char * FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  pcVar3 = param_1;\n  if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }\n  pcVar4 = param_2;\n  if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));\n  if (param_4 != 1) {\n    return pcVar3;\n  }\n  pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);\n  return pcVar3;\n}" (primitive_type "char") (pointer_declarator "* FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)" (* "*") (function_declarator "FUN_000db670(char *param_1,char *param_2,int param_3,int param_4)" (identifier "FUN_000db670") (parameter_list "(char *param_1,char *param_2,int param_3,int param_4)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  pcVar3 = param_1;\n  if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }\n  pcVar4 = param_2;\n  if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }\n  FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));\n  if (param_4 != 1) {\n    return pcVar3;\n  }\n  pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);\n  return pcVar3;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" (identifier "pcVar3") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (param_2 < param_1) {\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }" (if "if") (parenthesized_expression "(param_2 < param_1)" (( "(") (binary_expression "param_2 < param_1" (identifier "param_2") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    pcVar3 = param_2;\n    param_2 = param_1;\n  }" ({ "{") (expression_statement "pcVar3 = param_2;" (assignment_expression "pcVar3 = param_2" (identifier "pcVar3") (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" (identifier "param_2") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" (identifier "pcVar4") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_3 < 1) {\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }" (if "if") (parenthesized_expression "(param_3 < 1)" (( "(") (binary_expression "param_3 < 1" (identifier "param_3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    pcVar1 = pcVar3;\n    if (*pcVar3 == '\n') {\n      return pcVar3;\n    }\n    do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');\n  }" ({ "{") (expression_statement "pcVar1 = pcVar3;" (assignment_expression "pcVar1 = pcVar3" (identifier "pcVar1") (= "=") (identifier "pcVar3")) (; ";")) (if_statement "if (*pcVar3 == '\n') {\n      return pcVar3;\n    }" (if "if") (parenthesized_expression "(*pcVar3 == '\n')" (( "(") (binary_expression "*pcVar3 == '\n'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (compound_statement "{\n      return pcVar3;\n    }" ({ "{") (return_statement "return pcVar3;" (return "return") (identifier "pcVar3") (; ";")) (} "}"))) (do_statement "do {\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    } while (pcVar2[1] != '\n');" (do "do") (compound_statement "{\n      pcVar2 = pcVar1;\n      pcVar4 = param_2;\n      if (param_2 < pcVar2 + 1) break;\n      pcVar1 = pcVar2 + 1;\n      pcVar4 = pcVar2;\n    }" ({ "{") (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" (identifier "pcVar2") (= "=") (identifier "pcVar1")) (; ";")) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" (identifier "pcVar4") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 < pcVar2 + 1) break;" (if "if") (parenthesized_expression "(param_2 < pcVar2 + 1)" (( "(") (binary_expression "param_2 < pcVar2 + 1" (identifier "param_2") (< "<") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar1 = pcVar2 + 1;" (assignment_expression "pcVar1 = pcVar2 + 1" (identifier "pcVar1") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar4 = pcVar2;" (assignment_expression "pcVar4 = pcVar2" (identifier "pcVar4") (= "=") (identifier "pcVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar2[1] != '\n')" (( "(") (binary_expression "pcVar2[1] != '\n'" (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));" (call_expression "FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80))" (identifier "FUN_000d832c") (argument_list "(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80))" (( "(") (identifier "pcVar3") (, ",") (identifier "pcVar4") (, ",") (pointer_expression "*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80)" (* "*") (cast_expression "(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_DAT_0012a304 + 0x80)" (( "(") (binary_expression "*(int *)PTR_DAT_0012a304 + 0x80" (pointer_expression "*(int *)PTR_DAT_0012a304" (* "*") (cast_expression "(int *)PTR_DAT_0012a304" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_0012a304"))) (+ "+") (number_literal "0x80")) () ")")))) () ")"))) (; ";")) (if_statement "if (param_4 != 1) {\n    return pcVar3;\n  }" (if "if") (parenthesized_expression "(param_4 != 1)" (( "(") (binary_expression "param_4 != 1" (identifier "param_4") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    return pcVar3;\n  }" ({ "{") (return_statement "return pcVar3;" (return "return") (identifier "pcVar3") (; ";")) (} "}"))) (expression_statement "pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);" (assignment_expression "pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_000d89bc(pcVar3,pcVar4,1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000d89bc(pcVar3,pcVar4,1)" (identifier "FUN_000d89bc") (argument_list "(pcVar3,pcVar4,1)" (( "(") (identifier "pcVar3") (, ",") (identifier "pcVar4") (, ",") (number_literal "1") () ")"))))) (; ";")) (return_statement "return pcVar3;" (return "return") (identifier "pcVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))) (return_statement (identifier)))))

char * MASKED(char *param_1,char *param_2,int param_3,int param_4)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  char *pcVar4;
  
  pcVar3 = param_1;
  if (param_2 < param_1) {
    pcVar3 = param_2;
    param_2 = param_1;
  }
  pcVar4 = param_2;
  if (param_3 < 1) {
    pcVar1 = pcVar3;
    if (*pcVar3 == '\n') {
      return pcVar3;
    }
    do {
      pcVar2 = pcVar1;
      pcVar4 = param_2;
      if (param_2 < pcVar2 + 1) break;
      pcVar1 = pcVar2 + 1;
      pcVar4 = pcVar2;
    } while (pcVar2[1] != '\n');
  }
  FUN_000d832c(pcVar3,pcVar4,*(undefined4 *)(*(int *)PTR_DAT_0012a304 + 0x80));
  if (param_4 != 1) {
    return pcVar3;
  }
  pcVar3 = (char *)FUN_000d89bc(pcVar3,pcVar4,1);
  return pcVar3;
}

