
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

char * sh_single_quote(char *string)

{
  char cVar1;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  char *pcVar5;
  
  sVar2 = strlen(string);
  pcVar3 = (char *)xmalloc(sVar2 * 4 + 3);
  if ((*string == '\'') && (string[1] == '\0')) {
    pcVar3[2] = '\0';
    pcVar3[0] = '\\';
    pcVar3[1] = '\'';
    return pcVar3;
  }
  *pcVar3 = '\'';
  pcVar4 = pcVar3 + 1;
  do {
    while( true ) {
      cVar1 = *string;
      if (cVar1 == '\0') goto LAB_000d957d;
      *pcVar4 = cVar1;
      if (cVar1 != '\'') break;
      pcVar4[3] = '\'';
      pcVar5 = pcVar4 + 4;
      pcVar4[1] = '\\';
      pcVar4[2] = '\'';
      string = string + 1;
      pcVar4 = pcVar5;
      if (string == (char *)0x0) goto LAB_000d957d;
    }
    pcVar4 = pcVar4 + 1;
    string = string + 1;
  } while (string != (char *)0x0);
LAB_000d957d:
  pcVar4[0] = '\'';
  pcVar4[1] = '\0';
  return pcVar3;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void sh_single_quote(char *param_1)

{
  char cVar1;
  size_t sVar2;
  undefined2 *puVar3;
  char *pcVar4;
  char *pcVar5;
  
  sVar2 = strlen(param_1);
  puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);
  if ((*param_1 == '\'') && (param_1[1] == '\0')) {
    *(undefined1 *)(puVar3 + 1) = 0;
    *puVar3 = 0x275c;
    return;
  }
  *(undefined1 *)puVar3 = 0x27;
  pcVar4 = (char *)((int)puVar3 + 1);
  do {
    while( true ) {
      cVar1 = *param_1;
      if (cVar1 == '\0') goto LAB_000d957d;
      *pcVar4 = cVar1;
      if (cVar1 != '\'') break;
      pcVar4[3] = '\'';
      pcVar5 = pcVar4 + 4;
      pcVar4[1] = '\\';
      pcVar4[2] = '\'';
      param_1 = param_1 + 1;
      pcVar4 = pcVar5;
      if (param_1 == (char *)0x0) goto LAB_000d957d;
    }
    pcVar4 = pcVar4 + 1;
    param_1 = param_1 + 1;
  } while (param_1 != (char *)0x0);
LAB_000d957d:
  pcVar4[0] = '\'';
  pcVar4[1] = '\0';
  return;
}


PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x98ae9
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x0002e760
LEA EAX,[EAX*0x4 + 0x3]
MOV dword ptr [ESP],EAX
CALL 0x000ad700
ADD ESP,0x10
CMP byte ptr [ESI],0x27
JZ 0x000d9590
LEA EDX,[EAX + 0x1]
MOV byte ptr [EAX],0x27
JMP 0x000d9558
ADD EDX,0x1
ADD ESI,0x1
JZ 0x000d957d
MOVSX ECX,byte ptr [ESI]
MOV EBX,ECX
TEST ECX,ECX
JZ 0x000d957d
MOV byte ptr [EDX],BL
CMP ECX,0x27
JNZ 0x000d9550
MOV EBX,0x275c
MOV byte ptr [EDX + 0x3],0x27
ADD EDX,0x4
MOV word ptr [EDX + -0x3],BX
ADD ESI,0x1
JNZ 0x000d9558
MOV ECX,0x27
MOV word ptr [EDX],CX
ADD ESP,0x4
POP EBX
POP ESI
RET
CMP byte ptr [ESI + 0x1],0x0
JNZ 0x000d9541
MOV ESI,0x275c
MOV byte ptr [EAX + 0x2],0x0
MOV word ptr [EAX],SI
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid sh_single_quote(char *param_1)\n\n{\n  char cVar1;\n  size_t sVar2;\n  undefined2 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(param_1);\n  puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);\n  if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }\n  *(undefined1 *)puVar3 = 0x27;\n  pcVar4 = (char *)((int)puVar3 + 1);\n  do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return;\n}\n\n" comment (function_definition "void sh_single_quote(char *param_1)\n\n{\n  char cVar1;\n  size_t sVar2;\n  undefined2 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(param_1);\n  puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);\n  if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }\n  *(undefined1 *)puVar3 = 0x27;\n  pcVar4 = (char *)((int)puVar3 + 1);\n  do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return;\n}" primitive_type (function_declarator "sh_single_quote(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  undefined2 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(param_1);\n  puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);\n  if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }\n  *(undefined1 *)puVar3 = 0x27;\n  pcVar4 = (char *)((int)puVar3 + 1);\n  do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);" (assignment_expression "puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3)" identifier = (cast_expression "(undefined2 *)xmalloc(sVar2 * 4 + 3)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 * 4 + 3)" identifier (argument_list "(sVar2 * 4 + 3)" ( (binary_expression "sVar2 * 4 + 3" (binary_expression "sVar2 * 4" identifier * number_literal) + number_literal) ))))) ;) (if_statement "if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }" if (parenthesized_expression "((*param_1 == '\'') && (param_1[1] == '\0'))" ( (binary_expression "(*param_1 == '\'') && (param_1[1] == '\0')" (parenthesized_expression "(*param_1 == '\'')" ( (binary_expression "*param_1 == '\''" (pointer_expression "*param_1" * identifier) == (char_literal "'\''" ' escape_sequence ')) )) && (parenthesized_expression "(param_1[1] == '\0')" ( (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }" { (expression_statement "*(undefined1 *)(puVar3 + 1) = 0;" (assignment_expression "*(undefined1 *)(puVar3 + 1) = 0" (pointer_expression "*(undefined1 *)(puVar3 + 1)" * (cast_expression "(undefined1 *)(puVar3 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*puVar3 = 0x275c;" (assignment_expression "*puVar3 = 0x275c" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined1 *)puVar3 = 0x27;" (assignment_expression "*(undefined1 *)puVar3 = 0x27" (pointer_expression "*(undefined1 *)puVar3" * (cast_expression "(undefined1 *)puVar3" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "pcVar4 = (char *)((int)puVar3 + 1);" (assignment_expression "pcVar4 = (char *)((int)puVar3 + 1)" identifier = (cast_expression "(char *)((int)puVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 1)" ( (binary_expression "(int)puVar3 + 1" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (do_statement "do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);" do (compound_statement "{\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  }" { (while_statement "while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 == '\0') goto LAB_000d957d;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000d957d;" goto statement_identifier ;)) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (if_statement "if (cVar1 != '\'') break;" if (parenthesized_expression "(cVar1 != '\'')" ( (binary_expression "cVar1 != '\''" identifier != (char_literal "'\''" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "pcVar4[3] = '\'';" (assignment_expression "pcVar4[3] = '\''" (subscript_expression "pcVar4[3]" identifier [ number_literal ]) = (char_literal "'\''" ' escape_sequence ')) ;) (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "pcVar4[1] = '\\';" (assignment_expression "pcVar4[1] = '\\'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar4[2] = '\'';" (assignment_expression "pcVar4[2] = '\''" (subscript_expression "pcVar4[2]" identifier [ number_literal ]) = (char_literal "'\''" ' escape_sequence ')) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = pcVar5;" (assignment_expression "pcVar4 = pcVar5" identifier = identifier) ;) (if_statement "if (param_1 == (char *)0x0) goto LAB_000d957d;" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000d957d;" goto statement_identifier ;)) })) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 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 "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_000d957d:\n  pcVar4[0] = '\'';" statement_identifier : (expression_statement "pcVar4[0] = '\'';" (assignment_expression "pcVar4[0] = '\''" (subscript_expression "pcVar4[0]" identifier [ number_literal ]) = (char_literal "'\''" ' escape_sequence ')) ;)) (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * sh_single_quote(char *string)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(string);\n  pcVar3 = (char *)xmalloc(sVar2 * 4 + 3);\n  if ((*string == '\'') && (string[1] == '\0')) {\n    pcVar3[2] = '\0';\n    pcVar3[0] = '\\';\n    pcVar3[1] = '\'';\n    return pcVar3;\n  }\n  *pcVar3 = '\'';\n  pcVar4 = pcVar3 + 1;\n  do {\n    while( true ) {\n      cVar1 = *string;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      string = string + 1;\n      pcVar4 = pcVar5;\n      if (string == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    string = string + 1;\n  } while (string != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return pcVar3;\n}\n\n" comment comment (function_definition "char * sh_single_quote(char *string)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(string);\n  pcVar3 = (char *)xmalloc(sVar2 * 4 + 3);\n  if ((*string == '\'') && (string[1] == '\0')) {\n    pcVar3[2] = '\0';\n    pcVar3[0] = '\\';\n    pcVar3[1] = '\'';\n    return pcVar3;\n  }\n  *pcVar3 = '\'';\n  pcVar4 = pcVar3 + 1;\n  do {\n    while( true ) {\n      cVar1 = *string;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      string = string + 1;\n      pcVar4 = pcVar5;\n      if (string == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    string = string + 1;\n  } while (string != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return pcVar3;\n}" primitive_type (pointer_declarator "* sh_single_quote(char *string)" * (function_declarator "sh_single_quote(char *string)" identifier (parameter_list "(char *string)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(string);\n  pcVar3 = (char *)xmalloc(sVar2 * 4 + 3);\n  if ((*string == '\'') && (string[1] == '\0')) {\n    pcVar3[2] = '\0';\n    pcVar3[0] = '\\';\n    pcVar3[1] = '\'';\n    return pcVar3;\n  }\n  *pcVar3 = '\'';\n  pcVar4 = pcVar3 + 1;\n  do {\n    while( true ) {\n      cVar1 = *string;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      string = string + 1;\n      pcVar4 = pcVar5;\n      if (string == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    string = string + 1;\n  } while (string != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return pcVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "sVar2 = strlen(string);" (assignment_expression "sVar2 = strlen(string)" identifier = (call_expression "strlen(string)" identifier (argument_list "(string)" ( identifier )))) ;) (expression_statement "pcVar3 = (char *)xmalloc(sVar2 * 4 + 3);" (assignment_expression "pcVar3 = (char *)xmalloc(sVar2 * 4 + 3)" identifier = (cast_expression "(char *)xmalloc(sVar2 * 4 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 * 4 + 3)" identifier (argument_list "(sVar2 * 4 + 3)" ( (binary_expression "sVar2 * 4 + 3" (binary_expression "sVar2 * 4" identifier * number_literal) + number_literal) ))))) ;) (if_statement "if ((*string == '\'') && (string[1] == '\0')) {\n    pcVar3[2] = '\0';\n    pcVar3[0] = '\\';\n    pcVar3[1] = '\'';\n    return pcVar3;\n  }" if (parenthesized_expression "((*string == '\'') && (string[1] == '\0'))" ( (binary_expression "(*string == '\'') && (string[1] == '\0')" (parenthesized_expression "(*string == '\'')" ( (binary_expression "*string == '\''" (pointer_expression "*string" * identifier) == (char_literal "'\''" ' escape_sequence ')) )) && (parenthesized_expression "(string[1] == '\0')" ( (binary_expression "string[1] == '\0'" (subscript_expression "string[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    pcVar3[2] = '\0';\n    pcVar3[0] = '\\';\n    pcVar3[1] = '\'';\n    return pcVar3;\n  }" { (expression_statement "pcVar3[2] = '\0';" (assignment_expression "pcVar3[2] = '\0'" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[0] = '\\';" (assignment_expression "pcVar3[0] = '\\'" (subscript_expression "pcVar3[0]" identifier [ number_literal ]) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar3[1] = '\'';" (assignment_expression "pcVar3[1] = '\''" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'\''" ' escape_sequence ')) ;) (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "*pcVar3 = '\'';" (assignment_expression "*pcVar3 = '\''" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\''" ' escape_sequence ')) ;) (expression_statement "pcVar4 = pcVar3 + 1;" (assignment_expression "pcVar4 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (do_statement "do {\n    while( true ) {\n      cVar1 = *string;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      string = string + 1;\n      pcVar4 = pcVar5;\n      if (string == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    string = string + 1;\n  } while (string != (char *)0x0);" do (compound_statement "{\n    while( true ) {\n      cVar1 = *string;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      string = string + 1;\n      pcVar4 = pcVar5;\n      if (string == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    string = string + 1;\n  }" { (while_statement "while( true ) {\n      cVar1 = *string;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      string = string + 1;\n      pcVar4 = pcVar5;\n      if (string == (char *)0x0) goto LAB_000d957d;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar1 = *string;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      string = string + 1;\n      pcVar4 = pcVar5;\n      if (string == (char *)0x0) goto LAB_000d957d;\n    }" { (expression_statement "cVar1 = *string;" (assignment_expression "cVar1 = *string" identifier = (pointer_expression "*string" * identifier)) ;) (if_statement "if (cVar1 == '\0') goto LAB_000d957d;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000d957d;" goto statement_identifier ;)) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (if_statement "if (cVar1 != '\'') break;" if (parenthesized_expression "(cVar1 != '\'')" ( (binary_expression "cVar1 != '\''" identifier != (char_literal "'\''" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "pcVar4[3] = '\'';" (assignment_expression "pcVar4[3] = '\''" (subscript_expression "pcVar4[3]" identifier [ number_literal ]) = (char_literal "'\''" ' escape_sequence ')) ;) (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "pcVar4[1] = '\\';" (assignment_expression "pcVar4[1] = '\\'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar4[2] = '\'';" (assignment_expression "pcVar4[2] = '\''" (subscript_expression "pcVar4[2]" identifier [ number_literal ]) = (char_literal "'\''" ' escape_sequence ')) ;) (expression_statement "string = string + 1;" (assignment_expression "string = string + 1" identifier = (binary_expression "string + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = pcVar5;" (assignment_expression "pcVar4 = pcVar5" identifier = identifier) ;) (if_statement "if (string == (char *)0x0) goto LAB_000d957d;" if (parenthesized_expression "(string == (char *)0x0)" ( (binary_expression "string == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000d957d;" goto statement_identifier ;)) })) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) (expression_statement "string = string + 1;" (assignment_expression "string = string + 1" identifier = (binary_expression "string + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(string != (char *)0x0)" ( (binary_expression "string != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_000d957d:\n  pcVar4[0] = '\'';" statement_identifier : (expression_statement "pcVar4[0] = '\'';" (assignment_expression "pcVar4[0] = '\''" (subscript_expression "pcVar4[0]" identifier [ number_literal ]) = (char_literal "'\''" ' escape_sequence ')) ;)) (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "void sh_single_quote(char *param_1)\n\n{\n  char cVar1;\n  size_t sVar2;\n  undefined2 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(param_1);\n  puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);\n  if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }\n  *(undefined1 *)puVar3 = 0x27;\n  pcVar4 = (char *)((int)puVar3 + 1);\n  do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return;\n}\n\n" (function_definition "void sh_single_quote(char *param_1)\n\n{\n  char cVar1;\n  size_t sVar2;\n  undefined2 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(param_1);\n  puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);\n  if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }\n  *(undefined1 *)puVar3 = 0x27;\n  pcVar4 = (char *)((int)puVar3 + 1);\n  do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return;\n}" primitive_type (function_declarator "sh_single_quote(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  undefined2 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(param_1);\n  puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);\n  if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }\n  *(undefined1 *)puVar3 = 0x27;\n  pcVar4 = (char *)((int)puVar3 + 1);\n  do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);" (assignment_expression "puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3)" identifier = (cast_expression "(undefined2 *)xmalloc(sVar2 * 4 + 3)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 * 4 + 3)" identifier (argument_list "(sVar2 * 4 + 3)" ( (binary_expression "sVar2 * 4 + 3" (binary_expression "sVar2 * 4" identifier * number_literal) + number_literal) ))))) ;) (if_statement "if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }" if (parenthesized_expression "((*param_1 == '\'') && (param_1[1] == '\0'))" ( (binary_expression "(*param_1 == '\'') && (param_1[1] == '\0')" (parenthesized_expression "(*param_1 == '\'')" ( (binary_expression "*param_1 == '\''" (pointer_expression "*param_1" * identifier) == (char_literal "'\''" ' escape_sequence ')) )) && (parenthesized_expression "(param_1[1] == '\0')" ( (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }" { (expression_statement "*(undefined1 *)(puVar3 + 1) = 0;" (assignment_expression "*(undefined1 *)(puVar3 + 1) = 0" (pointer_expression "*(undefined1 *)(puVar3 + 1)" * (cast_expression "(undefined1 *)(puVar3 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*puVar3 = 0x275c;" (assignment_expression "*puVar3 = 0x275c" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined1 *)puVar3 = 0x27;" (assignment_expression "*(undefined1 *)puVar3 = 0x27" (pointer_expression "*(undefined1 *)puVar3" * (cast_expression "(undefined1 *)puVar3" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "pcVar4 = (char *)((int)puVar3 + 1);" (assignment_expression "pcVar4 = (char *)((int)puVar3 + 1)" identifier = (cast_expression "(char *)((int)puVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 1)" ( (binary_expression "(int)puVar3 + 1" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (do_statement "do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);" do (compound_statement "{\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  }" { (while_statement "while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 == '\0') goto LAB_000d957d;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000d957d;" goto statement_identifier ;)) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (if_statement "if (cVar1 != '\'') break;" if (parenthesized_expression "(cVar1 != '\'')" ( (binary_expression "cVar1 != '\''" identifier != (char_literal "'\''" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "pcVar4[3] = '\'';" (assignment_expression "pcVar4[3] = '\''" (subscript_expression "pcVar4[3]" identifier [ number_literal ]) = (char_literal "'\''" ' escape_sequence ')) ;) (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "pcVar4[1] = '\\';" (assignment_expression "pcVar4[1] = '\\'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar4[2] = '\'';" (assignment_expression "pcVar4[2] = '\''" (subscript_expression "pcVar4[2]" identifier [ number_literal ]) = (char_literal "'\''" ' escape_sequence ')) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = pcVar5;" (assignment_expression "pcVar4 = pcVar5" identifier = identifier) ;) (if_statement "if (param_1 == (char *)0x0) goto LAB_000d957d;" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000d957d;" goto statement_identifier ;)) })) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 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 "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_000d957d:\n  pcVar4[0] = '\'';" statement_identifier : (expression_statement "pcVar4[0] = '\'';" (assignment_expression "pcVar4[0] = '\''" (subscript_expression "pcVar4[0]" identifier [ number_literal ]) = (char_literal "'\''" ' escape_sequence ')) ;)) (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (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 TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT * LIT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (break_statement break ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return ;) })))
(function_definition "void sh_single_quote(char *param_1)\n\n{\n  char cVar1;\n  size_t sVar2;\n  undefined2 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(param_1);\n  puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);\n  if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }\n  *(undefined1 *)puVar3 = 0x27;\n  pcVar4 = (char *)((int)puVar3 + 1);\n  do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return;\n}" (primitive_type "void") (function_declarator "sh_single_quote(char *param_1)" (identifier "sh_single_quote") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  undefined2 *puVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(param_1);\n  puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);\n  if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }\n  *(undefined1 *)puVar3 = 0x27;\n  pcVar4 = (char *)((int)puVar3 + 1);\n  do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);\nLAB_000d957d:\n  pcVar4[0] = '\'';\n  pcVar4[1] = '\0';\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "undefined2 *puVar3;" (type_identifier "undefined2") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" (identifier "sVar2") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);" (assignment_expression "puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3)" (identifier "puVar3") (= "=") (cast_expression "(undefined2 *)xmalloc(sVar2 * 4 + 3)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar2 * 4 + 3)" (identifier "xmalloc") (argument_list "(sVar2 * 4 + 3)" (( "(") (binary_expression "sVar2 * 4 + 3" (binary_expression "sVar2 * 4" (identifier "sVar2") (* "*") (number_literal "4")) (+ "+") (number_literal "3")) () ")"))))) (; ";")) (if_statement "if ((*param_1 == '\'') && (param_1[1] == '\0')) {\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }" (if "if") (parenthesized_expression "((*param_1 == '\'') && (param_1[1] == '\0'))" (( "(") (binary_expression "(*param_1 == '\'') && (param_1[1] == '\0')" (parenthesized_expression "(*param_1 == '\'')" (( "(") (binary_expression "*param_1 == '\''" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == '\0')" (( "(") (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    *(undefined1 *)(puVar3 + 1) = 0;\n    *puVar3 = 0x275c;\n    return;\n  }" ({ "{") (expression_statement "*(undefined1 *)(puVar3 + 1) = 0;" (assignment_expression "*(undefined1 *)(puVar3 + 1) = 0" (pointer_expression "*(undefined1 *)(puVar3 + 1)" (* "*") (cast_expression "(undefined1 *)(puVar3 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 1)" (( "(") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar3 = 0x275c;" (assignment_expression "*puVar3 = 0x275c" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x275c")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)puVar3 = 0x27;" (assignment_expression "*(undefined1 *)puVar3 = 0x27" (pointer_expression "*(undefined1 *)puVar3" (* "*") (cast_expression "(undefined1 *)puVar3" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (= "=") (number_literal "0x27")) (; ";")) (expression_statement "pcVar4 = (char *)((int)puVar3 + 1);" (assignment_expression "pcVar4 = (char *)((int)puVar3 + 1)" (identifier "pcVar4") (= "=") (cast_expression "(char *)((int)puVar3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar3 + 1)" (( "(") (binary_expression "(int)puVar3 + 1" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (do_statement "do {\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  } while (param_1 != (char *)0x0);" (do "do") (compound_statement "{\n    while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }\n    pcVar4 = pcVar4 + 1;\n    param_1 = param_1 + 1;\n  }" ({ "{") (while_statement "while( true ) {\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      cVar1 = *param_1;\n      if (cVar1 == '\0') goto LAB_000d957d;\n      *pcVar4 = cVar1;\n      if (cVar1 != '\'') break;\n      pcVar4[3] = '\'';\n      pcVar5 = pcVar4 + 4;\n      pcVar4[1] = '\\';\n      pcVar4[2] = '\'';\n      param_1 = param_1 + 1;\n      pcVar4 = pcVar5;\n      if (param_1 == (char *)0x0) goto LAB_000d957d;\n    }" ({ "{") (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar1 == '\0') goto LAB_000d957d;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000d957d;" (goto "goto") (statement_identifier "LAB_000d957d") (; ";"))) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (identifier "cVar1")) (; ";")) (if_statement "if (cVar1 != '\'') break;" (if "if") (parenthesized_expression "(cVar1 != '\'')" (( "(") (binary_expression "cVar1 != '\''" (identifier "cVar1") (!= "!=") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar4[3] = '\'';" (assignment_expression "pcVar4[3] = '\''" (subscript_expression "pcVar4[3]" (identifier "pcVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) (; ";")) (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" (identifier "pcVar5") (= "=") (binary_expression "pcVar4 + 4" (identifier "pcVar4") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "pcVar4[1] = '\\';" (assignment_expression "pcVar4[1] = '\\'" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) (; ";")) (expression_statement "pcVar4[2] = '\'';" (assignment_expression "pcVar4[2] = '\''" (subscript_expression "pcVar4[2]" (identifier "pcVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) (; ";")) (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"))) (; ";")) (expression_statement "pcVar4 = pcVar5;" (assignment_expression "pcVar4 = pcVar5" (identifier "pcVar4") (= "=") (identifier "pcVar5")) (; ";")) (if_statement "if (param_1 == (char *)0x0) goto LAB_000d957d;" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000d957d;" (goto "goto") (statement_identifier "LAB_000d957d") (; ";"))) (} "}"))) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (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 "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (labeled_statement "LAB_000d957d:\n  pcVar4[0] = '\'';" (statement_identifier "LAB_000d957d") (: ":") (expression_statement "pcVar4[0] = '\'';" (assignment_expression "pcVar4[0] = '\''" (subscript_expression "pcVar4[0]" (identifier "pcVar4") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) (; ";"))) (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

char * function_1(char *var_7)

{
  char var_5;
  size_t var_3;
  char *var_4;
  char *var_6;
  char *pcVar5;
  
  var_3 = var_1(var_7);
  var_4 = (char *)var_2(var_3 * 4 + 3);
  if ((*var_7 == '\'') && (var_7[1] == '\0')) {
    var_4[2] = '\0';
    var_4[0] = '\\';
    var_4[1] = '\'';
    return var_4;
  }
  *var_4 = '\'';
  var_6 = var_4 + 1;
  do {
    while( true ) {
      var_5 = *var_7;
      if (var_5 == '\0') goto LAB_000d957d;
      *var_6 = var_5;
      if (var_5 != '\'') break;
      var_6[3] = '\'';
      pcVar5 = var_6 + 4;
      var_6[1] = '\\';
      var_6[2] = '\'';
      var_7 = var_7 + 1;
      var_6 = pcVar5;
      if (var_7 == (char *)0x0) goto LAB_000d957d;
    }
    var_6 = var_6 + 1;
    var_7 = var_7 + 1;
  } while (var_7 != (char *)0x0);
LAB_000d957d:
  var_6[0] = '\'';
  var_6[1] = '\0';
  return var_4;
}


(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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (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: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(char *param_1)

{
  char cVar1;
  size_t sVar2;
  undefined2 *puVar3;
  char *pcVar4;
  char *pcVar5;
  
  sVar2 = strlen(param_1);
  puVar3 = (undefined2 *)xmalloc(sVar2 * 4 + 3);
  if ((*param_1 == '\'') && (param_1[1] == '\0')) {
    *(undefined1 *)(puVar3 + 1) = 0;
    *puVar3 = 0x275c;
    return;
  }
  *(undefined1 *)puVar3 = 0x27;
  pcVar4 = (char *)((int)puVar3 + 1);
  do {
    while( true ) {
      cVar1 = *param_1;
      if (cVar1 == '\0') goto LAB_000d957d;
      *pcVar4 = cVar1;
      if (cVar1 != '\'') break;
      pcVar4[3] = '\'';
      pcVar5 = pcVar4 + 4;
      pcVar4[1] = '\\';
      pcVar4[2] = '\'';
      param_1 = param_1 + 1;
      pcVar4 = pcVar5;
      if (param_1 == (char *)0x0) goto LAB_000d957d;
    }
    pcVar4 = pcVar4 + 1;
    param_1 = param_1 + 1;
  } while (param_1 != (char *)0x0);
LAB_000d957d:
  pcVar4[0] = '\'';
  pcVar4[1] = '\0';
  return;
}

