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

bfd_boolean pr_method_type(void *p,bfd_boolean domain,int argcount,bfd_boolean varargs)

{
  char *pcVar1;
  size_t sVar2;
  char *pcVar3;
  bfd_boolean bVar4;
  byte *pbVar5;
  undefined4 *puVar6;
  int iVar7;
  byte *pbVar8;
  int iVar9;
  byte *pbVar10;
  bool bVar11;
  bool bVar12;
  byte bVar13;
  undefined4 *local_28;
  byte *local_20;
  
  bVar13 = 0;
  iVar9 = 10;
  local_20 = (byte *)0x0;
  if (domain == 0) goto LAB_0003798b;
  bVar4 = substitute_type((pr_handle *)p,"");
  if (bVar4 == 0) {
    return 0;
  }
  pbVar5 = (byte *)pop_type((pr_handle *)((int)p + 8));
  bVar11 = false;
  bVar12 = pbVar5 == (byte *)0x0;
  if (bVar12) {
    return 0;
  }
  iVar9 = 6;
  pbVar8 = pbVar5;
  pbVar10 = (byte *)0x57243;
  do {
    if (iVar9 == 0) break;
    iVar9 = iVar9 + -1;
    bVar11 = *pbVar8 < *pbVar10;
    bVar12 = *pbVar8 == *pbVar10;
    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;
    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;
  } while (bVar12);
  bVar11 = (!bVar11 && !bVar12) == bVar11;
  if (bVar11) {
    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);
    bVar11 = pcVar1 == (char *)0x0;
    local_20 = pbVar5 + 6;
    if (!bVar11) goto LAB_00037b99;
  }
  else {
LAB_00037b99:
    bVar12 = false;
    iVar9 = 0xc;
    pbVar8 = pbVar5;
    pbVar10 = (byte *)"union class ";
    do {
      if (iVar9 == 0) break;
      iVar9 = iVar9 + -1;
      bVar12 = *pbVar8 < *pbVar10;
      bVar11 = *pbVar8 == *pbVar10;
      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;
      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;
    } while (bVar11);
    local_20 = pbVar5;
    if ((!bVar12 && !bVar11) == bVar12) {
      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);
      local_20 = pbVar5 + 0xc;
      if (pcVar1 != (char *)0x0) {
        local_20 = pbVar5;
      }
    }
  }
  sVar2 = strlen((char *)local_20);
  iVar9 = sVar2 + 10;
LAB_0003798b:
  if (argcount < 1) {
    local_28 = (undefined4 *)0x0;
    iVar9 = iVar9 + 0xf;
  }
  else {
    local_28 = (undefined4 *)xmalloc(argcount << 2);
    iVar7 = argcount + -1;
    do {
      bVar4 = substitute_type((pr_handle *)p,"");
      if (bVar4 == 0) {
        free(local_28);
        return 0;
      }
      pcVar1 = pop_type((pr_handle *)((int)p + 8));
      local_28[iVar7] = pcVar1;
      if (pcVar1 == (char *)0x0) {
        free(local_28);
        return 0;
      }
      iVar7 = iVar7 + -1;
      sVar2 = strlen(pcVar1);
      iVar9 = iVar9 + 2 + sVar2;
    } while (iVar7 != -1);
    if (varargs != 0) {
      iVar9 = iVar9 + 5;
    }
  }
  pcVar1 = (char *)xmalloc(iVar9);
  if (domain == 0) {
    *pcVar1 = '\0';
  }
  else {
    strcpy(pcVar1,(char *)local_20);
  }
  sVar2 = strlen(pcVar1);
  builtin_strncpy(pcVar1 + sVar2,"::| (",6);
  if (argcount < 0) {
    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);
  }
  else if (argcount == 0) {
    if (varargs != 0) {
      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);
    }
  }
  else {
    puVar6 = local_28;
    while( true ) {
      sVar2 = strlen(pcVar1);
      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);
      if (local_28 + argcount == puVar6 + 1) break;
      pcVar3[2] = '\0';
      pcVar3[0] = ',';
      pcVar3[1] = ' ';
      puVar6 = puVar6 + 1;
    }
    if (varargs != 0) {
      builtin_strncpy(pcVar3,", ...",6);
    }
    free(local_28);
  }
  sVar2 = strlen(pcVar1);
  (pcVar1 + sVar2)[0] = ')';
  (pcVar1 + sVar2)[1] = '\0';
  bVar4 = substitute_type((pr_handle *)p,pcVar1);
  if (bVar4 == 0) {
    return 0;
  }
  free(pcVar1);
  return 1;
}



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

undefined4 FUN_00037960(undefined4 param_1,int param_2,int param_3,int param_4)

{
  char *pcVar1;
  size_t sVar2;
  char *pcVar3;
  int iVar4;
  byte *pbVar5;
  undefined4 *puVar6;
  int iVar7;
  byte *pbVar8;
  int iVar9;
  byte *pbVar10;
  bool bVar11;
  bool bVar12;
  byte bVar13;
  undefined4 *local_28;
  byte *local_20;
  
  bVar13 = 0;
  iVar9 = 10;
  local_20 = (byte *)0x0;
  if (param_2 == 0) goto LAB_0003798b;
  iVar9 = FUN_00037630();
  if (iVar9 == 0) {
    return 0;
  }
  pbVar5 = (byte *)FUN_00036d90();
  bVar11 = false;
  bVar12 = pbVar5 == (byte *)0x0;
  if (bVar12) {
    return 0;
  }
  iVar9 = 6;
  pbVar8 = pbVar5;
  pbVar10 = (byte *)0x57243;
  do {
    if (iVar9 == 0) break;
    iVar9 = iVar9 + -1;
    bVar11 = *pbVar8 < *pbVar10;
    bVar12 = *pbVar8 == *pbVar10;
    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;
    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;
  } while (bVar12);
  bVar11 = (!bVar11 && !bVar12) == bVar11;
  if (bVar11) {
    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);
    bVar11 = pcVar1 == (char *)0x0;
    local_20 = pbVar5 + 6;
    if (!bVar11) goto LAB_00037b99;
  }
  else {
LAB_00037b99:
    bVar12 = false;
    iVar9 = 0xc;
    pbVar8 = pbVar5;
    pbVar10 = (byte *)"union class ";
    do {
      if (iVar9 == 0) break;
      iVar9 = iVar9 + -1;
      bVar12 = *pbVar8 < *pbVar10;
      bVar11 = *pbVar8 == *pbVar10;
      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;
      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;
    } while (bVar11);
    local_20 = pbVar5;
    if ((!bVar12 && !bVar11) == bVar12) {
      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);
      local_20 = pbVar5 + 0xc;
      if (pcVar1 != (char *)0x0) {
        local_20 = pbVar5;
      }
    }
  }
  sVar2 = strlen((char *)local_20);
  iVar9 = sVar2 + 10;
LAB_0003798b:
  if (param_3 < 1) {
    local_28 = (undefined4 *)0x0;
    iVar9 = iVar9 + 0xf;
  }
  else {
    local_28 = (undefined4 *)xmalloc(param_3 << 2);
    iVar7 = param_3 + -1;
    do {
      iVar4 = FUN_00037630();
      if (iVar4 == 0) {
        free(local_28);
        return 0;
      }
      pcVar1 = (char *)FUN_00036d90();
      local_28[iVar7] = pcVar1;
      if (pcVar1 == (char *)0x0) {
        free(local_28);
        return 0;
      }
      iVar7 = iVar7 + -1;
      sVar2 = strlen(pcVar1);
      iVar9 = iVar9 + 2 + sVar2;
    } while (iVar7 != -1);
    if (param_4 != 0) {
      iVar9 = iVar9 + 5;
    }
  }
  pcVar1 = (char *)xmalloc(iVar9);
  if (param_2 == 0) {
    *pcVar1 = '\0';
  }
  else {
    strcpy(pcVar1,(char *)local_20);
  }
  sVar2 = strlen(pcVar1);
  builtin_strncpy(pcVar1 + sVar2,"::| (",6);
  if (param_3 < 0) {
    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);
  }
  else if (param_3 == 0) {
    if (param_4 != 0) {
      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);
    }
  }
  else {
    puVar6 = local_28;
    while( true ) {
      sVar2 = strlen(pcVar1);
      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);
      if (local_28 + param_3 == puVar6 + 1) break;
      pcVar3[2] = '\0';
      pcVar3[0] = ',';
      pcVar3[1] = ' ';
      puVar6 = puVar6 + 1;
    }
    if (param_4 != 0) {
      builtin_strncpy(pcVar3,", ...",6);
    }
    free(local_28);
  }
  sVar2 = strlen(pcVar1);
  (pcVar1 + sVar2)[0] = ')';
  (pcVar1 + sVar2)[1] = '\0';
  iVar9 = FUN_00037630();
  if (iVar9 == 0) {
    return 0;
  }
  free(pcVar1);
  return 1;
}


PUSH EBP
PUSH EDI
MOV EDI,0xa
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x3b692
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],0x0
TEST EAX,EAX
JNZ 0x00037b18
MOV EBP,dword ptr [ESP + 0x38]
TEST EBP,EBP
JG 0x00037a90
MOV dword ptr [ESP + 0x4],0x0
ADD EDI,0xf
SUB ESP,0xc
PUSH EDI
CALL 0x000142b0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x34]
MOV EDI,EAX
TEST ECX,ECX
JNZ 0x00037bf0
MOV byte ptr [EAX],0x0
SUB ESP,0xc
MOV EBP,0x28
PUSH EDI
CALL 0x00014480
ADD ESP,0x10
LEA EDX,[EDI + EAX*0x1]
MOV dword ptr [EDX],0x207c3a3a
MOV word ptr [EDX + 0x4],BP
MOV EDX,dword ptr [ESP + 0x38]
TEST EDX,EDX
JS 0x00037c08
JZ 0x00037c70
MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x38]
MOV ESI,EAX
LEA EBP,[EAX + EDX*0x4]
JMP 0x00037a0c
MOV EDX,0x202c
MOV byte ptr [EAX + 0x2],0x0
MOV word ptr [EAX],DX
SUB ESP,0xc
ADD ESI,0x4
PUSH EDI
CALL 0x00014480
POP EDX
POP ECX
PUSH dword ptr [ESI + -0x4]
ADD EAX,EDI
PUSH EAX
CALL 0x00014200
ADD ESP,0x10
CMP EBP,ESI
JNZ 0x00037a00
MOV ESI,dword ptr [ESP + 0x3c]
TEST ESI,ESI
JNZ 0x00037b38
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x00014120
ADD ESP,0x10
SUB ESP,0xc
PUSH EDI
CALL 0x00014480
MOV EDX,0x29
ADD ESP,0x10
MOV word ptr [EDI + EAX*0x1],DX
MOV EAX,dword ptr [ESP + 0x30]
MOV EDX,EDI
CALL 0x00037630
TEST EAX,EAX
JZ 0x00037b2b
SUB ESP,0xc
PUSH EDI
CALL 0x00014120
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EBP,[EBX + 0xfffdca07]
MOV EAX,dword ptr [ESP + 0x44]
SHL EAX,0x2
PUSH EAX
CALL 0x000142b0
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [ESP + 0x48]
ADD ESP,0x10
LEA ESI,[EAX + -0x1]
MOV EAX,dword ptr [ESP + 0x30]
ADD EAX,0x8
MOV dword ptr [ESP + 0x8],EAX
NOP
MOV EAX,dword ptr [ESP + 0x30]
MOV EDX,EBP
CALL 0x00037630
TEST EAX,EAX
JZ 0x00037c30
MOV EAX,dword ptr [ESP + 0x8]
CALL 0x00036d90
MOV ECX,dword ptr [ESP + 0x4]
MOV dword ptr [ECX + ESI*0x4],EAX
TEST EAX,EAX
JZ 0x00037c50
SUB ESP,0xc
SUB ESI,0x1
PUSH EAX
CALL 0x00014480
ADD ESP,0x10
LEA EDI,[EDI + EAX*0x1 + 0x2]
CMP ESI,-0x1
JNZ 0x00037ac0
MOV ESI,dword ptr [ESP + 0x3c]
LEA EAX,[EDI + 0x5]
TEST ESI,ESI
CMOVNZ EDI,EAX
JMP 0x000379a2
MOV EAX,dword ptr [ESP + 0x30]
LEA EDX,[EBX + 0xfffdca07]
CALL 0x00037630
TEST EAX,EAX
JNZ 0x00037b50
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,0x202c
MOV dword ptr [EAX + 0x2],0x2e2e2e
MOV word ptr [EAX],CX
JMP 0x00037a38
MOV EAX,dword ptr [ESP + 0x30]
ADD EAX,0x8
CALL 0x00036d90
MOV ESI,EAX
MOV dword ptr [ESP + 0xc],EAX
TEST EAX,EAX
JZ 0x00037b2b
MOV ECX,0x6
LEA EDI,[EBX + 0xfffe4243]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x00037b99
MOV ESI,dword ptr [ESP + 0xc]
SUB ESP,0x8
PUSH 0x20
ADD ESI,0x6
PUSH ESI
CALL 0x00014450
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00037c64
MOV ESI,dword ptr [ESP + 0xc]
MOV ECX,0xc
LEA EDI,[EBX + 0xfffe423d]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x00037bd1
MOV EDI,dword ptr [ESP + 0xc]
SUB ESP,0x8
PUSH 0x20
LEA ESI,[EDI + 0xc]
PUSH ESI
CALL 0x00014450
ADD ESP,0x10
TEST EAX,EAX
CMOVNZ ESI,EDI
MOV dword ptr [ESP + 0xc],ESI
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x00014480
ADD ESP,0x10
LEA EDI,[EAX + 0xa]
JMP 0x0003798b
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH EAX
CALL 0x00014320
ADD ESP,0x10
JMP 0x000379bf
LEA EAX,[EDI + EAX*0x1 + 0x5]
MOV ECX,0x2f
MOV dword ptr [EAX],0x75202a2f
MOV dword ptr [EAX + 0x4],0x6f6e6b6e
MOV dword ptr [EAX + 0x8],0x2a206e77
MOV word ptr [EAX + 0xc],CX
JMP 0x00037a47
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x00014120
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x00014120
ADD ESP,0x10
JMP 0x00037b2b
MOV dword ptr [ESP + 0xc],ESI
JMP 0x00037bd1
MOV ESI,dword ptr [ESP + 0x3c]
TEST ESI,ESI
JZ 0x00037a47
MOV dword ptr [EDI + EAX*0x1 + 0x5],0x2e2e2e
JMP 0x00037a47
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00037960(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (param_2 == 0) goto LAB_0003798b;\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)FUN_00036d90();\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00037960(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (param_2 == 0) goto LAB_0003798b;\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)FUN_00036d90();\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}" type_identifier (function_declarator "FUN_00037960(undefined4 param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (param_2 == 0) goto LAB_0003798b;\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)FUN_00036d90();\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "byte *pbVar10;" type_identifier (pointer_declarator "*pbVar10" * identifier) ;) (declaration "bool bVar11;" primitive_type identifier ;) (declaration "bool bVar12;" primitive_type identifier ;) (declaration "byte bVar13;" type_identifier identifier ;) (declaration "undefined4 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "byte *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "bVar13 = 0;" (assignment_expression "bVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 10;" (assignment_expression "iVar9 = 10" identifier = number_literal) ;) (expression_statement "local_20 = (byte *)0x0;" (assignment_expression "local_20 = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_2 == 0) goto LAB_0003798b;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003798b;" goto statement_identifier ;)) (expression_statement "iVar9 = FUN_00037630();" (assignment_expression "iVar9 = FUN_00037630()" identifier = (call_expression "FUN_00037630()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar9 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar5 = (byte *)FUN_00036d90();" (assignment_expression "pbVar5 = (byte *)FUN_00036d90()" identifier = (cast_expression "(byte *)FUN_00036d90()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) ;) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "bVar12 = pbVar5 == (byte *)0x0;" (assignment_expression "bVar12 = pbVar5 == (byte *)0x0" identifier = (binary_expression "pbVar5 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (bVar12) {\n    return 0;\n  }" if (parenthesized_expression "(bVar12)" ( identifier )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar9 = 6;" (assignment_expression "iVar9 = 6" identifier = number_literal) ;) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" identifier = identifier) ;) (expression_statement "pbVar10 = (byte *)0x57243;" (assignment_expression "pbVar10 = (byte *)0x57243" identifier = (cast_expression "(byte *)0x57243" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);" do (compound_statement "{\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  }" { (if_statement "if (iVar9 == 0) break;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (expression_statement "bVar11 = *pbVar8 < *pbVar10;" (assignment_expression "bVar11 = *pbVar8 < *pbVar10" identifier = (binary_expression "*pbVar8 < *pbVar10" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "bVar12 = *pbVar8 == *pbVar10;" (assignment_expression "bVar12 = *pbVar8 == *pbVar10" identifier = (binary_expression "*pbVar8 == *pbVar10" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar12)" ( identifier )) ;) (expression_statement "bVar11 = (!bVar11 && !bVar12) == bVar11;" (assignment_expression "bVar11 = (!bVar11 && !bVar12) == bVar11" identifier = (binary_expression "(!bVar11 && !bVar12) == bVar11" (parenthesized_expression "(!bVar11 && !bVar12)" ( (binary_expression "!bVar11 && !bVar12" (unary_expression "!bVar11" ! identifier) && (unary_expression "!bVar12" ! identifier)) )) == identifier)) ;) (if_statement "if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }" { (expression_statement "pcVar1 = strchr((char *)(pbVar5 + 6),0x20);" (assignment_expression "pcVar1 = strchr((char *)(pbVar5 + 6),0x20)" identifier = (call_expression "strchr((char *)(pbVar5 + 6),0x20)" identifier (argument_list "((char *)(pbVar5 + 6),0x20)" ( (cast_expression "(char *)(pbVar5 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar5 + 6)" ( (binary_expression "pbVar5 + 6" identifier + number_literal) ))) , number_literal )))) ;) (expression_statement "bVar11 = pcVar1 == (char *)0x0;" (assignment_expression "bVar11 = pcVar1 == (char *)0x0" identifier = (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "local_20 = pbVar5 + 6;" (assignment_expression "local_20 = pbVar5 + 6" identifier = (binary_expression "pbVar5 + 6" identifier + number_literal)) ;) (if_statement "if (!bVar11) goto LAB_00037b99;" if (parenthesized_expression "(!bVar11)" ( (unary_expression "!bVar11" ! identifier) )) (goto_statement "goto LAB_00037b99;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" else (compound_statement "{\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" { (labeled_statement "LAB_00037b99:\n    bVar12 = false;" statement_identifier : (expression_statement "bVar12 = false;" (assignment_expression "bVar12 = false" identifier = false) ;)) (expression_statement "iVar9 = 0xc;" (assignment_expression "iVar9 = 0xc" identifier = number_literal) ;) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" identifier = identifier) ;) (expression_statement "pbVar10 = (byte *)"union class ";" (assignment_expression "pbVar10 = (byte *)"union class "" identifier = (cast_expression "(byte *)"union class "" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""union class "" " string_content "))) ;) (do_statement "do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);" do (compound_statement "{\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    }" { (if_statement "if (iVar9 == 0) break;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (expression_statement "bVar12 = *pbVar8 < *pbVar10;" (assignment_expression "bVar12 = *pbVar8 < *pbVar10" identifier = (binary_expression "*pbVar8 < *pbVar10" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "bVar11 = *pbVar8 == *pbVar10;" (assignment_expression "bVar11 = *pbVar8 == *pbVar10" identifier = (binary_expression "*pbVar8 == *pbVar10" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar11)" ( identifier )) ;) (expression_statement "local_20 = pbVar5;" (assignment_expression "local_20 = pbVar5" identifier = identifier) ;) (if_statement "if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }" if (parenthesized_expression "((!bVar12 && !bVar11) == bVar12)" ( (binary_expression "(!bVar12 && !bVar11) == bVar12" (parenthesized_expression "(!bVar12 && !bVar11)" ( (binary_expression "!bVar12 && !bVar11" (unary_expression "!bVar12" ! identifier) && (unary_expression "!bVar11" ! identifier)) )) == identifier) )) (compound_statement "{\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }" { (expression_statement "pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);" (assignment_expression "pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20)" identifier = (call_expression "strchr((char *)(pbVar5 + 0xc),0x20)" identifier (argument_list "((char *)(pbVar5 + 0xc),0x20)" ( (cast_expression "(char *)(pbVar5 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar5 + 0xc)" ( (binary_expression "pbVar5 + 0xc" identifier + number_literal) ))) , number_literal )))) ;) (expression_statement "local_20 = pbVar5 + 0xc;" (assignment_expression "local_20 = pbVar5 + 0xc" identifier = (binary_expression "pbVar5 + 0xc" identifier + number_literal)) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        local_20 = pbVar5;\n      }" { (expression_statement "local_20 = pbVar5;" (assignment_expression "local_20 = pbVar5" identifier = identifier) ;) })) })) }))) (expression_statement "sVar2 = strlen((char *)local_20);" (assignment_expression "sVar2 = strlen((char *)local_20)" identifier = (call_expression "strlen((char *)local_20)" identifier (argument_list "((char *)local_20)" ( (cast_expression "(char *)local_20" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "iVar9 = sVar2 + 10;" (assignment_expression "iVar9 = sVar2 + 10" identifier = (binary_expression "sVar2 + 10" identifier + number_literal)) ;) (labeled_statement "LAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" statement_identifier : (if_statement "if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }" { (expression_statement "local_28 = (undefined4 *)0x0;" (assignment_expression "local_28 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar9 = iVar9 + 0xf;" (assignment_expression "iVar9 = iVar9 + 0xf" identifier = (binary_expression "iVar9 + 0xf" identifier + number_literal)) ;) }) (else_clause "else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" else (compound_statement "{\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" { (expression_statement "local_28 = (undefined4 *)xmalloc(param_3 << 2);" (assignment_expression "local_28 = (undefined4 *)xmalloc(param_3 << 2)" identifier = (cast_expression "(undefined4 *)xmalloc(param_3 << 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(param_3 << 2)" identifier (argument_list "(param_3 << 2)" ( (binary_expression "param_3 << 2" identifier << number_literal) ))))) ;) (expression_statement "iVar7 = param_3 + -1;" (assignment_expression "iVar7 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (do_statement "do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);" do (compound_statement "{\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    }" { (expression_statement "iVar4 = FUN_00037630();" (assignment_expression "iVar4 = FUN_00037630()" identifier = (call_expression "FUN_00037630()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        free(local_28);\n        return 0;\n      }" { (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar1 = (char *)FUN_00036d90();" (assignment_expression "pcVar1 = (char *)FUN_00036d90()" identifier = (cast_expression "(char *)FUN_00036d90()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) ;) (expression_statement "local_28[iVar7] = pcVar1;" (assignment_expression "local_28[iVar7] = pcVar1" (subscript_expression "local_28[iVar7]" identifier [ identifier ]) = identifier) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(local_28);\n        return 0;\n      }" { (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "iVar9 = iVar9 + 2 + sVar2;" (assignment_expression "iVar9 = iVar9 + 2 + sVar2" identifier = (binary_expression "iVar9 + 2 + sVar2" (binary_expression "iVar9 + 2" identifier + number_literal) + identifier)) ;) }) while (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) ;) (if_statement "if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar9 = iVar9 + 5;\n    }" { (expression_statement "iVar9 = iVar9 + 5;" (assignment_expression "iVar9 = iVar9 + 5" identifier = (binary_expression "iVar9 + 5" identifier + number_literal)) ;) })) })))) (expression_statement "pcVar1 = (char *)xmalloc(iVar9);" (assignment_expression "pcVar1 = (char *)xmalloc(iVar9)" identifier = (cast_expression "(char *)xmalloc(iVar9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar9)" identifier (argument_list "(iVar9)" ( identifier ))))) ;) (if_statement "if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    *pcVar1 = '\0';\n  }" { (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    strcpy(pcVar1,(char *)local_20);\n  }" else (compound_statement "{\n    strcpy(pcVar1,(char *)local_20);\n  }" { (expression_statement "strcpy(pcVar1,(char *)local_20);" (call_expression "strcpy(pcVar1,(char *)local_20)" identifier (argument_list "(pcVar1,(char *)local_20)" ( identifier , (cast_expression "(char *)local_20" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) }))) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "builtin_strncpy(pcVar1 + sVar2,"::| (",6);" (call_expression "builtin_strncpy(pcVar1 + sVar2,"::| (",6)" identifier (argument_list "(pcVar1 + sVar2,"::| (",6)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) , (string_literal ""::| ("" " string_content ") , number_literal ))) ;) (if_statement "if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);\n  }" { (expression_statement "builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);" (call_expression "builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe)" identifier (argument_list "(pcVar1 + sVar2 + 5,"/* unknown */",0xe)" ( (binary_expression "pcVar1 + sVar2 + 5" (binary_expression "pcVar1 + sVar2" identifier + identifier) + number_literal) , (string_literal ""/* unknown */"" " string_content ") , number_literal ))) ;) }) (else_clause "else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" else (if_statement "if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }" { (if_statement "if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }" { (expression_statement "builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);" (call_expression "builtin_strncpy(pcVar1 + sVar2 + 5,"...",4)" identifier (argument_list "(pcVar1 + sVar2 + 5,"...",4)" ( (binary_expression "pcVar1 + sVar2 + 5" (binary_expression "pcVar1 + sVar2" identifier + identifier) + number_literal) , (string_literal ""..."" " string_content ") , number_literal ))) ;) })) }) (else_clause "else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" else (compound_statement "{\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" { (expression_statement "puVar6 = local_28;" (assignment_expression "puVar6 = local_28" identifier = identifier) ;) (while_statement "while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }" { (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);" (assignment_expression "pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6)" identifier = (call_expression "stpcpy(pcVar1 + sVar2,(char *)*puVar6)" identifier (argument_list "(pcVar1 + sVar2,(char *)*puVar6)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) , (cast_expression "(char *)*puVar6" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier)) )))) ;) (if_statement "if (local_28 + param_3 == puVar6 + 1) break;" if (parenthesized_expression "(local_28 + param_3 == puVar6 + 1)" ( (binary_expression "local_28 + param_3 == puVar6 + 1" (binary_expression "local_28 + param_3" identifier + identifier) == (binary_expression "puVar6 + 1" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar3[2] = '\0';" (assignment_expression "pcVar3[2] = '\0'" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[0] = ',';" (assignment_expression "pcVar3[0] = ','" (subscript_expression "pcVar3[0]" identifier [ number_literal ]) = (char_literal "','" ' character ')) ;) (expression_statement "pcVar3[1] = ' ';" (assignment_expression "pcVar3[1] = ' '" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "' '" ' character ')) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) })) (if_statement "if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      builtin_strncpy(pcVar3,", ...",6);\n    }" { (expression_statement "builtin_strncpy(pcVar3,", ...",6);" (call_expression "builtin_strncpy(pcVar3,", ...",6)" identifier (argument_list "(pcVar3,", ...",6)" ( identifier , (string_literal "", ..."" " string_content ") , number_literal ))) ;) })) (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) }))))) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "(pcVar1 + sVar2)[0] = ')';" (assignment_expression "(pcVar1 + sVar2)[0] = ')'" (subscript_expression "(pcVar1 + sVar2)[0]" (parenthesized_expression "(pcVar1 + sVar2)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) )) [ number_literal ]) = (char_literal "')'" ' character ')) ;) (expression_statement "(pcVar1 + sVar2)[1] = '\0';" (assignment_expression "(pcVar1 + sVar2)[1] = '\0'" (subscript_expression "(pcVar1 + sVar2)[1]" (parenthesized_expression "(pcVar1 + sVar2)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) )) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar9 = FUN_00037630();" (assignment_expression "iVar9 = FUN_00037630()" identifier = (call_expression "FUN_00037630()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar9 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "free(pcVar1);" (call_expression "free(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean pr_method_type(void *p,bfd_boolean domain,int argcount,bfd_boolean varargs)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  bfd_boolean bVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (domain == 0) goto LAB_0003798b;\n  bVar4 = substitute_type((pr_handle *)p,"");\n  if (bVar4 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)pop_type((pr_handle *)((int)p + 8));\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (argcount < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(argcount << 2);\n    iVar7 = argcount + -1;\n    do {\n      bVar4 = substitute_type((pr_handle *)p,"");\n      if (bVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = pop_type((pr_handle *)((int)p + 8));\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (varargs != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (domain == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (argcount < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);\n  }\n  else if (argcount == 0) {\n    if (varargs != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + argcount == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (varargs != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  bVar4 = substitute_type((pr_handle *)p,pcVar1);\n  if (bVar4 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}\n\n" comment comment (function_definition "bfd_boolean pr_method_type(void *p,bfd_boolean domain,int argcount,bfd_boolean varargs)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  bfd_boolean bVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (domain == 0) goto LAB_0003798b;\n  bVar4 = substitute_type((pr_handle *)p,"");\n  if (bVar4 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)pop_type((pr_handle *)((int)p + 8));\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (argcount < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(argcount << 2);\n    iVar7 = argcount + -1;\n    do {\n      bVar4 = substitute_type((pr_handle *)p,"");\n      if (bVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = pop_type((pr_handle *)((int)p + 8));\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (varargs != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (domain == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (argcount < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);\n  }\n  else if (argcount == 0) {\n    if (varargs != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + argcount == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (varargs != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  bVar4 = substitute_type((pr_handle *)p,pcVar1);\n  if (bVar4 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}" type_identifier (function_declarator "pr_method_type(void *p,bfd_boolean domain,int argcount,bfd_boolean varargs)" identifier (parameter_list "(void *p,bfd_boolean domain,int argcount,bfd_boolean varargs)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "bfd_boolean domain" type_identifier identifier) , (parameter_declaration "int argcount" primitive_type identifier) , (parameter_declaration "bfd_boolean varargs" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  bfd_boolean bVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (domain == 0) goto LAB_0003798b;\n  bVar4 = substitute_type((pr_handle *)p,"");\n  if (bVar4 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)pop_type((pr_handle *)((int)p + 8));\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (argcount < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(argcount << 2);\n    iVar7 = argcount + -1;\n    do {\n      bVar4 = substitute_type((pr_handle *)p,"");\n      if (bVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = pop_type((pr_handle *)((int)p + 8));\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (varargs != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (domain == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (argcount < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);\n  }\n  else if (argcount == 0) {\n    if (varargs != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + argcount == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (varargs != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  bVar4 = substitute_type((pr_handle *)p,pcVar1);\n  if (bVar4 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "bfd_boolean bVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "byte *pbVar10;" type_identifier (pointer_declarator "*pbVar10" * identifier) ;) (declaration "bool bVar11;" primitive_type identifier ;) (declaration "bool bVar12;" primitive_type identifier ;) (declaration "byte bVar13;" type_identifier identifier ;) (declaration "undefined4 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "byte *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "bVar13 = 0;" (assignment_expression "bVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 10;" (assignment_expression "iVar9 = 10" identifier = number_literal) ;) (expression_statement "local_20 = (byte *)0x0;" (assignment_expression "local_20 = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (domain == 0) goto LAB_0003798b;" if (parenthesized_expression "(domain == 0)" ( (binary_expression "domain == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003798b;" goto statement_identifier ;)) (expression_statement "bVar4 = substitute_type((pr_handle *)p,"");" (assignment_expression "bVar4 = substitute_type((pr_handle *)p,"")" identifier = (call_expression "substitute_type((pr_handle *)p,"")" identifier (argument_list "((pr_handle *)p,"")" ( (cast_expression "(pr_handle *)p" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal """" " ") )))) ;) (if_statement "if (bVar4 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar4 == 0)" ( (binary_expression "bVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar5 = (byte *)pop_type((pr_handle *)((int)p + 8));" (assignment_expression "pbVar5 = (byte *)pop_type((pr_handle *)((int)p + 8))" identifier = (cast_expression "(byte *)pop_type((pr_handle *)((int)p + 8))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "pop_type((pr_handle *)((int)p + 8))" identifier (argument_list "((pr_handle *)((int)p + 8))" ( (cast_expression "(pr_handle *)((int)p + 8)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))))) ;) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "bVar12 = pbVar5 == (byte *)0x0;" (assignment_expression "bVar12 = pbVar5 == (byte *)0x0" identifier = (binary_expression "pbVar5 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (bVar12) {\n    return 0;\n  }" if (parenthesized_expression "(bVar12)" ( identifier )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar9 = 6;" (assignment_expression "iVar9 = 6" identifier = number_literal) ;) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" identifier = identifier) ;) (expression_statement "pbVar10 = (byte *)0x57243;" (assignment_expression "pbVar10 = (byte *)0x57243" identifier = (cast_expression "(byte *)0x57243" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);" do (compound_statement "{\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  }" { (if_statement "if (iVar9 == 0) break;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (expression_statement "bVar11 = *pbVar8 < *pbVar10;" (assignment_expression "bVar11 = *pbVar8 < *pbVar10" identifier = (binary_expression "*pbVar8 < *pbVar10" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "bVar12 = *pbVar8 == *pbVar10;" (assignment_expression "bVar12 = *pbVar8 == *pbVar10" identifier = (binary_expression "*pbVar8 == *pbVar10" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar12)" ( identifier )) ;) (expression_statement "bVar11 = (!bVar11 && !bVar12) == bVar11;" (assignment_expression "bVar11 = (!bVar11 && !bVar12) == bVar11" identifier = (binary_expression "(!bVar11 && !bVar12) == bVar11" (parenthesized_expression "(!bVar11 && !bVar12)" ( (binary_expression "!bVar11 && !bVar12" (unary_expression "!bVar11" ! identifier) && (unary_expression "!bVar12" ! identifier)) )) == identifier)) ;) (if_statement "if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }" { (expression_statement "pcVar1 = strchr((char *)(pbVar5 + 6),0x20);" (assignment_expression "pcVar1 = strchr((char *)(pbVar5 + 6),0x20)" identifier = (call_expression "strchr((char *)(pbVar5 + 6),0x20)" identifier (argument_list "((char *)(pbVar5 + 6),0x20)" ( (cast_expression "(char *)(pbVar5 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar5 + 6)" ( (binary_expression "pbVar5 + 6" identifier + number_literal) ))) , number_literal )))) ;) (expression_statement "bVar11 = pcVar1 == (char *)0x0;" (assignment_expression "bVar11 = pcVar1 == (char *)0x0" identifier = (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "local_20 = pbVar5 + 6;" (assignment_expression "local_20 = pbVar5 + 6" identifier = (binary_expression "pbVar5 + 6" identifier + number_literal)) ;) (if_statement "if (!bVar11) goto LAB_00037b99;" if (parenthesized_expression "(!bVar11)" ( (unary_expression "!bVar11" ! identifier) )) (goto_statement "goto LAB_00037b99;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" else (compound_statement "{\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" { (labeled_statement "LAB_00037b99:\n    bVar12 = false;" statement_identifier : (expression_statement "bVar12 = false;" (assignment_expression "bVar12 = false" identifier = false) ;)) (expression_statement "iVar9 = 0xc;" (assignment_expression "iVar9 = 0xc" identifier = number_literal) ;) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" identifier = identifier) ;) (expression_statement "pbVar10 = (byte *)"union class ";" (assignment_expression "pbVar10 = (byte *)"union class "" identifier = (cast_expression "(byte *)"union class "" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""union class "" " string_content "))) ;) (do_statement "do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);" do (compound_statement "{\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    }" { (if_statement "if (iVar9 == 0) break;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (expression_statement "bVar12 = *pbVar8 < *pbVar10;" (assignment_expression "bVar12 = *pbVar8 < *pbVar10" identifier = (binary_expression "*pbVar8 < *pbVar10" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "bVar11 = *pbVar8 == *pbVar10;" (assignment_expression "bVar11 = *pbVar8 == *pbVar10" identifier = (binary_expression "*pbVar8 == *pbVar10" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar11)" ( identifier )) ;) (expression_statement "local_20 = pbVar5;" (assignment_expression "local_20 = pbVar5" identifier = identifier) ;) (if_statement "if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }" if (parenthesized_expression "((!bVar12 && !bVar11) == bVar12)" ( (binary_expression "(!bVar12 && !bVar11) == bVar12" (parenthesized_expression "(!bVar12 && !bVar11)" ( (binary_expression "!bVar12 && !bVar11" (unary_expression "!bVar12" ! identifier) && (unary_expression "!bVar11" ! identifier)) )) == identifier) )) (compound_statement "{\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }" { (expression_statement "pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);" (assignment_expression "pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20)" identifier = (call_expression "strchr((char *)(pbVar5 + 0xc),0x20)" identifier (argument_list "((char *)(pbVar5 + 0xc),0x20)" ( (cast_expression "(char *)(pbVar5 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar5 + 0xc)" ( (binary_expression "pbVar5 + 0xc" identifier + number_literal) ))) , number_literal )))) ;) (expression_statement "local_20 = pbVar5 + 0xc;" (assignment_expression "local_20 = pbVar5 + 0xc" identifier = (binary_expression "pbVar5 + 0xc" identifier + number_literal)) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        local_20 = pbVar5;\n      }" { (expression_statement "local_20 = pbVar5;" (assignment_expression "local_20 = pbVar5" identifier = identifier) ;) })) })) }))) (expression_statement "sVar2 = strlen((char *)local_20);" (assignment_expression "sVar2 = strlen((char *)local_20)" identifier = (call_expression "strlen((char *)local_20)" identifier (argument_list "((char *)local_20)" ( (cast_expression "(char *)local_20" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "iVar9 = sVar2 + 10;" (assignment_expression "iVar9 = sVar2 + 10" identifier = (binary_expression "sVar2 + 10" identifier + number_literal)) ;) (labeled_statement "LAB_0003798b:\n  if (argcount < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(argcount << 2);\n    iVar7 = argcount + -1;\n    do {\n      bVar4 = substitute_type((pr_handle *)p,"");\n      if (bVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = pop_type((pr_handle *)((int)p + 8));\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (varargs != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" statement_identifier : (if_statement "if (argcount < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(argcount << 2);\n    iVar7 = argcount + -1;\n    do {\n      bVar4 = substitute_type((pr_handle *)p,"");\n      if (bVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = pop_type((pr_handle *)((int)p + 8));\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (varargs != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" if (parenthesized_expression "(argcount < 1)" ( (binary_expression "argcount < 1" identifier < number_literal) )) (compound_statement "{\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }" { (expression_statement "local_28 = (undefined4 *)0x0;" (assignment_expression "local_28 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar9 = iVar9 + 0xf;" (assignment_expression "iVar9 = iVar9 + 0xf" identifier = (binary_expression "iVar9 + 0xf" identifier + number_literal)) ;) }) (else_clause "else {\n    local_28 = (undefined4 *)xmalloc(argcount << 2);\n    iVar7 = argcount + -1;\n    do {\n      bVar4 = substitute_type((pr_handle *)p,"");\n      if (bVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = pop_type((pr_handle *)((int)p + 8));\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (varargs != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" else (compound_statement "{\n    local_28 = (undefined4 *)xmalloc(argcount << 2);\n    iVar7 = argcount + -1;\n    do {\n      bVar4 = substitute_type((pr_handle *)p,"");\n      if (bVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = pop_type((pr_handle *)((int)p + 8));\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (varargs != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" { (expression_statement "local_28 = (undefined4 *)xmalloc(argcount << 2);" (assignment_expression "local_28 = (undefined4 *)xmalloc(argcount << 2)" identifier = (cast_expression "(undefined4 *)xmalloc(argcount << 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(argcount << 2)" identifier (argument_list "(argcount << 2)" ( (binary_expression "argcount << 2" identifier << number_literal) ))))) ;) (expression_statement "iVar7 = argcount + -1;" (assignment_expression "iVar7 = argcount + -1" identifier = (binary_expression "argcount + -1" identifier + number_literal)) ;) (do_statement "do {\n      bVar4 = substitute_type((pr_handle *)p,"");\n      if (bVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = pop_type((pr_handle *)((int)p + 8));\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);" do (compound_statement "{\n      bVar4 = substitute_type((pr_handle *)p,"");\n      if (bVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = pop_type((pr_handle *)((int)p + 8));\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    }" { (expression_statement "bVar4 = substitute_type((pr_handle *)p,"");" (assignment_expression "bVar4 = substitute_type((pr_handle *)p,"")" identifier = (call_expression "substitute_type((pr_handle *)p,"")" identifier (argument_list "((pr_handle *)p,"")" ( (cast_expression "(pr_handle *)p" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal """" " ") )))) ;) (if_statement "if (bVar4 == 0) {\n        free(local_28);\n        return 0;\n      }" if (parenthesized_expression "(bVar4 == 0)" ( (binary_expression "bVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        free(local_28);\n        return 0;\n      }" { (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar1 = pop_type((pr_handle *)((int)p + 8));" (assignment_expression "pcVar1 = pop_type((pr_handle *)((int)p + 8))" identifier = (call_expression "pop_type((pr_handle *)((int)p + 8))" identifier (argument_list "((pr_handle *)((int)p + 8))" ( (cast_expression "(pr_handle *)((int)p + 8)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) )))) ;) (expression_statement "local_28[iVar7] = pcVar1;" (assignment_expression "local_28[iVar7] = pcVar1" (subscript_expression "local_28[iVar7]" identifier [ identifier ]) = identifier) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(local_28);\n        return 0;\n      }" { (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "iVar9 = iVar9 + 2 + sVar2;" (assignment_expression "iVar9 = iVar9 + 2 + sVar2" identifier = (binary_expression "iVar9 + 2 + sVar2" (binary_expression "iVar9 + 2" identifier + number_literal) + identifier)) ;) }) while (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) ;) (if_statement "if (varargs != 0) {\n      iVar9 = iVar9 + 5;\n    }" if (parenthesized_expression "(varargs != 0)" ( (binary_expression "varargs != 0" identifier != number_literal) )) (compound_statement "{\n      iVar9 = iVar9 + 5;\n    }" { (expression_statement "iVar9 = iVar9 + 5;" (assignment_expression "iVar9 = iVar9 + 5" identifier = (binary_expression "iVar9 + 5" identifier + number_literal)) ;) })) })))) (expression_statement "pcVar1 = (char *)xmalloc(iVar9);" (assignment_expression "pcVar1 = (char *)xmalloc(iVar9)" identifier = (cast_expression "(char *)xmalloc(iVar9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar9)" identifier (argument_list "(iVar9)" ( identifier ))))) ;) (if_statement "if (domain == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }" if (parenthesized_expression "(domain == 0)" ( (binary_expression "domain == 0" identifier == number_literal) )) (compound_statement "{\n    *pcVar1 = '\0';\n  }" { (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    strcpy(pcVar1,(char *)local_20);\n  }" else (compound_statement "{\n    strcpy(pcVar1,(char *)local_20);\n  }" { (expression_statement "strcpy(pcVar1,(char *)local_20);" (call_expression "strcpy(pcVar1,(char *)local_20)" identifier (argument_list "(pcVar1,(char *)local_20)" ( identifier , (cast_expression "(char *)local_20" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) }))) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "builtin_strncpy(pcVar1 + sVar2,"::| (",6);" (call_expression "builtin_strncpy(pcVar1 + sVar2,"::| (",6)" identifier (argument_list "(pcVar1 + sVar2,"::| (",6)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) , (string_literal ""::| ("" " string_content ") , number_literal ))) ;) (if_statement "if (argcount < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);\n  }\n  else if (argcount == 0) {\n    if (varargs != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + argcount == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (varargs != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" if (parenthesized_expression "(argcount < 0)" ( (binary_expression "argcount < 0" identifier < number_literal) )) (compound_statement "{\n    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);\n  }" { (expression_statement "builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);" (call_expression "builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe)" identifier (argument_list "(pcVar1 + sVar2 + 5,"/* unknown */",0xe)" ( (binary_expression "pcVar1 + sVar2 + 5" (binary_expression "pcVar1 + sVar2" identifier + identifier) + number_literal) , (string_literal ""/* unknown */"" " string_content ") , number_literal ))) ;) }) (else_clause "else if (argcount == 0) {\n    if (varargs != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + argcount == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (varargs != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" else (if_statement "if (argcount == 0) {\n    if (varargs != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + argcount == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (varargs != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" if (parenthesized_expression "(argcount == 0)" ( (binary_expression "argcount == 0" identifier == number_literal) )) (compound_statement "{\n    if (varargs != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }" { (if_statement "if (varargs != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }" if (parenthesized_expression "(varargs != 0)" ( (binary_expression "varargs != 0" identifier != number_literal) )) (compound_statement "{\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }" { (expression_statement "builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);" (call_expression "builtin_strncpy(pcVar1 + sVar2 + 5,"...",4)" identifier (argument_list "(pcVar1 + sVar2 + 5,"...",4)" ( (binary_expression "pcVar1 + sVar2 + 5" (binary_expression "pcVar1 + sVar2" identifier + identifier) + number_literal) , (string_literal ""..."" " string_content ") , number_literal ))) ;) })) }) (else_clause "else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + argcount == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (varargs != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" else (compound_statement "{\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + argcount == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (varargs != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" { (expression_statement "puVar6 = local_28;" (assignment_expression "puVar6 = local_28" identifier = identifier) ;) (while_statement "while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + argcount == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + argcount == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }" { (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);" (assignment_expression "pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6)" identifier = (call_expression "stpcpy(pcVar1 + sVar2,(char *)*puVar6)" identifier (argument_list "(pcVar1 + sVar2,(char *)*puVar6)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) , (cast_expression "(char *)*puVar6" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier)) )))) ;) (if_statement "if (local_28 + argcount == puVar6 + 1) break;" if (parenthesized_expression "(local_28 + argcount == puVar6 + 1)" ( (binary_expression "local_28 + argcount == puVar6 + 1" (binary_expression "local_28 + argcount" identifier + identifier) == (binary_expression "puVar6 + 1" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar3[2] = '\0';" (assignment_expression "pcVar3[2] = '\0'" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[0] = ',';" (assignment_expression "pcVar3[0] = ','" (subscript_expression "pcVar3[0]" identifier [ number_literal ]) = (char_literal "','" ' character ')) ;) (expression_statement "pcVar3[1] = ' ';" (assignment_expression "pcVar3[1] = ' '" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "' '" ' character ')) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) })) (if_statement "if (varargs != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }" if (parenthesized_expression "(varargs != 0)" ( (binary_expression "varargs != 0" identifier != number_literal) )) (compound_statement "{\n      builtin_strncpy(pcVar3,", ...",6);\n    }" { (expression_statement "builtin_strncpy(pcVar3,", ...",6);" (call_expression "builtin_strncpy(pcVar3,", ...",6)" identifier (argument_list "(pcVar3,", ...",6)" ( identifier , (string_literal "", ..."" " string_content ") , number_literal ))) ;) })) (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) }))))) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "(pcVar1 + sVar2)[0] = ')';" (assignment_expression "(pcVar1 + sVar2)[0] = ')'" (subscript_expression "(pcVar1 + sVar2)[0]" (parenthesized_expression "(pcVar1 + sVar2)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) )) [ number_literal ]) = (char_literal "')'" ' character ')) ;) (expression_statement "(pcVar1 + sVar2)[1] = '\0';" (assignment_expression "(pcVar1 + sVar2)[1] = '\0'" (subscript_expression "(pcVar1 + sVar2)[1]" (parenthesized_expression "(pcVar1 + sVar2)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) )) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar4 = substitute_type((pr_handle *)p,pcVar1);" (assignment_expression "bVar4 = substitute_type((pr_handle *)p,pcVar1)" identifier = (call_expression "substitute_type((pr_handle *)p,pcVar1)" identifier (argument_list "((pr_handle *)p,pcVar1)" ( (cast_expression "(pr_handle *)p" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (bVar4 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar4 == 0)" ( (binary_expression "bVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "free(pcVar1);" (call_expression "free(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00037960(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (param_2 == 0) goto LAB_0003798b;\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)FUN_00036d90();\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00037960(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (param_2 == 0) goto LAB_0003798b;\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)FUN_00036d90();\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}" type_identifier (function_declarator "FUN_00037960(undefined4 param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (param_2 == 0) goto LAB_0003798b;\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)FUN_00036d90();\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "byte *pbVar10;" type_identifier (pointer_declarator "*pbVar10" * identifier) ;) (declaration "bool bVar11;" primitive_type identifier ;) (declaration "bool bVar12;" primitive_type identifier ;) (declaration "byte bVar13;" type_identifier identifier ;) (declaration "undefined4 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "byte *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "bVar13 = 0;" (assignment_expression "bVar13 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 10;" (assignment_expression "iVar9 = 10" identifier = number_literal) ;) (expression_statement "local_20 = (byte *)0x0;" (assignment_expression "local_20 = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_2 == 0) goto LAB_0003798b;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003798b;" goto statement_identifier ;)) (expression_statement "iVar9 = FUN_00037630();" (assignment_expression "iVar9 = FUN_00037630()" identifier = (call_expression "FUN_00037630()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar9 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar5 = (byte *)FUN_00036d90();" (assignment_expression "pbVar5 = (byte *)FUN_00036d90()" identifier = (cast_expression "(byte *)FUN_00036d90()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) ;) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" identifier = false) ;) (expression_statement "bVar12 = pbVar5 == (byte *)0x0;" (assignment_expression "bVar12 = pbVar5 == (byte *)0x0" identifier = (binary_expression "pbVar5 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (bVar12) {\n    return 0;\n  }" if (parenthesized_expression "(bVar12)" ( identifier )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar9 = 6;" (assignment_expression "iVar9 = 6" identifier = number_literal) ;) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" identifier = identifier) ;) (expression_statement "pbVar10 = (byte *)0x57243;" (assignment_expression "pbVar10 = (byte *)0x57243" identifier = (cast_expression "(byte *)0x57243" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);" do (compound_statement "{\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  }" { (if_statement "if (iVar9 == 0) break;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (expression_statement "bVar11 = *pbVar8 < *pbVar10;" (assignment_expression "bVar11 = *pbVar8 < *pbVar10" identifier = (binary_expression "*pbVar8 < *pbVar10" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "bVar12 = *pbVar8 == *pbVar10;" (assignment_expression "bVar12 = *pbVar8 == *pbVar10" identifier = (binary_expression "*pbVar8 == *pbVar10" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar12)" ( identifier )) ;) (expression_statement "bVar11 = (!bVar11 && !bVar12) == bVar11;" (assignment_expression "bVar11 = (!bVar11 && !bVar12) == bVar11" identifier = (binary_expression "(!bVar11 && !bVar12) == bVar11" (parenthesized_expression "(!bVar11 && !bVar12)" ( (binary_expression "!bVar11 && !bVar12" (unary_expression "!bVar11" ! identifier) && (unary_expression "!bVar12" ! identifier)) )) == identifier)) ;) (if_statement "if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" if (parenthesized_expression "(bVar11)" ( identifier )) (compound_statement "{\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }" { (expression_statement "pcVar1 = strchr((char *)(pbVar5 + 6),0x20);" (assignment_expression "pcVar1 = strchr((char *)(pbVar5 + 6),0x20)" identifier = (call_expression "strchr((char *)(pbVar5 + 6),0x20)" identifier (argument_list "((char *)(pbVar5 + 6),0x20)" ( (cast_expression "(char *)(pbVar5 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar5 + 6)" ( (binary_expression "pbVar5 + 6" identifier + number_literal) ))) , number_literal )))) ;) (expression_statement "bVar11 = pcVar1 == (char *)0x0;" (assignment_expression "bVar11 = pcVar1 == (char *)0x0" identifier = (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "local_20 = pbVar5 + 6;" (assignment_expression "local_20 = pbVar5 + 6" identifier = (binary_expression "pbVar5 + 6" identifier + number_literal)) ;) (if_statement "if (!bVar11) goto LAB_00037b99;" if (parenthesized_expression "(!bVar11)" ( (unary_expression "!bVar11" ! identifier) )) (goto_statement "goto LAB_00037b99;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" else (compound_statement "{\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" { (labeled_statement "LAB_00037b99:\n    bVar12 = false;" statement_identifier : (expression_statement "bVar12 = false;" (assignment_expression "bVar12 = false" identifier = false) ;)) (expression_statement "iVar9 = 0xc;" (assignment_expression "iVar9 = 0xc" identifier = number_literal) ;) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" identifier = identifier) ;) (expression_statement "pbVar10 = (byte *)"union class ";" (assignment_expression "pbVar10 = (byte *)"union class "" identifier = (cast_expression "(byte *)"union class "" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""union class "" " string_content "))) ;) (do_statement "do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);" do (compound_statement "{\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    }" { (if_statement "if (iVar9 == 0) break;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (expression_statement "bVar12 = *pbVar8 < *pbVar10;" (assignment_expression "bVar12 = *pbVar8 < *pbVar10" identifier = (binary_expression "*pbVar8 < *pbVar10" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "bVar11 = *pbVar8 == *pbVar10;" (assignment_expression "bVar11 = *pbVar8 == *pbVar10" identifier = (binary_expression "*pbVar8 == *pbVar10" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar10" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar11)" ( identifier )) ;) (expression_statement "local_20 = pbVar5;" (assignment_expression "local_20 = pbVar5" identifier = identifier) ;) (if_statement "if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }" if (parenthesized_expression "((!bVar12 && !bVar11) == bVar12)" ( (binary_expression "(!bVar12 && !bVar11) == bVar12" (parenthesized_expression "(!bVar12 && !bVar11)" ( (binary_expression "!bVar12 && !bVar11" (unary_expression "!bVar12" ! identifier) && (unary_expression "!bVar11" ! identifier)) )) == identifier) )) (compound_statement "{\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }" { (expression_statement "pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);" (assignment_expression "pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20)" identifier = (call_expression "strchr((char *)(pbVar5 + 0xc),0x20)" identifier (argument_list "((char *)(pbVar5 + 0xc),0x20)" ( (cast_expression "(char *)(pbVar5 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar5 + 0xc)" ( (binary_expression "pbVar5 + 0xc" identifier + number_literal) ))) , number_literal )))) ;) (expression_statement "local_20 = pbVar5 + 0xc;" (assignment_expression "local_20 = pbVar5 + 0xc" identifier = (binary_expression "pbVar5 + 0xc" identifier + number_literal)) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        local_20 = pbVar5;\n      }" { (expression_statement "local_20 = pbVar5;" (assignment_expression "local_20 = pbVar5" identifier = identifier) ;) })) })) }))) (expression_statement "sVar2 = strlen((char *)local_20);" (assignment_expression "sVar2 = strlen((char *)local_20)" identifier = (call_expression "strlen((char *)local_20)" identifier (argument_list "((char *)local_20)" ( (cast_expression "(char *)local_20" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "iVar9 = sVar2 + 10;" (assignment_expression "iVar9 = sVar2 + 10" identifier = (binary_expression "sVar2 + 10" identifier + number_literal)) ;) (labeled_statement "LAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" statement_identifier : (if_statement "if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }" { (expression_statement "local_28 = (undefined4 *)0x0;" (assignment_expression "local_28 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar9 = iVar9 + 0xf;" (assignment_expression "iVar9 = iVar9 + 0xf" identifier = (binary_expression "iVar9 + 0xf" identifier + number_literal)) ;) }) (else_clause "else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" else (compound_statement "{\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" { (expression_statement "local_28 = (undefined4 *)xmalloc(param_3 << 2);" (assignment_expression "local_28 = (undefined4 *)xmalloc(param_3 << 2)" identifier = (cast_expression "(undefined4 *)xmalloc(param_3 << 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(param_3 << 2)" identifier (argument_list "(param_3 << 2)" ( (binary_expression "param_3 << 2" identifier << number_literal) ))))) ;) (expression_statement "iVar7 = param_3 + -1;" (assignment_expression "iVar7 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (do_statement "do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);" do (compound_statement "{\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    }" { (expression_statement "iVar4 = FUN_00037630();" (assignment_expression "iVar4 = FUN_00037630()" identifier = (call_expression "FUN_00037630()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        free(local_28);\n        return 0;\n      }" { (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar1 = (char *)FUN_00036d90();" (assignment_expression "pcVar1 = (char *)FUN_00036d90()" identifier = (cast_expression "(char *)FUN_00036d90()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) ;) (expression_statement "local_28[iVar7] = pcVar1;" (assignment_expression "local_28[iVar7] = pcVar1" (subscript_expression "local_28[iVar7]" identifier [ identifier ]) = identifier) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(local_28);\n        return 0;\n      }" { (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "iVar9 = iVar9 + 2 + sVar2;" (assignment_expression "iVar9 = iVar9 + 2 + sVar2" identifier = (binary_expression "iVar9 + 2 + sVar2" (binary_expression "iVar9 + 2" identifier + number_literal) + identifier)) ;) }) while (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) ;) (if_statement "if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar9 = iVar9 + 5;\n    }" { (expression_statement "iVar9 = iVar9 + 5;" (assignment_expression "iVar9 = iVar9 + 5" identifier = (binary_expression "iVar9 + 5" identifier + number_literal)) ;) })) })))) (expression_statement "pcVar1 = (char *)xmalloc(iVar9);" (assignment_expression "pcVar1 = (char *)xmalloc(iVar9)" identifier = (cast_expression "(char *)xmalloc(iVar9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar9)" identifier (argument_list "(iVar9)" ( identifier ))))) ;) (if_statement "if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    *pcVar1 = '\0';\n  }" { (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    strcpy(pcVar1,(char *)local_20);\n  }" else (compound_statement "{\n    strcpy(pcVar1,(char *)local_20);\n  }" { (expression_statement "strcpy(pcVar1,(char *)local_20);" (call_expression "strcpy(pcVar1,(char *)local_20)" identifier (argument_list "(pcVar1,(char *)local_20)" ( identifier , (cast_expression "(char *)local_20" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) }))) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "builtin_strncpy(pcVar1 + sVar2,"::| (",6);" (call_expression "builtin_strncpy(pcVar1 + sVar2,"::| (",6)" identifier (argument_list "(pcVar1 + sVar2,"::| (",6)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) , (string_literal ""::| ("" " string_content ") , number_literal ))) ;) (if_statement "if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n    builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);\n  }" { (expression_statement "builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);" (call_expression "builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe)" identifier (argument_list "(pcVar1 + sVar2 + 5,"",0xe)" ( (binary_expression "pcVar1 + sVar2 + 5" (binary_expression "pcVar1 + sVar2" identifier + identifier) + number_literal) , (string_literal """" " ") , number_literal ))) ;) }) (else_clause "else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" else (if_statement "if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }" { (if_statement "if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }" { (expression_statement "builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);" (call_expression "builtin_strncpy(pcVar1 + sVar2 + 5,"...",4)" identifier (argument_list "(pcVar1 + sVar2 + 5,"...",4)" ( (binary_expression "pcVar1 + sVar2 + 5" (binary_expression "pcVar1 + sVar2" identifier + identifier) + number_literal) , (string_literal ""..."" " string_content ") , number_literal ))) ;) })) }) (else_clause "else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" else (compound_statement "{\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" { (expression_statement "puVar6 = local_28;" (assignment_expression "puVar6 = local_28" identifier = identifier) ;) (while_statement "while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }" { (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);" (assignment_expression "pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6)" identifier = (call_expression "stpcpy(pcVar1 + sVar2,(char *)*puVar6)" identifier (argument_list "(pcVar1 + sVar2,(char *)*puVar6)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) , (cast_expression "(char *)*puVar6" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier)) )))) ;) (if_statement "if (local_28 + param_3 == puVar6 + 1) break;" if (parenthesized_expression "(local_28 + param_3 == puVar6 + 1)" ( (binary_expression "local_28 + param_3 == puVar6 + 1" (binary_expression "local_28 + param_3" identifier + identifier) == (binary_expression "puVar6 + 1" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar3[2] = '\0';" (assignment_expression "pcVar3[2] = '\0'" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[0] = ',';" (assignment_expression "pcVar3[0] = ','" (subscript_expression "pcVar3[0]" identifier [ number_literal ]) = (char_literal "','" ' character ')) ;) (expression_statement "pcVar3[1] = ' ';" (assignment_expression "pcVar3[1] = ' '" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "' '" ' character ')) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) })) (if_statement "if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      builtin_strncpy(pcVar3,", ...",6);\n    }" { (expression_statement "builtin_strncpy(pcVar3,", ...",6);" (call_expression "builtin_strncpy(pcVar3,", ...",6)" identifier (argument_list "(pcVar3,", ...",6)" ( identifier , (string_literal "", ..."" " string_content ") , number_literal ))) ;) })) (expression_statement "free(local_28);" (call_expression "free(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) }))))) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "(pcVar1 + sVar2)[0] = ')';" (assignment_expression "(pcVar1 + sVar2)[0] = ')'" (subscript_expression "(pcVar1 + sVar2)[0]" (parenthesized_expression "(pcVar1 + sVar2)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) )) [ number_literal ]) = (char_literal "')'" ' character ')) ;) (expression_statement "(pcVar1 + sVar2)[1] = '\0';" (assignment_expression "(pcVar1 + sVar2)[1] = '\0'" (subscript_expression "(pcVar1 + sVar2)[1]" (parenthesized_expression "(pcVar1 + sVar2)" ( (binary_expression "pcVar1 + sVar2" identifier + identifier) )) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar9 = FUN_00037630();" (assignment_expression "iVar9 = FUN_00037630()" identifier = (call_expression "FUN_00037630()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar9 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "free(pcVar1);" (call_expression "free(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = BOOL) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (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 = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (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 ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) ))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (string_literal " string_content ") , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) , (string_literal " ") , LIT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) , (string_literal " string_content ") , LIT ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) == (binary_expression IDENT + LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) [ LIT ]) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00037960(undefined4 param_1,int param_2,int param_3,int param_4)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (param_2 == 0) goto LAB_0003798b;\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)FUN_00036d90();\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00037960(undefined4 param_1,int param_2,int param_3,int param_4)" (identifier "FUN_00037960") (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  char *pcVar3;\n  int iVar4;\n  byte *pbVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  byte *pbVar10;\n  bool bVar11;\n  bool bVar12;\n  byte bVar13;\n  undefined4 *local_28;\n  byte *local_20;\n  \n  bVar13 = 0;\n  iVar9 = 10;\n  local_20 = (byte *)0x0;\n  if (param_2 == 0) goto LAB_0003798b;\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  pbVar5 = (byte *)FUN_00036d90();\n  bVar11 = false;\n  bVar12 = pbVar5 == (byte *)0x0;\n  if (bVar12) {\n    return 0;\n  }\n  iVar9 = 6;\n  pbVar8 = pbVar5;\n  pbVar10 = (byte *)0x57243;\n  do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);\n  bVar11 = (!bVar11 && !bVar12) == bVar11;\n  if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }\n  sVar2 = strlen((char *)local_20);\n  iVar9 = sVar2 + 10;\nLAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }\n  pcVar1 = (char *)xmalloc(iVar9);\n  if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }\n  sVar2 = strlen(pcVar1);\n  builtin_strncpy(pcVar1 + sVar2,"::| (",6);\n  if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }\n  sVar2 = strlen(pcVar1);\n  (pcVar1 + sVar2)[0] = ')';\n  (pcVar1 + sVar2)[1] = '\0';\n  iVar9 = FUN_00037630();\n  if (iVar9 == 0) {\n    return 0;\n  }\n  free(pcVar1);\n  return 1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "byte *pbVar10;" (type_identifier "byte") (pointer_declarator "*pbVar10" (* "*") (identifier "pbVar10")) (; ";")) (declaration "bool bVar11;" (primitive_type "bool") (identifier "bVar11") (; ";")) (declaration "bool bVar12;" (primitive_type "bool") (identifier "bVar12") (; ";")) (declaration "byte bVar13;" (type_identifier "byte") (identifier "bVar13") (; ";")) (declaration "undefined4 *local_28;" (type_identifier "undefined4") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "byte *local_20;" (type_identifier "byte") (pointer_declarator "*local_20" (* "*") (identifier "local_20")) (; ";")) (expression_statement "bVar13 = 0;" (assignment_expression "bVar13 = 0" (identifier "bVar13") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar9 = 10;" (assignment_expression "iVar9 = 10" (identifier "iVar9") (= "=") (number_literal "10")) (; ";")) (expression_statement "local_20 = (byte *)0x0;" (assignment_expression "local_20 = (byte *)0x0" (identifier "local_20") (= "=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (param_2 == 0) goto LAB_0003798b;" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003798b;" (goto "goto") (statement_identifier "LAB_0003798b") (; ";"))) (expression_statement "iVar9 = FUN_00037630();" (assignment_expression "iVar9 = FUN_00037630()" (identifier "iVar9") (= "=") (call_expression "FUN_00037630()" (identifier "FUN_00037630") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar9 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "pbVar5 = (byte *)FUN_00036d90();" (assignment_expression "pbVar5 = (byte *)FUN_00036d90()" (identifier "pbVar5") (= "=") (cast_expression "(byte *)FUN_00036d90()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00036d90()" (identifier "FUN_00036d90") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "bVar11 = false;" (assignment_expression "bVar11 = false" (identifier "bVar11") (= "=") (false "false")) (; ";")) (expression_statement "bVar12 = pbVar5 == (byte *)0x0;" (assignment_expression "bVar12 = pbVar5 == (byte *)0x0" (identifier "bVar12") (= "=") (binary_expression "pbVar5 == (byte *)0x0" (identifier "pbVar5") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (if_statement "if (bVar12) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(bVar12)" (( "(") (identifier "bVar12") () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar9 = 6;" (assignment_expression "iVar9 = 6" (identifier "iVar9") (= "=") (number_literal "6")) (; ";")) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" (identifier "pbVar8") (= "=") (identifier "pbVar5")) (; ";")) (expression_statement "pbVar10 = (byte *)0x57243;" (assignment_expression "pbVar10 = (byte *)0x57243" (identifier "pbVar10") (= "=") (cast_expression "(byte *)0x57243" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x57243"))) (; ";")) (do_statement "do {\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  } while (bVar12);" (do "do") (compound_statement "{\n    if (iVar9 == 0) break;\n    iVar9 = iVar9 + -1;\n    bVar11 = *pbVar8 < *pbVar10;\n    bVar12 = *pbVar8 == *pbVar10;\n    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n  }" ({ "{") (if_statement "if (iVar9 == 0) break;" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + -1" (identifier "iVar9") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar11 = *pbVar8 < *pbVar10;" (assignment_expression "bVar11 = *pbVar8 < *pbVar10" (identifier "bVar11") (= "=") (binary_expression "*pbVar8 < *pbVar10" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (< "<") (pointer_expression "*pbVar10" (* "*") (identifier "pbVar10")))) (; ";")) (expression_statement "bVar12 = *pbVar8 == *pbVar10;" (assignment_expression "bVar12 = *pbVar8 == *pbVar10" (identifier "bVar12") (= "=") (binary_expression "*pbVar8 == *pbVar10" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (== "==") (pointer_expression "*pbVar10" (* "*") (identifier "pbVar10")))) (; ";")) (expression_statement "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar13 * -2" (identifier "pbVar8") (+ "+") (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar13")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1" (identifier "pbVar10") (= "=") (binary_expression "pbVar10 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar13 * -2" (identifier "pbVar10") (+ "+") (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar13")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar12)" (( "(") (identifier "bVar12") () ")")) (; ";")) (expression_statement "bVar11 = (!bVar11 && !bVar12) == bVar11;" (assignment_expression "bVar11 = (!bVar11 && !bVar12) == bVar11" (identifier "bVar11") (= "=") (binary_expression "(!bVar11 && !bVar12) == bVar11" (parenthesized_expression "(!bVar11 && !bVar12)" (( "(") (binary_expression "!bVar11 && !bVar12" (unary_expression "!bVar11" (! "!") (identifier "bVar11")) (&& "&&") (unary_expression "!bVar12" (! "!") (identifier "bVar12"))) () ")")) (== "==") (identifier "bVar11"))) (; ";")) (if_statement "if (bVar11) {\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }\n  else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(bVar11)" (( "(") (identifier "bVar11") () ")")) (compound_statement "{\n    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);\n    bVar11 = pcVar1 == (char *)0x0;\n    local_20 = pbVar5 + 6;\n    if (!bVar11) goto LAB_00037b99;\n  }" ({ "{") (expression_statement "pcVar1 = strchr((char *)(pbVar5 + 6),0x20);" (assignment_expression "pcVar1 = strchr((char *)(pbVar5 + 6),0x20)" (identifier "pcVar1") (= "=") (call_expression "strchr((char *)(pbVar5 + 6),0x20)" (identifier "strchr") (argument_list "((char *)(pbVar5 + 6),0x20)" (( "(") (cast_expression "(char *)(pbVar5 + 6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar5 + 6)" (( "(") (binary_expression "pbVar5 + 6" (identifier "pbVar5") (+ "+") (number_literal "6")) () ")"))) (, ",") (number_literal "0x20") () ")")))) (; ";")) (expression_statement "bVar11 = pcVar1 == (char *)0x0;" (assignment_expression "bVar11 = pcVar1 == (char *)0x0" (identifier "bVar11") (= "=") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (expression_statement "local_20 = pbVar5 + 6;" (assignment_expression "local_20 = pbVar5 + 6" (identifier "local_20") (= "=") (binary_expression "pbVar5 + 6" (identifier "pbVar5") (+ "+") (number_literal "6"))) (; ";")) (if_statement "if (!bVar11) goto LAB_00037b99;" (if "if") (parenthesized_expression "(!bVar11)" (( "(") (unary_expression "!bVar11" (! "!") (identifier "bVar11")) () ")")) (goto_statement "goto LAB_00037b99;" (goto "goto") (statement_identifier "LAB_00037b99") (; ";"))) (} "}")) (else_clause "else {\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" (else "else") (compound_statement "{\nLAB_00037b99:\n    bVar12 = false;\n    iVar9 = 0xc;\n    pbVar8 = pbVar5;\n    pbVar10 = (byte *)"union class ";\n    do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);\n    local_20 = pbVar5;\n    if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }\n  }" ({ "{") (labeled_statement "LAB_00037b99:\n    bVar12 = false;" (statement_identifier "LAB_00037b99") (: ":") (expression_statement "bVar12 = false;" (assignment_expression "bVar12 = false" (identifier "bVar12") (= "=") (false "false")) (; ";"))) (expression_statement "iVar9 = 0xc;" (assignment_expression "iVar9 = 0xc" (identifier "iVar9") (= "=") (number_literal "0xc")) (; ";")) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" (identifier "pbVar8") (= "=") (identifier "pbVar5")) (; ";")) (expression_statement "pbVar10 = (byte *)"union class ";" (assignment_expression "pbVar10 = (byte *)"union class "" (identifier "pbVar10") (= "=") (cast_expression "(byte *)"union class "" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""union class "" (" """) (string_content "union class ") (" """)))) (; ";")) (do_statement "do {\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    } while (bVar11);" (do "do") (compound_statement "{\n      if (iVar9 == 0) break;\n      iVar9 = iVar9 + -1;\n      bVar12 = *pbVar8 < *pbVar10;\n      bVar11 = *pbVar8 == *pbVar10;\n      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;\n      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;\n    }" ({ "{") (if_statement "if (iVar9 == 0) break;" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + -1" (identifier "iVar9") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar12 = *pbVar8 < *pbVar10;" (assignment_expression "bVar12 = *pbVar8 < *pbVar10" (identifier "bVar12") (= "=") (binary_expression "*pbVar8 < *pbVar10" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (< "<") (pointer_expression "*pbVar10" (* "*") (identifier "pbVar10")))) (; ";")) (expression_statement "bVar11 = *pbVar8 == *pbVar10;" (assignment_expression "bVar11 = *pbVar8 == *pbVar10" (identifier "bVar11") (= "=") (binary_expression "*pbVar8 == *pbVar10" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (== "==") (pointer_expression "*pbVar10" (* "*") (identifier "pbVar10")))) (; ";")) (expression_statement "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar13 * -2" (identifier "pbVar8") (+ "+") (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar13")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1" (identifier "pbVar10") (= "=") (binary_expression "pbVar10 + (uint)bVar13 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar13 * -2" (identifier "pbVar10") (+ "+") (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar13")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar11)" (( "(") (identifier "bVar11") () ")")) (; ";")) (expression_statement "local_20 = pbVar5;" (assignment_expression "local_20 = pbVar5" (identifier "local_20") (= "=") (identifier "pbVar5")) (; ";")) (if_statement "if ((!bVar12 && !bVar11) == bVar12) {\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }" (if "if") (parenthesized_expression "((!bVar12 && !bVar11) == bVar12)" (( "(") (binary_expression "(!bVar12 && !bVar11) == bVar12" (parenthesized_expression "(!bVar12 && !bVar11)" (( "(") (binary_expression "!bVar12 && !bVar11" (unary_expression "!bVar12" (! "!") (identifier "bVar12")) (&& "&&") (unary_expression "!bVar11" (! "!") (identifier "bVar11"))) () ")")) (== "==") (identifier "bVar12")) () ")")) (compound_statement "{\n      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);\n      local_20 = pbVar5 + 0xc;\n      if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }\n    }" ({ "{") (expression_statement "pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);" (assignment_expression "pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20)" (identifier "pcVar1") (= "=") (call_expression "strchr((char *)(pbVar5 + 0xc),0x20)" (identifier "strchr") (argument_list "((char *)(pbVar5 + 0xc),0x20)" (( "(") (cast_expression "(char *)(pbVar5 + 0xc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar5 + 0xc)" (( "(") (binary_expression "pbVar5 + 0xc" (identifier "pbVar5") (+ "+") (number_literal "0xc")) () ")"))) (, ",") (number_literal "0x20") () ")")))) (; ";")) (expression_statement "local_20 = pbVar5 + 0xc;" (assignment_expression "local_20 = pbVar5 + 0xc" (identifier "local_20") (= "=") (binary_expression "pbVar5 + 0xc" (identifier "pbVar5") (+ "+") (number_literal "0xc"))) (; ";")) (if_statement "if (pcVar1 != (char *)0x0) {\n        local_20 = pbVar5;\n      }" (if "if") (parenthesized_expression "(pcVar1 != (char *)0x0)" (( "(") (binary_expression "pcVar1 != (char *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        local_20 = pbVar5;\n      }" ({ "{") (expression_statement "local_20 = pbVar5;" (assignment_expression "local_20 = pbVar5" (identifier "local_20") (= "=") (identifier "pbVar5")) (; ";")) (} "}"))) (} "}"))) (} "}")))) (expression_statement "sVar2 = strlen((char *)local_20);" (assignment_expression "sVar2 = strlen((char *)local_20)" (identifier "sVar2") (= "=") (call_expression "strlen((char *)local_20)" (identifier "strlen") (argument_list "((char *)local_20)" (( "(") (cast_expression "(char *)local_20" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_20")) () ")")))) (; ";")) (expression_statement "iVar9 = sVar2 + 10;" (assignment_expression "iVar9 = sVar2 + 10" (identifier "iVar9") (= "=") (binary_expression "sVar2 + 10" (identifier "sVar2") (+ "+") (number_literal "10"))) (; ";")) (labeled_statement "LAB_0003798b:\n  if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" (statement_identifier "LAB_0003798b") (: ":") (if_statement "if (param_3 < 1) {\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }\n  else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 < 1)" (( "(") (binary_expression "param_3 < 1" (identifier "param_3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    local_28 = (undefined4 *)0x0;\n    iVar9 = iVar9 + 0xf;\n  }" ({ "{") (expression_statement "local_28 = (undefined4 *)0x0;" (assignment_expression "local_28 = (undefined4 *)0x0" (identifier "local_28") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar9 = iVar9 + 0xf;" (assignment_expression "iVar9 = iVar9 + 0xf" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 0xf" (identifier "iVar9") (+ "+") (number_literal "0xf"))) (; ";")) (} "}")) (else_clause "else {\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" (else "else") (compound_statement "{\n    local_28 = (undefined4 *)xmalloc(param_3 << 2);\n    iVar7 = param_3 + -1;\n    do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);\n    if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }\n  }" ({ "{") (expression_statement "local_28 = (undefined4 *)xmalloc(param_3 << 2);" (assignment_expression "local_28 = (undefined4 *)xmalloc(param_3 << 2)" (identifier "local_28") (= "=") (cast_expression "(undefined4 *)xmalloc(param_3 << 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(param_3 << 2)" (identifier "xmalloc") (argument_list "(param_3 << 2)" (( "(") (binary_expression "param_3 << 2" (identifier "param_3") (<< "<<") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "iVar7 = param_3 + -1;" (assignment_expression "iVar7 = param_3 + -1" (identifier "iVar7") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (do_statement "do {\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    } while (iVar7 != -1);" (do "do") (compound_statement "{\n      iVar4 = FUN_00037630();\n      if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }\n      pcVar1 = (char *)FUN_00036d90();\n      local_28[iVar7] = pcVar1;\n      if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }\n      iVar7 = iVar7 + -1;\n      sVar2 = strlen(pcVar1);\n      iVar9 = iVar9 + 2 + sVar2;\n    }" ({ "{") (expression_statement "iVar4 = FUN_00037630();" (assignment_expression "iVar4 = FUN_00037630()" (identifier "iVar4") (= "=") (call_expression "FUN_00037630()" (identifier "FUN_00037630") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n        free(local_28);\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        free(local_28);\n        return 0;\n      }" ({ "{") (expression_statement "free(local_28);" (call_expression "free(local_28)" (identifier "free") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "pcVar1 = (char *)FUN_00036d90();" (assignment_expression "pcVar1 = (char *)FUN_00036d90()" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_00036d90()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00036d90()" (identifier "FUN_00036d90") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "local_28[iVar7] = pcVar1;" (assignment_expression "local_28[iVar7] = pcVar1" (subscript_expression "local_28[iVar7]" (identifier "local_28") ([ "[") (identifier "iVar7") (] "]")) (= "=") (identifier "pcVar1")) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) {\n        free(local_28);\n        return 0;\n      }" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        free(local_28);\n        return 0;\n      }" ({ "{") (expression_statement "free(local_28);" (call_expression "free(local_28)" (identifier "free") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" (identifier "sVar2") (= "=") (call_expression "strlen(pcVar1)" (identifier "strlen") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (expression_statement "iVar9 = iVar9 + 2 + sVar2;" (assignment_expression "iVar9 = iVar9 + 2 + sVar2" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 2 + sVar2" (binary_expression "iVar9 + 2" (identifier "iVar9") (+ "+") (number_literal "2")) (+ "+") (identifier "sVar2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != -1)" (( "(") (binary_expression "iVar7 != -1" (identifier "iVar7") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (if_statement "if (param_4 != 0) {\n      iVar9 = iVar9 + 5;\n    }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar9 = iVar9 + 5;\n    }" ({ "{") (expression_statement "iVar9 = iVar9 + 5;" (assignment_expression "iVar9 = iVar9 + 5" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 5" (identifier "iVar9") (+ "+") (number_literal "5"))) (; ";")) (} "}"))) (} "}"))))) (expression_statement "pcVar1 = (char *)xmalloc(iVar9);" (assignment_expression "pcVar1 = (char *)xmalloc(iVar9)" (identifier "pcVar1") (= "=") (cast_expression "(char *)xmalloc(iVar9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(iVar9)" (identifier "xmalloc") (argument_list "(iVar9)" (( "(") (identifier "iVar9") () ")"))))) (; ";")) (if_statement "if (param_2 == 0) {\n    *pcVar1 = '\0';\n  }\n  else {\n    strcpy(pcVar1,(char *)local_20);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *pcVar1 = '\0';\n  }" ({ "{") (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    strcpy(pcVar1,(char *)local_20);\n  }" (else "else") (compound_statement "{\n    strcpy(pcVar1,(char *)local_20);\n  }" ({ "{") (expression_statement "strcpy(pcVar1,(char *)local_20);" (call_expression "strcpy(pcVar1,(char *)local_20)" (identifier "strcpy") (argument_list "(pcVar1,(char *)local_20)" (( "(") (identifier "pcVar1") (, ",") (cast_expression "(char *)local_20" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_20")) () ")"))) (; ";")) (} "}")))) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" (identifier "sVar2") (= "=") (call_expression "strlen(pcVar1)" (identifier "strlen") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (expression_statement "builtin_strncpy(pcVar1 + sVar2,"::| (",6);" (call_expression "builtin_strncpy(pcVar1 + sVar2,"::| (",6)" (identifier "builtin_strncpy") (argument_list "(pcVar1 + sVar2,"::| (",6)" (( "(") (binary_expression "pcVar1 + sVar2" (identifier "pcVar1") (+ "+") (identifier "sVar2")) (, ",") (string_literal ""::| ("" (" """) (string_content "::| (") (" """)) (, ",") (number_literal "6") () ")"))) (; ";")) (if_statement "if (param_3 < 0) {\n    builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);\n  }\n  else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" (if "if") (parenthesized_expression "(param_3 < 0)" (( "(") (binary_expression "param_3 < 0" (identifier "param_3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);\n  }" ({ "{") (expression_statement "builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe);" (call_expression "builtin_strncpy(pcVar1 + sVar2 + 5,"",0xe)" (identifier "builtin_strncpy") (argument_list "(pcVar1 + sVar2 + 5,"",0xe)" (( "(") (binary_expression "pcVar1 + sVar2 + 5" (binary_expression "pcVar1 + sVar2" (identifier "pcVar1") (+ "+") (identifier "sVar2")) (+ "+") (number_literal "5")) (, ",") (string_literal """" (" """) (" """)) (, ",") (number_literal "0xe") () ")"))) (; ";")) (} "}")) (else_clause "else if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" (else "else") (if_statement "if (param_3 == 0) {\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }\n  else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }\n  }" ({ "{") (if_statement "if (param_4 != 0) {\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);\n    }" ({ "{") (expression_statement "builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);" (call_expression "builtin_strncpy(pcVar1 + sVar2 + 5,"...",4)" (identifier "builtin_strncpy") (argument_list "(pcVar1 + sVar2 + 5,"...",4)" (( "(") (binary_expression "pcVar1 + sVar2 + 5" (binary_expression "pcVar1 + sVar2" (identifier "pcVar1") (+ "+") (identifier "sVar2")) (+ "+") (number_literal "5")) (, ",") (string_literal ""..."" (" """) (string_content "...") (" """)) (, ",") (number_literal "4") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" (else "else") (compound_statement "{\n    puVar6 = local_28;\n    while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }\n    if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }\n    free(local_28);\n  }" ({ "{") (expression_statement "puVar6 = local_28;" (assignment_expression "puVar6 = local_28" (identifier "puVar6") (= "=") (identifier "local_28")) (; ";")) (while_statement "while( true ) {\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      sVar2 = strlen(pcVar1);\n      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);\n      if (local_28 + param_3 == puVar6 + 1) break;\n      pcVar3[2] = '\0';\n      pcVar3[0] = ',';\n      pcVar3[1] = ' ';\n      puVar6 = puVar6 + 1;\n    }" ({ "{") (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" (identifier "sVar2") (= "=") (call_expression "strlen(pcVar1)" (identifier "strlen") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (expression_statement "pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);" (assignment_expression "pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6)" (identifier "pcVar3") (= "=") (call_expression "stpcpy(pcVar1 + sVar2,(char *)*puVar6)" (identifier "stpcpy") (argument_list "(pcVar1 + sVar2,(char *)*puVar6)" (( "(") (binary_expression "pcVar1 + sVar2" (identifier "pcVar1") (+ "+") (identifier "sVar2")) (, ",") (cast_expression "(char *)*puVar6" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) () ")")))) (; ";")) (if_statement "if (local_28 + param_3 == puVar6 + 1) break;" (if "if") (parenthesized_expression "(local_28 + param_3 == puVar6 + 1)" (( "(") (binary_expression "local_28 + param_3 == puVar6 + 1" (binary_expression "local_28 + param_3" (identifier "local_28") (+ "+") (identifier "param_3")) (== "==") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar3[2] = '\0';" (assignment_expression "pcVar3[2] = '\0'" (subscript_expression "pcVar3[2]" (identifier "pcVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar3[0] = ',';" (assignment_expression "pcVar3[0] = ','" (subscript_expression "pcVar3[0]" (identifier "pcVar3") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "','" (' "'") (character ",") (' "'"))) (; ";")) (expression_statement "pcVar3[1] = ' ';" (assignment_expression "pcVar3[1] = ' '" (subscript_expression "pcVar3[1]" (identifier "pcVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "' '" (' "'") (character " ") (' "'"))) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (param_4 != 0) {\n      builtin_strncpy(pcVar3,", ...",6);\n    }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      builtin_strncpy(pcVar3,", ...",6);\n    }" ({ "{") (expression_statement "builtin_strncpy(pcVar3,", ...",6);" (call_expression "builtin_strncpy(pcVar3,", ...",6)" (identifier "builtin_strncpy") (argument_list "(pcVar3,", ...",6)" (( "(") (identifier "pcVar3") (, ",") (string_literal "", ..."" (" """) (string_content ", ...") (" """)) (, ",") (number_literal "6") () ")"))) (; ";")) (} "}"))) (expression_statement "free(local_28);" (call_expression "free(local_28)" (identifier "free") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (} "}")))))) (expression_statement "sVar2 = strlen(pcVar1);" (assignment_expression "sVar2 = strlen(pcVar1)" (identifier "sVar2") (= "=") (call_expression "strlen(pcVar1)" (identifier "strlen") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (expression_statement "(pcVar1 + sVar2)[0] = ')';" (assignment_expression "(pcVar1 + sVar2)[0] = ')'" (subscript_expression "(pcVar1 + sVar2)[0]" (parenthesized_expression "(pcVar1 + sVar2)" (( "(") (binary_expression "pcVar1 + sVar2" (identifier "pcVar1") (+ "+") (identifier "sVar2")) () ")")) ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "')'" (' "'") (character ")") (' "'"))) (; ";")) (expression_statement "(pcVar1 + sVar2)[1] = '\0';" (assignment_expression "(pcVar1 + sVar2)[1] = '\0'" (subscript_expression "(pcVar1 + sVar2)[1]" (parenthesized_expression "(pcVar1 + sVar2)" (( "(") (binary_expression "pcVar1 + sVar2" (identifier "pcVar1") (+ "+") (identifier "sVar2")) () ")")) ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar9 = FUN_00037630();" (assignment_expression "iVar9 = FUN_00037630()" (identifier "iVar9") (= "=") (call_expression "FUN_00037630()" (identifier "FUN_00037630") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar9 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "free(pcVar1);" (call_expression "free(pcVar1)" (identifier "free") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 function_1(void *p,type_1 var_1,int var_15,type_1 var_19)

{
  char *var_11;
  size_t var_14;
  char *pcVar3;
  type_1 var_3;
  type_2 *var_5;
  type_3 *var_24;
  int var_18;
  type_2 *var_7;
  int var_6;
  type_2 *var_8;
  bool var_9;
  bool var_12;
  type_2 bVar13;
  type_3 *var_23;
  type_2 *local_20;
  
  bVar13 = 0;
  var_6 = 10;
  local_20 = (type_2 *)0x0;
  if (var_1 == 0) goto LAB_0003798b;
  var_3 = var_2((type_4 *)p,"");
  if (var_3 == 0) {
    return 0;
  }
  var_5 = (type_2 *)var_4((type_4 *)((int)p + 8));
  var_9 = false;
  var_12 = var_5 == (type_2 *)0x0;
  if (var_12) {
    return 0;
  }
  var_6 = 6;
  var_7 = var_5;
  var_8 = (type_2 *)0x57243;
  do {
    if (var_6 == 0) break;
    var_6 = var_6 + -1;
    var_9 = *var_7 < *var_8;
    var_12 = *var_7 == *var_8;
    var_7 = var_7 + (type_5)bVar13 * -2 + 1;
    var_8 = var_8 + (type_5)bVar13 * -2 + 1;
  } while (var_12);
  var_9 = (!var_9 && !var_12) == var_9;
  if (var_9) {
    var_11 = var_10((char *)(var_5 + 6),0x20);
    var_9 = var_11 == (char *)0x0;
    local_20 = var_5 + 6;
    if (!var_9) goto LAB_00037b99;
  }
  else {
LAB_00037b99:
    var_12 = false;
    var_6 = 0xc;
    var_7 = var_5;
    var_8 = (type_2 *)"union class ";
    do {
      if (var_6 == 0) break;
      var_6 = var_6 + -1;
      var_12 = *var_7 < *var_8;
      var_9 = *var_7 == *var_8;
      var_7 = var_7 + (type_5)bVar13 * -2 + 1;
      var_8 = var_8 + (type_5)bVar13 * -2 + 1;
    } while (var_9);
    local_20 = var_5;
    if ((!var_12 && !var_9) == var_12) {
      var_11 = var_10((char *)(var_5 + 0xc),0x20);
      local_20 = var_5 + 0xc;
      if (var_11 != (char *)0x0) {
        local_20 = var_5;
      }
    }
  }
  var_14 = var_13((char *)local_20);
  var_6 = var_14 + 10;
LAB_0003798b:
  if (var_15 < 1) {
    var_23 = (type_3 *)0x0;
    var_6 = var_6 + 0xf;
  }
  else {
    var_23 = (type_3 *)var_16(var_15 << 2);
    var_18 = var_15 + -1;
    do {
      var_3 = var_2((type_4 *)p,"");
      if (var_3 == 0) {
        var_17(var_23);
        return 0;
      }
      var_11 = var_4((type_4 *)((int)p + 8));
      var_23[var_18] = var_11;
      if (var_11 == (char *)0x0) {
        var_17(var_23);
        return 0;
      }
      var_18 = var_18 + -1;
      var_14 = var_13(var_11);
      var_6 = var_6 + 2 + var_14;
    } while (var_18 != -1);
    if (var_19 != 0) {
      var_6 = var_6 + 5;
    }
  }
  var_11 = (char *)var_16(var_6);
  if (var_1 == 0) {
    *var_11 = '\0';
  }
  else {
    var_20(var_11,(char *)local_20);
  }
  var_14 = var_13(var_11);
  var_21(var_11 + var_14,"::| (",6);
  if (var_15 < 0) {
    var_21(var_11 + var_14 + 5,"/* unknown */",0xe);
  }
  else if (var_15 == 0) {
    if (var_19 != 0) {
      var_21(var_11 + var_14 + 5,"...",4);
    }
  }
  else {
    var_24 = var_23;
    while( true ) {
      var_14 = var_13(var_11);
      pcVar3 = var_22(var_11 + var_14,(char *)*var_24);
      if (var_23 + var_15 == var_24 + 1) break;
      pcVar3[2] = '\0';
      pcVar3[0] = ',';
      pcVar3[1] = ' ';
      var_24 = var_24 + 1;
    }
    if (var_19 != 0) {
      var_21(pcVar3,", ...",6);
    }
    var_17(var_23);
  }
  var_14 = var_13(var_11);
  (var_11 + var_14)[0] = ')';
  (var_11 + var_14)[1] = '\0';
  var_3 = var_2((type_4 *)p,var_11);
  if (var_3 == 0) {
    return 0;
  }
  var_17(var_11);
  return 1;
}


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

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

undefined4 MASKED(undefined4 param_1,int param_2,int param_3,int param_4)

{
  char *pcVar1;
  size_t sVar2;
  char *pcVar3;
  int iVar4;
  byte *pbVar5;
  undefined4 *puVar6;
  int iVar7;
  byte *pbVar8;
  int iVar9;
  byte *pbVar10;
  bool bVar11;
  bool bVar12;
  byte bVar13;
  undefined4 *local_28;
  byte *local_20;
  
  bVar13 = 0;
  iVar9 = 10;
  local_20 = (byte *)0x0;
  if (param_2 == 0) goto LAB_0003798b;
  iVar9 = FUN_00037630();
  if (iVar9 == 0) {
    return 0;
  }
  pbVar5 = (byte *)FUN_00036d90();
  bVar11 = false;
  bVar12 = pbVar5 == (byte *)0x0;
  if (bVar12) {
    return 0;
  }
  iVar9 = 6;
  pbVar8 = pbVar5;
  pbVar10 = (byte *)0x57243;
  do {
    if (iVar9 == 0) break;
    iVar9 = iVar9 + -1;
    bVar11 = *pbVar8 < *pbVar10;
    bVar12 = *pbVar8 == *pbVar10;
    pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;
    pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;
  } while (bVar12);
  bVar11 = (!bVar11 && !bVar12) == bVar11;
  if (bVar11) {
    pcVar1 = strchr((char *)(pbVar5 + 6),0x20);
    bVar11 = pcVar1 == (char *)0x0;
    local_20 = pbVar5 + 6;
    if (!bVar11) goto LAB_00037b99;
  }
  else {
LAB_00037b99:
    bVar12 = false;
    iVar9 = 0xc;
    pbVar8 = pbVar5;
    pbVar10 = (byte *)"union class ";
    do {
      if (iVar9 == 0) break;
      iVar9 = iVar9 + -1;
      bVar12 = *pbVar8 < *pbVar10;
      bVar11 = *pbVar8 == *pbVar10;
      pbVar8 = pbVar8 + (uint)bVar13 * -2 + 1;
      pbVar10 = pbVar10 + (uint)bVar13 * -2 + 1;
    } while (bVar11);
    local_20 = pbVar5;
    if ((!bVar12 && !bVar11) == bVar12) {
      pcVar1 = strchr((char *)(pbVar5 + 0xc),0x20);
      local_20 = pbVar5 + 0xc;
      if (pcVar1 != (char *)0x0) {
        local_20 = pbVar5;
      }
    }
  }
  sVar2 = strlen((char *)local_20);
  iVar9 = sVar2 + 10;
LAB_0003798b:
  if (param_3 < 1) {
    local_28 = (undefined4 *)0x0;
    iVar9 = iVar9 + 0xf;
  }
  else {
    local_28 = (undefined4 *)xmalloc(param_3 << 2);
    iVar7 = param_3 + -1;
    do {
      iVar4 = FUN_00037630();
      if (iVar4 == 0) {
        free(local_28);
        return 0;
      }
      pcVar1 = (char *)FUN_00036d90();
      local_28[iVar7] = pcVar1;
      if (pcVar1 == (char *)0x0) {
        free(local_28);
        return 0;
      }
      iVar7 = iVar7 + -1;
      sVar2 = strlen(pcVar1);
      iVar9 = iVar9 + 2 + sVar2;
    } while (iVar7 != -1);
    if (param_4 != 0) {
      iVar9 = iVar9 + 5;
    }
  }
  pcVar1 = (char *)xmalloc(iVar9);
  if (param_2 == 0) {
    *pcVar1 = '\0';
  }
  else {
    strcpy(pcVar1,(char *)local_20);
  }
  sVar2 = strlen(pcVar1);
  builtin_strncpy(pcVar1 + sVar2,"::| (",6);
  if (param_3 < 0) {
    builtin_strncpy(pcVar1 + sVar2 + 5,"/* unknown */",0xe);
  }
  else if (param_3 == 0) {
    if (param_4 != 0) {
      builtin_strncpy(pcVar1 + sVar2 + 5,"...",4);
    }
  }
  else {
    puVar6 = local_28;
    while( true ) {
      sVar2 = strlen(pcVar1);
      pcVar3 = stpcpy(pcVar1 + sVar2,(char *)*puVar6);
      if (local_28 + param_3 == puVar6 + 1) break;
      pcVar3[2] = '\0';
      pcVar3[0] = ',';
      pcVar3[1] = ' ';
      puVar6 = puVar6 + 1;
    }
    if (param_4 != 0) {
      builtin_strncpy(pcVar3,", ...",6);
    }
    free(local_28);
  }
  sVar2 = strlen(pcVar1);
  (pcVar1 + sVar2)[0] = ')';
  (pcVar1 + sVar2)[1] = '\0';
  iVar9 = FUN_00037630();
  if (iVar9 == 0) {
    return 0;
  }
  free(pcVar1);
  return 1;
}

