
void add_match(char *matched)

{
  byte bVar1;
  lineedit_statics *plVar2;
  byte *pbVar3;
  char **ppcVar4;
  
  plVar2 = lineedit_ptr_to_statics;
  bVar1 = *matched;
  pbVar3 = (byte *)matched;
  while( true ) {
    if (bVar1 == 0) {
      ppcVar4 = (char **)xrealloc_vector_helper
                                   (lineedit_ptr_to_statics->matches,0x804,
                                    lineedit_ptr_to_statics->num_matches);
      plVar2->matches = ppcVar4;
      ppcVar4[plVar2->num_matches] = matched;
      plVar2->num_matches = plVar2->num_matches + 1;
      return;
    }
    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;
    pbVar3 = pbVar3 + 1;
    bVar1 = *pbVar3;
  }
  free(matched);
  return;
}



void FUN_0019e85c(byte *param_1)

{
  byte bVar1;
  long lVar2;
  byte *pbVar3;
  long lVar4;
  
  lVar2 = DAT_001c6a00;
  bVar1 = *param_1;
  pbVar3 = param_1;
  while( true ) {
    if (bVar1 == 0) {
      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,
                           *(undefined4 *)(DAT_001c6a00 + 0x58));
      *(long *)(lVar2 + 0x50) = lVar4;
      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;
      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;
      return;
    }
    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;
    pbVar3 = pbVar3 + 1;
    bVar1 = *pbVar3;
  }
  free(param_1);
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBP,RDI
MOVZX EAX,byte ptr [RDI]
TEST AL,AL
JZ 0x0019e882
CMP AL,0x1f
JBE 0x0019e8b5
CMP AL,0x7f
JZ 0x0019e8b5
MOV RAX,RDI
ADD RAX,0x1
MOVZX EDX,byte ptr [RAX]
TEST DL,DL
JNZ 0x0019e8ab
MOV RBX,qword ptr [0x001c6a00]
MOV EDX,dword ptr [RBX + 0x58]
MOV RDI,qword ptr [RBX + 0x50]
MOV ESI,0x804
CALL 0x001a7183
MOV qword ptr [RBX + 0x50],RAX
MOV EDX,dword ptr [RBX + 0x58]
MOV qword ptr [RAX + RDX*0x8],RBP
ADD dword ptr [RBX + 0x58],0x1
JMP 0x0019e8bd
CMP DL,0x1f
JBE 0x0019e8b5
CMP DL,0x7f
JNZ 0x0019e877
MOV RDI,RBP
CALL 0x0010c5a0
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "void FUN_0019e85c(byte *param_1)\n\n{\n  byte bVar1;\n  long lVar2;\n  byte *pbVar3;\n  long lVar4;\n  \n  lVar2 = DAT_001c6a00;\n  bVar1 = *param_1;\n  pbVar3 = param_1;\n  while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0019e85c(byte *param_1)\n\n{\n  byte bVar1;\n  long lVar2;\n  byte *pbVar3;\n  long lVar4;\n  \n  lVar2 = DAT_001c6a00;\n  bVar1 = *param_1;\n  pbVar3 = param_1;\n  while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0019e85c(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  long lVar2;\n  byte *pbVar3;\n  long lVar4;\n  \n  lVar2 = DAT_001c6a00;\n  bVar1 = *param_1;\n  pbVar3 = param_1;\n  while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(param_1);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = DAT_001c6a00;" (assignment_expression "lVar2 = DAT_001c6a00" identifier = identifier) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }" { (if_statement "if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }" { (expression_statement "lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));" (assignment_expression "lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58))" identifier = (call_expression "FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58))" identifier (argument_list "(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58))" ( (pointer_expression "*(undefined8 *)(DAT_001c6a00 + 0x50)" * (cast_expression "(undefined8 *)(DAT_001c6a00 + 0x50)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x50)" ( (binary_expression "DAT_001c6a00 + 0x50" identifier + number_literal) )))) , number_literal , (pointer_expression "*(undefined4 *)(DAT_001c6a00 + 0x58)" * (cast_expression "(undefined4 *)(DAT_001c6a00 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x58)" ( (binary_expression "DAT_001c6a00 + 0x58" identifier + number_literal) )))) )))) ;) (expression_statement "*(long *)(lVar2 + 0x50) = lVar4;" (assignment_expression "*(long *)(lVar2 + 0x50) = lVar4" (pointer_expression "*(long *)(lVar2 + 0x50)" * (cast_expression "(long *)(lVar2 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x50)" ( (binary_expression "lVar2 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;" (assignment_expression "*(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1" (pointer_expression "*(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8)" * (cast_expression "(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8)" ( (binary_expression "lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8" identifier + (binary_expression "(ulong)*(uint *)(lVar2 + 0x58) * 8" (binary_expression "(ulong)*(uint *)(lVar2 + 0x58)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)(lVar2 + 0x58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x58)" ( (binary_expression "lVar2 + 0x58" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (expression_statement "*(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;" (assignment_expression "*(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1" (pointer_expression "*(int *)(lVar2 + 0x58)" * (cast_expression "(int *)(lVar2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x58)" ( (binary_expression "lVar2 + 0x58" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 0x58) + 1" (pointer_expression "*(int *)(lVar2 + 0x58)" * (cast_expression "(int *)(lVar2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x58)" ( (binary_expression "lVar2 + 0x58" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;" if (parenthesized_expression "((bVar1 < 0x20) || (bVar1 == 0x7f))" ( (binary_expression "(bVar1 < 0x20) || (bVar1 == 0x7f)" (parenthesized_expression "(bVar1 < 0x20)" ( (binary_expression "bVar1 < 0x20" identifier < number_literal) )) || (parenthesized_expression "(bVar1 == 0x7f)" ( (binary_expression "bVar1 == 0x7f" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) })) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void add_match(char *matched)\n\n{\n  byte bVar1;\n  lineedit_statics *plVar2;\n  byte *pbVar3;\n  char **ppcVar4;\n  \n  plVar2 = lineedit_ptr_to_statics;\n  bVar1 = *matched;\n  pbVar3 = (byte *)matched;\n  while( true ) {\n    if (bVar1 == 0) {\n      ppcVar4 = (char **)xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches);\n      plVar2->matches = ppcVar4;\n      ppcVar4[plVar2->num_matches] = matched;\n      plVar2->num_matches = plVar2->num_matches + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(matched);\n  return;\n}\n\n" (function_definition "void add_match(char *matched)\n\n{\n  byte bVar1;\n  lineedit_statics *plVar2;\n  byte *pbVar3;\n  char **ppcVar4;\n  \n  plVar2 = lineedit_ptr_to_statics;\n  bVar1 = *matched;\n  pbVar3 = (byte *)matched;\n  while( true ) {\n    if (bVar1 == 0) {\n      ppcVar4 = (char **)xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches);\n      plVar2->matches = ppcVar4;\n      ppcVar4[plVar2->num_matches] = matched;\n      plVar2->num_matches = plVar2->num_matches + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(matched);\n  return;\n}" primitive_type (function_declarator "add_match(char *matched)" identifier (parameter_list "(char *matched)" ( (parameter_declaration "char *matched" primitive_type (pointer_declarator "*matched" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  lineedit_statics *plVar2;\n  byte *pbVar3;\n  char **ppcVar4;\n  \n  plVar2 = lineedit_ptr_to_statics;\n  bVar1 = *matched;\n  pbVar3 = (byte *)matched;\n  while( true ) {\n    if (bVar1 == 0) {\n      ppcVar4 = (char **)xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches);\n      plVar2->matches = ppcVar4;\n      ppcVar4[plVar2->num_matches] = matched;\n      plVar2->num_matches = plVar2->num_matches + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(matched);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "lineedit_statics *plVar2;" type_identifier (pointer_declarator "*plVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (expression_statement "plVar2 = lineedit_ptr_to_statics;" (assignment_expression "plVar2 = lineedit_ptr_to_statics" identifier = identifier) ;) (expression_statement "bVar1 = *matched;" (assignment_expression "bVar1 = *matched" identifier = (pointer_expression "*matched" * identifier)) ;) (expression_statement "pbVar3 = (byte *)matched;" (assignment_expression "pbVar3 = (byte *)matched" identifier = (cast_expression "(byte *)matched" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while( true ) {\n    if (bVar1 == 0) {\n      ppcVar4 = (char **)xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches);\n      plVar2->matches = ppcVar4;\n      ppcVar4[plVar2->num_matches] = matched;\n      plVar2->num_matches = plVar2->num_matches + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (bVar1 == 0) {\n      ppcVar4 = (char **)xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches);\n      plVar2->matches = ppcVar4;\n      ppcVar4[plVar2->num_matches] = matched;\n      plVar2->num_matches = plVar2->num_matches + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }" { (if_statement "if (bVar1 == 0) {\n      ppcVar4 = (char **)xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches);\n      plVar2->matches = ppcVar4;\n      ppcVar4[plVar2->num_matches] = matched;\n      plVar2->num_matches = plVar2->num_matches + 1;\n      return;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      ppcVar4 = (char **)xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches);\n      plVar2->matches = ppcVar4;\n      ppcVar4[plVar2->num_matches] = matched;\n      plVar2->num_matches = plVar2->num_matches + 1;\n      return;\n    }" { (expression_statement "ppcVar4 = (char **)xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches);" (assignment_expression "ppcVar4 = (char **)xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches)" identifier = (cast_expression "(char **)xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc_vector_helper\n                                   (lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches)" identifier (argument_list "(lineedit_ptr_to_statics->matches,0x804,\n                                    lineedit_ptr_to_statics->num_matches)" ( (field_expression "lineedit_ptr_to_statics->matches" identifier -> field_identifier) , number_literal , (field_expression "lineedit_ptr_to_statics->num_matches" identifier -> field_identifier) ))))) ;) (expression_statement "plVar2->matches = ppcVar4;" (assignment_expression "plVar2->matches = ppcVar4" (field_expression "plVar2->matches" identifier -> field_identifier) = identifier) ;) (expression_statement "ppcVar4[plVar2->num_matches] = matched;" (assignment_expression "ppcVar4[plVar2->num_matches] = matched" (subscript_expression "ppcVar4[plVar2->num_matches]" identifier [ (field_expression "plVar2->num_matches" identifier -> field_identifier) ]) = identifier) ;) (expression_statement "plVar2->num_matches = plVar2->num_matches + 1;" (assignment_expression "plVar2->num_matches = plVar2->num_matches + 1" (field_expression "plVar2->num_matches" identifier -> field_identifier) = (binary_expression "plVar2->num_matches + 1" (field_expression "plVar2->num_matches" identifier -> field_identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;" if (parenthesized_expression "((bVar1 < 0x20) || (bVar1 == 0x7f))" ( (binary_expression "(bVar1 < 0x20) || (bVar1 == 0x7f)" (parenthesized_expression "(bVar1 < 0x20)" ( (binary_expression "bVar1 < 0x20" identifier < number_literal) )) || (parenthesized_expression "(bVar1 == 0x7f)" ( (binary_expression "bVar1 == 0x7f" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) })) (expression_statement "free(matched);" (call_expression "free(matched)" identifier (argument_list "(matched)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0019e85c(byte *param_1)\n\n{\n  byte bVar1;\n  long lVar2;\n  byte *pbVar3;\n  long lVar4;\n  \n  lVar2 = DAT_001c6a00;\n  bVar1 = *param_1;\n  pbVar3 = param_1;\n  while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0019e85c(byte *param_1)\n\n{\n  byte bVar1;\n  long lVar2;\n  byte *pbVar3;\n  long lVar4;\n  \n  lVar2 = DAT_001c6a00;\n  bVar1 = *param_1;\n  pbVar3 = param_1;\n  while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0019e85c(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  long lVar2;\n  byte *pbVar3;\n  long lVar4;\n  \n  lVar2 = DAT_001c6a00;\n  bVar1 = *param_1;\n  pbVar3 = param_1;\n  while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(param_1);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = DAT_001c6a00;" (assignment_expression "lVar2 = DAT_001c6a00" identifier = identifier) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }" { (if_statement "if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }" { (expression_statement "lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));" (assignment_expression "lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58))" identifier = (call_expression "FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58))" identifier (argument_list "(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58))" ( (pointer_expression "*(undefined8 *)(DAT_001c6a00 + 0x50)" * (cast_expression "(undefined8 *)(DAT_001c6a00 + 0x50)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x50)" ( (binary_expression "DAT_001c6a00 + 0x50" identifier + number_literal) )))) , number_literal , (pointer_expression "*(undefined4 *)(DAT_001c6a00 + 0x58)" * (cast_expression "(undefined4 *)(DAT_001c6a00 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c6a00 + 0x58)" ( (binary_expression "DAT_001c6a00 + 0x58" identifier + number_literal) )))) )))) ;) (expression_statement "*(long *)(lVar2 + 0x50) = lVar4;" (assignment_expression "*(long *)(lVar2 + 0x50) = lVar4" (pointer_expression "*(long *)(lVar2 + 0x50)" * (cast_expression "(long *)(lVar2 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x50)" ( (binary_expression "lVar2 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;" (assignment_expression "*(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1" (pointer_expression "*(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8)" * (cast_expression "(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8)" ( (binary_expression "lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8" identifier + (binary_expression "(ulong)*(uint *)(lVar2 + 0x58) * 8" (binary_expression "(ulong)*(uint *)(lVar2 + 0x58)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)(lVar2 + 0x58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x58)" ( (binary_expression "lVar2 + 0x58" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (expression_statement "*(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;" (assignment_expression "*(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1" (pointer_expression "*(int *)(lVar2 + 0x58)" * (cast_expression "(int *)(lVar2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x58)" ( (binary_expression "lVar2 + 0x58" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 0x58) + 1" (pointer_expression "*(int *)(lVar2 + 0x58)" * (cast_expression "(int *)(lVar2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x58)" ( (binary_expression "lVar2 + 0x58" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;" if (parenthesized_expression "((bVar1 < 0x20) || (bVar1 == 0x7f))" ( (binary_expression "(bVar1 < 0x20) || (bVar1 == 0x7f)" (parenthesized_expression "(bVar1 < 0x20)" ( (binary_expression "bVar1 < 0x20" identifier < number_literal) )) || (parenthesized_expression "(bVar1 == 0x7f)" ( (binary_expression "bVar1 == 0x7f" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) })) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0019e85c(byte *param_1)\n\n{\n  byte bVar1;\n  long lVar2;\n  byte *pbVar3;\n  long lVar4;\n  \n  lVar2 = DAT_001c6a00;\n  bVar1 = *param_1;\n  pbVar3 = param_1;\n  while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0019e85c(byte *param_1)" (identifier "FUN_0019e85c") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  long lVar2;\n  byte *pbVar3;\n  long lVar4;\n  \n  lVar2 = DAT_001c6a00;\n  bVar1 = *param_1;\n  pbVar3 = param_1;\n  while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }\n  free(param_1);\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (expression_statement "lVar2 = DAT_001c6a00;" (assignment_expression "lVar2 = DAT_001c6a00" (identifier "lVar2") (= "=") (identifier "DAT_001c6a00")) (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" (identifier "pbVar3") (= "=") (identifier "param_1")) (; ";")) (while_statement "while( true ) {\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }\n    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;\n    pbVar3 = pbVar3 + 1;\n    bVar1 = *pbVar3;\n  }" ({ "{") (if_statement "if (bVar1 == 0) {\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));\n      *(long *)(lVar2 + 0x50) = lVar4;\n      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;\n      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;\n      return;\n    }" ({ "{") (expression_statement "lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58));" (assignment_expression "lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58))" (identifier "lVar4") (= "=") (call_expression "FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58))" (identifier "FUN_001a7183") (argument_list "(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,\n                           *(undefined4 *)(DAT_001c6a00 + 0x58))" (( "(") (pointer_expression "*(undefined8 *)(DAT_001c6a00 + 0x50)" (* "*") (cast_expression "(undefined8 *)(DAT_001c6a00 + 0x50)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c6a00 + 0x50)" (( "(") (binary_expression "DAT_001c6a00 + 0x50" (identifier "DAT_001c6a00") (+ "+") (number_literal "0x50")) () ")")))) (, ",") (number_literal "0x804") (, ",") (pointer_expression "*(undefined4 *)(DAT_001c6a00 + 0x58)" (* "*") (cast_expression "(undefined4 *)(DAT_001c6a00 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c6a00 + 0x58)" (( "(") (binary_expression "DAT_001c6a00 + 0x58" (identifier "DAT_001c6a00") (+ "+") (number_literal "0x58")) () ")")))) () ")")))) (; ";")) (expression_statement "*(long *)(lVar2 + 0x50) = lVar4;" (assignment_expression "*(long *)(lVar2 + 0x50) = lVar4" (pointer_expression "*(long *)(lVar2 + 0x50)" (* "*") (cast_expression "(long *)(lVar2 + 0x50)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x50)" (( "(") (binary_expression "lVar2 + 0x50" (identifier "lVar2") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "*(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;" (assignment_expression "*(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1" (pointer_expression "*(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8)" (* "*") (cast_expression "(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8)" (( "(") (binary_expression "lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8" (identifier "lVar4") (+ "+") (binary_expression "(ulong)*(uint *)(lVar2 + 0x58) * 8" (binary_expression "(ulong)*(uint *)(lVar2 + 0x58)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(uint *)(lVar2 + 0x58)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x58)" (( "(") (binary_expression "lVar2 + 0x58" (identifier "lVar2") (+ "+") (number_literal "0x58")) () ")")))) (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;" (assignment_expression "*(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1" (pointer_expression "*(int *)(lVar2 + 0x58)" (* "*") (cast_expression "(int *)(lVar2 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x58)" (( "(") (binary_expression "lVar2 + 0x58" (identifier "lVar2") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (binary_expression "*(int *)(lVar2 + 0x58) + 1" (pointer_expression "*(int *)(lVar2 + 0x58)" (* "*") (cast_expression "(int *)(lVar2 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x58)" (( "(") (binary_expression "lVar2 + 0x58" (identifier "lVar2") (+ "+") (number_literal "0x58")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;" (if "if") (parenthesized_expression "((bVar1 < 0x20) || (bVar1 == 0x7f))" (( "(") (binary_expression "(bVar1 < 0x20) || (bVar1 == 0x7f)" (parenthesized_expression "(bVar1 < 0x20)" (( "(") (binary_expression "bVar1 < 0x20" (identifier "bVar1") (< "<") (number_literal "0x20")) () ")")) (|| "||") (parenthesized_expression "(bVar1 == 0x7f)" (( "(") (binary_expression "bVar1 == 0x7f" (identifier "bVar1") (== "==") (number_literal "0x7f")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" (identifier "bVar1") (= "=") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3"))) (; ";")) (} "}"))) (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *matched)

{
  type_1 var_1;
  type_2 *plVar2;
  type_1 *var_3;
  char **ppcVar4;
  
  plVar2 = lineedit_ptr_to_statics;
  var_1 = *matched;
  var_3 = (type_1 *)matched;
  while( true ) {
    if (var_1 == 0) {
      ppcVar4 = (char **)var_2
                                   (lineedit_ptr_to_statics->matches,0x804,
                                    lineedit_ptr_to_statics->num_matches);
      plVar2->matches = ppcVar4;
      ppcVar4[plVar2->num_matches] = matched;
      plVar2->num_matches = plVar2->num_matches + 1;
      return;
    }
    if ((var_1 < 0x20) || (var_1 == 0x7f)) break;
    var_3 = var_3 + 1;
    var_1 = *var_3;
  }
  var_4(matched);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (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: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

void MASKED(byte *param_1)

{
  byte bVar1;
  long lVar2;
  byte *pbVar3;
  long lVar4;
  
  lVar2 = DAT_001c6a00;
  bVar1 = *param_1;
  pbVar3 = param_1;
  while( true ) {
    if (bVar1 == 0) {
      lVar4 = FUN_001a7183(*(undefined8 *)(DAT_001c6a00 + 0x50),0x804,
                           *(undefined4 *)(DAT_001c6a00 + 0x58));
      *(long *)(lVar2 + 0x50) = lVar4;
      *(byte **)(lVar4 + (ulong)*(uint *)(lVar2 + 0x58) * 8) = param_1;
      *(int *)(lVar2 + 0x58) = *(int *)(lVar2 + 0x58) + 1;
      return;
    }
    if ((bVar1 < 0x20) || (bVar1 == 0x7f)) break;
    pbVar3 = pbVar3 + 1;
    bVar1 = *pbVar3;
  }
  free(param_1);
  return;
}

