
char * sh_mkdoublequoted(char *s,int slen,int flags)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  int iVar4;
  char cVar5;
  char *pcVar6;
  
  if (flags == 0) {
    iVar4 = slen + 3;
  }
  else {
    iVar4 = slen * 2 + 1;
  }
  pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar4);
  *pcVar1 = '\"';
  cVar5 = *s;
  pcVar2 = pcVar1 + 1;
  if (cVar5 == '\0') {
    pcVar1[2] = '\0';
    *pcVar2 = '\"';
    return pcVar1;
  }
  do {
    pcVar6 = pcVar2 + 1;
    pcVar3 = pcVar2;
    if ((flags != 0) && (cVar5 == '\"')) {
      *pcVar2 = '\\';
      pcVar3 = pcVar6;
      pcVar6 = pcVar2 + 2;
    }
    pcVar2 = pcVar6;
    *pcVar3 = *s;
    cVar5 = s[1];
    s = s + 1;
  } while (cVar5 != '\0');
  pcVar2[1] = '\0';
  *pcVar2 = '\"';
  return pcVar1;
}



void sh_mkdoublequoted(char *param_1,int param_2,int param_3)

{
  undefined1 *puVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  
  if (param_3 == 0) {
    param_2 = param_2 + 3;
  }
  else {
    param_2 = param_2 * 2 + 1;
  }
  puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);
  *puVar1 = 0x22;
  cVar4 = *param_1;
  pcVar2 = puVar1 + 1;
  if (cVar4 == '\0') {
    puVar1[2] = 0;
    *pcVar2 = '\"';
    return;
  }
  do {
    pcVar5 = pcVar2 + 1;
    pcVar3 = pcVar2;
    if ((param_3 != 0) && (cVar4 == '\"')) {
      *pcVar2 = '\\';
      pcVar3 = pcVar5;
      pcVar5 = pcVar2 + 2;
    }
    pcVar2 = pcVar5;
    *pcVar3 = *param_1;
    cVar4 = param_1[1];
    param_1 = param_1 + 1;
  } while (cVar4 != '\0');
  pcVar2[1] = '\0';
  *pcVar2 = '\"';
  return;
}


lui gp,0x7
addiu gp,gp,0x16fc
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a2,zero
sw s0,0x1c(sp)
or s0,a0,zero
bne a2,zero,0x000daef0
_sw ra,0x24(sp)
addiu a0,a1,0x3
lw t9,-0x7f90(gp)
jalr t9
_nop
li a0,0x22
sb a0,0x0(v0)
lb a0,0x0(s0)
beq a0,zero,0x000daefc
_addiu v1,v0,0x1
li a2,0x22
li a3,0x5c
addiu s0,s0,0x1
beq s1,zero,0x000daebc
_addiu a1,v1,0x1
bne a0,a2,0x000daebc
_addiu a0,v1,0x2
sb a3,0x0(v1)
or v1,a1,zero
or a1,a0,zero
lb a0,-0x1(s0)
sb a0,0x0(v1)
lb a0,0x0(s0)
bne a0,zero,0x000dae9c
_or v1,a1,zero
li v1,0x22
sb zero,0x1(a1)
sb v1,0x0(a1)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
sll a0,a1,0x1
b 0x000dae74
_addiu a0,a0,0x1
or a1,v1,zero
li v1,0x22
sb zero,0x1(a1)
sb v1,0x0(a1)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void sh_mkdoublequoted(char *param_1,int param_2,int param_3)\n\n{\n  undefined1 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }\n  puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);\n  *puVar1 = 0x22;\n  cVar4 = *param_1;\n  pcVar2 = puVar1 + 1;\n  if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return;\n}\n\n" (function_definition "void sh_mkdoublequoted(char *param_1,int param_2,int param_3)\n\n{\n  undefined1 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }\n  puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);\n  *puVar1 = 0x22;\n  cVar4 = *param_1;\n  pcVar2 = puVar1 + 1;\n  if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return;\n}" primitive_type (function_declarator "sh_mkdoublequoted(char *param_1,int param_2,int param_3)" identifier (parameter_list "(char *param_1,int param_2,int param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }\n  puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);\n  *puVar1 = 0x22;\n  cVar4 = *param_1;\n  pcVar2 = puVar1 + 1;\n  if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = param_2 + 3;\n  }" { (expression_statement "param_2 = param_2 + 3;" (assignment_expression "param_2 = param_2 + 3" identifier = (binary_expression "param_2 + 3" identifier + number_literal)) ;) }) (else_clause "else {\n    param_2 = param_2 * 2 + 1;\n  }" else (compound_statement "{\n    param_2 = param_2 * 2 + 1;\n  }" { (expression_statement "param_2 = param_2 * 2 + 1;" (assignment_expression "param_2 = param_2 * 2 + 1" identifier = (binary_expression "param_2 * 2 + 1" (binary_expression "param_2 * 2" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);" (assignment_expression "puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(param_2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "*puVar1 = 0x22;" (assignment_expression "*puVar1 = 0x22" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "cVar4 = *param_1;" (assignment_expression "cVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar2 = puVar1 + 1;" (assignment_expression "pcVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }" { (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*pcVar2 = '\"';" (assignment_expression "*pcVar2 = '\"'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (do_statement "do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');" do (compound_statement "{\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  }" { (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (if_statement "if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }" if (parenthesized_expression "((param_3 != 0) && (cVar4 == '\"'))" ( (binary_expression "(param_3 != 0) && (cVar4 == '\"')" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(cVar4 == '\"')" ( (binary_expression "cVar4 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) ))) )) (compound_statement "{\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }" { (expression_statement "*pcVar2 = '\\';" (assignment_expression "*pcVar2 = '\\'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" identifier = identifier) ;) (expression_statement "pcVar5 = pcVar2 + 2;" (assignment_expression "pcVar5 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) })) (expression_statement "pcVar2 = pcVar5;" (assignment_expression "pcVar2 = pcVar5" identifier = identifier) ;) (expression_statement "*pcVar3 = *param_1;" (assignment_expression "*pcVar3 = *param_1" (pointer_expression "*pcVar3" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "cVar4 = param_1[1];" (assignment_expression "cVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "pcVar2[1] = '\0';" (assignment_expression "pcVar2[1] = '\0'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*pcVar2 = '\"';" (assignment_expression "*pcVar2 = '\"'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit "char * sh_mkdoublequoted(char *s,int slen,int flags)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  char cVar5;\n  char *pcVar6;\n  \n  if (flags == 0) {\n    iVar4 = slen + 3;\n  }\n  else {\n    iVar4 = slen * 2 + 1;\n  }\n  pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar4);\n  *pcVar1 = '\"';\n  cVar5 = *s;\n  pcVar2 = pcVar1 + 1;\n  if (cVar5 == '\0') {\n    pcVar1[2] = '\0';\n    *pcVar2 = '\"';\n    return pcVar1;\n  }\n  do {\n    pcVar6 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((flags != 0) && (cVar5 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar6;\n      pcVar6 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar6;\n    *pcVar3 = *s;\n    cVar5 = s[1];\n    s = s + 1;\n  } while (cVar5 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return pcVar1;\n}\n\n" (function_definition "char * sh_mkdoublequoted(char *s,int slen,int flags)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  char cVar5;\n  char *pcVar6;\n  \n  if (flags == 0) {\n    iVar4 = slen + 3;\n  }\n  else {\n    iVar4 = slen * 2 + 1;\n  }\n  pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar4);\n  *pcVar1 = '\"';\n  cVar5 = *s;\n  pcVar2 = pcVar1 + 1;\n  if (cVar5 == '\0') {\n    pcVar1[2] = '\0';\n    *pcVar2 = '\"';\n    return pcVar1;\n  }\n  do {\n    pcVar6 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((flags != 0) && (cVar5 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar6;\n      pcVar6 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar6;\n    *pcVar3 = *s;\n    cVar5 = s[1];\n    s = s + 1;\n  } while (cVar5 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return pcVar1;\n}" primitive_type (pointer_declarator "* sh_mkdoublequoted(char *s,int slen,int flags)" * (function_declarator "sh_mkdoublequoted(char *s,int slen,int flags)" identifier (parameter_list "(char *s,int slen,int flags)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "int slen" primitive_type identifier) , (parameter_declaration "int flags" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  int iVar4;\n  char cVar5;\n  char *pcVar6;\n  \n  if (flags == 0) {\n    iVar4 = slen + 3;\n  }\n  else {\n    iVar4 = slen * 2 + 1;\n  }\n  pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar4);\n  *pcVar1 = '\"';\n  cVar5 = *s;\n  pcVar2 = pcVar1 + 1;\n  if (cVar5 == '\0') {\n    pcVar1[2] = '\0';\n    *pcVar2 = '\"';\n    return pcVar1;\n  }\n  do {\n    pcVar6 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((flags != 0) && (cVar5 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar6;\n      pcVar6 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar6;\n    *pcVar3 = *s;\n    cVar5 = s[1];\n    s = s + 1;\n  } while (cVar5 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return pcVar1;\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 "int iVar4;" primitive_type identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (if_statement "if (flags == 0) {\n    iVar4 = slen + 3;\n  }\n  else {\n    iVar4 = slen * 2 + 1;\n  }" if (parenthesized_expression "(flags == 0)" ( (binary_expression "flags == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = slen + 3;\n  }" { (expression_statement "iVar4 = slen + 3;" (assignment_expression "iVar4 = slen + 3" identifier = (binary_expression "slen + 3" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar4 = slen * 2 + 1;\n  }" else (compound_statement "{\n    iVar4 = slen * 2 + 1;\n  }" { (expression_statement "iVar4 = slen * 2 + 1;" (assignment_expression "iVar4 = slen * 2 + 1" identifier = (binary_expression "slen * 2 + 1" (binary_expression "slen * 2" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar4);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar4)" identifier = (cast_expression "(char *)(*(code *)PTR_xmalloc_001445b0)(iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar4)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))))) ;) (expression_statement "*pcVar1 = '\"';" (assignment_expression "*pcVar1 = '\"'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (expression_statement "cVar5 = *s;" (assignment_expression "cVar5 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (expression_statement "pcVar2 = pcVar1 + 1;" (assignment_expression "pcVar2 = pcVar1 + 1" identifier = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar5 == '\0') {\n    pcVar1[2] = '\0';\n    *pcVar2 = '\"';\n    return pcVar1;\n  }" if (parenthesized_expression "(cVar5 == '\0')" ( (binary_expression "cVar5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar1[2] = '\0';\n    *pcVar2 = '\"';\n    return pcVar1;\n  }" { (expression_statement "pcVar1[2] = '\0';" (assignment_expression "pcVar1[2] = '\0'" (subscript_expression "pcVar1[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*pcVar2 = '\"';" (assignment_expression "*pcVar2 = '\"'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (return_statement "return pcVar1;" return identifier ;) })) (do_statement "do {\n    pcVar6 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((flags != 0) && (cVar5 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar6;\n      pcVar6 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar6;\n    *pcVar3 = *s;\n    cVar5 = s[1];\n    s = s + 1;\n  } while (cVar5 != '\0');" do (compound_statement "{\n    pcVar6 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((flags != 0) && (cVar5 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar6;\n      pcVar6 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar6;\n    *pcVar3 = *s;\n    cVar5 = s[1];\n    s = s + 1;\n  }" { (expression_statement "pcVar6 = pcVar2 + 1;" (assignment_expression "pcVar6 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (if_statement "if ((flags != 0) && (cVar5 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar6;\n      pcVar6 = pcVar2 + 2;\n    }" if (parenthesized_expression "((flags != 0) && (cVar5 == '\"'))" ( (binary_expression "(flags != 0) && (cVar5 == '\"')" (parenthesized_expression "(flags != 0)" ( (binary_expression "flags != 0" identifier != number_literal) )) && (parenthesized_expression "(cVar5 == '\"')" ( (binary_expression "cVar5 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) ))) )) (compound_statement "{\n      *pcVar2 = '\\';\n      pcVar3 = pcVar6;\n      pcVar6 = pcVar2 + 2;\n    }" { (expression_statement "*pcVar2 = '\\';" (assignment_expression "*pcVar2 = '\\'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar3 = pcVar6;" (assignment_expression "pcVar3 = pcVar6" identifier = identifier) ;) (expression_statement "pcVar6 = pcVar2 + 2;" (assignment_expression "pcVar6 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) })) (expression_statement "pcVar2 = pcVar6;" (assignment_expression "pcVar2 = pcVar6" identifier = identifier) ;) (expression_statement "*pcVar3 = *s;" (assignment_expression "*pcVar3 = *s" (pointer_expression "*pcVar3" * identifier) = (pointer_expression "*s" * identifier)) ;) (expression_statement "cVar5 = s[1];" (assignment_expression "cVar5 = s[1]" identifier = (subscript_expression "s[1]" identifier [ number_literal ])) ;) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "pcVar2[1] = '\0';" (assignment_expression "pcVar2[1] = '\0'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*pcVar2 = '\"';" (assignment_expression "*pcVar2 = '\"'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "void sh_mkdoublequoted(char *param_1,int param_2,int param_3)\n\n{\n  undefined1 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }\n  puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);\n  *puVar1 = 0x22;\n  cVar4 = *param_1;\n  pcVar2 = puVar1 + 1;\n  if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return;\n}\n\n" (function_definition "void sh_mkdoublequoted(char *param_1,int param_2,int param_3)\n\n{\n  undefined1 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }\n  puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);\n  *puVar1 = 0x22;\n  cVar4 = *param_1;\n  pcVar2 = puVar1 + 1;\n  if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return;\n}" primitive_type (function_declarator "sh_mkdoublequoted(char *param_1,int param_2,int param_3)" identifier (parameter_list "(char *param_1,int param_2,int param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }\n  puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);\n  *puVar1 = 0x22;\n  cVar4 = *param_1;\n  pcVar2 = puVar1 + 1;\n  if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = param_2 + 3;\n  }" { (expression_statement "param_2 = param_2 + 3;" (assignment_expression "param_2 = param_2 + 3" identifier = (binary_expression "param_2 + 3" identifier + number_literal)) ;) }) (else_clause "else {\n    param_2 = param_2 * 2 + 1;\n  }" else (compound_statement "{\n    param_2 = param_2 * 2 + 1;\n  }" { (expression_statement "param_2 = param_2 * 2 + 1;" (assignment_expression "param_2 = param_2 * 2 + 1" identifier = (binary_expression "param_2 * 2 + 1" (binary_expression "param_2 * 2" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);" (assignment_expression "puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(param_2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "*puVar1 = 0x22;" (assignment_expression "*puVar1 = 0x22" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "cVar4 = *param_1;" (assignment_expression "cVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar2 = puVar1 + 1;" (assignment_expression "pcVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }" { (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*pcVar2 = '\"';" (assignment_expression "*pcVar2 = '\"'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (do_statement "do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');" do (compound_statement "{\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  }" { (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (if_statement "if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }" if (parenthesized_expression "((param_3 != 0) && (cVar4 == '\"'))" ( (binary_expression "(param_3 != 0) && (cVar4 == '\"')" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(cVar4 == '\"')" ( (binary_expression "cVar4 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) ))) )) (compound_statement "{\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }" { (expression_statement "*pcVar2 = '\\';" (assignment_expression "*pcVar2 = '\\'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" identifier = identifier) ;) (expression_statement "pcVar5 = pcVar2 + 2;" (assignment_expression "pcVar5 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) })) (expression_statement "pcVar2 = pcVar5;" (assignment_expression "pcVar2 = pcVar5" identifier = identifier) ;) (expression_statement "*pcVar3 = *param_1;" (assignment_expression "*pcVar3 = *param_1" (pointer_expression "*pcVar3" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "cVar4 = param_1[1];" (assignment_expression "cVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "pcVar2[1] = '\0';" (assignment_expression "pcVar2[1] = '\0'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*pcVar2 = '\"';" (assignment_expression "*pcVar2 = '\"'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (return_statement return ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (return_statement return ;) })))
(function_definition "void sh_mkdoublequoted(char *param_1,int param_2,int param_3)\n\n{\n  undefined1 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }\n  puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);\n  *puVar1 = 0x22;\n  cVar4 = *param_1;\n  pcVar2 = puVar1 + 1;\n  if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return;\n}" (primitive_type "void") (function_declarator "sh_mkdoublequoted(char *param_1,int param_2,int param_3)" (identifier "sh_mkdoublequoted") (parameter_list "(char *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  \n  if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }\n  puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);\n  *puVar1 = 0x22;\n  cVar4 = *param_1;\n  pcVar2 = puVar1 + 1;\n  if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }\n  do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');\n  pcVar2[1] = '\0';\n  *pcVar2 = '\"';\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (if_statement "if (param_3 == 0) {\n    param_2 = param_2 + 3;\n  }\n  else {\n    param_2 = param_2 * 2 + 1;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = param_2 + 3;\n  }" ({ "{") (expression_statement "param_2 = param_2 + 3;" (assignment_expression "param_2 = param_2 + 3" (identifier "param_2") (= "=") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (else_clause "else {\n    param_2 = param_2 * 2 + 1;\n  }" (else "else") (compound_statement "{\n    param_2 = param_2 * 2 + 1;\n  }" ({ "{") (expression_statement "param_2 = param_2 * 2 + 1;" (assignment_expression "param_2 = param_2 * 2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 * 2 + 1" (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2")) (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);" (assignment_expression "puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xmalloc_001445b0)(param_2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_001445b0" (* "*") (cast_expression "(code *)PTR_xmalloc_001445b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_001445b0"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0x22;" (assignment_expression "*puVar1 = 0x22" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0x22")) (; ";")) (expression_statement "cVar4 = *param_1;" (assignment_expression "cVar4 = *param_1" (identifier "cVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar2 = puVar1 + 1;" (assignment_expression "pcVar2 = puVar1 + 1" (identifier "pcVar2") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar4 == '\0') {\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }" (if "if") (parenthesized_expression "(cVar4 == '\0')" (( "(") (binary_expression "cVar4 == '\0'" (identifier "cVar4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    puVar1[2] = 0;\n    *pcVar2 = '\"';\n    return;\n  }" ({ "{") (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*pcVar2 = '\"';" (assignment_expression "*pcVar2 = '\"'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (do_statement "do {\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  } while (cVar4 != '\0');" (do "do") (compound_statement "{\n    pcVar5 = pcVar2 + 1;\n    pcVar3 = pcVar2;\n    if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }\n    pcVar2 = pcVar5;\n    *pcVar3 = *param_1;\n    cVar4 = param_1[1];\n    param_1 = param_1 + 1;\n  }" ({ "{") (expression_statement "pcVar5 = pcVar2 + 1;" (assignment_expression "pcVar5 = pcVar2 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" (identifier "pcVar3") (= "=") (identifier "pcVar2")) (; ";")) (if_statement "if ((param_3 != 0) && (cVar4 == '\"')) {\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }" (if "if") (parenthesized_expression "((param_3 != 0) && (cVar4 == '\"'))" (( "(") (binary_expression "(param_3 != 0) && (cVar4 == '\"')" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(cVar4 == '\"')" (( "(") (binary_expression "cVar4 == '\"'" (identifier "cVar4") (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      *pcVar2 = '\\';\n      pcVar3 = pcVar5;\n      pcVar5 = pcVar2 + 2;\n    }" ({ "{") (expression_statement "*pcVar2 = '\\';" (assignment_expression "*pcVar2 = '\\'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) (; ";")) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" (identifier "pcVar3") (= "=") (identifier "pcVar5")) (; ";")) (expression_statement "pcVar5 = pcVar2 + 2;" (assignment_expression "pcVar5 = pcVar2 + 2" (identifier "pcVar5") (= "=") (binary_expression "pcVar2 + 2" (identifier "pcVar2") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "pcVar2 = pcVar5;" (assignment_expression "pcVar2 = pcVar5" (identifier "pcVar2") (= "=") (identifier "pcVar5")) (; ";")) (expression_statement "*pcVar3 = *param_1;" (assignment_expression "*pcVar3 = *param_1" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "cVar4 = param_1[1];" (assignment_expression "cVar4 = param_1[1]" (identifier "cVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar4 != '\0')" (( "(") (binary_expression "cVar4 != '\0'" (identifier "cVar4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "pcVar2[1] = '\0';" (assignment_expression "pcVar2[1] = '\0'" (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "*pcVar2 = '\"';" (assignment_expression "*pcVar2 = '\"'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) (; ";")) (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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) 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: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (return_statement))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (return_statement))))

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

{
  undefined1 *puVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  
  if (param_3 == 0) {
    param_2 = param_2 + 3;
  }
  else {
    param_2 = param_2 * 2 + 1;
  }
  puVar1 = (undefined1 *)(*(code *)PTR_xmalloc_001445b0)(param_2);
  *puVar1 = 0x22;
  cVar4 = *param_1;
  pcVar2 = puVar1 + 1;
  if (cVar4 == '\0') {
    puVar1[2] = 0;
    *pcVar2 = '\"';
    return;
  }
  do {
    pcVar5 = pcVar2 + 1;
    pcVar3 = pcVar2;
    if ((param_3 != 0) && (cVar4 == '\"')) {
      *pcVar2 = '\\';
      pcVar3 = pcVar5;
      pcVar5 = pcVar2 + 2;
    }
    pcVar2 = pcVar5;
    *pcVar3 = *param_1;
    cVar4 = param_1[1];
    param_1 = param_1 + 1;
  } while (cVar4 != '\0');
  pcVar2[1] = '\0';
  *pcVar2 = '\"';
  return;
}

