
char * copy_completion(char *check_line,int start)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 0;
  while( true ) {
    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(check_line + start,0);
    if (iVar1 == 0) break;
    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(check_line,start);
    iVar2 = iVar2 + (iVar1 - start);
    start = iVar1;
  }
                    /* WARNING: Subroutine does not return */
  nmalloc(iVar2 + 1);
}



void copy_completion(int param_1,int param_2)

{
  int iVar1;
  undefined1 *puVar2;
  undefined1 *puVar3;
  undefined1 *puVar4;
  undefined1 *puVar5;
  int iVar6;
  int iVar7;
  
  iVar7 = 0;
  iVar6 = param_2;
  while( true ) {
    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);
    if (iVar1 == 0) break;
    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);
    iVar7 = iVar7 + (iVar1 - iVar6);
    iVar6 = iVar1;
  }
  puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);
  if (iVar7 < 1) {
    iVar7 = 0;
  }
  else {
    puVar4 = (undefined1 *)(param_1 + param_2);
    puVar5 = puVar4 + iVar7;
    puVar3 = puVar2;
    do {
      *puVar3 = *puVar4;
      puVar4 = puVar4 + 1;
      puVar3 = puVar3 + 1;
    } while (puVar4 != puVar5);
  }
  puVar2[iVar7] = 0;
  return;
}


lui gp,0x4
addiu gp,gp,-0xf28
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s0,a0,zero
or s3,a1,zero
or s1,a1,zero
or s2,zero,zero
or a1,zero,zero
addu a0,s0,s1
lw t9,-0x7abc(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x000454c4
_or a1,s1,zero
or a0,s0,zero
lw t9,-0x7e74(gp)
jalr t9
_nop
lw gp,0x10(sp)
subu s1,v0,s1
addu s2,s2,s1
b 0x00045480
_or s1,v0,zero
addiu a0,s2,0x1
lw t9,-0x7f90(gp)
bal 0x000461cc
_nop
lw gp,0x10(sp)
blez s2,0x00045524
_nop
addu a1,s0,s3
or v1,v0,zero
addu a2,a1,s2
lb a0,0x0(a1)
sb a0,0x0(v1)
addiu a1,a1,0x1
bne a1,a2,0x000454ec
_addiu v1,v1,0x1
addu s2,v0,s2
sb zero,0x0(s2)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
b 0x00045500
_or s2,zero,zero
(translation_unit "void copy_completion(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = 0;\n  iVar6 = param_2;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }\n  puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);\n  if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }\n  puVar2[iVar7] = 0;\n  return;\n}\n\n" (function_definition "void copy_completion(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = 0;\n  iVar6 = param_2;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }\n  puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);\n  if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }\n  puVar2[iVar7] = 0;\n  return;\n}" primitive_type (function_declarator "copy_completion(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = 0;\n  iVar6 = param_2;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }\n  puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);\n  if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }\n  puVar2[iVar7] = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = param_2;" (assignment_expression "iVar6 = param_2" identifier = identifier) ;) (while_statement "while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);" (assignment_expression "iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0)" identifier = (call_expression "(*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0)" (parenthesized_expression "(*(code *)PTR_is_word_mbchar_0007ca64)" ( (pointer_expression "*(code *)PTR_is_word_mbchar_0007ca64" * (cast_expression "(code *)PTR_is_word_mbchar_0007ca64" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + iVar6,0)" ( (binary_expression "param_1 + iVar6" identifier + identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);" (assignment_expression "iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1)" identifier = (call_expression "(*(code *)PTR_move_mbright_0007c6ac)(param_1)" (parenthesized_expression "(*(code *)PTR_move_mbright_0007c6ac)" ( (pointer_expression "*(code *)PTR_move_mbright_0007c6ac" * (cast_expression "(code *)PTR_move_mbright_0007c6ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar7 = iVar7 + (iVar1 - iVar6);" (assignment_expression "iVar7 = iVar7 + (iVar1 - iVar6)" identifier = (binary_expression "iVar7 + (iVar1 - iVar6)" identifier + (parenthesized_expression "(iVar1 - iVar6)" ( (binary_expression "iVar1 - iVar6" identifier - identifier) )))) ;) (expression_statement "iVar6 = iVar1;" (assignment_expression "iVar6 = iVar1" identifier = identifier) ;) })) (expression_statement "puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);" (assignment_expression "puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6)" identifier = (cast_expression "(undefined1 *)nmalloc(iVar7 + 1,iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "nmalloc(iVar7 + 1,iVar6)" identifier (argument_list "(iVar7 + 1,iVar6)" ( (binary_expression "iVar7 + 1" identifier + number_literal) , identifier ))))) ;) (if_statement "if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar7 = 0;\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }" else (compound_statement "{\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }" { (expression_statement "puVar4 = (undefined1 *)(param_1 + param_2);" (assignment_expression "puVar4 = (undefined1 *)(param_1 + param_2)" identifier = (cast_expression "(undefined1 *)(param_1 + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_2)" ( (binary_expression "param_1 + param_2" identifier + identifier) )))) ;) (expression_statement "puVar5 = puVar4 + iVar7;" (assignment_expression "puVar5 = puVar4 + iVar7" identifier = (binary_expression "puVar4 + iVar7" identifier + identifier)) ;) (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) (do_statement "do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);" do (compound_statement "{\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    }" { (expression_statement "*puVar3 = *puVar4;" (assignment_expression "*puVar3 = *puVar4" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != puVar5)" ( (binary_expression "puVar4 != puVar5" identifier != identifier) )) ;) }))) (expression_statement "puVar2[iVar7] = 0;" (assignment_expression "puVar2[iVar7] = 0" (subscript_expression "puVar2[iVar7]" identifier [ identifier ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "char * copy_completion(char *check_line,int start)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(check_line + start,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(check_line,start);\n    iVar2 = iVar2 + (iVar1 - start);\n    start = iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  nmalloc(iVar2 + 1);\n}\n\n" (function_definition "char * copy_completion(char *check_line,int start)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(check_line + start,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(check_line,start);\n    iVar2 = iVar2 + (iVar1 - start);\n    start = iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  nmalloc(iVar2 + 1);\n}" primitive_type (pointer_declarator "* copy_completion(char *check_line,int start)" * (function_declarator "copy_completion(char *check_line,int start)" identifier (parameter_list "(char *check_line,int start)" ( (parameter_declaration "char *check_line" primitive_type (pointer_declarator "*check_line" * identifier)) , (parameter_declaration "int start" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(check_line + start,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(check_line,start);\n    iVar2 = iVar2 + (iVar1 - start);\n    start = iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  nmalloc(iVar2 + 1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(check_line + start,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(check_line,start);\n    iVar2 = iVar2 + (iVar1 - start);\n    start = iVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(check_line + start,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(check_line,start);\n    iVar2 = iVar2 + (iVar1 - start);\n    start = iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(check_line + start,0);" (assignment_expression "iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(check_line + start,0)" identifier = (call_expression "(*(code *)PTR_is_word_mbchar_0007ca64)(check_line + start,0)" (parenthesized_expression "(*(code *)PTR_is_word_mbchar_0007ca64)" ( (pointer_expression "*(code *)PTR_is_word_mbchar_0007ca64" * (cast_expression "(code *)PTR_is_word_mbchar_0007ca64" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(check_line + start,0)" ( (binary_expression "check_line + start" identifier + identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(check_line,start);" (assignment_expression "iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(check_line,start)" identifier = (call_expression "(*(code *)PTR_move_mbright_0007c6ac)(check_line,start)" (parenthesized_expression "(*(code *)PTR_move_mbright_0007c6ac)" ( (pointer_expression "*(code *)PTR_move_mbright_0007c6ac" * (cast_expression "(code *)PTR_move_mbright_0007c6ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(check_line,start)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = iVar2 + (iVar1 - start);" (assignment_expression "iVar2 = iVar2 + (iVar1 - start)" identifier = (binary_expression "iVar2 + (iVar1 - start)" identifier + (parenthesized_expression "(iVar1 - start)" ( (binary_expression "iVar1 - start" identifier - identifier) )))) ;) (expression_statement "start = iVar1;" (assignment_expression "start = iVar1" identifier = identifier) ;) })) comment (expression_statement "nmalloc(iVar2 + 1);" (call_expression "nmalloc(iVar2 + 1)" identifier (argument_list "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) ))) ;) })))
(translation_unit "void copy_completion(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = 0;\n  iVar6 = param_2;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }\n  puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);\n  if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }\n  puVar2[iVar7] = 0;\n  return;\n}\n\n" (function_definition "void copy_completion(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = 0;\n  iVar6 = param_2;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }\n  puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);\n  if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }\n  puVar2[iVar7] = 0;\n  return;\n}" primitive_type (function_declarator "copy_completion(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = 0;\n  iVar6 = param_2;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }\n  puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);\n  if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }\n  puVar2[iVar7] = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = param_2;" (assignment_expression "iVar6 = param_2" identifier = identifier) ;) (while_statement "while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);" (assignment_expression "iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0)" identifier = (call_expression "(*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0)" (parenthesized_expression "(*(code *)PTR_is_word_mbchar_0007ca64)" ( (pointer_expression "*(code *)PTR_is_word_mbchar_0007ca64" * (cast_expression "(code *)PTR_is_word_mbchar_0007ca64" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + iVar6,0)" ( (binary_expression "param_1 + iVar6" identifier + identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);" (assignment_expression "iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1)" identifier = (call_expression "(*(code *)PTR_move_mbright_0007c6ac)(param_1)" (parenthesized_expression "(*(code *)PTR_move_mbright_0007c6ac)" ( (pointer_expression "*(code *)PTR_move_mbright_0007c6ac" * (cast_expression "(code *)PTR_move_mbright_0007c6ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar7 = iVar7 + (iVar1 - iVar6);" (assignment_expression "iVar7 = iVar7 + (iVar1 - iVar6)" identifier = (binary_expression "iVar7 + (iVar1 - iVar6)" identifier + (parenthesized_expression "(iVar1 - iVar6)" ( (binary_expression "iVar1 - iVar6" identifier - identifier) )))) ;) (expression_statement "iVar6 = iVar1;" (assignment_expression "iVar6 = iVar1" identifier = identifier) ;) })) (expression_statement "puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);" (assignment_expression "puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6)" identifier = (cast_expression "(undefined1 *)nmalloc(iVar7 + 1,iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "nmalloc(iVar7 + 1,iVar6)" identifier (argument_list "(iVar7 + 1,iVar6)" ( (binary_expression "iVar7 + 1" identifier + number_literal) , identifier ))))) ;) (if_statement "if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar7 = 0;\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }" else (compound_statement "{\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }" { (expression_statement "puVar4 = (undefined1 *)(param_1 + param_2);" (assignment_expression "puVar4 = (undefined1 *)(param_1 + param_2)" identifier = (cast_expression "(undefined1 *)(param_1 + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_2)" ( (binary_expression "param_1 + param_2" identifier + identifier) )))) ;) (expression_statement "puVar5 = puVar4 + iVar7;" (assignment_expression "puVar5 = puVar4 + iVar7" identifier = (binary_expression "puVar4 + iVar7" identifier + identifier)) ;) (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) (do_statement "do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);" do (compound_statement "{\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    }" { (expression_statement "*puVar3 = *puVar4;" (assignment_expression "*puVar3 = *puVar4" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != puVar5)" ( (binary_expression "puVar4 != puVar5" identifier != identifier) )) ;) }))) (expression_statement "puVar2[iVar7] = 0;" (assignment_expression "puVar2[iVar7] = 0" (subscript_expression "puVar2[iVar7]" identifier [ identifier ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void copy_completion(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = 0;\n  iVar6 = param_2;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }\n  puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);\n  if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }\n  puVar2[iVar7] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "copy_completion(int param_1,int param_2)" (identifier "copy_completion") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar7 = 0;\n  iVar6 = param_2;\n  while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }\n  puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);\n  if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }\n  puVar2[iVar7] = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = param_2;" (assignment_expression "iVar6 = param_2" (identifier "iVar6") (= "=") (identifier "param_2")) (; ";")) (while_statement "while( true ) {\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);\n    if (iVar1 == 0) break;\n    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);\n    iVar7 = iVar7 + (iVar1 - iVar6);\n    iVar6 = iVar1;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);" (assignment_expression "iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0)" (parenthesized_expression "(*(code *)PTR_is_word_mbchar_0007ca64)" (( "(") (pointer_expression "*(code *)PTR_is_word_mbchar_0007ca64" (* "*") (cast_expression "(code *)PTR_is_word_mbchar_0007ca64" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_is_word_mbchar_0007ca64"))) () ")")) (argument_list "(param_1 + iVar6,0)" (( "(") (binary_expression "param_1 + iVar6" (identifier "param_1") (+ "+") (identifier "iVar6")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);" (assignment_expression "iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_move_mbright_0007c6ac)(param_1)" (parenthesized_expression "(*(code *)PTR_move_mbright_0007c6ac)" (( "(") (pointer_expression "*(code *)PTR_move_mbright_0007c6ac" (* "*") (cast_expression "(code *)PTR_move_mbright_0007c6ac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_move_mbright_0007c6ac"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar7 = iVar7 + (iVar1 - iVar6);" (assignment_expression "iVar7 = iVar7 + (iVar1 - iVar6)" (identifier "iVar7") (= "=") (binary_expression "iVar7 + (iVar1 - iVar6)" (identifier "iVar7") (+ "+") (parenthesized_expression "(iVar1 - iVar6)" (( "(") (binary_expression "iVar1 - iVar6" (identifier "iVar1") (- "-") (identifier "iVar6")) () ")")))) (; ";")) (expression_statement "iVar6 = iVar1;" (assignment_expression "iVar6 = iVar1" (identifier "iVar6") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);" (assignment_expression "puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)nmalloc(iVar7 + 1,iVar6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "nmalloc(iVar7 + 1,iVar6)" (identifier "nmalloc") (argument_list "(iVar7 + 1,iVar6)" (( "(") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1")) (, ",") (identifier "iVar6") () ")"))))) (; ";")) (if_statement "if (iVar7 < 1) {\n    iVar7 = 0;\n  }\n  else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }" (if "if") (parenthesized_expression "(iVar7 < 1)" (( "(") (binary_expression "iVar7 < 1" (identifier "iVar7") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    iVar7 = 0;\n  }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }" (else "else") (compound_statement "{\n    puVar4 = (undefined1 *)(param_1 + param_2);\n    puVar5 = puVar4 + iVar7;\n    puVar3 = puVar2;\n    do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);\n  }" ({ "{") (expression_statement "puVar4 = (undefined1 *)(param_1 + param_2);" (assignment_expression "puVar4 = (undefined1 *)(param_1 + param_2)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(param_1 + param_2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + param_2)" (( "(") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "puVar5 = puVar4 + iVar7;" (assignment_expression "puVar5 = puVar4 + iVar7" (identifier "puVar5") (= "=") (binary_expression "puVar4 + iVar7" (identifier "puVar4") (+ "+") (identifier "iVar7"))) (; ";")) (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" (identifier "puVar3") (= "=") (identifier "puVar2")) (; ";")) (do_statement "do {\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    } while (puVar4 != puVar5);" (do "do") (compound_statement "{\n      *puVar3 = *puVar4;\n      puVar4 = puVar4 + 1;\n      puVar3 = puVar3 + 1;\n    }" ({ "{") (expression_statement "*puVar3 = *puVar4;" (assignment_expression "*puVar3 = *puVar4" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar4 != puVar5)" (( "(") (binary_expression "puVar4 != puVar5" (identifier "puVar4") (!= "!=") (identifier "puVar5")) () ")")) (; ";")) (} "}")))) (expression_statement "puVar2[iVar7] = 0;" (assignment_expression "puVar2[iVar7] = 0" (subscript_expression "puVar2[iVar7]" (identifier "puVar2") ([ "[") (identifier "iVar7") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (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 (binary_expression left: (identifier) right: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))) (return_statement))))

void MASKED(int param_1,int param_2)

{
  int iVar1;
  undefined1 *puVar2;
  undefined1 *puVar3;
  undefined1 *puVar4;
  undefined1 *puVar5;
  int iVar6;
  int iVar7;
  
  iVar7 = 0;
  iVar6 = param_2;
  while( true ) {
    iVar1 = (*(code *)PTR_is_word_mbchar_0007ca64)(param_1 + iVar6,0);
    if (iVar1 == 0) break;
    iVar1 = (*(code *)PTR_move_mbright_0007c6ac)(param_1);
    iVar7 = iVar7 + (iVar1 - iVar6);
    iVar6 = iVar1;
  }
  puVar2 = (undefined1 *)nmalloc(iVar7 + 1,iVar6);
  if (iVar7 < 1) {
    iVar7 = 0;
  }
  else {
    puVar4 = (undefined1 *)(param_1 + param_2);
    puVar5 = puVar4 + iVar7;
    puVar3 = puVar2;
    do {
      *puVar3 = *puVar4;
      puVar4 = puVar4 + 1;
      puVar3 = puVar3 + 1;
    } while (puVar4 != puVar5);
  }
  puVar2[iVar7] = 0;
  return;
}

