
int fts5ExprNodeTest_NOT(Fts5Expr *pExpr,Fts5ExprNode *pNode)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  Fts5ExprNode *p1;
  Fts5ExprNode *p2;
  
  p1 = pNode->apChild[0];
  p2 = *(Fts5ExprNode **)&pNode->field_0x24;
  if (p1->bEof == 0) {
    do {
      iVar1 = fts5NodeCompare(pExpr,p1,p2);
      if (iVar1 < 1) {
        iVar2 = 0;
      }
      else {
        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);
        iVar1 = fts5NodeCompare(pExpr,p1,p2);
      }
      if (((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0))
      goto LAB_000528c8;
      iVar1 = p1->bEof;
    } while (iVar1 == 0);
  }
  else {
    iVar2 = 0;
LAB_000528c8:
    iVar1 = p1->bEof;
  }
  pNode->bEof = iVar1;
  pNode->bNomatch = p1->bNomatch;
  uVar3 = *(undefined4 *)&p1->iRowid;
  *(int *)((int)&pNode->iRowid + 4) = (int)p1->iRowid;
  *(undefined4 *)&pNode->iRowid = uVar3;
  if (p1->bEof != 0) {
    fts5ExprNodeZeroPoslist(p2);
  }
  return iVar2;
}



int FUN_000527a4(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  
  iVar4 = *(int *)(param_2 + 0x20);
  iVar5 = *(int *)(param_2 + 0x24);
  if (*(int *)(iVar4 + 4) == 0) {
    do {
      iVar1 = FUN_00052574(param_1,iVar4,iVar5);
      if (iVar1 < 1) {
        iVar2 = 0;
      }
      else {
        iVar2 = (**(code **)(iVar5 + 0xc))
                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),
                           *(undefined4 *)(iVar4 + 0x14));
        iVar1 = FUN_00052574(param_1,iVar4,iVar5);
      }
      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||
         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))
      goto LAB_000528c8;
      iVar1 = *(int *)(iVar4 + 4);
    } while (iVar1 == 0);
  }
  else {
    iVar2 = 0;
LAB_000528c8:
    iVar1 = *(int *)(iVar4 + 4);
  }
  *(int *)(param_2 + 4) = iVar1;
  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);
  uVar3 = *(undefined4 *)(iVar4 + 0x10);
  *(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);
  *(undefined4 *)(param_2 + 0x10) = uVar3;
  if (*(int *)(iVar4 + 4) != 0) {
    FUN_00052498(iVar5);
  }
  return iVar2;
}


lui gp,0x14
addiu gp,gp,0x517c
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x3c(sp)
sw s6,0x38(sp)
sw s5,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x18(sp)
or s6,a1,zero
lw s0,0x20(a1)
lw s5,0x4(s0)
bne s5,zero,0x000528c4
_lw s1,0x24(a1)
or s2,a0,zero
lw s4,-0x7d64(gp)
b 0x00052850
_addiu s4,s4,0x2574
or s3,s5,zero
bne v0,zero,0x000528c8
_nop
lw v0,0x8(s1)
bne v0,zero,0x000528c8
_or v1,zero,zero
or v0,zero,zero
sw v1,0x14(sp)
sw v0,0x10(sp)
lw t9,0xc(s0)
or a2,zero,zero
or a1,s0,zero
or a0,s2,zero
jalr t9
_nop
lw gp,0x18(sp)
bne v0,zero,0x000528c8
_or s3,v0,zero
lw v0,0x4(s0)
bne v0,zero,0x000528cc
_nop
or a2,s1,zero
or a1,s0,zero
or a0,s2,zero
or t9,s4,zero
bal 0x00052574
_nop
lw gp,0x18(sp)
blez v0,0x000527fc
_li a2,0x1
lw v1,0x14(s0)
lw v0,0x10(s0)
sw v1,0x14(sp)
sw v0,0x10(sp)
lw t9,0xc(s1)
or a1,s1,zero
or a0,s2,zero
jalr t9
_nop
lw gp,0x18(sp)
or s3,v0,zero
or a2,s1,zero
or a1,s0,zero
or a0,s2,zero
or t9,s4,zero
bal 0x00052574
_nop
lw gp,0x18(sp)
b 0x00052800
_nop
or s3,zero,zero
lw v0,0x4(s0)
sw v0,0x4(s6)
lw v0,0x8(s0)
sw v0,0x8(s6)
lw v1,0x14(s0)
lw v0,0x10(s0)
sw v1,0x14(s6)
sw v0,0x10(s6)
lw v0,0x4(s0)
bne v0,zero,0x00052920
_or a0,s1,zero
or v0,s3,zero
lw ra,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x40
lw t9,-0x7d64(gp)
addiu t9,t9,0x2498
bal 0x00052498
_nop
lw gp,0x18(sp)
b 0x000528f8
_or v0,s3,zero
(translation_unit "int FUN_000527a4(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar4 = *(int *)(param_2 + 0x20);\n  iVar5 = *(int *)(param_2 + 0x24);\n  if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }\n  *(int *)(param_2 + 4) = iVar1;\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);\n  uVar3 = *(undefined4 *)(iVar4 + 0x10);\n  *(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);\n  *(undefined4 *)(param_2 + 0x10) = uVar3;\n  if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_000527a4(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar4 = *(int *)(param_2 + 0x20);\n  iVar5 = *(int *)(param_2 + 0x24);\n  if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }\n  *(int *)(param_2 + 4) = iVar1;\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);\n  uVar3 = *(undefined4 *)(iVar4 + 0x10);\n  *(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);\n  *(undefined4 *)(param_2 + 0x10) = uVar3;\n  if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000527a4(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar4 = *(int *)(param_2 + 0x20);\n  iVar5 = *(int *)(param_2 + 0x24);\n  if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }\n  *(int *)(param_2 + 4) = iVar1;\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);\n  uVar3 = *(undefined4 *)(iVar4 + 0x10);\n  *(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);\n  *(undefined4 *)(param_2 + 0x10) = uVar3;\n  if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar4 = *(int *)(param_2 + 0x20);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x20)" identifier = (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x24)" identifier = (pointer_expression "*(int *)(param_2 + 0x24)" * (cast_expression "(int *)(param_2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }" if (parenthesized_expression "(*(int *)(iVar4 + 4) == 0)" ( (binary_expression "*(int *)(iVar4 + 4) == 0" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }" { (do_statement "do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);" do (compound_statement "{\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    }" { (expression_statement "iVar1 = FUN_00052574(param_1,iVar4,iVar5);" (assignment_expression "iVar1 = FUN_00052574(param_1,iVar4,iVar5)" identifier = (call_expression "FUN_00052574(param_1,iVar4,iVar5)" identifier (argument_list "(param_1,iVar4,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n        iVar2 = 0;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }" else (compound_statement "{\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }" { (expression_statement "iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));" (assignment_expression "iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14))" identifier = (call_expression "(**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14))" (parenthesized_expression "(**(code **)(iVar5 + 0xc))" ( (pointer_expression "**(code **)(iVar5 + 0xc)" * (pointer_expression "*(code **)(iVar5 + 0xc)" * (cast_expression "(code **)(iVar5 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) ))))) )) (argument_list "(param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14))" ( identifier , identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(iVar4 + 0x10)" * (cast_expression "(undefined4 *)(iVar4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" * (cast_expression "(undefined4 *)(iVar4 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) )))) ;) (expression_statement "iVar1 = FUN_00052574(param_1,iVar4,iVar5);" (assignment_expression "iVar1 = FUN_00052574(param_1,iVar4,iVar5)" identifier = (call_expression "FUN_00052574(param_1,iVar4,iVar5)" identifier (argument_list "(param_1,iVar4,iVar5)" ( identifier , identifier , identifier )))) ;) }))) (if_statement "if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;" if (parenthesized_expression "(((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))" ( (binary_expression "((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0)" (parenthesized_expression "((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0))" ( (binary_expression "(iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(*(int *)(iVar5 + 8) != 0)" ( (binary_expression "*(int *)(iVar5 + 8) != 0" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) != number_literal) ))) )) || (parenthesized_expression "(iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0)" ( (comma_expression "iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0" (assignment_expression "iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0)" identifier = (call_expression "(**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0)" (parenthesized_expression "(**(code **)(iVar4 + 0xc))" ( (pointer_expression "**(code **)(iVar4 + 0xc)" * (pointer_expression "*(code **)(iVar4 + 0xc)" * (cast_expression "(code **)(iVar4 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) ))))) )) (argument_list "(param_1,iVar4,0,param_4,0,0)" ( identifier , identifier , number_literal , identifier , number_literal , number_literal )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000528c8;" goto statement_identifier ;)) (expression_statement "iVar1 = *(int *)(iVar4 + 4);" (assignment_expression "iVar1 = *(int *)(iVar4 + 4)" identifier = (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;) }) (else_clause "else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }" else (compound_statement "{\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);" statement_identifier : (expression_statement "iVar1 = *(int *)(iVar4 + 4);" (assignment_expression "iVar1 = *(int *)(iVar4 + 4)" identifier = (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;)) }))) (expression_statement "*(int *)(param_2 + 4) = iVar1;" (assignment_expression "*(int *)(param_2 + 4) = iVar1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);" (assignment_expression "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8)" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar4 + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(iVar4 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 0x10)" * (cast_expression "(undefined4 *)(iVar4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14)" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" * (cast_expression "(undefined4 *)(iVar4 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x10) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x10) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }" if (parenthesized_expression "(*(int *)(iVar4 + 4) != 0)" ( (binary_expression "*(int *)(iVar4 + 4) != 0" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00052498(iVar5);\n  }" { (expression_statement "FUN_00052498(iVar5);" (call_expression "FUN_00052498(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int fts5ExprNodeTest_NOT(Fts5Expr *pExpr,Fts5ExprNode *pNode)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  Fts5ExprNode *p1;\n  Fts5ExprNode *p2;\n  \n  p1 = pNode->apChild[0];\n  p2 = *(Fts5ExprNode **)&pNode->field_0x24;\n  if (p1->bEof == 0) {\n    do {\n      iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);\n        iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      }\n      if (((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = p1->bEof;\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = p1->bEof;\n  }\n  pNode->bEof = iVar1;\n  pNode->bNomatch = p1->bNomatch;\n  uVar3 = *(undefined4 *)&p1->iRowid;\n  *(int *)((int)&pNode->iRowid + 4) = (int)p1->iRowid;\n  *(undefined4 *)&pNode->iRowid = uVar3;\n  if (p1->bEof != 0) {\n    fts5ExprNodeZeroPoslist(p2);\n  }\n  return iVar2;\n}\n\n" (function_definition "int fts5ExprNodeTest_NOT(Fts5Expr *pExpr,Fts5ExprNode *pNode)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  Fts5ExprNode *p1;\n  Fts5ExprNode *p2;\n  \n  p1 = pNode->apChild[0];\n  p2 = *(Fts5ExprNode **)&pNode->field_0x24;\n  if (p1->bEof == 0) {\n    do {\n      iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);\n        iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      }\n      if (((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = p1->bEof;\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = p1->bEof;\n  }\n  pNode->bEof = iVar1;\n  pNode->bNomatch = p1->bNomatch;\n  uVar3 = *(undefined4 *)&p1->iRowid;\n  *(int *)((int)&pNode->iRowid + 4) = (int)p1->iRowid;\n  *(undefined4 *)&pNode->iRowid = uVar3;\n  if (p1->bEof != 0) {\n    fts5ExprNodeZeroPoslist(p2);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "fts5ExprNodeTest_NOT(Fts5Expr *pExpr,Fts5ExprNode *pNode)" identifier (parameter_list "(Fts5Expr *pExpr,Fts5ExprNode *pNode)" ( (parameter_declaration "Fts5Expr *pExpr" type_identifier (pointer_declarator "*pExpr" * identifier)) , (parameter_declaration "Fts5ExprNode *pNode" type_identifier (pointer_declarator "*pNode" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  Fts5ExprNode *p1;\n  Fts5ExprNode *p2;\n  \n  p1 = pNode->apChild[0];\n  p2 = *(Fts5ExprNode **)&pNode->field_0x24;\n  if (p1->bEof == 0) {\n    do {\n      iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);\n        iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      }\n      if (((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = p1->bEof;\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = p1->bEof;\n  }\n  pNode->bEof = iVar1;\n  pNode->bNomatch = p1->bNomatch;\n  uVar3 = *(undefined4 *)&p1->iRowid;\n  *(int *)((int)&pNode->iRowid + 4) = (int)p1->iRowid;\n  *(undefined4 *)&pNode->iRowid = uVar3;\n  if (p1->bEof != 0) {\n    fts5ExprNodeZeroPoslist(p2);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "Fts5ExprNode *p1;" type_identifier (pointer_declarator "*p1" * identifier) ;) (declaration "Fts5ExprNode *p2;" type_identifier (pointer_declarator "*p2" * identifier) ;) (expression_statement "p1 = pNode->apChild[0];" (assignment_expression "p1 = pNode->apChild[0]" identifier = (subscript_expression "pNode->apChild[0]" (field_expression "pNode->apChild" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "p2 = *(Fts5ExprNode **)&pNode->field_0x24;" (assignment_expression "p2 = *(Fts5ExprNode **)&pNode->field_0x24" identifier = (pointer_expression "*(Fts5ExprNode **)&pNode->field_0x24" * (cast_expression "(Fts5ExprNode **)&pNode->field_0x24" ( (type_descriptor "Fts5ExprNode **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&pNode->field_0x24" & (field_expression "pNode->field_0x24" identifier -> field_identifier))))) ;) (if_statement "if (p1->bEof == 0) {\n    do {\n      iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);\n        iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      }\n      if (((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = p1->bEof;\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = p1->bEof;\n  }" if (parenthesized_expression "(p1->bEof == 0)" ( (binary_expression "p1->bEof == 0" (field_expression "p1->bEof" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    do {\n      iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);\n        iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      }\n      if (((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = p1->bEof;\n    } while (iVar1 == 0);\n  }" { (do_statement "do {\n      iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);\n        iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      }\n      if (((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = p1->bEof;\n    } while (iVar1 == 0);" do (compound_statement "{\n      iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);\n        iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      }\n      if (((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = p1->bEof;\n    }" { (expression_statement "iVar1 = fts5NodeCompare(pExpr,p1,p2);" (assignment_expression "iVar1 = fts5NodeCompare(pExpr,p1,p2)" identifier = (call_expression "fts5NodeCompare(pExpr,p1,p2)" identifier (argument_list "(pExpr,p1,p2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);\n        iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n        iVar2 = 0;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);\n        iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      }" else (compound_statement "{\n        iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);\n        iVar1 = fts5NodeCompare(pExpr,p1,p2);\n      }" { (expression_statement "iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);" (assignment_expression "iVar2 = (*p2->xNext)(pExpr,p2,1,p1->iRowid)" identifier = (call_expression "(*p2->xNext)(pExpr,p2,1,p1->iRowid)" (parenthesized_expression "(*p2->xNext)" ( (pointer_expression "*p2->xNext" * (field_expression "p2->xNext" identifier -> field_identifier)) )) (argument_list "(pExpr,p2,1,p1->iRowid)" ( identifier , identifier , number_literal , (field_expression "p1->iRowid" identifier -> field_identifier) )))) ;) (expression_statement "iVar1 = fts5NodeCompare(pExpr,p1,p2);" (assignment_expression "iVar1 = fts5NodeCompare(pExpr,p1,p2)" identifier = (call_expression "fts5NodeCompare(pExpr,p1,p2)" identifier (argument_list "(pExpr,p1,p2)" ( identifier , identifier , identifier )))) ;) }))) (if_statement "if (((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0))\n      goto LAB_000528c8;" if (parenthesized_expression "(((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0))" ( (binary_expression "((iVar1 != 0) || (p2->bNomatch != 0)) || (iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0)" (parenthesized_expression "((iVar1 != 0) || (p2->bNomatch != 0))" ( (binary_expression "(iVar1 != 0) || (p2->bNomatch != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(p2->bNomatch != 0)" ( (binary_expression "p2->bNomatch != 0" (field_expression "p2->bNomatch" identifier -> field_identifier) != number_literal) ))) )) || (parenthesized_expression "(iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0)" ( (comma_expression "iVar2 = (*p1->xNext)(pExpr,p1,0,0), iVar2 != 0" (assignment_expression "iVar2 = (*p1->xNext)(pExpr,p1,0,0)" identifier = (call_expression "(*p1->xNext)(pExpr,p1,0,0)" (parenthesized_expression "(*p1->xNext)" ( (pointer_expression "*p1->xNext" * (field_expression "p1->xNext" identifier -> field_identifier)) )) (argument_list "(pExpr,p1,0,0)" ( identifier , identifier , number_literal , number_literal )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000528c8;" goto statement_identifier ;)) (expression_statement "iVar1 = p1->bEof;" (assignment_expression "iVar1 = p1->bEof" identifier = (field_expression "p1->bEof" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;) }) (else_clause "else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = p1->bEof;\n  }" else (compound_statement "{\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = p1->bEof;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000528c8:\n    iVar1 = p1->bEof;" statement_identifier : (expression_statement "iVar1 = p1->bEof;" (assignment_expression "iVar1 = p1->bEof" identifier = (field_expression "p1->bEof" identifier -> field_identifier)) ;)) }))) (expression_statement "pNode->bEof = iVar1;" (assignment_expression "pNode->bEof = iVar1" (field_expression "pNode->bEof" identifier -> field_identifier) = identifier) ;) (expression_statement "pNode->bNomatch = p1->bNomatch;" (assignment_expression "pNode->bNomatch = p1->bNomatch" (field_expression "pNode->bNomatch" identifier -> field_identifier) = (field_expression "p1->bNomatch" identifier -> field_identifier)) ;) (expression_statement "uVar3 = *(undefined4 *)&p1->iRowid;" (assignment_expression "uVar3 = *(undefined4 *)&p1->iRowid" identifier = (pointer_expression "*(undefined4 *)&p1->iRowid" * (cast_expression "(undefined4 *)&p1->iRowid" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p1->iRowid" & (field_expression "p1->iRowid" identifier -> field_identifier))))) ;) (expression_statement "*(int *)((int)&pNode->iRowid + 4) = (int)p1->iRowid;" (assignment_expression "*(int *)((int)&pNode->iRowid + 4) = (int)p1->iRowid" (pointer_expression "*(int *)((int)&pNode->iRowid + 4)" * (cast_expression "(int *)((int)&pNode->iRowid + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pNode->iRowid + 4)" ( (binary_expression "(int)&pNode->iRowid + 4" (cast_expression "(int)&pNode->iRowid" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pNode->iRowid" & (field_expression "pNode->iRowid" identifier -> field_identifier))) + number_literal) )))) = (cast_expression "(int)p1->iRowid" ( (type_descriptor "int" primitive_type) ) (field_expression "p1->iRowid" identifier -> field_identifier))) ;) (expression_statement "*(undefined4 *)&pNode->iRowid = uVar3;" (assignment_expression "*(undefined4 *)&pNode->iRowid = uVar3" (pointer_expression "*(undefined4 *)&pNode->iRowid" * (cast_expression "(undefined4 *)&pNode->iRowid" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pNode->iRowid" & (field_expression "pNode->iRowid" identifier -> field_identifier)))) = identifier) ;) (if_statement "if (p1->bEof != 0) {\n    fts5ExprNodeZeroPoslist(p2);\n  }" if (parenthesized_expression "(p1->bEof != 0)" ( (binary_expression "p1->bEof != 0" (field_expression "p1->bEof" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    fts5ExprNodeZeroPoslist(p2);\n  }" { (expression_statement "fts5ExprNodeZeroPoslist(p2);" (call_expression "fts5ExprNodeZeroPoslist(p2)" identifier (argument_list "(p2)" ( identifier ))) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int FUN_000527a4(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar4 = *(int *)(param_2 + 0x20);\n  iVar5 = *(int *)(param_2 + 0x24);\n  if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }\n  *(int *)(param_2 + 4) = iVar1;\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);\n  uVar3 = *(undefined4 *)(iVar4 + 0x10);\n  *(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);\n  *(undefined4 *)(param_2 + 0x10) = uVar3;\n  if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_000527a4(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar4 = *(int *)(param_2 + 0x20);\n  iVar5 = *(int *)(param_2 + 0x24);\n  if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }\n  *(int *)(param_2 + 4) = iVar1;\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);\n  uVar3 = *(undefined4 *)(iVar4 + 0x10);\n  *(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);\n  *(undefined4 *)(param_2 + 0x10) = uVar3;\n  if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000527a4(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar4 = *(int *)(param_2 + 0x20);\n  iVar5 = *(int *)(param_2 + 0x24);\n  if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }\n  *(int *)(param_2 + 4) = iVar1;\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);\n  uVar3 = *(undefined4 *)(iVar4 + 0x10);\n  *(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);\n  *(undefined4 *)(param_2 + 0x10) = uVar3;\n  if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar4 = *(int *)(param_2 + 0x20);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x20)" identifier = (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x24)" identifier = (pointer_expression "*(int *)(param_2 + 0x24)" * (cast_expression "(int *)(param_2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }" if (parenthesized_expression "(*(int *)(iVar4 + 4) == 0)" ( (binary_expression "*(int *)(iVar4 + 4) == 0" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }" { (do_statement "do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);" do (compound_statement "{\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    }" { (expression_statement "iVar1 = FUN_00052574(param_1,iVar4,iVar5);" (assignment_expression "iVar1 = FUN_00052574(param_1,iVar4,iVar5)" identifier = (call_expression "FUN_00052574(param_1,iVar4,iVar5)" identifier (argument_list "(param_1,iVar4,iVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n        iVar2 = 0;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }" else (compound_statement "{\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }" { (expression_statement "iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));" (assignment_expression "iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14))" identifier = (call_expression "(**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14))" (parenthesized_expression "(**(code **)(iVar5 + 0xc))" ( (pointer_expression "**(code **)(iVar5 + 0xc)" * (pointer_expression "*(code **)(iVar5 + 0xc)" * (cast_expression "(code **)(iVar5 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) ))))) )) (argument_list "(param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14))" ( identifier , identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(iVar4 + 0x10)" * (cast_expression "(undefined4 *)(iVar4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" * (cast_expression "(undefined4 *)(iVar4 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) )))) )))) ;) (expression_statement "iVar1 = FUN_00052574(param_1,iVar4,iVar5);" (assignment_expression "iVar1 = FUN_00052574(param_1,iVar4,iVar5)" identifier = (call_expression "FUN_00052574(param_1,iVar4,iVar5)" identifier (argument_list "(param_1,iVar4,iVar5)" ( identifier , identifier , identifier )))) ;) }))) (if_statement "if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;" if (parenthesized_expression "(((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))" ( (binary_expression "((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0)" (parenthesized_expression "((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0))" ( (binary_expression "(iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(*(int *)(iVar5 + 8) != 0)" ( (binary_expression "*(int *)(iVar5 + 8) != 0" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) != number_literal) ))) )) || (parenthesized_expression "(iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0)" ( (comma_expression "iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0" (assignment_expression "iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0)" identifier = (call_expression "(**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0)" (parenthesized_expression "(**(code **)(iVar4 + 0xc))" ( (pointer_expression "**(code **)(iVar4 + 0xc)" * (pointer_expression "*(code **)(iVar4 + 0xc)" * (cast_expression "(code **)(iVar4 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) ))))) )) (argument_list "(param_1,iVar4,0,param_4,0,0)" ( identifier , identifier , number_literal , identifier , number_literal , number_literal )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000528c8;" goto statement_identifier ;)) (expression_statement "iVar1 = *(int *)(iVar4 + 4);" (assignment_expression "iVar1 = *(int *)(iVar4 + 4)" identifier = (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;) }) (else_clause "else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }" else (compound_statement "{\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);" statement_identifier : (expression_statement "iVar1 = *(int *)(iVar4 + 4);" (assignment_expression "iVar1 = *(int *)(iVar4 + 4)" identifier = (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;)) }))) (expression_statement "*(int *)(param_2 + 4) = iVar1;" (assignment_expression "*(int *)(param_2 + 4) = iVar1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);" (assignment_expression "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8)" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar4 + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(iVar4 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 0x10)" * (cast_expression "(undefined4 *)(iVar4 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14)" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" * (cast_expression "(undefined4 *)(iVar4 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x10) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x10) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }" if (parenthesized_expression "(*(int *)(iVar4 + 4) != 0)" ( (binary_expression "*(int *)(iVar4 + 4) != 0" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00052498(iVar5);\n  }" { (expression_statement "FUN_00052498(iVar5);" (call_expression "FUN_00052498(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (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 = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT , IDENT , LIT , LIT )))) , (binary_expression IDENT != LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000527a4(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar4 = *(int *)(param_2 + 0x20);\n  iVar5 = *(int *)(param_2 + 0x24);\n  if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }\n  *(int *)(param_2 + 4) = iVar1;\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);\n  uVar3 = *(undefined4 *)(iVar4 + 0x10);\n  *(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);\n  *(undefined4 *)(param_2 + 0x10) = uVar3;\n  if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_000527a4(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_000527a4") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar4 = *(int *)(param_2 + 0x20);\n  iVar5 = *(int *)(param_2 + 0x24);\n  if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }\n  *(int *)(param_2 + 4) = iVar1;\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);\n  uVar3 = *(undefined4 *)(iVar4 + 0x10);\n  *(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);\n  *(undefined4 *)(param_2 + 0x10) = uVar3;\n  if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar4 = *(int *)(param_2 + 0x20);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x20)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "iVar5 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x24)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_2 + 0x24)" (* "*") (cast_expression "(int *)(param_2 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar4 + 4) == 0) {\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }\n  else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 4) == 0)" (( "(") (binary_expression "*(int *)(iVar4 + 4) == 0" (pointer_expression "*(int *)(iVar4 + 4)" (* "*") (cast_expression "(int *)(iVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);\n  }" ({ "{") (do_statement "do {\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    } while (iVar1 == 0);" (do "do") (compound_statement "{\n      iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }\n      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;\n      iVar1 = *(int *)(iVar4 + 4);\n    }" ({ "{") (expression_statement "iVar1 = FUN_00052574(param_1,iVar4,iVar5);" (assignment_expression "iVar1 = FUN_00052574(param_1,iVar4,iVar5)" (identifier "iVar1") (= "=") (call_expression "FUN_00052574(param_1,iVar4,iVar5)" (identifier "FUN_00052574") (argument_list "(param_1,iVar4,iVar5)" (( "(") (identifier "param_1") (, ",") (identifier "iVar4") (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (iVar1 < 1) {\n        iVar2 = 0;\n      }\n      else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        iVar2 = 0;\n      }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }" (else "else") (compound_statement "{\n        iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));\n        iVar1 = FUN_00052574(param_1,iVar4,iVar5);\n      }" ({ "{") (expression_statement "iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14));" (assignment_expression "iVar2 = (**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14))" (identifier "iVar2") (= "=") (call_expression "(**(code **)(iVar5 + 0xc))\n                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14))" (parenthesized_expression "(**(code **)(iVar5 + 0xc))" (( "(") (pointer_expression "**(code **)(iVar5 + 0xc)" (* "*") (pointer_expression "*(code **)(iVar5 + 0xc)" (* "*") (cast_expression "(code **)(iVar5 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 0xc)" (( "(") (binary_expression "iVar5 + 0xc" (identifier "iVar5") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),\n                           *(undefined4 *)(iVar4 + 0x14))" (( "(") (identifier "param_1") (, ",") (identifier "iVar5") (, ",") (number_literal "1") (, ",") (identifier "param_4") (, ",") (pointer_expression "*(undefined4 *)(iVar4 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar1 = FUN_00052574(param_1,iVar4,iVar5);" (assignment_expression "iVar1 = FUN_00052574(param_1,iVar4,iVar5)" (identifier "iVar1") (= "=") (call_expression "FUN_00052574(param_1,iVar4,iVar5)" (identifier "FUN_00052574") (argument_list "(param_1,iVar4,iVar5)" (( "(") (identifier "param_1") (, ",") (identifier "iVar4") (, ",") (identifier "iVar5") () ")")))) (; ";")) (} "}")))) (if_statement "if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))\n      goto LAB_000528c8;" (if "if") (parenthesized_expression "(((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))" (( "(") (binary_expression "((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||\n         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0)" (parenthesized_expression "((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0))" (( "(") (binary_expression "(iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(iVar5 + 8) != 0)" (( "(") (binary_expression "*(int *)(iVar5 + 8) != 0" (pointer_expression "*(int *)(iVar5 + 8)" (* "*") (cast_expression "(int *)(iVar5 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0)" (( "(") (comma_expression "iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0" (assignment_expression "iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0)" (parenthesized_expression "(**(code **)(iVar4 + 0xc))" (( "(") (pointer_expression "**(code **)(iVar4 + 0xc)" (* "*") (pointer_expression "*(code **)(iVar4 + 0xc)" (* "*") (cast_expression "(code **)(iVar4 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(param_1,iVar4,0,param_4,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar4") (, ",") (number_literal "0") (, ",") (identifier "param_4") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_000528c8;" (goto "goto") (statement_identifier "LAB_000528c8") (; ";"))) (expression_statement "iVar1 = *(int *)(iVar4 + 4);" (assignment_expression "iVar1 = *(int *)(iVar4 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar4 + 4)" (* "*") (cast_expression "(int *)(iVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }" (else "else") (compound_statement "{\n    iVar2 = 0;\nLAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000528c8:\n    iVar1 = *(int *)(iVar4 + 4);" (statement_identifier "LAB_000528c8") (: ":") (expression_statement "iVar1 = *(int *)(iVar4 + 4);" (assignment_expression "iVar1 = *(int *)(iVar4 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar4 + 4)" (* "*") (cast_expression "(int *)(iVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")"))))) (; ";"))) (} "}")))) (expression_statement "*(int *)(param_2 + 4) = iVar1;" (assignment_expression "*(int *)(param_2 + 4) = iVar1" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);" (assignment_expression "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8)" (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar4 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(iVar4 + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(iVar4 + 0x10)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(iVar4 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14)" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar4 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x10) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x10) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (*(int *)(iVar4 + 4) != 0) {\n    FUN_00052498(iVar5);\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 4) != 0)" (( "(") (binary_expression "*(int *)(iVar4 + 4) != 0" (pointer_expression "*(int *)(iVar4 + 4)" (* "*") (cast_expression "(int *)(iVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00052498(iVar5);\n  }" ({ "{") (expression_statement "FUN_00052498(iVar5);" (call_expression "FUN_00052498(iVar5)" (identifier "FUN_00052498") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))) (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

int function_1(type_1 *pExpr,type_2 *pNode)

{
  int var_2;
  int var_3;
  type_3 uVar3;
  type_2 *p1;
  type_2 *p2;
  
  p1 = pNode->apChild[0];
  p2 = *(type_2 **)&pNode->field_0x24;
  if (p1->bEof == 0) {
    do {
      var_2 = var_1(pExpr,p1,p2);
      if (var_2 < 1) {
        var_3 = 0;
      }
      else {
        var_3 = (*p2->xNext)(pExpr,p2,1,p1->iRowid);
        var_2 = var_1(pExpr,p1,p2);
      }
      if (((var_2 != 0) || (p2->bNomatch != 0)) || (var_3 = (*p1->xNext)(pExpr,p1,0,0), var_3 != 0))
      goto LAB_000528c8;
      var_2 = p1->bEof;
    } while (var_2 == 0);
  }
  else {
    var_3 = 0;
LAB_000528c8:
    var_2 = p1->bEof;
  }
  pNode->bEof = var_2;
  pNode->bNomatch = p1->bNomatch;
  uVar3 = *(type_3 *)&p1->iRowid;
  *(int *)((int)&pNode->iRowid + 4) = (int)p1->iRowid;
  *(type_3 *)&pNode->iRowid = uVar3;
  if (p1->bEof != 0) {
    var_4(p2);
  }
  return var_3;
}


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

int MASKED(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  
  iVar4 = *(int *)(param_2 + 0x20);
  iVar5 = *(int *)(param_2 + 0x24);
  if (*(int *)(iVar4 + 4) == 0) {
    do {
      iVar1 = FUN_00052574(param_1,iVar4,iVar5);
      if (iVar1 < 1) {
        iVar2 = 0;
      }
      else {
        iVar2 = (**(code **)(iVar5 + 0xc))
                          (param_1,iVar5,1,param_4,*(undefined4 *)(iVar4 + 0x10),
                           *(undefined4 *)(iVar4 + 0x14));
        iVar1 = FUN_00052574(param_1,iVar4,iVar5);
      }
      if (((iVar1 != 0) || (*(int *)(iVar5 + 8) != 0)) ||
         (iVar2 = (**(code **)(iVar4 + 0xc))(param_1,iVar4,0,param_4,0,0), iVar2 != 0))
      goto LAB_000528c8;
      iVar1 = *(int *)(iVar4 + 4);
    } while (iVar1 == 0);
  }
  else {
    iVar2 = 0;
LAB_000528c8:
    iVar1 = *(int *)(iVar4 + 4);
  }
  *(int *)(param_2 + 4) = iVar1;
  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(iVar4 + 8);
  uVar3 = *(undefined4 *)(iVar4 + 0x10);
  *(undefined4 *)(param_2 + 0x14) = *(undefined4 *)(iVar4 + 0x14);
  *(undefined4 *)(param_2 + 0x10) = uVar3;
  if (*(int *)(iVar4 + 4) != 0) {
    FUN_00052498(iVar5);
  }
  return iVar2;
}

