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

char * bash_quote_filename(char *s,int rtype,char *qcp)

{
  char cVar1;
  char *pcVar2;
  char *pcVar3;
  char *pcVar4;
  int iVar5;
  size_t sVar6;
  char *pcVar7;
  char *pcVar8;
  char *pcVar9;
  char *pcVar10;
  bool bVar11;
  
  cVar1 = *qcp;
  pcVar3 = s;
  if (cVar1 == '\0') {
    pcVar2 = mbschr(s,10);
    if (pcVar2 == (char *)0x0) {
      cVar1 = *qcp;
      goto LAB_0009ba10;
    }
LAB_0009b9a3:
    bVar11 = rtype == 2;
    if ((*s == '~') && (rtype == 1)) {
      bVar11 = false;
      pcVar3 = bash_tilde_expand(s,0);
    }
    pcVar2 = sh_single_quote(pcVar3);
LAB_0009b9cd:
    if (pcVar3 != s) {
      free(pcVar3);
    }
joined_r0x0009bac1:
    if (pcVar2 != (char *)0x0) {
      sVar6 = strlen(pcVar2);
      pcVar3 = (char *)xmalloc(sVar6 + 1);
      strcpy(pcVar3,pcVar2);
      goto LAB_0009baf2;
    }
  }
  else {
LAB_0009ba10:
    if (cVar1 == '\"') {
      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&
         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {
        *qcp = '\0';
        goto LAB_0009ba1c;
      }
      bVar11 = rtype == 2;
      if ((*s == '~') && (rtype == 1)) {
        bVar11 = false;
        pcVar3 = bash_tilde_expand(s,0);
      }
      pcVar2 = sh_double_quote(pcVar3);
      goto LAB_0009b9cd;
    }
    if (cVar1 == '\'') goto LAB_0009b9a3;
LAB_0009ba1c:
    pcVar3 = filename_bstab;
    if (complete_fullquote != 0) {
      pcVar3 = (char *)0x0;
    }
    pcVar3 = sh_backslash_quote(s,pcVar3,0);
    if (pcVar3 != (char *)0x0) {
      sVar6 = strlen(pcVar3);
      pcVar2 = (char *)xmalloc(sVar6 * 2 + 1);
      cVar1 = *pcVar3;
      pcVar8 = pcVar3;
      pcVar10 = pcVar2;
      while (pcVar4 = pcVar10, cVar1 != '\0') {
        pcVar9 = pcVar8 + 1;
        if (cVar1 == '\\') {
          *pcVar10 = '\\';
          cVar1 = pcVar8[1];
          pcVar4 = pcVar10 + 2;
          pcVar10[1] = cVar1;
          if (cVar1 == '\0') break;
          pcVar10 = pcVar8 + 2;
          pcVar8 = pcVar9;
          pcVar9 = pcVar10;
        }
        else {
          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);
          pcVar7 = pcVar10 + 1;
          if (pcVar4 != (char *)0x0) {
            *pcVar10 = '\\';
            pcVar4 = pcVar10 + 2;
            pcVar10 = pcVar7;
            pcVar7 = pcVar4;
          }
          cVar1 = *pcVar8;
          pcVar4 = pcVar7;
          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {
            iVar5 = file_exists(pcVar3);
            if (iVar5 == 0) {
              cVar1 = *pcVar3;
            }
            else {
              *pcVar10 = '\\';
              pcVar4 = pcVar7 + 1;
              cVar1 = *pcVar3;
              pcVar10 = pcVar7;
            }
          }
          *pcVar10 = cVar1;
        }
        cVar1 = pcVar8[1];
        pcVar8 = pcVar9;
        pcVar10 = pcVar4;
      }
      *pcVar4 = '\0';
      bVar11 = false;
      free(pcVar3);
      goto joined_r0x0009bac1;
    }
    pcVar2 = (char *)0x0;
    bVar11 = false;
  }
  pcVar3 = (char *)xmalloc(1);
  sVar6 = 1;
  *pcVar3 = '\0';
LAB_0009baf2:
  if (bVar11) {
    pcVar3[sVar6 - 1] = '\0';
  }
  free(pcVar2);
  return pcVar3;
}



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

char * FUN_0009b970(char *param_1,int param_2,char *param_3)

{
  char cVar1;
  int iVar2;
  char *__s;
  char *pcVar3;
  undefined4 *puVar4;
  size_t sVar5;
  char *pcVar6;
  char *pcVar7;
  char *pcVar8;
  char *pcVar9;
  char *pcVar10;
  bool bVar11;
  
  cVar1 = *param_3;
  pcVar3 = param_1;
  if (cVar1 == '\0') {
    iVar2 = mbschr(param_1,10);
    if (iVar2 == 0) {
      cVar1 = *param_3;
      goto LAB_0009ba10;
    }
LAB_0009b9a3:
    bVar11 = param_2 == 2;
    if ((*param_1 == '~') && (param_2 == 1)) {
      bVar11 = false;
      pcVar3 = (char *)bash_tilde_expand(param_1,0);
    }
    __s = (char *)sh_single_quote(pcVar3);
LAB_0009b9cd:
    if (pcVar3 != param_1) {
      free(pcVar3);
    }
joined_r0x0009bac1:
    if (__s != (char *)0x0) {
      sVar5 = strlen(__s);
      pcVar3 = (char *)xmalloc(sVar5 + 1);
      strcpy(pcVar3,__s);
      goto LAB_0009baf2;
    }
  }
  else {
LAB_0009ba10:
    if (cVar1 == '\"') {
      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&
         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {
        *param_3 = '\0';
        goto LAB_0009ba1c;
      }
      bVar11 = param_2 == 2;
      if ((*param_1 == '~') && (param_2 == 1)) {
        bVar11 = false;
        pcVar3 = (char *)bash_tilde_expand(param_1,0);
      }
      __s = (char *)sh_double_quote(pcVar3);
      goto LAB_0009b9cd;
    }
    if (cVar1 == '\'') goto LAB_0009b9a3;
LAB_0009ba1c:
    puVar4 = &DAT_00179500;
    if (complete_fullquote != 0) {
      puVar4 = (undefined4 *)0x0;
    }
    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);
    if (pcVar3 != (char *)0x0) {
      sVar5 = strlen(pcVar3);
      __s = (char *)xmalloc(sVar5 * 2 + 1);
      cVar1 = *pcVar3;
      pcVar8 = pcVar3;
      pcVar10 = __s;
      while (pcVar6 = pcVar10, cVar1 != '\0') {
        pcVar9 = pcVar8 + 1;
        if (cVar1 == '\\') {
          *pcVar10 = '\\';
          cVar1 = pcVar8[1];
          pcVar6 = pcVar10 + 2;
          pcVar10[1] = cVar1;
          if (cVar1 == '\0') break;
          pcVar10 = pcVar8 + 2;
          pcVar8 = pcVar9;
          pcVar9 = pcVar10;
        }
        else {
          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);
          pcVar7 = pcVar10 + 1;
          if (iVar2 != 0) {
            *pcVar10 = '\\';
            pcVar6 = pcVar10 + 2;
            pcVar10 = pcVar7;
            pcVar7 = pcVar6;
          }
          cVar1 = *pcVar8;
          pcVar6 = pcVar7;
          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {
            iVar2 = file_exists(pcVar3);
            if (iVar2 == 0) {
              cVar1 = *pcVar3;
            }
            else {
              *pcVar10 = '\\';
              pcVar6 = pcVar7 + 1;
              cVar1 = *pcVar3;
              pcVar10 = pcVar7;
            }
          }
          *pcVar10 = cVar1;
        }
        cVar1 = pcVar8[1];
        pcVar8 = pcVar9;
        pcVar10 = pcVar6;
      }
      *pcVar6 = '\0';
      bVar11 = false;
      free(pcVar3);
      goto joined_r0x0009bac1;
    }
    __s = (char *)0x0;
    bVar11 = false;
  }
  pcVar3 = (char *)xmalloc(1);
  sVar5 = 1;
  *pcVar3 = '\0';
LAB_0009baf2:
  if (bVar11) {
    pcVar3[sVar5 - 1] = '\0';
  }
  free(__s);
  return pcVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0xd6687
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x38]
MOV EDI,dword ptr [ESP + 0x30]
MOVZX EAX,byte ptr [ESI]
TEST AL,AL
JNZ 0x0009ba10
SUB ESP,0x8
PUSH 0xa
PUSH EDI
CALL 0x000dda50
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0009ba08
CMP dword ptr [ESP + 0x34],0x2
MOV EDX,EDI
SETZ AL
CMP byte ptr [EDI],0x7e
MOV EBP,EAX
JZ 0x0009bbd0
SUB ESP,0xc
PUSH EDX
MOV dword ptr [ESP + 0x10],EDX
CALL 0x000d9510
ADD ESP,0x10
MOV EDX,dword ptr [ESP]
MOV ESI,EAX
CMP EDX,EDI
JZ 0x0009babf
SUB ESP,0xc
PUSH EDX
CALL 0x0002e200
ADD ESP,0x10
TEST ESI,ESI
JNZ 0x0009bac7
SUB ESP,0xc
PUSH 0x1
CALL 0x000ad700
ADD ESP,0x10
MOV EDX,0x1
MOV EDI,EAX
MOV byte ptr [EAX],0x0
JMP 0x0009baf2
MOVZX EAX,byte ptr [ESI]
LEA ESI,[ESI]
NOP
CMP AL,0x22
JZ 0x0009bb60
CMP AL,0x27
JZ 0x0009b9a3
MOV EDX,dword ptr [EBX + 0x950]
LEA EAX,[EBX + 0x7500]
TEST EDX,EDX
MOV EDX,0x0
CMOVNZ EAX,EDX
SUB ESP,0x4
PUSH 0x0
PUSH EAX
PUSH EDI
CALL 0x000d9770
MOV dword ptr [ESP + 0x10],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0009bc93
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0xc]
PUSH EDI
CALL 0x0002e760
LEA EAX,[EAX + EAX*0x1 + 0x1]
MOV dword ptr [ESP],EAX
CALL 0x000ad700
ADD ESP,0x10
MOV ESI,EAX
MOVSX EAX,byte ptr [EDI]
TEST AL,AL
JZ 0x0009bc78
LEA ECX,[EBX + 0x7d78]
MOV dword ptr [ESP + 0x8],ESI
MOV EBP,ESI
MOV dword ptr [ESP + 0x4],ECX
LEA ESI,[EDI + 0x1]
CMP AL,0x5c
JNZ 0x0009bb10
MOV byte ptr [EBP],0x5c
MOVZX EAX,byte ptr [EDI + 0x1]
LEA ECX,[EBP + 0x2]
MOV byte ptr [EBP + 0x1],AL
TEST AL,AL
JNZ 0x0009bbf8
MOV ESI,dword ptr [ESP + 0x8]
SUB ESP,0xc
MOV byte ptr [ECX],0x0
XOR EBP,EBP
PUSH dword ptr [ESP + 0xc]
CALL 0x0002e200
ADD ESP,0x10
TEST ESI,ESI
JZ 0x0009b9e9
SUB ESP,0xc
PUSH ESI
CALL 0x0002e760
MOV EDX,EAX
LEA EAX,[EAX + 0x1]
MOV dword ptr [ESP + 0x10],EDX
MOV dword ptr [ESP],EAX
CALL 0x000ad700
POP ECX
MOV EDI,EAX
POP EAX
PUSH ESI
PUSH EDI
CALL 0x0002e580
ADD ESP,0x10
MOV EDX,dword ptr [ESP]
MOV EAX,EBP
TEST AL,AL
JZ 0x0009bafd
MOV byte ptr [EDI + EDX*0x1 + -0x1],0x0
SUB ESP,0xc
PUSH ESI
CALL 0x0002e200
ADD ESP,0x2c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EAX
MOV EAX,dword ptr [ESP + 0x10]
PUSH dword ptr [EAX]
CALL 0x000dda50
LEA ECX,[EBP + 0x1]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0009bc40
MOV byte ptr [EBP],0x5c
ADD EBP,0x2
MOVZX EAX,byte ptr [EDI]
CMP dword ptr [ESP],EDI
JZ 0x0009bc08
MOV byte ptr [ECX],AL
MOV EAX,ESI
MOV ESI,EDI
MOV EDI,EAX
MOVSX EAX,byte ptr [ESI + 0x1]
TEST AL,AL
JNZ 0x0009ba86
MOV ESI,dword ptr [ESP + 0x8]
MOV ECX,EBP
JMP 0x0009baab
LEA EAX,[EBX + 0x76c]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x0009bba0
CMP dword ptr [ESP + 0x34],0x2
MOV EDX,EDI
SETZ AL
CMP byte ptr [EDI],0x7e
MOV EBP,EAX
JZ 0x0009bc50
SUB ESP,0xc
PUSH EDX
MOV dword ptr [ESP + 0x10],EDX
CALL 0x000d95b0
ADD ESP,0x10
MOV EDX,dword ptr [ESP]
MOV ESI,EAX
JMP 0x0009b9cd
LEA EAX,[EBX + 0xd488]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x0009bb6c
SUB ESP,0x8
PUSH 0x21
PUSH EDI
CALL 0x000dda50
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0009bb6c
MOV byte ptr [ESI],0x0
JMP 0x0009ba1c
CMP dword ptr [ESP + 0x34],0x1
JNZ 0x0009b9b8
SUB ESP,0x8
XOR EBP,EBP
PUSH 0x0
PUSH EDI
CALL 0x00042df0
ADD ESP,0x10
MOV EDX,EAX
JMP 0x0009b9b8
ADD EDI,0x2
MOV EBP,ECX
JMP 0x0009bb48
CMP AL,0x7e
JNZ 0x0009bb40
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
CALL 0x000424a0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x0009bc80
MOV EAX,dword ptr [ESP]
MOVZX EAX,byte ptr [EAX]
JMP 0x0009bb40
MOV EAX,ECX
MOV ECX,EBP
MOV EBP,EAX
JMP 0x0009bb34
CMP dword ptr [ESP + 0x34],0x1
JNZ 0x0009bb81
SUB ESP,0x8
XOR EBP,EBP
PUSH 0x0
PUSH EDI
CALL 0x00042df0
ADD ESP,0x10
MOV EDX,EAX
JMP 0x0009bb81
MOV ECX,ESI
JMP 0x0009baab
MOV EAX,dword ptr [ESP]
MOV byte ptr [ECX],0x5c
MOV ECX,EBP
ADD EBP,0x1
MOVZX EAX,byte ptr [EAX]
JMP 0x0009bb40
XOR ESI,ESI
XOR EBP,EBP
JMP 0x0009b9e9
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * FUN_0009b970(char *param_1,int param_2,char *param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *__s;\n  char *pcVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *param_3;\n  pcVar3 = param_1;\n  if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar5 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }\n  free(__s);\n  return pcVar3;\n}\n\n" comment (function_definition "char * FUN_0009b970(char *param_1,int param_2,char *param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *__s;\n  char *pcVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *param_3;\n  pcVar3 = param_1;\n  if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar5 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }\n  free(__s);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* FUN_0009b970(char *param_1,int param_2,char *param_3)" * (function_declarator "FUN_0009b970(char *param_1,int param_2,char *param_3)" identifier (parameter_list "(char *param_1,int param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *__s;\n  char *pcVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *param_3;\n  pcVar3 = param_1;\n  if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar5 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }\n  free(__s);\n  return pcVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "bool bVar11;" primitive_type identifier ;) (expression_statement "cVar1 = *param_3;" (assignment_expression "cVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (if_statement "if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }" { (expression_statement "iVar2 = mbschr(param_1,10);" (assignment_expression "iVar2 = mbschr(param_1,10)" identifier = (call_expression "mbschr(param_1,10)" identifier (argument_list "(param_1,10)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }" { (expression_statement "cVar1 = *param_3;" (assignment_expression "cVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (goto_statement "goto LAB_0009ba10;" goto statement_identifier ;) })) (labeled_statement "LAB_0009b9a3:\n    bVar11 = param_2 == 2;" statement_identifier : (expression_statement "bVar11 = param_2 == 2;" (assignment_expression "bVar11 = param_2 == 2" identifier = (binary_expression "param_2 == 2" identifier == number_literal)) ;)) (if_statement "if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }" if (parenthesized_expression "((*param_1 == '~') && (param_2 == 1))" ( (binary_expression "(*param_1 == '~') && (param_2 == 1)" (parenthesized_expression "(*param_1 == '~')" ( (binary_expression "*param_1 == '~'" (pointer_expression "*param_1" * identifier) == (char_literal "'~'" ' character ')) )) && (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) ))) )) (compound_statement "{\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }" { (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "pcVar3 = (char *)bash_tilde_expand(param_1,0);" (assignment_expression "pcVar3 = (char *)bash_tilde_expand(param_1,0)" identifier = (cast_expression "(char *)bash_tilde_expand(param_1,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bash_tilde_expand(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) })) (expression_statement "__s = (char *)sh_single_quote(pcVar3);" (assignment_expression "__s = (char *)sh_single_quote(pcVar3)" identifier = (cast_expression "(char *)sh_single_quote(pcVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_single_quote(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))))) ;) (labeled_statement "LAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }" statement_identifier : (if_statement "if (pcVar3 != param_1) {\n      free(pcVar3);\n    }" if (parenthesized_expression "(pcVar3 != param_1)" ( (binary_expression "pcVar3 != param_1" identifier != identifier) )) (compound_statement "{\n      free(pcVar3);\n    }" { (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) }))) (labeled_statement "joined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }" statement_identifier : (if_statement "if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }" { (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar3 = (char *)xmalloc(sVar5 + 1);" (assignment_expression "pcVar3 = (char *)xmalloc(sVar5 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 1)" identifier (argument_list "(sVar5 + 1)" ( (binary_expression "sVar5 + 1" identifier + number_literal) ))))) ;) (expression_statement "strcpy(pcVar3,__s);" (call_expression "strcpy(pcVar3,__s)" identifier (argument_list "(pcVar3,__s)" ( identifier , identifier ))) ;) (goto_statement "goto LAB_0009baf2;" goto statement_identifier ;) }))) }) (else_clause "else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }" else (compound_statement "{\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }" { (labeled_statement "LAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" statement_identifier : (if_statement "if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" if (parenthesized_expression "(cVar1 == '\"')" ( (binary_expression "cVar1 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" { (if_statement "if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }" if (parenthesized_expression "(((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0))" ( (binary_expression "((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)" (parenthesized_expression "((history_expansion != 0) && (history_expansion_inhibited == 0))" ( (binary_expression "(history_expansion != 0) && (history_expansion_inhibited == 0)" (parenthesized_expression "(history_expansion != 0)" ( (binary_expression "history_expansion != 0" identifier != number_literal) )) && (parenthesized_expression "(history_expansion_inhibited == 0)" ( (binary_expression "history_expansion_inhibited == 0" identifier == number_literal) ))) )) && (parenthesized_expression "(iVar2 = mbschr(param_1,0x21), iVar2 != 0)" ( (comma_expression "iVar2 = mbschr(param_1,0x21), iVar2 != 0" (assignment_expression "iVar2 = mbschr(param_1,0x21)" identifier = (call_expression "mbschr(param_1,0x21)" identifier (argument_list "(param_1,0x21)" ( identifier , number_literal )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }" { (expression_statement "*param_3 = '\0';" (assignment_expression "*param_3 = '\0'" (pointer_expression "*param_3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0009ba1c;" goto statement_identifier ;) })) (expression_statement "bVar11 = param_2 == 2;" (assignment_expression "bVar11 = param_2 == 2" identifier = (binary_expression "param_2 == 2" identifier == number_literal)) ;) (if_statement "if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }" if (parenthesized_expression "((*param_1 == '~') && (param_2 == 1))" ( (binary_expression "(*param_1 == '~') && (param_2 == 1)" (parenthesized_expression "(*param_1 == '~')" ( (binary_expression "*param_1 == '~'" (pointer_expression "*param_1" * identifier) == (char_literal "'~'" ' character ')) )) && (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) ))) )) (compound_statement "{\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }" { (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "pcVar3 = (char *)bash_tilde_expand(param_1,0);" (assignment_expression "pcVar3 = (char *)bash_tilde_expand(param_1,0)" identifier = (cast_expression "(char *)bash_tilde_expand(param_1,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bash_tilde_expand(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) })) (expression_statement "__s = (char *)sh_double_quote(pcVar3);" (assignment_expression "__s = (char *)sh_double_quote(pcVar3)" identifier = (cast_expression "(char *)sh_double_quote(pcVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_double_quote(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))))) ;) (goto_statement "goto LAB_0009b9cd;" goto statement_identifier ;) }))) (if_statement "if (cVar1 == '\'') goto LAB_0009b9a3;" if (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) )) (goto_statement "goto LAB_0009b9a3;" goto statement_identifier ;)) (labeled_statement "LAB_0009ba1c:\n    puVar4 = &DAT_00179500;" statement_identifier : (expression_statement "puVar4 = &DAT_00179500;" (assignment_expression "puVar4 = &DAT_00179500" identifier = (pointer_expression "&DAT_00179500" & identifier)) ;)) (if_statement "if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }" if (parenthesized_expression "(complete_fullquote != 0)" ( (binary_expression "complete_fullquote != 0" identifier != number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)0x0;\n    }" { (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);" (assignment_expression "pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0)" identifier = (cast_expression "(char *)sh_backslash_quote(param_1,puVar4,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_backslash_quote(param_1,puVar4,0)" identifier (argument_list "(param_1,puVar4,0)" ( identifier , identifier , number_literal ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }" { (expression_statement "sVar5 = strlen(pcVar3);" (assignment_expression "sVar5 = strlen(pcVar3)" identifier = (call_expression "strlen(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "__s = (char *)xmalloc(sVar5 * 2 + 1);" (assignment_expression "__s = (char *)xmalloc(sVar5 * 2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar5 * 2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 * 2 + 1)" identifier (argument_list "(sVar5 * 2 + 1)" ( (binary_expression "sVar5 * 2 + 1" (binary_expression "sVar5 * 2" identifier * number_literal) + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar8 = pcVar3;" (assignment_expression "pcVar8 = pcVar3" identifier = identifier) ;) (expression_statement "pcVar10 = __s;" (assignment_expression "pcVar10 = __s" identifier = identifier) ;) (while_statement "while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }" while (parenthesized_expression "(pcVar6 = pcVar10, cVar1 != '\0')" ( (comma_expression "pcVar6 = pcVar10, cVar1 != '\0'" (assignment_expression "pcVar6 = pcVar10" identifier = identifier) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }" { (expression_statement "pcVar9 = pcVar8 + 1;" (assignment_expression "pcVar9 = pcVar8 + 1" identifier = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }" { (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "cVar1 = pcVar8[1];" (assignment_expression "cVar1 = pcVar8[1]" identifier = (subscript_expression "pcVar8[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar6 = pcVar10 + 2;" (assignment_expression "pcVar6 = pcVar10 + 2" identifier = (binary_expression "pcVar10 + 2" identifier + number_literal)) ;) (expression_statement "pcVar10[1] = cVar1;" (assignment_expression "pcVar10[1] = cVar1" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "pcVar10 = pcVar8 + 2;" (assignment_expression "pcVar10 = pcVar8 + 2" identifier = (binary_expression "pcVar8 + 2" identifier + number_literal)) ;) (expression_statement "pcVar8 = pcVar9;" (assignment_expression "pcVar8 = pcVar9" identifier = identifier) ;) (expression_statement "pcVar9 = pcVar10;" (assignment_expression "pcVar9 = pcVar10" identifier = identifier) ;) }) (else_clause "else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" else (compound_statement "{\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" { (expression_statement "iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);" (assignment_expression "iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1)" identifier = (call_expression "mbschr(rl_completer_word_break_characters,(int)cVar1)" identifier (argument_list "(rl_completer_word_break_characters,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "pcVar7 = pcVar10 + 1;" (assignment_expression "pcVar7 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }" { (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar6 = pcVar10 + 2;" (assignment_expression "pcVar6 = pcVar10 + 2" identifier = (binary_expression "pcVar10 + 2" identifier + number_literal)) ;) (expression_statement "pcVar10 = pcVar7;" (assignment_expression "pcVar10 = pcVar7" identifier = identifier) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) })) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar6 = pcVar7;" (assignment_expression "pcVar6 = pcVar7" identifier = identifier) ;) (if_statement "if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }" if (parenthesized_expression "((pcVar3 == pcVar8) && (cVar1 == '~'))" ( (binary_expression "(pcVar3 == pcVar8) && (cVar1 == '~')" (parenthesized_expression "(pcVar3 == pcVar8)" ( (binary_expression "pcVar3 == pcVar8" identifier == identifier) )) && (parenthesized_expression "(cVar1 == '~')" ( (binary_expression "cVar1 == '~'" identifier == (char_literal "'~'" ' character ')) ))) )) (compound_statement "{\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }" { (expression_statement "iVar2 = file_exists(pcVar3);" (assignment_expression "iVar2 = file_exists(pcVar3)" identifier = (call_expression "file_exists(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n              cVar1 = *pcVar3;\n            }" { (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) }) (else_clause "else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" else (compound_statement "{\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" { (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar6 = pcVar7 + 1;" (assignment_expression "pcVar6 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar10 = pcVar7;" (assignment_expression "pcVar10 = pcVar7" identifier = identifier) ;) }))) })) (expression_statement "*pcVar10 = cVar1;" (assignment_expression "*pcVar10 = cVar1" (pointer_expression "*pcVar10" * identifier) = identifier) ;) }))) (expression_statement "cVar1 = pcVar8[1];" (assignment_expression "cVar1 = pcVar8[1]" identifier = (subscript_expression "pcVar8[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar8 = pcVar9;" (assignment_expression "pcVar8 = pcVar9" identifier = identifier) ;) (expression_statement "pcVar10 = pcVar6;" (assignment_expression "pcVar10 = pcVar6" identifier = identifier) ;) })) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (goto_statement "goto joined_r0x0009bac1;" goto statement_identifier ;) })) (expression_statement "__s = (char *)0x0;" (assignment_expression "__s = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) }))) (expression_statement "pcVar3 = (char *)xmalloc(1);" (assignment_expression "pcVar3 = (char *)xmalloc(1)" identifier = (cast_expression "(char *)xmalloc(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "sVar5 = 1;" (assignment_expression "sVar5 = 1" identifier = number_literal) ;) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (labeled_statement "LAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }" statement_identifier : (if_statement "if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n    pcVar3[sVar5 - 1] = '\0';\n  }" { (expression_statement "pcVar3[sVar5 - 1] = '\0';" (assignment_expression "pcVar3[sVar5 - 1] = '\0'" (subscript_expression "pcVar3[sVar5 - 1]" identifier [ (binary_expression "sVar5 - 1" identifier - number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * bash_quote_filename(char *s,int rtype,char *qcp)\n\n{\n  char cVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *qcp;\n  pcVar3 = s;\n  if (cVar1 == '\0') {\n    pcVar2 = mbschr(s,10);\n    if (pcVar2 == (char *)0x0) {\n      cVar1 = *qcp;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = rtype == 2;\n    if ((*s == '~') && (rtype == 1)) {\n      bVar11 = false;\n      pcVar3 = bash_tilde_expand(s,0);\n    }\n    pcVar2 = sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != s) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (pcVar2 != (char *)0x0) {\n      sVar6 = strlen(pcVar2);\n      pcVar3 = (char *)xmalloc(sVar6 + 1);\n      strcpy(pcVar3,pcVar2);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = rtype == 2;\n      if ((*s == '~') && (rtype == 1)) {\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }\n      pcVar2 = sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    pcVar3 = filename_bstab;\n    if (complete_fullquote != 0) {\n      pcVar3 = (char *)0x0;\n    }\n    pcVar3 = sh_backslash_quote(s,pcVar3,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar6 = strlen(pcVar3);\n      pcVar2 = (char *)xmalloc(sVar6 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = pcVar2;\n      while (pcVar4 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar4;\n      }\n      *pcVar4 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    pcVar2 = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar6 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar6 - 1] = '\0';\n  }\n  free(pcVar2);\n  return pcVar3;\n}\n\n" comment comment (function_definition "char * bash_quote_filename(char *s,int rtype,char *qcp)\n\n{\n  char cVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *qcp;\n  pcVar3 = s;\n  if (cVar1 == '\0') {\n    pcVar2 = mbschr(s,10);\n    if (pcVar2 == (char *)0x0) {\n      cVar1 = *qcp;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = rtype == 2;\n    if ((*s == '~') && (rtype == 1)) {\n      bVar11 = false;\n      pcVar3 = bash_tilde_expand(s,0);\n    }\n    pcVar2 = sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != s) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (pcVar2 != (char *)0x0) {\n      sVar6 = strlen(pcVar2);\n      pcVar3 = (char *)xmalloc(sVar6 + 1);\n      strcpy(pcVar3,pcVar2);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = rtype == 2;\n      if ((*s == '~') && (rtype == 1)) {\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }\n      pcVar2 = sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    pcVar3 = filename_bstab;\n    if (complete_fullquote != 0) {\n      pcVar3 = (char *)0x0;\n    }\n    pcVar3 = sh_backslash_quote(s,pcVar3,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar6 = strlen(pcVar3);\n      pcVar2 = (char *)xmalloc(sVar6 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = pcVar2;\n      while (pcVar4 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar4;\n      }\n      *pcVar4 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    pcVar2 = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar6 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar6 - 1] = '\0';\n  }\n  free(pcVar2);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* bash_quote_filename(char *s,int rtype,char *qcp)" * (function_declarator "bash_quote_filename(char *s,int rtype,char *qcp)" identifier (parameter_list "(char *s,int rtype,char *qcp)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "int rtype" primitive_type identifier) , (parameter_declaration "char *qcp" primitive_type (pointer_declarator "*qcp" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *qcp;\n  pcVar3 = s;\n  if (cVar1 == '\0') {\n    pcVar2 = mbschr(s,10);\n    if (pcVar2 == (char *)0x0) {\n      cVar1 = *qcp;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = rtype == 2;\n    if ((*s == '~') && (rtype == 1)) {\n      bVar11 = false;\n      pcVar3 = bash_tilde_expand(s,0);\n    }\n    pcVar2 = sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != s) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (pcVar2 != (char *)0x0) {\n      sVar6 = strlen(pcVar2);\n      pcVar3 = (char *)xmalloc(sVar6 + 1);\n      strcpy(pcVar3,pcVar2);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = rtype == 2;\n      if ((*s == '~') && (rtype == 1)) {\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }\n      pcVar2 = sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    pcVar3 = filename_bstab;\n    if (complete_fullquote != 0) {\n      pcVar3 = (char *)0x0;\n    }\n    pcVar3 = sh_backslash_quote(s,pcVar3,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar6 = strlen(pcVar3);\n      pcVar2 = (char *)xmalloc(sVar6 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = pcVar2;\n      while (pcVar4 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar4;\n      }\n      *pcVar4 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    pcVar2 = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar6 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar6 - 1] = '\0';\n  }\n  free(pcVar2);\n  return pcVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "bool bVar11;" primitive_type identifier ;) (expression_statement "cVar1 = *qcp;" (assignment_expression "cVar1 = *qcp" identifier = (pointer_expression "*qcp" * identifier)) ;) (expression_statement "pcVar3 = s;" (assignment_expression "pcVar3 = s" identifier = identifier) ;) (if_statement "if (cVar1 == '\0') {\n    pcVar2 = mbschr(s,10);\n    if (pcVar2 == (char *)0x0) {\n      cVar1 = *qcp;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = rtype == 2;\n    if ((*s == '~') && (rtype == 1)) {\n      bVar11 = false;\n      pcVar3 = bash_tilde_expand(s,0);\n    }\n    pcVar2 = sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != s) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (pcVar2 != (char *)0x0) {\n      sVar6 = strlen(pcVar2);\n      pcVar3 = (char *)xmalloc(sVar6 + 1);\n      strcpy(pcVar3,pcVar2);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = rtype == 2;\n      if ((*s == '~') && (rtype == 1)) {\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }\n      pcVar2 = sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    pcVar3 = filename_bstab;\n    if (complete_fullquote != 0) {\n      pcVar3 = (char *)0x0;\n    }\n    pcVar3 = sh_backslash_quote(s,pcVar3,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar6 = strlen(pcVar3);\n      pcVar2 = (char *)xmalloc(sVar6 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = pcVar2;\n      while (pcVar4 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar4;\n      }\n      *pcVar4 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    pcVar2 = (char *)0x0;\n    bVar11 = false;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar2 = mbschr(s,10);\n    if (pcVar2 == (char *)0x0) {\n      cVar1 = *qcp;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = rtype == 2;\n    if ((*s == '~') && (rtype == 1)) {\n      bVar11 = false;\n      pcVar3 = bash_tilde_expand(s,0);\n    }\n    pcVar2 = sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != s) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (pcVar2 != (char *)0x0) {\n      sVar6 = strlen(pcVar2);\n      pcVar3 = (char *)xmalloc(sVar6 + 1);\n      strcpy(pcVar3,pcVar2);\n      goto LAB_0009baf2;\n    }\n  }" { (expression_statement "pcVar2 = mbschr(s,10);" (assignment_expression "pcVar2 = mbschr(s,10)" identifier = (call_expression "mbschr(s,10)" identifier (argument_list "(s,10)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n      cVar1 = *qcp;\n      goto LAB_0009ba10;\n    }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      cVar1 = *qcp;\n      goto LAB_0009ba10;\n    }" { (expression_statement "cVar1 = *qcp;" (assignment_expression "cVar1 = *qcp" identifier = (pointer_expression "*qcp" * identifier)) ;) (goto_statement "goto LAB_0009ba10;" goto statement_identifier ;) })) (labeled_statement "LAB_0009b9a3:\n    bVar11 = rtype == 2;" statement_identifier : (expression_statement "bVar11 = rtype == 2;" (assignment_expression "bVar11 = rtype == 2" identifier = (binary_expression "rtype == 2" identifier == number_literal)) ;)) (if_statement "if ((*s == '~') && (rtype == 1)) {\n      bVar11 = false;\n      pcVar3 = bash_tilde_expand(s,0);\n    }" if (parenthesized_expression "((*s == '~') && (rtype == 1))" ( (binary_expression "(*s == '~') && (rtype == 1)" (parenthesized_expression "(*s == '~')" ( (binary_expression "*s == '~'" (pointer_expression "*s" * identifier) == (char_literal "'~'" ' character ')) )) && (parenthesized_expression "(rtype == 1)" ( (binary_expression "rtype == 1" identifier == number_literal) ))) )) (compound_statement "{\n      bVar11 = false;\n      pcVar3 = bash_tilde_expand(s,0);\n    }" { (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "pcVar3 = bash_tilde_expand(s,0);" (assignment_expression "pcVar3 = bash_tilde_expand(s,0)" identifier = (call_expression "bash_tilde_expand(s,0)" identifier (argument_list "(s,0)" ( identifier , number_literal )))) ;) })) (expression_statement "pcVar2 = sh_single_quote(pcVar3);" (assignment_expression "pcVar2 = sh_single_quote(pcVar3)" identifier = (call_expression "sh_single_quote(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (labeled_statement "LAB_0009b9cd:\n    if (pcVar3 != s) {\n      free(pcVar3);\n    }" statement_identifier : (if_statement "if (pcVar3 != s) {\n      free(pcVar3);\n    }" if (parenthesized_expression "(pcVar3 != s)" ( (binary_expression "pcVar3 != s" identifier != identifier) )) (compound_statement "{\n      free(pcVar3);\n    }" { (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) }))) (labeled_statement "joined_r0x0009bac1:\n    if (pcVar2 != (char *)0x0) {\n      sVar6 = strlen(pcVar2);\n      pcVar3 = (char *)xmalloc(sVar6 + 1);\n      strcpy(pcVar3,pcVar2);\n      goto LAB_0009baf2;\n    }" statement_identifier : (if_statement "if (pcVar2 != (char *)0x0) {\n      sVar6 = strlen(pcVar2);\n      pcVar3 = (char *)xmalloc(sVar6 + 1);\n      strcpy(pcVar3,pcVar2);\n      goto LAB_0009baf2;\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar6 = strlen(pcVar2);\n      pcVar3 = (char *)xmalloc(sVar6 + 1);\n      strcpy(pcVar3,pcVar2);\n      goto LAB_0009baf2;\n    }" { (expression_statement "sVar6 = strlen(pcVar2);" (assignment_expression "sVar6 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "pcVar3 = (char *)xmalloc(sVar6 + 1);" (assignment_expression "pcVar3 = (char *)xmalloc(sVar6 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 + 1)" identifier (argument_list "(sVar6 + 1)" ( (binary_expression "sVar6 + 1" identifier + number_literal) ))))) ;) (expression_statement "strcpy(pcVar3,pcVar2);" (call_expression "strcpy(pcVar3,pcVar2)" identifier (argument_list "(pcVar3,pcVar2)" ( identifier , identifier ))) ;) (goto_statement "goto LAB_0009baf2;" goto statement_identifier ;) }))) }) (else_clause "else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = rtype == 2;\n      if ((*s == '~') && (rtype == 1)) {\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }\n      pcVar2 = sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    pcVar3 = filename_bstab;\n    if (complete_fullquote != 0) {\n      pcVar3 = (char *)0x0;\n    }\n    pcVar3 = sh_backslash_quote(s,pcVar3,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar6 = strlen(pcVar3);\n      pcVar2 = (char *)xmalloc(sVar6 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = pcVar2;\n      while (pcVar4 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar4;\n      }\n      *pcVar4 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    pcVar2 = (char *)0x0;\n    bVar11 = false;\n  }" else (compound_statement "{\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = rtype == 2;\n      if ((*s == '~') && (rtype == 1)) {\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }\n      pcVar2 = sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    pcVar3 = filename_bstab;\n    if (complete_fullquote != 0) {\n      pcVar3 = (char *)0x0;\n    }\n    pcVar3 = sh_backslash_quote(s,pcVar3,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar6 = strlen(pcVar3);\n      pcVar2 = (char *)xmalloc(sVar6 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = pcVar2;\n      while (pcVar4 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar4;\n      }\n      *pcVar4 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    pcVar2 = (char *)0x0;\n    bVar11 = false;\n  }" { (labeled_statement "LAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = rtype == 2;\n      if ((*s == '~') && (rtype == 1)) {\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }\n      pcVar2 = sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" statement_identifier : (if_statement "if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = rtype == 2;\n      if ((*s == '~') && (rtype == 1)) {\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }\n      pcVar2 = sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" if (parenthesized_expression "(cVar1 == '\"')" ( (binary_expression "cVar1 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = rtype == 2;\n      if ((*s == '~') && (rtype == 1)) {\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }\n      pcVar2 = sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" { (if_statement "if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)) {\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }" if (parenthesized_expression "(((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0))" ( (binary_expression "((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)" (parenthesized_expression "((history_expansion != 0) && (history_expansion_inhibited == 0))" ( (binary_expression "(history_expansion != 0) && (history_expansion_inhibited == 0)" (parenthesized_expression "(history_expansion != 0)" ( (binary_expression "history_expansion != 0" identifier != number_literal) )) && (parenthesized_expression "(history_expansion_inhibited == 0)" ( (binary_expression "history_expansion_inhibited == 0" identifier == number_literal) ))) )) && (parenthesized_expression "(pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0)" ( (comma_expression "pcVar2 = mbschr(s,0x21), pcVar2 != (char *)0x0" (assignment_expression "pcVar2 = mbschr(s,0x21)" identifier = (call_expression "mbschr(s,0x21)" identifier (argument_list "(s,0x21)" ( identifier , number_literal )))) , (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        *qcp = '\0';\n        goto LAB_0009ba1c;\n      }" { (expression_statement "*qcp = '\0';" (assignment_expression "*qcp = '\0'" (pointer_expression "*qcp" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0009ba1c;" goto statement_identifier ;) })) (expression_statement "bVar11 = rtype == 2;" (assignment_expression "bVar11 = rtype == 2" identifier = (binary_expression "rtype == 2" identifier == number_literal)) ;) (if_statement "if ((*s == '~') && (rtype == 1)) {\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }" if (parenthesized_expression "((*s == '~') && (rtype == 1))" ( (binary_expression "(*s == '~') && (rtype == 1)" (parenthesized_expression "(*s == '~')" ( (binary_expression "*s == '~'" (pointer_expression "*s" * identifier) == (char_literal "'~'" ' character ')) )) && (parenthesized_expression "(rtype == 1)" ( (binary_expression "rtype == 1" identifier == number_literal) ))) )) (compound_statement "{\n        bVar11 = false;\n        pcVar3 = bash_tilde_expand(s,0);\n      }" { (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "pcVar3 = bash_tilde_expand(s,0);" (assignment_expression "pcVar3 = bash_tilde_expand(s,0)" identifier = (call_expression "bash_tilde_expand(s,0)" identifier (argument_list "(s,0)" ( identifier , number_literal )))) ;) })) (expression_statement "pcVar2 = sh_double_quote(pcVar3);" (assignment_expression "pcVar2 = sh_double_quote(pcVar3)" identifier = (call_expression "sh_double_quote(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (goto_statement "goto LAB_0009b9cd;" goto statement_identifier ;) }))) (if_statement "if (cVar1 == '\'') goto LAB_0009b9a3;" if (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) )) (goto_statement "goto LAB_0009b9a3;" goto statement_identifier ;)) (labeled_statement "LAB_0009ba1c:\n    pcVar3 = filename_bstab;" statement_identifier : (expression_statement "pcVar3 = filename_bstab;" (assignment_expression "pcVar3 = filename_bstab" identifier = identifier) ;)) (if_statement "if (complete_fullquote != 0) {\n      pcVar3 = (char *)0x0;\n    }" if (parenthesized_expression "(complete_fullquote != 0)" ( (binary_expression "complete_fullquote != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar3 = (char *)0x0;\n    }" { (expression_statement "pcVar3 = (char *)0x0;" (assignment_expression "pcVar3 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "pcVar3 = sh_backslash_quote(s,pcVar3,0);" (assignment_expression "pcVar3 = sh_backslash_quote(s,pcVar3,0)" identifier = (call_expression "sh_backslash_quote(s,pcVar3,0)" identifier (argument_list "(s,pcVar3,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n      sVar6 = strlen(pcVar3);\n      pcVar2 = (char *)xmalloc(sVar6 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = pcVar2;\n      while (pcVar4 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar4;\n      }\n      *pcVar4 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar6 = strlen(pcVar3);\n      pcVar2 = (char *)xmalloc(sVar6 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = pcVar2;\n      while (pcVar4 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar4;\n      }\n      *pcVar4 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }" { (expression_statement "sVar6 = strlen(pcVar3);" (assignment_expression "sVar6 = strlen(pcVar3)" identifier = (call_expression "strlen(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "pcVar2 = (char *)xmalloc(sVar6 * 2 + 1);" (assignment_expression "pcVar2 = (char *)xmalloc(sVar6 * 2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar6 * 2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 * 2 + 1)" identifier (argument_list "(sVar6 * 2 + 1)" ( (binary_expression "sVar6 * 2 + 1" (binary_expression "sVar6 * 2" identifier * number_literal) + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar8 = pcVar3;" (assignment_expression "pcVar8 = pcVar3" identifier = identifier) ;) (expression_statement "pcVar10 = pcVar2;" (assignment_expression "pcVar10 = pcVar2" identifier = identifier) ;) (while_statement "while (pcVar4 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar4;\n      }" while (parenthesized_expression "(pcVar4 = pcVar10, cVar1 != '\0')" ( (comma_expression "pcVar4 = pcVar10, cVar1 != '\0'" (assignment_expression "pcVar4 = pcVar10" identifier = identifier) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar4;\n      }" { (expression_statement "pcVar9 = pcVar8 + 1;" (assignment_expression "pcVar9 = pcVar8 + 1" identifier = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar4 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }" { (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "cVar1 = pcVar8[1];" (assignment_expression "cVar1 = pcVar8[1]" identifier = (subscript_expression "pcVar8[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar10 + 2;" (assignment_expression "pcVar4 = pcVar10 + 2" identifier = (binary_expression "pcVar10 + 2" identifier + number_literal)) ;) (expression_statement "pcVar10[1] = cVar1;" (assignment_expression "pcVar10[1] = cVar1" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "pcVar10 = pcVar8 + 2;" (assignment_expression "pcVar10 = pcVar8 + 2" identifier = (binary_expression "pcVar8 + 2" identifier + number_literal)) ;) (expression_statement "pcVar8 = pcVar9;" (assignment_expression "pcVar8 = pcVar9" identifier = identifier) ;) (expression_statement "pcVar9 = pcVar10;" (assignment_expression "pcVar9 = pcVar10" identifier = identifier) ;) }) (else_clause "else {\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" else (compound_statement "{\n          pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }\n          cVar1 = *pcVar8;\n          pcVar4 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" { (expression_statement "pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1);" (assignment_expression "pcVar4 = mbschr(rl_completer_word_break_characters,(int)cVar1)" identifier = (call_expression "mbschr(rl_completer_word_break_characters,(int)cVar1)" identifier (argument_list "(rl_completer_word_break_characters,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "pcVar7 = pcVar10 + 1;" (assignment_expression "pcVar7 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *pcVar10 = '\\';\n            pcVar4 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar4;\n          }" { (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar4 = pcVar10 + 2;" (assignment_expression "pcVar4 = pcVar10 + 2" identifier = (binary_expression "pcVar10 + 2" identifier + number_literal)) ;) (expression_statement "pcVar10 = pcVar7;" (assignment_expression "pcVar10 = pcVar7" identifier = identifier) ;) (expression_statement "pcVar7 = pcVar4;" (assignment_expression "pcVar7 = pcVar4" identifier = identifier) ;) })) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar4 = pcVar7;" (assignment_expression "pcVar4 = pcVar7" identifier = identifier) ;) (if_statement "if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }" if (parenthesized_expression "((pcVar3 == pcVar8) && (cVar1 == '~'))" ( (binary_expression "(pcVar3 == pcVar8) && (cVar1 == '~')" (parenthesized_expression "(pcVar3 == pcVar8)" ( (binary_expression "pcVar3 == pcVar8" identifier == identifier) )) && (parenthesized_expression "(cVar1 == '~')" ( (binary_expression "cVar1 == '~'" identifier == (char_literal "'~'" ' character ')) ))) )) (compound_statement "{\n            iVar5 = file_exists(pcVar3);\n            if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }" { (expression_statement "iVar5 = file_exists(pcVar3);" (assignment_expression "iVar5 = file_exists(pcVar3)" identifier = (call_expression "file_exists(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n              cVar1 = *pcVar3;\n            }" { (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) }) (else_clause "else {\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" else (compound_statement "{\n              *pcVar10 = '\\';\n              pcVar4 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" { (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar4 = pcVar7 + 1;" (assignment_expression "pcVar4 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar10 = pcVar7;" (assignment_expression "pcVar10 = pcVar7" identifier = identifier) ;) }))) })) (expression_statement "*pcVar10 = cVar1;" (assignment_expression "*pcVar10 = cVar1" (pointer_expression "*pcVar10" * identifier) = identifier) ;) }))) (expression_statement "cVar1 = pcVar8[1];" (assignment_expression "cVar1 = pcVar8[1]" identifier = (subscript_expression "pcVar8[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar8 = pcVar9;" (assignment_expression "pcVar8 = pcVar9" identifier = identifier) ;) (expression_statement "pcVar10 = pcVar4;" (assignment_expression "pcVar10 = pcVar4" identifier = identifier) ;) })) (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (goto_statement "goto joined_r0x0009bac1;" goto statement_identifier ;) })) (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) }))) (expression_statement "pcVar3 = (char *)xmalloc(1);" (assignment_expression "pcVar3 = (char *)xmalloc(1)" identifier = (cast_expression "(char *)xmalloc(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "sVar6 = 1;" (assignment_expression "sVar6 = 1" identifier = number_literal) ;) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (labeled_statement "LAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar6 - 1] = '\0';\n  }" statement_identifier : (if_statement "if (bVar11) {\n    pcVar3[sVar6 - 1] = '\0';\n  }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n    pcVar3[sVar6 - 1] = '\0';\n  }" { (expression_statement "pcVar3[sVar6 - 1] = '\0';" (assignment_expression "pcVar3[sVar6 - 1] = '\0'" (subscript_expression "pcVar3[sVar6 - 1]" identifier [ (binary_expression "sVar6 - 1" identifier - number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "char * FUN_0009b970(char *param_1,int param_2,char *param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *__s;\n  char *pcVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *param_3;\n  pcVar3 = param_1;\n  if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar5 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }\n  free(__s);\n  return pcVar3;\n}\n\n" (function_definition "char * FUN_0009b970(char *param_1,int param_2,char *param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *__s;\n  char *pcVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *param_3;\n  pcVar3 = param_1;\n  if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar5 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }\n  free(__s);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* FUN_0009b970(char *param_1,int param_2,char *param_3)" * (function_declarator "FUN_0009b970(char *param_1,int param_2,char *param_3)" identifier (parameter_list "(char *param_1,int param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *__s;\n  char *pcVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *param_3;\n  pcVar3 = param_1;\n  if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar5 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }\n  free(__s);\n  return pcVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "bool bVar11;" primitive_type identifier ;) (expression_statement "cVar1 = *param_3;" (assignment_expression "cVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (if_statement "if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }" { (expression_statement "iVar2 = mbschr(param_1,10);" (assignment_expression "iVar2 = mbschr(param_1,10)" identifier = (call_expression "mbschr(param_1,10)" identifier (argument_list "(param_1,10)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }" { (expression_statement "cVar1 = *param_3;" (assignment_expression "cVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (goto_statement "goto LAB_0009ba10;" goto statement_identifier ;) })) (labeled_statement "LAB_0009b9a3:\n    bVar11 = param_2 == 2;" statement_identifier : (expression_statement "bVar11 = param_2 == 2;" (assignment_expression "bVar11 = param_2 == 2" identifier = (binary_expression "param_2 == 2" identifier == number_literal)) ;)) (if_statement "if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }" if (parenthesized_expression "((*param_1 == '~') && (param_2 == 1))" ( (binary_expression "(*param_1 == '~') && (param_2 == 1)" (parenthesized_expression "(*param_1 == '~')" ( (binary_expression "*param_1 == '~'" (pointer_expression "*param_1" * identifier) == (char_literal "'~'" ' character ')) )) && (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) ))) )) (compound_statement "{\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }" { (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "pcVar3 = (char *)bash_tilde_expand(param_1,0);" (assignment_expression "pcVar3 = (char *)bash_tilde_expand(param_1,0)" identifier = (cast_expression "(char *)bash_tilde_expand(param_1,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bash_tilde_expand(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) })) (expression_statement "__s = (char *)sh_single_quote(pcVar3);" (assignment_expression "__s = (char *)sh_single_quote(pcVar3)" identifier = (cast_expression "(char *)sh_single_quote(pcVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_single_quote(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))))) ;) (labeled_statement "LAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }" statement_identifier : (if_statement "if (pcVar3 != param_1) {\n      free(pcVar3);\n    }" if (parenthesized_expression "(pcVar3 != param_1)" ( (binary_expression "pcVar3 != param_1" identifier != identifier) )) (compound_statement "{\n      free(pcVar3);\n    }" { (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) }))) (labeled_statement "joined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }" statement_identifier : (if_statement "if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }" { (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar3 = (char *)xmalloc(sVar5 + 1);" (assignment_expression "pcVar3 = (char *)xmalloc(sVar5 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 1)" identifier (argument_list "(sVar5 + 1)" ( (binary_expression "sVar5 + 1" identifier + number_literal) ))))) ;) (expression_statement "strcpy(pcVar3,__s);" (call_expression "strcpy(pcVar3,__s)" identifier (argument_list "(pcVar3,__s)" ( identifier , identifier ))) ;) (goto_statement "goto LAB_0009baf2;" goto statement_identifier ;) }))) }) (else_clause "else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }" else (compound_statement "{\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }" { (labeled_statement "LAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" statement_identifier : (if_statement "if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" if (parenthesized_expression "(cVar1 == '\"')" ( (binary_expression "cVar1 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" { (if_statement "if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }" if (parenthesized_expression "(((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0))" ( (binary_expression "((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)" (parenthesized_expression "((history_expansion != 0) && (history_expansion_inhibited == 0))" ( (binary_expression "(history_expansion != 0) && (history_expansion_inhibited == 0)" (parenthesized_expression "(history_expansion != 0)" ( (binary_expression "history_expansion != 0" identifier != number_literal) )) && (parenthesized_expression "(history_expansion_inhibited == 0)" ( (binary_expression "history_expansion_inhibited == 0" identifier == number_literal) ))) )) && (parenthesized_expression "(iVar2 = mbschr(param_1,0x21), iVar2 != 0)" ( (comma_expression "iVar2 = mbschr(param_1,0x21), iVar2 != 0" (assignment_expression "iVar2 = mbschr(param_1,0x21)" identifier = (call_expression "mbschr(param_1,0x21)" identifier (argument_list "(param_1,0x21)" ( identifier , number_literal )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }" { (expression_statement "*param_3 = '\0';" (assignment_expression "*param_3 = '\0'" (pointer_expression "*param_3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0009ba1c;" goto statement_identifier ;) })) (expression_statement "bVar11 = param_2 == 2;" (assignment_expression "bVar11 = param_2 == 2" identifier = (binary_expression "param_2 == 2" identifier == number_literal)) ;) (if_statement "if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }" if (parenthesized_expression "((*param_1 == '~') && (param_2 == 1))" ( (binary_expression "(*param_1 == '~') && (param_2 == 1)" (parenthesized_expression "(*param_1 == '~')" ( (binary_expression "*param_1 == '~'" (pointer_expression "*param_1" * identifier) == (char_literal "'~'" ' character ')) )) && (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) ))) )) (compound_statement "{\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }" { (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "pcVar3 = (char *)bash_tilde_expand(param_1,0);" (assignment_expression "pcVar3 = (char *)bash_tilde_expand(param_1,0)" identifier = (cast_expression "(char *)bash_tilde_expand(param_1,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bash_tilde_expand(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) })) (expression_statement "__s = (char *)sh_double_quote(pcVar3);" (assignment_expression "__s = (char *)sh_double_quote(pcVar3)" identifier = (cast_expression "(char *)sh_double_quote(pcVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_double_quote(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))))) ;) (goto_statement "goto LAB_0009b9cd;" goto statement_identifier ;) }))) (if_statement "if (cVar1 == '\'') goto LAB_0009b9a3;" if (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) )) (goto_statement "goto LAB_0009b9a3;" goto statement_identifier ;)) (labeled_statement "LAB_0009ba1c:\n    puVar4 = &DAT_00179500;" statement_identifier : (expression_statement "puVar4 = &DAT_00179500;" (assignment_expression "puVar4 = &DAT_00179500" identifier = (pointer_expression "&DAT_00179500" & identifier)) ;)) (if_statement "if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }" if (parenthesized_expression "(complete_fullquote != 0)" ( (binary_expression "complete_fullquote != 0" identifier != number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)0x0;\n    }" { (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);" (assignment_expression "pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0)" identifier = (cast_expression "(char *)sh_backslash_quote(param_1,puVar4,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sh_backslash_quote(param_1,puVar4,0)" identifier (argument_list "(param_1,puVar4,0)" ( identifier , identifier , number_literal ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }" { (expression_statement "sVar5 = strlen(pcVar3);" (assignment_expression "sVar5 = strlen(pcVar3)" identifier = (call_expression "strlen(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "__s = (char *)xmalloc(sVar5 * 2 + 1);" (assignment_expression "__s = (char *)xmalloc(sVar5 * 2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar5 * 2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 * 2 + 1)" identifier (argument_list "(sVar5 * 2 + 1)" ( (binary_expression "sVar5 * 2 + 1" (binary_expression "sVar5 * 2" identifier * number_literal) + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar8 = pcVar3;" (assignment_expression "pcVar8 = pcVar3" identifier = identifier) ;) (expression_statement "pcVar10 = __s;" (assignment_expression "pcVar10 = __s" identifier = identifier) ;) (while_statement "while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }" while (parenthesized_expression "(pcVar6 = pcVar10, cVar1 != '\0')" ( (comma_expression "pcVar6 = pcVar10, cVar1 != '\0'" (assignment_expression "pcVar6 = pcVar10" identifier = identifier) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }" { (expression_statement "pcVar9 = pcVar8 + 1;" (assignment_expression "pcVar9 = pcVar8 + 1" identifier = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }" { (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "cVar1 = pcVar8[1];" (assignment_expression "cVar1 = pcVar8[1]" identifier = (subscript_expression "pcVar8[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar6 = pcVar10 + 2;" (assignment_expression "pcVar6 = pcVar10 + 2" identifier = (binary_expression "pcVar10 + 2" identifier + number_literal)) ;) (expression_statement "pcVar10[1] = cVar1;" (assignment_expression "pcVar10[1] = cVar1" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "pcVar10 = pcVar8 + 2;" (assignment_expression "pcVar10 = pcVar8 + 2" identifier = (binary_expression "pcVar8 + 2" identifier + number_literal)) ;) (expression_statement "pcVar8 = pcVar9;" (assignment_expression "pcVar8 = pcVar9" identifier = identifier) ;) (expression_statement "pcVar9 = pcVar10;" (assignment_expression "pcVar9 = pcVar10" identifier = identifier) ;) }) (else_clause "else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" else (compound_statement "{\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" { (expression_statement "iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);" (assignment_expression "iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1)" identifier = (call_expression "mbschr(rl_completer_word_break_characters,(int)cVar1)" identifier (argument_list "(rl_completer_word_break_characters,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "pcVar7 = pcVar10 + 1;" (assignment_expression "pcVar7 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }" { (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar6 = pcVar10 + 2;" (assignment_expression "pcVar6 = pcVar10 + 2" identifier = (binary_expression "pcVar10 + 2" identifier + number_literal)) ;) (expression_statement "pcVar10 = pcVar7;" (assignment_expression "pcVar10 = pcVar7" identifier = identifier) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) })) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) (expression_statement "pcVar6 = pcVar7;" (assignment_expression "pcVar6 = pcVar7" identifier = identifier) ;) (if_statement "if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }" if (parenthesized_expression "((pcVar3 == pcVar8) && (cVar1 == '~'))" ( (binary_expression "(pcVar3 == pcVar8) && (cVar1 == '~')" (parenthesized_expression "(pcVar3 == pcVar8)" ( (binary_expression "pcVar3 == pcVar8" identifier == identifier) )) && (parenthesized_expression "(cVar1 == '~')" ( (binary_expression "cVar1 == '~'" identifier == (char_literal "'~'" ' character ')) ))) )) (compound_statement "{\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }" { (expression_statement "iVar2 = file_exists(pcVar3);" (assignment_expression "iVar2 = file_exists(pcVar3)" identifier = (call_expression "file_exists(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n              cVar1 = *pcVar3;\n            }" { (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) }) (else_clause "else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" else (compound_statement "{\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" { (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" * identifier) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "pcVar6 = pcVar7 + 1;" (assignment_expression "pcVar6 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar10 = pcVar7;" (assignment_expression "pcVar10 = pcVar7" identifier = identifier) ;) }))) })) (expression_statement "*pcVar10 = cVar1;" (assignment_expression "*pcVar10 = cVar1" (pointer_expression "*pcVar10" * identifier) = identifier) ;) }))) (expression_statement "cVar1 = pcVar8[1];" (assignment_expression "cVar1 = pcVar8[1]" identifier = (subscript_expression "pcVar8[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar8 = pcVar9;" (assignment_expression "pcVar8 = pcVar9" identifier = identifier) ;) (expression_statement "pcVar10 = pcVar6;" (assignment_expression "pcVar10 = pcVar6" identifier = identifier) ;) })) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (goto_statement "goto joined_r0x0009bac1;" goto statement_identifier ;) })) (expression_statement "__s = (char *)0x0;" (assignment_expression "__s = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) }))) (expression_statement "pcVar3 = (char *)xmalloc(1);" (assignment_expression "pcVar3 = (char *)xmalloc(1)" identifier = (cast_expression "(char *)xmalloc(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "sVar5 = 1;" (assignment_expression "sVar5 = 1" identifier = number_literal) ;) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (labeled_statement "LAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }" statement_identifier : (if_statement "if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n    pcVar3[sVar5 - 1] = '\0';\n  }" { (expression_statement "pcVar3[sVar5 - 1] = '\0';" (assignment_expression "pcVar3[sVar5 - 1] = '\0'" (subscript_expression "pcVar3[sVar5 - 1]" identifier [ (binary_expression "sVar5 - 1" identifier - number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (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) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) }))) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (goto_statement goto statement_identifier ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != (char_literal ' escape_sequence '))) )) (compound_statement { (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 (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) = (char_literal ' escape_sequence ')) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "char * FUN_0009b970(char *param_1,int param_2,char *param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *__s;\n  char *pcVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *param_3;\n  pcVar3 = param_1;\n  if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar5 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }\n  free(__s);\n  return pcVar3;\n}" (primitive_type "char") (pointer_declarator "* FUN_0009b970(char *param_1,int param_2,char *param_3)" (* "*") (function_declarator "FUN_0009b970(char *param_1,int param_2,char *param_3)" (identifier "FUN_0009b970") (parameter_list "(char *param_1,int param_2,char *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 "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *__s;\n  char *pcVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  bool bVar11;\n  \n  cVar1 = *param_3;\n  pcVar3 = param_1;\n  if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }\n  pcVar3 = (char *)xmalloc(1);\n  sVar5 = 1;\n  *pcVar3 = '\0';\nLAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }\n  free(__s);\n  return pcVar3;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "char *pcVar9;" (primitive_type "char") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "bool bVar11;" (primitive_type "bool") (identifier "bVar11") (; ";")) (expression_statement "cVar1 = *param_3;" (assignment_expression "cVar1 = *param_3" (identifier "cVar1") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" (identifier "pcVar3") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (cVar1 == '\0') {\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }\n  else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = mbschr(param_1,10);\n    if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }\nLAB_0009b9a3:\n    bVar11 = param_2 == 2;\n    if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }\n    __s = (char *)sh_single_quote(pcVar3);\nLAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }\njoined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }\n  }" ({ "{") (expression_statement "iVar2 = mbschr(param_1,10);" (assignment_expression "iVar2 = mbschr(param_1,10)" (identifier "iVar2") (= "=") (call_expression "mbschr(param_1,10)" (identifier "mbschr") (argument_list "(param_1,10)" (( "(") (identifier "param_1") (, ",") (number_literal "10") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      cVar1 = *param_3;\n      goto LAB_0009ba10;\n    }" ({ "{") (expression_statement "cVar1 = *param_3;" (assignment_expression "cVar1 = *param_3" (identifier "cVar1") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (goto_statement "goto LAB_0009ba10;" (goto "goto") (statement_identifier "LAB_0009ba10") (; ";")) (} "}"))) (labeled_statement "LAB_0009b9a3:\n    bVar11 = param_2 == 2;" (statement_identifier "LAB_0009b9a3") (: ":") (expression_statement "bVar11 = param_2 == 2;" (assignment_expression "bVar11 = param_2 == 2" (identifier "bVar11") (= "=") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2"))) (; ";"))) (if_statement "if ((*param_1 == '~') && (param_2 == 1)) {\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }" (if "if") (parenthesized_expression "((*param_1 == '~') && (param_2 == 1))" (( "(") (binary_expression "(*param_1 == '~') && (param_2 == 1)" (parenthesized_expression "(*param_1 == '~')" (( "(") (binary_expression "*param_1 == '~'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'~'" (' "'") (character "~") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 == 1)" (( "(") (binary_expression "param_2 == 1" (identifier "param_2") (== "==") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n      bVar11 = false;\n      pcVar3 = (char *)bash_tilde_expand(param_1,0);\n    }" ({ "{") (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" (identifier "bVar11") (= "=") (false "false")) (; ";")) (expression_statement "pcVar3 = (char *)bash_tilde_expand(param_1,0);" (assignment_expression "pcVar3 = (char *)bash_tilde_expand(param_1,0)" (identifier "pcVar3") (= "=") (cast_expression "(char *)bash_tilde_expand(param_1,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bash_tilde_expand(param_1,0)" (identifier "bash_tilde_expand") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))))) (; ";")) (} "}"))) (expression_statement "__s = (char *)sh_single_quote(pcVar3);" (assignment_expression "__s = (char *)sh_single_quote(pcVar3)" (identifier "__s") (= "=") (cast_expression "(char *)sh_single_quote(pcVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sh_single_quote(pcVar3)" (identifier "sh_single_quote") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))))) (; ";")) (labeled_statement "LAB_0009b9cd:\n    if (pcVar3 != param_1) {\n      free(pcVar3);\n    }" (statement_identifier "LAB_0009b9cd") (: ":") (if_statement "if (pcVar3 != param_1) {\n      free(pcVar3);\n    }" (if "if") (parenthesized_expression "(pcVar3 != param_1)" (( "(") (binary_expression "pcVar3 != param_1" (identifier "pcVar3") (!= "!=") (identifier "param_1")) () ")")) (compound_statement "{\n      free(pcVar3);\n    }" ({ "{") (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" (identifier "free") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))) (; ";")) (} "}")))) (labeled_statement "joined_r0x0009bac1:\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }" (statement_identifier "joined_r0x0009bac1") (: ":") (if_statement "if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      sVar5 = strlen(__s);\n      pcVar3 = (char *)xmalloc(sVar5 + 1);\n      strcpy(pcVar3,__s);\n      goto LAB_0009baf2;\n    }" ({ "{") (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" (identifier "sVar5") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "pcVar3 = (char *)xmalloc(sVar5 + 1);" (assignment_expression "pcVar3 = (char *)xmalloc(sVar5 + 1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)xmalloc(sVar5 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar5 + 1)" (identifier "xmalloc") (argument_list "(sVar5 + 1)" (( "(") (binary_expression "sVar5 + 1" (identifier "sVar5") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "strcpy(pcVar3,__s);" (call_expression "strcpy(pcVar3,__s)" (identifier "strcpy") (argument_list "(pcVar3,__s)" (( "(") (identifier "pcVar3") (, ",") (identifier "__s") () ")"))) (; ";")) (goto_statement "goto LAB_0009baf2;" (goto "goto") (statement_identifier "LAB_0009baf2") (; ";")) (} "}")))) (} "}")) (else_clause "else {\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }" (else "else") (compound_statement "{\nLAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }\n    if (cVar1 == '\'') goto LAB_0009b9a3;\nLAB_0009ba1c:\n    puVar4 = &DAT_00179500;\n    if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }\n    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);\n    if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }\n    __s = (char *)0x0;\n    bVar11 = false;\n  }" ({ "{") (labeled_statement "LAB_0009ba10:\n    if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" (statement_identifier "LAB_0009ba10") (: ":") (if_statement "if (cVar1 == '\"') {\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\"')" (( "(") (binary_expression "cVar1 == '\"'" (identifier "cVar1") (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")")) (compound_statement "{\n      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }\n      bVar11 = param_2 == 2;\n      if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }\n      __s = (char *)sh_double_quote(pcVar3);\n      goto LAB_0009b9cd;\n    }" ({ "{") (if_statement "if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }" (if "if") (parenthesized_expression "(((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0))" (( "(") (binary_expression "((history_expansion != 0) && (history_expansion_inhibited == 0)) &&\n         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)" (parenthesized_expression "((history_expansion != 0) && (history_expansion_inhibited == 0))" (( "(") (binary_expression "(history_expansion != 0) && (history_expansion_inhibited == 0)" (parenthesized_expression "(history_expansion != 0)" (( "(") (binary_expression "history_expansion != 0" (identifier "history_expansion") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(history_expansion_inhibited == 0)" (( "(") (binary_expression "history_expansion_inhibited == 0" (identifier "history_expansion_inhibited") (== "==") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = mbschr(param_1,0x21), iVar2 != 0)" (( "(") (comma_expression "iVar2 = mbschr(param_1,0x21), iVar2 != 0" (assignment_expression "iVar2 = mbschr(param_1,0x21)" (identifier "iVar2") (= "=") (call_expression "mbschr(param_1,0x21)" (identifier "mbschr") (argument_list "(param_1,0x21)" (( "(") (identifier "param_1") (, ",") (number_literal "0x21") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        *param_3 = '\0';\n        goto LAB_0009ba1c;\n      }" ({ "{") (expression_statement "*param_3 = '\0';" (assignment_expression "*param_3 = '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (goto_statement "goto LAB_0009ba1c;" (goto "goto") (statement_identifier "LAB_0009ba1c") (; ";")) (} "}"))) (expression_statement "bVar11 = param_2 == 2;" (assignment_expression "bVar11 = param_2 == 2" (identifier "bVar11") (= "=") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2"))) (; ";")) (if_statement "if ((*param_1 == '~') && (param_2 == 1)) {\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }" (if "if") (parenthesized_expression "((*param_1 == '~') && (param_2 == 1))" (( "(") (binary_expression "(*param_1 == '~') && (param_2 == 1)" (parenthesized_expression "(*param_1 == '~')" (( "(") (binary_expression "*param_1 == '~'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'~'" (' "'") (character "~") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 == 1)" (( "(") (binary_expression "param_2 == 1" (identifier "param_2") (== "==") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n        bVar11 = false;\n        pcVar3 = (char *)bash_tilde_expand(param_1,0);\n      }" ({ "{") (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" (identifier "bVar11") (= "=") (false "false")) (; ";")) (expression_statement "pcVar3 = (char *)bash_tilde_expand(param_1,0);" (assignment_expression "pcVar3 = (char *)bash_tilde_expand(param_1,0)" (identifier "pcVar3") (= "=") (cast_expression "(char *)bash_tilde_expand(param_1,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bash_tilde_expand(param_1,0)" (identifier "bash_tilde_expand") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))))) (; ";")) (} "}"))) (expression_statement "__s = (char *)sh_double_quote(pcVar3);" (assignment_expression "__s = (char *)sh_double_quote(pcVar3)" (identifier "__s") (= "=") (cast_expression "(char *)sh_double_quote(pcVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sh_double_quote(pcVar3)" (identifier "sh_double_quote") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))))) (; ";")) (goto_statement "goto LAB_0009b9cd;" (goto "goto") (statement_identifier "LAB_0009b9cd") (; ";")) (} "}")))) (if_statement "if (cVar1 == '\'') goto LAB_0009b9a3;" (if "if") (parenthesized_expression "(cVar1 == '\'')" (( "(") (binary_expression "cVar1 == '\''" (identifier "cVar1") (== "==") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) () ")")) (goto_statement "goto LAB_0009b9a3;" (goto "goto") (statement_identifier "LAB_0009b9a3") (; ";"))) (labeled_statement "LAB_0009ba1c:\n    puVar4 = &DAT_00179500;" (statement_identifier "LAB_0009ba1c") (: ":") (expression_statement "puVar4 = &DAT_00179500;" (assignment_expression "puVar4 = &DAT_00179500" (identifier "puVar4") (= "=") (pointer_expression "&DAT_00179500" (& "&") (identifier "DAT_00179500"))) (; ";"))) (if_statement "if (complete_fullquote != 0) {\n      puVar4 = (undefined4 *)0x0;\n    }" (if "if") (parenthesized_expression "(complete_fullquote != 0)" (( "(") (binary_expression "complete_fullquote != 0" (identifier "complete_fullquote") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar4 = (undefined4 *)0x0;\n    }" ({ "{") (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (expression_statement "pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);" (assignment_expression "pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0)" (identifier "pcVar3") (= "=") (cast_expression "(char *)sh_backslash_quote(param_1,puVar4,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sh_backslash_quote(param_1,puVar4,0)" (identifier "sh_backslash_quote") (argument_list "(param_1,puVar4,0)" (( "(") (identifier "param_1") (, ",") (identifier "puVar4") (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (pcVar3 != (char *)0x0) {\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }" (if "if") (parenthesized_expression "(pcVar3 != (char *)0x0)" (( "(") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      sVar5 = strlen(pcVar3);\n      __s = (char *)xmalloc(sVar5 * 2 + 1);\n      cVar1 = *pcVar3;\n      pcVar8 = pcVar3;\n      pcVar10 = __s;\n      while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }\n      *pcVar6 = '\0';\n      bVar11 = false;\n      free(pcVar3);\n      goto joined_r0x0009bac1;\n    }" ({ "{") (expression_statement "sVar5 = strlen(pcVar3);" (assignment_expression "sVar5 = strlen(pcVar3)" (identifier "sVar5") (= "=") (call_expression "strlen(pcVar3)" (identifier "strlen") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")")))) (; ";")) (expression_statement "__s = (char *)xmalloc(sVar5 * 2 + 1);" (assignment_expression "__s = (char *)xmalloc(sVar5 * 2 + 1)" (identifier "__s") (= "=") (cast_expression "(char *)xmalloc(sVar5 * 2 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar5 * 2 + 1)" (identifier "xmalloc") (argument_list "(sVar5 * 2 + 1)" (( "(") (binary_expression "sVar5 * 2 + 1" (binary_expression "sVar5 * 2" (identifier "sVar5") (* "*") (number_literal "2")) (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" (identifier "cVar1") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (expression_statement "pcVar8 = pcVar3;" (assignment_expression "pcVar8 = pcVar3" (identifier "pcVar8") (= "=") (identifier "pcVar3")) (; ";")) (expression_statement "pcVar10 = __s;" (assignment_expression "pcVar10 = __s" (identifier "pcVar10") (= "=") (identifier "__s")) (; ";")) (while_statement "while (pcVar6 = pcVar10, cVar1 != '\0') {\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }" (while "while") (parenthesized_expression "(pcVar6 = pcVar10, cVar1 != '\0')" (( "(") (comma_expression "pcVar6 = pcVar10, cVar1 != '\0'" (assignment_expression "pcVar6 = pcVar10" (identifier "pcVar6") (= "=") (identifier "pcVar10")) (, ",") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (compound_statement "{\n        pcVar9 = pcVar8 + 1;\n        if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }\n        cVar1 = pcVar8[1];\n        pcVar8 = pcVar9;\n        pcVar10 = pcVar6;\n      }" ({ "{") (expression_statement "pcVar9 = pcVar8 + 1;" (assignment_expression "pcVar9 = pcVar8 + 1" (identifier "pcVar9") (= "=") (binary_expression "pcVar8 + 1" (identifier "pcVar8") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar1 == '\\') {\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }\n        else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" (if "if") (parenthesized_expression "(cVar1 == '\\')" (( "(") (binary_expression "cVar1 == '\\'" (identifier "cVar1") (== "==") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")")) (compound_statement "{\n          *pcVar10 = '\\';\n          cVar1 = pcVar8[1];\n          pcVar6 = pcVar10 + 2;\n          pcVar10[1] = cVar1;\n          if (cVar1 == '\0') break;\n          pcVar10 = pcVar8 + 2;\n          pcVar8 = pcVar9;\n          pcVar9 = pcVar10;\n        }" ({ "{") (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (= "=") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) (; ";")) (expression_statement "cVar1 = pcVar8[1];" (assignment_expression "cVar1 = pcVar8[1]" (identifier "cVar1") (= "=") (subscript_expression "pcVar8[1]" (identifier "pcVar8") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pcVar6 = pcVar10 + 2;" (assignment_expression "pcVar6 = pcVar10 + 2" (identifier "pcVar6") (= "=") (binary_expression "pcVar10 + 2" (identifier "pcVar10") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pcVar10[1] = cVar1;" (assignment_expression "pcVar10[1] = cVar1" (subscript_expression "pcVar10[1]" (identifier "pcVar10") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "cVar1")) (; ";")) (if_statement "if (cVar1 == '\0') break;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar10 = pcVar8 + 2;" (assignment_expression "pcVar10 = pcVar8 + 2" (identifier "pcVar10") (= "=") (binary_expression "pcVar8 + 2" (identifier "pcVar8") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pcVar8 = pcVar9;" (assignment_expression "pcVar8 = pcVar9" (identifier "pcVar8") (= "=") (identifier "pcVar9")) (; ";")) (expression_statement "pcVar9 = pcVar10;" (assignment_expression "pcVar9 = pcVar10" (identifier "pcVar9") (= "=") (identifier "pcVar10")) (; ";")) (} "}")) (else_clause "else {\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" (else "else") (compound_statement "{\n          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);\n          pcVar7 = pcVar10 + 1;\n          if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }\n          cVar1 = *pcVar8;\n          pcVar6 = pcVar7;\n          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }\n          *pcVar10 = cVar1;\n        }" ({ "{") (expression_statement "iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);" (assignment_expression "iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1)" (identifier "iVar2") (= "=") (call_expression "mbschr(rl_completer_word_break_characters,(int)cVar1)" (identifier "mbschr") (argument_list "(rl_completer_word_break_characters,(int)cVar1)" (( "(") (identifier "rl_completer_word_break_characters") (, ",") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) () ")")))) (; ";")) (expression_statement "pcVar7 = pcVar10 + 1;" (assignment_expression "pcVar7 = pcVar10 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar10 + 1" (identifier "pcVar10") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 != 0) {\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            *pcVar10 = '\\';\n            pcVar6 = pcVar10 + 2;\n            pcVar10 = pcVar7;\n            pcVar7 = pcVar6;\n          }" ({ "{") (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (= "=") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) (; ";")) (expression_statement "pcVar6 = pcVar10 + 2;" (assignment_expression "pcVar6 = pcVar10 + 2" (identifier "pcVar6") (= "=") (binary_expression "pcVar10 + 2" (identifier "pcVar10") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pcVar10 = pcVar7;" (assignment_expression "pcVar10 = pcVar7" (identifier "pcVar10") (= "=") (identifier "pcVar7")) (; ";")) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" (identifier "pcVar7") (= "=") (identifier "pcVar6")) (; ";")) (} "}"))) (expression_statement "cVar1 = *pcVar8;" (assignment_expression "cVar1 = *pcVar8" (identifier "cVar1") (= "=") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8"))) (; ";")) (expression_statement "pcVar6 = pcVar7;" (assignment_expression "pcVar6 = pcVar7" (identifier "pcVar6") (= "=") (identifier "pcVar7")) (; ";")) (if_statement "if ((pcVar3 == pcVar8) && (cVar1 == '~')) {\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }" (if "if") (parenthesized_expression "((pcVar3 == pcVar8) && (cVar1 == '~'))" (( "(") (binary_expression "(pcVar3 == pcVar8) && (cVar1 == '~')" (parenthesized_expression "(pcVar3 == pcVar8)" (( "(") (binary_expression "pcVar3 == pcVar8" (identifier "pcVar3") (== "==") (identifier "pcVar8")) () ")")) (&& "&&") (parenthesized_expression "(cVar1 == '~')" (( "(") (binary_expression "cVar1 == '~'" (identifier "cVar1") (== "==") (char_literal "'~'" (' "'") (character "~") (' "'"))) () ")"))) () ")")) (compound_statement "{\n            iVar2 = file_exists(pcVar3);\n            if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }\n          }" ({ "{") (expression_statement "iVar2 = file_exists(pcVar3);" (assignment_expression "iVar2 = file_exists(pcVar3)" (identifier "iVar2") (= "=") (call_expression "file_exists(pcVar3)" (identifier "file_exists") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n              cVar1 = *pcVar3;\n            }\n            else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              cVar1 = *pcVar3;\n            }" ({ "{") (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" (identifier "cVar1") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (} "}")) (else_clause "else {\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" (else "else") (compound_statement "{\n              *pcVar10 = '\\';\n              pcVar6 = pcVar7 + 1;\n              cVar1 = *pcVar3;\n              pcVar10 = pcVar7;\n            }" ({ "{") (expression_statement "*pcVar10 = '\\';" (assignment_expression "*pcVar10 = '\\'" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (= "=") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) (; ";")) (expression_statement "pcVar6 = pcVar7 + 1;" (assignment_expression "pcVar6 = pcVar7 + 1" (identifier "pcVar6") (= "=") (binary_expression "pcVar7 + 1" (identifier "pcVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" (identifier "cVar1") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (expression_statement "pcVar10 = pcVar7;" (assignment_expression "pcVar10 = pcVar7" (identifier "pcVar10") (= "=") (identifier "pcVar7")) (; ";")) (} "}")))) (} "}"))) (expression_statement "*pcVar10 = cVar1;" (assignment_expression "*pcVar10 = cVar1" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (= "=") (identifier "cVar1")) (; ";")) (} "}")))) (expression_statement "cVar1 = pcVar8[1];" (assignment_expression "cVar1 = pcVar8[1]" (identifier "cVar1") (= "=") (subscript_expression "pcVar8[1]" (identifier "pcVar8") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pcVar8 = pcVar9;" (assignment_expression "pcVar8 = pcVar9" (identifier "pcVar8") (= "=") (identifier "pcVar9")) (; ";")) (expression_statement "pcVar10 = pcVar6;" (assignment_expression "pcVar10 = pcVar6" (identifier "pcVar10") (= "=") (identifier "pcVar6")) (; ";")) (} "}"))) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" (identifier "bVar11") (= "=") (false "false")) (; ";")) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" (identifier "free") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))) (; ";")) (goto_statement "goto joined_r0x0009bac1;" (goto "goto") (statement_identifier "joined_r0x0009bac1") (; ";")) (} "}"))) (expression_statement "__s = (char *)0x0;" (assignment_expression "__s = (char *)0x0" (identifier "__s") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" (identifier "bVar11") (= "=") (false "false")) (; ";")) (} "}")))) (expression_statement "pcVar3 = (char *)xmalloc(1);" (assignment_expression "pcVar3 = (char *)xmalloc(1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)xmalloc(1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(1)" (identifier "xmalloc") (argument_list "(1)" (( "(") (number_literal "1") () ")"))))) (; ";")) (expression_statement "sVar5 = 1;" (assignment_expression "sVar5 = 1" (identifier "sVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (labeled_statement "LAB_0009baf2:\n  if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }" (statement_identifier "LAB_0009baf2") (: ":") (if_statement "if (bVar11) {\n    pcVar3[sVar5 - 1] = '\0';\n  }" (if "if") (parenthesized_expression "(bVar11)" (( "(") (identifier "bVar11") () ")")) (compound_statement "{\n    pcVar3[sVar5 - 1] = '\0';\n  }" ({ "{") (expression_statement "pcVar3[sVar5 - 1] = '\0';" (assignment_expression "pcVar3[sVar5 - 1] = '\0'" (subscript_expression "pcVar3[sVar5 - 1]" (identifier "pcVar3") ([ "[") (binary_expression "sVar5 - 1" (identifier "sVar5") (- "-") (number_literal "1")) (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return pcVar3;" (return "return") (identifier "pcVar3") (; ";")) (} "}")))

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

char * function_1(char *var_8,int var_4,char *qcp)

{
  char var_1;
  char *var_3;
  char *var_7;
  char *var_21;
  int var_23;
  size_t var_12;
  char *var_24;
  char *var_19;
  char *pcVar9;
  char *var_20;
  bool bVar11;
  
  var_1 = *qcp;
  var_7 = var_8;
  if (var_1 == '\0') {
    var_3 = var_2(var_8,10);
    if (var_3 == (char *)0x0) {
      var_1 = *qcp;
      goto LAB_0009ba10;
    }
LAB_0009b9a3:
    bVar11 = var_4 == 2;
    if ((*var_8 == '~') && (var_4 == 1)) {
      bVar11 = false;
      var_7 = var_5(var_8,0);
    }
    var_3 = var_6(var_7);
LAB_0009b9cd:
    if (var_7 != var_8) {
      var_9(var_7);
    }
joined_r0x0009bac1:
    if (var_3 != (char *)0x0) {
      var_12 = var_10(var_3);
      var_7 = (char *)var_11(var_12 + 1);
      var_13(var_7,var_3);
      goto LAB_0009baf2;
    }
  }
  else {
LAB_0009ba10:
    if (var_1 == '\"') {
      if (((var_14 != 0) && (var_15 == 0)) &&
         (var_3 = var_2(var_8,0x21), var_3 != (char *)0x0)) {
        *qcp = '\0';
        goto LAB_0009ba1c;
      }
      bVar11 = var_4 == 2;
      if ((*var_8 == '~') && (var_4 == 1)) {
        bVar11 = false;
        var_7 = var_5(var_8,0);
      }
      var_3 = var_16(var_7);
      goto LAB_0009b9cd;
    }
    if (var_1 == '\'') goto LAB_0009b9a3;
LAB_0009ba1c:
    var_7 = filename_bstab;
    if (var_17 != 0) {
      var_7 = (char *)0x0;
    }
    var_7 = var_18(var_8,var_7,0);
    if (var_7 != (char *)0x0) {
      var_12 = var_10(var_7);
      var_3 = (char *)var_11(var_12 * 2 + 1);
      var_1 = *var_7;
      var_19 = var_7;
      var_20 = var_3;
      while (var_21 = var_20, var_1 != '\0') {
        pcVar9 = var_19 + 1;
        if (var_1 == '\\') {
          *var_20 = '\\';
          var_1 = var_19[1];
          var_21 = var_20 + 2;
          var_20[1] = var_1;
          if (var_1 == '\0') break;
          var_20 = var_19 + 2;
          var_19 = pcVar9;
          pcVar9 = var_20;
        }
        else {
          var_21 = var_2(rl_completer_word_break_characters,(int)var_1);
          var_24 = var_20 + 1;
          if (var_21 != (char *)0x0) {
            *var_20 = '\\';
            var_21 = var_20 + 2;
            var_20 = var_24;
            var_24 = var_21;
          }
          var_1 = *var_19;
          var_21 = var_24;
          if ((var_7 == var_19) && (var_1 == '~')) {
            var_23 = var_22(var_7);
            if (var_23 == 0) {
              var_1 = *var_7;
            }
            else {
              *var_20 = '\\';
              var_21 = var_24 + 1;
              var_1 = *var_7;
              var_20 = var_24;
            }
          }
          *var_20 = var_1;
        }
        var_1 = var_19[1];
        var_19 = pcVar9;
        var_20 = var_21;
      }
      *var_21 = '\0';
      bVar11 = false;
      var_9(var_7);
      goto joined_r0x0009bac1;
    }
    var_3 = (char *)0x0;
    bVar11 = false;
  }
  var_7 = (char *)var_11(1);
  var_12 = 1;
  *var_7 = '\0';
LAB_0009baf2:
  if (bVar11) {
    var_7[var_12 - 1] = '\0';
  }
  var_9(var_3);
  return var_7;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (labeled_statement label: (statement_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: (compound_statement (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (goto_statement label: (statement_identifier)))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (goto_statement label: (statement_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))) (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: (compound_statement (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: (primitive_type) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) body: (compound_statement (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: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (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)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (false)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (char_literal (escape_sequence))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

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

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

{
  char cVar1;
  int iVar2;
  char *__s;
  char *pcVar3;
  undefined4 *puVar4;
  size_t sVar5;
  char *pcVar6;
  char *pcVar7;
  char *pcVar8;
  char *pcVar9;
  char *pcVar10;
  bool bVar11;
  
  cVar1 = *param_3;
  pcVar3 = param_1;
  if (cVar1 == '\0') {
    iVar2 = mbschr(param_1,10);
    if (iVar2 == 0) {
      cVar1 = *param_3;
      goto LAB_0009ba10;
    }
LAB_0009b9a3:
    bVar11 = param_2 == 2;
    if ((*param_1 == '~') && (param_2 == 1)) {
      bVar11 = false;
      pcVar3 = (char *)bash_tilde_expand(param_1,0);
    }
    __s = (char *)sh_single_quote(pcVar3);
LAB_0009b9cd:
    if (pcVar3 != param_1) {
      free(pcVar3);
    }
joined_r0x0009bac1:
    if (__s != (char *)0x0) {
      sVar5 = strlen(__s);
      pcVar3 = (char *)xmalloc(sVar5 + 1);
      strcpy(pcVar3,__s);
      goto LAB_0009baf2;
    }
  }
  else {
LAB_0009ba10:
    if (cVar1 == '\"') {
      if (((history_expansion != 0) && (history_expansion_inhibited == 0)) &&
         (iVar2 = mbschr(param_1,0x21), iVar2 != 0)) {
        *param_3 = '\0';
        goto LAB_0009ba1c;
      }
      bVar11 = param_2 == 2;
      if ((*param_1 == '~') && (param_2 == 1)) {
        bVar11 = false;
        pcVar3 = (char *)bash_tilde_expand(param_1,0);
      }
      __s = (char *)sh_double_quote(pcVar3);
      goto LAB_0009b9cd;
    }
    if (cVar1 == '\'') goto LAB_0009b9a3;
LAB_0009ba1c:
    puVar4 = &DAT_00179500;
    if (complete_fullquote != 0) {
      puVar4 = (undefined4 *)0x0;
    }
    pcVar3 = (char *)sh_backslash_quote(param_1,puVar4,0);
    if (pcVar3 != (char *)0x0) {
      sVar5 = strlen(pcVar3);
      __s = (char *)xmalloc(sVar5 * 2 + 1);
      cVar1 = *pcVar3;
      pcVar8 = pcVar3;
      pcVar10 = __s;
      while (pcVar6 = pcVar10, cVar1 != '\0') {
        pcVar9 = pcVar8 + 1;
        if (cVar1 == '\\') {
          *pcVar10 = '\\';
          cVar1 = pcVar8[1];
          pcVar6 = pcVar10 + 2;
          pcVar10[1] = cVar1;
          if (cVar1 == '\0') break;
          pcVar10 = pcVar8 + 2;
          pcVar8 = pcVar9;
          pcVar9 = pcVar10;
        }
        else {
          iVar2 = mbschr(rl_completer_word_break_characters,(int)cVar1);
          pcVar7 = pcVar10 + 1;
          if (iVar2 != 0) {
            *pcVar10 = '\\';
            pcVar6 = pcVar10 + 2;
            pcVar10 = pcVar7;
            pcVar7 = pcVar6;
          }
          cVar1 = *pcVar8;
          pcVar6 = pcVar7;
          if ((pcVar3 == pcVar8) && (cVar1 == '~')) {
            iVar2 = file_exists(pcVar3);
            if (iVar2 == 0) {
              cVar1 = *pcVar3;
            }
            else {
              *pcVar10 = '\\';
              pcVar6 = pcVar7 + 1;
              cVar1 = *pcVar3;
              pcVar10 = pcVar7;
            }
          }
          *pcVar10 = cVar1;
        }
        cVar1 = pcVar8[1];
        pcVar8 = pcVar9;
        pcVar10 = pcVar6;
      }
      *pcVar6 = '\0';
      bVar11 = false;
      free(pcVar3);
      goto joined_r0x0009bac1;
    }
    __s = (char *)0x0;
    bVar11 = false;
  }
  pcVar3 = (char *)xmalloc(1);
  sVar5 = 1;
  *pcVar3 = '\0';
LAB_0009baf2:
  if (bVar11) {
    pcVar3[sVar5 - 1] = '\0';
  }
  free(__s);
  return pcVar3;
}

