
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

CURLcode Curl_get_pathname(char **cpp,char **path,char *homedir)

{
  char cVar1;
  uint uVar2;
  size_t sVar3;
  size_t sVar4;
  char *pcVar5;
  CURLcode CVar6;
  char *__dest;
  uint uVar7;
  char cVar8;
  int iVar9;
  char *pcVar10;
  char *local_30;
  int local_2c;
  
  pcVar10 = *cpp;
  if (*pcVar10 == '\0') {
    *cpp = (char *)0x0;
    *path = (char *)0x0;
    return CURLE_QUOTE_ERROR;
  }
  sVar3 = strspn(pcVar10," \t\r\n");
  pcVar10 = pcVar10 + sVar3;
  sVar3 = strlen(pcVar10);
  sVar4 = strlen(homedir);
  local_30 = (char *)(*Curl_cmalloc)(sVar3 + 2 + sVar4);
  *path = local_30;
  if (local_30 == (char *)0x0) {
    CVar6 = CURLE_OUT_OF_MEMORY;
  }
  else {
    cVar1 = *pcVar10;
    if ((cVar1 == '\"') || (cVar1 == '\'')) {
      pcVar5 = pcVar10 + 1;
      uVar7 = 0;
      local_2c = 0;
      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {
        if (cVar8 == '\0') goto LAB_0006cf5c;
        uVar2 = uVar7 + 1;
        if (cVar8 == '\\') {
          cVar8 = pcVar10[uVar7 + 2];
          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;
          uVar2 = uVar7 + 2;
        }
        uVar7 = uVar2;
        local_30[local_2c] = cVar8;
        local_2c = local_2c + 1;
        sVar3 = strlen(pcVar5);
        if (sVar3 < uVar7) goto LAB_0006cf01;
        local_30 = *path;
      }
      uVar7 = uVar7 + 1;
      local_30[local_2c] = '\0';
LAB_0006cf01:
      if (local_2c != 0) {
        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");
        *cpp = pcVar5 + uVar7 + sVar3;
        return CURLE_OK;
      }
      local_30 = *path;
LAB_0006cf5c:
      (*Curl_cfree)(local_30);
      *path = (char *)0x0;
      return CURLE_QUOTE_ERROR;
    }
    pcVar5 = strpbrk(pcVar10," \t\r\n");
    if (pcVar5 == (char *)0x0) {
      sVar3 = strlen(pcVar10);
      pcVar5 = pcVar10 + sVar3;
    }
    iVar9 = 0;
    sVar3 = strspn(pcVar5," \t\r\n");
    *cpp = pcVar5 + sVar3;
    __dest = *path;
    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {
      pcVar10 = pcVar10 + 3;
      strcpy(__dest,homedir);
      sVar3 = strlen(homedir);
      iVar9 = sVar3 + 1;
      (*path)[sVar3] = '/';
      (*path)[sVar3 + 1] = '\0';
      __dest = *path + iVar9;
    }
    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);
    CVar6 = CURLE_OK;
    (*path)[iVar9 + ((int)pcVar5 - (int)pcVar10)] = '\0';
  }
  return CVar6;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 FUN_0006cd60(int *param_1,int *param_2,char *param_3)

{
  char cVar1;
  uint uVar2;
  size_t sVar3;
  size_t sVar4;
  char *pcVar5;
  undefined4 uVar6;
  char *__dest;
  uint uVar7;
  char cVar8;
  int iVar9;
  char *pcVar10;
  int local_30;
  int local_2c;
  
  pcVar10 = (char *)*param_1;
  if (*pcVar10 == '\0') {
    *param_1 = 0;
    *param_2 = 0;
    return 0x15;
  }
  sVar3 = strspn(pcVar10," \t\r\n");
  pcVar10 = pcVar10 + sVar3;
  sVar3 = strlen(pcVar10);
  sVar4 = strlen(param_3);
  local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);
  *param_2 = local_30;
  if (local_30 == 0) {
    uVar6 = 0x1b;
  }
  else {
    cVar1 = *pcVar10;
    if ((cVar1 == '\"') || (cVar1 == '\'')) {
      pcVar5 = pcVar10 + 1;
      uVar7 = 0;
      local_2c = 0;
      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {
        if (cVar8 == '\0') goto LAB_0006cf5c;
        uVar2 = uVar7 + 1;
        if (cVar8 == '\\') {
          cVar8 = pcVar10[uVar7 + 2];
          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;
          uVar2 = uVar7 + 2;
        }
        uVar7 = uVar2;
        *(char *)(local_30 + local_2c) = cVar8;
        local_2c = local_2c + 1;
        sVar3 = strlen(pcVar5);
        if (sVar3 < uVar7) goto LAB_0006cf01;
        local_30 = *param_2;
      }
      uVar7 = uVar7 + 1;
      *(undefined1 *)(local_30 + local_2c) = 0;
LAB_0006cf01:
      if (local_2c != 0) {
        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");
        *param_1 = (int)(pcVar5 + uVar7 + sVar3);
        return 0;
      }
      local_30 = *param_2;
LAB_0006cf5c:
      (*(code *)PTR_free_000b106c)(local_30);
      *param_2 = 0;
      return 0x15;
    }
    pcVar5 = strpbrk(pcVar10," \t\r\n");
    if (pcVar5 == (char *)0x0) {
      sVar3 = strlen(pcVar10);
      pcVar5 = pcVar10 + sVar3;
    }
    iVar9 = 0;
    sVar3 = strspn(pcVar5," \t\r\n");
    *param_1 = (int)(pcVar5 + sVar3);
    __dest = (char *)*param_2;
    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {
      pcVar10 = pcVar10 + 3;
      strcpy(__dest,param_3);
      sVar3 = strlen(param_3);
      iVar9 = sVar3 + 1;
      *(undefined1 *)(*param_2 + sVar3) = 0x2f;
      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;
      __dest = (char *)(*param_2 + iVar9);
    }
    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);
    uVar6 = 0;
    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;
  }
  return uVar6;
}


CALL 0x0001ab33
ADD EAX,0x43a7b
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV ESI,dword ptr [EAX]
CMP byte ptr [ESI],0x0
JZ 0x0006cf38
SUB ESP,0x8
MOV EBP,dword ptr [ESP + 0x1c]
LEA EBX,[EBP + 0xfffd6c50]
MOV dword ptr [ESP + 0x24],EBX
PUSH EBX
MOV EBX,EBP
PUSH ESI
CALL 0x00019910
ADD ESI,EAX
MOV dword ptr [ESP],ESI
CALL 0x00018850
POP EDX
PUSH dword ptr [ESP + 0x54]
MOV EDI,EAX
CALL 0x00018850
LEA EAX,[EDI + EAX*0x1 + 0x2]
MOV dword ptr [ESP],EAX
LEA EAX,[EBP + 0x890]
CALL dword ptr [EAX]
MOV EBX,dword ptr [ESP + 0x54]
ADD ESP,0x10
MOV dword ptr [EBX],EAX
TEST EAX,EAX
JZ 0x0006d000
MOVZX ECX,byte ptr [ESI]
MOV byte ptr [ESP + 0x1b],CL
CMP CL,0x22
JZ 0x0006ce60
CMP CL,0x27
JZ 0x0006ce60
SUB ESP,0x8
PUSH dword ptr [ESP + 0x24]
PUSH ESI
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x00019b10
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0006cfe8
SUB ESP,0x8
MOV EBP,0x0
PUSH dword ptr [ESP + 0x24]
PUSH EDI
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x00019910
ADD ESP,0x10
MOV EBX,dword ptr [ESP + 0x40]
ADD EAX,EDI
MOV dword ptr [EBX],EAX
MOV EAX,dword ptr [ESP + 0x44]
CMP byte ptr [ESI],0x2f
MOV EAX,dword ptr [EAX]
JZ 0x0006cf90
SUB ESP,0x4
SUB EDI,ESI
PUSH EDI
PUSH ESI
PUSH EAX
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x00018750
MOV EAX,dword ptr [ESP + 0x54]
ADD ESP,0x10
ADD EDI,dword ptr [EAX]
XOR EAX,EAX
MOV byte ptr [EDI + EBP*0x1],0x0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EBX,EBX
ADD ESI,0x1
XOR ECX,ECX
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [ESP + 0x10],EBX
JMP 0x0006ceaa
MOV EAX,dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0xc]
SUB ESP,0xc
MOV byte ptr [EBX + EAX*0x1],DL
LEA EDI,[EAX + 0x1]
PUSH ESI
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x00018850
ADD ESP,0x10
CMP EAX,EBP
JC 0x0006cf01
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x10],EDI
MOV ECX,EBP
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0xc],EAX
MOVZX EDX,byte ptr [ESI + ECX*0x1]
CMP byte ptr [ESP + 0x1b],DL
JZ 0x0006cef0
TEST DL,DL
JZ 0x0006cf58
LEA EBP,[ECX + 0x1]
CMP DL,0x5c
JNZ 0x0006ce78
MOVZX EDX,byte ptr [ESI + ECX*0x1 + 0x1]
CMP DL,0x27
SETNZ AL
CMP DL,0x22
MOV EBP,EAX
SETNZ AL
MOV EDI,EAX
MOV EAX,EBP
MOV EBX,EDI
TEST AL,BL
JZ 0x0006cee6
CMP DL,0x5c
JNZ 0x0006cf58
LEA EBP,[ECX + 0x2]
JMP 0x0006ce78
MOV EBX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0xc]
LEA EBP,[ECX + 0x1]
MOV byte ptr [EAX + EBX*0x1],0x0
MOV EDI,EBX
TEST EDI,EDI
JZ 0x0006d010
SUB ESP,0x8
LEA EAX,[ESI + EBP*0x1]
PUSH dword ptr [ESP + 0x24]
PUSH EAX
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x00019910
ADD ESP,0x10
ADD EBP,EAX
MOV EAX,dword ptr [ESP + 0x40]
ADD ESI,EBP
MOV dword ptr [EAX],ESI
ADD ESP,0x2c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EAX],0x0
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [EAX],0x0
ADD ESP,0x2c
MOV EAX,0x15
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0xc]
SUB ESP,0xc
PUSH EAX
MOV EAX,dword ptr [ESP + 0x24]
LEA EAX,[EAX + 0x88c]
CALL dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x54]
ADD ESP,0x10
MOV dword ptr [EAX],0x0
ADD ESP,0x2c
MOV EAX,0x15
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP byte ptr [ESI + 0x1],0x7e
JNZ 0x0006ce37
CMP byte ptr [ESI + 0x2],0x2f
JNZ 0x0006ce37
SUB ESP,0x8
ADD ESI,0x3
PUSH dword ptr [ESP + 0x50]
PUSH EAX
MOV EBP,dword ptr [ESP + 0x24]
MOV EBX,EBP
CALL 0x00019d50
POP EAX
PUSH dword ptr [ESP + 0x54]
CALL 0x00018850
ADD ESP,0x10
MOV EBX,dword ptr [ESP + 0x44]
LEA EBP,[EAX + 0x1]
MOV EDX,dword ptr [EBX]
MOV byte ptr [EDX + EAX*0x1],0x2f
MOV EDX,dword ptr [EBX]
MOV byte ptr [EDX + EAX*0x1 + 0x1],0x0
MOV EAX,dword ptr [EBX]
ADD EAX,EBP
JMP 0x0006ce37
SUB ESP,0xc
PUSH ESI
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x00018850
ADD ESP,0x10
LEA EDI,[ESI + EAX*0x1]
JMP 0x0006ce07
MOV EAX,0x1b
JMP 0x0006ce57
MOV EAX,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [EAX]
JMP 0x0006cf5c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nundefined4 FUN_0006cd60(int *param_1,int *param_2,char *param_3)\n\n{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  int local_30;\n  int local_2c;\n  \n  pcVar10 = (char *)*param_1;\n  if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(param_3);\n  local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);\n  *param_2 = local_30;\n  if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }\n  return uVar6;\n}\n\n" comment (function_definition "undefined4 FUN_0006cd60(int *param_1,int *param_2,char *param_3)\n\n{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  int local_30;\n  int local_2c;\n  \n  pcVar10 = (char *)*param_1;\n  if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(param_3);\n  local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);\n  *param_2 = local_30;\n  if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }\n  return uVar6;\n}" type_identifier (function_declarator "FUN_0006cd60(int *param_1,int *param_2,char *param_3)" identifier (parameter_list "(int *param_1,int *param_2,char *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  int local_30;\n  int local_2c;\n  \n  pcVar10 = (char *)*param_1;\n  if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(param_3);\n  local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);\n  *param_2 = local_30;\n  if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }\n  return uVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "char cVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "pcVar10 = (char *)*param_1;" (assignment_expression "pcVar10 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }" if (parenthesized_expression "(*pcVar10 == '\0')" ( (binary_expression "*pcVar10 == '\0'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0x15;" return number_literal ;) })) (expression_statement "sVar3 = strspn(pcVar10," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar10," \t\r\n")" identifier = (call_expression "strspn(pcVar10," \t\r\n")" identifier (argument_list "(pcVar10," \t\r\n")" ( identifier , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement "pcVar10 = pcVar10 + sVar3;" (assignment_expression "pcVar10 = pcVar10 + sVar3" identifier = (binary_expression "pcVar10 + sVar3" identifier + identifier)) ;) (expression_statement "sVar3 = strlen(pcVar10);" (assignment_expression "sVar3 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(param_3);" (assignment_expression "sVar4 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);" (assignment_expression "local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4)" identifier = (call_expression "(*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4)" (parenthesized_expression "(*(code *)PTR_malloc_000b1070)" ( (pointer_expression "*(code *)PTR_malloc_000b1070" * (cast_expression "(code *)PTR_malloc_000b1070" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sVar3 + 2 + sVar4)" ( (binary_expression "sVar3 + 2 + sVar4" (binary_expression "sVar3 + 2" identifier + number_literal) + identifier) )))) ;) (expression_statement "*param_2 = local_30;" (assignment_expression "*param_2 = local_30" (pointer_expression "*param_2" * identifier) = identifier) ;) (if_statement "if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = 0x1b;\n  }" { (expression_statement "uVar6 = 0x1b;" (assignment_expression "uVar6 = 0x1b" identifier = number_literal) ;) }) (else_clause "else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }" else (compound_statement "{\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }" { (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (if_statement "if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }" if (parenthesized_expression "((cVar1 == '\"') || (cVar1 == '\''))" ( (binary_expression "(cVar1 == '\"') || (cVar1 == '\'')" (parenthesized_expression "(cVar1 == '\"')" ( (binary_expression "cVar1 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) ))) )) (compound_statement "{\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }" { (expression_statement "pcVar5 = pcVar10 + 1;" (assignment_expression "pcVar5 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (while_statement "while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }" while (parenthesized_expression "(cVar8 = pcVar5[uVar7], cVar1 != cVar8)" ( (comma_expression "cVar8 = pcVar5[uVar7], cVar1 != cVar8" (assignment_expression "cVar8 = pcVar5[uVar7]" identifier = (subscript_expression "pcVar5[uVar7]" identifier [ identifier ])) , (binary_expression "cVar1 != cVar8" identifier != identifier)) )) (compound_statement "{\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }" { (if_statement "if (cVar8 == '\0') goto LAB_0006cf5c;" if (parenthesized_expression "(cVar8 == '\0')" ( (binary_expression "cVar8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0006cf5c;" goto statement_identifier ;)) (expression_statement "uVar2 = uVar7 + 1;" (assignment_expression "uVar2 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (if_statement "if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }" if (parenthesized_expression "(cVar8 == '\\')" ( (binary_expression "cVar8 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }" { (expression_statement "cVar8 = pcVar10[uVar7 + 2];" (assignment_expression "cVar8 = pcVar10[uVar7 + 2]" identifier = (subscript_expression "pcVar10[uVar7 + 2]" identifier [ (binary_expression "uVar7 + 2" identifier + number_literal) ])) ;) (if_statement "if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;" if (parenthesized_expression "((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\'))" ( (binary_expression "(cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')" (parenthesized_expression "(cVar8 != '\'' && cVar8 != '\"')" ( (binary_expression "cVar8 != '\'' && cVar8 != '\"'" (binary_expression "cVar8 != '\''" identifier != (char_literal "'\''" ' escape_sequence ')) && (binary_expression "cVar8 != '\"'" identifier != (char_literal "'\"'" ' escape_sequence '))) )) && (parenthesized_expression "(cVar8 != '\\')" ( (binary_expression "cVar8 != '\\'" identifier != (char_literal "'\\'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0006cf5c;" goto statement_identifier ;)) (expression_statement "uVar2 = uVar7 + 2;" (assignment_expression "uVar2 = uVar7 + 2" identifier = (binary_expression "uVar7 + 2" identifier + number_literal)) ;) })) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) (expression_statement "*(char *)(local_30 + local_2c) = cVar8;" (assignment_expression "*(char *)(local_30 + local_2c) = cVar8" (pointer_expression "*(char *)(local_30 + local_2c)" * (cast_expression "(char *)(local_30 + local_2c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30 + local_2c)" ( (binary_expression "local_30 + local_2c" identifier + identifier) )))) = identifier) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (sVar3 < uVar7) goto LAB_0006cf01;" if (parenthesized_expression "(sVar3 < uVar7)" ( (binary_expression "sVar3 < uVar7" identifier < identifier) )) (goto_statement "goto LAB_0006cf01;" goto statement_identifier ;)) (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(local_30 + local_2c) = 0;" (assignment_expression "*(undefined1 *)(local_30 + local_2c) = 0" (pointer_expression "*(undefined1 *)(local_30 + local_2c)" * (cast_expression "(undefined1 *)(local_30 + local_2c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30 + local_2c)" ( (binary_expression "local_30 + local_2c" identifier + identifier) )))) = number_literal) ;) (labeled_statement "LAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }" statement_identifier : (if_statement "if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }" if (parenthesized_expression "(local_2c != 0)" ( (binary_expression "local_2c != 0" identifier != number_literal) )) (compound_statement "{\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }" { (expression_statement "sVar3 = strspn(pcVar5 + uVar7," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar5 + uVar7," \t\r\n")" identifier = (call_expression "strspn(pcVar5 + uVar7," \t\r\n")" identifier (argument_list "(pcVar5 + uVar7," \t\r\n")" ( (binary_expression "pcVar5 + uVar7" identifier + identifier) , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement "*param_1 = (int)(pcVar5 + uVar7 + sVar3);" (assignment_expression "*param_1 = (int)(pcVar5 + uVar7 + sVar3)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar5 + uVar7 + sVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar5 + uVar7 + sVar3)" ( (binary_expression "pcVar5 + uVar7 + sVar3" (binary_expression "pcVar5 + uVar7" identifier + identifier) + identifier) )))) ;) (return_statement "return 0;" return number_literal ;) }))) (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (labeled_statement "LAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);" statement_identifier : (expression_statement "(*(code *)PTR_free_000b106c)(local_30);" (call_expression "(*(code *)PTR_free_000b106c)(local_30)" (parenthesized_expression "(*(code *)PTR_free_000b106c)" ( (pointer_expression "*(code *)PTR_free_000b106c" * (cast_expression "(code *)PTR_free_000b106c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier ))) ;)) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0x15;" return number_literal ;) })) (expression_statement "pcVar5 = strpbrk(pcVar10," \t\r\n");" (assignment_expression "pcVar5 = strpbrk(pcVar10," \t\r\n")" identifier = (call_expression "strpbrk(pcVar10," \t\r\n")" identifier (argument_list "(pcVar10," \t\r\n")" ( identifier , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }" { (expression_statement "sVar3 = strlen(pcVar10);" (assignment_expression "sVar3 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "pcVar5 = pcVar10 + sVar3;" (assignment_expression "pcVar5 = pcVar10 + sVar3" identifier = (binary_expression "pcVar10 + sVar3" identifier + identifier)) ;) })) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "sVar3 = strspn(pcVar5," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar5," \t\r\n")" identifier = (call_expression "strspn(pcVar5," \t\r\n")" identifier (argument_list "(pcVar5," \t\r\n")" ( identifier , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement "*param_1 = (int)(pcVar5 + sVar3);" (assignment_expression "*param_1 = (int)(pcVar5 + sVar3)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar5 + sVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar5 + sVar3)" ( (binary_expression "pcVar5 + sVar3" identifier + identifier) )))) ;) (expression_statement "__dest = (char *)*param_2;" (assignment_expression "__dest = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }" if (parenthesized_expression "(((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/'))" ( (binary_expression "((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')" (parenthesized_expression "((*pcVar10 == '/') && (pcVar10[1] == '~'))" ( (binary_expression "(*pcVar10 == '/') && (pcVar10[1] == '~')" (parenthesized_expression "(*pcVar10 == '/')" ( (binary_expression "*pcVar10 == '/'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(pcVar10[1] == '~')" ( (binary_expression "pcVar10[1] == '~'" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) == (char_literal "'~'" ' character ')) ))) )) && (parenthesized_expression "(pcVar10[2] == '/')" ( (binary_expression "pcVar10[2] == '/'" (subscript_expression "pcVar10[2]" identifier [ number_literal ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }" { (expression_statement "pcVar10 = pcVar10 + 3;" (assignment_expression "pcVar10 = pcVar10 + 3" identifier = (binary_expression "pcVar10 + 3" identifier + number_literal)) ;) (expression_statement "strcpy(__dest,param_3);" (call_expression "strcpy(__dest,param_3)" identifier (argument_list "(__dest,param_3)" ( identifier , identifier ))) ;) (expression_statement "sVar3 = strlen(param_3);" (assignment_expression "sVar3 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar9 = sVar3 + 1;" (assignment_expression "iVar9 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_2 + sVar3) = 0x2f;" (assignment_expression "*(undefined1 *)(*param_2 + sVar3) = 0x2f" (pointer_expression "*(undefined1 *)(*param_2 + sVar3)" * (cast_expression "(undefined1 *)(*param_2 + sVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + sVar3)" ( (binary_expression "*param_2 + sVar3" (pointer_expression "*param_2" * identifier) + identifier) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*param_2 + 1 + sVar3) = 0;" (assignment_expression "*(undefined1 *)(*param_2 + 1 + sVar3) = 0" (pointer_expression "*(undefined1 *)(*param_2 + 1 + sVar3)" * (cast_expression "(undefined1 *)(*param_2 + 1 + sVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 1 + sVar3)" ( (binary_expression "*param_2 + 1 + sVar3" (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "__dest = (char *)(*param_2 + iVar9);" (assignment_expression "__dest = (char *)(*param_2 + iVar9)" identifier = (cast_expression "(char *)(*param_2 + iVar9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + iVar9)" ( (binary_expression "*param_2 + iVar9" (pointer_expression "*param_2" * identifier) + identifier) )))) ;) })) (expression_statement "memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);" (call_expression "memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10)" identifier (argument_list "(__dest,pcVar10,(int)pcVar5 - (int)pcVar10)" ( identifier , identifier , (binary_expression "(int)pcVar5 - (int)pcVar10" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;" (assignment_expression "*(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0" (pointer_expression "*(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9)" * (cast_expression "(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9)" ( (binary_expression "((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9" (binary_expression "((int)pcVar5 - (int)pcVar10) + *param_2" (parenthesized_expression "((int)pcVar5 - (int)pcVar10)" ( (binary_expression "(int)pcVar5 - (int)pcVar10" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier)) )) + (pointer_expression "*param_2" * identifier)) + identifier) )))) = number_literal) ;) }))) (return_statement "return uVar6;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nCURLcode Curl_get_pathname(char **cpp,char **path,char *homedir)\n\n{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  CURLcode CVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  char *local_30;\n  int local_2c;\n  \n  pcVar10 = *cpp;\n  if (*pcVar10 == '\0') {\n    *cpp = (char *)0x0;\n    *path = (char *)0x0;\n    return CURLE_QUOTE_ERROR;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(homedir);\n  local_30 = (char *)(*Curl_cmalloc)(sVar3 + 2 + sVar4);\n  *path = local_30;\n  if (local_30 == (char *)0x0) {\n    CVar6 = CURLE_OUT_OF_MEMORY;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        local_30[local_2c] = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *path;\n      }\n      uVar7 = uVar7 + 1;\n      local_30[local_2c] = '\0';\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }\n      local_30 = *path;\nLAB_0006cf5c:\n      (*Curl_cfree)(local_30);\n      *path = (char *)0x0;\n      return CURLE_QUOTE_ERROR;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *cpp = pcVar5 + sVar3;\n    __dest = *path;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,homedir);\n      sVar3 = strlen(homedir);\n      iVar9 = sVar3 + 1;\n      (*path)[sVar3] = '/';\n      (*path)[sVar3 + 1] = '\0';\n      __dest = *path + iVar9;\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    CVar6 = CURLE_OK;\n    (*path)[iVar9 + ((int)pcVar5 - (int)pcVar10)] = '\0';\n  }\n  return CVar6;\n}\n\n" comment comment (function_definition "CURLcode Curl_get_pathname(char **cpp,char **path,char *homedir)\n\n{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  CURLcode CVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  char *local_30;\n  int local_2c;\n  \n  pcVar10 = *cpp;\n  if (*pcVar10 == '\0') {\n    *cpp = (char *)0x0;\n    *path = (char *)0x0;\n    return CURLE_QUOTE_ERROR;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(homedir);\n  local_30 = (char *)(*Curl_cmalloc)(sVar3 + 2 + sVar4);\n  *path = local_30;\n  if (local_30 == (char *)0x0) {\n    CVar6 = CURLE_OUT_OF_MEMORY;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        local_30[local_2c] = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *path;\n      }\n      uVar7 = uVar7 + 1;\n      local_30[local_2c] = '\0';\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }\n      local_30 = *path;\nLAB_0006cf5c:\n      (*Curl_cfree)(local_30);\n      *path = (char *)0x0;\n      return CURLE_QUOTE_ERROR;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *cpp = pcVar5 + sVar3;\n    __dest = *path;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,homedir);\n      sVar3 = strlen(homedir);\n      iVar9 = sVar3 + 1;\n      (*path)[sVar3] = '/';\n      (*path)[sVar3 + 1] = '\0';\n      __dest = *path + iVar9;\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    CVar6 = CURLE_OK;\n    (*path)[iVar9 + ((int)pcVar5 - (int)pcVar10)] = '\0';\n  }\n  return CVar6;\n}" type_identifier (function_declarator "Curl_get_pathname(char **cpp,char **path,char *homedir)" identifier (parameter_list "(char **cpp,char **path,char *homedir)" ( (parameter_declaration "char **cpp" primitive_type (pointer_declarator "**cpp" * (pointer_declarator "*cpp" * identifier))) , (parameter_declaration "char **path" primitive_type (pointer_declarator "**path" * (pointer_declarator "*path" * identifier))) , (parameter_declaration "char *homedir" primitive_type (pointer_declarator "*homedir" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  CURLcode CVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  char *local_30;\n  int local_2c;\n  \n  pcVar10 = *cpp;\n  if (*pcVar10 == '\0') {\n    *cpp = (char *)0x0;\n    *path = (char *)0x0;\n    return CURLE_QUOTE_ERROR;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(homedir);\n  local_30 = (char *)(*Curl_cmalloc)(sVar3 + 2 + sVar4);\n  *path = local_30;\n  if (local_30 == (char *)0x0) {\n    CVar6 = CURLE_OUT_OF_MEMORY;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        local_30[local_2c] = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *path;\n      }\n      uVar7 = uVar7 + 1;\n      local_30[local_2c] = '\0';\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }\n      local_30 = *path;\nLAB_0006cf5c:\n      (*Curl_cfree)(local_30);\n      *path = (char *)0x0;\n      return CURLE_QUOTE_ERROR;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *cpp = pcVar5 + sVar3;\n    __dest = *path;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,homedir);\n      sVar3 = strlen(homedir);\n      iVar9 = sVar3 + 1;\n      (*path)[sVar3] = '/';\n      (*path)[sVar3 + 1] = '\0';\n      __dest = *path + iVar9;\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    CVar6 = CURLE_OK;\n    (*path)[iVar9 + ((int)pcVar5 - (int)pcVar10)] = '\0';\n  }\n  return CVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "CURLcode CVar6;" type_identifier identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "char cVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "char *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "pcVar10 = *cpp;" (assignment_expression "pcVar10 = *cpp" identifier = (pointer_expression "*cpp" * identifier)) ;) (if_statement "if (*pcVar10 == '\0') {\n    *cpp = (char *)0x0;\n    *path = (char *)0x0;\n    return CURLE_QUOTE_ERROR;\n  }" if (parenthesized_expression "(*pcVar10 == '\0')" ( (binary_expression "*pcVar10 == '\0'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *cpp = (char *)0x0;\n    *path = (char *)0x0;\n    return CURLE_QUOTE_ERROR;\n  }" { (expression_statement "*cpp = (char *)0x0;" (assignment_expression "*cpp = (char *)0x0" (pointer_expression "*cpp" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*path = (char *)0x0;" (assignment_expression "*path = (char *)0x0" (pointer_expression "*path" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return CURLE_QUOTE_ERROR;" return identifier ;) })) (expression_statement "sVar3 = strspn(pcVar10," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar10," \t\r\n")" identifier = (call_expression "strspn(pcVar10," \t\r\n")" identifier (argument_list "(pcVar10," \t\r\n")" ( identifier , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement "pcVar10 = pcVar10 + sVar3;" (assignment_expression "pcVar10 = pcVar10 + sVar3" identifier = (binary_expression "pcVar10 + sVar3" identifier + identifier)) ;) (expression_statement "sVar3 = strlen(pcVar10);" (assignment_expression "sVar3 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(homedir);" (assignment_expression "sVar4 = strlen(homedir)" identifier = (call_expression "strlen(homedir)" identifier (argument_list "(homedir)" ( identifier )))) ;) (expression_statement "local_30 = (char *)(*Curl_cmalloc)(sVar3 + 2 + sVar4);" (assignment_expression "local_30 = (char *)(*Curl_cmalloc)(sVar3 + 2 + sVar4)" identifier = (cast_expression "(char *)(*Curl_cmalloc)(sVar3 + 2 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*Curl_cmalloc)(sVar3 + 2 + sVar4)" (parenthesized_expression "(*Curl_cmalloc)" ( (pointer_expression "*Curl_cmalloc" * identifier) )) (argument_list "(sVar3 + 2 + sVar4)" ( (binary_expression "sVar3 + 2 + sVar4" (binary_expression "sVar3 + 2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "*path = local_30;" (assignment_expression "*path = local_30" (pointer_expression "*path" * identifier) = identifier) ;) (if_statement "if (local_30 == (char *)0x0) {\n    CVar6 = CURLE_OUT_OF_MEMORY;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        local_30[local_2c] = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *path;\n      }\n      uVar7 = uVar7 + 1;\n      local_30[local_2c] = '\0';\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }\n      local_30 = *path;\nLAB_0006cf5c:\n      (*Curl_cfree)(local_30);\n      *path = (char *)0x0;\n      return CURLE_QUOTE_ERROR;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *cpp = pcVar5 + sVar3;\n    __dest = *path;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,homedir);\n      sVar3 = strlen(homedir);\n      iVar9 = sVar3 + 1;\n      (*path)[sVar3] = '/';\n      (*path)[sVar3 + 1] = '\0';\n      __dest = *path + iVar9;\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    CVar6 = CURLE_OK;\n    (*path)[iVar9 + ((int)pcVar5 - (int)pcVar10)] = '\0';\n  }" if (parenthesized_expression "(local_30 == (char *)0x0)" ( (binary_expression "local_30 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    CVar6 = CURLE_OUT_OF_MEMORY;\n  }" { (expression_statement "CVar6 = CURLE_OUT_OF_MEMORY;" (assignment_expression "CVar6 = CURLE_OUT_OF_MEMORY" identifier = identifier) ;) }) (else_clause "else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        local_30[local_2c] = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *path;\n      }\n      uVar7 = uVar7 + 1;\n      local_30[local_2c] = '\0';\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }\n      local_30 = *path;\nLAB_0006cf5c:\n      (*Curl_cfree)(local_30);\n      *path = (char *)0x0;\n      return CURLE_QUOTE_ERROR;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *cpp = pcVar5 + sVar3;\n    __dest = *path;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,homedir);\n      sVar3 = strlen(homedir);\n      iVar9 = sVar3 + 1;\n      (*path)[sVar3] = '/';\n      (*path)[sVar3 + 1] = '\0';\n      __dest = *path + iVar9;\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    CVar6 = CURLE_OK;\n    (*path)[iVar9 + ((int)pcVar5 - (int)pcVar10)] = '\0';\n  }" else (compound_statement "{\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        local_30[local_2c] = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *path;\n      }\n      uVar7 = uVar7 + 1;\n      local_30[local_2c] = '\0';\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }\n      local_30 = *path;\nLAB_0006cf5c:\n      (*Curl_cfree)(local_30);\n      *path = (char *)0x0;\n      return CURLE_QUOTE_ERROR;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *cpp = pcVar5 + sVar3;\n    __dest = *path;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,homedir);\n      sVar3 = strlen(homedir);\n      iVar9 = sVar3 + 1;\n      (*path)[sVar3] = '/';\n      (*path)[sVar3 + 1] = '\0';\n      __dest = *path + iVar9;\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    CVar6 = CURLE_OK;\n    (*path)[iVar9 + ((int)pcVar5 - (int)pcVar10)] = '\0';\n  }" { (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (if_statement "if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        local_30[local_2c] = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *path;\n      }\n      uVar7 = uVar7 + 1;\n      local_30[local_2c] = '\0';\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }\n      local_30 = *path;\nLAB_0006cf5c:\n      (*Curl_cfree)(local_30);\n      *path = (char *)0x0;\n      return CURLE_QUOTE_ERROR;\n    }" if (parenthesized_expression "((cVar1 == '\"') || (cVar1 == '\''))" ( (binary_expression "(cVar1 == '\"') || (cVar1 == '\'')" (parenthesized_expression "(cVar1 == '\"')" ( (binary_expression "cVar1 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) ))) )) (compound_statement "{\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        local_30[local_2c] = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *path;\n      }\n      uVar7 = uVar7 + 1;\n      local_30[local_2c] = '\0';\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }\n      local_30 = *path;\nLAB_0006cf5c:\n      (*Curl_cfree)(local_30);\n      *path = (char *)0x0;\n      return CURLE_QUOTE_ERROR;\n    }" { (expression_statement "pcVar5 = pcVar10 + 1;" (assignment_expression "pcVar5 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (while_statement "while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        local_30[local_2c] = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *path;\n      }" while (parenthesized_expression "(cVar8 = pcVar5[uVar7], cVar1 != cVar8)" ( (comma_expression "cVar8 = pcVar5[uVar7], cVar1 != cVar8" (assignment_expression "cVar8 = pcVar5[uVar7]" identifier = (subscript_expression "pcVar5[uVar7]" identifier [ identifier ])) , (binary_expression "cVar1 != cVar8" identifier != identifier)) )) (compound_statement "{\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        local_30[local_2c] = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *path;\n      }" { (if_statement "if (cVar8 == '\0') goto LAB_0006cf5c;" if (parenthesized_expression "(cVar8 == '\0')" ( (binary_expression "cVar8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0006cf5c;" goto statement_identifier ;)) (expression_statement "uVar2 = uVar7 + 1;" (assignment_expression "uVar2 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (if_statement "if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }" if (parenthesized_expression "(cVar8 == '\\')" ( (binary_expression "cVar8 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }" { (expression_statement "cVar8 = pcVar10[uVar7 + 2];" (assignment_expression "cVar8 = pcVar10[uVar7 + 2]" identifier = (subscript_expression "pcVar10[uVar7 + 2]" identifier [ (binary_expression "uVar7 + 2" identifier + number_literal) ])) ;) (if_statement "if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;" if (parenthesized_expression "((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\'))" ( (binary_expression "(cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')" (parenthesized_expression "(cVar8 != '\'' && cVar8 != '\"')" ( (binary_expression "cVar8 != '\'' && cVar8 != '\"'" (binary_expression "cVar8 != '\''" identifier != (char_literal "'\''" ' escape_sequence ')) && (binary_expression "cVar8 != '\"'" identifier != (char_literal "'\"'" ' escape_sequence '))) )) && (parenthesized_expression "(cVar8 != '\\')" ( (binary_expression "cVar8 != '\\'" identifier != (char_literal "'\\'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0006cf5c;" goto statement_identifier ;)) (expression_statement "uVar2 = uVar7 + 2;" (assignment_expression "uVar2 = uVar7 + 2" identifier = (binary_expression "uVar7 + 2" identifier + number_literal)) ;) })) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) (expression_statement "local_30[local_2c] = cVar8;" (assignment_expression "local_30[local_2c] = cVar8" (subscript_expression "local_30[local_2c]" identifier [ identifier ]) = identifier) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (sVar3 < uVar7) goto LAB_0006cf01;" if (parenthesized_expression "(sVar3 < uVar7)" ( (binary_expression "sVar3 < uVar7" identifier < identifier) )) (goto_statement "goto LAB_0006cf01;" goto statement_identifier ;)) (expression_statement "local_30 = *path;" (assignment_expression "local_30 = *path" identifier = (pointer_expression "*path" * identifier)) ;) })) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (expression_statement "local_30[local_2c] = '\0';" (assignment_expression "local_30[local_2c] = '\0'" (subscript_expression "local_30[local_2c]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (labeled_statement "LAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }" statement_identifier : (if_statement "if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }" if (parenthesized_expression "(local_2c != 0)" ( (binary_expression "local_2c != 0" identifier != number_literal) )) (compound_statement "{\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *cpp = pcVar5 + uVar7 + sVar3;\n        return CURLE_OK;\n      }" { (expression_statement "sVar3 = strspn(pcVar5 + uVar7," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar5 + uVar7," \t\r\n")" identifier = (call_expression "strspn(pcVar5 + uVar7," \t\r\n")" identifier (argument_list "(pcVar5 + uVar7," \t\r\n")" ( (binary_expression "pcVar5 + uVar7" identifier + identifier) , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement "*cpp = pcVar5 + uVar7 + sVar3;" (assignment_expression "*cpp = pcVar5 + uVar7 + sVar3" (pointer_expression "*cpp" * identifier) = (binary_expression "pcVar5 + uVar7 + sVar3" (binary_expression "pcVar5 + uVar7" identifier + identifier) + identifier)) ;) (return_statement "return CURLE_OK;" return identifier ;) }))) (expression_statement "local_30 = *path;" (assignment_expression "local_30 = *path" identifier = (pointer_expression "*path" * identifier)) ;) (labeled_statement "LAB_0006cf5c:\n      (*Curl_cfree)(local_30);" statement_identifier : (expression_statement "(*Curl_cfree)(local_30);" (call_expression "(*Curl_cfree)(local_30)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(local_30)" ( identifier ))) ;)) (expression_statement "*path = (char *)0x0;" (assignment_expression "*path = (char *)0x0" (pointer_expression "*path" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return CURLE_QUOTE_ERROR;" return identifier ;) })) (expression_statement "pcVar5 = strpbrk(pcVar10," \t\r\n");" (assignment_expression "pcVar5 = strpbrk(pcVar10," \t\r\n")" identifier = (call_expression "strpbrk(pcVar10," \t\r\n")" identifier (argument_list "(pcVar10," \t\r\n")" ( identifier , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }" { (expression_statement "sVar3 = strlen(pcVar10);" (assignment_expression "sVar3 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "pcVar5 = pcVar10 + sVar3;" (assignment_expression "pcVar5 = pcVar10 + sVar3" identifier = (binary_expression "pcVar10 + sVar3" identifier + identifier)) ;) })) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "sVar3 = strspn(pcVar5," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar5," \t\r\n")" identifier = (call_expression "strspn(pcVar5," \t\r\n")" identifier (argument_list "(pcVar5," \t\r\n")" ( identifier , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement "*cpp = pcVar5 + sVar3;" (assignment_expression "*cpp = pcVar5 + sVar3" (pointer_expression "*cpp" * identifier) = (binary_expression "pcVar5 + sVar3" identifier + identifier)) ;) (expression_statement "__dest = *path;" (assignment_expression "__dest = *path" identifier = (pointer_expression "*path" * identifier)) ;) (if_statement "if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,homedir);\n      sVar3 = strlen(homedir);\n      iVar9 = sVar3 + 1;\n      (*path)[sVar3] = '/';\n      (*path)[sVar3 + 1] = '\0';\n      __dest = *path + iVar9;\n    }" if (parenthesized_expression "(((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/'))" ( (binary_expression "((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')" (parenthesized_expression "((*pcVar10 == '/') && (pcVar10[1] == '~'))" ( (binary_expression "(*pcVar10 == '/') && (pcVar10[1] == '~')" (parenthesized_expression "(*pcVar10 == '/')" ( (binary_expression "*pcVar10 == '/'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(pcVar10[1] == '~')" ( (binary_expression "pcVar10[1] == '~'" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) == (char_literal "'~'" ' character ')) ))) )) && (parenthesized_expression "(pcVar10[2] == '/')" ( (binary_expression "pcVar10[2] == '/'" (subscript_expression "pcVar10[2]" identifier [ number_literal ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,homedir);\n      sVar3 = strlen(homedir);\n      iVar9 = sVar3 + 1;\n      (*path)[sVar3] = '/';\n      (*path)[sVar3 + 1] = '\0';\n      __dest = *path + iVar9;\n    }" { (expression_statement "pcVar10 = pcVar10 + 3;" (assignment_expression "pcVar10 = pcVar10 + 3" identifier = (binary_expression "pcVar10 + 3" identifier + number_literal)) ;) (expression_statement "strcpy(__dest,homedir);" (call_expression "strcpy(__dest,homedir)" identifier (argument_list "(__dest,homedir)" ( identifier , identifier ))) ;) (expression_statement "sVar3 = strlen(homedir);" (assignment_expression "sVar3 = strlen(homedir)" identifier = (call_expression "strlen(homedir)" identifier (argument_list "(homedir)" ( identifier )))) ;) (expression_statement "iVar9 = sVar3 + 1;" (assignment_expression "iVar9 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "(*path)[sVar3] = '/';" (assignment_expression "(*path)[sVar3] = '/'" (subscript_expression "(*path)[sVar3]" (parenthesized_expression "(*path)" ( (pointer_expression "*path" * identifier) )) [ identifier ]) = (char_literal "'/'" ' character ')) ;) (expression_statement "(*path)[sVar3 + 1] = '\0';" (assignment_expression "(*path)[sVar3 + 1] = '\0'" (subscript_expression "(*path)[sVar3 + 1]" (parenthesized_expression "(*path)" ( (pointer_expression "*path" * identifier) )) [ (binary_expression "sVar3 + 1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "__dest = *path + iVar9;" (assignment_expression "__dest = *path + iVar9" identifier = (binary_expression "*path + iVar9" (pointer_expression "*path" * identifier) + identifier)) ;) })) (expression_statement "memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);" (call_expression "memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10)" identifier (argument_list "(__dest,pcVar10,(int)pcVar5 - (int)pcVar10)" ( identifier , identifier , (binary_expression "(int)pcVar5 - (int)pcVar10" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "CVar6 = CURLE_OK;" (assignment_expression "CVar6 = CURLE_OK" identifier = identifier) ;) (expression_statement "(*path)[iVar9 + ((int)pcVar5 - (int)pcVar10)] = '\0';" (assignment_expression "(*path)[iVar9 + ((int)pcVar5 - (int)pcVar10)] = '\0'" (subscript_expression "(*path)[iVar9 + ((int)pcVar5 - (int)pcVar10)]" (parenthesized_expression "(*path)" ( (pointer_expression "*path" * identifier) )) [ (binary_expression "iVar9 + ((int)pcVar5 - (int)pcVar10)" identifier + (parenthesized_expression "((int)pcVar5 - (int)pcVar10)" ( (binary_expression "(int)pcVar5 - (int)pcVar10" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (return_statement "return CVar6;" return identifier ;) })))
(translation_unit "undefined4 FUN_0006cd60(int *param_1,int *param_2,char *param_3)\n\n{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  int local_30;\n  int local_2c;\n  \n  pcVar10 = (char *)*param_1;\n  if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(param_3);\n  local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);\n  *param_2 = local_30;\n  if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }\n  return uVar6;\n}\n\n" (function_definition "undefined4 FUN_0006cd60(int *param_1,int *param_2,char *param_3)\n\n{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  int local_30;\n  int local_2c;\n  \n  pcVar10 = (char *)*param_1;\n  if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(param_3);\n  local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);\n  *param_2 = local_30;\n  if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }\n  return uVar6;\n}" type_identifier (function_declarator "FUN_0006cd60(int *param_1,int *param_2,char *param_3)" identifier (parameter_list "(int *param_1,int *param_2,char *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  int local_30;\n  int local_2c;\n  \n  pcVar10 = (char *)*param_1;\n  if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(param_3);\n  local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);\n  *param_2 = local_30;\n  if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }\n  return uVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "char cVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "pcVar10 = (char *)*param_1;" (assignment_expression "pcVar10 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }" if (parenthesized_expression "(*pcVar10 == '\0')" ( (binary_expression "*pcVar10 == '\0'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0x15;" return number_literal ;) })) (expression_statement "sVar3 = strspn(pcVar10," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar10," \t\r\n")" identifier = (call_expression "strspn(pcVar10," \t\r\n")" identifier (argument_list "(pcVar10," \t\r\n")" ( identifier , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement "pcVar10 = pcVar10 + sVar3;" (assignment_expression "pcVar10 = pcVar10 + sVar3" identifier = (binary_expression "pcVar10 + sVar3" identifier + identifier)) ;) (expression_statement "sVar3 = strlen(pcVar10);" (assignment_expression "sVar3 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(param_3);" (assignment_expression "sVar4 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);" (assignment_expression "local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4)" identifier = (call_expression "(*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4)" (parenthesized_expression "(*(code *)PTR_malloc_000b1070)" ( (pointer_expression "*(code *)PTR_malloc_000b1070" * (cast_expression "(code *)PTR_malloc_000b1070" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sVar3 + 2 + sVar4)" ( (binary_expression "sVar3 + 2 + sVar4" (binary_expression "sVar3 + 2" identifier + number_literal) + identifier) )))) ;) (expression_statement "*param_2 = local_30;" (assignment_expression "*param_2 = local_30" (pointer_expression "*param_2" * identifier) = identifier) ;) (if_statement "if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = 0x1b;\n  }" { (expression_statement "uVar6 = 0x1b;" (assignment_expression "uVar6 = 0x1b" identifier = number_literal) ;) }) (else_clause "else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }" else (compound_statement "{\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }" { (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (if_statement "if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }" if (parenthesized_expression "((cVar1 == '\"') || (cVar1 == '\''))" ( (binary_expression "(cVar1 == '\"') || (cVar1 == '\'')" (parenthesized_expression "(cVar1 == '\"')" ( (binary_expression "cVar1 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) ))) )) (compound_statement "{\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }" { (expression_statement "pcVar5 = pcVar10 + 1;" (assignment_expression "pcVar5 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (while_statement "while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }" while (parenthesized_expression "(cVar8 = pcVar5[uVar7], cVar1 != cVar8)" ( (comma_expression "cVar8 = pcVar5[uVar7], cVar1 != cVar8" (assignment_expression "cVar8 = pcVar5[uVar7]" identifier = (subscript_expression "pcVar5[uVar7]" identifier [ identifier ])) , (binary_expression "cVar1 != cVar8" identifier != identifier)) )) (compound_statement "{\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }" { (if_statement "if (cVar8 == '\0') goto LAB_0006cf5c;" if (parenthesized_expression "(cVar8 == '\0')" ( (binary_expression "cVar8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0006cf5c;" goto statement_identifier ;)) (expression_statement "uVar2 = uVar7 + 1;" (assignment_expression "uVar2 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (if_statement "if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }" if (parenthesized_expression "(cVar8 == '\\')" ( (binary_expression "cVar8 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }" { (expression_statement "cVar8 = pcVar10[uVar7 + 2];" (assignment_expression "cVar8 = pcVar10[uVar7 + 2]" identifier = (subscript_expression "pcVar10[uVar7 + 2]" identifier [ (binary_expression "uVar7 + 2" identifier + number_literal) ])) ;) (if_statement "if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;" if (parenthesized_expression "((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\'))" ( (binary_expression "(cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')" (parenthesized_expression "(cVar8 != '\'' && cVar8 != '\"')" ( (binary_expression "cVar8 != '\'' && cVar8 != '\"'" (binary_expression "cVar8 != '\''" identifier != (char_literal "'\''" ' escape_sequence ')) && (binary_expression "cVar8 != '\"'" identifier != (char_literal "'\"'" ' escape_sequence '))) )) && (parenthesized_expression "(cVar8 != '\\')" ( (binary_expression "cVar8 != '\\'" identifier != (char_literal "'\\'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0006cf5c;" goto statement_identifier ;)) (expression_statement "uVar2 = uVar7 + 2;" (assignment_expression "uVar2 = uVar7 + 2" identifier = (binary_expression "uVar7 + 2" identifier + number_literal)) ;) })) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" identifier = identifier) ;) (expression_statement "*(char *)(local_30 + local_2c) = cVar8;" (assignment_expression "*(char *)(local_30 + local_2c) = cVar8" (pointer_expression "*(char *)(local_30 + local_2c)" * (cast_expression "(char *)(local_30 + local_2c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30 + local_2c)" ( (binary_expression "local_30 + local_2c" identifier + identifier) )))) = identifier) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (sVar3 < uVar7) goto LAB_0006cf01;" if (parenthesized_expression "(sVar3 < uVar7)" ( (binary_expression "sVar3 < uVar7" identifier < identifier) )) (goto_statement "goto LAB_0006cf01;" goto statement_identifier ;)) (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(local_30 + local_2c) = 0;" (assignment_expression "*(undefined1 *)(local_30 + local_2c) = 0" (pointer_expression "*(undefined1 *)(local_30 + local_2c)" * (cast_expression "(undefined1 *)(local_30 + local_2c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_30 + local_2c)" ( (binary_expression "local_30 + local_2c" identifier + identifier) )))) = number_literal) ;) (labeled_statement "LAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }" statement_identifier : (if_statement "if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }" if (parenthesized_expression "(local_2c != 0)" ( (binary_expression "local_2c != 0" identifier != number_literal) )) (compound_statement "{\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }" { (expression_statement "sVar3 = strspn(pcVar5 + uVar7," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar5 + uVar7," \t\r\n")" identifier = (call_expression "strspn(pcVar5 + uVar7," \t\r\n")" identifier (argument_list "(pcVar5 + uVar7," \t\r\n")" ( (binary_expression "pcVar5 + uVar7" identifier + identifier) , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement "*param_1 = (int)(pcVar5 + uVar7 + sVar3);" (assignment_expression "*param_1 = (int)(pcVar5 + uVar7 + sVar3)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar5 + uVar7 + sVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar5 + uVar7 + sVar3)" ( (binary_expression "pcVar5 + uVar7 + sVar3" (binary_expression "pcVar5 + uVar7" identifier + identifier) + identifier) )))) ;) (return_statement "return 0;" return number_literal ;) }))) (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (labeled_statement "LAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);" statement_identifier : (expression_statement "(*(code *)PTR_free_000b106c)(local_30);" (call_expression "(*(code *)PTR_free_000b106c)(local_30)" (parenthesized_expression "(*(code *)PTR_free_000b106c)" ( (pointer_expression "*(code *)PTR_free_000b106c" * (cast_expression "(code *)PTR_free_000b106c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier ))) ;)) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0x15;" return number_literal ;) })) (expression_statement "pcVar5 = strpbrk(pcVar10," \t\r\n");" (assignment_expression "pcVar5 = strpbrk(pcVar10," \t\r\n")" identifier = (call_expression "strpbrk(pcVar10," \t\r\n")" identifier (argument_list "(pcVar10," \t\r\n")" ( identifier , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }" { (expression_statement "sVar3 = strlen(pcVar10);" (assignment_expression "sVar3 = strlen(pcVar10)" identifier = (call_expression "strlen(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "pcVar5 = pcVar10 + sVar3;" (assignment_expression "pcVar5 = pcVar10 + sVar3" identifier = (binary_expression "pcVar10 + sVar3" identifier + identifier)) ;) })) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "sVar3 = strspn(pcVar5," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar5," \t\r\n")" identifier = (call_expression "strspn(pcVar5," \t\r\n")" identifier (argument_list "(pcVar5," \t\r\n")" ( identifier , (string_literal "" \t\r\n"" " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement "*param_1 = (int)(pcVar5 + sVar3);" (assignment_expression "*param_1 = (int)(pcVar5 + sVar3)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar5 + sVar3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar5 + sVar3)" ( (binary_expression "pcVar5 + sVar3" identifier + identifier) )))) ;) (expression_statement "__dest = (char *)*param_2;" (assignment_expression "__dest = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }" if (parenthesized_expression "(((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/'))" ( (binary_expression "((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')" (parenthesized_expression "((*pcVar10 == '/') && (pcVar10[1] == '~'))" ( (binary_expression "(*pcVar10 == '/') && (pcVar10[1] == '~')" (parenthesized_expression "(*pcVar10 == '/')" ( (binary_expression "*pcVar10 == '/'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(pcVar10[1] == '~')" ( (binary_expression "pcVar10[1] == '~'" (subscript_expression "pcVar10[1]" identifier [ number_literal ]) == (char_literal "'~'" ' character ')) ))) )) && (parenthesized_expression "(pcVar10[2] == '/')" ( (binary_expression "pcVar10[2] == '/'" (subscript_expression "pcVar10[2]" identifier [ number_literal ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }" { (expression_statement "pcVar10 = pcVar10 + 3;" (assignment_expression "pcVar10 = pcVar10 + 3" identifier = (binary_expression "pcVar10 + 3" identifier + number_literal)) ;) (expression_statement "strcpy(__dest,param_3);" (call_expression "strcpy(__dest,param_3)" identifier (argument_list "(__dest,param_3)" ( identifier , identifier ))) ;) (expression_statement "sVar3 = strlen(param_3);" (assignment_expression "sVar3 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar9 = sVar3 + 1;" (assignment_expression "iVar9 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_2 + sVar3) = 0x2f;" (assignment_expression "*(undefined1 *)(*param_2 + sVar3) = 0x2f" (pointer_expression "*(undefined1 *)(*param_2 + sVar3)" * (cast_expression "(undefined1 *)(*param_2 + sVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + sVar3)" ( (binary_expression "*param_2 + sVar3" (pointer_expression "*param_2" * identifier) + identifier) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*param_2 + 1 + sVar3) = 0;" (assignment_expression "*(undefined1 *)(*param_2 + 1 + sVar3) = 0" (pointer_expression "*(undefined1 *)(*param_2 + 1 + sVar3)" * (cast_expression "(undefined1 *)(*param_2 + 1 + sVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 1 + sVar3)" ( (binary_expression "*param_2 + 1 + sVar3" (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "__dest = (char *)(*param_2 + iVar9);" (assignment_expression "__dest = (char *)(*param_2 + iVar9)" identifier = (cast_expression "(char *)(*param_2 + iVar9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + iVar9)" ( (binary_expression "*param_2 + iVar9" (pointer_expression "*param_2" * identifier) + identifier) )))) ;) })) (expression_statement "memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);" (call_expression "memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10)" identifier (argument_list "(__dest,pcVar10,(int)pcVar5 - (int)pcVar10)" ( identifier , identifier , (binary_expression "(int)pcVar5 - (int)pcVar10" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;" (assignment_expression "*(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0" (pointer_expression "*(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9)" * (cast_expression "(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9)" ( (binary_expression "((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9" (binary_expression "((int)pcVar5 - (int)pcVar10) + *param_2" (parenthesized_expression "((int)pcVar5 - (int)pcVar10)" ( (binary_expression "(int)pcVar5 - (int)pcVar10" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar10" ( (type_descriptor "int" primitive_type) ) identifier)) )) + (pointer_expression "*param_2" * identifier)) + identifier) )))) = number_literal) ;) }))) (return_statement "return uVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) , (binary_expression IDENT != IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_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 IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT != (char_literal ' escape_sequence ')) && (binary_expression IDENT != (char_literal ' escape_sequence '))) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (string_literal " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + IDENT) )))) ;) (return_statement return LIT ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (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 = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence escape_sequence escape_sequence ") )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) + (pointer_expression * IDENT)) + IDENT) )))) = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0006cd60(int *param_1,int *param_2,char *param_3)\n\n{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  int local_30;\n  int local_2c;\n  \n  pcVar10 = (char *)*param_1;\n  if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(param_3);\n  local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);\n  *param_2 = local_30;\n  if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }\n  return uVar6;\n}" (type_identifier "undefined4") (function_declarator "FUN_0006cd60(int *param_1,int *param_2,char *param_3)" (identifier "FUN_0006cd60") (parameter_list "(int *param_1,int *param_2,char *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  char *__dest;\n  uint uVar7;\n  char cVar8;\n  int iVar9;\n  char *pcVar10;\n  int local_30;\n  int local_2c;\n  \n  pcVar10 = (char *)*param_1;\n  if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }\n  sVar3 = strspn(pcVar10," \t\r\n");\n  pcVar10 = pcVar10 + sVar3;\n  sVar3 = strlen(pcVar10);\n  sVar4 = strlen(param_3);\n  local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);\n  *param_2 = local_30;\n  if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }\n  return uVar6;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "char cVar8;" (primitive_type "char") (identifier "cVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "pcVar10 = (char *)*param_1;" (assignment_expression "pcVar10 = (char *)*param_1" (identifier "pcVar10") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (*pcVar10 == '\0') {\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }" (if "if") (parenthesized_expression "(*pcVar10 == '\0')" (( "(") (binary_expression "*pcVar10 == '\0'" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *param_1 = 0;\n    *param_2 = 0;\n    return 0x15;\n  }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0x15;" (return "return") (number_literal "0x15") (; ";")) (} "}"))) (expression_statement "sVar3 = strspn(pcVar10," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar10," \t\r\n")" (identifier "sVar3") (= "=") (call_expression "strspn(pcVar10," \t\r\n")" (identifier "strspn") (argument_list "(pcVar10," \t\r\n")" (( "(") (identifier "pcVar10") (, ",") (string_literal "" \t\r\n"" (" """) (string_content " ") (escape_sequence "\t") (escape_sequence "\r") (escape_sequence "\n") (" """)) () ")")))) (; ";")) (expression_statement "pcVar10 = pcVar10 + sVar3;" (assignment_expression "pcVar10 = pcVar10 + sVar3" (identifier "pcVar10") (= "=") (binary_expression "pcVar10 + sVar3" (identifier "pcVar10") (+ "+") (identifier "sVar3"))) (; ";")) (expression_statement "sVar3 = strlen(pcVar10);" (assignment_expression "sVar3 = strlen(pcVar10)" (identifier "sVar3") (= "=") (call_expression "strlen(pcVar10)" (identifier "strlen") (argument_list "(pcVar10)" (( "(") (identifier "pcVar10") () ")")))) (; ";")) (expression_statement "sVar4 = strlen(param_3);" (assignment_expression "sVar4 = strlen(param_3)" (identifier "sVar4") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);" (assignment_expression "local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4)" (identifier "local_30") (= "=") (call_expression "(*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4)" (parenthesized_expression "(*(code *)PTR_malloc_000b1070)" (( "(") (pointer_expression "*(code *)PTR_malloc_000b1070" (* "*") (cast_expression "(code *)PTR_malloc_000b1070" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_000b1070"))) () ")")) (argument_list "(sVar3 + 2 + sVar4)" (( "(") (binary_expression "sVar3 + 2 + sVar4" (binary_expression "sVar3 + 2" (identifier "sVar3") (+ "+") (number_literal "2")) (+ "+") (identifier "sVar4")) () ")")))) (; ";")) (expression_statement "*param_2 = local_30;" (assignment_expression "*param_2 = local_30" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_30")) (; ";")) (if_statement "if (local_30 == 0) {\n    uVar6 = 0x1b;\n  }\n  else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }" (if "if") (parenthesized_expression "(local_30 == 0)" (( "(") (binary_expression "local_30 == 0" (identifier "local_30") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = 0x1b;\n  }" ({ "{") (expression_statement "uVar6 = 0x1b;" (assignment_expression "uVar6 = 0x1b" (identifier "uVar6") (= "=") (number_literal "0x1b")) (; ";")) (} "}")) (else_clause "else {\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }" (else "else") (compound_statement "{\n    cVar1 = *pcVar10;\n    if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }\n    pcVar5 = strpbrk(pcVar10," \t\r\n");\n    if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }\n    iVar9 = 0;\n    sVar3 = strspn(pcVar5," \t\r\n");\n    *param_1 = (int)(pcVar5 + sVar3);\n    __dest = (char *)*param_2;\n    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }\n    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);\n    uVar6 = 0;\n    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;\n  }" ({ "{") (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" (identifier "cVar1") (= "=") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10"))) (; ";")) (if_statement "if ((cVar1 == '\"') || (cVar1 == '\'')) {\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }" (if "if") (parenthesized_expression "((cVar1 == '\"') || (cVar1 == '\''))" (( "(") (binary_expression "(cVar1 == '\"') || (cVar1 == '\'')" (parenthesized_expression "(cVar1 == '\"')" (( "(") (binary_expression "cVar1 == '\"'" (identifier "cVar1") (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar1 == '\'')" (( "(") (binary_expression "cVar1 == '\''" (identifier "cVar1") (== "==") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      pcVar5 = pcVar10 + 1;\n      uVar7 = 0;\n      local_2c = 0;\n      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }\n      uVar7 = uVar7 + 1;\n      *(undefined1 *)(local_30 + local_2c) = 0;\nLAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }\n      local_30 = *param_2;\nLAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);\n      *param_2 = 0;\n      return 0x15;\n    }" ({ "{") (expression_statement "pcVar5 = pcVar10 + 1;" (assignment_expression "pcVar5 = pcVar10 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar10 + 1" (identifier "pcVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (while_statement "while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }" (while "while") (parenthesized_expression "(cVar8 = pcVar5[uVar7], cVar1 != cVar8)" (( "(") (comma_expression "cVar8 = pcVar5[uVar7], cVar1 != cVar8" (assignment_expression "cVar8 = pcVar5[uVar7]" (identifier "cVar8") (= "=") (subscript_expression "pcVar5[uVar7]" (identifier "pcVar5") ([ "[") (identifier "uVar7") (] "]"))) (, ",") (binary_expression "cVar1 != cVar8" (identifier "cVar1") (!= "!=") (identifier "cVar8"))) () ")")) (compound_statement "{\n        if (cVar8 == '\0') goto LAB_0006cf5c;\n        uVar2 = uVar7 + 1;\n        if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }\n        uVar7 = uVar2;\n        *(char *)(local_30 + local_2c) = cVar8;\n        local_2c = local_2c + 1;\n        sVar3 = strlen(pcVar5);\n        if (sVar3 < uVar7) goto LAB_0006cf01;\n        local_30 = *param_2;\n      }" ({ "{") (if_statement "if (cVar8 == '\0') goto LAB_0006cf5c;" (if "if") (parenthesized_expression "(cVar8 == '\0')" (( "(") (binary_expression "cVar8 == '\0'" (identifier "cVar8") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0006cf5c;" (goto "goto") (statement_identifier "LAB_0006cf5c") (; ";"))) (expression_statement "uVar2 = uVar7 + 1;" (assignment_expression "uVar2 = uVar7 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar8 == '\\') {\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }" (if "if") (parenthesized_expression "(cVar8 == '\\')" (( "(") (binary_expression "cVar8 == '\\'" (identifier "cVar8") (== "==") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")")) (compound_statement "{\n          cVar8 = pcVar10[uVar7 + 2];\n          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;\n          uVar2 = uVar7 + 2;\n        }" ({ "{") (expression_statement "cVar8 = pcVar10[uVar7 + 2];" (assignment_expression "cVar8 = pcVar10[uVar7 + 2]" (identifier "cVar8") (= "=") (subscript_expression "pcVar10[uVar7 + 2]" (identifier "pcVar10") ([ "[") (binary_expression "uVar7 + 2" (identifier "uVar7") (+ "+") (number_literal "2")) (] "]"))) (; ";")) (if_statement "if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;" (if "if") (parenthesized_expression "((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\'))" (( "(") (binary_expression "(cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')" (parenthesized_expression "(cVar8 != '\'' && cVar8 != '\"')" (( "(") (binary_expression "cVar8 != '\'' && cVar8 != '\"'" (binary_expression "cVar8 != '\''" (identifier "cVar8") (!= "!=") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) (&& "&&") (binary_expression "cVar8 != '\"'" (identifier "cVar8") (!= "!=") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'")))) () ")")) (&& "&&") (parenthesized_expression "(cVar8 != '\\')" (( "(") (binary_expression "cVar8 != '\\'" (identifier "cVar8") (!= "!=") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_0006cf5c;" (goto "goto") (statement_identifier "LAB_0006cf5c") (; ";"))) (expression_statement "uVar2 = uVar7 + 2;" (assignment_expression "uVar2 = uVar7 + 2" (identifier "uVar2") (= "=") (binary_expression "uVar7 + 2" (identifier "uVar7") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "uVar7 = uVar2;" (assignment_expression "uVar7 = uVar2" (identifier "uVar7") (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(char *)(local_30 + local_2c) = cVar8;" (assignment_expression "*(char *)(local_30 + local_2c) = cVar8" (pointer_expression "*(char *)(local_30 + local_2c)" (* "*") (cast_expression "(char *)(local_30 + local_2c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_30 + local_2c)" (( "(") (binary_expression "local_30 + local_2c" (identifier "local_30") (+ "+") (identifier "local_2c")) () ")")))) (= "=") (identifier "cVar8")) (; ";")) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" (identifier "local_2c") (= "=") (binary_expression "local_2c + 1" (identifier "local_2c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "sVar3 = strlen(pcVar5);" (assignment_expression "sVar3 = strlen(pcVar5)" (identifier "sVar3") (= "=") (call_expression "strlen(pcVar5)" (identifier "strlen") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")")))) (; ";")) (if_statement "if (sVar3 < uVar7) goto LAB_0006cf01;" (if "if") (parenthesized_expression "(sVar3 < uVar7)" (( "(") (binary_expression "sVar3 < uVar7" (identifier "sVar3") (< "<") (identifier "uVar7")) () ")")) (goto_statement "goto LAB_0006cf01;" (goto "goto") (statement_identifier "LAB_0006cf01") (; ";"))) (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" (identifier "local_30") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(local_30 + local_2c) = 0;" (assignment_expression "*(undefined1 *)(local_30 + local_2c) = 0" (pointer_expression "*(undefined1 *)(local_30 + local_2c)" (* "*") (cast_expression "(undefined1 *)(local_30 + local_2c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_30 + local_2c)" (( "(") (binary_expression "local_30 + local_2c" (identifier "local_30") (+ "+") (identifier "local_2c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0006cf01:\n      if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }" (statement_identifier "LAB_0006cf01") (: ":") (if_statement "if (local_2c != 0) {\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }" (if "if") (parenthesized_expression "(local_2c != 0)" (( "(") (binary_expression "local_2c != 0" (identifier "local_2c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");\n        *param_1 = (int)(pcVar5 + uVar7 + sVar3);\n        return 0;\n      }" ({ "{") (expression_statement "sVar3 = strspn(pcVar5 + uVar7," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar5 + uVar7," \t\r\n")" (identifier "sVar3") (= "=") (call_expression "strspn(pcVar5 + uVar7," \t\r\n")" (identifier "strspn") (argument_list "(pcVar5 + uVar7," \t\r\n")" (( "(") (binary_expression "pcVar5 + uVar7" (identifier "pcVar5") (+ "+") (identifier "uVar7")) (, ",") (string_literal "" \t\r\n"" (" """) (string_content " ") (escape_sequence "\t") (escape_sequence "\r") (escape_sequence "\n") (" """)) () ")")))) (; ";")) (expression_statement "*param_1 = (int)(pcVar5 + uVar7 + sVar3);" (assignment_expression "*param_1 = (int)(pcVar5 + uVar7 + sVar3)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pcVar5 + uVar7 + sVar3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar5 + uVar7 + sVar3)" (( "(") (binary_expression "pcVar5 + uVar7 + sVar3" (binary_expression "pcVar5 + uVar7" (identifier "pcVar5") (+ "+") (identifier "uVar7")) (+ "+") (identifier "sVar3")) () ")")))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))) (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" (identifier "local_30") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (labeled_statement "LAB_0006cf5c:\n      (*(code *)PTR_free_000b106c)(local_30);" (statement_identifier "LAB_0006cf5c") (: ":") (expression_statement "(*(code *)PTR_free_000b106c)(local_30);" (call_expression "(*(code *)PTR_free_000b106c)(local_30)" (parenthesized_expression "(*(code *)PTR_free_000b106c)" (( "(") (pointer_expression "*(code *)PTR_free_000b106c" (* "*") (cast_expression "(code *)PTR_free_000b106c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_000b106c"))) () ")")) (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";"))) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0x15;" (return "return") (number_literal "0x15") (; ";")) (} "}"))) (expression_statement "pcVar5 = strpbrk(pcVar10," \t\r\n");" (assignment_expression "pcVar5 = strpbrk(pcVar10," \t\r\n")" (identifier "pcVar5") (= "=") (call_expression "strpbrk(pcVar10," \t\r\n")" (identifier "strpbrk") (argument_list "(pcVar10," \t\r\n")" (( "(") (identifier "pcVar10") (, ",") (string_literal "" \t\r\n"" (" """) (string_content " ") (escape_sequence "\t") (escape_sequence "\r") (escape_sequence "\n") (" """)) () ")")))) (; ";")) (if_statement "if (pcVar5 == (char *)0x0) {\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }" (if "if") (parenthesized_expression "(pcVar5 == (char *)0x0)" (( "(") (binary_expression "pcVar5 == (char *)0x0" (identifier "pcVar5") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      sVar3 = strlen(pcVar10);\n      pcVar5 = pcVar10 + sVar3;\n    }" ({ "{") (expression_statement "sVar3 = strlen(pcVar10);" (assignment_expression "sVar3 = strlen(pcVar10)" (identifier "sVar3") (= "=") (call_expression "strlen(pcVar10)" (identifier "strlen") (argument_list "(pcVar10)" (( "(") (identifier "pcVar10") () ")")))) (; ";")) (expression_statement "pcVar5 = pcVar10 + sVar3;" (assignment_expression "pcVar5 = pcVar10 + sVar3" (identifier "pcVar5") (= "=") (binary_expression "pcVar10 + sVar3" (identifier "pcVar10") (+ "+") (identifier "sVar3"))) (; ";")) (} "}"))) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar3 = strspn(pcVar5," \t\r\n");" (assignment_expression "sVar3 = strspn(pcVar5," \t\r\n")" (identifier "sVar3") (= "=") (call_expression "strspn(pcVar5," \t\r\n")" (identifier "strspn") (argument_list "(pcVar5," \t\r\n")" (( "(") (identifier "pcVar5") (, ",") (string_literal "" \t\r\n"" (" """) (string_content " ") (escape_sequence "\t") (escape_sequence "\r") (escape_sequence "\n") (" """)) () ")")))) (; ";")) (expression_statement "*param_1 = (int)(pcVar5 + sVar3);" (assignment_expression "*param_1 = (int)(pcVar5 + sVar3)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pcVar5 + sVar3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar5 + sVar3)" (( "(") (binary_expression "pcVar5 + sVar3" (identifier "pcVar5") (+ "+") (identifier "sVar3")) () ")")))) (; ";")) (expression_statement "__dest = (char *)*param_2;" (assignment_expression "__dest = (char *)*param_2" (identifier "__dest") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }" (if "if") (parenthesized_expression "(((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/'))" (( "(") (binary_expression "((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')" (parenthesized_expression "((*pcVar10 == '/') && (pcVar10[1] == '~'))" (( "(") (binary_expression "(*pcVar10 == '/') && (pcVar10[1] == '~')" (parenthesized_expression "(*pcVar10 == '/')" (( "(") (binary_expression "*pcVar10 == '/'" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar10[1] == '~')" (( "(") (binary_expression "pcVar10[1] == '~'" (subscript_expression "pcVar10[1]" (identifier "pcVar10") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'~'" (' "'") (character "~") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar10[2] == '/')" (( "(") (binary_expression "pcVar10[2] == '/'" (subscript_expression "pcVar10[2]" (identifier "pcVar10") ([ "[") (number_literal "2") (] "]")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      pcVar10 = pcVar10 + 3;\n      strcpy(__dest,param_3);\n      sVar3 = strlen(param_3);\n      iVar9 = sVar3 + 1;\n      *(undefined1 *)(*param_2 + sVar3) = 0x2f;\n      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;\n      __dest = (char *)(*param_2 + iVar9);\n    }" ({ "{") (expression_statement "pcVar10 = pcVar10 + 3;" (assignment_expression "pcVar10 = pcVar10 + 3" (identifier "pcVar10") (= "=") (binary_expression "pcVar10 + 3" (identifier "pcVar10") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "strcpy(__dest,param_3);" (call_expression "strcpy(__dest,param_3)" (identifier "strcpy") (argument_list "(__dest,param_3)" (( "(") (identifier "__dest") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "sVar3 = strlen(param_3);" (assignment_expression "sVar3 = strlen(param_3)" (identifier "sVar3") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "iVar9 = sVar3 + 1;" (assignment_expression "iVar9 = sVar3 + 1" (identifier "iVar9") (= "=") (binary_expression "sVar3 + 1" (identifier "sVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(*param_2 + sVar3) = 0x2f;" (assignment_expression "*(undefined1 *)(*param_2 + sVar3) = 0x2f" (pointer_expression "*(undefined1 *)(*param_2 + sVar3)" (* "*") (cast_expression "(undefined1 *)(*param_2 + sVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + sVar3)" (( "(") (binary_expression "*param_2 + sVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (identifier "sVar3")) () ")")))) (= "=") (number_literal "0x2f")) (; ";")) (expression_statement "*(undefined1 *)(*param_2 + 1 + sVar3) = 0;" (assignment_expression "*(undefined1 *)(*param_2 + 1 + sVar3) = 0" (pointer_expression "*(undefined1 *)(*param_2 + 1 + sVar3)" (* "*") (cast_expression "(undefined1 *)(*param_2 + 1 + sVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 1 + sVar3)" (( "(") (binary_expression "*param_2 + 1 + sVar3" (binary_expression "*param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "1")) (+ "+") (identifier "sVar3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "__dest = (char *)(*param_2 + iVar9);" (assignment_expression "__dest = (char *)(*param_2 + iVar9)" (identifier "__dest") (= "=") (cast_expression "(char *)(*param_2 + iVar9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + iVar9)" (( "(") (binary_expression "*param_2 + iVar9" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (identifier "iVar9")) () ")")))) (; ";")) (} "}"))) (expression_statement "memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);" (call_expression "memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10)" (identifier "memcpy") (argument_list "(__dest,pcVar10,(int)pcVar5 - (int)pcVar10)" (( "(") (identifier "__dest") (, ",") (identifier "pcVar10") (, ",") (binary_expression "(int)pcVar5 - (int)pcVar10" (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5")) (- "-") (cast_expression "(int)pcVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar10"))) () ")"))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;" (assignment_expression "*(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0" (pointer_expression "*(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9)" (* "*") (cast_expression "(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9)" (( "(") (binary_expression "((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9" (binary_expression "((int)pcVar5 - (int)pcVar10) + *param_2" (parenthesized_expression "((int)pcVar5 - (int)pcVar10)" (( "(") (binary_expression "(int)pcVar5 - (int)pcVar10" (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5")) (- "-") (cast_expression "(int)pcVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar10"))) () ")")) (+ "+") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (+ "+") (identifier "iVar9")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

type_1 function_1(char **cpp,char **path,char *homedir)

{
  char var_7;
  type_2 uVar2;
  size_t var_3;
  size_t var_5;
  char *var_11;
  type_1 CVar6;
  char *__dest;
  type_2 var_9;
  char var_8;
  int var_14;
  char *var_2;
  char *var_6;
  int var_10;
  
  var_2 = *cpp;
  if (*var_2 == '\0') {
    *cpp = (char *)0x0;
    *path = (char *)0x0;
    return CURLE_QUOTE_ERROR;
  }
  var_3 = var_1(var_2," \t\r\n");
  var_2 = var_2 + var_3;
  var_3 = var_4(var_2);
  var_5 = var_4(homedir);
  var_6 = (char *)(*Curl_cmalloc)(var_3 + 2 + var_5);
  *path = var_6;
  if (var_6 == (char *)0x0) {
    CVar6 = CURLE_OUT_OF_MEMORY;
  }
  else {
    var_7 = *var_2;
    if ((var_7 == '\"') || (var_7 == '\'')) {
      var_11 = var_2 + 1;
      var_9 = 0;
      var_10 = 0;
      while (var_8 = var_11[var_9], var_7 != var_8) {
        if (var_8 == '\0') goto LAB_0006cf5c;
        uVar2 = var_9 + 1;
        if (var_8 == '\\') {
          var_8 = var_2[var_9 + 2];
          if ((var_8 != '\'' && var_8 != '\"') && (var_8 != '\\')) goto LAB_0006cf5c;
          uVar2 = var_9 + 2;
        }
        var_9 = uVar2;
        var_6[var_10] = var_8;
        var_10 = var_10 + 1;
        var_3 = var_4(var_11);
        if (var_3 < var_9) goto LAB_0006cf01;
        var_6 = *path;
      }
      var_9 = var_9 + 1;
      var_6[var_10] = '\0';
LAB_0006cf01:
      if (var_10 != 0) {
        var_3 = var_1(var_11 + var_9," \t\r\n");
        *cpp = var_11 + var_9 + var_3;
        return CURLE_OK;
      }
      var_6 = *path;
LAB_0006cf5c:
      (*Curl_cfree)(var_6);
      *path = (char *)0x0;
      return CURLE_QUOTE_ERROR;
    }
    var_11 = var_12(var_2," \t\r\n");
    if (var_11 == (char *)0x0) {
      var_3 = var_4(var_2);
      var_11 = var_2 + var_3;
    }
    var_14 = 0;
    var_3 = var_1(var_11," \t\r\n");
    *cpp = var_11 + var_3;
    __dest = *path;
    if (((*var_2 == '/') && (var_2[1] == '~')) && (var_2[2] == '/')) {
      var_2 = var_2 + 3;
      var_13(__dest,homedir);
      var_3 = var_4(homedir);
      var_14 = var_3 + 1;
      (*path)[var_3] = '/';
      (*path)[var_3 + 1] = '\0';
      __dest = *path + var_14;
    }
    var_15(__dest,var_2,(int)var_11 - (int)var_2);
    CVar6 = CURLE_OK;
    (*path)[var_14 + ((int)var_11 - (int)var_2)] = '\0';
  }
  return CVar6;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

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

{
  char cVar1;
  uint uVar2;
  size_t sVar3;
  size_t sVar4;
  char *pcVar5;
  undefined4 uVar6;
  char *__dest;
  uint uVar7;
  char cVar8;
  int iVar9;
  char *pcVar10;
  int local_30;
  int local_2c;
  
  pcVar10 = (char *)*param_1;
  if (*pcVar10 == '\0') {
    *param_1 = 0;
    *param_2 = 0;
    return 0x15;
  }
  sVar3 = strspn(pcVar10," \t\r\n");
  pcVar10 = pcVar10 + sVar3;
  sVar3 = strlen(pcVar10);
  sVar4 = strlen(param_3);
  local_30 = (*(code *)PTR_malloc_000b1070)(sVar3 + 2 + sVar4);
  *param_2 = local_30;
  if (local_30 == 0) {
    uVar6 = 0x1b;
  }
  else {
    cVar1 = *pcVar10;
    if ((cVar1 == '\"') || (cVar1 == '\'')) {
      pcVar5 = pcVar10 + 1;
      uVar7 = 0;
      local_2c = 0;
      while (cVar8 = pcVar5[uVar7], cVar1 != cVar8) {
        if (cVar8 == '\0') goto LAB_0006cf5c;
        uVar2 = uVar7 + 1;
        if (cVar8 == '\\') {
          cVar8 = pcVar10[uVar7 + 2];
          if ((cVar8 != '\'' && cVar8 != '\"') && (cVar8 != '\\')) goto LAB_0006cf5c;
          uVar2 = uVar7 + 2;
        }
        uVar7 = uVar2;
        *(char *)(local_30 + local_2c) = cVar8;
        local_2c = local_2c + 1;
        sVar3 = strlen(pcVar5);
        if (sVar3 < uVar7) goto LAB_0006cf01;
        local_30 = *param_2;
      }
      uVar7 = uVar7 + 1;
      *(undefined1 *)(local_30 + local_2c) = 0;
LAB_0006cf01:
      if (local_2c != 0) {
        sVar3 = strspn(pcVar5 + uVar7," \t\r\n");
        *param_1 = (int)(pcVar5 + uVar7 + sVar3);
        return 0;
      }
      local_30 = *param_2;
LAB_0006cf5c:
      (*(code *)PTR_free_000b106c)(local_30);
      *param_2 = 0;
      return 0x15;
    }
    pcVar5 = strpbrk(pcVar10," \t\r\n");
    if (pcVar5 == (char *)0x0) {
      sVar3 = strlen(pcVar10);
      pcVar5 = pcVar10 + sVar3;
    }
    iVar9 = 0;
    sVar3 = strspn(pcVar5," \t\r\n");
    *param_1 = (int)(pcVar5 + sVar3);
    __dest = (char *)*param_2;
    if (((*pcVar10 == '/') && (pcVar10[1] == '~')) && (pcVar10[2] == '/')) {
      pcVar10 = pcVar10 + 3;
      strcpy(__dest,param_3);
      sVar3 = strlen(param_3);
      iVar9 = sVar3 + 1;
      *(undefined1 *)(*param_2 + sVar3) = 0x2f;
      *(undefined1 *)(*param_2 + 1 + sVar3) = 0;
      __dest = (char *)(*param_2 + iVar9);
    }
    memcpy(__dest,pcVar10,(int)pcVar5 - (int)pcVar10);
    uVar6 = 0;
    *(undefined1 *)(((int)pcVar5 - (int)pcVar10) + *param_2 + iVar9) = 0;
  }
  return uVar6;
}

