
void sqlite3AddCheckConstraint(Parse *pParse,Expr *pCheckExpr)

{
  sqlite3 *db;
  ExprList *pList;
  uint uVar1;
  Table *pTVar2;
  
  db = pParse->db;
  pTVar2 = pParse->pNewTable;
  if (((pTVar2 == (Table *)0x0) || (pParse->eParseMode == '\x01')) ||
     (((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1) != 0)) {
    if (pCheckExpr != (Expr *)0x0) {
      sqlite3ExprDeleteNN(db,pCheckExpr);
      return;
    }
  }
  else {
    pList = sqlite3ExprListAppend((Parse *)db,pTVar2->pCheck,pCheckExpr);
    uVar1 = (pParse->constraintName).n;
    pTVar2->pCheck = pList;
    if ((uVar1 != 0) && (pList != (ExprList *)0x0)) {
      sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1);
      return;
    }
  }
  return;
}



void FUN_00055c68(int *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar1 = *param_1;
  iVar3 = param_1[0x3a];
  if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||
     ((*(ushort *)
        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +
        0x18) & 1) != 0)) {
    if (param_2 == 0) {
      return;
    }
    FUN_00053940(iVar1);
    return;
  }
  iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);
  iVar2 = param_1[0x13];
  *(int *)(iVar3 + 0x18) = iVar1;
  if (iVar2 == 0) {
    return;
  }
  if (iVar1 == 0) {
    return;
  }
  FUN_00039614(param_1,iVar1,param_1 + 0x12,1);
  return;
}


lui gp,0xa
addiu gp,gp,0x7638
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,0x0(a0)
sw s1,0x20(sp)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s0,0x1c(sp)
lw s1,0xe8(a0)
beq s1,zero,0x00055ccc
_li v1,0x1
lbu a2,0xcc(a0)
beq a2,v1,0x00055ccc
_nop
lbu a2,0xa4(v0)
lw v1,0x10(v0)
sll a2,a2,0x4
addu v1,v1,a2
lw v1,0x4(v1)
lw v1,0x4(v1)
lhu v1,0x18(v1)
andi v1,v1,0x1
beq v1,zero,0x00055cf0
_lw t9,-0x7f94(gp)
beq a1,zero,0x00055d20
_lw t9,-0x7f94(gp)
or a0,v0,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
addiu t9,t9,0x3940
b 0x00053940
_addiu sp,sp,0x28
or a2,a1,zero
lw a1,0x18(s1)
or s0,a0,zero
addiu t9,t9,0x59e4
bal 0x000559e4
_or a0,v0,zero
lw v1,0x4c(s0)
lw gp,0x10(sp)
beq v1,zero,0x00055d20
_sw v0,0x18(s1)
bne v0,zero,0x00055d34
_lw t9,-0x7fb8(gp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
addiu a2,s0,0x48
lw ra,0x24(sp)
or a0,s0,zero
lw s1,0x20(sp)
li a3,0x1
lw s0,0x1c(sp)
addiu t9,t9,-0x69ec
addiu sp,sp,0x28
b 0x00039614
_or a1,v0,zero
(translation_unit "void FUN_00055c68(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_1;\n  iVar3 = param_1[0x3a];\n  if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }\n  iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);\n  iVar2 = param_1[0x13];\n  *(int *)(iVar3 + 0x18) = iVar1;\n  if (iVar2 == 0) {\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n  FUN_00039614(param_1,iVar1,param_1 + 0x12,1);\n  return;\n}\n\n" (function_definition "void FUN_00055c68(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_1;\n  iVar3 = param_1[0x3a];\n  if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }\n  iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);\n  iVar2 = param_1[0x13];\n  *(int *)(iVar3 + 0x18) = iVar1;\n  if (iVar2 == 0) {\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n  FUN_00039614(param_1,iVar1,param_1 + 0x12,1);\n  return;\n}" primitive_type (function_declarator "FUN_00055c68(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_1;\n  iVar3 = param_1[0x3a];\n  if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }\n  iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);\n  iVar2 = param_1[0x13];\n  *(int *)(iVar3 + 0x18) = iVar1;\n  if (iVar2 == 0) {\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n  FUN_00039614(param_1,iVar1,param_1 + 0x12,1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar3 = param_1[0x3a];" (assignment_expression "iVar3 = param_1[0x3a]" identifier = (subscript_expression "param_1[0x3a]" identifier [ number_literal ])) ;) (if_statement "if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }" if (parenthesized_expression "(((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0))" ( (binary_expression "((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)" (parenthesized_expression "((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01'))" ( (binary_expression "(iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(char *)(param_1 + 0x33) == '\x01')" ( (binary_expression "*(char *)(param_1 + 0x33) == '\x01'" (pointer_expression "*(char *)(param_1 + 0x33)" * (cast_expression "(char *)(param_1 + 0x33)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x33)" ( (binary_expression "param_1 + 0x33" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) ))) )) || (parenthesized_expression "((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)" ( (binary_expression "(*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0" (parenthesized_expression "(*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1)" ( (binary_expression "*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1" (pointer_expression "*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18)" * (cast_expression "(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18)" ( (binary_expression "*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18" (pointer_expression "*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4)" * (cast_expression "(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4)" ( (binary_expression "*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4" (pointer_expression "*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4)" * (cast_expression "(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4)" ( (binary_expression "*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4" (binary_expression "*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) + (binary_expression "(uint)*(byte *)(iVar1 + 0xa4) * 0x10" (binary_expression "(uint)*(byte *)(iVar1 + 0xa4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar1 + 0xa4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa4)" ( (binary_expression "iVar1 + 0xa4" identifier + number_literal) )))) * number_literal)) + number_literal) )))) + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }" { (if_statement "if (param_2 == 0) {\n      return;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00053940(iVar1);" (call_expression "FUN_00053940(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);" (assignment_expression "iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2)" identifier = (call_expression "FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2)" identifier (argument_list "(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2)" ( identifier , (pointer_expression "*(undefined4 *)(iVar3 + 0x18)" * (cast_expression "(undefined4 *)(iVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "iVar2 = param_1[0x13];" (assignment_expression "iVar2 = param_1[0x13]" identifier = (subscript_expression "param_1[0x13]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(iVar3 + 0x18) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x18) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00039614(param_1,iVar1,param_1 + 0x12,1);" (call_expression "FUN_00039614(param_1,iVar1,param_1 + 0x12,1)" identifier (argument_list "(param_1,iVar1,param_1 + 0x12,1)" ( identifier , identifier , (binary_expression "param_1 + 0x12" identifier + number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3AddCheckConstraint(Parse *pParse,Expr *pCheckExpr)\n\n{\n  sqlite3 *db;\n  ExprList *pList;\n  uint uVar1;\n  Table *pTVar2;\n  \n  db = pParse->db;\n  pTVar2 = pParse->pNewTable;\n  if (((pTVar2 == (Table *)0x0) || (pParse->eParseMode == '\x01')) ||\n     (((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1) != 0)) {\n    if (pCheckExpr != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pCheckExpr);\n      return;\n    }\n  }\n  else {\n    pList = sqlite3ExprListAppend((Parse *)db,pTVar2->pCheck,pCheckExpr);\n    uVar1 = (pParse->constraintName).n;\n    pTVar2->pCheck = pList;\n    if ((uVar1 != 0) && (pList != (ExprList *)0x0)) {\n      sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void sqlite3AddCheckConstraint(Parse *pParse,Expr *pCheckExpr)\n\n{\n  sqlite3 *db;\n  ExprList *pList;\n  uint uVar1;\n  Table *pTVar2;\n  \n  db = pParse->db;\n  pTVar2 = pParse->pNewTable;\n  if (((pTVar2 == (Table *)0x0) || (pParse->eParseMode == '\x01')) ||\n     (((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1) != 0)) {\n    if (pCheckExpr != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pCheckExpr);\n      return;\n    }\n  }\n  else {\n    pList = sqlite3ExprListAppend((Parse *)db,pTVar2->pCheck,pCheckExpr);\n    uVar1 = (pParse->constraintName).n;\n    pTVar2->pCheck = pList;\n    if ((uVar1 != 0) && (pList != (ExprList *)0x0)) {\n      sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "sqlite3AddCheckConstraint(Parse *pParse,Expr *pCheckExpr)" identifier (parameter_list "(Parse *pParse,Expr *pCheckExpr)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Expr *pCheckExpr" type_identifier (pointer_declarator "*pCheckExpr" * identifier)) ))) (compound_statement "{\n  sqlite3 *db;\n  ExprList *pList;\n  uint uVar1;\n  Table *pTVar2;\n  \n  db = pParse->db;\n  pTVar2 = pParse->pNewTable;\n  if (((pTVar2 == (Table *)0x0) || (pParse->eParseMode == '\x01')) ||\n     (((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1) != 0)) {\n    if (pCheckExpr != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pCheckExpr);\n      return;\n    }\n  }\n  else {\n    pList = sqlite3ExprListAppend((Parse *)db,pTVar2->pCheck,pCheckExpr);\n    uVar1 = (pParse->constraintName).n;\n    pTVar2->pCheck = pList;\n    if ((uVar1 != 0) && (pList != (ExprList *)0x0)) {\n      sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1);\n      return;\n    }\n  }\n  return;\n}" { (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "ExprList *pList;" type_identifier (pointer_declarator "*pList" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "Table *pTVar2;" type_identifier (pointer_declarator "*pTVar2" * identifier) ;) (expression_statement "db = pParse->db;" (assignment_expression "db = pParse->db" identifier = (field_expression "pParse->db" identifier -> field_identifier)) ;) (expression_statement "pTVar2 = pParse->pNewTable;" (assignment_expression "pTVar2 = pParse->pNewTable" identifier = (field_expression "pParse->pNewTable" identifier -> field_identifier)) ;) (if_statement "if (((pTVar2 == (Table *)0x0) || (pParse->eParseMode == '\x01')) ||\n     (((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1) != 0)) {\n    if (pCheckExpr != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pCheckExpr);\n      return;\n    }\n  }\n  else {\n    pList = sqlite3ExprListAppend((Parse *)db,pTVar2->pCheck,pCheckExpr);\n    uVar1 = (pParse->constraintName).n;\n    pTVar2->pCheck = pList;\n    if ((uVar1 != 0) && (pList != (ExprList *)0x0)) {\n      sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1);\n      return;\n    }\n  }" if (parenthesized_expression "(((pTVar2 == (Table *)0x0) || (pParse->eParseMode == '\x01')) ||\n     (((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1) != 0))" ( (binary_expression "((pTVar2 == (Table *)0x0) || (pParse->eParseMode == '\x01')) ||\n     (((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1) != 0)" (parenthesized_expression "((pTVar2 == (Table *)0x0) || (pParse->eParseMode == '\x01'))" ( (binary_expression "(pTVar2 == (Table *)0x0) || (pParse->eParseMode == '\x01')" (parenthesized_expression "(pTVar2 == (Table *)0x0)" ( (binary_expression "pTVar2 == (Table *)0x0" identifier == (cast_expression "(Table *)0x0" ( (type_descriptor "Table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pParse->eParseMode == '\x01')" ( (binary_expression "pParse->eParseMode == '\x01'" (field_expression "pParse->eParseMode" identifier -> field_identifier) == (char_literal "'\x01'" ' escape_sequence ')) ))) )) || (parenthesized_expression "(((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1) != 0)" ( (binary_expression "((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1) != 0" (parenthesized_expression "((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1)" ( (binary_expression "(db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1" (field_expression "(db->aDb[(db->init).iDb].pBt)->pBt->btsFlags" (field_expression "(db->aDb[(db->init).iDb].pBt)->pBt" (parenthesized_expression "(db->aDb[(db->init).iDb].pBt)" ( (field_expression "db->aDb[(db->init).iDb].pBt" (subscript_expression "db->aDb[(db->init).iDb]" (field_expression "db->aDb" identifier -> field_identifier) [ (field_expression "(db->init).iDb" (parenthesized_expression "(db->init)" ( (field_expression "db->init" identifier -> field_identifier) )) . field_identifier) ]) . field_identifier) )) -> field_identifier) -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    if (pCheckExpr != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pCheckExpr);\n      return;\n    }\n  }" { (if_statement "if (pCheckExpr != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pCheckExpr);\n      return;\n    }" if (parenthesized_expression "(pCheckExpr != (Expr *)0x0)" ( (binary_expression "pCheckExpr != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3ExprDeleteNN(db,pCheckExpr);\n      return;\n    }" { (expression_statement "sqlite3ExprDeleteNN(db,pCheckExpr);" (call_expression "sqlite3ExprDeleteNN(db,pCheckExpr)" identifier (argument_list "(db,pCheckExpr)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    pList = sqlite3ExprListAppend((Parse *)db,pTVar2->pCheck,pCheckExpr);\n    uVar1 = (pParse->constraintName).n;\n    pTVar2->pCheck = pList;\n    if ((uVar1 != 0) && (pList != (ExprList *)0x0)) {\n      sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1);\n      return;\n    }\n  }" else (compound_statement "{\n    pList = sqlite3ExprListAppend((Parse *)db,pTVar2->pCheck,pCheckExpr);\n    uVar1 = (pParse->constraintName).n;\n    pTVar2->pCheck = pList;\n    if ((uVar1 != 0) && (pList != (ExprList *)0x0)) {\n      sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1);\n      return;\n    }\n  }" { (expression_statement "pList = sqlite3ExprListAppend((Parse *)db,pTVar2->pCheck,pCheckExpr);" (assignment_expression "pList = sqlite3ExprListAppend((Parse *)db,pTVar2->pCheck,pCheckExpr)" identifier = (call_expression "sqlite3ExprListAppend((Parse *)db,pTVar2->pCheck,pCheckExpr)" identifier (argument_list "((Parse *)db,pTVar2->pCheck,pCheckExpr)" ( (cast_expression "(Parse *)db" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (field_expression "pTVar2->pCheck" identifier -> field_identifier) , identifier )))) ;) (expression_statement "uVar1 = (pParse->constraintName).n;" (assignment_expression "uVar1 = (pParse->constraintName).n" identifier = (field_expression "(pParse->constraintName).n" (parenthesized_expression "(pParse->constraintName)" ( (field_expression "pParse->constraintName" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pTVar2->pCheck = pList;" (assignment_expression "pTVar2->pCheck = pList" (field_expression "pTVar2->pCheck" identifier -> field_identifier) = identifier) ;) (if_statement "if ((uVar1 != 0) && (pList != (ExprList *)0x0)) {\n      sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1);\n      return;\n    }" if (parenthesized_expression "((uVar1 != 0) && (pList != (ExprList *)0x0))" ( (binary_expression "(uVar1 != 0) && (pList != (ExprList *)0x0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(pList != (ExprList *)0x0)" ( (binary_expression "pList != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1);\n      return;\n    }" { (expression_statement "sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1);" (call_expression "sqlite3ExprListSetName(pParse,pList,&pParse->constraintName,1)" identifier (argument_list "(pParse,pList,&pParse->constraintName,1)" ( identifier , identifier , (pointer_expression "&pParse->constraintName" & (field_expression "pParse->constraintName" identifier -> field_identifier)) , number_literal ))) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00055c68(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_1;\n  iVar3 = param_1[0x3a];\n  if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }\n  iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);\n  iVar2 = param_1[0x13];\n  *(int *)(iVar3 + 0x18) = iVar1;\n  if (iVar2 == 0) {\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n  FUN_00039614(param_1,iVar1,param_1 + 0x12,1);\n  return;\n}\n\n" (function_definition "void FUN_00055c68(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_1;\n  iVar3 = param_1[0x3a];\n  if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }\n  iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);\n  iVar2 = param_1[0x13];\n  *(int *)(iVar3 + 0x18) = iVar1;\n  if (iVar2 == 0) {\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n  FUN_00039614(param_1,iVar1,param_1 + 0x12,1);\n  return;\n}" primitive_type (function_declarator "FUN_00055c68(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_1;\n  iVar3 = param_1[0x3a];\n  if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }\n  iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);\n  iVar2 = param_1[0x13];\n  *(int *)(iVar3 + 0x18) = iVar1;\n  if (iVar2 == 0) {\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n  FUN_00039614(param_1,iVar1,param_1 + 0x12,1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar3 = param_1[0x3a];" (assignment_expression "iVar3 = param_1[0x3a]" identifier = (subscript_expression "param_1[0x3a]" identifier [ number_literal ])) ;) (if_statement "if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }" if (parenthesized_expression "(((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0))" ( (binary_expression "((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)" (parenthesized_expression "((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01'))" ( (binary_expression "(iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(char *)(param_1 + 0x33) == '\x01')" ( (binary_expression "*(char *)(param_1 + 0x33) == '\x01'" (pointer_expression "*(char *)(param_1 + 0x33)" * (cast_expression "(char *)(param_1 + 0x33)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x33)" ( (binary_expression "param_1 + 0x33" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) ))) )) || (parenthesized_expression "((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)" ( (binary_expression "(*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0" (parenthesized_expression "(*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1)" ( (binary_expression "*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1" (pointer_expression "*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18)" * (cast_expression "(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18)" ( (binary_expression "*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18" (pointer_expression "*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4)" * (cast_expression "(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4)" ( (binary_expression "*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4" (pointer_expression "*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4)" * (cast_expression "(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4)" ( (binary_expression "*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4" (binary_expression "*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) + (binary_expression "(uint)*(byte *)(iVar1 + 0xa4) * 0x10" (binary_expression "(uint)*(byte *)(iVar1 + 0xa4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar1 + 0xa4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa4)" ( (binary_expression "iVar1 + 0xa4" identifier + number_literal) )))) * number_literal)) + number_literal) )))) + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }" { (if_statement "if (param_2 == 0) {\n      return;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00053940(iVar1);" (call_expression "FUN_00053940(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);" (assignment_expression "iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2)" identifier = (call_expression "FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2)" identifier (argument_list "(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2)" ( identifier , (pointer_expression "*(undefined4 *)(iVar3 + 0x18)" * (cast_expression "(undefined4 *)(iVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "iVar2 = param_1[0x13];" (assignment_expression "iVar2 = param_1[0x13]" identifier = (subscript_expression "param_1[0x13]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(iVar3 + 0x18) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x18) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x18)" * (cast_expression "(int *)(iVar3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00039614(param_1,iVar1,param_1 + 0x12,1);" (call_expression "FUN_00039614(param_1,iVar1,param_1 + 0x12,1)" identifier (argument_list "(param_1,iVar1,param_1 + 0x12,1)" ( identifier , identifier , (binary_expression "param_1 + 0x12" identifier + number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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) )))) == (char_literal ' escape_sequence ')) ))) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) + LIT) )))) + LIT) )))) + LIT) )))) & LIT) )) != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_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 IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00055c68(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_1;\n  iVar3 = param_1[0x3a];\n  if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }\n  iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);\n  iVar2 = param_1[0x13];\n  *(int *)(iVar3 + 0x18) = iVar1;\n  if (iVar2 == 0) {\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n  FUN_00039614(param_1,iVar1,param_1 + 0x12,1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00055c68(int *param_1,int param_2)" (identifier "FUN_00055c68") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_1;\n  iVar3 = param_1[0x3a];\n  if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }\n  iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);\n  iVar2 = param_1[0x13];\n  *(int *)(iVar3 + 0x18) = iVar1;\n  if (iVar2 == 0) {\n    return;\n  }\n  if (iVar1 == 0) {\n    return;\n  }\n  FUN_00039614(param_1,iVar1,param_1 + 0x12,1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar3 = param_1[0x3a];" (assignment_expression "iVar3 = param_1[0x3a]" (identifier "iVar3") (= "=") (subscript_expression "param_1[0x3a]" (identifier "param_1") ([ "[") (number_literal "0x3a") (] "]"))) (; ";")) (if_statement "if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)) {\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0))" (( "(") (binary_expression "((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||\n     ((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)" (parenthesized_expression "((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01'))" (( "(") (binary_expression "(iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(char *)(param_1 + 0x33) == '\x01')" (( "(") (binary_expression "*(char *)(param_1 + 0x33) == '\x01'" (pointer_expression "*(char *)(param_1 + 0x33)" (* "*") (cast_expression "(char *)(param_1 + 0x33)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x33)" (( "(") (binary_expression "param_1 + 0x33" (identifier "param_1") (+ "+") (number_literal "0x33")) () ")")))) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "((*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0)" (( "(") (binary_expression "(*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1) != 0" (parenthesized_expression "(*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1)" (( "(") (binary_expression "*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18) & 1" (pointer_expression "*(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18)" (* "*") (cast_expression "(ushort *)\n        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18)" (( "(") (binary_expression "*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +\n        0x18" (pointer_expression "*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4)" (* "*") (cast_expression "(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4)" (( "(") (binary_expression "*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4" (pointer_expression "*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4)" (* "*") (cast_expression "(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4)" (( "(") (binary_expression "*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4" (binary_expression "*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10" (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "(uint)*(byte *)(iVar1 + 0xa4) * 0x10" (binary_expression "(uint)*(byte *)(iVar1 + 0xa4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(iVar1 + 0xa4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xa4)" (( "(") (binary_expression "iVar1 + 0xa4" (identifier "iVar1") (+ "+") (number_literal "0xa4")) () ")")))) (* "*") (number_literal "0x10"))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      return;\n    }\n    FUN_00053940(iVar1);\n    return;\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00053940(iVar1);" (call_expression "FUN_00053940(iVar1)" (identifier "FUN_00053940") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);" (assignment_expression "iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2)" (identifier "FUN_000559e4") (argument_list "(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2)" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar2 = param_1[0x13];" (assignment_expression "iVar2 = param_1[0x13]" (identifier "iVar2") (= "=") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]"))) (; ";")) (expression_statement "*(int *)(iVar3 + 0x18) = iVar1;" (assignment_expression "*(int *)(iVar3 + 0x18) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x18)" (* "*") (cast_expression "(int *)(iVar3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar2 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (iVar1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00039614(param_1,iVar1,param_1 + 0x12,1);" (call_expression "FUN_00039614(param_1,iVar1,param_1 + 0x12,1)" (identifier "FUN_00039614") (argument_list "(param_1,iVar1,param_1 + 0x12,1)" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") (, ",") (binary_expression "param_1 + 0x12" (identifier "param_1") (+ "+") (number_literal "0x12")) (, ",") (number_literal "1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pParse,type_2 *var_2)

{
  type_3 *db;
  type_4 *var_6;
  type_5 var_5;
  type_6 *var_1;
  
  db = pParse->db;
  var_1 = pParse->pNewTable;
  if (((var_1 == (type_6 *)0x0) || (pParse->eParseMode == '\x01')) ||
     (((db->aDb[(db->init).iDb].pBt)->pBt->btsFlags & 1) != 0)) {
    if (var_2 != (type_2 *)0x0) {
      var_3(db,var_2);
      return;
    }
  }
  else {
    var_6 = var_4((type_1 *)db,var_1->pCheck,var_2);
    var_5 = (pParse->constraintName).n;
    var_1->pCheck = var_6;
    if ((var_5 != 0) && (var_6 != (type_4 *)0x0)) {
      var_7(pParse,var_6,&pParse->constraintName,1);
      return;
    }
  }
  return;
}


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

void MASKED(int *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar1 = *param_1;
  iVar3 = param_1[0x3a];
  if (((iVar3 == 0) || (*(char *)(param_1 + 0x33) == '\x01')) ||
     ((*(ushort *)
        (*(int *)(*(int *)(*(int *)(iVar1 + 0x10) + (uint)*(byte *)(iVar1 + 0xa4) * 0x10 + 4) + 4) +
        0x18) & 1) != 0)) {
    if (param_2 == 0) {
      return;
    }
    FUN_00053940(iVar1);
    return;
  }
  iVar1 = FUN_000559e4(iVar1,*(undefined4 *)(iVar3 + 0x18),param_2);
  iVar2 = param_1[0x13];
  *(int *)(iVar3 + 0x18) = iVar1;
  if (iVar2 == 0) {
    return;
  }
  if (iVar1 == 0) {
    return;
  }
  FUN_00039614(param_1,iVar1,param_1 + 0x12,1);
  return;
}

