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

void fb_label_instance_inc(long label)

{
  long *plVar1;
  int *piVar2;
  int iVar3;
  long lVar4;
  int *piVar5;
  
  if ((uint)label < 10) {
    fb_low_counter[label] = fb_low_counter[label] + 1;
    return;
  }
  if (fb_labels == (long *)0x0) {
    iVar3 = 0x28;
    fb_labels = (long *)xmalloc(0x40);
    fb_label_instances = (long *)xmalloc(0x40);
    fb_label_max = 0x10;
    lVar4 = 0xb;
    piVar5 = fb_labels + 10;
  }
  else {
    piVar2 = fb_labels + 10;
    iVar3 = fb_label_count * 4;
    piVar5 = fb_labels + fb_label_count;
    if (piVar2 < piVar5) {
      if (label == fb_labels[10]) {
        iVar3 = 0x28;
      }
      else {
        do {
          piVar2 = piVar2 + 1;
          if (piVar5 <= piVar2) goto LAB_0003693b;
        } while (*piVar2 != label);
        iVar3 = (int)piVar2 - (int)fb_labels;
      }
      *(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1;
      return;
    }
LAB_0003693b:
    if (fb_label_max == fb_label_count) {
      fb_label_max = fb_label_count + 0x10;
      fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);
      fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);
      iVar3 = fb_label_count * 4;
      lVar4 = fb_label_count + 1;
      piVar5 = fb_labels + fb_label_count;
    }
    else {
      lVar4 = fb_label_count + 1;
    }
  }
  plVar1 = fb_label_instances;
  *piVar5 = label;
  fb_label_count = lVar4;
  *(undefined4 *)((int)plVar1 + iVar3) = 1;
  return;
}



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

void FUN_000368e0(uint param_1)

{
  int iVar1;
  uint *puVar2;
  int iVar3;
  uint *puVar4;
  
  if (param_1 < 10) {
    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;
    return;
  }
  if (DAT_00070c3c == 0) {
    iVar3 = 0x28;
    DAT_00070c3c = xmalloc(0x40);
    DAT_00070c38 = xmalloc(0x40);
    DAT_00070c30 = 0x10;
    DAT_00070c34 = 0xb;
    puVar4 = (uint *)(DAT_00070c3c + 0x28);
  }
  else {
    puVar2 = (uint *)(DAT_00070c3c + 0x28);
    iVar3 = DAT_00070c34 * 4;
    puVar4 = (uint *)(DAT_00070c3c + iVar3);
    if (puVar2 < puVar4) {
      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {
        iVar3 = 0x28;
      }
      else {
        do {
          puVar2 = puVar2 + 1;
          if (puVar4 <= puVar2) goto LAB_0003693b;
        } while (*puVar2 != param_1);
        iVar3 = (int)puVar2 - DAT_00070c3c;
      }
      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;
      return;
    }
LAB_0003693b:
    if (DAT_00070c30 == DAT_00070c34) {
      DAT_00070c30 = DAT_00070c34 + 0x10;
      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);
      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);
      iVar3 = DAT_00070c34 * 4;
      DAT_00070c34 = DAT_00070c34 + 1;
      puVar4 = (uint *)(DAT_00070c3c + iVar3);
    }
    else {
      DAT_00070c34 = DAT_00070c34 + 1;
    }
  }
  iVar1 = DAT_00070c38;
  *puVar4 = param_1;
  *(undefined4 *)(iVar1 + iVar3) = 1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015020
ADD EBX,0x31717
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
CMP ESI,0x9
JBE 0x00036970
MOV EBP,dword ptr [EBX + 0x8c3c]
TEST EBP,EBP
JZ 0x00036998
MOV ECX,dword ptr [EBX + 0x8c34]
LEA EAX,[EBP + 0x28]
LEA EDI,[ECX*0x4 + 0x0]
LEA EDX,[EBP + EDI*0x1]
CMP EAX,EDX
JNC 0x0003693b
CMP ESI,dword ptr [EBP + 0x28]
JNZ 0x00036934
JMP 0x00036a39
CMP dword ptr [EAX],ESI
JZ 0x00036980
ADD EAX,0x4
CMP EAX,EDX
JC 0x00036930
CMP dword ptr [EBX + 0x8c30],ECX
JZ 0x000369e0
MOV EAX,dword ptr [EBX + 0x8c38]
ADD ECX,0x1
MOV dword ptr [EDX],ESI
MOV dword ptr [EBX + 0x8c34],ECX
MOV dword ptr [EAX + EDI*0x1],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD dword ptr [EBX + ESI*0x4 + 0x8c40],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB EAX,EBP
ADD EAX,dword ptr [EBX + 0x8c38]
ADD dword ptr [EAX],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EDI,0x28
PUSH 0x40
CALL 0x000137b0
MOV dword ptr [ESP],0x40
MOV dword ptr [EBX + 0x8c3c],EAX
CALL 0x000137b0
MOV EDX,dword ptr [EBX + 0x8c3c]
ADD ESP,0x10
MOV dword ptr [EBX + 0x8c30],0x10
MOV dword ptr [EBX + 0x8c38],EAX
MOV ECX,0xb
ADD EDX,0x28
JMP 0x00036950
ADD ECX,0x10
SUB ESP,0x8
MOV dword ptr [EBX + 0x8c30],ECX
SHL ECX,0x2
PUSH ECX
PUSH EBP
CALL 0x00013220
MOV dword ptr [EBX + 0x8c3c],EAX
POP EAX
MOV EAX,dword ptr [EBX + 0x8c30]
POP EDX
SHL EAX,0x2
PUSH EAX
PUSH dword ptr [EBX + 0x8c38]
CALL 0x00013220
MOV ECX,dword ptr [EBX + 0x8c34]
MOV EDX,dword ptr [EBX + 0x8c3c]
ADD ESP,0x10
MOV dword ptr [EBX + 0x8c38],EAX
LEA EDI,[ECX*0x4 + 0x0]
ADD ECX,0x1
ADD EDX,EDI
JMP 0x00036950
MOV EAX,0x28
JMP 0x00036982
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000368e0(uint param_1)\n\n{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }\n  if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }\n  iVar1 = DAT_00070c38;\n  *puVar4 = param_1;\n  *(undefined4 *)(iVar1 + iVar3) = 1;\n  return;\n}\n\n" comment (function_definition "void FUN_000368e0(uint param_1)\n\n{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }\n  if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }\n  iVar1 = DAT_00070c38;\n  *puVar4 = param_1;\n  *(undefined4 *)(iVar1 + iVar3) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_000368e0(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }\n  if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }\n  iVar1 = DAT_00070c38;\n  *puVar4 = param_1;\n  *(undefined4 *)(iVar1 + iVar3) = 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }" if (parenthesized_expression "(param_1 < 10)" ( (binary_expression "param_1 < 10" identifier < number_literal) )) (compound_statement "{\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }" { (expression_statement "(&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;" (assignment_expression "(&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1" (subscript_expression "(&DAT_00070c40)[param_1]" (parenthesized_expression "(&DAT_00070c40)" ( (pointer_expression "&DAT_00070c40" & identifier) )) [ identifier ]) = (binary_expression "(&DAT_00070c40)[param_1] + 1" (subscript_expression "(&DAT_00070c40)[param_1]" (parenthesized_expression "(&DAT_00070c40)" ( (pointer_expression "&DAT_00070c40" & identifier) )) [ identifier ]) + number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }" if (parenthesized_expression "(DAT_00070c3c == 0)" ( (binary_expression "DAT_00070c3c == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }" { (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" identifier = number_literal) ;) (expression_statement "DAT_00070c3c = xmalloc(0x40);" (assignment_expression "DAT_00070c3c = xmalloc(0x40)" identifier = (call_expression "xmalloc(0x40)" identifier (argument_list "(0x40)" ( number_literal )))) ;) (expression_statement "DAT_00070c38 = xmalloc(0x40);" (assignment_expression "DAT_00070c38 = xmalloc(0x40)" identifier = (call_expression "xmalloc(0x40)" identifier (argument_list "(0x40)" ( number_literal )))) ;) (expression_statement "DAT_00070c30 = 0x10;" (assignment_expression "DAT_00070c30 = 0x10" identifier = number_literal) ;) (expression_statement "DAT_00070c34 = 0xb;" (assignment_expression "DAT_00070c34 = 0xb" identifier = number_literal) ;) (expression_statement "puVar4 = (uint *)(DAT_00070c3c + 0x28);" (assignment_expression "puVar4 = (uint *)(DAT_00070c3c + 0x28)" identifier = (cast_expression "(uint *)(DAT_00070c3c + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00070c3c + 0x28)" ( (binary_expression "DAT_00070c3c + 0x28" identifier + number_literal) )))) ;) }) (else_clause "else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }" else (compound_statement "{\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }" { (expression_statement "puVar2 = (uint *)(DAT_00070c3c + 0x28);" (assignment_expression "puVar2 = (uint *)(DAT_00070c3c + 0x28)" identifier = (cast_expression "(uint *)(DAT_00070c3c + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00070c3c + 0x28)" ( (binary_expression "DAT_00070c3c + 0x28" identifier + number_literal) )))) ;) (expression_statement "iVar3 = DAT_00070c34 * 4;" (assignment_expression "iVar3 = DAT_00070c34 * 4" identifier = (binary_expression "DAT_00070c34 * 4" identifier * number_literal)) ;) (expression_statement "puVar4 = (uint *)(DAT_00070c3c + iVar3);" (assignment_expression "puVar4 = (uint *)(DAT_00070c3c + iVar3)" identifier = (cast_expression "(uint *)(DAT_00070c3c + iVar3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00070c3c + iVar3)" ( (binary_expression "DAT_00070c3c + iVar3" identifier + identifier) )))) ;) (if_statement "if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }" if (parenthesized_expression "(puVar2 < puVar4)" ( (binary_expression "puVar2 < puVar4" identifier < identifier) )) (compound_statement "{\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }" { (if_statement "if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }" if (parenthesized_expression "(param_1 == *(uint *)(DAT_00070c3c + 0x28))" ( (binary_expression "param_1 == *(uint *)(DAT_00070c3c + 0x28)" identifier == (pointer_expression "*(uint *)(DAT_00070c3c + 0x28)" * (cast_expression "(uint *)(DAT_00070c3c + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00070c3c + 0x28)" ( (binary_expression "DAT_00070c3c + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar3 = 0x28;\n      }" { (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }" else (compound_statement "{\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }" { (do_statement "do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);" do (compound_statement "{\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        }" { (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (if_statement "if (puVar4 <= puVar2) goto LAB_0003693b;" if (parenthesized_expression "(puVar4 <= puVar2)" ( (binary_expression "puVar4 <= puVar2" identifier <= identifier) )) (goto_statement "goto LAB_0003693b;" goto statement_identifier ;)) }) while (parenthesized_expression "(*puVar2 != param_1)" ( (binary_expression "*puVar2 != param_1" (pointer_expression "*puVar2" * identifier) != identifier) )) ;) (expression_statement "iVar3 = (int)puVar2 - DAT_00070c3c;" (assignment_expression "iVar3 = (int)puVar2 - DAT_00070c3c" identifier = (binary_expression "(int)puVar2 - DAT_00070c3c" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) }))) (expression_statement "*(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;" (assignment_expression "*(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00070c38)" * (cast_expression "(int *)(iVar3 + DAT_00070c38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + DAT_00070c38)" ( (binary_expression "iVar3 + DAT_00070c38" identifier + identifier) )))) = (binary_expression "*(int *)(iVar3 + DAT_00070c38) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00070c38)" * (cast_expression "(int *)(iVar3 + DAT_00070c38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + DAT_00070c38)" ( (binary_expression "iVar3 + DAT_00070c38" identifier + identifier) )))) + number_literal)) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" statement_identifier : (if_statement "if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" if (parenthesized_expression "(DAT_00070c30 == DAT_00070c34)" ( (binary_expression "DAT_00070c30 == DAT_00070c34" identifier == identifier) )) (compound_statement "{\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }" { (expression_statement "DAT_00070c30 = DAT_00070c34 + 0x10;" (assignment_expression "DAT_00070c30 = DAT_00070c34 + 0x10" identifier = (binary_expression "DAT_00070c34 + 0x10" identifier + number_literal)) ;) (expression_statement "DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);" (assignment_expression "DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4)" identifier = (call_expression "xrealloc(DAT_00070c3c,DAT_00070c30 * 4)" identifier (argument_list "(DAT_00070c3c,DAT_00070c30 * 4)" ( identifier , (binary_expression "DAT_00070c30 * 4" identifier * number_literal) )))) ;) (expression_statement "DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);" (assignment_expression "DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2)" identifier = (call_expression "xrealloc(DAT_00070c38,DAT_00070c30 << 2)" identifier (argument_list "(DAT_00070c38,DAT_00070c30 << 2)" ( identifier , (binary_expression "DAT_00070c30 << 2" identifier << number_literal) )))) ;) (expression_statement "iVar3 = DAT_00070c34 * 4;" (assignment_expression "iVar3 = DAT_00070c34 * 4" identifier = (binary_expression "DAT_00070c34 * 4" identifier * number_literal)) ;) (expression_statement "DAT_00070c34 = DAT_00070c34 + 1;" (assignment_expression "DAT_00070c34 = DAT_00070c34 + 1" identifier = (binary_expression "DAT_00070c34 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = (uint *)(DAT_00070c3c + iVar3);" (assignment_expression "puVar4 = (uint *)(DAT_00070c3c + iVar3)" identifier = (cast_expression "(uint *)(DAT_00070c3c + iVar3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00070c3c + iVar3)" ( (binary_expression "DAT_00070c3c + iVar3" identifier + identifier) )))) ;) }) (else_clause "else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" else (compound_statement "{\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" { (expression_statement "DAT_00070c34 = DAT_00070c34 + 1;" (assignment_expression "DAT_00070c34 = DAT_00070c34 + 1" identifier = (binary_expression "DAT_00070c34 + 1" identifier + number_literal)) ;) })))) }))) (expression_statement "iVar1 = DAT_00070c38;" (assignment_expression "iVar1 = DAT_00070c38" identifier = identifier) ;) (expression_statement "*puVar4 = param_1;" (assignment_expression "*puVar4 = param_1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + iVar3) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + iVar3) = 1" (pointer_expression "*(undefined4 *)(iVar1 + iVar3)" * (cast_expression "(undefined4 *)(iVar1 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3)" ( (binary_expression "iVar1 + iVar3" 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 fb_label_instance_inc(long label)\n\n{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  \n  if ((uint)label < 10) {\n    fb_low_counter[label] = fb_low_counter[label] + 1;\n    return;\n  }\n  if (fb_labels == (long *)0x0) {\n    iVar3 = 0x28;\n    fb_labels = (long *)xmalloc(0x40);\n    fb_label_instances = (long *)xmalloc(0x40);\n    fb_label_max = 0x10;\n    lVar4 = 0xb;\n    piVar5 = fb_labels + 10;\n  }\n  else {\n    piVar2 = fb_labels + 10;\n    iVar3 = fb_label_count * 4;\n    piVar5 = fb_labels + fb_label_count;\n    if (piVar2 < piVar5) {\n      if (label == fb_labels[10]) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }\n      *(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (fb_label_max == fb_label_count) {\n      fb_label_max = fb_label_count + 0x10;\n      fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);\n      fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);\n      iVar3 = fb_label_count * 4;\n      lVar4 = fb_label_count + 1;\n      piVar5 = fb_labels + fb_label_count;\n    }\n    else {\n      lVar4 = fb_label_count + 1;\n    }\n  }\n  plVar1 = fb_label_instances;\n  *piVar5 = label;\n  fb_label_count = lVar4;\n  *(undefined4 *)((int)plVar1 + iVar3) = 1;\n  return;\n}\n\n" comment comment (function_definition "void fb_label_instance_inc(long label)\n\n{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  \n  if ((uint)label < 10) {\n    fb_low_counter[label] = fb_low_counter[label] + 1;\n    return;\n  }\n  if (fb_labels == (long *)0x0) {\n    iVar3 = 0x28;\n    fb_labels = (long *)xmalloc(0x40);\n    fb_label_instances = (long *)xmalloc(0x40);\n    fb_label_max = 0x10;\n    lVar4 = 0xb;\n    piVar5 = fb_labels + 10;\n  }\n  else {\n    piVar2 = fb_labels + 10;\n    iVar3 = fb_label_count * 4;\n    piVar5 = fb_labels + fb_label_count;\n    if (piVar2 < piVar5) {\n      if (label == fb_labels[10]) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }\n      *(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (fb_label_max == fb_label_count) {\n      fb_label_max = fb_label_count + 0x10;\n      fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);\n      fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);\n      iVar3 = fb_label_count * 4;\n      lVar4 = fb_label_count + 1;\n      piVar5 = fb_labels + fb_label_count;\n    }\n    else {\n      lVar4 = fb_label_count + 1;\n    }\n  }\n  plVar1 = fb_label_instances;\n  *piVar5 = label;\n  fb_label_count = lVar4;\n  *(undefined4 *)((int)plVar1 + iVar3) = 1;\n  return;\n}" primitive_type (function_declarator "fb_label_instance_inc(long label)" identifier (parameter_list "(long label)" ( (parameter_declaration "long label" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long *plVar1;\n  int *piVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  \n  if ((uint)label < 10) {\n    fb_low_counter[label] = fb_low_counter[label] + 1;\n    return;\n  }\n  if (fb_labels == (long *)0x0) {\n    iVar3 = 0x28;\n    fb_labels = (long *)xmalloc(0x40);\n    fb_label_instances = (long *)xmalloc(0x40);\n    fb_label_max = 0x10;\n    lVar4 = 0xb;\n    piVar5 = fb_labels + 10;\n  }\n  else {\n    piVar2 = fb_labels + 10;\n    iVar3 = fb_label_count * 4;\n    piVar5 = fb_labels + fb_label_count;\n    if (piVar2 < piVar5) {\n      if (label == fb_labels[10]) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }\n      *(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (fb_label_max == fb_label_count) {\n      fb_label_max = fb_label_count + 0x10;\n      fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);\n      fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);\n      iVar3 = fb_label_count * 4;\n      lVar4 = fb_label_count + 1;\n      piVar5 = fb_labels + fb_label_count;\n    }\n    else {\n      lVar4 = fb_label_count + 1;\n    }\n  }\n  plVar1 = fb_label_instances;\n  *piVar5 = label;\n  fb_label_count = lVar4;\n  *(undefined4 *)((int)plVar1 + iVar3) = 1;\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (if_statement "if ((uint)label < 10) {\n    fb_low_counter[label] = fb_low_counter[label] + 1;\n    return;\n  }" if (parenthesized_expression "((uint)label < 10)" ( (binary_expression "(uint)label < 10" (cast_expression "(uint)label" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) )) (compound_statement "{\n    fb_low_counter[label] = fb_low_counter[label] + 1;\n    return;\n  }" { (expression_statement "fb_low_counter[label] = fb_low_counter[label] + 1;" (assignment_expression "fb_low_counter[label] = fb_low_counter[label] + 1" (subscript_expression "fb_low_counter[label]" identifier [ identifier ]) = (binary_expression "fb_low_counter[label] + 1" (subscript_expression "fb_low_counter[label]" identifier [ identifier ]) + number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (fb_labels == (long *)0x0) {\n    iVar3 = 0x28;\n    fb_labels = (long *)xmalloc(0x40);\n    fb_label_instances = (long *)xmalloc(0x40);\n    fb_label_max = 0x10;\n    lVar4 = 0xb;\n    piVar5 = fb_labels + 10;\n  }\n  else {\n    piVar2 = fb_labels + 10;\n    iVar3 = fb_label_count * 4;\n    piVar5 = fb_labels + fb_label_count;\n    if (piVar2 < piVar5) {\n      if (label == fb_labels[10]) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }\n      *(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (fb_label_max == fb_label_count) {\n      fb_label_max = fb_label_count + 0x10;\n      fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);\n      fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);\n      iVar3 = fb_label_count * 4;\n      lVar4 = fb_label_count + 1;\n      piVar5 = fb_labels + fb_label_count;\n    }\n    else {\n      lVar4 = fb_label_count + 1;\n    }\n  }" if (parenthesized_expression "(fb_labels == (long *)0x0)" ( (binary_expression "fb_labels == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = 0x28;\n    fb_labels = (long *)xmalloc(0x40);\n    fb_label_instances = (long *)xmalloc(0x40);\n    fb_label_max = 0x10;\n    lVar4 = 0xb;\n    piVar5 = fb_labels + 10;\n  }" { (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" identifier = number_literal) ;) (expression_statement "fb_labels = (long *)xmalloc(0x40);" (assignment_expression "fb_labels = (long *)xmalloc(0x40)" identifier = (cast_expression "(long *)xmalloc(0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x40)" identifier (argument_list "(0x40)" ( number_literal ))))) ;) (expression_statement "fb_label_instances = (long *)xmalloc(0x40);" (assignment_expression "fb_label_instances = (long *)xmalloc(0x40)" identifier = (cast_expression "(long *)xmalloc(0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x40)" identifier (argument_list "(0x40)" ( number_literal ))))) ;) (expression_statement "fb_label_max = 0x10;" (assignment_expression "fb_label_max = 0x10" identifier = number_literal) ;) (expression_statement "lVar4 = 0xb;" (assignment_expression "lVar4 = 0xb" identifier = number_literal) ;) (expression_statement "piVar5 = fb_labels + 10;" (assignment_expression "piVar5 = fb_labels + 10" identifier = (binary_expression "fb_labels + 10" identifier + number_literal)) ;) }) (else_clause "else {\n    piVar2 = fb_labels + 10;\n    iVar3 = fb_label_count * 4;\n    piVar5 = fb_labels + fb_label_count;\n    if (piVar2 < piVar5) {\n      if (label == fb_labels[10]) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }\n      *(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (fb_label_max == fb_label_count) {\n      fb_label_max = fb_label_count + 0x10;\n      fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);\n      fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);\n      iVar3 = fb_label_count * 4;\n      lVar4 = fb_label_count + 1;\n      piVar5 = fb_labels + fb_label_count;\n    }\n    else {\n      lVar4 = fb_label_count + 1;\n    }\n  }" else (compound_statement "{\n    piVar2 = fb_labels + 10;\n    iVar3 = fb_label_count * 4;\n    piVar5 = fb_labels + fb_label_count;\n    if (piVar2 < piVar5) {\n      if (label == fb_labels[10]) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }\n      *(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (fb_label_max == fb_label_count) {\n      fb_label_max = fb_label_count + 0x10;\n      fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);\n      fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);\n      iVar3 = fb_label_count * 4;\n      lVar4 = fb_label_count + 1;\n      piVar5 = fb_labels + fb_label_count;\n    }\n    else {\n      lVar4 = fb_label_count + 1;\n    }\n  }" { (expression_statement "piVar2 = fb_labels + 10;" (assignment_expression "piVar2 = fb_labels + 10" identifier = (binary_expression "fb_labels + 10" identifier + number_literal)) ;) (expression_statement "iVar3 = fb_label_count * 4;" (assignment_expression "iVar3 = fb_label_count * 4" identifier = (binary_expression "fb_label_count * 4" identifier * number_literal)) ;) (expression_statement "piVar5 = fb_labels + fb_label_count;" (assignment_expression "piVar5 = fb_labels + fb_label_count" identifier = (binary_expression "fb_labels + fb_label_count" identifier + identifier)) ;) (if_statement "if (piVar2 < piVar5) {\n      if (label == fb_labels[10]) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }\n      *(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1;\n      return;\n    }" if (parenthesized_expression "(piVar2 < piVar5)" ( (binary_expression "piVar2 < piVar5" identifier < identifier) )) (compound_statement "{\n      if (label == fb_labels[10]) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }\n      *(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1;\n      return;\n    }" { (if_statement "if (label == fb_labels[10]) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }" if (parenthesized_expression "(label == fb_labels[10])" ( (binary_expression "label == fb_labels[10]" identifier == (subscript_expression "fb_labels[10]" identifier [ number_literal ])) )) (compound_statement "{\n        iVar3 = 0x28;\n      }" { (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }" else (compound_statement "{\n        do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);\n        iVar3 = (int)piVar2 - (int)fb_labels;\n      }" { (do_statement "do {\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        } while (*piVar2 != label);" do (compound_statement "{\n          piVar2 = piVar2 + 1;\n          if (piVar5 <= piVar2) goto LAB_0003693b;\n        }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (if_statement "if (piVar5 <= piVar2) goto LAB_0003693b;" if (parenthesized_expression "(piVar5 <= piVar2)" ( (binary_expression "piVar5 <= piVar2" identifier <= identifier) )) (goto_statement "goto LAB_0003693b;" goto statement_identifier ;)) }) while (parenthesized_expression "(*piVar2 != label)" ( (binary_expression "*piVar2 != label" (pointer_expression "*piVar2" * identifier) != identifier) )) ;) (expression_statement "iVar3 = (int)piVar2 - (int)fb_labels;" (assignment_expression "iVar3 = (int)piVar2 - (int)fb_labels" identifier = (binary_expression "(int)piVar2 - (int)fb_labels" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)fb_labels" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "*(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1;" (assignment_expression "*(int *)(iVar3 + (int)fb_label_instances) = *(int *)(iVar3 + (int)fb_label_instances) + 1" (pointer_expression "*(int *)(iVar3 + (int)fb_label_instances)" * (cast_expression "(int *)(iVar3 + (int)fb_label_instances)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (int)fb_label_instances)" ( (binary_expression "iVar3 + (int)fb_label_instances" identifier + (cast_expression "(int)fb_label_instances" ( (type_descriptor "int" primitive_type) ) identifier)) )))) = (binary_expression "*(int *)(iVar3 + (int)fb_label_instances) + 1" (pointer_expression "*(int *)(iVar3 + (int)fb_label_instances)" * (cast_expression "(int *)(iVar3 + (int)fb_label_instances)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (int)fb_label_instances)" ( (binary_expression "iVar3 + (int)fb_label_instances" identifier + (cast_expression "(int)fb_label_instances" ( (type_descriptor "int" primitive_type) ) identifier)) )))) + number_literal)) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_0003693b:\n    if (fb_label_max == fb_label_count) {\n      fb_label_max = fb_label_count + 0x10;\n      fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);\n      fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);\n      iVar3 = fb_label_count * 4;\n      lVar4 = fb_label_count + 1;\n      piVar5 = fb_labels + fb_label_count;\n    }\n    else {\n      lVar4 = fb_label_count + 1;\n    }" statement_identifier : (if_statement "if (fb_label_max == fb_label_count) {\n      fb_label_max = fb_label_count + 0x10;\n      fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);\n      fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);\n      iVar3 = fb_label_count * 4;\n      lVar4 = fb_label_count + 1;\n      piVar5 = fb_labels + fb_label_count;\n    }\n    else {\n      lVar4 = fb_label_count + 1;\n    }" if (parenthesized_expression "(fb_label_max == fb_label_count)" ( (binary_expression "fb_label_max == fb_label_count" identifier == identifier) )) (compound_statement "{\n      fb_label_max = fb_label_count + 0x10;\n      fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);\n      fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);\n      iVar3 = fb_label_count * 4;\n      lVar4 = fb_label_count + 1;\n      piVar5 = fb_labels + fb_label_count;\n    }" { (expression_statement "fb_label_max = fb_label_count + 0x10;" (assignment_expression "fb_label_max = fb_label_count + 0x10" identifier = (binary_expression "fb_label_count + 0x10" identifier + number_literal)) ;) (expression_statement "fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4);" (assignment_expression "fb_labels = (long *)xrealloc(fb_labels,fb_label_max * 4)" identifier = (cast_expression "(long *)xrealloc(fb_labels,fb_label_max * 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(fb_labels,fb_label_max * 4)" identifier (argument_list "(fb_labels,fb_label_max * 4)" ( identifier , (binary_expression "fb_label_max * 4" identifier * number_literal) ))))) ;) (expression_statement "fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2);" (assignment_expression "fb_label_instances = (long *)xrealloc(fb_label_instances,fb_label_max << 2)" identifier = (cast_expression "(long *)xrealloc(fb_label_instances,fb_label_max << 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(fb_label_instances,fb_label_max << 2)" identifier (argument_list "(fb_label_instances,fb_label_max << 2)" ( identifier , (binary_expression "fb_label_max << 2" identifier << number_literal) ))))) ;) (expression_statement "iVar3 = fb_label_count * 4;" (assignment_expression "iVar3 = fb_label_count * 4" identifier = (binary_expression "fb_label_count * 4" identifier * number_literal)) ;) (expression_statement "lVar4 = fb_label_count + 1;" (assignment_expression "lVar4 = fb_label_count + 1" identifier = (binary_expression "fb_label_count + 1" identifier + number_literal)) ;) (expression_statement "piVar5 = fb_labels + fb_label_count;" (assignment_expression "piVar5 = fb_labels + fb_label_count" identifier = (binary_expression "fb_labels + fb_label_count" identifier + identifier)) ;) }) (else_clause "else {\n      lVar4 = fb_label_count + 1;\n    }" else (compound_statement "{\n      lVar4 = fb_label_count + 1;\n    }" { (expression_statement "lVar4 = fb_label_count + 1;" (assignment_expression "lVar4 = fb_label_count + 1" identifier = (binary_expression "fb_label_count + 1" identifier + number_literal)) ;) })))) }))) (expression_statement "plVar1 = fb_label_instances;" (assignment_expression "plVar1 = fb_label_instances" identifier = identifier) ;) (expression_statement "*piVar5 = label;" (assignment_expression "*piVar5 = label" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "fb_label_count = lVar4;" (assignment_expression "fb_label_count = lVar4" identifier = identifier) ;) (expression_statement "*(undefined4 *)((int)plVar1 + iVar3) = 1;" (assignment_expression "*(undefined4 *)((int)plVar1 + iVar3) = 1" (pointer_expression "*(undefined4 *)((int)plVar1 + iVar3)" * (cast_expression "(undefined4 *)((int)plVar1 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)plVar1 + iVar3)" ( (binary_expression "(int)plVar1 + iVar3" (cast_expression "(int)plVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000368e0(uint param_1)\n\n{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }\n  if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }\n  iVar1 = DAT_00070c38;\n  *puVar4 = param_1;\n  *(undefined4 *)(iVar1 + iVar3) = 1;\n  return;\n}\n\n" (function_definition "void FUN_000368e0(uint param_1)\n\n{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }\n  if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }\n  iVar1 = DAT_00070c38;\n  *puVar4 = param_1;\n  *(undefined4 *)(iVar1 + iVar3) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_000368e0(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }\n  if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }\n  iVar1 = DAT_00070c38;\n  *puVar4 = param_1;\n  *(undefined4 *)(iVar1 + iVar3) = 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }" if (parenthesized_expression "(param_1 < 10)" ( (binary_expression "param_1 < 10" identifier < number_literal) )) (compound_statement "{\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }" { (expression_statement "(&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;" (assignment_expression "(&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1" (subscript_expression "(&DAT_00070c40)[param_1]" (parenthesized_expression "(&DAT_00070c40)" ( (pointer_expression "&DAT_00070c40" & identifier) )) [ identifier ]) = (binary_expression "(&DAT_00070c40)[param_1] + 1" (subscript_expression "(&DAT_00070c40)[param_1]" (parenthesized_expression "(&DAT_00070c40)" ( (pointer_expression "&DAT_00070c40" & identifier) )) [ identifier ]) + number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }" if (parenthesized_expression "(DAT_00070c3c == 0)" ( (binary_expression "DAT_00070c3c == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }" { (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" identifier = number_literal) ;) (expression_statement "DAT_00070c3c = xmalloc(0x40);" (assignment_expression "DAT_00070c3c = xmalloc(0x40)" identifier = (call_expression "xmalloc(0x40)" identifier (argument_list "(0x40)" ( number_literal )))) ;) (expression_statement "DAT_00070c38 = xmalloc(0x40);" (assignment_expression "DAT_00070c38 = xmalloc(0x40)" identifier = (call_expression "xmalloc(0x40)" identifier (argument_list "(0x40)" ( number_literal )))) ;) (expression_statement "DAT_00070c30 = 0x10;" (assignment_expression "DAT_00070c30 = 0x10" identifier = number_literal) ;) (expression_statement "DAT_00070c34 = 0xb;" (assignment_expression "DAT_00070c34 = 0xb" identifier = number_literal) ;) (expression_statement "puVar4 = (uint *)(DAT_00070c3c + 0x28);" (assignment_expression "puVar4 = (uint *)(DAT_00070c3c + 0x28)" identifier = (cast_expression "(uint *)(DAT_00070c3c + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00070c3c + 0x28)" ( (binary_expression "DAT_00070c3c + 0x28" identifier + number_literal) )))) ;) }) (else_clause "else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }" else (compound_statement "{\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }" { (expression_statement "puVar2 = (uint *)(DAT_00070c3c + 0x28);" (assignment_expression "puVar2 = (uint *)(DAT_00070c3c + 0x28)" identifier = (cast_expression "(uint *)(DAT_00070c3c + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00070c3c + 0x28)" ( (binary_expression "DAT_00070c3c + 0x28" identifier + number_literal) )))) ;) (expression_statement "iVar3 = DAT_00070c34 * 4;" (assignment_expression "iVar3 = DAT_00070c34 * 4" identifier = (binary_expression "DAT_00070c34 * 4" identifier * number_literal)) ;) (expression_statement "puVar4 = (uint *)(DAT_00070c3c + iVar3);" (assignment_expression "puVar4 = (uint *)(DAT_00070c3c + iVar3)" identifier = (cast_expression "(uint *)(DAT_00070c3c + iVar3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00070c3c + iVar3)" ( (binary_expression "DAT_00070c3c + iVar3" identifier + identifier) )))) ;) (if_statement "if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }" if (parenthesized_expression "(puVar2 < puVar4)" ( (binary_expression "puVar2 < puVar4" identifier < identifier) )) (compound_statement "{\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }" { (if_statement "if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }" if (parenthesized_expression "(param_1 == *(uint *)(DAT_00070c3c + 0x28))" ( (binary_expression "param_1 == *(uint *)(DAT_00070c3c + 0x28)" identifier == (pointer_expression "*(uint *)(DAT_00070c3c + 0x28)" * (cast_expression "(uint *)(DAT_00070c3c + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00070c3c + 0x28)" ( (binary_expression "DAT_00070c3c + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar3 = 0x28;\n      }" { (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }" else (compound_statement "{\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }" { (do_statement "do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);" do (compound_statement "{\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        }" { (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (if_statement "if (puVar4 <= puVar2) goto LAB_0003693b;" if (parenthesized_expression "(puVar4 <= puVar2)" ( (binary_expression "puVar4 <= puVar2" identifier <= identifier) )) (goto_statement "goto LAB_0003693b;" goto statement_identifier ;)) }) while (parenthesized_expression "(*puVar2 != param_1)" ( (binary_expression "*puVar2 != param_1" (pointer_expression "*puVar2" * identifier) != identifier) )) ;) (expression_statement "iVar3 = (int)puVar2 - DAT_00070c3c;" (assignment_expression "iVar3 = (int)puVar2 - DAT_00070c3c" identifier = (binary_expression "(int)puVar2 - DAT_00070c3c" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) }))) (expression_statement "*(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;" (assignment_expression "*(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00070c38)" * (cast_expression "(int *)(iVar3 + DAT_00070c38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + DAT_00070c38)" ( (binary_expression "iVar3 + DAT_00070c38" identifier + identifier) )))) = (binary_expression "*(int *)(iVar3 + DAT_00070c38) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00070c38)" * (cast_expression "(int *)(iVar3 + DAT_00070c38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + DAT_00070c38)" ( (binary_expression "iVar3 + DAT_00070c38" identifier + identifier) )))) + number_literal)) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" statement_identifier : (if_statement "if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" if (parenthesized_expression "(DAT_00070c30 == DAT_00070c34)" ( (binary_expression "DAT_00070c30 == DAT_00070c34" identifier == identifier) )) (compound_statement "{\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }" { (expression_statement "DAT_00070c30 = DAT_00070c34 + 0x10;" (assignment_expression "DAT_00070c30 = DAT_00070c34 + 0x10" identifier = (binary_expression "DAT_00070c34 + 0x10" identifier + number_literal)) ;) (expression_statement "DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);" (assignment_expression "DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4)" identifier = (call_expression "xrealloc(DAT_00070c3c,DAT_00070c30 * 4)" identifier (argument_list "(DAT_00070c3c,DAT_00070c30 * 4)" ( identifier , (binary_expression "DAT_00070c30 * 4" identifier * number_literal) )))) ;) (expression_statement "DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);" (assignment_expression "DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2)" identifier = (call_expression "xrealloc(DAT_00070c38,DAT_00070c30 << 2)" identifier (argument_list "(DAT_00070c38,DAT_00070c30 << 2)" ( identifier , (binary_expression "DAT_00070c30 << 2" identifier << number_literal) )))) ;) (expression_statement "iVar3 = DAT_00070c34 * 4;" (assignment_expression "iVar3 = DAT_00070c34 * 4" identifier = (binary_expression "DAT_00070c34 * 4" identifier * number_literal)) ;) (expression_statement "DAT_00070c34 = DAT_00070c34 + 1;" (assignment_expression "DAT_00070c34 = DAT_00070c34 + 1" identifier = (binary_expression "DAT_00070c34 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = (uint *)(DAT_00070c3c + iVar3);" (assignment_expression "puVar4 = (uint *)(DAT_00070c3c + iVar3)" identifier = (cast_expression "(uint *)(DAT_00070c3c + iVar3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00070c3c + iVar3)" ( (binary_expression "DAT_00070c3c + iVar3" identifier + identifier) )))) ;) }) (else_clause "else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" else (compound_statement "{\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" { (expression_statement "DAT_00070c34 = DAT_00070c34 + 1;" (assignment_expression "DAT_00070c34 = DAT_00070c34 + 1" identifier = (binary_expression "DAT_00070c34 + 1" identifier + number_literal)) ;) })))) }))) (expression_statement "iVar1 = DAT_00070c38;" (assignment_expression "iVar1 = DAT_00070c38" identifier = identifier) ;) (expression_statement "*puVar4 = param_1;" (assignment_expression "*puVar4 = param_1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + iVar3) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + iVar3) = 1" (pointer_expression "*(undefined4 *)(iVar1 + iVar3)" * (cast_expression "(undefined4 *)(iVar1 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3)" ( (binary_expression "iVar1 + iVar3" 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) + LIT)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (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) - IDENT)) ;) }))) (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)) ;) (return_statement return ;) })) (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 = (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 = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })))) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_000368e0(uint param_1)\n\n{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }\n  if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }\n  iVar1 = DAT_00070c38;\n  *puVar4 = param_1;\n  *(undefined4 *)(iVar1 + iVar3) = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000368e0(uint param_1)" (identifier "FUN_000368e0") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  int iVar3;\n  uint *puVar4;\n  \n  if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }\n  if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }\n  iVar1 = DAT_00070c38;\n  *puVar4 = param_1;\n  *(undefined4 *)(iVar1 + iVar3) = 1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (if_statement "if (param_1 < 10) {\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 < 10)" (( "(") (binary_expression "param_1 < 10" (identifier "param_1") (< "<") (number_literal "10")) () ")")) (compound_statement "{\n    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;\n    return;\n  }" ({ "{") (expression_statement "(&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;" (assignment_expression "(&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1" (subscript_expression "(&DAT_00070c40)[param_1]" (parenthesized_expression "(&DAT_00070c40)" (( "(") (pointer_expression "&DAT_00070c40" (& "&") (identifier "DAT_00070c40")) () ")")) ([ "[") (identifier "param_1") (] "]")) (= "=") (binary_expression "(&DAT_00070c40)[param_1] + 1" (subscript_expression "(&DAT_00070c40)[param_1]" (parenthesized_expression "(&DAT_00070c40)" (( "(") (pointer_expression "&DAT_00070c40" (& "&") (identifier "DAT_00070c40")) () ")")) ([ "[") (identifier "param_1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (DAT_00070c3c == 0) {\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }\n  else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }" (if "if") (parenthesized_expression "(DAT_00070c3c == 0)" (( "(") (binary_expression "DAT_00070c3c == 0" (identifier "DAT_00070c3c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0x28;\n    DAT_00070c3c = xmalloc(0x40);\n    DAT_00070c38 = xmalloc(0x40);\n    DAT_00070c30 = 0x10;\n    DAT_00070c34 = 0xb;\n    puVar4 = (uint *)(DAT_00070c3c + 0x28);\n  }" ({ "{") (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" (identifier "iVar3") (= "=") (number_literal "0x28")) (; ";")) (expression_statement "DAT_00070c3c = xmalloc(0x40);" (assignment_expression "DAT_00070c3c = xmalloc(0x40)" (identifier "DAT_00070c3c") (= "=") (call_expression "xmalloc(0x40)" (identifier "xmalloc") (argument_list "(0x40)" (( "(") (number_literal "0x40") () ")")))) (; ";")) (expression_statement "DAT_00070c38 = xmalloc(0x40);" (assignment_expression "DAT_00070c38 = xmalloc(0x40)" (identifier "DAT_00070c38") (= "=") (call_expression "xmalloc(0x40)" (identifier "xmalloc") (argument_list "(0x40)" (( "(") (number_literal "0x40") () ")")))) (; ";")) (expression_statement "DAT_00070c30 = 0x10;" (assignment_expression "DAT_00070c30 = 0x10" (identifier "DAT_00070c30") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "DAT_00070c34 = 0xb;" (assignment_expression "DAT_00070c34 = 0xb" (identifier "DAT_00070c34") (= "=") (number_literal "0xb")) (; ";")) (expression_statement "puVar4 = (uint *)(DAT_00070c3c + 0x28);" (assignment_expression "puVar4 = (uint *)(DAT_00070c3c + 0x28)" (identifier "puVar4") (= "=") (cast_expression "(uint *)(DAT_00070c3c + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00070c3c + 0x28)" (( "(") (binary_expression "DAT_00070c3c + 0x28" (identifier "DAT_00070c3c") (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }" (else "else") (compound_statement "{\n    puVar2 = (uint *)(DAT_00070c3c + 0x28);\n    iVar3 = DAT_00070c34 * 4;\n    puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }\nLAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }\n  }" ({ "{") (expression_statement "puVar2 = (uint *)(DAT_00070c3c + 0x28);" (assignment_expression "puVar2 = (uint *)(DAT_00070c3c + 0x28)" (identifier "puVar2") (= "=") (cast_expression "(uint *)(DAT_00070c3c + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00070c3c + 0x28)" (( "(") (binary_expression "DAT_00070c3c + 0x28" (identifier "DAT_00070c3c") (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (expression_statement "iVar3 = DAT_00070c34 * 4;" (assignment_expression "iVar3 = DAT_00070c34 * 4" (identifier "iVar3") (= "=") (binary_expression "DAT_00070c34 * 4" (identifier "DAT_00070c34") (* "*") (number_literal "4"))) (; ";")) (expression_statement "puVar4 = (uint *)(DAT_00070c3c + iVar3);" (assignment_expression "puVar4 = (uint *)(DAT_00070c3c + iVar3)" (identifier "puVar4") (= "=") (cast_expression "(uint *)(DAT_00070c3c + iVar3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00070c3c + iVar3)" (( "(") (binary_expression "DAT_00070c3c + iVar3" (identifier "DAT_00070c3c") (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (if_statement "if (puVar2 < puVar4) {\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }" (if "if") (parenthesized_expression "(puVar2 < puVar4)" (( "(") (binary_expression "puVar2 < puVar4" (identifier "puVar2") (< "<") (identifier "puVar4")) () ")")) (compound_statement "{\n      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }\n      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;\n      return;\n    }" ({ "{") (if_statement "if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {\n        iVar3 = 0x28;\n      }\n      else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }" (if "if") (parenthesized_expression "(param_1 == *(uint *)(DAT_00070c3c + 0x28))" (( "(") (binary_expression "param_1 == *(uint *)(DAT_00070c3c + 0x28)" (identifier "param_1") (== "==") (pointer_expression "*(uint *)(DAT_00070c3c + 0x28)" (* "*") (cast_expression "(uint *)(DAT_00070c3c + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00070c3c + 0x28)" (( "(") (binary_expression "DAT_00070c3c + 0x28" (identifier "DAT_00070c3c") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n        iVar3 = 0x28;\n      }" ({ "{") (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" (identifier "iVar3") (= "=") (number_literal "0x28")) (; ";")) (} "}")) (else_clause "else {\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }" (else "else") (compound_statement "{\n        do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);\n        iVar3 = (int)puVar2 - DAT_00070c3c;\n      }" ({ "{") (do_statement "do {\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        } while (*puVar2 != param_1);" (do "do") (compound_statement "{\n          puVar2 = puVar2 + 1;\n          if (puVar4 <= puVar2) goto LAB_0003693b;\n        }" ({ "{") (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (puVar4 <= puVar2) goto LAB_0003693b;" (if "if") (parenthesized_expression "(puVar4 <= puVar2)" (( "(") (binary_expression "puVar4 <= puVar2" (identifier "puVar4") (<= "<=") (identifier "puVar2")) () ")")) (goto_statement "goto LAB_0003693b;" (goto "goto") (statement_identifier "LAB_0003693b") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(*puVar2 != param_1)" (( "(") (binary_expression "*puVar2 != param_1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (!= "!=") (identifier "param_1")) () ")")) (; ";")) (expression_statement "iVar3 = (int)puVar2 - DAT_00070c3c;" (assignment_expression "iVar3 = (int)puVar2 - DAT_00070c3c" (identifier "iVar3") (= "=") (binary_expression "(int)puVar2 - DAT_00070c3c" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (- "-") (identifier "DAT_00070c3c"))) (; ";")) (} "}")))) (expression_statement "*(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;" (assignment_expression "*(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00070c38)" (* "*") (cast_expression "(int *)(iVar3 + DAT_00070c38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + DAT_00070c38)" (( "(") (binary_expression "iVar3 + DAT_00070c38" (identifier "iVar3") (+ "+") (identifier "DAT_00070c38")) () ")")))) (= "=") (binary_expression "*(int *)(iVar3 + DAT_00070c38) + 1" (pointer_expression "*(int *)(iVar3 + DAT_00070c38)" (* "*") (cast_expression "(int *)(iVar3 + DAT_00070c38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + DAT_00070c38)" (( "(") (binary_expression "iVar3 + DAT_00070c38" (identifier "iVar3") (+ "+") (identifier "DAT_00070c38")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_0003693b:\n    if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" (statement_identifier "LAB_0003693b") (: ":") (if_statement "if (DAT_00070c30 == DAT_00070c34) {\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }\n    else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" (if "if") (parenthesized_expression "(DAT_00070c30 == DAT_00070c34)" (( "(") (binary_expression "DAT_00070c30 == DAT_00070c34" (identifier "DAT_00070c30") (== "==") (identifier "DAT_00070c34")) () ")")) (compound_statement "{\n      DAT_00070c30 = DAT_00070c34 + 0x10;\n      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);\n      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);\n      iVar3 = DAT_00070c34 * 4;\n      DAT_00070c34 = DAT_00070c34 + 1;\n      puVar4 = (uint *)(DAT_00070c3c + iVar3);\n    }" ({ "{") (expression_statement "DAT_00070c30 = DAT_00070c34 + 0x10;" (assignment_expression "DAT_00070c30 = DAT_00070c34 + 0x10" (identifier "DAT_00070c30") (= "=") (binary_expression "DAT_00070c34 + 0x10" (identifier "DAT_00070c34") (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);" (assignment_expression "DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4)" (identifier "DAT_00070c3c") (= "=") (call_expression "xrealloc(DAT_00070c3c,DAT_00070c30 * 4)" (identifier "xrealloc") (argument_list "(DAT_00070c3c,DAT_00070c30 * 4)" (( "(") (identifier "DAT_00070c3c") (, ",") (binary_expression "DAT_00070c30 * 4" (identifier "DAT_00070c30") (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);" (assignment_expression "DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2)" (identifier "DAT_00070c38") (= "=") (call_expression "xrealloc(DAT_00070c38,DAT_00070c30 << 2)" (identifier "xrealloc") (argument_list "(DAT_00070c38,DAT_00070c30 << 2)" (( "(") (identifier "DAT_00070c38") (, ",") (binary_expression "DAT_00070c30 << 2" (identifier "DAT_00070c30") (<< "<<") (number_literal "2")) () ")")))) (; ";")) (expression_statement "iVar3 = DAT_00070c34 * 4;" (assignment_expression "iVar3 = DAT_00070c34 * 4" (identifier "iVar3") (= "=") (binary_expression "DAT_00070c34 * 4" (identifier "DAT_00070c34") (* "*") (number_literal "4"))) (; ";")) (expression_statement "DAT_00070c34 = DAT_00070c34 + 1;" (assignment_expression "DAT_00070c34 = DAT_00070c34 + 1" (identifier "DAT_00070c34") (= "=") (binary_expression "DAT_00070c34 + 1" (identifier "DAT_00070c34") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar4 = (uint *)(DAT_00070c3c + iVar3);" (assignment_expression "puVar4 = (uint *)(DAT_00070c3c + iVar3)" (identifier "puVar4") (= "=") (cast_expression "(uint *)(DAT_00070c3c + iVar3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00070c3c + iVar3)" (( "(") (binary_expression "DAT_00070c3c + iVar3" (identifier "DAT_00070c3c") (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" (else "else") (compound_statement "{\n      DAT_00070c34 = DAT_00070c34 + 1;\n    }" ({ "{") (expression_statement "DAT_00070c34 = DAT_00070c34 + 1;" (assignment_expression "DAT_00070c34 = DAT_00070c34 + 1" (identifier "DAT_00070c34") (= "=") (binary_expression "DAT_00070c34 + 1" (identifier "DAT_00070c34") (+ "+") (number_literal "1"))) (; ";")) (} "}"))))) (} "}")))) (expression_statement "iVar1 = DAT_00070c38;" (assignment_expression "iVar1 = DAT_00070c38" (identifier "iVar1") (= "=") (identifier "DAT_00070c38")) (; ";")) (expression_statement "*puVar4 = param_1;" (assignment_expression "*puVar4 = param_1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + iVar3) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + iVar3) = 1" (pointer_expression "*(undefined4 *)(iVar1 + iVar3)" (* "*") (cast_expression "(undefined4 *)(iVar1 + iVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar3)" (( "(") (binary_expression "iVar1 + iVar3" (identifier "iVar1") (+ "+") (identifier "iVar3")) () ")")))) (= "=") (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_6)

{
  long *plVar1;
  int *var_4;
  int var_7;
  long lVar4;
  int *var_5;
  
  if ((type_1)var_6 < 10) {
    fb_low_counter[var_6] = fb_low_counter[var_6] + 1;
    return;
  }
  if (var_1 == (long *)0x0) {
    var_7 = 0x28;
    var_1 = (long *)var_2(0x40);
    fb_label_instances = (long *)var_2(0x40);
    var_8 = 0x10;
    lVar4 = 0xb;
    var_5 = var_1 + 10;
  }
  else {
    var_4 = var_1 + 10;
    var_7 = var_3 * 4;
    var_5 = var_1 + var_3;
    if (var_4 < var_5) {
      if (var_6 == var_1[10]) {
        var_7 = 0x28;
      }
      else {
        do {
          var_4 = var_4 + 1;
          if (var_5 <= var_4) goto LAB_0003693b;
        } while (*var_4 != var_6);
        var_7 = (int)var_4 - (int)var_1;
      }
      *(int *)(var_7 + (int)fb_label_instances) = *(int *)(var_7 + (int)fb_label_instances) + 1;
      return;
    }
LAB_0003693b:
    if (var_8 == var_3) {
      var_8 = var_3 + 0x10;
      var_1 = (long *)var_9(var_1,var_8 * 4);
      fb_label_instances = (long *)var_9(fb_label_instances,var_8 << 2);
      var_7 = var_3 * 4;
      lVar4 = var_3 + 1;
      var_5 = var_1 + var_3;
    }
    else {
      lVar4 = var_3 + 1;
    }
  }
  plVar1 = fb_label_instances;
  *var_5 = var_6;
  var_3 = lVar4;
  *(type_2 *)((int)plVar1 + var_7) = 1;
  return;
}


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

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

void MASKED(uint param_1)

{
  int iVar1;
  uint *puVar2;
  int iVar3;
  uint *puVar4;
  
  if (param_1 < 10) {
    (&DAT_00070c40)[param_1] = (&DAT_00070c40)[param_1] + 1;
    return;
  }
  if (DAT_00070c3c == 0) {
    iVar3 = 0x28;
    DAT_00070c3c = xmalloc(0x40);
    DAT_00070c38 = xmalloc(0x40);
    DAT_00070c30 = 0x10;
    DAT_00070c34 = 0xb;
    puVar4 = (uint *)(DAT_00070c3c + 0x28);
  }
  else {
    puVar2 = (uint *)(DAT_00070c3c + 0x28);
    iVar3 = DAT_00070c34 * 4;
    puVar4 = (uint *)(DAT_00070c3c + iVar3);
    if (puVar2 < puVar4) {
      if (param_1 == *(uint *)(DAT_00070c3c + 0x28)) {
        iVar3 = 0x28;
      }
      else {
        do {
          puVar2 = puVar2 + 1;
          if (puVar4 <= puVar2) goto LAB_0003693b;
        } while (*puVar2 != param_1);
        iVar3 = (int)puVar2 - DAT_00070c3c;
      }
      *(int *)(iVar3 + DAT_00070c38) = *(int *)(iVar3 + DAT_00070c38) + 1;
      return;
    }
LAB_0003693b:
    if (DAT_00070c30 == DAT_00070c34) {
      DAT_00070c30 = DAT_00070c34 + 0x10;
      DAT_00070c3c = xrealloc(DAT_00070c3c,DAT_00070c30 * 4);
      DAT_00070c38 = xrealloc(DAT_00070c38,DAT_00070c30 << 2);
      iVar3 = DAT_00070c34 * 4;
      DAT_00070c34 = DAT_00070c34 + 1;
      puVar4 = (uint *)(DAT_00070c3c + iVar3);
    }
    else {
      DAT_00070c34 = DAT_00070c34 + 1;
    }
  }
  iVar1 = DAT_00070c38;
  *puVar4 = param_1;
  *(undefined4 *)(iVar1 + iVar3) = 1;
  return;
}

