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

void define_dollar_label(long label)

{
  int *piVar1;
  char *pcVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  ulong uVar6;
  
  iVar3 = dollar_label_count * 4;
  piVar4 = dollar_labels + dollar_label_count;
  if (piVar4 <= dollar_labels) {
    if (dollar_labels == (long *)0x0) {
      uVar6 = 1;
      iVar3 = 0;
      dollar_labels = (long *)xmalloc(0x28);
      dollar_label_instances = (long *)xmalloc(0x28);
      pcVar2 = (char *)xmalloc(10);
      dollar_label_max = 10;
      piVar4 = dollar_labels;
      dollar_label_defines = pcVar2;
    }
    else {
LAB_0003866b:
      if (dollar_label_count == dollar_label_max) {
        dollar_label_max = dollar_label_count + 10;
        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);
        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);
        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);
        iVar3 = dollar_label_count * 4;
        pcVar2 = dollar_label_defines + dollar_label_count;
        uVar6 = dollar_label_count + 1;
        piVar4 = dollar_labels + dollar_label_count;
      }
      else {
        pcVar2 = dollar_label_defines + dollar_label_count;
        uVar6 = dollar_label_count + 1;
      }
    }
    *piVar4 = label;
    dollar_label_count = uVar6;
    *(undefined4 *)((int)dollar_label_instances + iVar3) = 1;
    *pcVar2 = '\x01';
    return;
  }
  piVar1 = dollar_labels;
  if (label == *dollar_labels) {
    iVar5 = 0;
    iVar3 = 0;
  }
  else {
    do {
      piVar1 = piVar1 + 1;
      if (piVar4 <= piVar1) goto LAB_0003866b;
    } while (*piVar1 != label);
    iVar3 = (int)piVar1 - (int)dollar_labels;
    iVar5 = iVar3 >> 2;
  }
  *(int *)(iVar3 + (int)dollar_label_instances) = *(int *)(iVar3 + (int)dollar_label_instances) + 1;
  dollar_label_defines[iVar5] = '\x01';
  return;
}



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

void FUN_00038620(int param_1)

{
  int *piVar1;
  undefined1 *puVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  
  iVar3 = DAT_00083b6c * 4;
  piVar4 = DAT_00083b78 + DAT_00083b6c;
  if (piVar4 <= DAT_00083b78) {
    if (DAT_00083b78 == (int *)0x0) {
      iVar5 = 1;
      iVar3 = 0;
      DAT_00083b78 = (int *)xmalloc(0x28);
      DAT_00083b74 = xmalloc(0x28);
      puVar2 = (undefined1 *)xmalloc(10);
      DAT_00083b68 = 10;
      piVar4 = DAT_00083b78;
      DAT_00083b70 = puVar2;
    }
    else {
LAB_0003866b:
      if (DAT_00083b6c == DAT_00083b68) {
        DAT_00083b68 = DAT_00083b6c + 10;
        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);
        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);
        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);
        iVar3 = DAT_00083b6c * 4;
        puVar2 = DAT_00083b70 + DAT_00083b6c;
        iVar5 = DAT_00083b6c + 1;
        piVar4 = DAT_00083b78 + DAT_00083b6c;
      }
      else {
        puVar2 = DAT_00083b70 + DAT_00083b6c;
        iVar5 = DAT_00083b6c + 1;
      }
    }
    *piVar4 = param_1;
    DAT_00083b6c = iVar5;
    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;
    *puVar2 = 1;
    return;
  }
  piVar1 = DAT_00083b78;
  if (param_1 == *DAT_00083b78) {
    iVar5 = 0;
    iVar3 = 0;
  }
  else {
    do {
      piVar1 = piVar1 + 1;
      if (piVar4 <= piVar1) goto LAB_0003866b;
    } while (*piVar1 != param_1);
    iVar3 = (int)piVar1 - (int)DAT_00083b78;
    iVar5 = iVar3 >> 2;
  }
  *(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;
  DAT_00083b70[iVar5] = 1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019010
ADD EBX,0x429d7
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [EBX + 0x8b6c]
MOV ECX,dword ptr [EBX + 0x8b78]
LEA EBP,[EDI*0x4 + 0x0]
LEA EDX,[ECX + EBP*0x1]
CMP ECX,EDX
JNC 0x000386ca
CMP ESI,dword ptr [ECX]
JZ 0x00038795
MOV EAX,ECX
JMP 0x00038664
CMP dword ptr [EAX],ESI
JZ 0x000386a8
ADD EAX,0x4
CMP EAX,EDX
JC 0x00038660
CMP EDI,dword ptr [EBX + 0x8b68]
JZ 0x00038721
MOV EAX,dword ptr [EBX + 0x8b70]
ADD EAX,EDI
ADD EDI,0x1
MOV dword ptr [EDX],ESI
MOV EDX,dword ptr [EBX + 0x8b74]
MOV dword ptr [EBX + 0x8b6c],EDI
MOV dword ptr [EDX + EBP*0x1],0x1
MOV byte ptr [EAX],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB EAX,ECX
MOV EDX,EAX
SAR EDX,0x2
ADD EAX,dword ptr [EBX + 0x8b74]
ADD dword ptr [EAX],0x1
MOV EAX,dword ptr [EBX + 0x8b70]
MOV byte ptr [EAX + EDX*0x1],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST ECX,ECX
JNZ 0x0003866b
SUB ESP,0xc
MOV EDI,0x1
XOR EBP,EBP
PUSH 0x28
CALL 0x00017780
MOV dword ptr [ESP],0x28
MOV dword ptr [EBX + 0x8b78],EAX
CALL 0x00017780
MOV dword ptr [ESP],0xa
MOV dword ptr [EBX + 0x8b74],EAX
CALL 0x00017780
MOV EDX,dword ptr [EBX + 0x8b78]
ADD ESP,0x10
MOV dword ptr [EBX + 0x8b68],0xa
MOV dword ptr [EBX + 0x8b70],EAX
JMP 0x00038682
ADD EDI,0xa
SUB ESP,0x8
MOV dword ptr [EBX + 0x8b68],EDI
SHL EDI,0x2
PUSH EDI
PUSH ECX
CALL 0x00017200
MOV dword ptr [EBX + 0x8b78],EAX
POP EAX
MOV EAX,dword ptr [EBX + 0x8b68]
POP EDX
SHL EAX,0x2
PUSH EAX
PUSH dword ptr [EBX + 0x8b74]
CALL 0x00017200
POP ECX
POP EDI
PUSH dword ptr [EBX + 0x8b68]
PUSH dword ptr [EBX + 0x8b70]
MOV dword ptr [EBX + 0x8b74],EAX
CALL 0x00017200
MOV EDI,dword ptr [EBX + 0x8b6c]
MOV EDX,dword ptr [EBX + 0x8b78]
ADD ESP,0x10
MOV dword ptr [EBX + 0x8b70],EAX
LEA EBP,[EDI*0x4 + 0x0]
ADD EAX,EDI
ADD EDI,0x1
ADD EDX,EBP
JMP 0x00038682
XOR EDX,EDX
XOR EAX,EAX
JMP 0x000386af
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00038620(int param_1)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  iVar3 = DAT_00083b6c * 4;\n  piVar4 = DAT_00083b78 + DAT_00083b6c;\n  if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }\n  piVar1 = DAT_00083b78;\n  if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;\n  DAT_00083b70[iVar5] = 1;\n  return;\n}\n\n" comment (function_definition "void FUN_00038620(int param_1)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  iVar3 = DAT_00083b6c * 4;\n  piVar4 = DAT_00083b78 + DAT_00083b6c;\n  if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }\n  piVar1 = DAT_00083b78;\n  if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;\n  DAT_00083b70[iVar5] = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00038620(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  iVar3 = DAT_00083b6c * 4;\n  piVar4 = DAT_00083b78 + DAT_00083b6c;\n  if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }\n  piVar1 = DAT_00083b78;\n  if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;\n  DAT_00083b70[iVar5] = 1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar3 = DAT_00083b6c * 4;" (assignment_expression "iVar3 = DAT_00083b6c * 4" identifier = (binary_expression "DAT_00083b6c * 4" identifier * number_literal)) ;) (expression_statement "piVar4 = DAT_00083b78 + DAT_00083b6c;" (assignment_expression "piVar4 = DAT_00083b78 + DAT_00083b6c" identifier = (binary_expression "DAT_00083b78 + DAT_00083b6c" identifier + identifier)) ;) (if_statement "if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }" if (parenthesized_expression "(piVar4 <= DAT_00083b78)" ( (binary_expression "piVar4 <= DAT_00083b78" identifier <= identifier) )) (compound_statement "{\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }" { (if_statement "if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }" if (parenthesized_expression "(DAT_00083b78 == (int *)0x0)" ( (binary_expression "DAT_00083b78 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "DAT_00083b78 = (int *)xmalloc(0x28);" (assignment_expression "DAT_00083b78 = (int *)xmalloc(0x28)" identifier = (cast_expression "(int *)xmalloc(0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "DAT_00083b74 = xmalloc(0x28);" (assignment_expression "DAT_00083b74 = xmalloc(0x28)" identifier = (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal )))) ;) (expression_statement "puVar2 = (undefined1 *)xmalloc(10);" (assignment_expression "puVar2 = (undefined1 *)xmalloc(10)" identifier = (cast_expression "(undefined1 *)xmalloc(10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(10)" identifier (argument_list "(10)" ( number_literal ))))) ;) (expression_statement "DAT_00083b68 = 10;" (assignment_expression "DAT_00083b68 = 10" identifier = number_literal) ;) (expression_statement "piVar4 = DAT_00083b78;" (assignment_expression "piVar4 = DAT_00083b78" identifier = identifier) ;) (expression_statement "DAT_00083b70 = puVar2;" (assignment_expression "DAT_00083b70 = puVar2" identifier = identifier) ;) }) (else_clause "else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }" else (compound_statement "{\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }" { (labeled_statement "LAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" statement_identifier : (if_statement "if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" if (parenthesized_expression "(DAT_00083b6c == DAT_00083b68)" ( (binary_expression "DAT_00083b6c == DAT_00083b68" identifier == identifier) )) (compound_statement "{\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }" { (expression_statement "DAT_00083b68 = DAT_00083b6c + 10;" (assignment_expression "DAT_00083b68 = DAT_00083b6c + 10" identifier = (binary_expression "DAT_00083b6c + 10" identifier + number_literal)) ;) (expression_statement "DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);" (assignment_expression "DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4)" identifier = (cast_expression "(int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(DAT_00083b78,DAT_00083b68 * 4)" identifier (argument_list "(DAT_00083b78,DAT_00083b68 * 4)" ( identifier , (binary_expression "DAT_00083b68 * 4" identifier * number_literal) ))))) ;) (expression_statement "DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);" (assignment_expression "DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2)" identifier = (call_expression "xrealloc(DAT_00083b74,DAT_00083b68 << 2)" identifier (argument_list "(DAT_00083b74,DAT_00083b68 << 2)" ( identifier , (binary_expression "DAT_00083b68 << 2" identifier << number_literal) )))) ;) (expression_statement "DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);" (assignment_expression "DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68)" identifier = (cast_expression "(undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(DAT_00083b70,DAT_00083b68)" identifier (argument_list "(DAT_00083b70,DAT_00083b68)" ( identifier , identifier ))))) ;) (expression_statement "iVar3 = DAT_00083b6c * 4;" (assignment_expression "iVar3 = DAT_00083b6c * 4" identifier = (binary_expression "DAT_00083b6c * 4" identifier * number_literal)) ;) (expression_statement "puVar2 = DAT_00083b70 + DAT_00083b6c;" (assignment_expression "puVar2 = DAT_00083b70 + DAT_00083b6c" identifier = (binary_expression "DAT_00083b70 + DAT_00083b6c" identifier + identifier)) ;) (expression_statement "iVar5 = DAT_00083b6c + 1;" (assignment_expression "iVar5 = DAT_00083b6c + 1" identifier = (binary_expression "DAT_00083b6c + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = DAT_00083b78 + DAT_00083b6c;" (assignment_expression "piVar4 = DAT_00083b78 + DAT_00083b6c" identifier = (binary_expression "DAT_00083b78 + DAT_00083b6c" identifier + identifier)) ;) }) (else_clause "else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" else (compound_statement "{\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" { (expression_statement "puVar2 = DAT_00083b70 + DAT_00083b6c;" (assignment_expression "puVar2 = DAT_00083b70 + DAT_00083b6c" identifier = (binary_expression "DAT_00083b70 + DAT_00083b6c" identifier + identifier)) ;) (expression_statement "iVar5 = DAT_00083b6c + 1;" (assignment_expression "iVar5 = DAT_00083b6c + 1" identifier = (binary_expression "DAT_00083b6c + 1" identifier + number_literal)) ;) })))) }))) (expression_statement "*piVar4 = param_1;" (assignment_expression "*piVar4 = param_1" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "DAT_00083b6c = iVar5;" (assignment_expression "DAT_00083b6c = iVar5" identifier = identifier) ;) (expression_statement "*(undefined4 *)(DAT_00083b74 + iVar3) = 1;" (assignment_expression "*(undefined4 *)(DAT_00083b74 + iVar3) = 1" (pointer_expression "*(undefined4 *)(DAT_00083b74 + iVar3)" * (cast_expression "(undefined4 *)(DAT_00083b74 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00083b74 + iVar3)" ( (binary_expression "DAT_00083b74 + iVar3" identifier + identifier) )))) = number_literal) ;) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "piVar1 = DAT_00083b78;" (assignment_expression "piVar1 = DAT_00083b78" identifier = identifier) ;) (if_statement "if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }" if (parenthesized_expression "(param_1 == *DAT_00083b78)" ( (binary_expression "param_1 == *DAT_00083b78" identifier == (pointer_expression "*DAT_00083b78" * identifier)) )) (compound_statement "{\n    iVar5 = 0;\n    iVar3 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }" else (compound_statement "{\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }" { (do_statement "do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);" do (compound_statement "{\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    }" { (expression_statement "piVar1 = piVar1 + 1;" (assignment_expression "piVar1 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) (if_statement "if (piVar4 <= piVar1) goto LAB_0003866b;" if (parenthesized_expression "(piVar4 <= piVar1)" ( (binary_expression "piVar4 <= piVar1" identifier <= identifier) )) (goto_statement "goto LAB_0003866b;" goto statement_identifier ;)) }) while (parenthesized_expression "(*piVar1 != param_1)" ( (binary_expression "*piVar1 != param_1" (pointer_expression "*piVar1" * identifier) != identifier) )) ;) (expression_statement "iVar3 = (int)piVar1 - (int)DAT_00083b78;" (assignment_expression "iVar3 = (int)piVar1 - (int)DAT_00083b78" identifier = (binary_expression "(int)piVar1 - (int)DAT_00083b78" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)DAT_00083b78" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar5 = iVar3 >> 2;" (assignment_expression "iVar5 = iVar3 >> 2" identifier = (binary_expression "iVar3 >> 2" identifier >> number_literal)) ;) }))) (expression_statement "*(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;" (assignment_expression "*(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00083b74)" * (cast_expression "(int *)(iVar3 + DAT_00083b74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + DAT_00083b74)" ( (binary_expression "iVar3 + DAT_00083b74" identifier + identifier) )))) = (binary_expression "*(int *)(iVar3 + DAT_00083b74) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00083b74)" * (cast_expression "(int *)(iVar3 + DAT_00083b74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + DAT_00083b74)" ( (binary_expression "iVar3 + DAT_00083b74" identifier + identifier) )))) + number_literal)) ;) (expression_statement "DAT_00083b70[iVar5] = 1;" (assignment_expression "DAT_00083b70[iVar5] = 1" (subscript_expression "DAT_00083b70[iVar5]" identifier [ identifier ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid define_dollar_label(long label)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  ulong uVar6;\n  \n  iVar3 = dollar_label_count * 4;\n  piVar4 = dollar_labels + dollar_label_count;\n  if (piVar4 <= dollar_labels) {\n    if (dollar_labels == (long *)0x0) {\n      uVar6 = 1;\n      iVar3 = 0;\n      dollar_labels = (long *)xmalloc(0x28);\n      dollar_label_instances = (long *)xmalloc(0x28);\n      pcVar2 = (char *)xmalloc(10);\n      dollar_label_max = 10;\n      piVar4 = dollar_labels;\n      dollar_label_defines = pcVar2;\n    }\n    else {\nLAB_0003866b:\n      if (dollar_label_count == dollar_label_max) {\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }\n      else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }\n    }\n    *piVar4 = label;\n    dollar_label_count = uVar6;\n    *(undefined4 *)((int)dollar_label_instances + iVar3) = 1;\n    *pcVar2 = '\x01';\n    return;\n  }\n  piVar1 = dollar_labels;\n  if (label == *dollar_labels) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != label);\n    iVar3 = (int)piVar1 - (int)dollar_labels;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + (int)dollar_label_instances) = *(int *)(iVar3 + (int)dollar_label_instances) + 1;\n  dollar_label_defines[iVar5] = '\x01';\n  return;\n}\n\n" comment comment (function_definition "void define_dollar_label(long label)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  ulong uVar6;\n  \n  iVar3 = dollar_label_count * 4;\n  piVar4 = dollar_labels + dollar_label_count;\n  if (piVar4 <= dollar_labels) {\n    if (dollar_labels == (long *)0x0) {\n      uVar6 = 1;\n      iVar3 = 0;\n      dollar_labels = (long *)xmalloc(0x28);\n      dollar_label_instances = (long *)xmalloc(0x28);\n      pcVar2 = (char *)xmalloc(10);\n      dollar_label_max = 10;\n      piVar4 = dollar_labels;\n      dollar_label_defines = pcVar2;\n    }\n    else {\nLAB_0003866b:\n      if (dollar_label_count == dollar_label_max) {\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }\n      else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }\n    }\n    *piVar4 = label;\n    dollar_label_count = uVar6;\n    *(undefined4 *)((int)dollar_label_instances + iVar3) = 1;\n    *pcVar2 = '\x01';\n    return;\n  }\n  piVar1 = dollar_labels;\n  if (label == *dollar_labels) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != label);\n    iVar3 = (int)piVar1 - (int)dollar_labels;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + (int)dollar_label_instances) = *(int *)(iVar3 + (int)dollar_label_instances) + 1;\n  dollar_label_defines[iVar5] = '\x01';\n  return;\n}" primitive_type (function_declarator "define_dollar_label(long label)" identifier (parameter_list "(long label)" ( (parameter_declaration "long label" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  ulong uVar6;\n  \n  iVar3 = dollar_label_count * 4;\n  piVar4 = dollar_labels + dollar_label_count;\n  if (piVar4 <= dollar_labels) {\n    if (dollar_labels == (long *)0x0) {\n      uVar6 = 1;\n      iVar3 = 0;\n      dollar_labels = (long *)xmalloc(0x28);\n      dollar_label_instances = (long *)xmalloc(0x28);\n      pcVar2 = (char *)xmalloc(10);\n      dollar_label_max = 10;\n      piVar4 = dollar_labels;\n      dollar_label_defines = pcVar2;\n    }\n    else {\nLAB_0003866b:\n      if (dollar_label_count == dollar_label_max) {\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }\n      else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }\n    }\n    *piVar4 = label;\n    dollar_label_count = uVar6;\n    *(undefined4 *)((int)dollar_label_instances + iVar3) = 1;\n    *pcVar2 = '\x01';\n    return;\n  }\n  piVar1 = dollar_labels;\n  if (label == *dollar_labels) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != label);\n    iVar3 = (int)piVar1 - (int)dollar_labels;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + (int)dollar_label_instances) = *(int *)(iVar3 + (int)dollar_label_instances) + 1;\n  dollar_label_defines[iVar5] = '\x01';\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (expression_statement "iVar3 = dollar_label_count * 4;" (assignment_expression "iVar3 = dollar_label_count * 4" identifier = (binary_expression "dollar_label_count * 4" identifier * number_literal)) ;) (expression_statement "piVar4 = dollar_labels + dollar_label_count;" (assignment_expression "piVar4 = dollar_labels + dollar_label_count" identifier = (binary_expression "dollar_labels + dollar_label_count" identifier + identifier)) ;) (if_statement "if (piVar4 <= dollar_labels) {\n    if (dollar_labels == (long *)0x0) {\n      uVar6 = 1;\n      iVar3 = 0;\n      dollar_labels = (long *)xmalloc(0x28);\n      dollar_label_instances = (long *)xmalloc(0x28);\n      pcVar2 = (char *)xmalloc(10);\n      dollar_label_max = 10;\n      piVar4 = dollar_labels;\n      dollar_label_defines = pcVar2;\n    }\n    else {\nLAB_0003866b:\n      if (dollar_label_count == dollar_label_max) {\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }\n      else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }\n    }\n    *piVar4 = label;\n    dollar_label_count = uVar6;\n    *(undefined4 *)((int)dollar_label_instances + iVar3) = 1;\n    *pcVar2 = '\x01';\n    return;\n  }" if (parenthesized_expression "(piVar4 <= dollar_labels)" ( (binary_expression "piVar4 <= dollar_labels" identifier <= identifier) )) (compound_statement "{\n    if (dollar_labels == (long *)0x0) {\n      uVar6 = 1;\n      iVar3 = 0;\n      dollar_labels = (long *)xmalloc(0x28);\n      dollar_label_instances = (long *)xmalloc(0x28);\n      pcVar2 = (char *)xmalloc(10);\n      dollar_label_max = 10;\n      piVar4 = dollar_labels;\n      dollar_label_defines = pcVar2;\n    }\n    else {\nLAB_0003866b:\n      if (dollar_label_count == dollar_label_max) {\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }\n      else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }\n    }\n    *piVar4 = label;\n    dollar_label_count = uVar6;\n    *(undefined4 *)((int)dollar_label_instances + iVar3) = 1;\n    *pcVar2 = '\x01';\n    return;\n  }" { (if_statement "if (dollar_labels == (long *)0x0) {\n      uVar6 = 1;\n      iVar3 = 0;\n      dollar_labels = (long *)xmalloc(0x28);\n      dollar_label_instances = (long *)xmalloc(0x28);\n      pcVar2 = (char *)xmalloc(10);\n      dollar_label_max = 10;\n      piVar4 = dollar_labels;\n      dollar_label_defines = pcVar2;\n    }\n    else {\nLAB_0003866b:\n      if (dollar_label_count == dollar_label_max) {\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }\n      else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }\n    }" if (parenthesized_expression "(dollar_labels == (long *)0x0)" ( (binary_expression "dollar_labels == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar6 = 1;\n      iVar3 = 0;\n      dollar_labels = (long *)xmalloc(0x28);\n      dollar_label_instances = (long *)xmalloc(0x28);\n      pcVar2 = (char *)xmalloc(10);\n      dollar_label_max = 10;\n      piVar4 = dollar_labels;\n      dollar_label_defines = pcVar2;\n    }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "dollar_labels = (long *)xmalloc(0x28);" (assignment_expression "dollar_labels = (long *)xmalloc(0x28)" identifier = (cast_expression "(long *)xmalloc(0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "dollar_label_instances = (long *)xmalloc(0x28);" (assignment_expression "dollar_label_instances = (long *)xmalloc(0x28)" identifier = (cast_expression "(long *)xmalloc(0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "pcVar2 = (char *)xmalloc(10);" (assignment_expression "pcVar2 = (char *)xmalloc(10)" identifier = (cast_expression "(char *)xmalloc(10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(10)" identifier (argument_list "(10)" ( number_literal ))))) ;) (expression_statement "dollar_label_max = 10;" (assignment_expression "dollar_label_max = 10" identifier = number_literal) ;) (expression_statement "piVar4 = dollar_labels;" (assignment_expression "piVar4 = dollar_labels" identifier = identifier) ;) (expression_statement "dollar_label_defines = pcVar2;" (assignment_expression "dollar_label_defines = pcVar2" identifier = identifier) ;) }) (else_clause "else {\nLAB_0003866b:\n      if (dollar_label_count == dollar_label_max) {\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }\n      else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }\n    }" else (compound_statement "{\nLAB_0003866b:\n      if (dollar_label_count == dollar_label_max) {\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }\n      else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }\n    }" { (labeled_statement "LAB_0003866b:\n      if (dollar_label_count == dollar_label_max) {\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }\n      else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }" statement_identifier : (if_statement "if (dollar_label_count == dollar_label_max) {\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }\n      else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }" if (parenthesized_expression "(dollar_label_count == dollar_label_max)" ( (binary_expression "dollar_label_count == dollar_label_max" identifier == identifier) )) (compound_statement "{\n        dollar_label_max = dollar_label_count + 10;\n        dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);\n        dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);\n        dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);\n        iVar3 = dollar_label_count * 4;\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n        piVar4 = dollar_labels + dollar_label_count;\n      }" { (expression_statement "dollar_label_max = dollar_label_count + 10;" (assignment_expression "dollar_label_max = dollar_label_count + 10" identifier = (binary_expression "dollar_label_count + 10" identifier + number_literal)) ;) (expression_statement "dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4);" (assignment_expression "dollar_labels = (long *)xrealloc(dollar_labels,dollar_label_max * 4)" identifier = (cast_expression "(long *)xrealloc(dollar_labels,dollar_label_max * 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(dollar_labels,dollar_label_max * 4)" identifier (argument_list "(dollar_labels,dollar_label_max * 4)" ( identifier , (binary_expression "dollar_label_max * 4" identifier * number_literal) ))))) ;) (expression_statement "dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2);" (assignment_expression "dollar_label_instances = (long *)xrealloc(dollar_label_instances,dollar_label_max << 2)" identifier = (cast_expression "(long *)xrealloc(dollar_label_instances,dollar_label_max << 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(dollar_label_instances,dollar_label_max << 2)" identifier (argument_list "(dollar_label_instances,dollar_label_max << 2)" ( identifier , (binary_expression "dollar_label_max << 2" identifier << number_literal) ))))) ;) (expression_statement "dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max);" (assignment_expression "dollar_label_defines = (char *)xrealloc(dollar_label_defines,dollar_label_max)" identifier = (cast_expression "(char *)xrealloc(dollar_label_defines,dollar_label_max)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(dollar_label_defines,dollar_label_max)" identifier (argument_list "(dollar_label_defines,dollar_label_max)" ( identifier , identifier ))))) ;) (expression_statement "iVar3 = dollar_label_count * 4;" (assignment_expression "iVar3 = dollar_label_count * 4" identifier = (binary_expression "dollar_label_count * 4" identifier * number_literal)) ;) (expression_statement "pcVar2 = dollar_label_defines + dollar_label_count;" (assignment_expression "pcVar2 = dollar_label_defines + dollar_label_count" identifier = (binary_expression "dollar_label_defines + dollar_label_count" identifier + identifier)) ;) (expression_statement "uVar6 = dollar_label_count + 1;" (assignment_expression "uVar6 = dollar_label_count + 1" identifier = (binary_expression "dollar_label_count + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = dollar_labels + dollar_label_count;" (assignment_expression "piVar4 = dollar_labels + dollar_label_count" identifier = (binary_expression "dollar_labels + dollar_label_count" identifier + identifier)) ;) }) (else_clause "else {\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }" else (compound_statement "{\n        pcVar2 = dollar_label_defines + dollar_label_count;\n        uVar6 = dollar_label_count + 1;\n      }" { (expression_statement "pcVar2 = dollar_label_defines + dollar_label_count;" (assignment_expression "pcVar2 = dollar_label_defines + dollar_label_count" identifier = (binary_expression "dollar_label_defines + dollar_label_count" identifier + identifier)) ;) (expression_statement "uVar6 = dollar_label_count + 1;" (assignment_expression "uVar6 = dollar_label_count + 1" identifier = (binary_expression "dollar_label_count + 1" identifier + number_literal)) ;) })))) }))) (expression_statement "*piVar4 = label;" (assignment_expression "*piVar4 = label" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "dollar_label_count = uVar6;" (assignment_expression "dollar_label_count = uVar6" identifier = identifier) ;) (expression_statement "*(undefined4 *)((int)dollar_label_instances + iVar3) = 1;" (assignment_expression "*(undefined4 *)((int)dollar_label_instances + iVar3) = 1" (pointer_expression "*(undefined4 *)((int)dollar_label_instances + iVar3)" * (cast_expression "(undefined4 *)((int)dollar_label_instances + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)dollar_label_instances + iVar3)" ( (binary_expression "(int)dollar_label_instances + iVar3" (cast_expression "(int)dollar_label_instances" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*pcVar2 = '\x01';" (assignment_expression "*pcVar2 = '\x01'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (expression_statement "piVar1 = dollar_labels;" (assignment_expression "piVar1 = dollar_labels" identifier = identifier) ;) (if_statement "if (label == *dollar_labels) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != label);\n    iVar3 = (int)piVar1 - (int)dollar_labels;\n    iVar5 = iVar3 >> 2;\n  }" if (parenthesized_expression "(label == *dollar_labels)" ( (binary_expression "label == *dollar_labels" identifier == (pointer_expression "*dollar_labels" * identifier)) )) (compound_statement "{\n    iVar5 = 0;\n    iVar3 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != label);\n    iVar3 = (int)piVar1 - (int)dollar_labels;\n    iVar5 = iVar3 >> 2;\n  }" else (compound_statement "{\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != label);\n    iVar3 = (int)piVar1 - (int)dollar_labels;\n    iVar5 = iVar3 >> 2;\n  }" { (do_statement "do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != label);" do (compound_statement "{\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    }" { (expression_statement "piVar1 = piVar1 + 1;" (assignment_expression "piVar1 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) (if_statement "if (piVar4 <= piVar1) goto LAB_0003866b;" if (parenthesized_expression "(piVar4 <= piVar1)" ( (binary_expression "piVar4 <= piVar1" identifier <= identifier) )) (goto_statement "goto LAB_0003866b;" goto statement_identifier ;)) }) while (parenthesized_expression "(*piVar1 != label)" ( (binary_expression "*piVar1 != label" (pointer_expression "*piVar1" * identifier) != identifier) )) ;) (expression_statement "iVar3 = (int)piVar1 - (int)dollar_labels;" (assignment_expression "iVar3 = (int)piVar1 - (int)dollar_labels" identifier = (binary_expression "(int)piVar1 - (int)dollar_labels" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)dollar_labels" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar5 = iVar3 >> 2;" (assignment_expression "iVar5 = iVar3 >> 2" identifier = (binary_expression "iVar3 >> 2" identifier >> number_literal)) ;) }))) (expression_statement "*(int *)(iVar3 + (int)dollar_label_instances) = *(int *)(iVar3 + (int)dollar_label_instances) + 1;" (assignment_expression "*(int *)(iVar3 + (int)dollar_label_instances) = *(int *)(iVar3 + (int)dollar_label_instances) + 1" (pointer_expression "*(int *)(iVar3 + (int)dollar_label_instances)" * (cast_expression "(int *)(iVar3 + (int)dollar_label_instances)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (int)dollar_label_instances)" ( (binary_expression "iVar3 + (int)dollar_label_instances" identifier + (cast_expression "(int)dollar_label_instances" ( (type_descriptor "int" primitive_type) ) identifier)) )))) = (binary_expression "*(int *)(iVar3 + (int)dollar_label_instances) + 1" (pointer_expression "*(int *)(iVar3 + (int)dollar_label_instances)" * (cast_expression "(int *)(iVar3 + (int)dollar_label_instances)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (int)dollar_label_instances)" ( (binary_expression "iVar3 + (int)dollar_label_instances" identifier + (cast_expression "(int)dollar_label_instances" ( (type_descriptor "int" primitive_type) ) identifier)) )))) + number_literal)) ;) (expression_statement "dollar_label_defines[iVar5] = '\x01';" (assignment_expression "dollar_label_defines[iVar5] = '\x01'" (subscript_expression "dollar_label_defines[iVar5]" identifier [ identifier ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00038620(int param_1)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  iVar3 = DAT_00083b6c * 4;\n  piVar4 = DAT_00083b78 + DAT_00083b6c;\n  if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }\n  piVar1 = DAT_00083b78;\n  if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;\n  DAT_00083b70[iVar5] = 1;\n  return;\n}\n\n" (function_definition "void FUN_00038620(int param_1)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  iVar3 = DAT_00083b6c * 4;\n  piVar4 = DAT_00083b78 + DAT_00083b6c;\n  if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }\n  piVar1 = DAT_00083b78;\n  if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;\n  DAT_00083b70[iVar5] = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00038620(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  iVar3 = DAT_00083b6c * 4;\n  piVar4 = DAT_00083b78 + DAT_00083b6c;\n  if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }\n  piVar1 = DAT_00083b78;\n  if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;\n  DAT_00083b70[iVar5] = 1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar3 = DAT_00083b6c * 4;" (assignment_expression "iVar3 = DAT_00083b6c * 4" identifier = (binary_expression "DAT_00083b6c * 4" identifier * number_literal)) ;) (expression_statement "piVar4 = DAT_00083b78 + DAT_00083b6c;" (assignment_expression "piVar4 = DAT_00083b78 + DAT_00083b6c" identifier = (binary_expression "DAT_00083b78 + DAT_00083b6c" identifier + identifier)) ;) (if_statement "if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }" if (parenthesized_expression "(piVar4 <= DAT_00083b78)" ( (binary_expression "piVar4 <= DAT_00083b78" identifier <= identifier) )) (compound_statement "{\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }" { (if_statement "if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }" if (parenthesized_expression "(DAT_00083b78 == (int *)0x0)" ( (binary_expression "DAT_00083b78 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "DAT_00083b78 = (int *)xmalloc(0x28);" (assignment_expression "DAT_00083b78 = (int *)xmalloc(0x28)" identifier = (cast_expression "(int *)xmalloc(0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "DAT_00083b74 = xmalloc(0x28);" (assignment_expression "DAT_00083b74 = xmalloc(0x28)" identifier = (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal )))) ;) (expression_statement "puVar2 = (undefined1 *)xmalloc(10);" (assignment_expression "puVar2 = (undefined1 *)xmalloc(10)" identifier = (cast_expression "(undefined1 *)xmalloc(10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(10)" identifier (argument_list "(10)" ( number_literal ))))) ;) (expression_statement "DAT_00083b68 = 10;" (assignment_expression "DAT_00083b68 = 10" identifier = number_literal) ;) (expression_statement "piVar4 = DAT_00083b78;" (assignment_expression "piVar4 = DAT_00083b78" identifier = identifier) ;) (expression_statement "DAT_00083b70 = puVar2;" (assignment_expression "DAT_00083b70 = puVar2" identifier = identifier) ;) }) (else_clause "else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }" else (compound_statement "{\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }" { (labeled_statement "LAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" statement_identifier : (if_statement "if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" if (parenthesized_expression "(DAT_00083b6c == DAT_00083b68)" ( (binary_expression "DAT_00083b6c == DAT_00083b68" identifier == identifier) )) (compound_statement "{\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }" { (expression_statement "DAT_00083b68 = DAT_00083b6c + 10;" (assignment_expression "DAT_00083b68 = DAT_00083b6c + 10" identifier = (binary_expression "DAT_00083b6c + 10" identifier + number_literal)) ;) (expression_statement "DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);" (assignment_expression "DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4)" identifier = (cast_expression "(int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(DAT_00083b78,DAT_00083b68 * 4)" identifier (argument_list "(DAT_00083b78,DAT_00083b68 * 4)" ( identifier , (binary_expression "DAT_00083b68 * 4" identifier * number_literal) ))))) ;) (expression_statement "DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);" (assignment_expression "DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2)" identifier = (call_expression "xrealloc(DAT_00083b74,DAT_00083b68 << 2)" identifier (argument_list "(DAT_00083b74,DAT_00083b68 << 2)" ( identifier , (binary_expression "DAT_00083b68 << 2" identifier << number_literal) )))) ;) (expression_statement "DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);" (assignment_expression "DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68)" identifier = (cast_expression "(undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(DAT_00083b70,DAT_00083b68)" identifier (argument_list "(DAT_00083b70,DAT_00083b68)" ( identifier , identifier ))))) ;) (expression_statement "iVar3 = DAT_00083b6c * 4;" (assignment_expression "iVar3 = DAT_00083b6c * 4" identifier = (binary_expression "DAT_00083b6c * 4" identifier * number_literal)) ;) (expression_statement "puVar2 = DAT_00083b70 + DAT_00083b6c;" (assignment_expression "puVar2 = DAT_00083b70 + DAT_00083b6c" identifier = (binary_expression "DAT_00083b70 + DAT_00083b6c" identifier + identifier)) ;) (expression_statement "iVar5 = DAT_00083b6c + 1;" (assignment_expression "iVar5 = DAT_00083b6c + 1" identifier = (binary_expression "DAT_00083b6c + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = DAT_00083b78 + DAT_00083b6c;" (assignment_expression "piVar4 = DAT_00083b78 + DAT_00083b6c" identifier = (binary_expression "DAT_00083b78 + DAT_00083b6c" identifier + identifier)) ;) }) (else_clause "else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" else (compound_statement "{\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" { (expression_statement "puVar2 = DAT_00083b70 + DAT_00083b6c;" (assignment_expression "puVar2 = DAT_00083b70 + DAT_00083b6c" identifier = (binary_expression "DAT_00083b70 + DAT_00083b6c" identifier + identifier)) ;) (expression_statement "iVar5 = DAT_00083b6c + 1;" (assignment_expression "iVar5 = DAT_00083b6c + 1" identifier = (binary_expression "DAT_00083b6c + 1" identifier + number_literal)) ;) })))) }))) (expression_statement "*piVar4 = param_1;" (assignment_expression "*piVar4 = param_1" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "DAT_00083b6c = iVar5;" (assignment_expression "DAT_00083b6c = iVar5" identifier = identifier) ;) (expression_statement "*(undefined4 *)(DAT_00083b74 + iVar3) = 1;" (assignment_expression "*(undefined4 *)(DAT_00083b74 + iVar3) = 1" (pointer_expression "*(undefined4 *)(DAT_00083b74 + iVar3)" * (cast_expression "(undefined4 *)(DAT_00083b74 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00083b74 + iVar3)" ( (binary_expression "DAT_00083b74 + iVar3" identifier + identifier) )))) = number_literal) ;) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "piVar1 = DAT_00083b78;" (assignment_expression "piVar1 = DAT_00083b78" identifier = identifier) ;) (if_statement "if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }" if (parenthesized_expression "(param_1 == *DAT_00083b78)" ( (binary_expression "param_1 == *DAT_00083b78" identifier == (pointer_expression "*DAT_00083b78" * identifier)) )) (compound_statement "{\n    iVar5 = 0;\n    iVar3 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }" else (compound_statement "{\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }" { (do_statement "do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);" do (compound_statement "{\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    }" { (expression_statement "piVar1 = piVar1 + 1;" (assignment_expression "piVar1 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) (if_statement "if (piVar4 <= piVar1) goto LAB_0003866b;" if (parenthesized_expression "(piVar4 <= piVar1)" ( (binary_expression "piVar4 <= piVar1" identifier <= identifier) )) (goto_statement "goto LAB_0003866b;" goto statement_identifier ;)) }) while (parenthesized_expression "(*piVar1 != param_1)" ( (binary_expression "*piVar1 != param_1" (pointer_expression "*piVar1" * identifier) != identifier) )) ;) (expression_statement "iVar3 = (int)piVar1 - (int)DAT_00083b78;" (assignment_expression "iVar3 = (int)piVar1 - (int)DAT_00083b78" identifier = (binary_expression "(int)piVar1 - (int)DAT_00083b78" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)DAT_00083b78" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar5 = iVar3 >> 2;" (assignment_expression "iVar5 = iVar3 >> 2" identifier = (binary_expression "iVar3 >> 2" identifier >> number_literal)) ;) }))) (expression_statement "*(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;" (assignment_expression "*(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00083b74)" * (cast_expression "(int *)(iVar3 + DAT_00083b74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + DAT_00083b74)" ( (binary_expression "iVar3 + DAT_00083b74" identifier + identifier) )))) = (binary_expression "*(int *)(iVar3 + DAT_00083b74) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00083b74)" * (cast_expression "(int *)(iVar3 + DAT_00083b74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + DAT_00083b74)" ( (binary_expression "iVar3 + DAT_00083b74" identifier + identifier) )))) + number_literal)) ;) (expression_statement "DAT_00083b70[iVar5] = 1;" (assignment_expression "DAT_00083b70[iVar5] = 1" (subscript_expression "DAT_00083b70[iVar5]" identifier [ identifier ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT << LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })))) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00038620(int param_1)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  iVar3 = DAT_00083b6c * 4;\n  piVar4 = DAT_00083b78 + DAT_00083b6c;\n  if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }\n  piVar1 = DAT_00083b78;\n  if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;\n  DAT_00083b70[iVar5] = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00038620(int param_1)" (identifier "FUN_00038620") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  iVar3 = DAT_00083b6c * 4;\n  piVar4 = DAT_00083b78 + DAT_00083b6c;\n  if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }\n  piVar1 = DAT_00083b78;\n  if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }\n  *(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;\n  DAT_00083b70[iVar5] = 1;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar3 = DAT_00083b6c * 4;" (assignment_expression "iVar3 = DAT_00083b6c * 4" (identifier "iVar3") (= "=") (binary_expression "DAT_00083b6c * 4" (identifier "DAT_00083b6c") (* "*") (number_literal "4"))) (; ";")) (expression_statement "piVar4 = DAT_00083b78 + DAT_00083b6c;" (assignment_expression "piVar4 = DAT_00083b78 + DAT_00083b6c" (identifier "piVar4") (= "=") (binary_expression "DAT_00083b78 + DAT_00083b6c" (identifier "DAT_00083b78") (+ "+") (identifier "DAT_00083b6c"))) (; ";")) (if_statement "if (piVar4 <= DAT_00083b78) {\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }" (if "if") (parenthesized_expression "(piVar4 <= DAT_00083b78)" (( "(") (binary_expression "piVar4 <= DAT_00083b78" (identifier "piVar4") (<= "<=") (identifier "DAT_00083b78")) () ")")) (compound_statement "{\n    if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }\n    *piVar4 = param_1;\n    DAT_00083b6c = iVar5;\n    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;\n    *puVar2 = 1;\n    return;\n  }" ({ "{") (if_statement "if (DAT_00083b78 == (int *)0x0) {\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }\n    else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }" (if "if") (parenthesized_expression "(DAT_00083b78 == (int *)0x0)" (( "(") (binary_expression "DAT_00083b78 == (int *)0x0" (identifier "DAT_00083b78") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar5 = 1;\n      iVar3 = 0;\n      DAT_00083b78 = (int *)xmalloc(0x28);\n      DAT_00083b74 = xmalloc(0x28);\n      puVar2 = (undefined1 *)xmalloc(10);\n      DAT_00083b68 = 10;\n      piVar4 = DAT_00083b78;\n      DAT_00083b70 = puVar2;\n    }" ({ "{") (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_00083b78 = (int *)xmalloc(0x28);" (assignment_expression "DAT_00083b78 = (int *)xmalloc(0x28)" (identifier "DAT_00083b78") (= "=") (cast_expression "(int *)xmalloc(0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x28)" (identifier "xmalloc") (argument_list "(0x28)" (( "(") (number_literal "0x28") () ")"))))) (; ";")) (expression_statement "DAT_00083b74 = xmalloc(0x28);" (assignment_expression "DAT_00083b74 = xmalloc(0x28)" (identifier "DAT_00083b74") (= "=") (call_expression "xmalloc(0x28)" (identifier "xmalloc") (argument_list "(0x28)" (( "(") (number_literal "0x28") () ")")))) (; ";")) (expression_statement "puVar2 = (undefined1 *)xmalloc(10);" (assignment_expression "puVar2 = (undefined1 *)xmalloc(10)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)xmalloc(10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(10)" (identifier "xmalloc") (argument_list "(10)" (( "(") (number_literal "10") () ")"))))) (; ";")) (expression_statement "DAT_00083b68 = 10;" (assignment_expression "DAT_00083b68 = 10" (identifier "DAT_00083b68") (= "=") (number_literal "10")) (; ";")) (expression_statement "piVar4 = DAT_00083b78;" (assignment_expression "piVar4 = DAT_00083b78" (identifier "piVar4") (= "=") (identifier "DAT_00083b78")) (; ";")) (expression_statement "DAT_00083b70 = puVar2;" (assignment_expression "DAT_00083b70 = puVar2" (identifier "DAT_00083b70") (= "=") (identifier "puVar2")) (; ";")) (} "}")) (else_clause "else {\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }" (else "else") (compound_statement "{\nLAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }\n    }" ({ "{") (labeled_statement "LAB_0003866b:\n      if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" (statement_identifier "LAB_0003866b") (: ":") (if_statement "if (DAT_00083b6c == DAT_00083b68) {\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }\n      else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" (if "if") (parenthesized_expression "(DAT_00083b6c == DAT_00083b68)" (( "(") (binary_expression "DAT_00083b6c == DAT_00083b68" (identifier "DAT_00083b6c") (== "==") (identifier "DAT_00083b68")) () ")")) (compound_statement "{\n        DAT_00083b68 = DAT_00083b6c + 10;\n        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);\n        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);\n        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);\n        iVar3 = DAT_00083b6c * 4;\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n        piVar4 = DAT_00083b78 + DAT_00083b6c;\n      }" ({ "{") (expression_statement "DAT_00083b68 = DAT_00083b6c + 10;" (assignment_expression "DAT_00083b68 = DAT_00083b6c + 10" (identifier "DAT_00083b68") (= "=") (binary_expression "DAT_00083b6c + 10" (identifier "DAT_00083b6c") (+ "+") (number_literal "10"))) (; ";")) (expression_statement "DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);" (assignment_expression "DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4)" (identifier "DAT_00083b78") (= "=") (cast_expression "(int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(DAT_00083b78,DAT_00083b68 * 4)" (identifier "xrealloc") (argument_list "(DAT_00083b78,DAT_00083b68 * 4)" (( "(") (identifier "DAT_00083b78") (, ",") (binary_expression "DAT_00083b68 * 4" (identifier "DAT_00083b68") (* "*") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);" (assignment_expression "DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2)" (identifier "DAT_00083b74") (= "=") (call_expression "xrealloc(DAT_00083b74,DAT_00083b68 << 2)" (identifier "xrealloc") (argument_list "(DAT_00083b74,DAT_00083b68 << 2)" (( "(") (identifier "DAT_00083b74") (, ",") (binary_expression "DAT_00083b68 << 2" (identifier "DAT_00083b68") (<< "<<") (number_literal "2")) () ")")))) (; ";")) (expression_statement "DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);" (assignment_expression "DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68)" (identifier "DAT_00083b70") (= "=") (cast_expression "(undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(DAT_00083b70,DAT_00083b68)" (identifier "xrealloc") (argument_list "(DAT_00083b70,DAT_00083b68)" (( "(") (identifier "DAT_00083b70") (, ",") (identifier "DAT_00083b68") () ")"))))) (; ";")) (expression_statement "iVar3 = DAT_00083b6c * 4;" (assignment_expression "iVar3 = DAT_00083b6c * 4" (identifier "iVar3") (= "=") (binary_expression "DAT_00083b6c * 4" (identifier "DAT_00083b6c") (* "*") (number_literal "4"))) (; ";")) (expression_statement "puVar2 = DAT_00083b70 + DAT_00083b6c;" (assignment_expression "puVar2 = DAT_00083b70 + DAT_00083b6c" (identifier "puVar2") (= "=") (binary_expression "DAT_00083b70 + DAT_00083b6c" (identifier "DAT_00083b70") (+ "+") (identifier "DAT_00083b6c"))) (; ";")) (expression_statement "iVar5 = DAT_00083b6c + 1;" (assignment_expression "iVar5 = DAT_00083b6c + 1" (identifier "iVar5") (= "=") (binary_expression "DAT_00083b6c + 1" (identifier "DAT_00083b6c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar4 = DAT_00083b78 + DAT_00083b6c;" (assignment_expression "piVar4 = DAT_00083b78 + DAT_00083b6c" (identifier "piVar4") (= "=") (binary_expression "DAT_00083b78 + DAT_00083b6c" (identifier "DAT_00083b78") (+ "+") (identifier "DAT_00083b6c"))) (; ";")) (} "}")) (else_clause "else {\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" (else "else") (compound_statement "{\n        puVar2 = DAT_00083b70 + DAT_00083b6c;\n        iVar5 = DAT_00083b6c + 1;\n      }" ({ "{") (expression_statement "puVar2 = DAT_00083b70 + DAT_00083b6c;" (assignment_expression "puVar2 = DAT_00083b70 + DAT_00083b6c" (identifier "puVar2") (= "=") (binary_expression "DAT_00083b70 + DAT_00083b6c" (identifier "DAT_00083b70") (+ "+") (identifier "DAT_00083b6c"))) (; ";")) (expression_statement "iVar5 = DAT_00083b6c + 1;" (assignment_expression "iVar5 = DAT_00083b6c + 1" (identifier "iVar5") (= "=") (binary_expression "DAT_00083b6c + 1" (identifier "DAT_00083b6c") (+ "+") (number_literal "1"))) (; ";")) (} "}"))))) (} "}")))) (expression_statement "*piVar4 = param_1;" (assignment_expression "*piVar4 = param_1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "DAT_00083b6c = iVar5;" (assignment_expression "DAT_00083b6c = iVar5" (identifier "DAT_00083b6c") (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined4 *)(DAT_00083b74 + iVar3) = 1;" (assignment_expression "*(undefined4 *)(DAT_00083b74 + iVar3) = 1" (pointer_expression "*(undefined4 *)(DAT_00083b74 + iVar3)" (* "*") (cast_expression "(undefined4 *)(DAT_00083b74 + iVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00083b74 + iVar3)" (( "(") (binary_expression "DAT_00083b74 + iVar3" (identifier "DAT_00083b74") (+ "+") (identifier "iVar3")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar1 = DAT_00083b78;" (assignment_expression "piVar1 = DAT_00083b78" (identifier "piVar1") (= "=") (identifier "DAT_00083b78")) (; ";")) (if_statement "if (param_1 == *DAT_00083b78) {\n    iVar5 = 0;\n    iVar3 = 0;\n  }\n  else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }" (if "if") (parenthesized_expression "(param_1 == *DAT_00083b78)" (( "(") (binary_expression "param_1 == *DAT_00083b78" (identifier "param_1") (== "==") (pointer_expression "*DAT_00083b78" (* "*") (identifier "DAT_00083b78"))) () ")")) (compound_statement "{\n    iVar5 = 0;\n    iVar3 = 0;\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }" (else "else") (compound_statement "{\n    do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);\n    iVar3 = (int)piVar1 - (int)DAT_00083b78;\n    iVar5 = iVar3 >> 2;\n  }" ({ "{") (do_statement "do {\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    } while (*piVar1 != param_1);" (do "do") (compound_statement "{\n      piVar1 = piVar1 + 1;\n      if (piVar4 <= piVar1) goto LAB_0003866b;\n    }" ({ "{") (expression_statement "piVar1 = piVar1 + 1;" (assignment_expression "piVar1 = piVar1 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (piVar4 <= piVar1) goto LAB_0003866b;" (if "if") (parenthesized_expression "(piVar4 <= piVar1)" (( "(") (binary_expression "piVar4 <= piVar1" (identifier "piVar4") (<= "<=") (identifier "piVar1")) () ")")) (goto_statement "goto LAB_0003866b;" (goto "goto") (statement_identifier "LAB_0003866b") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(*piVar1 != param_1)" (( "(") (binary_expression "*piVar1 != param_1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (identifier "param_1")) () ")")) (; ";")) (expression_statement "iVar3 = (int)piVar1 - (int)DAT_00083b78;" (assignment_expression "iVar3 = (int)piVar1 - (int)DAT_00083b78" (identifier "iVar3") (= "=") (binary_expression "(int)piVar1 - (int)DAT_00083b78" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (- "-") (cast_expression "(int)DAT_00083b78" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_00083b78")))) (; ";")) (expression_statement "iVar5 = iVar3 >> 2;" (assignment_expression "iVar5 = iVar3 >> 2" (identifier "iVar5") (= "=") (binary_expression "iVar3 >> 2" (identifier "iVar3") (>> ">>") (number_literal "2"))) (; ";")) (} "}")))) (expression_statement "*(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;" (assignment_expression "*(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00083b74)" (* "*") (cast_expression "(int *)(iVar3 + DAT_00083b74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + DAT_00083b74)" (( "(") (binary_expression "iVar3 + DAT_00083b74" (identifier "iVar3") (+ "+") (identifier "DAT_00083b74")) () ")")))) (= "=") (binary_expression "*(int *)(iVar3 + DAT_00083b74) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00083b74)" (* "*") (cast_expression "(int *)(iVar3 + DAT_00083b74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + DAT_00083b74)" (( "(") (binary_expression "iVar3 + DAT_00083b74" (identifier "iVar3") (+ "+") (identifier "DAT_00083b74")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "DAT_00083b70[iVar5] = 1;" (assignment_expression "DAT_00083b70[iVar5] = 1" (subscript_expression "DAT_00083b70[iVar5]" (identifier "DAT_00083b70") ([ "[") (identifier "iVar5") (] "]")) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(long var_9)

{
  int *var_10;
  char *pcVar2;
  int var_8;
  int *var_3;
  int iVar5;
  type_1 uVar6;
  
  var_8 = var_1 * 4;
  var_3 = var_2 + var_1;
  if (var_3 <= var_2) {
    if (var_2 == (long *)0x0) {
      uVar6 = 1;
      var_8 = 0;
      var_2 = (long *)var_4(0x28);
      dollar_label_instances = (long *)var_4(0x28);
      pcVar2 = (char *)var_4(10);
      var_5 = 10;
      var_3 = var_2;
      var_7 = pcVar2;
    }
    else {
LAB_0003866b:
      if (var_1 == var_5) {
        var_5 = var_1 + 10;
        var_2 = (long *)var_6(var_2,var_5 * 4);
        dollar_label_instances = (long *)var_6(dollar_label_instances,var_5 << 2);
        var_7 = (char *)var_6(var_7,var_5);
        var_8 = var_1 * 4;
        pcVar2 = var_7 + var_1;
        uVar6 = var_1 + 1;
        var_3 = var_2 + var_1;
      }
      else {
        pcVar2 = var_7 + var_1;
        uVar6 = var_1 + 1;
      }
    }
    *var_3 = var_9;
    var_1 = uVar6;
    *(type_2 *)((int)dollar_label_instances + var_8) = 1;
    *pcVar2 = '\x01';
    return;
  }
  var_10 = var_2;
  if (var_9 == *var_2) {
    iVar5 = 0;
    var_8 = 0;
  }
  else {
    do {
      var_10 = var_10 + 1;
      if (var_3 <= var_10) goto LAB_0003866b;
    } while (*var_10 != var_9);
    var_8 = (int)var_10 - (int)var_2;
    iVar5 = var_8 >> 2;
  }
  *(int *)(var_8 + (int)dollar_label_instances) = *(int *)(var_8 + (int)dollar_label_instances) + 1;
  var_7[iVar5] = '\x01';
  return;
}


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

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

void MASKED(int param_1)

{
  int *piVar1;
  undefined1 *puVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  
  iVar3 = DAT_00083b6c * 4;
  piVar4 = DAT_00083b78 + DAT_00083b6c;
  if (piVar4 <= DAT_00083b78) {
    if (DAT_00083b78 == (int *)0x0) {
      iVar5 = 1;
      iVar3 = 0;
      DAT_00083b78 = (int *)xmalloc(0x28);
      DAT_00083b74 = xmalloc(0x28);
      puVar2 = (undefined1 *)xmalloc(10);
      DAT_00083b68 = 10;
      piVar4 = DAT_00083b78;
      DAT_00083b70 = puVar2;
    }
    else {
LAB_0003866b:
      if (DAT_00083b6c == DAT_00083b68) {
        DAT_00083b68 = DAT_00083b6c + 10;
        DAT_00083b78 = (int *)xrealloc(DAT_00083b78,DAT_00083b68 * 4);
        DAT_00083b74 = xrealloc(DAT_00083b74,DAT_00083b68 << 2);
        DAT_00083b70 = (undefined1 *)xrealloc(DAT_00083b70,DAT_00083b68);
        iVar3 = DAT_00083b6c * 4;
        puVar2 = DAT_00083b70 + DAT_00083b6c;
        iVar5 = DAT_00083b6c + 1;
        piVar4 = DAT_00083b78 + DAT_00083b6c;
      }
      else {
        puVar2 = DAT_00083b70 + DAT_00083b6c;
        iVar5 = DAT_00083b6c + 1;
      }
    }
    *piVar4 = param_1;
    DAT_00083b6c = iVar5;
    *(undefined4 *)(DAT_00083b74 + iVar3) = 1;
    *puVar2 = 1;
    return;
  }
  piVar1 = DAT_00083b78;
  if (param_1 == *DAT_00083b78) {
    iVar5 = 0;
    iVar3 = 0;
  }
  else {
    do {
      piVar1 = piVar1 + 1;
      if (piVar4 <= piVar1) goto LAB_0003866b;
    } while (*piVar1 != param_1);
    iVar3 = (int)piVar1 - (int)DAT_00083b78;
    iVar5 = iVar3 >> 2;
  }
  *(int *)(iVar3 + DAT_00083b74) = *(int *)(iVar3 + DAT_00083b74) + 1;
  DAT_00083b70[iVar5] = 1;
  return;
}

