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

NODE * make_regnode(int type,NODE *exp)

{
  Regexp *pRVar1;
  anon_union_4_4_7583dc62_for_l aVar2;
  uint uVar3;
  anon_union_4_4_7583dc62_for_l aVar4;
  undefined4 *puVar5;
  byte bVar6;
  
  bVar6 = 0;
  if (nextfree.lptr == (NODE *)0x0) {
    aVar2.lptr = (exp_node *)more_blocks(0);
  }
  else {
    aVar2 = nextfree;
    nextfree = ((nextfree.lptr)->sub).nodep.l;
  }
  ((aVar2.lptr)->sub).nodep.l.lptr = (exp_node *)0x0;
  ((aVar2.lptr)->sub).val.comtype = 0;
  puVar5 = (undefined4 *)((uint)((int)&(aVar2.lptr)->sub + 4U) & 0xfffffffc);
  uVar3 = (uint)((int)aVar2.lptr + (0x28 - (int)puVar5)) >> 2;
  for (; uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar5 = 0;
    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
  }
  (aVar2.lptr)->type = type;
  (aVar2.lptr)->flags = 1;
  aVar4 = aVar2;
  if (type == 2) {
    pRVar1 = make_regexp((exp->sub).val.sp,(exp->sub).val.slen,false,true,false);
    *(Regexp **)((int)&(aVar2.lptr)->sub + 4) = pRVar1;
    if (pRVar1 != (Regexp *)0x0) {
      ((aVar2.lptr)->sub).nodep.reflags = 1;
      ((aVar2.lptr)->sub).nodep.x.extra = exp;
      return aVar2.lptr;
    }
    ((aVar2.lptr)->sub).nodep.l = nextfree;
    aVar4.lptr = (NODE *)0x0;
    nextfree = aVar2;
  }
  return aVar4.lptr;
}



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

undefined4 * FUN_0001e300(int param_1,int param_2)

{
  int iVar1;
  undefined4 *puVar2;
  uint uVar3;
  undefined4 *puVar4;
  byte bVar5;
  
  bVar5 = 0;
  if (DAT_000bf900 == (undefined4 *)0x0) {
    puVar2 = (undefined4 *)FUN_00067ae0(0);
  }
  else {
    puVar2 = DAT_000bf900;
    DAT_000bf900 = (undefined4 *)*DAT_000bf900;
  }
  *puVar2 = 0;
  puVar2[9] = 0;
  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);
  for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;
      uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar4 = 0;
    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
  }
  puVar2[10] = param_1;
  puVar2[0xb] = 1;
  puVar4 = puVar2;
  if (param_1 == 2) {
    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);
    puVar2[1] = iVar1;
    if (iVar1 != 0) {
      puVar2[8] = 1;
      puVar2[3] = param_2;
      return puVar2;
    }
    *puVar2 = DAT_000bf900;
    puVar4 = (undefined4 *)0x0;
    DAT_000bf900 = puVar2;
  }
  return puVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016f50
ADD EBX,0xa09db
SUB ESP,0x1c
LEA EBP,[EBX + 0xc1c]
MOV EDX,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [EBP]
TEST ESI,ESI
JZ 0x0001e3b0
MOV EAX,dword ptr [ESI]
MOV dword ptr [EBP],EAX
LEA EDI,[ESI + 0x4]
MOV ECX,ESI
XOR EAX,EAX
MOV dword ptr [ESI],0x0
MOV dword ptr [ESI + 0x24],0x0
AND EDI,0xfffffffc
SUB ECX,EDI
ADD ECX,0x28
SHR ECX,0x2
CMP EDX,0x2
STOSD.REP ES:EDI
MOV dword ptr [ESI + 0x28],EDX
MOV dword ptr [ESI + 0x2c],0x1
JZ 0x0001e370
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x0
PUSH 0x1
PUSH 0x0
MOV EAX,dword ptr [ESP + 0x4c]
PUSH dword ptr [EAX + 0xc]
MOV EAX,dword ptr [ESP + 0x50]
PUSH dword ptr [EAX + 0x8]
CALL 0x0006d4e0
ADD ESP,0x20
TEST EAX,EAX
MOV dword ptr [ESI + 0x4],EAX
JZ 0x0001e3cc
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESI + 0x20],0x1
MOV dword ptr [ESI + 0xc],EAX
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH 0x0
CALL 0x00067ae0
ADD ESP,0x10
MOV ESI,EAX
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x0001e32c
MOV EAX,dword ptr [EBP]
MOV dword ptr [ESI],EAX
MOV dword ptr [EBP],ESI
XOR ESI,ESI
JMP 0x0001e35c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_0001e300(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }\n  *puVar2 = 0;\n  puVar2[9] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[10] = param_1;\n  puVar2[0xb] = 1;\n  puVar4 = puVar2;\n  if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }\n  return puVar4;\n}\n\n" comment (function_definition "undefined4 * FUN_0001e300(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }\n  *puVar2 = 0;\n  puVar2[9] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[10] = param_1;\n  puVar2[0xb] = 1;\n  puVar4 = puVar2;\n  if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }\n  return puVar4;\n}" type_identifier (pointer_declarator "* FUN_0001e300(int param_1,int param_2)" * (function_declarator "FUN_0001e300(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 iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }\n  *puVar2 = 0;\n  puVar2[9] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[10] = param_1;\n  puVar2[0xb] = 1;\n  puVar4 = puVar2;\n  if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }\n  return puVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (if_statement "if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }" if (parenthesized_expression "(DAT_000bf900 == (undefined4 *)0x0)" ( (binary_expression "DAT_000bf900 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }" { (expression_statement "puVar2 = (undefined4 *)FUN_00067ae0(0);" (assignment_expression "puVar2 = (undefined4 *)FUN_00067ae0(0)" identifier = (cast_expression "(undefined4 *)FUN_00067ae0(0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00067ae0(0)" identifier (argument_list "(0)" ( number_literal ))))) ;) }) (else_clause "else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }" else (compound_statement "{\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }" { (expression_statement "puVar2 = DAT_000bf900;" (assignment_expression "puVar2 = DAT_000bf900" identifier = identifier) ;) (expression_statement "DAT_000bf900 = (undefined4 *)*DAT_000bf900;" (assignment_expression "DAT_000bf900 = (undefined4 *)*DAT_000bf900" identifier = (cast_expression "(undefined4 *)*DAT_000bf900" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_000bf900" * identifier))) ;) }))) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[9] = 0;" (assignment_expression "puVar2[9] = 0" (subscript_expression "puVar2[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" ( (binary_expression "(int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "puVar2[10] = param_1;" (assignment_expression "puVar2[10] = param_1" (subscript_expression "puVar2[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[0xb] = 1;" (assignment_expression "puVar2[0xb] = 1" (subscript_expression "puVar2[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) (if_statement "if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }" if (parenthesized_expression "(param_1 == 2)" ( (binary_expression "param_1 == 2" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }" { (expression_statement "iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);" (assignment_expression "iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0)" identifier = (call_expression "FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0)" identifier (argument_list "(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0)" ( (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) , number_literal , number_literal , number_literal )))) ;) (expression_statement "puVar2[1] = iVar1;" (assignment_expression "puVar2[1] = iVar1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }" { (expression_statement "puVar2[8] = 1;" (assignment_expression "puVar2[8] = 1" (subscript_expression "puVar2[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = param_2;" (assignment_expression "puVar2[3] = param_2" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "*puVar2 = DAT_000bf900;" (assignment_expression "*puVar2 = DAT_000bf900" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_000bf900 = puVar2;" (assignment_expression "DAT_000bf900 = puVar2" identifier = identifier) ;) })) (return_statement "return puVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nNODE * make_regnode(int type,NODE *exp)\n\n{\n  Regexp *pRVar1;\n  anon_union_4_4_7583dc62_for_l aVar2;\n  uint uVar3;\n  anon_union_4_4_7583dc62_for_l aVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (nextfree.lptr == (NODE *)0x0) {\n    aVar2.lptr = (exp_node *)more_blocks(0);\n  }\n  else {\n    aVar2 = nextfree;\n    nextfree = ((nextfree.lptr)->sub).nodep.l;\n  }\n  ((aVar2.lptr)->sub).nodep.l.lptr = (exp_node *)0x0;\n  ((aVar2.lptr)->sub).val.comtype = 0;\n  puVar5 = (undefined4 *)((uint)((int)&(aVar2.lptr)->sub + 4U) & 0xfffffffc);\n  uVar3 = (uint)((int)aVar2.lptr + (0x28 - (int)puVar5)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  (aVar2.lptr)->type = type;\n  (aVar2.lptr)->flags = 1;\n  aVar4 = aVar2;\n  if (type == 2) {\n    pRVar1 = make_regexp((exp->sub).val.sp,(exp->sub).val.slen,false,true,false);\n    *(Regexp **)((int)&(aVar2.lptr)->sub + 4) = pRVar1;\n    if (pRVar1 != (Regexp *)0x0) {\n      ((aVar2.lptr)->sub).nodep.reflags = 1;\n      ((aVar2.lptr)->sub).nodep.x.extra = exp;\n      return aVar2.lptr;\n    }\n    ((aVar2.lptr)->sub).nodep.l = nextfree;\n    aVar4.lptr = (NODE *)0x0;\n    nextfree = aVar2;\n  }\n  return aVar4.lptr;\n}\n\n" comment (function_definition "NODE * make_regnode(int type,NODE *exp)\n\n{\n  Regexp *pRVar1;\n  anon_union_4_4_7583dc62_for_l aVar2;\n  uint uVar3;\n  anon_union_4_4_7583dc62_for_l aVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (nextfree.lptr == (NODE *)0x0) {\n    aVar2.lptr = (exp_node *)more_blocks(0);\n  }\n  else {\n    aVar2 = nextfree;\n    nextfree = ((nextfree.lptr)->sub).nodep.l;\n  }\n  ((aVar2.lptr)->sub).nodep.l.lptr = (exp_node *)0x0;\n  ((aVar2.lptr)->sub).val.comtype = 0;\n  puVar5 = (undefined4 *)((uint)((int)&(aVar2.lptr)->sub + 4U) & 0xfffffffc);\n  uVar3 = (uint)((int)aVar2.lptr + (0x28 - (int)puVar5)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  (aVar2.lptr)->type = type;\n  (aVar2.lptr)->flags = 1;\n  aVar4 = aVar2;\n  if (type == 2) {\n    pRVar1 = make_regexp((exp->sub).val.sp,(exp->sub).val.slen,false,true,false);\n    *(Regexp **)((int)&(aVar2.lptr)->sub + 4) = pRVar1;\n    if (pRVar1 != (Regexp *)0x0) {\n      ((aVar2.lptr)->sub).nodep.reflags = 1;\n      ((aVar2.lptr)->sub).nodep.x.extra = exp;\n      return aVar2.lptr;\n    }\n    ((aVar2.lptr)->sub).nodep.l = nextfree;\n    aVar4.lptr = (NODE *)0x0;\n    nextfree = aVar2;\n  }\n  return aVar4.lptr;\n}" type_identifier (pointer_declarator "* make_regnode(int type,NODE *exp)" * (function_declarator "make_regnode(int type,NODE *exp)" identifier (parameter_list "(int type,NODE *exp)" ( (parameter_declaration "int type" primitive_type identifier) , (parameter_declaration "NODE *exp" type_identifier (pointer_declarator "*exp" * identifier)) )))) (compound_statement "{\n  Regexp *pRVar1;\n  anon_union_4_4_7583dc62_for_l aVar2;\n  uint uVar3;\n  anon_union_4_4_7583dc62_for_l aVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (nextfree.lptr == (NODE *)0x0) {\n    aVar2.lptr = (exp_node *)more_blocks(0);\n  }\n  else {\n    aVar2 = nextfree;\n    nextfree = ((nextfree.lptr)->sub).nodep.l;\n  }\n  ((aVar2.lptr)->sub).nodep.l.lptr = (exp_node *)0x0;\n  ((aVar2.lptr)->sub).val.comtype = 0;\n  puVar5 = (undefined4 *)((uint)((int)&(aVar2.lptr)->sub + 4U) & 0xfffffffc);\n  uVar3 = (uint)((int)aVar2.lptr + (0x28 - (int)puVar5)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }\n  (aVar2.lptr)->type = type;\n  (aVar2.lptr)->flags = 1;\n  aVar4 = aVar2;\n  if (type == 2) {\n    pRVar1 = make_regexp((exp->sub).val.sp,(exp->sub).val.slen,false,true,false);\n    *(Regexp **)((int)&(aVar2.lptr)->sub + 4) = pRVar1;\n    if (pRVar1 != (Regexp *)0x0) {\n      ((aVar2.lptr)->sub).nodep.reflags = 1;\n      ((aVar2.lptr)->sub).nodep.x.extra = exp;\n      return aVar2.lptr;\n    }\n    ((aVar2.lptr)->sub).nodep.l = nextfree;\n    aVar4.lptr = (NODE *)0x0;\n    nextfree = aVar2;\n  }\n  return aVar4.lptr;\n}" { (declaration "Regexp *pRVar1;" type_identifier (pointer_declarator "*pRVar1" * identifier) ;) (declaration "anon_union_4_4_7583dc62_for_l aVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "anon_union_4_4_7583dc62_for_l aVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (if_statement "if (nextfree.lptr == (NODE *)0x0) {\n    aVar2.lptr = (exp_node *)more_blocks(0);\n  }\n  else {\n    aVar2 = nextfree;\n    nextfree = ((nextfree.lptr)->sub).nodep.l;\n  }" if (parenthesized_expression "(nextfree.lptr == (NODE *)0x0)" ( (binary_expression "nextfree.lptr == (NODE *)0x0" (field_expression "nextfree.lptr" identifier . field_identifier) == (cast_expression "(NODE *)0x0" ( (type_descriptor "NODE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    aVar2.lptr = (exp_node *)more_blocks(0);\n  }" { (expression_statement "aVar2.lptr = (exp_node *)more_blocks(0);" (assignment_expression "aVar2.lptr = (exp_node *)more_blocks(0)" (field_expression "aVar2.lptr" identifier . field_identifier) = (cast_expression "(exp_node *)more_blocks(0)" ( (type_descriptor "exp_node *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "more_blocks(0)" identifier (argument_list "(0)" ( number_literal ))))) ;) }) (else_clause "else {\n    aVar2 = nextfree;\n    nextfree = ((nextfree.lptr)->sub).nodep.l;\n  }" else (compound_statement "{\n    aVar2 = nextfree;\n    nextfree = ((nextfree.lptr)->sub).nodep.l;\n  }" { (expression_statement "aVar2 = nextfree;" (assignment_expression "aVar2 = nextfree" identifier = identifier) ;) (expression_statement "nextfree = ((nextfree.lptr)->sub).nodep.l;" (assignment_expression "nextfree = ((nextfree.lptr)->sub).nodep.l" identifier = (field_expression "((nextfree.lptr)->sub).nodep.l" (field_expression "((nextfree.lptr)->sub).nodep" (parenthesized_expression "((nextfree.lptr)->sub)" ( (field_expression "(nextfree.lptr)->sub" (parenthesized_expression "(nextfree.lptr)" ( (field_expression "nextfree.lptr" identifier . field_identifier) )) -> field_identifier) )) . field_identifier) . field_identifier)) ;) }))) (expression_statement "((aVar2.lptr)->sub).nodep.l.lptr = (exp_node *)0x0;" (assignment_expression "((aVar2.lptr)->sub).nodep.l.lptr = (exp_node *)0x0" (field_expression "((aVar2.lptr)->sub).nodep.l.lptr" (field_expression "((aVar2.lptr)->sub).nodep.l" (field_expression "((aVar2.lptr)->sub).nodep" (parenthesized_expression "((aVar2.lptr)->sub)" ( (field_expression "(aVar2.lptr)->sub" (parenthesized_expression "(aVar2.lptr)" ( (field_expression "aVar2.lptr" identifier . field_identifier) )) -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(exp_node *)0x0" ( (type_descriptor "exp_node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "((aVar2.lptr)->sub).val.comtype = 0;" (assignment_expression "((aVar2.lptr)->sub).val.comtype = 0" (field_expression "((aVar2.lptr)->sub).val.comtype" (field_expression "((aVar2.lptr)->sub).val" (parenthesized_expression "((aVar2.lptr)->sub)" ( (field_expression "(aVar2.lptr)->sub" (parenthesized_expression "(aVar2.lptr)" ( (field_expression "aVar2.lptr" identifier . field_identifier) )) -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)((uint)((int)&(aVar2.lptr)->sub + 4U) & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)((int)&(aVar2.lptr)->sub + 4U) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)((int)&(aVar2.lptr)->sub + 4U) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)((int)&(aVar2.lptr)->sub + 4U) & 0xfffffffc)" ( (binary_expression "(uint)((int)&(aVar2.lptr)->sub + 4U) & 0xfffffffc" (call_expression "(uint)((int)&(aVar2.lptr)->sub + 4U)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)&(aVar2.lptr)->sub + 4U)" ( (binary_expression "(int)&(aVar2.lptr)->sub + 4U" (cast_expression "(int)&(aVar2.lptr)->sub" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(aVar2.lptr)->sub" & (field_expression "(aVar2.lptr)->sub" (parenthesized_expression "(aVar2.lptr)" ( (field_expression "aVar2.lptr" identifier . field_identifier) )) -> field_identifier))) + number_literal) ))) & number_literal) )))) ;) (expression_statement "uVar3 = (uint)((int)aVar2.lptr + (0x28 - (int)puVar5)) >> 2;" (assignment_expression "uVar3 = (uint)((int)aVar2.lptr + (0x28 - (int)puVar5)) >> 2" identifier = (binary_expression "(uint)((int)aVar2.lptr + (0x28 - (int)puVar5)) >> 2" (call_expression "(uint)((int)aVar2.lptr + (0x28 - (int)puVar5))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)aVar2.lptr + (0x28 - (int)puVar5))" ( (binary_expression "(int)aVar2.lptr + (0x28 - (int)puVar5)" (cast_expression "(int)aVar2.lptr" ( (type_descriptor "int" primitive_type) ) (field_expression "aVar2.lptr" identifier . field_identifier)) + (parenthesized_expression "(0x28 - (int)puVar5)" ( (binary_expression "0x28 - (int)puVar5" number_literal - (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" for ( ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar5 = 0;\n    puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n  }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "(aVar2.lptr)->type = type;" (assignment_expression "(aVar2.lptr)->type = type" (field_expression "(aVar2.lptr)->type" (parenthesized_expression "(aVar2.lptr)" ( (field_expression "aVar2.lptr" identifier . field_identifier) )) -> field_identifier) = identifier) ;) (expression_statement "(aVar2.lptr)->flags = 1;" (assignment_expression "(aVar2.lptr)->flags = 1" (field_expression "(aVar2.lptr)->flags" (parenthesized_expression "(aVar2.lptr)" ( (field_expression "aVar2.lptr" identifier . field_identifier) )) -> field_identifier) = number_literal) ;) (expression_statement "aVar4 = aVar2;" (assignment_expression "aVar4 = aVar2" identifier = identifier) ;) (if_statement "if (type == 2) {\n    pRVar1 = make_regexp((exp->sub).val.sp,(exp->sub).val.slen,false,true,false);\n    *(Regexp **)((int)&(aVar2.lptr)->sub + 4) = pRVar1;\n    if (pRVar1 != (Regexp *)0x0) {\n      ((aVar2.lptr)->sub).nodep.reflags = 1;\n      ((aVar2.lptr)->sub).nodep.x.extra = exp;\n      return aVar2.lptr;\n    }\n    ((aVar2.lptr)->sub).nodep.l = nextfree;\n    aVar4.lptr = (NODE *)0x0;\n    nextfree = aVar2;\n  }" if (parenthesized_expression "(type == 2)" ( (binary_expression "type == 2" identifier == number_literal) )) (compound_statement "{\n    pRVar1 = make_regexp((exp->sub).val.sp,(exp->sub).val.slen,false,true,false);\n    *(Regexp **)((int)&(aVar2.lptr)->sub + 4) = pRVar1;\n    if (pRVar1 != (Regexp *)0x0) {\n      ((aVar2.lptr)->sub).nodep.reflags = 1;\n      ((aVar2.lptr)->sub).nodep.x.extra = exp;\n      return aVar2.lptr;\n    }\n    ((aVar2.lptr)->sub).nodep.l = nextfree;\n    aVar4.lptr = (NODE *)0x0;\n    nextfree = aVar2;\n  }" { (expression_statement "pRVar1 = make_regexp((exp->sub).val.sp,(exp->sub).val.slen,false,true,false);" (assignment_expression "pRVar1 = make_regexp((exp->sub).val.sp,(exp->sub).val.slen,false,true,false)" identifier = (call_expression "make_regexp((exp->sub).val.sp,(exp->sub).val.slen,false,true,false)" identifier (argument_list "((exp->sub).val.sp,(exp->sub).val.slen,false,true,false)" ( (field_expression "(exp->sub).val.sp" (field_expression "(exp->sub).val" (parenthesized_expression "(exp->sub)" ( (field_expression "exp->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) , (field_expression "(exp->sub).val.slen" (field_expression "(exp->sub).val" (parenthesized_expression "(exp->sub)" ( (field_expression "exp->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) , false , true , false )))) ;) (expression_statement "*(Regexp **)((int)&(aVar2.lptr)->sub + 4) = pRVar1;" (assignment_expression "*(Regexp **)((int)&(aVar2.lptr)->sub + 4) = pRVar1" (pointer_expression "*(Regexp **)((int)&(aVar2.lptr)->sub + 4)" * (cast_expression "(Regexp **)((int)&(aVar2.lptr)->sub + 4)" ( (type_descriptor "Regexp **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&(aVar2.lptr)->sub + 4)" ( (binary_expression "(int)&(aVar2.lptr)->sub + 4" (cast_expression "(int)&(aVar2.lptr)->sub" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(aVar2.lptr)->sub" & (field_expression "(aVar2.lptr)->sub" (parenthesized_expression "(aVar2.lptr)" ( (field_expression "aVar2.lptr" identifier . field_identifier) )) -> field_identifier))) + number_literal) )))) = identifier) ;) (if_statement "if (pRVar1 != (Regexp *)0x0) {\n      ((aVar2.lptr)->sub).nodep.reflags = 1;\n      ((aVar2.lptr)->sub).nodep.x.extra = exp;\n      return aVar2.lptr;\n    }" if (parenthesized_expression "(pRVar1 != (Regexp *)0x0)" ( (binary_expression "pRVar1 != (Regexp *)0x0" identifier != (cast_expression "(Regexp *)0x0" ( (type_descriptor "Regexp *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      ((aVar2.lptr)->sub).nodep.reflags = 1;\n      ((aVar2.lptr)->sub).nodep.x.extra = exp;\n      return aVar2.lptr;\n    }" { (expression_statement "((aVar2.lptr)->sub).nodep.reflags = 1;" (assignment_expression "((aVar2.lptr)->sub).nodep.reflags = 1" (field_expression "((aVar2.lptr)->sub).nodep.reflags" (field_expression "((aVar2.lptr)->sub).nodep" (parenthesized_expression "((aVar2.lptr)->sub)" ( (field_expression "(aVar2.lptr)->sub" (parenthesized_expression "(aVar2.lptr)" ( (field_expression "aVar2.lptr" identifier . field_identifier) )) -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "((aVar2.lptr)->sub).nodep.x.extra = exp;" (assignment_expression "((aVar2.lptr)->sub).nodep.x.extra = exp" (field_expression "((aVar2.lptr)->sub).nodep.x.extra" (field_expression "((aVar2.lptr)->sub).nodep.x" (field_expression "((aVar2.lptr)->sub).nodep" (parenthesized_expression "((aVar2.lptr)->sub)" ( (field_expression "(aVar2.lptr)->sub" (parenthesized_expression "(aVar2.lptr)" ( (field_expression "aVar2.lptr" identifier . field_identifier) )) -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = identifier) ;) (return_statement "return aVar2.lptr;" return (field_expression "aVar2.lptr" identifier . field_identifier) ;) })) (expression_statement "((aVar2.lptr)->sub).nodep.l = nextfree;" (assignment_expression "((aVar2.lptr)->sub).nodep.l = nextfree" (field_expression "((aVar2.lptr)->sub).nodep.l" (field_expression "((aVar2.lptr)->sub).nodep" (parenthesized_expression "((aVar2.lptr)->sub)" ( (field_expression "(aVar2.lptr)->sub" (parenthesized_expression "(aVar2.lptr)" ( (field_expression "aVar2.lptr" identifier . field_identifier) )) -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "aVar4.lptr = (NODE *)0x0;" (assignment_expression "aVar4.lptr = (NODE *)0x0" (field_expression "aVar4.lptr" identifier . field_identifier) = (cast_expression "(NODE *)0x0" ( (type_descriptor "NODE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "nextfree = aVar2;" (assignment_expression "nextfree = aVar2" identifier = identifier) ;) })) (return_statement "return aVar4.lptr;" return (field_expression "aVar4.lptr" identifier . field_identifier) ;) })))
(translation_unit "undefined4 * FUN_0001e300(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }\n  *puVar2 = 0;\n  puVar2[9] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[10] = param_1;\n  puVar2[0xb] = 1;\n  puVar4 = puVar2;\n  if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }\n  return puVar4;\n}\n\n" (function_definition "undefined4 * FUN_0001e300(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }\n  *puVar2 = 0;\n  puVar2[9] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[10] = param_1;\n  puVar2[0xb] = 1;\n  puVar4 = puVar2;\n  if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }\n  return puVar4;\n}" type_identifier (pointer_declarator "* FUN_0001e300(int param_1,int param_2)" * (function_declarator "FUN_0001e300(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 iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }\n  *puVar2 = 0;\n  puVar2[9] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[10] = param_1;\n  puVar2[0xb] = 1;\n  puVar4 = puVar2;\n  if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }\n  return puVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (if_statement "if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }" if (parenthesized_expression "(DAT_000bf900 == (undefined4 *)0x0)" ( (binary_expression "DAT_000bf900 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }" { (expression_statement "puVar2 = (undefined4 *)FUN_00067ae0(0);" (assignment_expression "puVar2 = (undefined4 *)FUN_00067ae0(0)" identifier = (cast_expression "(undefined4 *)FUN_00067ae0(0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00067ae0(0)" identifier (argument_list "(0)" ( number_literal ))))) ;) }) (else_clause "else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }" else (compound_statement "{\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }" { (expression_statement "puVar2 = DAT_000bf900;" (assignment_expression "puVar2 = DAT_000bf900" identifier = identifier) ;) (expression_statement "DAT_000bf900 = (undefined4 *)*DAT_000bf900;" (assignment_expression "DAT_000bf900 = (undefined4 *)*DAT_000bf900" identifier = (cast_expression "(undefined4 *)*DAT_000bf900" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_000bf900" * identifier))) ;) }))) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[9] = 0;" (assignment_expression "puVar2[9] = 0" (subscript_expression "puVar2[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" ( (binary_expression "(int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "puVar2[10] = param_1;" (assignment_expression "puVar2[10] = param_1" (subscript_expression "puVar2[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[0xb] = 1;" (assignment_expression "puVar2[0xb] = 1" (subscript_expression "puVar2[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) (if_statement "if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }" if (parenthesized_expression "(param_1 == 2)" ( (binary_expression "param_1 == 2" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }" { (expression_statement "iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);" (assignment_expression "iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0)" identifier = (call_expression "FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0)" identifier (argument_list "(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0)" ( (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) , number_literal , number_literal , number_literal )))) ;) (expression_statement "puVar2[1] = iVar1;" (assignment_expression "puVar2[1] = iVar1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }" { (expression_statement "puVar2[8] = 1;" (assignment_expression "puVar2[8] = 1" (subscript_expression "puVar2[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = param_2;" (assignment_expression "puVar2[3] = param_2" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "*puVar2 = DAT_000bf900;" (assignment_expression "*puVar2 = DAT_000bf900" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_000bf900 = puVar2;" (assignment_expression "DAT_000bf900 = puVar2" identifier = identifier) ;) })) (return_statement "return puVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 IDENT + LIT) )))) , LIT , LIT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_0001e300(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }\n  *puVar2 = 0;\n  puVar2[9] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[10] = param_1;\n  puVar2[0xb] = 1;\n  puVar4 = puVar2;\n  if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }\n  return puVar4;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0001e300(int param_1,int param_2)" (* "*") (function_declarator "FUN_0001e300(int param_1,int param_2)" (identifier "FUN_0001e300") (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 iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }\n  *puVar2 = 0;\n  puVar2[9] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[10] = param_1;\n  puVar2[0xb] = 1;\n  puVar4 = puVar2;\n  if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }\n  return puVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if (DAT_000bf900 == (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }\n  else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }" (if "if") (parenthesized_expression "(DAT_000bf900 == (undefined4 *)0x0)" (( "(") (binary_expression "DAT_000bf900 == (undefined4 *)0x0" (identifier "DAT_000bf900") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar2 = (undefined4 *)FUN_00067ae0(0);\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)FUN_00067ae0(0);" (assignment_expression "puVar2 = (undefined4 *)FUN_00067ae0(0)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_00067ae0(0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00067ae0(0)" (identifier "FUN_00067ae0") (argument_list "(0)" (( "(") (number_literal "0") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }" (else "else") (compound_statement "{\n    puVar2 = DAT_000bf900;\n    DAT_000bf900 = (undefined4 *)*DAT_000bf900;\n  }" ({ "{") (expression_statement "puVar2 = DAT_000bf900;" (assignment_expression "puVar2 = DAT_000bf900" (identifier "puVar2") (= "=") (identifier "DAT_000bf900")) (; ";")) (expression_statement "DAT_000bf900 = (undefined4 *)*DAT_000bf900;" (assignment_expression "DAT_000bf900 = (undefined4 *)*DAT_000bf900" (identifier "DAT_000bf900") (= "=") (cast_expression "(undefined4 *)*DAT_000bf900" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*DAT_000bf900" (* "*") (identifier "DAT_000bf900")))) (; ";")) (} "}")))) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[9] = 0;" (assignment_expression "puVar2[9] = 0" (subscript_expression "puVar2[9]" (identifier "puVar2") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (identifier "uVar3") (= "=") (binary_expression "(uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (( "(") (binary_expression "(int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (parenthesized_expression "(0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc)" (number_literal "0x28") (- "-") (cast_expression "(int)((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" (identifier "puVar4") (+ "+") (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "puVar2[10] = param_1;" (assignment_expression "puVar2[10] = param_1" (subscript_expression "puVar2[10]" (identifier "puVar2") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar2[0xb] = 1;" (assignment_expression "puVar2[0xb] = 1" (subscript_expression "puVar2[0xb]" (identifier "puVar2") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" (identifier "puVar4") (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (param_1 == 2) {\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }" (if "if") (parenthesized_expression "(param_1 == 2)" (( "(") (binary_expression "param_1 == 2" (identifier "param_1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);\n    puVar2[1] = iVar1;\n    if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }\n    *puVar2 = DAT_000bf900;\n    puVar4 = (undefined4 *)0x0;\n    DAT_000bf900 = puVar2;\n  }" ({ "{") (expression_statement "iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);" (assignment_expression "iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0)" (identifier "iVar1") (= "=") (call_expression "FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0)" (identifier "FUN_0006d4e0") (argument_list "(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "puVar2[1] = iVar1;" (assignment_expression "puVar2[1] = iVar1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 != 0) {\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar2[8] = 1;\n      puVar2[3] = param_2;\n      return puVar2;\n    }" ({ "{") (expression_statement "puVar2[8] = 1;" (assignment_expression "puVar2[8] = 1" (subscript_expression "puVar2[8]" (identifier "puVar2") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar2[3] = param_2;" (assignment_expression "puVar2[3] = param_2" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "*puVar2 = DAT_000bf900;" (assignment_expression "*puVar2 = DAT_000bf900" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "DAT_000bf900")) (; ";")) (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "DAT_000bf900 = puVar2;" (assignment_expression "DAT_000bf900 = puVar2" (identifier "DAT_000bf900") (= "=") (identifier "puVar2")) (; ";")) (} "}"))) (return_statement "return puVar4;" (return "return") (identifier "puVar4") (; ";")) (} "}")))

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

type_1 * function_1(int var_4,type_1 *exp)

{
  type_2 *var_6;
  type_3 aVar2;
  type_4 var_2;
  type_3 aVar4;
  type_5 *var_3;
  type_6 bVar6;
  
  bVar6 = 0;
  if (nextfree.lptr == (type_1 *)0x0) {
    aVar2.lptr = (type_7 *)var_1(0);
  }
  else {
    aVar2 = nextfree;
    nextfree = ((nextfree.lptr)->sub).nodep.l;
  }
  ((aVar2.lptr)->sub).nodep.l.lptr = (type_7 *)0x0;
  ((aVar2.lptr)->sub).val.comtype = 0;
  var_3 = (type_5 *)((type_4)((int)&(aVar2.lptr)->sub + 4U) & 0xfffffffc);
  var_2 = (type_4)((int)aVar2.lptr + (0x28 - (int)var_3)) >> 2;
  for (; var_2 != 0; var_2 = var_2 - 1) {
    *var_3 = 0;
    var_3 = var_3 + (type_4)bVar6 * -2 + 1;
  }
  (aVar2.lptr)->var_4 = var_4;
  (aVar2.lptr)->flags = 1;
  aVar4 = aVar2;
  if (var_4 == 2) {
    var_6 = var_5((exp->sub).val.sp,(exp->sub).val.slen,false,true,false);
    *(type_2 **)((int)&(aVar2.lptr)->sub + 4) = var_6;
    if (var_6 != (type_2 *)0x0) {
      ((aVar2.lptr)->sub).nodep.reflags = 1;
      ((aVar2.lptr)->sub).nodep.x.extra = exp;
      return aVar2.lptr;
    }
    ((aVar2.lptr)->sub).nodep.l = nextfree;
    aVar4.lptr = (type_1 *)0x0;
    nextfree = aVar2;
  }
  return aVar4.lptr;
}


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

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

undefined4 * MASKED(int param_1,int param_2)

{
  int iVar1;
  undefined4 *puVar2;
  uint uVar3;
  undefined4 *puVar4;
  byte bVar5;
  
  bVar5 = 0;
  if (DAT_000bf900 == (undefined4 *)0x0) {
    puVar2 = (undefined4 *)FUN_00067ae0(0);
  }
  else {
    puVar2 = DAT_000bf900;
    DAT_000bf900 = (undefined4 *)*DAT_000bf900;
  }
  *puVar2 = 0;
  puVar2[9] = 0;
  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);
  for (uVar3 = (uint)((int)puVar2 + (0x28 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;
      uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar4 = 0;
    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
  }
  puVar2[10] = param_1;
  puVar2[0xb] = 1;
  puVar4 = puVar2;
  if (param_1 == 2) {
    iVar1 = FUN_0006d4e0(*(undefined4 *)(param_2 + 8),*(undefined4 *)(param_2 + 0xc),0,1,0);
    puVar2[1] = iVar1;
    if (iVar1 != 0) {
      puVar2[8] = 1;
      puVar2[3] = param_2;
      return puVar2;
    }
    *puVar2 = DAT_000bf900;
    puVar4 = (undefined4 *)0x0;
    DAT_000bf900 = puVar2;
  }
  return puVar4;
}

