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

config * Configlist_add(rule *rp,int dot)

{
  s_x4node *psVar1;
  config *pcVar2;
  char *pcVar3;
  config *pcVar4;
  
  if (x4a != (s_x4 *)0x0) {
    for (psVar1 = x4a->ht[rp->index * 0x25 + dot & x4a->size - 1U]; psVar1 != (s_x4node *)0x0;
        psVar1 = psVar1->next) {
      pcVar4 = psVar1->data;
      if ((rp->index == pcVar4->rp->index) && (dot == pcVar4->dot)) {
        return pcVar4;
      }
    }
  }
  if (freelist == (config *)0x0) {
    pcVar4 = (config *)calloc(3,0x24);
    if (pcVar4 == (config *)0x0) {
      freelist = pcVar4;
                    /* WARNING: Subroutine does not return */
      newconfig();
    }
    pcVar2 = pcVar4 + 1;
    pcVar4[2].next = (config *)0x0;
    pcVar4->next = pcVar2;
    pcVar4[1].next = pcVar4 + 2;
  }
  else {
    pcVar2 = freelist->next;
    pcVar4 = freelist;
  }
  pcVar4->rp = rp;
  pcVar4->dot = dot;
  freelist = pcVar2;
  pcVar3 = (char *)calloc(size,1);
  if (pcVar3 != (char *)0x0) {
    pcVar4->fws = pcVar3;
    pcVar4->stp = (state *)0x0;
    pcVar4->bplp = (plink *)0x0;
    pcVar4->fplp = (plink *)0x0;
    pcVar4->next = (config *)0x0;
    pcVar4->bp = (config *)0x0;
    *currentend = pcVar4;
    currentend = &pcVar4->next;
    Configtable_insert(pcVar4);
    return pcVar4;
  }
                    /* WARNING: Subroutine does not return */
  memory_error();
}



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

int * FUN_0001e1b0(int param_1,int param_2)

{
  int *piVar1;
  void *pvVar2;
  int *piVar3;
  
  if (DAT_000281a0 != (int *)0x0) {
    for (piVar3 = *(int **)(DAT_000281a0[3] +
                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);
        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {
      piVar1 = (int *)*piVar3;
      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {
        return piVar1;
      }
    }
  }
  if (DAT_000281e4 == (int *)0x0) {
    piVar3 = (int *)calloc(3,0x24);
    if (piVar3 == (int *)0x0) {
      DAT_000281e4 = piVar3;
                    /* WARNING: Subroutine does not return */
      FUN_00012330();
    }
    piVar1 = piVar3 + 9;
    piVar3[0x19] = 0;
    piVar3[7] = (int)piVar1;
    piVar3[0x10] = (int)(piVar3 + 0x12);
  }
  else {
    piVar1 = (int *)DAT_000281e4[7];
    piVar3 = DAT_000281e4;
  }
  *piVar3 = param_1;
  piVar3[1] = param_2;
  DAT_000281e4 = piVar1;
  pvVar2 = calloc(DAT_000281b0,1);
  if (pvVar2 != (void *)0x0) {
    piVar3[2] = (int)pvVar2;
    piVar3[5] = 0;
    piVar3[4] = 0;
    piVar3[3] = 0;
    piVar3[7] = 0;
    piVar3[8] = 0;
    *DAT_000281dc = (int)piVar3;
    DAT_000281dc = piVar3 + 7;
    FUN_0001dfb0(piVar3);
    return piVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00014bf0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00011bc0
ADD EBX,0x9d83
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x24]
MOV ECX,dword ptr [EBX + 0x264]
TEST ECX,ECX
JZ 0x0001e220
MOV EDX,dword ptr [EBP + 0x38]
MOV ESI,dword ptr [ECX]
MOV ECX,dword ptr [ECX + 0xc]
LEA EAX,[EDX + EDX*0x8]
SUB ESI,0x1
LEA EAX,[EDX + EAX*0x4]
ADD EAX,EDI
AND EAX,ESI
MOV EAX,dword ptr [ECX + EAX*0x4]
TEST EAX,EAX
JNZ 0x0001e1ff
JMP 0x0001e220
MOV EAX,dword ptr [EAX + 0x4]
TEST EAX,EAX
JZ 0x0001e220
MOV ESI,dword ptr [EAX]
MOV ECX,dword ptr [ESI]
CMP EDX,dword ptr [ECX + 0x38]
JNZ 0x0001e1f8
CMP EDI,dword ptr [ESI + 0x4]
JNZ 0x0001e1f8
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,dword ptr [EBX + 0x2a8]
TEST ESI,ESI
JZ 0x0001e2a0
MOV EAX,dword ptr [ESI + 0x1c]
SUB ESP,0x8
MOV dword ptr [ESI],EBP
MOV dword ptr [ESI + 0x4],EDI
PUSH 0x1
PUSH dword ptr [EBX + 0x274]
MOV dword ptr [EBX + 0x2a8],EAX
CALL 0x00011290
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001e2d3
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EBX + 0x2a0]
SUB ESP,0xc
MOV dword ptr [ESI + 0x14],0x0
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0xc],0x0
MOV dword ptr [ESI + 0x1c],0x0
MOV dword ptr [ESI + 0x20],0x0
MOV dword ptr [EAX],ESI
LEA EAX,[ESI + 0x1c]
PUSH ESI
MOV dword ptr [EBX + 0x2a0],EAX
CALL 0x0001dfb0
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x24
PUSH 0x3
CALL 0x00011290
ADD ESP,0x10
MOV ESI,EAX
MOV dword ptr [EBX + 0x2a8],EAX
TEST EAX,EAX
JZ 0x0001e2d8
LEA EAX,[EAX + 0x24]
LEA EDX,[ESI + 0x48]
MOV dword ptr [ESI + 0x64],0x0
MOV dword ptr [ESI + 0x1c],EAX
MOV dword ptr [ESI + 0x40],EDX
JMP 0x0001e22d
CALL 0x00014bf0
CALL 0x00012330
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_0001e1b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  void *pvVar2;\n  int *piVar3;\n  \n  if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }\n  if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    /* WARNING: Subroutine does not return */\n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }\n  *piVar3 = param_1;\n  piVar3[1] = param_2;\n  DAT_000281e4 = piVar1;\n  pvVar2 = calloc(DAT_000281b0,1);\n  if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00014bf0();\n}\n\n" comment (function_definition "int * FUN_0001e1b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  void *pvVar2;\n  int *piVar3;\n  \n  if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }\n  if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    /* WARNING: Subroutine does not return */\n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }\n  *piVar3 = param_1;\n  piVar3[1] = param_2;\n  DAT_000281e4 = piVar1;\n  pvVar2 = calloc(DAT_000281b0,1);\n  if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00014bf0();\n}" primitive_type (pointer_declarator "* FUN_0001e1b0(int param_1,int param_2)" * (function_declarator "FUN_0001e1b0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  void *pvVar2;\n  int *piVar3;\n  \n  if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }\n  if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    /* WARNING: Subroutine does not return */\n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }\n  *piVar3 = param_1;\n  piVar3[1] = param_2;\n  DAT_000281e4 = piVar1;\n  pvVar2 = calloc(DAT_000281b0,1);\n  if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00014bf0();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }" if (parenthesized_expression "(DAT_000281a0 != (int *)0x0)" ( (binary_expression "DAT_000281a0 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }" { (for_statement "for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }" for ( (assignment_expression "piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" identifier = (pointer_expression "*(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" * (cast_expression "(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" ( (binary_expression "DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4" (subscript_expression "DAT_000281a0[3]" identifier [ number_literal ]) + (binary_expression "(*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4" (parenthesized_expression "(*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U)" ( (binary_expression "*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U" (binary_expression "*(int *)(param_1 + 0x38) * 0x25 + param_2" (binary_expression "*(int *)(param_1 + 0x38) * 0x25" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) * number_literal) + identifier) & (binary_expression "*DAT_000281a0 - 1U" (pointer_expression "*DAT_000281a0" * identifier) - number_literal)) )) * number_literal)) ))))) ; (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ) (compound_statement "{\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }" { (expression_statement "piVar1 = (int *)*piVar3;" (assignment_expression "piVar1 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (if_statement "if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }" if (parenthesized_expression "((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1]))" ( (binary_expression "(*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])" (parenthesized_expression "(*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38))" ( (binary_expression "*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == (pointer_expression "*(int *)(*piVar1 + 0x38)" * (cast_expression "(int *)(*piVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x38)" ( (binary_expression "*piVar1 + 0x38" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) && (parenthesized_expression "(param_2 == piVar1[1])" ( (binary_expression "param_2 == piVar1[1]" identifier == (subscript_expression "piVar1[1]" identifier [ number_literal ])) ))) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) })) })) (if_statement "if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    /* WARNING: Subroutine does not return */\n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }" if (parenthesized_expression "(DAT_000281e4 == (int *)0x0)" ( (binary_expression "DAT_000281e4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    /* WARNING: Subroutine does not return */\n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }" { (expression_statement "piVar3 = (int *)calloc(3,0x24);" (assignment_expression "piVar3 = (int *)calloc(3,0x24)" identifier = (cast_expression "(int *)calloc(3,0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(3,0x24)" identifier (argument_list "(3,0x24)" ( number_literal , number_literal ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    /* WARNING: Subroutine does not return */\n      FUN_00012330();\n    }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      DAT_000281e4 = piVar3;\n                    /* WARNING: Subroutine does not return */\n      FUN_00012330();\n    }" { (expression_statement "DAT_000281e4 = piVar3;" (assignment_expression "DAT_000281e4 = piVar3" identifier = identifier) ;) comment (expression_statement "FUN_00012330();" (call_expression "FUN_00012330()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar1 = piVar3 + 9;" (assignment_expression "piVar1 = piVar3 + 9" identifier = (binary_expression "piVar3 + 9" identifier + number_literal)) ;) (expression_statement "piVar3[0x19] = 0;" (assignment_expression "piVar3[0x19] = 0" (subscript_expression "piVar3[0x19]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[7] = (int)piVar1;" (assignment_expression "piVar3[7] = (int)piVar1" (subscript_expression "piVar3[7]" identifier [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar3[0x10] = (int)(piVar3 + 0x12);" (assignment_expression "piVar3[0x10] = (int)(piVar3 + 0x12)" (subscript_expression "piVar3[0x10]" identifier [ number_literal ]) = (cast_expression "(int)(piVar3 + 0x12)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar3 + 0x12)" ( (binary_expression "piVar3 + 0x12" identifier + number_literal) )))) ;) }) (else_clause "else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }" else (compound_statement "{\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }" { (expression_statement "piVar1 = (int *)DAT_000281e4[7];" (assignment_expression "piVar1 = (int *)DAT_000281e4[7]" identifier = (cast_expression "(int *)DAT_000281e4[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_000281e4[7]" identifier [ number_literal ]))) ;) (expression_statement "piVar3 = DAT_000281e4;" (assignment_expression "piVar3 = DAT_000281e4" identifier = identifier) ;) }))) (expression_statement "*piVar3 = param_1;" (assignment_expression "*piVar3 = param_1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[1] = param_2;" (assignment_expression "piVar3[1] = param_2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_000281e4 = piVar1;" (assignment_expression "DAT_000281e4 = piVar1" identifier = identifier) ;) (expression_statement "pvVar2 = calloc(DAT_000281b0,1);" (assignment_expression "pvVar2 = calloc(DAT_000281b0,1)" identifier = (call_expression "calloc(DAT_000281b0,1)" identifier (argument_list "(DAT_000281b0,1)" ( identifier , number_literal )))) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }" { (expression_statement "piVar3[2] = (int)pvVar2;" (assignment_expression "piVar3[2] = (int)pvVar2" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar3[5] = 0;" (assignment_expression "piVar3[5] = 0" (subscript_expression "piVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[7] = 0;" (assignment_expression "piVar3[7] = 0" (subscript_expression "piVar3[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[8] = 0;" (assignment_expression "piVar3[8] = 0" (subscript_expression "piVar3[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*DAT_000281dc = (int)piVar3;" (assignment_expression "*DAT_000281dc = (int)piVar3" (pointer_expression "*DAT_000281dc" * identifier) = (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_000281dc = piVar3 + 7;" (assignment_expression "DAT_000281dc = piVar3 + 7" identifier = (binary_expression "piVar3 + 7" identifier + number_literal)) ;) (expression_statement "FUN_0001dfb0(piVar3);" (call_expression "FUN_0001dfb0(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) (return_statement "return piVar3;" return identifier ;) })) comment (expression_statement "FUN_00014bf0();" (call_expression "FUN_00014bf0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nconfig * Configlist_add(rule *rp,int dot)\n\n{\n  s_x4node *psVar1;\n  config *pcVar2;\n  char *pcVar3;\n  config *pcVar4;\n  \n  if (x4a != (s_x4 *)0x0) {\n    for (psVar1 = x4a->ht[rp->index * 0x25 + dot & x4a->size - 1U]; psVar1 != (s_x4node *)0x0;\n        psVar1 = psVar1->next) {\n      pcVar4 = psVar1->data;\n      if ((rp->index == pcVar4->rp->index) && (dot == pcVar4->dot)) {\n        return pcVar4;\n      }\n    }\n  }\n  if (freelist == (config *)0x0) {\n    pcVar4 = (config *)calloc(3,0x24);\n    if (pcVar4 == (config *)0x0) {\n      freelist = pcVar4;\n                    /* WARNING: Subroutine does not return */\n      newconfig();\n    }\n    pcVar2 = pcVar4 + 1;\n    pcVar4[2].next = (config *)0x0;\n    pcVar4->next = pcVar2;\n    pcVar4[1].next = pcVar4 + 2;\n  }\n  else {\n    pcVar2 = freelist->next;\n    pcVar4 = freelist;\n  }\n  pcVar4->rp = rp;\n  pcVar4->dot = dot;\n  freelist = pcVar2;\n  pcVar3 = (char *)calloc(size,1);\n  if (pcVar3 != (char *)0x0) {\n    pcVar4->fws = pcVar3;\n    pcVar4->stp = (state *)0x0;\n    pcVar4->bplp = (plink *)0x0;\n    pcVar4->fplp = (plink *)0x0;\n    pcVar4->next = (config *)0x0;\n    pcVar4->bp = (config *)0x0;\n    *currentend = pcVar4;\n    currentend = &pcVar4->next;\n    Configtable_insert(pcVar4);\n    return pcVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  memory_error();\n}\n\n" comment comment (function_definition "config * Configlist_add(rule *rp,int dot)\n\n{\n  s_x4node *psVar1;\n  config *pcVar2;\n  char *pcVar3;\n  config *pcVar4;\n  \n  if (x4a != (s_x4 *)0x0) {\n    for (psVar1 = x4a->ht[rp->index * 0x25 + dot & x4a->size - 1U]; psVar1 != (s_x4node *)0x0;\n        psVar1 = psVar1->next) {\n      pcVar4 = psVar1->data;\n      if ((rp->index == pcVar4->rp->index) && (dot == pcVar4->dot)) {\n        return pcVar4;\n      }\n    }\n  }\n  if (freelist == (config *)0x0) {\n    pcVar4 = (config *)calloc(3,0x24);\n    if (pcVar4 == (config *)0x0) {\n      freelist = pcVar4;\n                    /* WARNING: Subroutine does not return */\n      newconfig();\n    }\n    pcVar2 = pcVar4 + 1;\n    pcVar4[2].next = (config *)0x0;\n    pcVar4->next = pcVar2;\n    pcVar4[1].next = pcVar4 + 2;\n  }\n  else {\n    pcVar2 = freelist->next;\n    pcVar4 = freelist;\n  }\n  pcVar4->rp = rp;\n  pcVar4->dot = dot;\n  freelist = pcVar2;\n  pcVar3 = (char *)calloc(size,1);\n  if (pcVar3 != (char *)0x0) {\n    pcVar4->fws = pcVar3;\n    pcVar4->stp = (state *)0x0;\n    pcVar4->bplp = (plink *)0x0;\n    pcVar4->fplp = (plink *)0x0;\n    pcVar4->next = (config *)0x0;\n    pcVar4->bp = (config *)0x0;\n    *currentend = pcVar4;\n    currentend = &pcVar4->next;\n    Configtable_insert(pcVar4);\n    return pcVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  memory_error();\n}" type_identifier (pointer_declarator "* Configlist_add(rule *rp,int dot)" * (function_declarator "Configlist_add(rule *rp,int dot)" identifier (parameter_list "(rule *rp,int dot)" ( (parameter_declaration "rule *rp" type_identifier (pointer_declarator "*rp" * identifier)) , (parameter_declaration "int dot" primitive_type identifier) )))) (compound_statement "{\n  s_x4node *psVar1;\n  config *pcVar2;\n  char *pcVar3;\n  config *pcVar4;\n  \n  if (x4a != (s_x4 *)0x0) {\n    for (psVar1 = x4a->ht[rp->index * 0x25 + dot & x4a->size - 1U]; psVar1 != (s_x4node *)0x0;\n        psVar1 = psVar1->next) {\n      pcVar4 = psVar1->data;\n      if ((rp->index == pcVar4->rp->index) && (dot == pcVar4->dot)) {\n        return pcVar4;\n      }\n    }\n  }\n  if (freelist == (config *)0x0) {\n    pcVar4 = (config *)calloc(3,0x24);\n    if (pcVar4 == (config *)0x0) {\n      freelist = pcVar4;\n                    /* WARNING: Subroutine does not return */\n      newconfig();\n    }\n    pcVar2 = pcVar4 + 1;\n    pcVar4[2].next = (config *)0x0;\n    pcVar4->next = pcVar2;\n    pcVar4[1].next = pcVar4 + 2;\n  }\n  else {\n    pcVar2 = freelist->next;\n    pcVar4 = freelist;\n  }\n  pcVar4->rp = rp;\n  pcVar4->dot = dot;\n  freelist = pcVar2;\n  pcVar3 = (char *)calloc(size,1);\n  if (pcVar3 != (char *)0x0) {\n    pcVar4->fws = pcVar3;\n    pcVar4->stp = (state *)0x0;\n    pcVar4->bplp = (plink *)0x0;\n    pcVar4->fplp = (plink *)0x0;\n    pcVar4->next = (config *)0x0;\n    pcVar4->bp = (config *)0x0;\n    *currentend = pcVar4;\n    currentend = &pcVar4->next;\n    Configtable_insert(pcVar4);\n    return pcVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  memory_error();\n}" { (declaration "s_x4node *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "config *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "config *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (x4a != (s_x4 *)0x0) {\n    for (psVar1 = x4a->ht[rp->index * 0x25 + dot & x4a->size - 1U]; psVar1 != (s_x4node *)0x0;\n        psVar1 = psVar1->next) {\n      pcVar4 = psVar1->data;\n      if ((rp->index == pcVar4->rp->index) && (dot == pcVar4->dot)) {\n        return pcVar4;\n      }\n    }\n  }" if (parenthesized_expression "(x4a != (s_x4 *)0x0)" ( (binary_expression "x4a != (s_x4 *)0x0" identifier != (cast_expression "(s_x4 *)0x0" ( (type_descriptor "s_x4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    for (psVar1 = x4a->ht[rp->index * 0x25 + dot & x4a->size - 1U]; psVar1 != (s_x4node *)0x0;\n        psVar1 = psVar1->next) {\n      pcVar4 = psVar1->data;\n      if ((rp->index == pcVar4->rp->index) && (dot == pcVar4->dot)) {\n        return pcVar4;\n      }\n    }\n  }" { (for_statement "for (psVar1 = x4a->ht[rp->index * 0x25 + dot & x4a->size - 1U]; psVar1 != (s_x4node *)0x0;\n        psVar1 = psVar1->next) {\n      pcVar4 = psVar1->data;\n      if ((rp->index == pcVar4->rp->index) && (dot == pcVar4->dot)) {\n        return pcVar4;\n      }\n    }" for ( (assignment_expression "psVar1 = x4a->ht[rp->index * 0x25 + dot & x4a->size - 1U]" identifier = (subscript_expression "x4a->ht[rp->index * 0x25 + dot & x4a->size - 1U]" (field_expression "x4a->ht" identifier -> field_identifier) [ (binary_expression "rp->index * 0x25 + dot & x4a->size - 1U" (binary_expression "rp->index * 0x25 + dot" (binary_expression "rp->index * 0x25" (field_expression "rp->index" identifier -> field_identifier) * number_literal) + identifier) & (binary_expression "x4a->size - 1U" (field_expression "x4a->size" identifier -> field_identifier) - number_literal)) ])) ; (binary_expression "psVar1 != (s_x4node *)0x0" identifier != (cast_expression "(s_x4node *)0x0" ( (type_descriptor "s_x4node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "psVar1 = psVar1->next" identifier = (field_expression "psVar1->next" identifier -> field_identifier)) ) (compound_statement "{\n      pcVar4 = psVar1->data;\n      if ((rp->index == pcVar4->rp->index) && (dot == pcVar4->dot)) {\n        return pcVar4;\n      }\n    }" { (expression_statement "pcVar4 = psVar1->data;" (assignment_expression "pcVar4 = psVar1->data" identifier = (field_expression "psVar1->data" identifier -> field_identifier)) ;) (if_statement "if ((rp->index == pcVar4->rp->index) && (dot == pcVar4->dot)) {\n        return pcVar4;\n      }" if (parenthesized_expression "((rp->index == pcVar4->rp->index) && (dot == pcVar4->dot))" ( (binary_expression "(rp->index == pcVar4->rp->index) && (dot == pcVar4->dot)" (parenthesized_expression "(rp->index == pcVar4->rp->index)" ( (binary_expression "rp->index == pcVar4->rp->index" (field_expression "rp->index" identifier -> field_identifier) == (field_expression "pcVar4->rp->index" (field_expression "pcVar4->rp" identifier -> field_identifier) -> field_identifier)) )) && (parenthesized_expression "(dot == pcVar4->dot)" ( (binary_expression "dot == pcVar4->dot" identifier == (field_expression "pcVar4->dot" identifier -> field_identifier)) ))) )) (compound_statement "{\n        return pcVar4;\n      }" { (return_statement "return pcVar4;" return identifier ;) })) })) })) (if_statement "if (freelist == (config *)0x0) {\n    pcVar4 = (config *)calloc(3,0x24);\n    if (pcVar4 == (config *)0x0) {\n      freelist = pcVar4;\n                    /* WARNING: Subroutine does not return */\n      newconfig();\n    }\n    pcVar2 = pcVar4 + 1;\n    pcVar4[2].next = (config *)0x0;\n    pcVar4->next = pcVar2;\n    pcVar4[1].next = pcVar4 + 2;\n  }\n  else {\n    pcVar2 = freelist->next;\n    pcVar4 = freelist;\n  }" if (parenthesized_expression "(freelist == (config *)0x0)" ( (binary_expression "freelist == (config *)0x0" identifier == (cast_expression "(config *)0x0" ( (type_descriptor "config *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4 = (config *)calloc(3,0x24);\n    if (pcVar4 == (config *)0x0) {\n      freelist = pcVar4;\n                    /* WARNING: Subroutine does not return */\n      newconfig();\n    }\n    pcVar2 = pcVar4 + 1;\n    pcVar4[2].next = (config *)0x0;\n    pcVar4->next = pcVar2;\n    pcVar4[1].next = pcVar4 + 2;\n  }" { (expression_statement "pcVar4 = (config *)calloc(3,0x24);" (assignment_expression "pcVar4 = (config *)calloc(3,0x24)" identifier = (cast_expression "(config *)calloc(3,0x24)" ( (type_descriptor "config *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(3,0x24)" identifier (argument_list "(3,0x24)" ( number_literal , number_literal ))))) ;) (if_statement "if (pcVar4 == (config *)0x0) {\n      freelist = pcVar4;\n                    /* WARNING: Subroutine does not return */\n      newconfig();\n    }" if (parenthesized_expression "(pcVar4 == (config *)0x0)" ( (binary_expression "pcVar4 == (config *)0x0" identifier == (cast_expression "(config *)0x0" ( (type_descriptor "config *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      freelist = pcVar4;\n                    /* WARNING: Subroutine does not return */\n      newconfig();\n    }" { (expression_statement "freelist = pcVar4;" (assignment_expression "freelist = pcVar4" identifier = identifier) ;) comment (expression_statement "newconfig();" (call_expression "newconfig()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pcVar2 = pcVar4 + 1;" (assignment_expression "pcVar2 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4[2].next = (config *)0x0;" (assignment_expression "pcVar4[2].next = (config *)0x0" (field_expression "pcVar4[2].next" (subscript_expression "pcVar4[2]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(config *)0x0" ( (type_descriptor "config *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar4->next = pcVar2;" (assignment_expression "pcVar4->next = pcVar2" (field_expression "pcVar4->next" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar4[1].next = pcVar4 + 2;" (assignment_expression "pcVar4[1].next = pcVar4 + 2" (field_expression "pcVar4[1].next" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) . field_identifier) = (binary_expression "pcVar4 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n    pcVar2 = freelist->next;\n    pcVar4 = freelist;\n  }" else (compound_statement "{\n    pcVar2 = freelist->next;\n    pcVar4 = freelist;\n  }" { (expression_statement "pcVar2 = freelist->next;" (assignment_expression "pcVar2 = freelist->next" identifier = (field_expression "freelist->next" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = freelist;" (assignment_expression "pcVar4 = freelist" identifier = identifier) ;) }))) (expression_statement "pcVar4->rp = rp;" (assignment_expression "pcVar4->rp = rp" (field_expression "pcVar4->rp" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar4->dot = dot;" (assignment_expression "pcVar4->dot = dot" (field_expression "pcVar4->dot" identifier -> field_identifier) = identifier) ;) (expression_statement "freelist = pcVar2;" (assignment_expression "freelist = pcVar2" identifier = identifier) ;) (expression_statement "pcVar3 = (char *)calloc(size,1);" (assignment_expression "pcVar3 = (char *)calloc(size,1)" identifier = (cast_expression "(char *)calloc(size,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(size,1)" identifier (argument_list "(size,1)" ( identifier , number_literal ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    pcVar4->fws = pcVar3;\n    pcVar4->stp = (state *)0x0;\n    pcVar4->bplp = (plink *)0x0;\n    pcVar4->fplp = (plink *)0x0;\n    pcVar4->next = (config *)0x0;\n    pcVar4->bp = (config *)0x0;\n    *currentend = pcVar4;\n    currentend = &pcVar4->next;\n    Configtable_insert(pcVar4);\n    return pcVar4;\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4->fws = pcVar3;\n    pcVar4->stp = (state *)0x0;\n    pcVar4->bplp = (plink *)0x0;\n    pcVar4->fplp = (plink *)0x0;\n    pcVar4->next = (config *)0x0;\n    pcVar4->bp = (config *)0x0;\n    *currentend = pcVar4;\n    currentend = &pcVar4->next;\n    Configtable_insert(pcVar4);\n    return pcVar4;\n  }" { (expression_statement "pcVar4->fws = pcVar3;" (assignment_expression "pcVar4->fws = pcVar3" (field_expression "pcVar4->fws" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar4->stp = (state *)0x0;" (assignment_expression "pcVar4->stp = (state *)0x0" (field_expression "pcVar4->stp" identifier -> field_identifier) = (cast_expression "(state *)0x0" ( (type_descriptor "state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar4->bplp = (plink *)0x0;" (assignment_expression "pcVar4->bplp = (plink *)0x0" (field_expression "pcVar4->bplp" identifier -> field_identifier) = (cast_expression "(plink *)0x0" ( (type_descriptor "plink *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar4->fplp = (plink *)0x0;" (assignment_expression "pcVar4->fplp = (plink *)0x0" (field_expression "pcVar4->fplp" identifier -> field_identifier) = (cast_expression "(plink *)0x0" ( (type_descriptor "plink *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar4->next = (config *)0x0;" (assignment_expression "pcVar4->next = (config *)0x0" (field_expression "pcVar4->next" identifier -> field_identifier) = (cast_expression "(config *)0x0" ( (type_descriptor "config *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar4->bp = (config *)0x0;" (assignment_expression "pcVar4->bp = (config *)0x0" (field_expression "pcVar4->bp" identifier -> field_identifier) = (cast_expression "(config *)0x0" ( (type_descriptor "config *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*currentend = pcVar4;" (assignment_expression "*currentend = pcVar4" (pointer_expression "*currentend" * identifier) = identifier) ;) (expression_statement "currentend = &pcVar4->next;" (assignment_expression "currentend = &pcVar4->next" identifier = (pointer_expression "&pcVar4->next" & (field_expression "pcVar4->next" identifier -> field_identifier))) ;) (expression_statement "Configtable_insert(pcVar4);" (call_expression "Configtable_insert(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (return_statement "return pcVar4;" return identifier ;) })) comment (expression_statement "memory_error();" (call_expression "memory_error()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int * FUN_0001e1b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  void *pvVar2;\n  int *piVar3;\n  \n  if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }\n  if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }\n  *piVar3 = param_1;\n  piVar3[1] = param_2;\n  DAT_000281e4 = piVar1;\n  pvVar2 = calloc(DAT_000281b0,1);\n  if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }\n                    \n  FUN_00014bf0();\n}\n\n" (function_definition "int * FUN_0001e1b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  void *pvVar2;\n  int *piVar3;\n  \n  if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }\n  if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }\n  *piVar3 = param_1;\n  piVar3[1] = param_2;\n  DAT_000281e4 = piVar1;\n  pvVar2 = calloc(DAT_000281b0,1);\n  if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }\n                    \n  FUN_00014bf0();\n}" primitive_type (pointer_declarator "* FUN_0001e1b0(int param_1,int param_2)" * (function_declarator "FUN_0001e1b0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  void *pvVar2;\n  int *piVar3;\n  \n  if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }\n  if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }\n  *piVar3 = param_1;\n  piVar3[1] = param_2;\n  DAT_000281e4 = piVar1;\n  pvVar2 = calloc(DAT_000281b0,1);\n  if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }\n                    \n  FUN_00014bf0();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }" if (parenthesized_expression "(DAT_000281a0 != (int *)0x0)" ( (binary_expression "DAT_000281a0 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }" { (for_statement "for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }" for ( (assignment_expression "piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" identifier = (pointer_expression "*(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" * (cast_expression "(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" ( (binary_expression "DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4" (subscript_expression "DAT_000281a0[3]" identifier [ number_literal ]) + (binary_expression "(*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4" (parenthesized_expression "(*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U)" ( (binary_expression "*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U" (binary_expression "*(int *)(param_1 + 0x38) * 0x25 + param_2" (binary_expression "*(int *)(param_1 + 0x38) * 0x25" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) * number_literal) + identifier) & (binary_expression "*DAT_000281a0 - 1U" (pointer_expression "*DAT_000281a0" * identifier) - number_literal)) )) * number_literal)) ))))) ; (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ) (compound_statement "{\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }" { (expression_statement "piVar1 = (int *)*piVar3;" (assignment_expression "piVar1 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (if_statement "if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }" if (parenthesized_expression "((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1]))" ( (binary_expression "(*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])" (parenthesized_expression "(*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38))" ( (binary_expression "*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == (pointer_expression "*(int *)(*piVar1 + 0x38)" * (cast_expression "(int *)(*piVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x38)" ( (binary_expression "*piVar1 + 0x38" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) && (parenthesized_expression "(param_2 == piVar1[1])" ( (binary_expression "param_2 == piVar1[1]" identifier == (subscript_expression "piVar1[1]" identifier [ number_literal ])) ))) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) })) })) (if_statement "if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }" if (parenthesized_expression "(DAT_000281e4 == (int *)0x0)" ( (binary_expression "DAT_000281e4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }" { (expression_statement "piVar3 = (int *)calloc(3,0x24);" (assignment_expression "piVar3 = (int *)calloc(3,0x24)" identifier = (cast_expression "(int *)calloc(3,0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(3,0x24)" identifier (argument_list "(3,0x24)" ( number_literal , number_literal ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }" { (expression_statement "DAT_000281e4 = piVar3;" (assignment_expression "DAT_000281e4 = piVar3" identifier = identifier) ;) (expression_statement "FUN_00012330();" (call_expression "FUN_00012330()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar1 = piVar3 + 9;" (assignment_expression "piVar1 = piVar3 + 9" identifier = (binary_expression "piVar3 + 9" identifier + number_literal)) ;) (expression_statement "piVar3[0x19] = 0;" (assignment_expression "piVar3[0x19] = 0" (subscript_expression "piVar3[0x19]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[7] = (int)piVar1;" (assignment_expression "piVar3[7] = (int)piVar1" (subscript_expression "piVar3[7]" identifier [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar3[0x10] = (int)(piVar3 + 0x12);" (assignment_expression "piVar3[0x10] = (int)(piVar3 + 0x12)" (subscript_expression "piVar3[0x10]" identifier [ number_literal ]) = (cast_expression "(int)(piVar3 + 0x12)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar3 + 0x12)" ( (binary_expression "piVar3 + 0x12" identifier + number_literal) )))) ;) }) (else_clause "else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }" else (compound_statement "{\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }" { (expression_statement "piVar1 = (int *)DAT_000281e4[7];" (assignment_expression "piVar1 = (int *)DAT_000281e4[7]" identifier = (cast_expression "(int *)DAT_000281e4[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_000281e4[7]" identifier [ number_literal ]))) ;) (expression_statement "piVar3 = DAT_000281e4;" (assignment_expression "piVar3 = DAT_000281e4" identifier = identifier) ;) }))) (expression_statement "*piVar3 = param_1;" (assignment_expression "*piVar3 = param_1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[1] = param_2;" (assignment_expression "piVar3[1] = param_2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_000281e4 = piVar1;" (assignment_expression "DAT_000281e4 = piVar1" identifier = identifier) ;) (expression_statement "pvVar2 = calloc(DAT_000281b0,1);" (assignment_expression "pvVar2 = calloc(DAT_000281b0,1)" identifier = (call_expression "calloc(DAT_000281b0,1)" identifier (argument_list "(DAT_000281b0,1)" ( identifier , number_literal )))) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }" { (expression_statement "piVar3[2] = (int)pvVar2;" (assignment_expression "piVar3[2] = (int)pvVar2" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar3[5] = 0;" (assignment_expression "piVar3[5] = 0" (subscript_expression "piVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[7] = 0;" (assignment_expression "piVar3[7] = 0" (subscript_expression "piVar3[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[8] = 0;" (assignment_expression "piVar3[8] = 0" (subscript_expression "piVar3[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*DAT_000281dc = (int)piVar3;" (assignment_expression "*DAT_000281dc = (int)piVar3" (pointer_expression "*DAT_000281dc" * identifier) = (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_000281dc = piVar3 + 7;" (assignment_expression "DAT_000281dc = piVar3 + 7" identifier = (binary_expression "piVar3 + 7" identifier + number_literal)) ;) (expression_statement "FUN_0001dfb0(piVar3);" (call_expression "FUN_0001dfb0(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) (return_statement "return piVar3;" return identifier ;) })) (expression_statement "FUN_00014bf0();" (call_expression "FUN_00014bf0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) + IDENT) & (binary_expression (pointer_expression * IDENT) - LIT)) )) * LIT)) ))))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) && (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) ))) )) (compound_statement { (return_statement return IDENT ;) })) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int * FUN_0001e1b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  void *pvVar2;\n  int *piVar3;\n  \n  if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }\n  if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }\n  *piVar3 = param_1;\n  piVar3[1] = param_2;\n  DAT_000281e4 = piVar1;\n  pvVar2 = calloc(DAT_000281b0,1);\n  if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }\n                    \n  FUN_00014bf0();\n}" (primitive_type "int") (pointer_declarator "* FUN_0001e1b0(int param_1,int param_2)" (* "*") (function_declarator "FUN_0001e1b0(int param_1,int param_2)" (identifier "FUN_0001e1b0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int *piVar1;\n  void *pvVar2;\n  int *piVar3;\n  \n  if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }\n  if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }\n  *piVar3 = param_1;\n  piVar3[1] = param_2;\n  DAT_000281e4 = piVar1;\n  pvVar2 = calloc(DAT_000281b0,1);\n  if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }\n                    \n  FUN_00014bf0();\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (if_statement "if (DAT_000281a0 != (int *)0x0) {\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(DAT_000281a0 != (int *)0x0)" (( "(") (binary_expression "DAT_000281a0 != (int *)0x0" (identifier "DAT_000281a0") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }\n  }" ({ "{") (for_statement "for (piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);\n        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }" (for "for") (( "(") (assignment_expression "piVar3 = *(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" (* "*") (cast_expression "(int **)(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4)" (( "(") (binary_expression "DAT_000281a0[3] +\n                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4" (subscript_expression "DAT_000281a0[3]" (identifier "DAT_000281a0") ([ "[") (number_literal "3") (] "]")) (+ "+") (binary_expression "(*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4" (parenthesized_expression "(*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U" (binary_expression "*(int *)(param_1 + 0x38) * 0x25 + param_2" (binary_expression "*(int *)(param_1 + 0x38) * 0x25" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (* "*") (number_literal "0x25")) (+ "+") (identifier "param_2")) (& "&") (binary_expression "*DAT_000281a0 - 1U" (pointer_expression "*DAT_000281a0" (* "*") (identifier "DAT_000281a0")) (- "-") (number_literal "1U"))) () ")")) (* "*") (number_literal "4"))) () ")"))))) (; ";") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar3 = (int *)piVar3[1]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) () ")") (compound_statement "{\n      piVar1 = (int *)*piVar3;\n      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }\n    }" ({ "{") (expression_statement "piVar1 = (int *)*piVar3;" (assignment_expression "piVar1 = (int *)*piVar3" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (if_statement "if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {\n        return piVar1;\n      }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1]))" (( "(") (binary_expression "(*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])" (parenthesized_expression "(*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38))" (( "(") (binary_expression "*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (== "==") (pointer_expression "*(int *)(*piVar1 + 0x38)" (* "*") (cast_expression "(int *)(*piVar1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0x38)" (( "(") (binary_expression "*piVar1 + 0x38" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(param_2 == piVar1[1])" (( "(") (binary_expression "param_2 == piVar1[1]" (identifier "param_2") (== "==") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) () ")"))) () ")")) (compound_statement "{\n        return piVar1;\n      }" ({ "{") (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (} "}"))) (} "}"))) (if_statement "if (DAT_000281e4 == (int *)0x0) {\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }\n  else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }" (if "if") (parenthesized_expression "(DAT_000281e4 == (int *)0x0)" (( "(") (binary_expression "DAT_000281e4 == (int *)0x0" (identifier "DAT_000281e4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar3 = (int *)calloc(3,0x24);\n    if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }\n    piVar1 = piVar3 + 9;\n    piVar3[0x19] = 0;\n    piVar3[7] = (int)piVar1;\n    piVar3[0x10] = (int)(piVar3 + 0x12);\n  }" ({ "{") (expression_statement "piVar3 = (int *)calloc(3,0x24);" (assignment_expression "piVar3 = (int *)calloc(3,0x24)" (identifier "piVar3") (= "=") (cast_expression "(int *)calloc(3,0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "calloc(3,0x24)" (identifier "calloc") (argument_list "(3,0x24)" (( "(") (number_literal "3") (, ",") (number_literal "0x24") () ")"))))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      DAT_000281e4 = piVar3;\n                    \n      FUN_00012330();\n    }" ({ "{") (expression_statement "DAT_000281e4 = piVar3;" (assignment_expression "DAT_000281e4 = piVar3" (identifier "DAT_000281e4") (= "=") (identifier "piVar3")) (; ";")) (expression_statement "FUN_00012330();" (call_expression "FUN_00012330()" (identifier "FUN_00012330") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar1 = piVar3 + 9;" (assignment_expression "piVar1 = piVar3 + 9" (identifier "piVar1") (= "=") (binary_expression "piVar3 + 9" (identifier "piVar3") (+ "+") (number_literal "9"))) (; ";")) (expression_statement "piVar3[0x19] = 0;" (assignment_expression "piVar3[0x19] = 0" (subscript_expression "piVar3[0x19]" (identifier "piVar3") ([ "[") (number_literal "0x19") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[7] = (int)piVar1;" (assignment_expression "piVar3[7] = (int)piVar1" (subscript_expression "piVar3[7]" (identifier "piVar3") ([ "[") (number_literal "7") (] "]")) (= "=") (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1"))) (; ";")) (expression_statement "piVar3[0x10] = (int)(piVar3 + 0x12);" (assignment_expression "piVar3[0x10] = (int)(piVar3 + 0x12)" (subscript_expression "piVar3[0x10]" (identifier "piVar3") ([ "[") (number_literal "0x10") (] "]")) (= "=") (cast_expression "(int)(piVar3 + 0x12)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar3 + 0x12)" (( "(") (binary_expression "piVar3 + 0x12" (identifier "piVar3") (+ "+") (number_literal "0x12")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }" (else "else") (compound_statement "{\n    piVar1 = (int *)DAT_000281e4[7];\n    piVar3 = DAT_000281e4;\n  }" ({ "{") (expression_statement "piVar1 = (int *)DAT_000281e4[7];" (assignment_expression "piVar1 = (int *)DAT_000281e4[7]" (identifier "piVar1") (= "=") (cast_expression "(int *)DAT_000281e4[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "DAT_000281e4[7]" (identifier "DAT_000281e4") ([ "[") (number_literal "7") (] "]")))) (; ";")) (expression_statement "piVar3 = DAT_000281e4;" (assignment_expression "piVar3 = DAT_000281e4" (identifier "piVar3") (= "=") (identifier "DAT_000281e4")) (; ";")) (} "}")))) (expression_statement "*piVar3 = param_1;" (assignment_expression "*piVar3 = param_1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar3[1] = param_2;" (assignment_expression "piVar3[1] = param_2" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "DAT_000281e4 = piVar1;" (assignment_expression "DAT_000281e4 = piVar1" (identifier "DAT_000281e4") (= "=") (identifier "piVar1")) (; ";")) (expression_statement "pvVar2 = calloc(DAT_000281b0,1);" (assignment_expression "pvVar2 = calloc(DAT_000281b0,1)" (identifier "pvVar2") (= "=") (call_expression "calloc(DAT_000281b0,1)" (identifier "calloc") (argument_list "(DAT_000281b0,1)" (( "(") (identifier "DAT_000281b0") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (pvVar2 != (void *)0x0) {\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }" (if "if") (parenthesized_expression "(pvVar2 != (void *)0x0)" (( "(") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar3[2] = (int)pvVar2;\n    piVar3[5] = 0;\n    piVar3[4] = 0;\n    piVar3[3] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    *DAT_000281dc = (int)piVar3;\n    DAT_000281dc = piVar3 + 7;\n    FUN_0001dfb0(piVar3);\n    return piVar3;\n  }" ({ "{") (expression_statement "piVar3[2] = (int)pvVar2;" (assignment_expression "piVar3[2] = (int)pvVar2" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pvVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar2"))) (; ";")) (expression_statement "piVar3[5] = 0;" (assignment_expression "piVar3[5] = 0" (subscript_expression "piVar3[5]" (identifier "piVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[7] = 0;" (assignment_expression "piVar3[7] = 0" (subscript_expression "piVar3[7]" (identifier "piVar3") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[8] = 0;" (assignment_expression "piVar3[8] = 0" (subscript_expression "piVar3[8]" (identifier "piVar3") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*DAT_000281dc = (int)piVar3;" (assignment_expression "*DAT_000281dc = (int)piVar3" (pointer_expression "*DAT_000281dc" (* "*") (identifier "DAT_000281dc")) (= "=") (cast_expression "(int)piVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar3"))) (; ";")) (expression_statement "DAT_000281dc = piVar3 + 7;" (assignment_expression "DAT_000281dc = piVar3 + 7" (identifier "DAT_000281dc") (= "=") (binary_expression "piVar3 + 7" (identifier "piVar3") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "FUN_0001dfb0(piVar3);" (call_expression "FUN_0001dfb0(piVar3)" (identifier "FUN_0001dfb0") (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";")) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (expression_statement "FUN_00014bf0();" (call_expression "FUN_00014bf0()" (identifier "FUN_00014bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 * function_1(type_2 *rp,int var_2)

{
  type_3 *var_3;
  type_1 *pcVar2;
  char *var_8;
  type_1 *var_6;
  
  if (var_1 != (type_4 *)0x0) {
    for (var_3 = var_1->ht[rp->index * 0x25 + var_2 & var_1->size - 1U]; var_3 != (type_3 *)0x0;
        var_3 = var_3->next) {
      var_6 = var_3->data;
      if ((rp->index == var_6->rp->index) && (var_2 == var_6->var_2)) {
        return var_6;
      }
    }
  }
  if (var_4 == (type_1 *)0x0) {
    var_6 = (type_1 *)var_5(3,0x24);
    if (var_6 == (type_1 *)0x0) {
      var_4 = var_6;
                    /* WARNING: Subroutine does not return */
      var_7();
    }
    pcVar2 = var_6 + 1;
    var_6[2].next = (type_1 *)0x0;
    var_6->next = pcVar2;
    var_6[1].next = var_6 + 2;
  }
  else {
    pcVar2 = var_4->next;
    var_6 = var_4;
  }
  var_6->rp = rp;
  var_6->var_2 = var_2;
  var_4 = pcVar2;
  var_8 = (char *)var_5(size,1);
  if (var_8 != (char *)0x0) {
    var_6->fws = var_8;
    var_6->stp = (type_5 *)0x0;
    var_6->bplp = (type_6 *)0x0;
    var_6->fplp = (type_6 *)0x0;
    var_6->next = (type_1 *)0x0;
    var_6->bp = (type_1 *)0x0;
    *currentend = var_6;
    currentend = &var_6->next;
    var_9(var_6);
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


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

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

int * MASKED(int param_1,int param_2)

{
  int *piVar1;
  void *pvVar2;
  int *piVar3;
  
  if (DAT_000281a0 != (int *)0x0) {
    for (piVar3 = *(int **)(DAT_000281a0[3] +
                           (*(int *)(param_1 + 0x38) * 0x25 + param_2 & *DAT_000281a0 - 1U) * 4);
        piVar3 != (int *)0x0; piVar3 = (int *)piVar3[1]) {
      piVar1 = (int *)*piVar3;
      if ((*(int *)(param_1 + 0x38) == *(int *)(*piVar1 + 0x38)) && (param_2 == piVar1[1])) {
        return piVar1;
      }
    }
  }
  if (DAT_000281e4 == (int *)0x0) {
    piVar3 = (int *)calloc(3,0x24);
    if (piVar3 == (int *)0x0) {
      DAT_000281e4 = piVar3;
                    /* WARNING: Subroutine does not return */
      FUN_00012330();
    }
    piVar1 = piVar3 + 9;
    piVar3[0x19] = 0;
    piVar3[7] = (int)piVar1;
    piVar3[0x10] = (int)(piVar3 + 0x12);
  }
  else {
    piVar1 = (int *)DAT_000281e4[7];
    piVar3 = DAT_000281e4;
  }
  *piVar3 = param_1;
  piVar3[1] = param_2;
  DAT_000281e4 = piVar1;
  pvVar2 = calloc(DAT_000281b0,1);
  if (pvVar2 != (void *)0x0) {
    piVar3[2] = (int)pvVar2;
    piVar3[5] = 0;
    piVar3[4] = 0;
    piVar3[3] = 0;
    piVar3[7] = 0;
    piVar3[8] = 0;
    *DAT_000281dc = (int)piVar3;
    DAT_000281dc = piVar3 + 7;
    FUN_0001dfb0(piVar3);
    return piVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00014bf0();
}

