
void __regparm3 exprSetHeight(Expr *p)

{
  int iVar1;
  Select *pSelect;
  Expr **ppEVar2;
  ExprList_item *pEVar3;
  int iVar4;
  uint uVar5;
  int in_GS_OFFSET;
  int nHeight;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  nHeight = 0;
  if ((p->pLeft != (Expr *)0x0) && (iVar1 = p->pLeft->nHeight, 0 < iVar1)) {
    nHeight = iVar1;
  }
  if ((p->pRight == (Expr *)0x0) || (iVar1 = p->pRight->nHeight, iVar1 <= nHeight)) {
    uVar5 = p->flags;
    pSelect = (Select *)(p->x).pList;
  }
  else {
    uVar5 = p->flags;
    pSelect = (Select *)(p->x).pList;
    nHeight = iVar1;
  }
  if ((uVar5 & 0x800) == 0) {
    if (pSelect != (Select *)0x0) {
      heightOfExprList((ExprList *)pSelect,&nHeight);
      iVar1 = ((p->x).pList)->nExpr;
      uVar5 = 0;
      if (0 < iVar1) {
        pEVar3 = ((p->x).pList)->a;
        iVar4 = 0;
        uVar5 = 0;
        do {
          ppEVar2 = &pEVar3->pExpr;
          iVar4 = iVar4 + 1;
          pEVar3 = pEVar3 + 1;
          uVar5 = uVar5 | (*ppEVar2)->flags;
        } while (iVar4 != iVar1);
        uVar5 = uVar5 & 0x200104;
      }
      p->flags = p->flags | uVar5;
    }
  }
  else {
    heightOfSelect(pSelect,&nHeight);
  }
  p->nHeight = nHeight + 1;
  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



void __regparm3 FUN_0002d4b0(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  uint uVar6;
  int in_GS_OFFSET;
  int local_14;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  local_14 = 0;
  if ((*(int *)(param_1 + 0xc) != 0) &&
     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {
    local_14 = iVar2;
  }
  if ((*(int *)(param_1 + 0x10) == 0) ||
     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {
    uVar6 = *(uint *)(param_1 + 4);
    iVar5 = *(int *)(param_1 + 0x14);
  }
  else {
    uVar6 = *(uint *)(param_1 + 4);
    iVar5 = *(int *)(param_1 + 0x14);
    local_14 = iVar2;
  }
  if ((uVar6 & 0x800) == 0) {
    if (iVar5 != 0) {
      FUN_0002d3f0();
      iVar2 = **(int **)(param_1 + 0x14);
      uVar6 = 0;
      if (0 < iVar2) {
        piVar4 = *(int **)(param_1 + 0x14) + 1;
        iVar5 = 0;
        uVar6 = 0;
        do {
          iVar3 = *piVar4;
          iVar5 = iVar5 + 1;
          piVar4 = piVar4 + 5;
          uVar6 = uVar6 | *(uint *)(iVar3 + 4);
        } while (iVar5 != iVar2);
        uVar6 = uVar6 & 0x200104;
      }
      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;
    }
  }
  else {
    FUN_0002d430();
  }
  *(int *)(param_1 + 0x18) = local_14 + 1;
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f4bf0();
  }
  return;
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
SUB ESP,0x10
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESI + 0xc]
MOV dword ptr [ESP + 0x8],0x0
TEST EAX,EAX
JZ 0x0002d4de
MOV EAX,dword ptr [EAX + 0x18]
TEST EAX,EAX
JG 0x0002d580
MOV EAX,dword ptr [ESI + 0x10]
TEST EAX,EAX
JZ 0x0002d4ee
MOV EAX,dword ptr [EAX + 0x18]
CMP EAX,dword ptr [ESP + 0x8]
JG 0x0002d560
MOV EBX,dword ptr [ESI + 0x4]
MOV EAX,dword ptr [ESI + 0x14]
AND EBX,0x800
JNZ 0x0002d572
TEST EAX,EAX
JZ 0x0002d538
LEA EDX,[ESP + 0x8]
CALL 0x0002d3f0
MOV EAX,dword ptr [ESI + 0x14]
MOV EDI,dword ptr [EAX]
TEST EDI,EDI
JLE 0x0002d535
ADD EAX,0x4
XOR EDX,EDX
LEA ESI,[ESI]
NOP
MOV ECX,dword ptr [EAX]
ADD EDX,0x1
ADD EAX,0x14
OR EBX,dword ptr [ECX + 0x4]
CMP EDX,EDI
JNZ 0x0002d520
AND EBX,0x200104
OR dword ptr [ESI + 0x4],EBX
MOV EAX,dword ptr [ESP + 0x8]
ADD EAX,0x1
MOV dword ptr [ESI + 0x18],EAX
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0002d589
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EBX,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESI + 0x14]
AND EBX,0x800
JZ 0x0002d4fc
LEA EDX,[ESP + 0x8]
CALL 0x0002d430
JMP 0x0002d538
MOV dword ptr [ESP + 0x8],EAX
JMP 0x0002d4de
CALL 0x000f4bf0
(translation_unit "void __regparm3 FUN_0002d4b0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  int local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }\n  if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }\n  if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }\n  *(int *)(param_1 + 0x18) = local_14 + 1;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002d4b0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  int local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }\n  if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }\n  if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }\n  *(int *)(param_1 + 0x18) = local_14 + 1;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002d4b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  int local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }\n  if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }\n  if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }\n  *(int *)(param_1 + 0x18) = local_14 + 1;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" identifier = number_literal) ;) (if_statement "if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2))" ( (binary_expression "(*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)" (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)" ( (comma_expression "iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0xc) + 0x18)" * (cast_expression "(int *)(*(int *)(param_1 + 0xc) + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x18)" ( (binary_expression "*(int *)(param_1 + 0xc) + 0x18" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) ))))) , (binary_expression "0 < iVar2" number_literal < identifier)) ))) )) (compound_statement "{\n    local_14 = iVar2;\n  }" { (expression_statement "local_14 = iVar2;" (assignment_expression "local_14 = iVar2" identifier = identifier) ;) })) (if_statement "if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14))" ( (binary_expression "(*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)" (parenthesized_expression "(*(int *)(param_1 + 0x10) == 0)" ( (binary_expression "*(int *)(param_1 + 0x10) == 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)" ( (comma_expression "iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + 0x18)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x18)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x18" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + number_literal) ))))) , (binary_expression "iVar2 <= local_14" identifier <= identifier)) ))) )) (compound_statement "{\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }" { (expression_statement "uVar6 = *(uint *)(param_1 + 4);" (assignment_expression "uVar6 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }" else (compound_statement "{\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }" { (expression_statement "uVar6 = *(uint *)(param_1 + 4);" (assignment_expression "uVar6 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14 = iVar2;" (assignment_expression "local_14 = iVar2" identifier = identifier) ;) }))) (if_statement "if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }" if (parenthesized_expression "((uVar6 & 0x800) == 0)" ( (binary_expression "(uVar6 & 0x800) == 0" (parenthesized_expression "(uVar6 & 0x800)" ( (binary_expression "uVar6 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }" { (if_statement "if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }" { (expression_statement "FUN_0002d3f0();" (call_expression "FUN_0002d3f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = **(int **)(param_1 + 0x14);" (assignment_expression "iVar2 = **(int **)(param_1 + 0x14)" identifier = (pointer_expression "**(int **)(param_1 + 0x14)" * (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }" { (expression_statement "piVar4 = *(int **)(param_1 + 0x14) + 1;" (assignment_expression "piVar4 = *(int **)(param_1 + 0x14) + 1" identifier = (binary_expression "*(int **)(param_1 + 0x14) + 1" (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);" do (compound_statement "{\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        }" { (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = piVar4 + 5;" (assignment_expression "piVar4 = piVar4 + 5" identifier = (binary_expression "piVar4 + 5" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 | *(uint *)(iVar3 + 4);" (assignment_expression "uVar6 = uVar6 | *(uint *)(iVar3 + 4)" identifier = (binary_expression "uVar6 | *(uint *)(iVar3 + 4)" identifier | (pointer_expression "*(uint *)(iVar3 + 4)" * (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))))) ;) }) while (parenthesized_expression "(iVar5 != iVar2)" ( (binary_expression "iVar5 != iVar2" identifier != identifier) )) ;) (expression_statement "uVar6 = uVar6 & 0x200104;" (assignment_expression "uVar6 = uVar6 & 0x200104" identifier = (binary_expression "uVar6 & 0x200104" identifier & number_literal)) ;) })) (expression_statement "*(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;" (assignment_expression "*(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 4) | uVar6" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) | identifier)) ;) })) }) (else_clause "else {\n    FUN_0002d430();\n  }" else (compound_statement "{\n    FUN_0002d430();\n  }" { (expression_statement "FUN_0002d430();" (call_expression "FUN_0002d430()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "*(int *)(param_1 + 0x18) = local_14 + 1;" (assignment_expression "*(int *)(param_1 + 0x18) = local_14 + 1" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "local_14 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }" { comment (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 exprSetHeight(Expr *p)\n\n{\n  int iVar1;\n  Select *pSelect;\n  Expr **ppEVar2;\n  ExprList_item *pEVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int nHeight;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  nHeight = 0;\n  if ((p->pLeft != (Expr *)0x0) && (iVar1 = p->pLeft->nHeight, 0 < iVar1)) {\n    nHeight = iVar1;\n  }\n  if ((p->pRight == (Expr *)0x0) || (iVar1 = p->pRight->nHeight, iVar1 <= nHeight)) {\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n  }\n  else {\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n    nHeight = iVar1;\n  }\n  if ((uVar5 & 0x800) == 0) {\n    if (pSelect != (Select *)0x0) {\n      heightOfExprList((ExprList *)pSelect,&nHeight);\n      iVar1 = ((p->x).pList)->nExpr;\n      uVar5 = 0;\n      if (0 < iVar1) {\n        pEVar3 = ((p->x).pList)->a;\n        iVar4 = 0;\n        uVar5 = 0;\n        do {\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        } while (iVar4 != iVar1);\n        uVar5 = uVar5 & 0x200104;\n      }\n      p->flags = p->flags | uVar5;\n    }\n  }\n  else {\n    heightOfSelect(pSelect,&nHeight);\n  }\n  p->nHeight = nHeight + 1;\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 exprSetHeight(Expr *p)\n\n{\n  int iVar1;\n  Select *pSelect;\n  Expr **ppEVar2;\n  ExprList_item *pEVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int nHeight;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  nHeight = 0;\n  if ((p->pLeft != (Expr *)0x0) && (iVar1 = p->pLeft->nHeight, 0 < iVar1)) {\n    nHeight = iVar1;\n  }\n  if ((p->pRight == (Expr *)0x0) || (iVar1 = p->pRight->nHeight, iVar1 <= nHeight)) {\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n  }\n  else {\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n    nHeight = iVar1;\n  }\n  if ((uVar5 & 0x800) == 0) {\n    if (pSelect != (Select *)0x0) {\n      heightOfExprList((ExprList *)pSelect,&nHeight);\n      iVar1 = ((p->x).pList)->nExpr;\n      uVar5 = 0;\n      if (0 < iVar1) {\n        pEVar3 = ((p->x).pList)->a;\n        iVar4 = 0;\n        uVar5 = 0;\n        do {\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        } while (iVar4 != iVar1);\n        uVar5 = uVar5 & 0x200104;\n      }\n      p->flags = p->flags | uVar5;\n    }\n  }\n  else {\n    heightOfSelect(pSelect,&nHeight);\n  }\n  p->nHeight = nHeight + 1;\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "exprSetHeight(Expr *p)" identifier (parameter_list "(Expr *p)" ( (parameter_declaration "Expr *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  Select *pSelect;\n  Expr **ppEVar2;\n  ExprList_item *pEVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int nHeight;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  nHeight = 0;\n  if ((p->pLeft != (Expr *)0x0) && (iVar1 = p->pLeft->nHeight, 0 < iVar1)) {\n    nHeight = iVar1;\n  }\n  if ((p->pRight == (Expr *)0x0) || (iVar1 = p->pRight->nHeight, iVar1 <= nHeight)) {\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n  }\n  else {\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n    nHeight = iVar1;\n  }\n  if ((uVar5 & 0x800) == 0) {\n    if (pSelect != (Select *)0x0) {\n      heightOfExprList((ExprList *)pSelect,&nHeight);\n      iVar1 = ((p->x).pList)->nExpr;\n      uVar5 = 0;\n      if (0 < iVar1) {\n        pEVar3 = ((p->x).pList)->a;\n        iVar4 = 0;\n        uVar5 = 0;\n        do {\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        } while (iVar4 != iVar1);\n        uVar5 = uVar5 & 0x200104;\n      }\n      p->flags = p->flags | uVar5;\n    }\n  }\n  else {\n    heightOfSelect(pSelect,&nHeight);\n  }\n  p->nHeight = nHeight + 1;\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Select *pSelect;" type_identifier (pointer_declarator "*pSelect" * identifier) ;) (declaration "Expr **ppEVar2;" type_identifier (pointer_declarator "**ppEVar2" * (pointer_declarator "*ppEVar2" * identifier)) ;) (declaration "ExprList_item *pEVar3;" type_identifier (pointer_declarator "*pEVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int nHeight;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "nHeight = 0;" (assignment_expression "nHeight = 0" identifier = number_literal) ;) (if_statement "if ((p->pLeft != (Expr *)0x0) && (iVar1 = p->pLeft->nHeight, 0 < iVar1)) {\n    nHeight = iVar1;\n  }" if (parenthesized_expression "((p->pLeft != (Expr *)0x0) && (iVar1 = p->pLeft->nHeight, 0 < iVar1))" ( (binary_expression "(p->pLeft != (Expr *)0x0) && (iVar1 = p->pLeft->nHeight, 0 < iVar1)" (parenthesized_expression "(p->pLeft != (Expr *)0x0)" ( (binary_expression "p->pLeft != (Expr *)0x0" (field_expression "p->pLeft" identifier -> field_identifier) != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = p->pLeft->nHeight, 0 < iVar1)" ( (comma_expression "iVar1 = p->pLeft->nHeight, 0 < iVar1" (assignment_expression "iVar1 = p->pLeft->nHeight" identifier = (field_expression "p->pLeft->nHeight" (field_expression "p->pLeft" identifier -> field_identifier) -> field_identifier)) , (binary_expression "0 < iVar1" number_literal < identifier)) ))) )) (compound_statement "{\n    nHeight = iVar1;\n  }" { (expression_statement "nHeight = iVar1;" (assignment_expression "nHeight = iVar1" identifier = identifier) ;) })) (if_statement "if ((p->pRight == (Expr *)0x0) || (iVar1 = p->pRight->nHeight, iVar1 <= nHeight)) {\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n  }\n  else {\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n    nHeight = iVar1;\n  }" if (parenthesized_expression "((p->pRight == (Expr *)0x0) || (iVar1 = p->pRight->nHeight, iVar1 <= nHeight))" ( (binary_expression "(p->pRight == (Expr *)0x0) || (iVar1 = p->pRight->nHeight, iVar1 <= nHeight)" (parenthesized_expression "(p->pRight == (Expr *)0x0)" ( (binary_expression "p->pRight == (Expr *)0x0" (field_expression "p->pRight" identifier -> field_identifier) == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar1 = p->pRight->nHeight, iVar1 <= nHeight)" ( (comma_expression "iVar1 = p->pRight->nHeight, iVar1 <= nHeight" (assignment_expression "iVar1 = p->pRight->nHeight" identifier = (field_expression "p->pRight->nHeight" (field_expression "p->pRight" identifier -> field_identifier) -> field_identifier)) , (binary_expression "iVar1 <= nHeight" identifier <= identifier)) ))) )) (compound_statement "{\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n  }" { (expression_statement "uVar5 = p->flags;" (assignment_expression "uVar5 = p->flags" identifier = (field_expression "p->flags" identifier -> field_identifier)) ;) (expression_statement "pSelect = (Select *)(p->x).pList;" (assignment_expression "pSelect = (Select *)(p->x).pList" identifier = (cast_expression "(Select *)(p->x).pList" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(p->x).pList" (parenthesized_expression "(p->x)" ( (field_expression "p->x" identifier -> field_identifier) )) . field_identifier))) ;) }) (else_clause "else {\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n    nHeight = iVar1;\n  }" else (compound_statement "{\n    uVar5 = p->flags;\n    pSelect = (Select *)(p->x).pList;\n    nHeight = iVar1;\n  }" { (expression_statement "uVar5 = p->flags;" (assignment_expression "uVar5 = p->flags" identifier = (field_expression "p->flags" identifier -> field_identifier)) ;) (expression_statement "pSelect = (Select *)(p->x).pList;" (assignment_expression "pSelect = (Select *)(p->x).pList" identifier = (cast_expression "(Select *)(p->x).pList" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(p->x).pList" (parenthesized_expression "(p->x)" ( (field_expression "p->x" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "nHeight = iVar1;" (assignment_expression "nHeight = iVar1" identifier = identifier) ;) }))) (if_statement "if ((uVar5 & 0x800) == 0) {\n    if (pSelect != (Select *)0x0) {\n      heightOfExprList((ExprList *)pSelect,&nHeight);\n      iVar1 = ((p->x).pList)->nExpr;\n      uVar5 = 0;\n      if (0 < iVar1) {\n        pEVar3 = ((p->x).pList)->a;\n        iVar4 = 0;\n        uVar5 = 0;\n        do {\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        } while (iVar4 != iVar1);\n        uVar5 = uVar5 & 0x200104;\n      }\n      p->flags = p->flags | uVar5;\n    }\n  }\n  else {\n    heightOfSelect(pSelect,&nHeight);\n  }" if (parenthesized_expression "((uVar5 & 0x800) == 0)" ( (binary_expression "(uVar5 & 0x800) == 0" (parenthesized_expression "(uVar5 & 0x800)" ( (binary_expression "uVar5 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (pSelect != (Select *)0x0) {\n      heightOfExprList((ExprList *)pSelect,&nHeight);\n      iVar1 = ((p->x).pList)->nExpr;\n      uVar5 = 0;\n      if (0 < iVar1) {\n        pEVar3 = ((p->x).pList)->a;\n        iVar4 = 0;\n        uVar5 = 0;\n        do {\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        } while (iVar4 != iVar1);\n        uVar5 = uVar5 & 0x200104;\n      }\n      p->flags = p->flags | uVar5;\n    }\n  }" { (if_statement "if (pSelect != (Select *)0x0) {\n      heightOfExprList((ExprList *)pSelect,&nHeight);\n      iVar1 = ((p->x).pList)->nExpr;\n      uVar5 = 0;\n      if (0 < iVar1) {\n        pEVar3 = ((p->x).pList)->a;\n        iVar4 = 0;\n        uVar5 = 0;\n        do {\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        } while (iVar4 != iVar1);\n        uVar5 = uVar5 & 0x200104;\n      }\n      p->flags = p->flags | uVar5;\n    }" if (parenthesized_expression "(pSelect != (Select *)0x0)" ( (binary_expression "pSelect != (Select *)0x0" identifier != (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      heightOfExprList((ExprList *)pSelect,&nHeight);\n      iVar1 = ((p->x).pList)->nExpr;\n      uVar5 = 0;\n      if (0 < iVar1) {\n        pEVar3 = ((p->x).pList)->a;\n        iVar4 = 0;\n        uVar5 = 0;\n        do {\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        } while (iVar4 != iVar1);\n        uVar5 = uVar5 & 0x200104;\n      }\n      p->flags = p->flags | uVar5;\n    }" { (expression_statement "heightOfExprList((ExprList *)pSelect,&nHeight);" (call_expression "heightOfExprList((ExprList *)pSelect,&nHeight)" identifier (argument_list "((ExprList *)pSelect,&nHeight)" ( (cast_expression "(ExprList *)pSelect" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&nHeight" & identifier) ))) ;) (expression_statement "iVar1 = ((p->x).pList)->nExpr;" (assignment_expression "iVar1 = ((p->x).pList)->nExpr" identifier = (field_expression "((p->x).pList)->nExpr" (parenthesized_expression "((p->x).pList)" ( (field_expression "(p->x).pList" (parenthesized_expression "(p->x)" ( (field_expression "p->x" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier)) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar1) {\n        pEVar3 = ((p->x).pList)->a;\n        iVar4 = 0;\n        uVar5 = 0;\n        do {\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        } while (iVar4 != iVar1);\n        uVar5 = uVar5 & 0x200104;\n      }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n        pEVar3 = ((p->x).pList)->a;\n        iVar4 = 0;\n        uVar5 = 0;\n        do {\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        } while (iVar4 != iVar1);\n        uVar5 = uVar5 & 0x200104;\n      }" { (expression_statement "pEVar3 = ((p->x).pList)->a;" (assignment_expression "pEVar3 = ((p->x).pList)->a" identifier = (field_expression "((p->x).pList)->a" (parenthesized_expression "((p->x).pList)" ( (field_expression "(p->x).pList" (parenthesized_expression "(p->x)" ( (field_expression "p->x" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        } while (iVar4 != iVar1);" do (compound_statement "{\n          ppEVar2 = &pEVar3->pExpr;\n          iVar4 = iVar4 + 1;\n          pEVar3 = pEVar3 + 1;\n          uVar5 = uVar5 | (*ppEVar2)->flags;\n        }" { (expression_statement "ppEVar2 = &pEVar3->pExpr;" (assignment_expression "ppEVar2 = &pEVar3->pExpr" identifier = (pointer_expression "&pEVar3->pExpr" & (field_expression "pEVar3->pExpr" identifier -> field_identifier))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "pEVar3 = pEVar3 + 1;" (assignment_expression "pEVar3 = pEVar3 + 1" identifier = (binary_expression "pEVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = uVar5 | (*ppEVar2)->flags;" (assignment_expression "uVar5 = uVar5 | (*ppEVar2)->flags" identifier = (binary_expression "uVar5 | (*ppEVar2)->flags" identifier | (field_expression "(*ppEVar2)->flags" (parenthesized_expression "(*ppEVar2)" ( (pointer_expression "*ppEVar2" * identifier) )) -> field_identifier))) ;) }) while (parenthesized_expression "(iVar4 != iVar1)" ( (binary_expression "iVar4 != iVar1" identifier != identifier) )) ;) (expression_statement "uVar5 = uVar5 & 0x200104;" (assignment_expression "uVar5 = uVar5 & 0x200104" identifier = (binary_expression "uVar5 & 0x200104" identifier & number_literal)) ;) })) (expression_statement "p->flags = p->flags | uVar5;" (assignment_expression "p->flags = p->flags | uVar5" (field_expression "p->flags" identifier -> field_identifier) = (binary_expression "p->flags | uVar5" (field_expression "p->flags" identifier -> field_identifier) | identifier)) ;) })) }) (else_clause "else {\n    heightOfSelect(pSelect,&nHeight);\n  }" else (compound_statement "{\n    heightOfSelect(pSelect,&nHeight);\n  }" { (expression_statement "heightOfSelect(pSelect,&nHeight);" (call_expression "heightOfSelect(pSelect,&nHeight)" identifier (argument_list "(pSelect,&nHeight)" ( identifier , (pointer_expression "&nHeight" & identifier) ))) ;) }))) (expression_statement "p->nHeight = nHeight + 1;" (assignment_expression "p->nHeight = nHeight + 1" (field_expression "p->nHeight" identifier -> field_identifier) = (binary_expression "nHeight + 1" identifier + number_literal)) ;) (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_10 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0002d4b0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  int local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }\n  if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }\n  if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }\n  *(int *)(param_1 + 0x18) = local_14 + 1;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002d4b0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  int local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }\n  if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }\n  if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }\n  *(int *)(param_1 + 0x18) = local_14 + 1;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002d4b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  int local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }\n  if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }\n  if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }\n  *(int *)(param_1 + 0x18) = local_14 + 1;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" identifier = number_literal) ;) (if_statement "if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2))" ( (binary_expression "(*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)" (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)" ( (comma_expression "iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0xc) + 0x18)" * (cast_expression "(int *)(*(int *)(param_1 + 0xc) + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x18)" ( (binary_expression "*(int *)(param_1 + 0xc) + 0x18" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) ))))) , (binary_expression "0 < iVar2" number_literal < identifier)) ))) )) (compound_statement "{\n    local_14 = iVar2;\n  }" { (expression_statement "local_14 = iVar2;" (assignment_expression "local_14 = iVar2" identifier = identifier) ;) })) (if_statement "if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14))" ( (binary_expression "(*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)" (parenthesized_expression "(*(int *)(param_1 + 0x10) == 0)" ( (binary_expression "*(int *)(param_1 + 0x10) == 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)" ( (comma_expression "iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + 0x18)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x18)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x18" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + number_literal) ))))) , (binary_expression "iVar2 <= local_14" identifier <= identifier)) ))) )) (compound_statement "{\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }" { (expression_statement "uVar6 = *(uint *)(param_1 + 4);" (assignment_expression "uVar6 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }" else (compound_statement "{\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }" { (expression_statement "uVar6 = *(uint *)(param_1 + 4);" (assignment_expression "uVar6 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14 = iVar2;" (assignment_expression "local_14 = iVar2" identifier = identifier) ;) }))) (if_statement "if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }" if (parenthesized_expression "((uVar6 & 0x800) == 0)" ( (binary_expression "(uVar6 & 0x800) == 0" (parenthesized_expression "(uVar6 & 0x800)" ( (binary_expression "uVar6 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }" { (if_statement "if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }" { (expression_statement "FUN_0002d3f0();" (call_expression "FUN_0002d3f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = **(int **)(param_1 + 0x14);" (assignment_expression "iVar2 = **(int **)(param_1 + 0x14)" identifier = (pointer_expression "**(int **)(param_1 + 0x14)" * (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }" { (expression_statement "piVar4 = *(int **)(param_1 + 0x14) + 1;" (assignment_expression "piVar4 = *(int **)(param_1 + 0x14) + 1" identifier = (binary_expression "*(int **)(param_1 + 0x14) + 1" (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);" do (compound_statement "{\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        }" { (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = piVar4 + 5;" (assignment_expression "piVar4 = piVar4 + 5" identifier = (binary_expression "piVar4 + 5" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 | *(uint *)(iVar3 + 4);" (assignment_expression "uVar6 = uVar6 | *(uint *)(iVar3 + 4)" identifier = (binary_expression "uVar6 | *(uint *)(iVar3 + 4)" identifier | (pointer_expression "*(uint *)(iVar3 + 4)" * (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))))) ;) }) while (parenthesized_expression "(iVar5 != iVar2)" ( (binary_expression "iVar5 != iVar2" identifier != identifier) )) ;) (expression_statement "uVar6 = uVar6 & 0x200104;" (assignment_expression "uVar6 = uVar6 & 0x200104" identifier = (binary_expression "uVar6 & 0x200104" identifier & number_literal)) ;) })) (expression_statement "*(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;" (assignment_expression "*(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 4) | uVar6" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) | identifier)) ;) })) }) (else_clause "else {\n    FUN_0002d430();\n  }" else (compound_statement "{\n    FUN_0002d430();\n  }" { (expression_statement "FUN_0002d430();" (call_expression "FUN_0002d430()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "*(int *)(param_1 + 0x18) = local_14 + 1;" (assignment_expression "*(int *)(param_1 + 0x18) = local_14 + 1" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "local_14 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_000f4bf0();\n  }" { (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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) )))) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = 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) )))) == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) , (binary_expression IDENT <= IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | IDENT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0002d4b0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  int local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }\n  if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }\n  if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }\n  *(int *)(param_1 + 0x18) = local_14 + 1;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002d4b0(int param_1)" (identifier "FUN_0002d4b0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  int local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }\n  if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }\n  if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }\n  *(int *)(param_1 + 0x18) = local_14 + 1;\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" (identifier "local_14") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {\n    local_14 = iVar2;\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2))" (( "(") (binary_expression "(*(int *)(param_1 + 0xc) != 0) &&\n     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)" (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)" (( "(") (comma_expression "iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0xc) + 0x18)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0xc) + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x18)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) + 0x18" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x18")) () ")"))))) (, ",") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2"))) () ")"))) () ")")) (compound_statement "{\n    local_14 = iVar2;\n  }" ({ "{") (expression_statement "local_14 = iVar2;" (assignment_expression "local_14 = iVar2" (identifier "local_14") (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (if_statement "if ((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }\n  else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14))" (( "(") (binary_expression "(*(int *)(param_1 + 0x10) == 0) ||\n     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)" (parenthesized_expression "(*(int *)(param_1 + 0x10) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) == 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)" (( "(") (comma_expression "iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + 0x18)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x10) + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x18)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + 0x18" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x18")) () ")"))))) (, ",") (binary_expression "iVar2 <= local_14" (identifier "iVar2") (<= "<=") (identifier "local_14"))) () ")"))) () ")")) (compound_statement "{\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n  }" ({ "{") (expression_statement "uVar6 = *(uint *)(param_1 + 4);" (assignment_expression "uVar6 = *(uint *)(param_1 + 4)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x14)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }" (else "else") (compound_statement "{\n    uVar6 = *(uint *)(param_1 + 4);\n    iVar5 = *(int *)(param_1 + 0x14);\n    local_14 = iVar2;\n  }" ({ "{") (expression_statement "uVar6 = *(uint *)(param_1 + 4);" (assignment_expression "uVar6 = *(uint *)(param_1 + 4)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x14)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_14 = iVar2;" (assignment_expression "local_14 = iVar2" (identifier "local_14") (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (if_statement "if ((uVar6 & 0x800) == 0) {\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }\n  else {\n    FUN_0002d430();\n  }" (if "if") (parenthesized_expression "((uVar6 & 0x800) == 0)" (( "(") (binary_expression "(uVar6 & 0x800) == 0" (parenthesized_expression "(uVar6 & 0x800)" (( "(") (binary_expression "uVar6 & 0x800" (identifier "uVar6") (& "&") (number_literal "0x800")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }\n  }" ({ "{") (if_statement "if (iVar5 != 0) {\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0002d3f0();\n      iVar2 = **(int **)(param_1 + 0x14);\n      uVar6 = 0;\n      if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }\n      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;\n    }" ({ "{") (expression_statement "FUN_0002d3f0();" (call_expression "FUN_0002d3f0()" (identifier "FUN_0002d3f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = **(int **)(param_1 + 0x14);" (assignment_expression "iVar2 = **(int **)(param_1 + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "**(int **)(param_1 + 0x14)" (* "*") (pointer_expression "*(int **)(param_1 + 0x14)" (* "*") (cast_expression "(int **)(param_1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < iVar2) {\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n        piVar4 = *(int **)(param_1 + 0x14) + 1;\n        iVar5 = 0;\n        uVar6 = 0;\n        do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);\n        uVar6 = uVar6 & 0x200104;\n      }" ({ "{") (expression_statement "piVar4 = *(int **)(param_1 + 0x14) + 1;" (assignment_expression "piVar4 = *(int **)(param_1 + 0x14) + 1" (identifier "piVar4") (= "=") (binary_expression "*(int **)(param_1 + 0x14) + 1" (pointer_expression "*(int **)(param_1 + 0x14)" (* "*") (cast_expression "(int **)(param_1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        } while (iVar5 != iVar2);" (do "do") (compound_statement "{\n          iVar3 = *piVar4;\n          iVar5 = iVar5 + 1;\n          piVar4 = piVar4 + 5;\n          uVar6 = uVar6 | *(uint *)(iVar3 + 4);\n        }" ({ "{") (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" (identifier "iVar3") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar4 = piVar4 + 5;" (assignment_expression "piVar4 = piVar4 + 5" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 5" (identifier "piVar4") (+ "+") (number_literal "5"))) (; ";")) (expression_statement "uVar6 = uVar6 | *(uint *)(iVar3 + 4);" (assignment_expression "uVar6 = uVar6 | *(uint *)(iVar3 + 4)" (identifier "uVar6") (= "=") (binary_expression "uVar6 | *(uint *)(iVar3 + 4)" (identifier "uVar6") (| "|") (pointer_expression "*(uint *)(iVar3 + 4)" (* "*") (cast_expression "(uint *)(iVar3 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != iVar2)" (( "(") (binary_expression "iVar5 != iVar2" (identifier "iVar5") (!= "!=") (identifier "iVar2")) () ")")) (; ";")) (expression_statement "uVar6 = uVar6 & 0x200104;" (assignment_expression "uVar6 = uVar6 & 0x200104" (identifier "uVar6") (= "=") (binary_expression "uVar6 & 0x200104" (identifier "uVar6") (& "&") (number_literal "0x200104"))) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;" (assignment_expression "*(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 4) | uVar6" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (| "|") (identifier "uVar6"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    FUN_0002d430();\n  }" (else "else") (compound_statement "{\n    FUN_0002d430();\n  }" ({ "{") (expression_statement "FUN_0002d430();" (call_expression "FUN_0002d430()" (identifier "FUN_0002d430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "*(int *)(param_1 + 0x18) = local_14 + 1;" (assignment_expression "*(int *)(param_1 + 0x18) = local_14 + 1" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "local_14 + 1" (identifier "local_14") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_000f4bf0();\n  }" ({ "{") (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" (identifier "FUN_000f4bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *p)

{
  int var_2;
  type_2 *var_5;
  type_1 **ppEVar2;
  type_3 *var_8;
  int var_7;
  type_4 var_4;
  int var_1;
  int var_3;
  int var_10;
  
  var_10 = *(int *)(var_1 + 0x14);
  var_3 = 0;
  if ((p->pLeft != (type_1 *)0x0) && (var_2 = p->pLeft->var_3, 0 < var_2)) {
    var_3 = var_2;
  }
  if ((p->pRight == (type_1 *)0x0) || (var_2 = p->pRight->var_3, var_2 <= var_3)) {
    var_4 = p->flags;
    var_5 = (type_2 *)(p->x).pList;
  }
  else {
    var_4 = p->flags;
    var_5 = (type_2 *)(p->x).pList;
    var_3 = var_2;
  }
  if ((var_4 & 0x800) == 0) {
    if (var_5 != (type_2 *)0x0) {
      var_6((type_5 *)var_5,&var_3);
      var_2 = ((p->x).pList)->nExpr;
      var_4 = 0;
      if (0 < var_2) {
        var_8 = ((p->x).pList)->a;
        var_7 = 0;
        var_4 = 0;
        do {
          ppEVar2 = &var_8->pExpr;
          var_7 = var_7 + 1;
          var_8 = var_8 + 1;
          var_4 = var_4 | (*ppEVar2)->flags;
        } while (var_7 != var_2);
        var_4 = var_4 & 0x200104;
      }
      p->flags = p->flags | var_4;
    }
  }
  else {
    var_9(var_5,&var_3);
  }
  p->var_3 = var_3 + 1;
  if (var_10 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_11();
  }
  return;
}


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

void __regparm3 MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  uint uVar6;
  int in_GS_OFFSET;
  int local_14;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  local_14 = 0;
  if ((*(int *)(param_1 + 0xc) != 0) &&
     (iVar2 = *(int *)(*(int *)(param_1 + 0xc) + 0x18), 0 < iVar2)) {
    local_14 = iVar2;
  }
  if ((*(int *)(param_1 + 0x10) == 0) ||
     (iVar2 = *(int *)(*(int *)(param_1 + 0x10) + 0x18), iVar2 <= local_14)) {
    uVar6 = *(uint *)(param_1 + 4);
    iVar5 = *(int *)(param_1 + 0x14);
  }
  else {
    uVar6 = *(uint *)(param_1 + 4);
    iVar5 = *(int *)(param_1 + 0x14);
    local_14 = iVar2;
  }
  if ((uVar6 & 0x800) == 0) {
    if (iVar5 != 0) {
      FUN_0002d3f0();
      iVar2 = **(int **)(param_1 + 0x14);
      uVar6 = 0;
      if (0 < iVar2) {
        piVar4 = *(int **)(param_1 + 0x14) + 1;
        iVar5 = 0;
        uVar6 = 0;
        do {
          iVar3 = *piVar4;
          iVar5 = iVar5 + 1;
          piVar4 = piVar4 + 5;
          uVar6 = uVar6 | *(uint *)(iVar3 + 4);
        } while (iVar5 != iVar2);
        uVar6 = uVar6 & 0x200104;
      }
      *(uint *)(param_1 + 4) = *(uint *)(param_1 + 4) | uVar6;
    }
  }
  else {
    FUN_0002d430();
  }
  *(int *)(param_1 + 0x18) = local_14 + 1;
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f4bf0();
  }
  return;
}

