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

char * hostname_completion_function(char *text,int state)

{
  char *pcVar1;
  size_t sVar2;
  int iVar3;
  char **ppcVar4;
  char **ppcVar5;
  char **array;
  char **ppcVar6;
  int iVar7;
  int iVar8;
  
  if (state == 0) {
    if (hostname_completion_function::list != (char **)0x0) {
      free(hostname_completion_function::list);
    }
    hostname_completion_function::list = (char **)0x0;
    hostname_completion_function::first_char = (int)*text;
    if (hostname_completion_function::first_char == 0x40) {
      text = text + 1;
    }
    hostname_completion_function::first_char_loc =
         (int)(hostname_completion_function::first_char == 0x40);
    if ((hostname_list_initialized == 0) &&
       (initialize_hostname_list(), hostname_list_initialized == 0)) {
      hostname_completion_function::list = (char **)0x0;
      hostname_completion_function::list_index = 0;
      return (char *)0x0;
    }
    iVar7 = hostname_list_length;
    if (*text == '\0') {
      array = strvec_create(hostname_list_length + 1);
      iVar7 = hostname_list_length;
      ppcVar5 = array;
      if (0 < hostname_list_length) {
        ppcVar5 = hostname_list + hostname_list_length;
        ppcVar4 = hostname_list;
        ppcVar6 = array;
        do {
          pcVar1 = *ppcVar4;
          ppcVar4 = ppcVar4 + 1;
          *ppcVar6 = pcVar1;
          ppcVar6 = ppcVar6 + 1;
        } while (ppcVar5 != ppcVar4);
        ppcVar5 = array + iVar7;
      }
      *ppcVar5 = (char *)0x0;
    }
    else {
      sVar2 = strlen(text);
      if (iVar7 < 1) {
        hostname_completion_function::list_index = 0;
        hostname_completion_function::list = (char **)0x0;
        return (char *)0x0;
      }
      array = (char **)0x0;
      iVar8 = 0;
      iVar7 = 0;
      do {
        if ((sVar2 == 0) ||
           ((*text == *hostname_list[iVar8] &&
            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {
          if (state + -1 <= iVar7) {
            state = state + 0x10;
            array = strvec_resize(array,state);
          }
          array[iVar7] = hostname_list[iVar8];
          iVar7 = iVar7 + 1;
        }
        iVar8 = iVar8 + 1;
      } while (iVar8 < hostname_list_length);
      if (iVar7 != 0) {
        array[iVar7] = (char *)0x0;
        hostname_completion_function::list_index = 0;
        hostname_completion_function::list = array;
        goto LAB_0008c2b0;
      }
    }
    hostname_completion_function::list_index = 0;
    hostname_completion_function::list = array;
  }
LAB_0008c2b0:
  ppcVar5 = hostname_completion_function::list;
  if ((hostname_completion_function::list != (char **)0x0) &&
     (ppcVar5 = (char **)hostname_completion_function::list
                         [hostname_completion_function::list_index], ppcVar5 != (char **)0x0)) {
    sVar2 = strlen((char *)ppcVar5);
    ppcVar5 = (char **)xmalloc(sVar2 + 2);
    iVar7 = hostname_completion_function::list_index;
    *(char *)ppcVar5 = (char)hostname_completion_function::first_char;
    strcpy((char *)(hostname_completion_function::first_char_loc + (int)ppcVar5),
           hostname_completion_function::list[iVar7]);
    hostname_completion_function::list_index = iVar7 + 1;
  }
  return (char *)ppcVar5;
}



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

char * FUN_0008c100(char *param_1,int param_2)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  size_t sVar3;
  int iVar4;
  undefined4 *puVar5;
  char *pcVar6;
  char *pcVar7;
  int iVar8;
  int iVar9;
  
  if (param_2 == 0) {
    if (DAT_00151478 != (char *)0x0) {
      free(DAT_00151478);
    }
    DAT_00151478 = (char *)0x0;
    DAT_00151470 = (int)*param_1;
    if (DAT_00151470 == 0x40) {
      param_1 = param_1 + 1;
    }
    DAT_00151474 = (uint)(DAT_00151470 == 0x40);
    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {
      DAT_00151478 = (char *)0x0;
      DAT_0015146c = 0;
      return (char *)0x0;
    }
    iVar8 = DAT_001514d8;
    if (*param_1 == '\0') {
      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);
      pcVar6 = pcVar7;
      if (0 < DAT_001514d8) {
        iVar8 = DAT_001514d8 * 4;
        puVar1 = DAT_001514e0 + DAT_001514d8;
        puVar5 = DAT_001514e0;
        do {
          uVar2 = *puVar5;
          puVar5 = puVar5 + 1;
          *(undefined4 *)pcVar6 = uVar2;
          pcVar6 = pcVar6 + 4;
        } while (puVar1 != puVar5);
        pcVar6 = pcVar7 + iVar8;
      }
      pcVar6[0] = '\0';
      pcVar6[1] = '\0';
      pcVar6[2] = '\0';
      pcVar6[3] = '\0';
    }
    else {
      sVar3 = strlen(param_1);
      if (iVar8 < 1) {
        DAT_0015146c = 0;
        DAT_00151478 = (char *)0x0;
        return (char *)0x0;
      }
      pcVar7 = (char *)0x0;
      iVar9 = 0;
      iVar8 = 0;
      do {
        if ((sVar3 == 0) ||
           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&
            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {
          if (param_2 + -1 <= iVar8) {
            param_2 = param_2 + 0x10;
            pcVar7 = (char *)strvec_resize(pcVar7,param_2);
          }
          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];
          iVar8 = iVar8 + 1;
        }
        iVar9 = iVar9 + 1;
      } while (iVar9 < DAT_001514d8);
      if (iVar8 != 0) {
        pcVar6 = pcVar7 + iVar8 * 4;
        pcVar6[0] = '\0';
        pcVar6[1] = '\0';
        pcVar6[2] = '\0';
        pcVar6[3] = '\0';
        DAT_0015146c = 0;
        DAT_00151478 = pcVar7;
        goto LAB_0008c2b0;
      }
    }
    DAT_0015146c = 0;
    DAT_00151478 = pcVar7;
  }
LAB_0008c2b0:
  pcVar6 = DAT_00151478;
  if ((DAT_00151478 != (char *)0x0) &&
     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {
    sVar3 = strlen(pcVar6);
    pcVar6 = (char *)xmalloc(sVar3 + 2);
    iVar8 = DAT_0015146c;
    *pcVar6 = (char)DAT_00151470;
    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));
    DAT_0015146c = iVar8 + 1;
  }
  return pcVar6;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xbdef7
SUB ESP,0x1c
MOV EBP,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [EBX + 0x7478]
TEST EBP,EBP
JNZ 0x0008c2b0
TEST ESI,ESI
JZ 0x0008c134
SUB ESP,0xc
PUSH ESI
CALL 0x0002f200
ADD ESP,0x10
MOV dword ptr [EBX + 0x7478],0x0
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EBX + 0x7474],0x0
MOVSX EAX,byte ptr [EAX]
MOV dword ptr [EBX + 0x7470],EAX
CMP EAX,0x40
JNZ 0x0008c169
ADD dword ptr [ESP + 0x30],0x1
MOV dword ptr [EBX + 0x7474],0x1
MOV EAX,dword ptr [EBX + 0x7400]
TEST EAX,EAX
JZ 0x0008c340
MOV EAX,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [EBX + 0x74d8]
CMP byte ptr [EAX],0x0
JZ 0x0008c250
SUB ESP,0xc
PUSH dword ptr [ESP + 0x3c]
CALL 0x0002f760
ADD ESP,0x10
MOV dword ptr [ESP + 0x4],EAX
TEST ESI,ESI
JLE 0x0008c353
XOR EDX,EDX
MOV dword ptr [ESP + 0x34],EBP
XOR EDI,EDI
MOV EBP,EDX
JMP 0x0008c1d6
MOV EAX,dword ptr [EBX + 0x74e0]
MOV EAX,dword ptr [EAX + ECX*0x1]
MOV dword ptr [EDX + EBP*0x4],EAX
ADD EBP,0x1
ADD EDI,0x1
CMP EDI,dword ptr [EBX + 0x74d8]
JGE 0x0008c318
MOV ESI,dword ptr [ESP + 0x4]
LEA ECX,[EDI*0x4 + 0x0]
TEST ESI,ESI
JZ 0x0008c221
MOV EAX,dword ptr [EBX + 0x74e0]
MOV ESI,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x8],ECX
MOV EAX,dword ptr [EAX + EDI*0x4]
MOVZX ECX,byte ptr [EAX]
CMP byte ptr [ESI],CL
JNZ 0x0008c1c7
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x4
PUSH dword ptr [ESP + 0x8]
PUSH EAX
PUSH dword ptr [ESP + 0x3c]
CALL 0x0002fc30
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JNZ 0x0008c1c7
MOV EAX,dword ptr [ESP + 0x34]
SUB EAX,0x1
CMP EAX,EBP
JG 0x0008c1b8
MOV dword ptr [ESP + 0x8],ECX
ADD dword ptr [ESP + 0x34],0x10
SUB ESP,0x8
PUSH dword ptr [ESP + 0x3c]
PUSH EDX
CALL 0x000bf130
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,EAX
JMP 0x0008c1b8
SUB ESP,0xc
ADD ESI,0x1
PUSH ESI
CALL 0x000bf0d0
MOV ECX,dword ptr [EBX + 0x74d8]
ADD ESP,0x10
MOV ESI,EAX
TEST ECX,ECX
JLE 0x0008c373
MOV EAX,dword ptr [EBX + 0x74e0]
LEA EBP,[ECX*0x4 + 0x0]
MOV EDX,ESI
LEA EDI,[EBP + EAX*0x1]
LEA ESI,[ESI]
MOV ECX,dword ptr [EAX]
ADD EAX,0x4
ADD EDX,0x4
MOV dword ptr [EDX + -0x4],ECX
CMP EDI,EAX
JNZ 0x0008c288
LEA ECX,[ESI + EBP*0x1]
MOV dword ptr [ECX],0x0
MOV dword ptr [EBX + 0x7478],ESI
MOV dword ptr [EBX + 0x746c],0x0
TEST ESI,ESI
JZ 0x0008c30a
MOV EAX,dword ptr [EBX + 0x746c]
MOV ESI,dword ptr [ESI + EAX*0x4]
TEST ESI,ESI
JZ 0x0008c30a
SUB ESP,0xc
PUSH ESI
CALL 0x0002f760
ADD EAX,0x2
MOV dword ptr [ESP],EAX
CALL 0x00099200
MOV EDI,dword ptr [EBX + 0x746c]
MOV ESI,EAX
MOV EAX,dword ptr [EBX + 0x7470]
MOV byte ptr [ESI],AL
POP EAX
MOV EAX,dword ptr [EBX + 0x7478]
POP EDX
PUSH dword ptr [EAX + EDI*0x4]
MOV EAX,dword ptr [EBX + 0x7474]
ADD EDI,0x1
ADD EAX,ESI
PUSH EAX
CALL 0x0002f580
MOV dword ptr [EBX + 0x746c],EDI
ADD ESP,0x10
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,EDX
TEST EBP,EBP
JZ 0x0008c2a0
MOV dword ptr [ESI + EBP*0x4],0x0
MOV dword ptr [EBX + 0x7478],ESI
MOV dword ptr [EBX + 0x746c],0x0
JMP 0x0008c2b0
CALL 0x0008c0a0
MOV EDI,dword ptr [EBX + 0x7400]
TEST EDI,EDI
JNZ 0x0008c177
MOV dword ptr [EBX + 0x7478],0x0
XOR ESI,ESI
MOV dword ptr [EBX + 0x746c],0x0
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,EAX
JMP 0x0008c29a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * FUN_0008c100(char *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }\nLAB_0008c2b0:\n  pcVar6 = DAT_00151478;\n  if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }\n  return pcVar6;\n}\n\n" comment (function_definition "char * FUN_0008c100(char *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }\nLAB_0008c2b0:\n  pcVar6 = DAT_00151478;\n  if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }\n  return pcVar6;\n}" primitive_type (pointer_declarator "* FUN_0008c100(char *param_1,int param_2)" * (function_declarator "FUN_0008c100(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }\nLAB_0008c2b0:\n  pcVar6 = DAT_00151478;\n  if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }\n  return pcVar6;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }" { (if_statement "if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }" if (parenthesized_expression "(DAT_00151478 != (char *)0x0)" ( (binary_expression "DAT_00151478 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(DAT_00151478);\n    }" { (expression_statement "free(DAT_00151478);" (call_expression "free(DAT_00151478)" identifier (argument_list "(DAT_00151478)" ( identifier ))) ;) })) (expression_statement "DAT_00151478 = (char *)0x0;" (assignment_expression "DAT_00151478 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_00151470 = (int)*param_1;" (assignment_expression "DAT_00151470 = (int)*param_1" identifier = (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }" if (parenthesized_expression "(DAT_00151470 == 0x40)" ( (binary_expression "DAT_00151470 == 0x40" identifier == number_literal) )) (compound_statement "{\n      param_1 = param_1 + 1;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "DAT_00151474 = (uint)(DAT_00151470 == 0x40);" (assignment_expression "DAT_00151474 = (uint)(DAT_00151470 == 0x40)" identifier = (call_expression "(uint)(DAT_00151470 == 0x40)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00151470 == 0x40)" ( (binary_expression "DAT_00151470 == 0x40" identifier == number_literal) )))) ;) (if_statement "if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }" if (parenthesized_expression "((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0))" ( (binary_expression "(hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)" (parenthesized_expression "(hostname_list_initialized == 0)" ( (binary_expression "hostname_list_initialized == 0" identifier == number_literal) )) && (parenthesized_expression "(FUN_0008c0a0(), hostname_list_initialized == 0)" ( (comma_expression "FUN_0008c0a0(), hostname_list_initialized == 0" (call_expression "FUN_0008c0a0()" identifier (argument_list "()" ( ))) , (binary_expression "hostname_list_initialized == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }" { (expression_statement "DAT_00151478 = (char *)0x0;" (assignment_expression "DAT_00151478 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" identifier = number_literal) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar8 = DAT_001514d8;" (assignment_expression "iVar8 = DAT_001514d8" identifier = identifier) ;) (if_statement "if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }" if (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }" { (expression_statement "pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);" (assignment_expression "pcVar7 = (char *)strvec_create(DAT_001514d8 + 1)" identifier = (cast_expression "(char *)strvec_create(DAT_001514d8 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strvec_create(DAT_001514d8 + 1)" identifier (argument_list "(DAT_001514d8 + 1)" ( (binary_expression "DAT_001514d8 + 1" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = pcVar7;" (assignment_expression "pcVar6 = pcVar7" identifier = identifier) ;) (if_statement "if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }" if (parenthesized_expression "(0 < DAT_001514d8)" ( (binary_expression "0 < DAT_001514d8" number_literal < identifier) )) (compound_statement "{\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }" { (expression_statement "iVar8 = DAT_001514d8 * 4;" (assignment_expression "iVar8 = DAT_001514d8 * 4" identifier = (binary_expression "DAT_001514d8 * 4" identifier * number_literal)) ;) (expression_statement "puVar1 = DAT_001514e0 + DAT_001514d8;" (assignment_expression "puVar1 = DAT_001514e0 + DAT_001514d8" identifier = (binary_expression "DAT_001514e0 + DAT_001514d8" identifier + identifier)) ;) (expression_statement "puVar5 = DAT_001514e0;" (assignment_expression "puVar5 = DAT_001514e0" identifier = identifier) ;) (do_statement "do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);" do (compound_statement "{\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        }" { (expression_statement "uVar2 = *puVar5;" (assignment_expression "uVar2 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)pcVar6 = uVar2;" (assignment_expression "*(undefined4 *)pcVar6 = uVar2" (pointer_expression "*(undefined4 *)pcVar6" * (cast_expression "(undefined4 *)pcVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "pcVar6 = pcVar6 + 4;" (assignment_expression "pcVar6 = pcVar6 + 4" identifier = (binary_expression "pcVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != puVar5)" ( (binary_expression "puVar1 != puVar5" identifier != identifier) )) ;) (expression_statement "pcVar6 = pcVar7 + iVar8;" (assignment_expression "pcVar6 = pcVar7 + iVar8" identifier = (binary_expression "pcVar7 + iVar8" identifier + identifier)) ;) })) (expression_statement "pcVar6[0] = '\0';" (assignment_expression "pcVar6[0] = '\0'" (subscript_expression "pcVar6[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[1] = '\0';" (assignment_expression "pcVar6[1] = '\0'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[2] = '\0';" (assignment_expression "pcVar6[2] = '\0'" (subscript_expression "pcVar6[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[3] = '\0';" (assignment_expression "pcVar6[3] = '\0'" (subscript_expression "pcVar6[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }" else (compound_statement "{\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }" { (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }" if (parenthesized_expression "(iVar8 < 1)" ( (binary_expression "iVar8 < 1" identifier < number_literal) )) (compound_statement "{\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }" { (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" identifier = number_literal) ;) (expression_statement "DAT_00151478 = (char *)0x0;" (assignment_expression "DAT_00151478 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar7 = (char *)0x0;" (assignment_expression "pcVar7 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);" do (compound_statement "{\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      }" { (if_statement "if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }" if (parenthesized_expression "((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0))))" ( (binary_expression "(sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))" (parenthesized_expression "(sVar3 == 0)" ( (binary_expression "sVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))" ( (parenthesized_expression "(*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0))" ( (binary_expression "*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)" (binary_expression "*param_1 == *(char *)DAT_001514e0[iVar9]" (pointer_expression "*param_1" * identifier) == (pointer_expression "*(char *)DAT_001514e0[iVar9]" * (cast_expression "(char *)DAT_001514e0[iVar9]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_001514e0[iVar9]" identifier [ identifier ])))) && (parenthesized_expression "(iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)" ( (comma_expression "iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0" (assignment_expression "iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3)" identifier = (call_expression "strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3)" identifier (argument_list "(param_1,(char *)DAT_001514e0[iVar9],sVar3)" ( identifier , (cast_expression "(char *)DAT_001514e0[iVar9]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_001514e0[iVar9]" identifier [ identifier ])) , identifier )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }" { (if_statement "if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }" if (parenthesized_expression "(param_2 + -1 <= iVar8)" ( (binary_expression "param_2 + -1 <= iVar8" (binary_expression "param_2 + -1" identifier + number_literal) <= identifier) )) (compound_statement "{\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }" { (expression_statement "param_2 = param_2 + 0x10;" (assignment_expression "param_2 = param_2 + 0x10" identifier = (binary_expression "param_2 + 0x10" identifier + number_literal)) ;) (expression_statement "pcVar7 = (char *)strvec_resize(pcVar7,param_2);" (assignment_expression "pcVar7 = (char *)strvec_resize(pcVar7,param_2)" identifier = (cast_expression "(char *)strvec_resize(pcVar7,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strvec_resize(pcVar7,param_2)" identifier (argument_list "(pcVar7,param_2)" ( identifier , identifier ))))) ;) })) (expression_statement "*(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];" (assignment_expression "*(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9]" (pointer_expression "*(undefined4 *)(pcVar7 + iVar8 * 4)" * (cast_expression "(undefined4 *)(pcVar7 + iVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + iVar8 * 4)" ( (binary_expression "pcVar7 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) = (subscript_expression "DAT_001514e0[iVar9]" identifier [ identifier ])) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 < DAT_001514d8)" ( (binary_expression "iVar9 < DAT_001514d8" identifier < identifier) )) ;) (if_statement "if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }" { (expression_statement "pcVar6 = pcVar7 + iVar8 * 4;" (assignment_expression "pcVar6 = pcVar7 + iVar8 * 4" identifier = (binary_expression "pcVar7 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal))) ;) (expression_statement "pcVar6[0] = '\0';" (assignment_expression "pcVar6[0] = '\0'" (subscript_expression "pcVar6[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[1] = '\0';" (assignment_expression "pcVar6[1] = '\0'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[2] = '\0';" (assignment_expression "pcVar6[2] = '\0'" (subscript_expression "pcVar6[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[3] = '\0';" (assignment_expression "pcVar6[3] = '\0'" (subscript_expression "pcVar6[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" identifier = number_literal) ;) (expression_statement "DAT_00151478 = pcVar7;" (assignment_expression "DAT_00151478 = pcVar7" identifier = identifier) ;) (goto_statement "goto LAB_0008c2b0;" goto statement_identifier ;) })) }))) (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" identifier = number_literal) ;) (expression_statement "DAT_00151478 = pcVar7;" (assignment_expression "DAT_00151478 = pcVar7" identifier = identifier) ;) })) (labeled_statement "LAB_0008c2b0:\n  pcVar6 = DAT_00151478;" statement_identifier : (expression_statement "pcVar6 = DAT_00151478;" (assignment_expression "pcVar6 = DAT_00151478" identifier = identifier) ;)) (if_statement "if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }" if (parenthesized_expression "((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0))" ( (binary_expression "(DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)" (parenthesized_expression "(DAT_00151478 != (char *)0x0)" ( (binary_expression "DAT_00151478 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)" ( (comma_expression "pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0" (assignment_expression "pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4)" identifier = (pointer_expression "*(char **)(DAT_00151478 + DAT_0015146c * 4)" * (cast_expression "(char **)(DAT_00151478 + DAT_0015146c * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_00151478 + DAT_0015146c * 4)" ( (binary_expression "DAT_00151478 + DAT_0015146c * 4" identifier + (binary_expression "DAT_0015146c * 4" identifier * number_literal)) ))))) , (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }" { (expression_statement "sVar3 = strlen(pcVar6);" (assignment_expression "sVar3 = strlen(pcVar6)" identifier = (call_expression "strlen(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)xmalloc(sVar3 + 2);" (assignment_expression "pcVar6 = (char *)xmalloc(sVar3 + 2)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 2)" identifier (argument_list "(sVar3 + 2)" ( (binary_expression "sVar3 + 2" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = DAT_0015146c;" (assignment_expression "iVar8 = DAT_0015146c" identifier = identifier) ;) (expression_statement "*pcVar6 = (char)DAT_00151470;" (assignment_expression "*pcVar6 = (char)DAT_00151470" (pointer_expression "*pcVar6" * identifier) = (cast_expression "(char)DAT_00151470" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));" (call_expression "strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4))" identifier (argument_list "(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4))" ( (binary_expression "pcVar6 + DAT_00151474" identifier + identifier) , (pointer_expression "*(char **)(DAT_00151478 + iVar8 * 4)" * (cast_expression "(char **)(DAT_00151478 + iVar8 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_00151478 + iVar8 * 4)" ( (binary_expression "DAT_00151478 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) ))) ;) (expression_statement "DAT_0015146c = iVar8 + 1;" (assignment_expression "DAT_0015146c = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) })) (return_statement "return pcVar6;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * hostname_completion_function(char *text,int state)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  char **array;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (state == 0) {\n    if (hostname_completion_function::list != (char **)0x0) {\n      free(hostname_completion_function::list);\n    }\n    hostname_completion_function::list = (char **)0x0;\n    hostname_completion_function::first_char = (int)*text;\n    if (hostname_completion_function::first_char == 0x40) {\n      text = text + 1;\n    }\n    hostname_completion_function::first_char_loc =\n         (int)(hostname_completion_function::first_char == 0x40);\n    if ((hostname_list_initialized == 0) &&\n       (initialize_hostname_list(), hostname_list_initialized == 0)) {\n      hostname_completion_function::list = (char **)0x0;\n      hostname_completion_function::list_index = 0;\n      return (char *)0x0;\n    }\n    iVar7 = hostname_list_length;\n    if (*text == '\0') {\n      array = strvec_create(hostname_list_length + 1);\n      iVar7 = hostname_list_length;\n      ppcVar5 = array;\n      if (0 < hostname_list_length) {\n        ppcVar5 = hostname_list + hostname_list_length;\n        ppcVar4 = hostname_list;\n        ppcVar6 = array;\n        do {\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        } while (ppcVar5 != ppcVar4);\n        ppcVar5 = array + iVar7;\n      }\n      *ppcVar5 = (char *)0x0;\n    }\n    else {\n      sVar2 = strlen(text);\n      if (iVar7 < 1) {\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = (char **)0x0;\n        return (char *)0x0;\n      }\n      array = (char **)0x0;\n      iVar8 = 0;\n      iVar7 = 0;\n      do {\n        if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < hostname_list_length);\n      if (iVar7 != 0) {\n        array[iVar7] = (char *)0x0;\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = array;\n        goto LAB_0008c2b0;\n      }\n    }\n    hostname_completion_function::list_index = 0;\n    hostname_completion_function::list = array;\n  }\nLAB_0008c2b0:\n  ppcVar5 = hostname_completion_function::list;\n  if ((hostname_completion_function::list != (char **)0x0) &&\n     (ppcVar5 = (char **)hostname_completion_function::list\n                         [hostname_completion_function::list_index], ppcVar5 != (char **)0x0)) {\n    sVar2 = strlen((char *)ppcVar5);\n    ppcVar5 = (char **)xmalloc(sVar2 + 2);\n    iVar7 = hostname_completion_function::list_index;\n    *(char *)ppcVar5 = (char)hostname_completion_function::first_char;\n    strcpy((char *)(hostname_completion_function::first_char_loc + (int)ppcVar5),\n           hostname_completion_function::list[iVar7]);\n    hostname_completion_function::list_index = iVar7 + 1;\n  }\n  return (char *)ppcVar5;\n}\n\n" comment (function_definition "char * hostname_completion_function(char *text,int state)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  char **array;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (state == 0) {\n    if (hostname_completion_function::list != (char **)0x0) {\n      free(hostname_completion_function::list);\n    }\n    hostname_completion_function::list = (char **)0x0;\n    hostname_completion_function::first_char = (int)*text;\n    if (hostname_completion_function::first_char == 0x40) {\n      text = text + 1;\n    }\n    hostname_completion_function::first_char_loc =\n         (int)(hostname_completion_function::first_char == 0x40);\n    if ((hostname_list_initialized == 0) &&\n       (initialize_hostname_list(), hostname_list_initialized == 0)) {\n      hostname_completion_function::list = (char **)0x0;\n      hostname_completion_function::list_index = 0;\n      return (char *)0x0;\n    }\n    iVar7 = hostname_list_length;\n    if (*text == '\0') {\n      array = strvec_create(hostname_list_length + 1);\n      iVar7 = hostname_list_length;\n      ppcVar5 = array;\n      if (0 < hostname_list_length) {\n        ppcVar5 = hostname_list + hostname_list_length;\n        ppcVar4 = hostname_list;\n        ppcVar6 = array;\n        do {\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        } while (ppcVar5 != ppcVar4);\n        ppcVar5 = array + iVar7;\n      }\n      *ppcVar5 = (char *)0x0;\n    }\n    else {\n      sVar2 = strlen(text);\n      if (iVar7 < 1) {\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = (char **)0x0;\n        return (char *)0x0;\n      }\n      array = (char **)0x0;\n      iVar8 = 0;\n      iVar7 = 0;\n      do {\n        if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < hostname_list_length);\n      if (iVar7 != 0) {\n        array[iVar7] = (char *)0x0;\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = array;\n        goto LAB_0008c2b0;\n      }\n    }\n    hostname_completion_function::list_index = 0;\n    hostname_completion_function::list = array;\n  }\nLAB_0008c2b0:\n  ppcVar5 = hostname_completion_function::list;\n  if ((hostname_completion_function::list != (char **)0x0) &&\n     (ppcVar5 = (char **)hostname_completion_function::list\n                         [hostname_completion_function::list_index], ppcVar5 != (char **)0x0)) {\n    sVar2 = strlen((char *)ppcVar5);\n    ppcVar5 = (char **)xmalloc(sVar2 + 2);\n    iVar7 = hostname_completion_function::list_index;\n    *(char *)ppcVar5 = (char)hostname_completion_function::first_char;\n    strcpy((char *)(hostname_completion_function::first_char_loc + (int)ppcVar5),\n           hostname_completion_function::list[iVar7]);\n    hostname_completion_function::list_index = iVar7 + 1;\n  }\n  return (char *)ppcVar5;\n}" primitive_type (pointer_declarator "* hostname_completion_function(char *text,int state)" * (function_declarator "hostname_completion_function(char *text,int state)" identifier (parameter_list "(char *text,int state)" ( (parameter_declaration "char *text" primitive_type (pointer_declarator "*text" * identifier)) , (parameter_declaration "int state" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  char **array;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (state == 0) {\n    if (hostname_completion_function::list != (char **)0x0) {\n      free(hostname_completion_function::list);\n    }\n    hostname_completion_function::list = (char **)0x0;\n    hostname_completion_function::first_char = (int)*text;\n    if (hostname_completion_function::first_char == 0x40) {\n      text = text + 1;\n    }\n    hostname_completion_function::first_char_loc =\n         (int)(hostname_completion_function::first_char == 0x40);\n    if ((hostname_list_initialized == 0) &&\n       (initialize_hostname_list(), hostname_list_initialized == 0)) {\n      hostname_completion_function::list = (char **)0x0;\n      hostname_completion_function::list_index = 0;\n      return (char *)0x0;\n    }\n    iVar7 = hostname_list_length;\n    if (*text == '\0') {\n      array = strvec_create(hostname_list_length + 1);\n      iVar7 = hostname_list_length;\n      ppcVar5 = array;\n      if (0 < hostname_list_length) {\n        ppcVar5 = hostname_list + hostname_list_length;\n        ppcVar4 = hostname_list;\n        ppcVar6 = array;\n        do {\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        } while (ppcVar5 != ppcVar4);\n        ppcVar5 = array + iVar7;\n      }\n      *ppcVar5 = (char *)0x0;\n    }\n    else {\n      sVar2 = strlen(text);\n      if (iVar7 < 1) {\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = (char **)0x0;\n        return (char *)0x0;\n      }\n      array = (char **)0x0;\n      iVar8 = 0;\n      iVar7 = 0;\n      do {\n        if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < hostname_list_length);\n      if (iVar7 != 0) {\n        array[iVar7] = (char *)0x0;\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = array;\n        goto LAB_0008c2b0;\n      }\n    }\n    hostname_completion_function::list_index = 0;\n    hostname_completion_function::list = array;\n  }\nLAB_0008c2b0:\n  ppcVar5 = hostname_completion_function::list;\n  if ((hostname_completion_function::list != (char **)0x0) &&\n     (ppcVar5 = (char **)hostname_completion_function::list\n                         [hostname_completion_function::list_index], ppcVar5 != (char **)0x0)) {\n    sVar2 = strlen((char *)ppcVar5);\n    ppcVar5 = (char **)xmalloc(sVar2 + 2);\n    iVar7 = hostname_completion_function::list_index;\n    *(char *)ppcVar5 = (char)hostname_completion_function::first_char;\n    strcpy((char *)(hostname_completion_function::first_char_loc + (int)ppcVar5),\n           hostname_completion_function::list[iVar7]);\n    hostname_completion_function::list_index = iVar7 + 1;\n  }\n  return (char *)ppcVar5;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "char **ppcVar5;" primitive_type (pointer_declarator "**ppcVar5" * (pointer_declarator "*ppcVar5" * identifier)) ;) (declaration "char **array;" primitive_type (pointer_declarator "**array" * (pointer_declarator "*array" * identifier)) ;) (declaration "char **ppcVar6;" primitive_type (pointer_declarator "**ppcVar6" * (pointer_declarator "*ppcVar6" * identifier)) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (if_statement "if (state == 0) {\n    if (hostname_completion_function::list != (char **)0x0) {\n      free(hostname_completion_function::list);\n    }\n    hostname_completion_function::list = (char **)0x0;\n    hostname_completion_function::first_char = (int)*text;\n    if (hostname_completion_function::first_char == 0x40) {\n      text = text + 1;\n    }\n    hostname_completion_function::first_char_loc =\n         (int)(hostname_completion_function::first_char == 0x40);\n    if ((hostname_list_initialized == 0) &&\n       (initialize_hostname_list(), hostname_list_initialized == 0)) {\n      hostname_completion_function::list = (char **)0x0;\n      hostname_completion_function::list_index = 0;\n      return (char *)0x0;\n    }\n    iVar7 = hostname_list_length;\n    if (*text == '\0') {\n      array = strvec_create(hostname_list_length + 1);\n      iVar7 = hostname_list_length;\n      ppcVar5 = array;\n      if (0 < hostname_list_length) {\n        ppcVar5 = hostname_list + hostname_list_length;\n        ppcVar4 = hostname_list;\n        ppcVar6 = array;\n        do {\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        } while (ppcVar5 != ppcVar4);\n        ppcVar5 = array + iVar7;\n      }\n      *ppcVar5 = (char *)0x0;\n    }\n    else {\n      sVar2 = strlen(text);\n      if (iVar7 < 1) {\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = (char **)0x0;\n        return (char *)0x0;\n      }\n      array = (char **)0x0;\n      iVar8 = 0;\n      iVar7 = 0;\n      do {\n        if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < hostname_list_length);\n      if (iVar7 != 0) {\n        array[iVar7] = (char *)0x0;\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = array;\n        goto LAB_0008c2b0;\n      }\n    }\n    hostname_completion_function::list_index = 0;\n    hostname_completion_function::list = array;\n  }" if (parenthesized_expression "(state == 0)" ( (binary_expression "state == 0" identifier == number_literal) )) (compound_statement "{\n    if (hostname_completion_function::list != (char **)0x0) {\n      free(hostname_completion_function::list);\n    }\n    hostname_completion_function::list = (char **)0x0;\n    hostname_completion_function::first_char = (int)*text;\n    if (hostname_completion_function::first_char == 0x40) {\n      text = text + 1;\n    }\n    hostname_completion_function::first_char_loc =\n         (int)(hostname_completion_function::first_char == 0x40);\n    if ((hostname_list_initialized == 0) &&\n       (initialize_hostname_list(), hostname_list_initialized == 0)) {\n      hostname_completion_function::list = (char **)0x0;\n      hostname_completion_function::list_index = 0;\n      return (char *)0x0;\n    }\n    iVar7 = hostname_list_length;\n    if (*text == '\0') {\n      array = strvec_create(hostname_list_length + 1);\n      iVar7 = hostname_list_length;\n      ppcVar5 = array;\n      if (0 < hostname_list_length) {\n        ppcVar5 = hostname_list + hostname_list_length;\n        ppcVar4 = hostname_list;\n        ppcVar6 = array;\n        do {\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        } while (ppcVar5 != ppcVar4);\n        ppcVar5 = array + iVar7;\n      }\n      *ppcVar5 = (char *)0x0;\n    }\n    else {\n      sVar2 = strlen(text);\n      if (iVar7 < 1) {\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = (char **)0x0;\n        return (char *)0x0;\n      }\n      array = (char **)0x0;\n      iVar8 = 0;\n      iVar7 = 0;\n      do {\n        if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < hostname_list_length);\n      if (iVar7 != 0) {\n        array[iVar7] = (char *)0x0;\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = array;\n        goto LAB_0008c2b0;\n      }\n    }\n    hostname_completion_function::list_index = 0;\n    hostname_completion_function::list = array;\n  }" { (if_statement "if (hostname_completion_function::list != (char **)0x0) {\n      free(hostname_completion_function::list);\n    }" if (parenthesized_expression "(hostname_completion_function::list != (char **)0x0)" ( (binary_expression "hostname_completion_function::list != (char **)0x0" identifier (ERROR "::list" : : identifier) != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      free(hostname_completion_function::list);\n    }" { (labeled_statement "free(hostname_completion_function::list);" statement_identifier (ERROR "(hostname_completion_function:" ( (type_descriptor "hostname_completion_function" type_identifier) :) : (expression_statement "list);" identifier (ERROR ")" )) ;)) })) (labeled_statement "hostname_completion_function::list = (char **)0x0;" statement_identifier : (ERROR ":" :) (expression_statement "list = (char **)0x0;" (assignment_expression "list = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;)) (labeled_statement "hostname_completion_function::first_char = (int)*text;" statement_identifier : (ERROR ":" :) (expression_statement "first_char = (int)*text;" (assignment_expression "first_char = (int)*text" identifier = (cast_expression "(int)*text" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*text" * identifier))) ;)) (if_statement "if (hostname_completion_function::first_char == 0x40) {\n      text = text + 1;\n    }" if (parenthesized_expression "(hostname_completion_function::first_char == 0x40)" ( (binary_expression "hostname_completion_function::first_char == 0x40" identifier (ERROR "::first_char" : : identifier) == number_literal) )) (compound_statement "{\n      text = text + 1;\n    }" { (expression_statement "text = text + 1;" (assignment_expression "text = text + 1" identifier = (binary_expression "text + 1" identifier + number_literal)) ;) })) (labeled_statement "hostname_completion_function::first_char_loc =\n         (int)(hostname_completion_function::first_char == 0x40);" statement_identifier : (ERROR ":" :) (expression_statement "first_char_loc =\n         (int)(hostname_completion_function::first_char == 0x40);" (assignment_expression "first_char_loc =\n         (int)(hostname_completion_function::first_char == 0x40)" identifier = (cast_expression "(int)(hostname_completion_function::first_char == 0x40)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(hostname_completion_function::first_char == 0x40)" ( (binary_expression "hostname_completion_function::first_char == 0x40" identifier (ERROR "::first_char" : : identifier) == number_literal) )))) ;)) (if_statement "if ((hostname_list_initialized == 0) &&\n       (initialize_hostname_list(), hostname_list_initialized == 0)) {\n      hostname_completion_function::list = (char **)0x0;\n      hostname_completion_function::list_index = 0;\n      return (char *)0x0;\n    }" if (parenthesized_expression "((hostname_list_initialized == 0) &&\n       (initialize_hostname_list(), hostname_list_initialized == 0))" ( (binary_expression "(hostname_list_initialized == 0) &&\n       (initialize_hostname_list(), hostname_list_initialized == 0)" (parenthesized_expression "(hostname_list_initialized == 0)" ( (binary_expression "hostname_list_initialized == 0" identifier == number_literal) )) && (parenthesized_expression "(initialize_hostname_list(), hostname_list_initialized == 0)" ( (comma_expression "initialize_hostname_list(), hostname_list_initialized == 0" (call_expression "initialize_hostname_list()" identifier (argument_list "()" ( ))) , (binary_expression "hostname_list_initialized == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      hostname_completion_function::list = (char **)0x0;\n      hostname_completion_function::list_index = 0;\n      return (char *)0x0;\n    }" { (labeled_statement "hostname_completion_function::list = (char **)0x0;" statement_identifier : (ERROR ":" :) (expression_statement "list = (char **)0x0;" (assignment_expression "list = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;)) (labeled_statement "hostname_completion_function::list_index = 0;" statement_identifier : (ERROR ":" :) (expression_statement "list_index = 0;" (assignment_expression "list_index = 0" identifier = number_literal) ;)) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar7 = hostname_list_length;" (assignment_expression "iVar7 = hostname_list_length" identifier = identifier) ;) (if_statement "if (*text == '\0') {\n      array = strvec_create(hostname_list_length + 1);\n      iVar7 = hostname_list_length;\n      ppcVar5 = array;\n      if (0 < hostname_list_length) {\n        ppcVar5 = hostname_list + hostname_list_length;\n        ppcVar4 = hostname_list;\n        ppcVar6 = array;\n        do {\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        } while (ppcVar5 != ppcVar4);\n        ppcVar5 = array + iVar7;\n      }\n      *ppcVar5 = (char *)0x0;\n    }\n    else {\n      sVar2 = strlen(text);\n      if (iVar7 < 1) {\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = (char **)0x0;\n        return (char *)0x0;\n      }\n      array = (char **)0x0;\n      iVar8 = 0;\n      iVar7 = 0;\n      do {\n        if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < hostname_list_length);\n      if (iVar7 != 0) {\n        array[iVar7] = (char *)0x0;\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = array;\n        goto LAB_0008c2b0;\n      }\n    }" if (parenthesized_expression "(*text == '\0')" ( (binary_expression "*text == '\0'" (pointer_expression "*text" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      array = strvec_create(hostname_list_length + 1);\n      iVar7 = hostname_list_length;\n      ppcVar5 = array;\n      if (0 < hostname_list_length) {\n        ppcVar5 = hostname_list + hostname_list_length;\n        ppcVar4 = hostname_list;\n        ppcVar6 = array;\n        do {\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        } while (ppcVar5 != ppcVar4);\n        ppcVar5 = array + iVar7;\n      }\n      *ppcVar5 = (char *)0x0;\n    }" { (expression_statement "array = strvec_create(hostname_list_length + 1);" (assignment_expression "array = strvec_create(hostname_list_length + 1)" identifier = (call_expression "strvec_create(hostname_list_length + 1)" identifier (argument_list "(hostname_list_length + 1)" ( (binary_expression "hostname_list_length + 1" identifier + number_literal) )))) ;) (expression_statement "iVar7 = hostname_list_length;" (assignment_expression "iVar7 = hostname_list_length" identifier = identifier) ;) (expression_statement "ppcVar5 = array;" (assignment_expression "ppcVar5 = array" identifier = identifier) ;) (if_statement "if (0 < hostname_list_length) {\n        ppcVar5 = hostname_list + hostname_list_length;\n        ppcVar4 = hostname_list;\n        ppcVar6 = array;\n        do {\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        } while (ppcVar5 != ppcVar4);\n        ppcVar5 = array + iVar7;\n      }" if (parenthesized_expression "(0 < hostname_list_length)" ( (binary_expression "0 < hostname_list_length" number_literal < identifier) )) (compound_statement "{\n        ppcVar5 = hostname_list + hostname_list_length;\n        ppcVar4 = hostname_list;\n        ppcVar6 = array;\n        do {\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        } while (ppcVar5 != ppcVar4);\n        ppcVar5 = array + iVar7;\n      }" { (expression_statement "ppcVar5 = hostname_list + hostname_list_length;" (assignment_expression "ppcVar5 = hostname_list + hostname_list_length" identifier = (binary_expression "hostname_list + hostname_list_length" identifier + identifier)) ;) (expression_statement "ppcVar4 = hostname_list;" (assignment_expression "ppcVar4 = hostname_list" identifier = identifier) ;) (expression_statement "ppcVar6 = array;" (assignment_expression "ppcVar6 = array" identifier = identifier) ;) (do_statement "do {\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        } while (ppcVar5 != ppcVar4);" do (compound_statement "{\n          pcVar1 = *ppcVar4;\n          ppcVar4 = ppcVar4 + 1;\n          *ppcVar6 = pcVar1;\n          ppcVar6 = ppcVar6 + 1;\n        }" { (expression_statement "pcVar1 = *ppcVar4;" (assignment_expression "pcVar1 = *ppcVar4" identifier = (pointer_expression "*ppcVar4" * identifier)) ;) (expression_statement "ppcVar4 = ppcVar4 + 1;" (assignment_expression "ppcVar4 = ppcVar4 + 1" identifier = (binary_expression "ppcVar4 + 1" identifier + number_literal)) ;) (expression_statement "*ppcVar6 = pcVar1;" (assignment_expression "*ppcVar6 = pcVar1" (pointer_expression "*ppcVar6" * identifier) = identifier) ;) (expression_statement "ppcVar6 = ppcVar6 + 1;" (assignment_expression "ppcVar6 = ppcVar6 + 1" identifier = (binary_expression "ppcVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(ppcVar5 != ppcVar4)" ( (binary_expression "ppcVar5 != ppcVar4" identifier != identifier) )) ;) (expression_statement "ppcVar5 = array + iVar7;" (assignment_expression "ppcVar5 = array + iVar7" identifier = (binary_expression "array + iVar7" identifier + identifier)) ;) })) (expression_statement "*ppcVar5 = (char *)0x0;" (assignment_expression "*ppcVar5 = (char *)0x0" (pointer_expression "*ppcVar5" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      sVar2 = strlen(text);\n      if (iVar7 < 1) {\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = (char **)0x0;\n        return (char *)0x0;\n      }\n      array = (char **)0x0;\n      iVar8 = 0;\n      iVar7 = 0;\n      do {\n        if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < hostname_list_length);\n      if (iVar7 != 0) {\n        array[iVar7] = (char *)0x0;\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = array;\n        goto LAB_0008c2b0;\n      }\n    }" else (compound_statement "{\n      sVar2 = strlen(text);\n      if (iVar7 < 1) {\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = (char **)0x0;\n        return (char *)0x0;\n      }\n      array = (char **)0x0;\n      iVar8 = 0;\n      iVar7 = 0;\n      do {\n        if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < hostname_list_length);\n      if (iVar7 != 0) {\n        array[iVar7] = (char *)0x0;\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = array;\n        goto LAB_0008c2b0;\n      }\n    }" { (expression_statement "sVar2 = strlen(text);" (assignment_expression "sVar2 = strlen(text)" identifier = (call_expression "strlen(text)" identifier (argument_list "(text)" ( identifier )))) ;) (if_statement "if (iVar7 < 1) {\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = (char **)0x0;\n        return (char *)0x0;\n      }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = (char **)0x0;\n        return (char *)0x0;\n      }" { (labeled_statement "hostname_completion_function::list_index = 0;" statement_identifier : (ERROR ":" :) (expression_statement "list_index = 0;" (assignment_expression "list_index = 0" identifier = number_literal) ;)) (labeled_statement "hostname_completion_function::list = (char **)0x0;" statement_identifier : (ERROR ":" :) (expression_statement "list = (char **)0x0;" (assignment_expression "list = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;)) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "array = (char **)0x0;" (assignment_expression "array = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < hostname_list_length);" do (compound_statement "{\n        if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }\n        iVar8 = iVar8 + 1;\n      }" { (if_statement "if ((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))) {\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }" if (parenthesized_expression "((sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0))))" ( (binary_expression "(sVar2 == 0) ||\n           ((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))" (parenthesized_expression "(sVar2 == 0)" ( (binary_expression "sVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "((*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)))" ( (parenthesized_expression "(*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0))" ( (binary_expression "*text == *hostname_list[iVar8] &&\n            (iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)" (binary_expression "*text == *hostname_list[iVar8]" (pointer_expression "*text" * identifier) == (pointer_expression "*hostname_list[iVar8]" * (subscript_expression "hostname_list[iVar8]" identifier [ identifier ]))) && (parenthesized_expression "(iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0)" ( (comma_expression "iVar3 = strncmp(text,hostname_list[iVar8],sVar2), iVar3 == 0" (assignment_expression "iVar3 = strncmp(text,hostname_list[iVar8],sVar2)" identifier = (call_expression "strncmp(text,hostname_list[iVar8],sVar2)" identifier (argument_list "(text,hostname_list[iVar8],sVar2)" ( identifier , (subscript_expression "hostname_list[iVar8]" identifier [ identifier ]) , identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n          if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }\n          array[iVar7] = hostname_list[iVar8];\n          iVar7 = iVar7 + 1;\n        }" { (if_statement "if (state + -1 <= iVar7) {\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }" if (parenthesized_expression "(state + -1 <= iVar7)" ( (binary_expression "state + -1 <= iVar7" (binary_expression "state + -1" identifier + number_literal) <= identifier) )) (compound_statement "{\n            state = state + 0x10;\n            array = strvec_resize(array,state);\n          }" { (expression_statement "state = state + 0x10;" (assignment_expression "state = state + 0x10" identifier = (binary_expression "state + 0x10" identifier + number_literal)) ;) (expression_statement "array = strvec_resize(array,state);" (assignment_expression "array = strvec_resize(array,state)" identifier = (call_expression "strvec_resize(array,state)" identifier (argument_list "(array,state)" ( identifier , identifier )))) ;) })) (expression_statement "array[iVar7] = hostname_list[iVar8];" (assignment_expression "array[iVar7] = hostname_list[iVar8]" (subscript_expression "array[iVar7]" identifier [ identifier ]) = (subscript_expression "hostname_list[iVar8]" identifier [ identifier ])) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 < hostname_list_length)" ( (binary_expression "iVar8 < hostname_list_length" identifier < identifier) )) ;) (if_statement "if (iVar7 != 0) {\n        array[iVar7] = (char *)0x0;\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = array;\n        goto LAB_0008c2b0;\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        array[iVar7] = (char *)0x0;\n        hostname_completion_function::list_index = 0;\n        hostname_completion_function::list = array;\n        goto LAB_0008c2b0;\n      }" { (expression_statement "array[iVar7] = (char *)0x0;" (assignment_expression "array[iVar7] = (char *)0x0" (subscript_expression "array[iVar7]" identifier [ identifier ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "hostname_completion_function::list_index = 0;" statement_identifier : (ERROR ":" :) (expression_statement "list_index = 0;" (assignment_expression "list_index = 0" identifier = number_literal) ;)) (labeled_statement "hostname_completion_function::list = array;" statement_identifier : (ERROR ":" :) (expression_statement "list = array;" (assignment_expression "list = array" identifier = identifier) ;)) (goto_statement "goto LAB_0008c2b0;" goto statement_identifier ;) })) }))) (labeled_statement "hostname_completion_function::list_index = 0;" statement_identifier : (ERROR ":" :) (expression_statement "list_index = 0;" (assignment_expression "list_index = 0" identifier = number_literal) ;)) (labeled_statement "hostname_completion_function::list = array;" statement_identifier : (ERROR ":" :) (expression_statement "list = array;" (assignment_expression "list = array" identifier = identifier) ;)) })) (labeled_statement "LAB_0008c2b0:\n  ppcVar5 = hostname_completion_function::list;" statement_identifier : (expression_statement "ppcVar5 = hostname_completion_function::list;" (assignment_expression "ppcVar5 = hostname_completion_function" identifier = identifier) (ERROR "::list" : : identifier) ;)) (if_statement "if ((hostname_completion_function::list != (char **)0x0) &&\n     (ppcVar5 = (char **)hostname_completion_function::list\n                         [hostname_completion_function::list_index], ppcVar5 != (char **)0x0)) {\n    sVar2 = strlen((char *)ppcVar5);\n    ppcVar5 = (char **)xmalloc(sVar2 + 2);\n    iVar7 = hostname_completion_function::list_index;\n    *(char *)ppcVar5 = (char)hostname_completion_function::first_char;\n    strcpy((char *)(hostname_completion_function::first_char_loc + (int)ppcVar5),\n           hostname_completion_function::list[iVar7]);\n    hostname_completion_function::list_index = iVar7 + 1;\n  }" if (parenthesized_expression "((hostname_completion_function::list != (char **)0x0) &&\n     (ppcVar5 = (char **)hostname_completion_function::list\n                         [hostname_completion_function::list_index], ppcVar5 != (char **)0x0))" ( (binary_expression "(hostname_completion_function::list != (char **)0x0) &&\n     (ppcVar5 = (char **)hostname_completion_function::list\n                         [hostname_completion_function::list_index], ppcVar5 != (char **)0x0)" (parenthesized_expression "(hostname_completion_function::list != (char **)0x0)" ( (binary_expression "hostname_completion_function::list != (char **)0x0" identifier (ERROR "::list" : : identifier) != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) && (parenthesized_expression "(ppcVar5 = (char **)hostname_completion_function::list\n                         [hostname_completion_function::list_index], ppcVar5 != (char **)0x0)" ( (comma_expression "ppcVar5 = (char **)hostname_completion_function::list\n                         [hostname_completion_function::list_index], ppcVar5 != (char **)0x0" (subscript_expression "ppcVar5 = (char **)hostname_completion_function::list\n                         [hostname_completion_function::list_index]" (assignment_expression "ppcVar5 = (char **)hostname_completion_function" identifier = (cast_expression "(char **)hostname_completion_function" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) (ERROR "::list" : : identifier) [ identifier (ERROR "::list_index" : : identifier) ]) , (binary_expression "ppcVar5 != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal))) ))) )) (compound_statement "{\n    sVar2 = strlen((char *)ppcVar5);\n    ppcVar5 = (char **)xmalloc(sVar2 + 2);\n    iVar7 = hostname_completion_function::list_index;\n    *(char *)ppcVar5 = (char)hostname_completion_function::first_char;\n    strcpy((char *)(hostname_completion_function::first_char_loc + (int)ppcVar5),\n           hostname_completion_function::list[iVar7]);\n    hostname_completion_function::list_index = iVar7 + 1;\n  }" { (expression_statement "sVar2 = strlen((char *)ppcVar5);" (assignment_expression "sVar2 = strlen((char *)ppcVar5)" identifier = (call_expression "strlen((char *)ppcVar5)" identifier (argument_list "((char *)ppcVar5)" ( (cast_expression "(char *)ppcVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "ppcVar5 = (char **)xmalloc(sVar2 + 2);" (assignment_expression "ppcVar5 = (char **)xmalloc(sVar2 + 2)" identifier = (cast_expression "(char **)xmalloc(sVar2 + 2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(sVar2 + 2)" identifier (argument_list "(sVar2 + 2)" ( (binary_expression "sVar2 + 2" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = hostname_completion_function::list_index;" (assignment_expression "iVar7 = hostname_completion_function" identifier = identifier) (ERROR "::list_index" : : identifier) ;) (expression_statement "*(char *)ppcVar5 = (char)hostname_completion_function::first_char;" (assignment_expression "*(char *)ppcVar5 = (char)hostname_completion_function" (pointer_expression "*(char *)ppcVar5" * (cast_expression "(char *)ppcVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(char)hostname_completion_function" ( (type_descriptor "char" primitive_type) ) identifier)) (ERROR "::first_char" : : identifier) ;) (expression_statement "strcpy((char *)(hostname_completion_function::first_char_loc + (int)ppcVar5),\n           hostname_completion_function::list[iVar7]);" (call_expression "strcpy((char *)(hostname_completion_function::first_char_loc + (int)ppcVar5),\n           hostname_completion_function::list[iVar7])" identifier (argument_list "((char *)(hostname_completion_function::first_char_loc + (int)ppcVar5),\n           hostname_completion_function::list[iVar7])" ( (cast_expression "(char *)(hostname_completion_function::first_char_loc + (int)ppcVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(hostname_completion_function::first_char_loc + (int)ppcVar5)" ( (binary_expression "hostname_completion_function::first_char_loc + (int)ppcVar5" identifier (ERROR "::first_char_loc" : : identifier) + (cast_expression "(int)ppcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , (subscript_expression "hostname_completion_function::list[iVar7]" identifier (ERROR "::list" : : identifier) [ identifier ]) ))) ;) (labeled_statement "hostname_completion_function::list_index = iVar7 + 1;" statement_identifier : (ERROR ":" :) (expression_statement "list_index = iVar7 + 1;" (assignment_expression "list_index = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) })) (return_statement "return (char *)ppcVar5;" return (cast_expression "(char *)ppcVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "char * FUN_0008c100(char *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }\nLAB_0008c2b0:\n  pcVar6 = DAT_00151478;\n  if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }\n  return pcVar6;\n}\n\n" (function_definition "char * FUN_0008c100(char *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }\nLAB_0008c2b0:\n  pcVar6 = DAT_00151478;\n  if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }\n  return pcVar6;\n}" primitive_type (pointer_declarator "* FUN_0008c100(char *param_1,int param_2)" * (function_declarator "FUN_0008c100(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }\nLAB_0008c2b0:\n  pcVar6 = DAT_00151478;\n  if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }\n  return pcVar6;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }" { (if_statement "if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }" if (parenthesized_expression "(DAT_00151478 != (char *)0x0)" ( (binary_expression "DAT_00151478 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(DAT_00151478);\n    }" { (expression_statement "free(DAT_00151478);" (call_expression "free(DAT_00151478)" identifier (argument_list "(DAT_00151478)" ( identifier ))) ;) })) (expression_statement "DAT_00151478 = (char *)0x0;" (assignment_expression "DAT_00151478 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_00151470 = (int)*param_1;" (assignment_expression "DAT_00151470 = (int)*param_1" identifier = (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }" if (parenthesized_expression "(DAT_00151470 == 0x40)" ( (binary_expression "DAT_00151470 == 0x40" identifier == number_literal) )) (compound_statement "{\n      param_1 = param_1 + 1;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "DAT_00151474 = (uint)(DAT_00151470 == 0x40);" (assignment_expression "DAT_00151474 = (uint)(DAT_00151470 == 0x40)" identifier = (call_expression "(uint)(DAT_00151470 == 0x40)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00151470 == 0x40)" ( (binary_expression "DAT_00151470 == 0x40" identifier == number_literal) )))) ;) (if_statement "if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }" if (parenthesized_expression "((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0))" ( (binary_expression "(hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)" (parenthesized_expression "(hostname_list_initialized == 0)" ( (binary_expression "hostname_list_initialized == 0" identifier == number_literal) )) && (parenthesized_expression "(FUN_0008c0a0(), hostname_list_initialized == 0)" ( (comma_expression "FUN_0008c0a0(), hostname_list_initialized == 0" (call_expression "FUN_0008c0a0()" identifier (argument_list "()" ( ))) , (binary_expression "hostname_list_initialized == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }" { (expression_statement "DAT_00151478 = (char *)0x0;" (assignment_expression "DAT_00151478 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" identifier = number_literal) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar8 = DAT_001514d8;" (assignment_expression "iVar8 = DAT_001514d8" identifier = identifier) ;) (if_statement "if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }" if (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }" { (expression_statement "pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);" (assignment_expression "pcVar7 = (char *)strvec_create(DAT_001514d8 + 1)" identifier = (cast_expression "(char *)strvec_create(DAT_001514d8 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strvec_create(DAT_001514d8 + 1)" identifier (argument_list "(DAT_001514d8 + 1)" ( (binary_expression "DAT_001514d8 + 1" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = pcVar7;" (assignment_expression "pcVar6 = pcVar7" identifier = identifier) ;) (if_statement "if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }" if (parenthesized_expression "(0 < DAT_001514d8)" ( (binary_expression "0 < DAT_001514d8" number_literal < identifier) )) (compound_statement "{\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }" { (expression_statement "iVar8 = DAT_001514d8 * 4;" (assignment_expression "iVar8 = DAT_001514d8 * 4" identifier = (binary_expression "DAT_001514d8 * 4" identifier * number_literal)) ;) (expression_statement "puVar1 = DAT_001514e0 + DAT_001514d8;" (assignment_expression "puVar1 = DAT_001514e0 + DAT_001514d8" identifier = (binary_expression "DAT_001514e0 + DAT_001514d8" identifier + identifier)) ;) (expression_statement "puVar5 = DAT_001514e0;" (assignment_expression "puVar5 = DAT_001514e0" identifier = identifier) ;) (do_statement "do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);" do (compound_statement "{\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        }" { (expression_statement "uVar2 = *puVar5;" (assignment_expression "uVar2 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)pcVar6 = uVar2;" (assignment_expression "*(undefined4 *)pcVar6 = uVar2" (pointer_expression "*(undefined4 *)pcVar6" * (cast_expression "(undefined4 *)pcVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "pcVar6 = pcVar6 + 4;" (assignment_expression "pcVar6 = pcVar6 + 4" identifier = (binary_expression "pcVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != puVar5)" ( (binary_expression "puVar1 != puVar5" identifier != identifier) )) ;) (expression_statement "pcVar6 = pcVar7 + iVar8;" (assignment_expression "pcVar6 = pcVar7 + iVar8" identifier = (binary_expression "pcVar7 + iVar8" identifier + identifier)) ;) })) (expression_statement "pcVar6[0] = '\0';" (assignment_expression "pcVar6[0] = '\0'" (subscript_expression "pcVar6[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[1] = '\0';" (assignment_expression "pcVar6[1] = '\0'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[2] = '\0';" (assignment_expression "pcVar6[2] = '\0'" (subscript_expression "pcVar6[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[3] = '\0';" (assignment_expression "pcVar6[3] = '\0'" (subscript_expression "pcVar6[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }" else (compound_statement "{\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }" { (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }" if (parenthesized_expression "(iVar8 < 1)" ( (binary_expression "iVar8 < 1" identifier < number_literal) )) (compound_statement "{\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }" { (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" identifier = number_literal) ;) (expression_statement "DAT_00151478 = (char *)0x0;" (assignment_expression "DAT_00151478 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar7 = (char *)0x0;" (assignment_expression "pcVar7 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);" do (compound_statement "{\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      }" { (if_statement "if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }" if (parenthesized_expression "((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0))))" ( (binary_expression "(sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))" (parenthesized_expression "(sVar3 == 0)" ( (binary_expression "sVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))" ( (parenthesized_expression "(*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0))" ( (binary_expression "*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)" (binary_expression "*param_1 == *(char *)DAT_001514e0[iVar9]" (pointer_expression "*param_1" * identifier) == (pointer_expression "*(char *)DAT_001514e0[iVar9]" * (cast_expression "(char *)DAT_001514e0[iVar9]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_001514e0[iVar9]" identifier [ identifier ])))) && (parenthesized_expression "(iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)" ( (comma_expression "iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0" (assignment_expression "iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3)" identifier = (call_expression "strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3)" identifier (argument_list "(param_1,(char *)DAT_001514e0[iVar9],sVar3)" ( identifier , (cast_expression "(char *)DAT_001514e0[iVar9]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_001514e0[iVar9]" identifier [ identifier ])) , identifier )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }" { (if_statement "if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }" if (parenthesized_expression "(param_2 + -1 <= iVar8)" ( (binary_expression "param_2 + -1 <= iVar8" (binary_expression "param_2 + -1" identifier + number_literal) <= identifier) )) (compound_statement "{\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }" { (expression_statement "param_2 = param_2 + 0x10;" (assignment_expression "param_2 = param_2 + 0x10" identifier = (binary_expression "param_2 + 0x10" identifier + number_literal)) ;) (expression_statement "pcVar7 = (char *)strvec_resize(pcVar7,param_2);" (assignment_expression "pcVar7 = (char *)strvec_resize(pcVar7,param_2)" identifier = (cast_expression "(char *)strvec_resize(pcVar7,param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strvec_resize(pcVar7,param_2)" identifier (argument_list "(pcVar7,param_2)" ( identifier , identifier ))))) ;) })) (expression_statement "*(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];" (assignment_expression "*(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9]" (pointer_expression "*(undefined4 *)(pcVar7 + iVar8 * 4)" * (cast_expression "(undefined4 *)(pcVar7 + iVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + iVar8 * 4)" ( (binary_expression "pcVar7 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) = (subscript_expression "DAT_001514e0[iVar9]" identifier [ identifier ])) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 < DAT_001514d8)" ( (binary_expression "iVar9 < DAT_001514d8" identifier < identifier) )) ;) (if_statement "if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }" { (expression_statement "pcVar6 = pcVar7 + iVar8 * 4;" (assignment_expression "pcVar6 = pcVar7 + iVar8 * 4" identifier = (binary_expression "pcVar7 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal))) ;) (expression_statement "pcVar6[0] = '\0';" (assignment_expression "pcVar6[0] = '\0'" (subscript_expression "pcVar6[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[1] = '\0';" (assignment_expression "pcVar6[1] = '\0'" (subscript_expression "pcVar6[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[2] = '\0';" (assignment_expression "pcVar6[2] = '\0'" (subscript_expression "pcVar6[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6[3] = '\0';" (assignment_expression "pcVar6[3] = '\0'" (subscript_expression "pcVar6[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" identifier = number_literal) ;) (expression_statement "DAT_00151478 = pcVar7;" (assignment_expression "DAT_00151478 = pcVar7" identifier = identifier) ;) (goto_statement "goto LAB_0008c2b0;" goto statement_identifier ;) })) }))) (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" identifier = number_literal) ;) (expression_statement "DAT_00151478 = pcVar7;" (assignment_expression "DAT_00151478 = pcVar7" identifier = identifier) ;) })) (labeled_statement "LAB_0008c2b0:\n  pcVar6 = DAT_00151478;" statement_identifier : (expression_statement "pcVar6 = DAT_00151478;" (assignment_expression "pcVar6 = DAT_00151478" identifier = identifier) ;)) (if_statement "if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }" if (parenthesized_expression "((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0))" ( (binary_expression "(DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)" (parenthesized_expression "(DAT_00151478 != (char *)0x0)" ( (binary_expression "DAT_00151478 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)" ( (comma_expression "pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0" (assignment_expression "pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4)" identifier = (pointer_expression "*(char **)(DAT_00151478 + DAT_0015146c * 4)" * (cast_expression "(char **)(DAT_00151478 + DAT_0015146c * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_00151478 + DAT_0015146c * 4)" ( (binary_expression "DAT_00151478 + DAT_0015146c * 4" identifier + (binary_expression "DAT_0015146c * 4" identifier * number_literal)) ))))) , (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }" { (expression_statement "sVar3 = strlen(pcVar6);" (assignment_expression "sVar3 = strlen(pcVar6)" identifier = (call_expression "strlen(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)xmalloc(sVar3 + 2);" (assignment_expression "pcVar6 = (char *)xmalloc(sVar3 + 2)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 2)" identifier (argument_list "(sVar3 + 2)" ( (binary_expression "sVar3 + 2" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = DAT_0015146c;" (assignment_expression "iVar8 = DAT_0015146c" identifier = identifier) ;) (expression_statement "*pcVar6 = (char)DAT_00151470;" (assignment_expression "*pcVar6 = (char)DAT_00151470" (pointer_expression "*pcVar6" * identifier) = (cast_expression "(char)DAT_00151470" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));" (call_expression "strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4))" identifier (argument_list "(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4))" ( (binary_expression "pcVar6 + DAT_00151474" identifier + identifier) , (pointer_expression "*(char **)(DAT_00151478 + iVar8 * 4)" * (cast_expression "(char **)(DAT_00151478 + iVar8 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_00151478 + iVar8 * 4)" ( (binary_expression "DAT_00151478 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) ))) ;) (expression_statement "DAT_0015146c = iVar8 + 1;" (assignment_expression "DAT_0015146c = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) })) (return_statement "return pcVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (call_expression IDENT (argument_list ( ))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (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 *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ IDENT ])))) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ IDENT ])) , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "char * FUN_0008c100(char *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }\nLAB_0008c2b0:\n  pcVar6 = DAT_00151478;\n  if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }\n  return pcVar6;\n}" (primitive_type "char") (pointer_declarator "* FUN_0008c100(char *param_1,int param_2)" (* "*") (function_declarator "FUN_0008c100(char *param_1,int param_2)" (identifier "FUN_0008c100") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }\nLAB_0008c2b0:\n  pcVar6 = DAT_00151478;\n  if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }\n  return pcVar6;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (if_statement "if (param_2 == 0) {\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }\n    DAT_00151478 = (char *)0x0;\n    DAT_00151470 = (int)*param_1;\n    if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }\n    DAT_00151474 = (uint)(DAT_00151470 == 0x40);\n    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }\n    iVar8 = DAT_001514d8;\n    if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }\n    DAT_0015146c = 0;\n    DAT_00151478 = pcVar7;\n  }" ({ "{") (if_statement "if (DAT_00151478 != (char *)0x0) {\n      free(DAT_00151478);\n    }" (if "if") (parenthesized_expression "(DAT_00151478 != (char *)0x0)" (( "(") (binary_expression "DAT_00151478 != (char *)0x0" (identifier "DAT_00151478") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      free(DAT_00151478);\n    }" ({ "{") (expression_statement "free(DAT_00151478);" (call_expression "free(DAT_00151478)" (identifier "free") (argument_list "(DAT_00151478)" (( "(") (identifier "DAT_00151478") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_00151478 = (char *)0x0;" (assignment_expression "DAT_00151478 = (char *)0x0" (identifier "DAT_00151478") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "DAT_00151470 = (int)*param_1;" (assignment_expression "DAT_00151470 = (int)*param_1" (identifier "DAT_00151470") (= "=") (cast_expression "(int)*param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (DAT_00151470 == 0x40) {\n      param_1 = param_1 + 1;\n    }" (if "if") (parenthesized_expression "(DAT_00151470 == 0x40)" (( "(") (binary_expression "DAT_00151470 == 0x40" (identifier "DAT_00151470") (== "==") (number_literal "0x40")) () ")")) (compound_statement "{\n      param_1 = param_1 + 1;\n    }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "DAT_00151474 = (uint)(DAT_00151470 == 0x40);" (assignment_expression "DAT_00151474 = (uint)(DAT_00151470 == 0x40)" (identifier "DAT_00151474") (= "=") (call_expression "(uint)(DAT_00151470 == 0x40)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_00151470 == 0x40)" (( "(") (binary_expression "DAT_00151470 == 0x40" (identifier "DAT_00151470") (== "==") (number_literal "0x40")) () ")")))) (; ";")) (if_statement "if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }" (if "if") (parenthesized_expression "((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0))" (( "(") (binary_expression "(hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)" (parenthesized_expression "(hostname_list_initialized == 0)" (( "(") (binary_expression "hostname_list_initialized == 0" (identifier "hostname_list_initialized") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(FUN_0008c0a0(), hostname_list_initialized == 0)" (( "(") (comma_expression "FUN_0008c0a0(), hostname_list_initialized == 0" (call_expression "FUN_0008c0a0()" (identifier "FUN_0008c0a0") (argument_list "()" (( "(") () ")"))) (, ",") (binary_expression "hostname_list_initialized == 0" (identifier "hostname_list_initialized") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      DAT_00151478 = (char *)0x0;\n      DAT_0015146c = 0;\n      return (char *)0x0;\n    }" ({ "{") (expression_statement "DAT_00151478 = (char *)0x0;" (assignment_expression "DAT_00151478 = (char *)0x0" (identifier "DAT_00151478") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" (identifier "DAT_0015146c") (= "=") (number_literal "0")) (; ";")) (return_statement "return (char *)0x0;" (return "return") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "iVar8 = DAT_001514d8;" (assignment_expression "iVar8 = DAT_001514d8" (identifier "iVar8") (= "=") (identifier "DAT_001514d8")) (; ";")) (if_statement "if (*param_1 == '\0') {\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }\n    else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }" (if "if") (parenthesized_expression "(*param_1 == '\0')" (( "(") (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);\n      pcVar6 = pcVar7;\n      if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }\n      pcVar6[0] = '\0';\n      pcVar6[1] = '\0';\n      pcVar6[2] = '\0';\n      pcVar6[3] = '\0';\n    }" ({ "{") (expression_statement "pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);" (assignment_expression "pcVar7 = (char *)strvec_create(DAT_001514d8 + 1)" (identifier "pcVar7") (= "=") (cast_expression "(char *)strvec_create(DAT_001514d8 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "strvec_create(DAT_001514d8 + 1)" (identifier "strvec_create") (argument_list "(DAT_001514d8 + 1)" (( "(") (binary_expression "DAT_001514d8 + 1" (identifier "DAT_001514d8") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "pcVar6 = pcVar7;" (assignment_expression "pcVar6 = pcVar7" (identifier "pcVar6") (= "=") (identifier "pcVar7")) (; ";")) (if_statement "if (0 < DAT_001514d8) {\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }" (if "if") (parenthesized_expression "(0 < DAT_001514d8)" (( "(") (binary_expression "0 < DAT_001514d8" (number_literal "0") (< "<") (identifier "DAT_001514d8")) () ")")) (compound_statement "{\n        iVar8 = DAT_001514d8 * 4;\n        puVar1 = DAT_001514e0 + DAT_001514d8;\n        puVar5 = DAT_001514e0;\n        do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);\n        pcVar6 = pcVar7 + iVar8;\n      }" ({ "{") (expression_statement "iVar8 = DAT_001514d8 * 4;" (assignment_expression "iVar8 = DAT_001514d8 * 4" (identifier "iVar8") (= "=") (binary_expression "DAT_001514d8 * 4" (identifier "DAT_001514d8") (* "*") (number_literal "4"))) (; ";")) (expression_statement "puVar1 = DAT_001514e0 + DAT_001514d8;" (assignment_expression "puVar1 = DAT_001514e0 + DAT_001514d8" (identifier "puVar1") (= "=") (binary_expression "DAT_001514e0 + DAT_001514d8" (identifier "DAT_001514e0") (+ "+") (identifier "DAT_001514d8"))) (; ";")) (expression_statement "puVar5 = DAT_001514e0;" (assignment_expression "puVar5 = DAT_001514e0" (identifier "puVar5") (= "=") (identifier "DAT_001514e0")) (; ";")) (do_statement "do {\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        } while (puVar1 != puVar5);" (do "do") (compound_statement "{\n          uVar2 = *puVar5;\n          puVar5 = puVar5 + 1;\n          *(undefined4 *)pcVar6 = uVar2;\n          pcVar6 = pcVar6 + 4;\n        }" ({ "{") (expression_statement "uVar2 = *puVar5;" (assignment_expression "uVar2 = *puVar5" (identifier "uVar2") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)pcVar6 = uVar2;" (assignment_expression "*(undefined4 *)pcVar6 = uVar2" (pointer_expression "*(undefined4 *)pcVar6" (* "*") (cast_expression "(undefined4 *)pcVar6" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pcVar6"))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "pcVar6 = pcVar6 + 4;" (assignment_expression "pcVar6 = pcVar6 + 4" (identifier "pcVar6") (= "=") (binary_expression "pcVar6 + 4" (identifier "pcVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != puVar5)" (( "(") (binary_expression "puVar1 != puVar5" (identifier "puVar1") (!= "!=") (identifier "puVar5")) () ")")) (; ";")) (expression_statement "pcVar6 = pcVar7 + iVar8;" (assignment_expression "pcVar6 = pcVar7 + iVar8" (identifier "pcVar6") (= "=") (binary_expression "pcVar7 + iVar8" (identifier "pcVar7") (+ "+") (identifier "iVar8"))) (; ";")) (} "}"))) (expression_statement "pcVar6[0] = '\0';" (assignment_expression "pcVar6[0] = '\0'" (subscript_expression "pcVar6[0]" (identifier "pcVar6") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar6[1] = '\0';" (assignment_expression "pcVar6[1] = '\0'" (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar6[2] = '\0';" (assignment_expression "pcVar6[2] = '\0'" (subscript_expression "pcVar6[2]" (identifier "pcVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar6[3] = '\0';" (assignment_expression "pcVar6[3] = '\0'" (subscript_expression "pcVar6[3]" (identifier "pcVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }" (else "else") (compound_statement "{\n      sVar3 = strlen(param_1);\n      if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }\n      pcVar7 = (char *)0x0;\n      iVar9 = 0;\n      iVar8 = 0;\n      do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);\n      if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }\n    }" ({ "{") (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" (identifier "sVar3") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar8 < 1) {\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }" (if "if") (parenthesized_expression "(iVar8 < 1)" (( "(") (binary_expression "iVar8 < 1" (identifier "iVar8") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        DAT_0015146c = 0;\n        DAT_00151478 = (char *)0x0;\n        return (char *)0x0;\n      }" ({ "{") (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" (identifier "DAT_0015146c") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_00151478 = (char *)0x0;" (assignment_expression "DAT_00151478 = (char *)0x0" (identifier "DAT_00151478") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (return_statement "return (char *)0x0;" (return "return") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "pcVar7 = (char *)0x0;" (assignment_expression "pcVar7 = (char *)0x0" (identifier "pcVar7") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < DAT_001514d8);" (do "do") (compound_statement "{\n        if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }\n        iVar9 = iVar9 + 1;\n      }" ({ "{") (if_statement "if ((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }" (if "if") (parenthesized_expression "((sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0))))" (( "(") (binary_expression "(sVar3 == 0) ||\n           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))" (parenthesized_expression "(sVar3 == 0)" (( "(") (binary_expression "sVar3 == 0" (identifier "sVar3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))" (( "(") (parenthesized_expression "(*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0))" (( "(") (binary_expression "*param_1 == *(char *)DAT_001514e0[iVar9] &&\n            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)" (binary_expression "*param_1 == *(char *)DAT_001514e0[iVar9]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (pointer_expression "*(char *)DAT_001514e0[iVar9]" (* "*") (cast_expression "(char *)DAT_001514e0[iVar9]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "DAT_001514e0[iVar9]" (identifier "DAT_001514e0") ([ "[") (identifier "iVar9") (] "]"))))) (&& "&&") (parenthesized_expression "(iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)" (( "(") (comma_expression "iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0" (assignment_expression "iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3)" (identifier "iVar4") (= "=") (call_expression "strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3)" (identifier "strncmp") (argument_list "(param_1,(char *)DAT_001514e0[iVar9],sVar3)" (( "(") (identifier "param_1") (, ",") (cast_expression "(char *)DAT_001514e0[iVar9]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "DAT_001514e0[iVar9]" (identifier "DAT_001514e0") ([ "[") (identifier "iVar9") (] "]"))) (, ",") (identifier "sVar3") () ")")))) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n          if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }\n          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];\n          iVar8 = iVar8 + 1;\n        }" ({ "{") (if_statement "if (param_2 + -1 <= iVar8) {\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }" (if "if") (parenthesized_expression "(param_2 + -1 <= iVar8)" (( "(") (binary_expression "param_2 + -1 <= iVar8" (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1")) (<= "<=") (identifier "iVar8")) () ")")) (compound_statement "{\n            param_2 = param_2 + 0x10;\n            pcVar7 = (char *)strvec_resize(pcVar7,param_2);\n          }" ({ "{") (expression_statement "param_2 = param_2 + 0x10;" (assignment_expression "param_2 = param_2 + 0x10" (identifier "param_2") (= "=") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "pcVar7 = (char *)strvec_resize(pcVar7,param_2);" (assignment_expression "pcVar7 = (char *)strvec_resize(pcVar7,param_2)" (identifier "pcVar7") (= "=") (cast_expression "(char *)strvec_resize(pcVar7,param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "strvec_resize(pcVar7,param_2)" (identifier "strvec_resize") (argument_list "(pcVar7,param_2)" (( "(") (identifier "pcVar7") (, ",") (identifier "param_2") () ")"))))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];" (assignment_expression "*(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9]" (pointer_expression "*(undefined4 *)(pcVar7 + iVar8 * 4)" (* "*") (cast_expression "(undefined4 *)(pcVar7 + iVar8 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar7 + iVar8 * 4)" (( "(") (binary_expression "pcVar7 + iVar8 * 4" (identifier "pcVar7") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")")))) (= "=") (subscript_expression "DAT_001514e0[iVar9]" (identifier "DAT_001514e0") ([ "[") (identifier "iVar9") (] "]"))) (; ";")) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar9 < DAT_001514d8)" (( "(") (binary_expression "iVar9 < DAT_001514d8" (identifier "iVar9") (< "<") (identifier "DAT_001514d8")) () ")")) (; ";")) (if_statement "if (iVar8 != 0) {\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar6 = pcVar7 + iVar8 * 4;\n        pcVar6[0] = '\0';\n        pcVar6[1] = '\0';\n        pcVar6[2] = '\0';\n        pcVar6[3] = '\0';\n        DAT_0015146c = 0;\n        DAT_00151478 = pcVar7;\n        goto LAB_0008c2b0;\n      }" ({ "{") (expression_statement "pcVar6 = pcVar7 + iVar8 * 4;" (assignment_expression "pcVar6 = pcVar7 + iVar8 * 4" (identifier "pcVar6") (= "=") (binary_expression "pcVar7 + iVar8 * 4" (identifier "pcVar7") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4")))) (; ";")) (expression_statement "pcVar6[0] = '\0';" (assignment_expression "pcVar6[0] = '\0'" (subscript_expression "pcVar6[0]" (identifier "pcVar6") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar6[1] = '\0';" (assignment_expression "pcVar6[1] = '\0'" (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar6[2] = '\0';" (assignment_expression "pcVar6[2] = '\0'" (subscript_expression "pcVar6[2]" (identifier "pcVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar6[3] = '\0';" (assignment_expression "pcVar6[3] = '\0'" (subscript_expression "pcVar6[3]" (identifier "pcVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" (identifier "DAT_0015146c") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_00151478 = pcVar7;" (assignment_expression "DAT_00151478 = pcVar7" (identifier "DAT_00151478") (= "=") (identifier "pcVar7")) (; ";")) (goto_statement "goto LAB_0008c2b0;" (goto "goto") (statement_identifier "LAB_0008c2b0") (; ";")) (} "}"))) (} "}")))) (expression_statement "DAT_0015146c = 0;" (assignment_expression "DAT_0015146c = 0" (identifier "DAT_0015146c") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_00151478 = pcVar7;" (assignment_expression "DAT_00151478 = pcVar7" (identifier "DAT_00151478") (= "=") (identifier "pcVar7")) (; ";")) (} "}"))) (labeled_statement "LAB_0008c2b0:\n  pcVar6 = DAT_00151478;" (statement_identifier "LAB_0008c2b0") (: ":") (expression_statement "pcVar6 = DAT_00151478;" (assignment_expression "pcVar6 = DAT_00151478" (identifier "pcVar6") (= "=") (identifier "DAT_00151478")) (; ";"))) (if_statement "if ((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }" (if "if") (parenthesized_expression "((DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0))" (( "(") (binary_expression "(DAT_00151478 != (char *)0x0) &&\n     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)" (parenthesized_expression "(DAT_00151478 != (char *)0x0)" (( "(") (binary_expression "DAT_00151478 != (char *)0x0" (identifier "DAT_00151478") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)" (( "(") (comma_expression "pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0" (assignment_expression "pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4)" (identifier "pcVar6") (= "=") (pointer_expression "*(char **)(DAT_00151478 + DAT_0015146c * 4)" (* "*") (cast_expression "(char **)(DAT_00151478 + DAT_0015146c * 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_00151478 + DAT_0015146c * 4)" (( "(") (binary_expression "DAT_00151478 + DAT_0015146c * 4" (identifier "DAT_00151478") (+ "+") (binary_expression "DAT_0015146c * 4" (identifier "DAT_0015146c") (* "*") (number_literal "4"))) () ")"))))) (, ",") (binary_expression "pcVar6 != (char *)0x0" (identifier "pcVar6") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    sVar3 = strlen(pcVar6);\n    pcVar6 = (char *)xmalloc(sVar3 + 2);\n    iVar8 = DAT_0015146c;\n    *pcVar6 = (char)DAT_00151470;\n    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));\n    DAT_0015146c = iVar8 + 1;\n  }" ({ "{") (expression_statement "sVar3 = strlen(pcVar6);" (assignment_expression "sVar3 = strlen(pcVar6)" (identifier "sVar3") (= "=") (call_expression "strlen(pcVar6)" (identifier "strlen") (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")")))) (; ";")) (expression_statement "pcVar6 = (char *)xmalloc(sVar3 + 2);" (assignment_expression "pcVar6 = (char *)xmalloc(sVar3 + 2)" (identifier "pcVar6") (= "=") (cast_expression "(char *)xmalloc(sVar3 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar3 + 2)" (identifier "xmalloc") (argument_list "(sVar3 + 2)" (( "(") (binary_expression "sVar3 + 2" (identifier "sVar3") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "iVar8 = DAT_0015146c;" (assignment_expression "iVar8 = DAT_0015146c" (identifier "iVar8") (= "=") (identifier "DAT_0015146c")) (; ";")) (expression_statement "*pcVar6 = (char)DAT_00151470;" (assignment_expression "*pcVar6 = (char)DAT_00151470" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (= "=") (cast_expression "(char)DAT_00151470" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "DAT_00151470"))) (; ";")) (expression_statement "strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));" (call_expression "strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4))" (identifier "strcpy") (argument_list "(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4))" (( "(") (binary_expression "pcVar6 + DAT_00151474" (identifier "pcVar6") (+ "+") (identifier "DAT_00151474")) (, ",") (pointer_expression "*(char **)(DAT_00151478 + iVar8 * 4)" (* "*") (cast_expression "(char **)(DAT_00151478 + iVar8 * 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_00151478 + iVar8 * 4)" (( "(") (binary_expression "DAT_00151478 + iVar8 * 4" (identifier "DAT_00151478") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")")))) () ")"))) (; ";")) (expression_statement "DAT_0015146c = iVar8 + 1;" (assignment_expression "DAT_0015146c = iVar8 + 1" (identifier "DAT_0015146c") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return pcVar6;" (return "return") (identifier "pcVar6") (; ";")) (} "}")))

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

char * function_1(char *var_2,int var_1)

{
  char *pcVar1;
  size_t var_14;
  int var_16;
  char **var_8;
  char **var_10;
  char **var_11;
  char **var_9;
  int var_12;
  int var_18;
  
  if (var_1 == 0) {
    if (function_1::list != (char **)0x0) {
      free(function_1::list);
    }
    hostname_completion_function::list = (char **)0x0;
    hostname_completion_function::first_char = (int)*var_2;
    if (function_1::first_char == 0x40) {
      var_2 = var_2 + 1;
    }
    hostname_completion_function::first_char_loc =
         (int)(function_1::first_char == 0x40);
    if ((var_3 == 0) &&
       (var_4(), var_3 == 0)) {
      hostname_completion_function::list = (char **)0x0;
      hostname_completion_function::list_index = 0;
      return (char *)0x0;
    }
    var_12 = var_6;
    if (*var_2 == '\0') {
      var_11 = var_5(var_6 + 1);
      var_12 = var_6;
      var_10 = var_11;
      if (0 < var_6) {
        var_10 = var_7 + var_6;
        var_8 = var_7;
        var_9 = var_11;
        do {
          pcVar1 = *var_8;
          var_8 = var_8 + 1;
          *var_9 = pcVar1;
          var_9 = var_9 + 1;
        } while (var_10 != var_8);
        var_10 = var_11 + var_12;
      }
      *var_10 = (char *)0x0;
    }
    else {
      var_14 = var_13(var_2);
      if (var_12 < 1) {
        hostname_completion_function::list_index = 0;
        hostname_completion_function::list = (char **)0x0;
        return (char *)0x0;
      }
      var_11 = (char **)0x0;
      var_18 = 0;
      var_12 = 0;
      do {
        if ((var_14 == 0) ||
           ((*var_2 == *var_7[var_18] &&
            (var_16 = var_15(var_2,var_7[var_18],var_14), var_16 == 0)))) {
          if (var_1 + -1 <= var_12) {
            var_1 = var_1 + 0x10;
            var_11 = var_17(var_11,var_1);
          }
          var_11[var_12] = var_7[var_18];
          var_12 = var_12 + 1;
        }
        var_18 = var_18 + 1;
      } while (var_18 < var_6);
      if (var_12 != 0) {
        var_11[var_12] = (char *)0x0;
        hostname_completion_function::list_index = 0;
        hostname_completion_function::list = var_11;
        goto LAB_0008c2b0;
      }
    }
    hostname_completion_function::list_index = 0;
    hostname_completion_function::list = var_11;
  }
LAB_0008c2b0:
  var_10 = function_1::list;
  if ((function_1::list != (char **)0x0) &&
     (var_10 = (char **)function_1::list
                         [function_1::list_index], var_10 != (char **)0x0)) {
    var_14 = var_13((char *)var_10);
    var_10 = (char **)var_19(var_14 + 2);
    var_12 = function_1::list_index;
    *(char *)var_10 = (char)function_1::first_char;
    var_20((char *)(function_1::first_char_loc + (int)var_10),
           function_1::list[var_12]);
    hostname_completion_function::list_index = var_12 + 1;
  }
  return (char *)var_10;
}


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

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

char * MASKED(char *param_1,int param_2)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  size_t sVar3;
  int iVar4;
  undefined4 *puVar5;
  char *pcVar6;
  char *pcVar7;
  int iVar8;
  int iVar9;
  
  if (param_2 == 0) {
    if (DAT_00151478 != (char *)0x0) {
      free(DAT_00151478);
    }
    DAT_00151478 = (char *)0x0;
    DAT_00151470 = (int)*param_1;
    if (DAT_00151470 == 0x40) {
      param_1 = param_1 + 1;
    }
    DAT_00151474 = (uint)(DAT_00151470 == 0x40);
    if ((hostname_list_initialized == 0) && (FUN_0008c0a0(), hostname_list_initialized == 0)) {
      DAT_00151478 = (char *)0x0;
      DAT_0015146c = 0;
      return (char *)0x0;
    }
    iVar8 = DAT_001514d8;
    if (*param_1 == '\0') {
      pcVar7 = (char *)strvec_create(DAT_001514d8 + 1);
      pcVar6 = pcVar7;
      if (0 < DAT_001514d8) {
        iVar8 = DAT_001514d8 * 4;
        puVar1 = DAT_001514e0 + DAT_001514d8;
        puVar5 = DAT_001514e0;
        do {
          uVar2 = *puVar5;
          puVar5 = puVar5 + 1;
          *(undefined4 *)pcVar6 = uVar2;
          pcVar6 = pcVar6 + 4;
        } while (puVar1 != puVar5);
        pcVar6 = pcVar7 + iVar8;
      }
      pcVar6[0] = '\0';
      pcVar6[1] = '\0';
      pcVar6[2] = '\0';
      pcVar6[3] = '\0';
    }
    else {
      sVar3 = strlen(param_1);
      if (iVar8 < 1) {
        DAT_0015146c = 0;
        DAT_00151478 = (char *)0x0;
        return (char *)0x0;
      }
      pcVar7 = (char *)0x0;
      iVar9 = 0;
      iVar8 = 0;
      do {
        if ((sVar3 == 0) ||
           ((*param_1 == *(char *)DAT_001514e0[iVar9] &&
            (iVar4 = strncmp(param_1,(char *)DAT_001514e0[iVar9],sVar3), iVar4 == 0)))) {
          if (param_2 + -1 <= iVar8) {
            param_2 = param_2 + 0x10;
            pcVar7 = (char *)strvec_resize(pcVar7,param_2);
          }
          *(undefined4 *)(pcVar7 + iVar8 * 4) = DAT_001514e0[iVar9];
          iVar8 = iVar8 + 1;
        }
        iVar9 = iVar9 + 1;
      } while (iVar9 < DAT_001514d8);
      if (iVar8 != 0) {
        pcVar6 = pcVar7 + iVar8 * 4;
        pcVar6[0] = '\0';
        pcVar6[1] = '\0';
        pcVar6[2] = '\0';
        pcVar6[3] = '\0';
        DAT_0015146c = 0;
        DAT_00151478 = pcVar7;
        goto LAB_0008c2b0;
      }
    }
    DAT_0015146c = 0;
    DAT_00151478 = pcVar7;
  }
LAB_0008c2b0:
  pcVar6 = DAT_00151478;
  if ((DAT_00151478 != (char *)0x0) &&
     (pcVar6 = *(char **)(DAT_00151478 + DAT_0015146c * 4), pcVar6 != (char *)0x0)) {
    sVar3 = strlen(pcVar6);
    pcVar6 = (char *)xmalloc(sVar3 + 2);
    iVar8 = DAT_0015146c;
    *pcVar6 = (char)DAT_00151470;
    strcpy(pcVar6 + DAT_00151474,*(char **)(DAT_00151478 + iVar8 * 4));
    DAT_0015146c = iVar8 + 1;
  }
  return pcVar6;
}

