
Fts5Colset * sqlite3Fts5ParseColsetInvert(Fts5Parse *pParse,Fts5Colset *p)

{
  Fts5Colset *pFVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  code *pcVar6;
  undefined1 *puVar7;
  undefined4 in_stack_ffffffe4;
  
  puVar7 = &_gp;
  if (pParse->rc == 0) {
    iVar5 = pParse->pConfig->nCol;
    puVar7 = &_gp;
    pFVar1 = (Fts5Colset *)sqlite3Fts5MallocZero(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4));
    if (pFVar1 == (Fts5Colset *)0x0) goto LAB_00051610;
    iVar2 = 0;
    if (0 < iVar5) {
      iVar3 = p->nCol;
      iVar4 = 0;
      while( true ) {
        if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {
          iVar4 = iVar4 + 1;
        }
        else {
          iVar3 = pFVar1->nCol;
          pFVar1->nCol = iVar3 + 1;
          pFVar1->aiCol[iVar3] = iVar2;
        }
        iVar2 = iVar2 + 1;
        pcVar6 = *(code **)(puVar7 + -0x7f90);
        if (iVar5 == iVar2) break;
        iVar3 = p->nCol;
      }
      goto LAB_00051618;
    }
  }
  else {
LAB_00051610:
    pFVar1 = (Fts5Colset *)0x0;
  }
  pcVar6 = *(code **)(puVar7 + -0x7f90);
LAB_00051618:
  (*pcVar6)(p);
  return pFVar1;
}



int * FUN_00051550(int *param_1,int *param_2)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  if (param_1[2] == 0) {
    iVar5 = *(int *)(*param_1 + 0xc);
    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);
    if (piVar1 != (int *)0x0) {
      iVar2 = 0;
      if (0 < iVar5) {
        iVar3 = *param_2;
        iVar4 = 0;
        while( true ) {
          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {
            iVar4 = iVar4 + 1;
          }
          else {
            iVar3 = *piVar1;
            *piVar1 = iVar3 + 1;
            piVar1[iVar3 + 1] = iVar2;
          }
          iVar2 = iVar2 + 1;
          if (iVar5 == iVar2) break;
          iVar3 = *param_2;
        }
      }
      goto LAB_00051618;
    }
  }
  piVar1 = (int *)0x0;
LAB_00051618:
  (*(code *)PTR_sqlite3_free_0015b620)(param_2);
  return piVar1;
}


lui gp,0x11
addiu gp,gp,0x2060
addu gp,gp,t9
addiu sp,sp,-0x30
sw s2,0x24(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lw s1,0x8(a0)
bne s1,zero,0x00051610
_or s2,a1,zero
lw v0,0x0(a0)
or a2,zero,zero
lw t9,-0x7eb0(gp)
addiu a0,a0,0x8
lw s3,0xc(v0)
addiu t9,t9,0x108c
addiu a3,s3,0x2
bal 0x0005108c
_sll a3,a3,0x2
lw gp,0x10(sp)
beq v0,zero,0x00051610
_or s0,v0,zero
blez s3,0x00051614
_or a0,zero,zero
b 0x000515ec
_lw a2,0x0(s2)
lw v1,0x0(s0)
sll v0,v1,0x2
addiu v1,v1,0x1
addu v0,s0,v0
sw v1,0x0(s0)
sw a0,0x4(v0)
addiu a0,a0,0x1
beq s3,a0,0x00051618
_lw t9,-0x7f90(gp)
lw a2,0x0(s2)
sll v1,s1,0x2
slt a2,s1,a2
beq a2,zero,0x000515c4
_addu v1,s2,v1
lw v0,0x4(v1)
bne v0,a0,0x000515c4
_nop
b 0x000515dc
_addiu s1,s1,0x1
or s0,zero,zero
lw t9,-0x7f90(gp)
jalr t9
_or a0,s2,zero
or v0,s0,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int * FUN_00051550(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }\n  piVar1 = (int *)0x0;\nLAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);\n  return piVar1;\n}\n\n" (function_definition "int * FUN_00051550(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }\n  piVar1 = (int *)0x0;\nLAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);\n  return piVar1;\n}" primitive_type (pointer_declarator "* FUN_00051550(int *param_1,int *param_2)" * (function_declarator "FUN_00051550(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 (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }\n  piVar1 = (int *)0x0;\nLAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);\n  return piVar1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }" { (expression_statement "iVar5 = *(int *)(*param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(*param_1 + 0xc)" identifier = (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);" (assignment_expression "piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" identifier = (cast_expression "(int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" identifier (argument_list "(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal , (binary_expression "(iVar5 + 2) * 4" (parenthesized_expression "(iVar5 + 2)" ( (binary_expression "iVar5 + 2" identifier + number_literal) )) * number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }" { (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }" { (if_statement "if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }" if (parenthesized_expression "((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2))" ( (binary_expression "(iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)" (parenthesized_expression "(iVar4 < iVar3)" ( (binary_expression "iVar4 < iVar3" identifier < identifier) )) && (parenthesized_expression "(param_2[iVar4 + 1] == iVar2)" ( (binary_expression "param_2[iVar4 + 1] == iVar2" (subscript_expression "param_2[iVar4 + 1]" identifier [ (binary_expression "iVar4 + 1" identifier + number_literal) ]) == identifier) ))) )) (compound_statement "{\n            iVar4 = iVar4 + 1;\n          }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }" else (compound_statement "{\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }" { (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = iVar3 + 1;" (assignment_expression "*piVar1 = iVar3 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "piVar1[iVar3 + 1] = iVar2;" (assignment_expression "piVar1[iVar3 + 1] = iVar2" (subscript_expression "piVar1[iVar3 + 1]" identifier [ (binary_expression "iVar3 + 1" identifier + number_literal) ]) = identifier) ;) }))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == iVar2) break;" if (parenthesized_expression "(iVar5 == iVar2)" ( (binary_expression "iVar5 == iVar2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) })) (goto_statement "goto LAB_00051618;" goto statement_identifier ;) })) })) (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);" statement_identifier : (expression_statement "(*(code *)PTR_sqlite3_free_0015b620)(param_2);" (call_expression "(*(code *)PTR_sqlite3_free_0015b620)(param_2)" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0015b620)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0015b620" * (cast_expression "(code *)PTR_sqlite3_free_0015b620" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;)) (return_statement "return piVar1;" return identifier ;) })))
(translation_unit "Fts5Colset * sqlite3Fts5ParseColsetInvert(Fts5Parse *pParse,Fts5Colset *p)\n\n{\n  Fts5Colset *pFVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar7 = &_gp;\n  if (pParse->rc == 0) {\n    iVar5 = pParse->pConfig->nCol;\n    puVar7 = &_gp;\n    pFVar1 = (Fts5Colset *)sqlite3Fts5MallocZero(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4));\n    if (pFVar1 == (Fts5Colset *)0x0) goto LAB_00051610;\n    iVar2 = 0;\n    if (0 < iVar5) {\n      iVar3 = p->nCol;\n      iVar4 = 0;\n      while( true ) {\n        if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {\n          iVar4 = iVar4 + 1;\n        }\n        else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }\n        iVar2 = iVar2 + 1;\n        pcVar6 = *(code **)(puVar7 + -0x7f90);\n        if (iVar5 == iVar2) break;\n        iVar3 = p->nCol;\n      }\n      goto LAB_00051618;\n    }\n  }\n  else {\nLAB_00051610:\n    pFVar1 = (Fts5Colset *)0x0;\n  }\n  pcVar6 = *(code **)(puVar7 + -0x7f90);\nLAB_00051618:\n  (*pcVar6)(p);\n  return pFVar1;\n}\n\n" (function_definition "Fts5Colset * sqlite3Fts5ParseColsetInvert(Fts5Parse *pParse,Fts5Colset *p)\n\n{\n  Fts5Colset *pFVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar7 = &_gp;\n  if (pParse->rc == 0) {\n    iVar5 = pParse->pConfig->nCol;\n    puVar7 = &_gp;\n    pFVar1 = (Fts5Colset *)sqlite3Fts5MallocZero(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4));\n    if (pFVar1 == (Fts5Colset *)0x0) goto LAB_00051610;\n    iVar2 = 0;\n    if (0 < iVar5) {\n      iVar3 = p->nCol;\n      iVar4 = 0;\n      while( true ) {\n        if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {\n          iVar4 = iVar4 + 1;\n        }\n        else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }\n        iVar2 = iVar2 + 1;\n        pcVar6 = *(code **)(puVar7 + -0x7f90);\n        if (iVar5 == iVar2) break;\n        iVar3 = p->nCol;\n      }\n      goto LAB_00051618;\n    }\n  }\n  else {\nLAB_00051610:\n    pFVar1 = (Fts5Colset *)0x0;\n  }\n  pcVar6 = *(code **)(puVar7 + -0x7f90);\nLAB_00051618:\n  (*pcVar6)(p);\n  return pFVar1;\n}" type_identifier (pointer_declarator "* sqlite3Fts5ParseColsetInvert(Fts5Parse *pParse,Fts5Colset *p)" * (function_declarator "sqlite3Fts5ParseColsetInvert(Fts5Parse *pParse,Fts5Colset *p)" identifier (parameter_list "(Fts5Parse *pParse,Fts5Colset *p)" ( (parameter_declaration "Fts5Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Fts5Colset *p" type_identifier (pointer_declarator "*p" * identifier)) )))) (compound_statement "{\n  Fts5Colset *pFVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  code *pcVar6;\n  undefined1 *puVar7;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar7 = &_gp;\n  if (pParse->rc == 0) {\n    iVar5 = pParse->pConfig->nCol;\n    puVar7 = &_gp;\n    pFVar1 = (Fts5Colset *)sqlite3Fts5MallocZero(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4));\n    if (pFVar1 == (Fts5Colset *)0x0) goto LAB_00051610;\n    iVar2 = 0;\n    if (0 < iVar5) {\n      iVar3 = p->nCol;\n      iVar4 = 0;\n      while( true ) {\n        if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {\n          iVar4 = iVar4 + 1;\n        }\n        else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }\n        iVar2 = iVar2 + 1;\n        pcVar6 = *(code **)(puVar7 + -0x7f90);\n        if (iVar5 == iVar2) break;\n        iVar3 = p->nCol;\n      }\n      goto LAB_00051618;\n    }\n  }\n  else {\nLAB_00051610:\n    pFVar1 = (Fts5Colset *)0x0;\n  }\n  pcVar6 = *(code **)(puVar7 + -0x7f90);\nLAB_00051618:\n  (*pcVar6)(p);\n  return pFVar1;\n}" { (declaration "Fts5Colset *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 in_stack_ffffffe4;" type_identifier identifier ;) (expression_statement "puVar7 = &_gp;" (assignment_expression "puVar7 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (if_statement "if (pParse->rc == 0) {\n    iVar5 = pParse->pConfig->nCol;\n    puVar7 = &_gp;\n    pFVar1 = (Fts5Colset *)sqlite3Fts5MallocZero(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4));\n    if (pFVar1 == (Fts5Colset *)0x0) goto LAB_00051610;\n    iVar2 = 0;\n    if (0 < iVar5) {\n      iVar3 = p->nCol;\n      iVar4 = 0;\n      while( true ) {\n        if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {\n          iVar4 = iVar4 + 1;\n        }\n        else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }\n        iVar2 = iVar2 + 1;\n        pcVar6 = *(code **)(puVar7 + -0x7f90);\n        if (iVar5 == iVar2) break;\n        iVar3 = p->nCol;\n      }\n      goto LAB_00051618;\n    }\n  }\n  else {\nLAB_00051610:\n    pFVar1 = (Fts5Colset *)0x0;\n  }" if (parenthesized_expression "(pParse->rc == 0)" ( (binary_expression "pParse->rc == 0" (field_expression "pParse->rc" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar5 = pParse->pConfig->nCol;\n    puVar7 = &_gp;\n    pFVar1 = (Fts5Colset *)sqlite3Fts5MallocZero(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4));\n    if (pFVar1 == (Fts5Colset *)0x0) goto LAB_00051610;\n    iVar2 = 0;\n    if (0 < iVar5) {\n      iVar3 = p->nCol;\n      iVar4 = 0;\n      while( true ) {\n        if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {\n          iVar4 = iVar4 + 1;\n        }\n        else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }\n        iVar2 = iVar2 + 1;\n        pcVar6 = *(code **)(puVar7 + -0x7f90);\n        if (iVar5 == iVar2) break;\n        iVar3 = p->nCol;\n      }\n      goto LAB_00051618;\n    }\n  }" { (expression_statement "iVar5 = pParse->pConfig->nCol;" (assignment_expression "iVar5 = pParse->pConfig->nCol" identifier = (field_expression "pParse->pConfig->nCol" (field_expression "pParse->pConfig" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "puVar7 = &_gp;" (assignment_expression "puVar7 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "pFVar1 = (Fts5Colset *)sqlite3Fts5MallocZero(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4));" (assignment_expression "pFVar1 = (Fts5Colset *)sqlite3Fts5MallocZero(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4))" identifier = (cast_expression "(Fts5Colset *)sqlite3Fts5MallocZero(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4))" ( (type_descriptor "Fts5Colset *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3Fts5MallocZero(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4))" identifier (argument_list "(&pParse->rc,CONCAT44(&_gp,in_stack_ffffffe4))" ( (pointer_expression "&pParse->rc" & (field_expression "pParse->rc" identifier -> field_identifier)) , (call_expression "CONCAT44(&_gp,in_stack_ffffffe4)" identifier (argument_list "(&_gp,in_stack_ffffffe4)" ( (pointer_expression "&_gp" & identifier) , identifier ))) ))))) ;) (if_statement "if (pFVar1 == (Fts5Colset *)0x0) goto LAB_00051610;" if (parenthesized_expression "(pFVar1 == (Fts5Colset *)0x0)" ( (binary_expression "pFVar1 == (Fts5Colset *)0x0" identifier == (cast_expression "(Fts5Colset *)0x0" ( (type_descriptor "Fts5Colset *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00051610;" goto statement_identifier ;)) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar5) {\n      iVar3 = p->nCol;\n      iVar4 = 0;\n      while( true ) {\n        if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {\n          iVar4 = iVar4 + 1;\n        }\n        else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }\n        iVar2 = iVar2 + 1;\n        pcVar6 = *(code **)(puVar7 + -0x7f90);\n        if (iVar5 == iVar2) break;\n        iVar3 = p->nCol;\n      }\n      goto LAB_00051618;\n    }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n      iVar3 = p->nCol;\n      iVar4 = 0;\n      while( true ) {\n        if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {\n          iVar4 = iVar4 + 1;\n        }\n        else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }\n        iVar2 = iVar2 + 1;\n        pcVar6 = *(code **)(puVar7 + -0x7f90);\n        if (iVar5 == iVar2) break;\n        iVar3 = p->nCol;\n      }\n      goto LAB_00051618;\n    }" { (expression_statement "iVar3 = p->nCol;" (assignment_expression "iVar3 = p->nCol" identifier = (field_expression "p->nCol" identifier -> field_identifier)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n        if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {\n          iVar4 = iVar4 + 1;\n        }\n        else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }\n        iVar2 = iVar2 + 1;\n        pcVar6 = *(code **)(puVar7 + -0x7f90);\n        if (iVar5 == iVar2) break;\n        iVar3 = p->nCol;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {\n          iVar4 = iVar4 + 1;\n        }\n        else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }\n        iVar2 = iVar2 + 1;\n        pcVar6 = *(code **)(puVar7 + -0x7f90);\n        if (iVar5 == iVar2) break;\n        iVar3 = p->nCol;\n      }" { (if_statement "if ((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)) {\n          iVar4 = iVar4 + 1;\n        }\n        else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }" if (parenthesized_expression "((iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2))" ( (binary_expression "(iVar4 < iVar3) && (p->aiCol[iVar4] == iVar2)" (parenthesized_expression "(iVar4 < iVar3)" ( (binary_expression "iVar4 < iVar3" identifier < identifier) )) && (parenthesized_expression "(p->aiCol[iVar4] == iVar2)" ( (binary_expression "p->aiCol[iVar4] == iVar2" (subscript_expression "p->aiCol[iVar4]" (field_expression "p->aiCol" identifier -> field_identifier) [ identifier ]) == identifier) ))) )) (compound_statement "{\n          iVar4 = iVar4 + 1;\n        }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }" else (compound_statement "{\n          iVar3 = pFVar1->nCol;\n          pFVar1->nCol = iVar3 + 1;\n          pFVar1->aiCol[iVar3] = iVar2;\n        }" { (expression_statement "iVar3 = pFVar1->nCol;" (assignment_expression "iVar3 = pFVar1->nCol" identifier = (field_expression "pFVar1->nCol" identifier -> field_identifier)) ;) (expression_statement "pFVar1->nCol = iVar3 + 1;" (assignment_expression "pFVar1->nCol = iVar3 + 1" (field_expression "pFVar1->nCol" identifier -> field_identifier) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "pFVar1->aiCol[iVar3] = iVar2;" (assignment_expression "pFVar1->aiCol[iVar3] = iVar2" (subscript_expression "pFVar1->aiCol[iVar3]" (field_expression "pFVar1->aiCol" identifier -> field_identifier) [ identifier ]) = identifier) ;) }))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar6 = *(code **)(puVar7 + -0x7f90);" (assignment_expression "pcVar6 = *(code **)(puVar7 + -0x7f90)" identifier = (pointer_expression "*(code **)(puVar7 + -0x7f90)" * (cast_expression "(code **)(puVar7 + -0x7f90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -0x7f90)" ( (binary_expression "puVar7 + -0x7f90" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 == iVar2) break;" if (parenthesized_expression "(iVar5 == iVar2)" ( (binary_expression "iVar5 == iVar2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = p->nCol;" (assignment_expression "iVar3 = p->nCol" identifier = (field_expression "p->nCol" identifier -> field_identifier)) ;) })) (goto_statement "goto LAB_00051618;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_00051610:\n    pFVar1 = (Fts5Colset *)0x0;\n  }" else (compound_statement "{\nLAB_00051610:\n    pFVar1 = (Fts5Colset *)0x0;\n  }" { (labeled_statement "LAB_00051610:\n    pFVar1 = (Fts5Colset *)0x0;" statement_identifier : (expression_statement "pFVar1 = (Fts5Colset *)0x0;" (assignment_expression "pFVar1 = (Fts5Colset *)0x0" identifier = (cast_expression "(Fts5Colset *)0x0" ( (type_descriptor "Fts5Colset *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }))) (expression_statement "pcVar6 = *(code **)(puVar7 + -0x7f90);" (assignment_expression "pcVar6 = *(code **)(puVar7 + -0x7f90)" identifier = (pointer_expression "*(code **)(puVar7 + -0x7f90)" * (cast_expression "(code **)(puVar7 + -0x7f90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -0x7f90)" ( (binary_expression "puVar7 + -0x7f90" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00051618:\n  (*pcVar6)(p);" statement_identifier : (expression_statement "(*pcVar6)(p);" (call_expression "(*pcVar6)(p)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(p)" ( identifier ))) ;)) (return_statement "return pFVar1;" return identifier ;) })))
(translation_unit "int * FUN_00051550(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }\n  piVar1 = (int *)0x0;\nLAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);\n  return piVar1;\n}\n\n" (function_definition "int * FUN_00051550(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }\n  piVar1 = (int *)0x0;\nLAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);\n  return piVar1;\n}" primitive_type (pointer_declarator "* FUN_00051550(int *param_1,int *param_2)" * (function_declarator "FUN_00051550(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 (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }\n  piVar1 = (int *)0x0;\nLAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);\n  return piVar1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }" { (expression_statement "iVar5 = *(int *)(*param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(*param_1 + 0xc)" identifier = (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);" (assignment_expression "piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" identifier = (cast_expression "(int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" identifier (argument_list "(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal , (binary_expression "(iVar5 + 2) * 4" (parenthesized_expression "(iVar5 + 2)" ( (binary_expression "iVar5 + 2" identifier + number_literal) )) * number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }" { (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }" { (if_statement "if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }" if (parenthesized_expression "((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2))" ( (binary_expression "(iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)" (parenthesized_expression "(iVar4 < iVar3)" ( (binary_expression "iVar4 < iVar3" identifier < identifier) )) && (parenthesized_expression "(param_2[iVar4 + 1] == iVar2)" ( (binary_expression "param_2[iVar4 + 1] == iVar2" (subscript_expression "param_2[iVar4 + 1]" identifier [ (binary_expression "iVar4 + 1" identifier + number_literal) ]) == identifier) ))) )) (compound_statement "{\n            iVar4 = iVar4 + 1;\n          }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }" else (compound_statement "{\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }" { (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = iVar3 + 1;" (assignment_expression "*piVar1 = iVar3 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "piVar1[iVar3 + 1] = iVar2;" (assignment_expression "piVar1[iVar3 + 1] = iVar2" (subscript_expression "piVar1[iVar3 + 1]" identifier [ (binary_expression "iVar3 + 1" identifier + number_literal) ]) = identifier) ;) }))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == iVar2) break;" if (parenthesized_expression "(iVar5 == iVar2)" ( (binary_expression "iVar5 == iVar2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) })) (goto_statement "goto LAB_00051618;" goto statement_identifier ;) })) })) (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);" statement_identifier : (expression_statement "(*(code *)PTR_sqlite3_free_0015b620)(param_2);" (call_expression "(*(code *)PTR_sqlite3_free_0015b620)(param_2)" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0015b620)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0015b620" * (cast_expression "(code *)PTR_sqlite3_free_0015b620" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;)) (return_statement "return piVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT , (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00051550(int *param_1,int *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }\n  piVar1 = (int *)0x0;\nLAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);\n  return piVar1;\n}" (primitive_type "int") (pointer_declarator "* FUN_00051550(int *param_1,int *param_2)" (* "*") (function_declarator "FUN_00051550(int *param_1,int *param_2)" (identifier "FUN_00051550") (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") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }\n  piVar1 = (int *)0x0;\nLAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);\n  return piVar1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (if_statement "if (param_1[2] == 0) {\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }" (if "if") (parenthesized_expression "(param_1[2] == 0)" (( "(") (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar5 = *(int *)(*param_1 + 0xc);\n    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);\n    if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }\n  }" ({ "{") (expression_statement "iVar5 = *(int *)(*param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(*param_1 + 0xc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(*param_1 + 0xc)" (* "*") (cast_expression "(int *)(*param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);" (assignment_expression "piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" (identifier "FUN_0005108c") (argument_list "(param_1 + 2,param_2,0,(iVar5 + 2) * 4)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (binary_expression "(iVar5 + 2) * 4" (parenthesized_expression "(iVar5 + 2)" (( "(") (binary_expression "iVar5 + 2" (identifier "iVar5") (+ "+") (number_literal "2")) () ")")) (* "*") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar2 = 0;\n      if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }\n      goto LAB_00051618;\n    }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < iVar5) {\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }" (if "if") (parenthesized_expression "(0 < iVar5)" (( "(") (binary_expression "0 < iVar5" (number_literal "0") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n        iVar3 = *param_2;\n        iVar4 = 0;\n        while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }\n      }" ({ "{") (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" (identifier "iVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }\n          iVar2 = iVar2 + 1;\n          if (iVar5 == iVar2) break;\n          iVar3 = *param_2;\n        }" ({ "{") (if_statement "if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {\n            iVar4 = iVar4 + 1;\n          }\n          else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }" (if "if") (parenthesized_expression "((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2))" (( "(") (binary_expression "(iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)" (parenthesized_expression "(iVar4 < iVar3)" (( "(") (binary_expression "iVar4 < iVar3" (identifier "iVar4") (< "<") (identifier "iVar3")) () ")")) (&& "&&") (parenthesized_expression "(param_2[iVar4 + 1] == iVar2)" (( "(") (binary_expression "param_2[iVar4 + 1] == iVar2" (subscript_expression "param_2[iVar4 + 1]" (identifier "param_2") ([ "[") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) (] "]")) (== "==") (identifier "iVar2")) () ")"))) () ")")) (compound_statement "{\n            iVar4 = iVar4 + 1;\n          }" ({ "{") (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }" (else "else") (compound_statement "{\n            iVar3 = *piVar1;\n            *piVar1 = iVar3 + 1;\n            piVar1[iVar3 + 1] = iVar2;\n          }" ({ "{") (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = iVar3 + 1;" (assignment_expression "*piVar1 = iVar3 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar1[iVar3 + 1] = iVar2;" (assignment_expression "piVar1[iVar3 + 1] = iVar2" (subscript_expression "piVar1[iVar3 + 1]" (identifier "piVar1") ([ "[") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) (] "]")) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar5 == iVar2) break;" (if "if") (parenthesized_expression "(iVar5 == iVar2)" (( "(") (binary_expression "iVar5 == iVar2" (identifier "iVar5") (== "==") (identifier "iVar2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" (identifier "iVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (} "}"))) (goto_statement "goto LAB_00051618;" (goto "goto") (statement_identifier "LAB_00051618") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" (identifier "piVar1") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_00051618:\n  (*(code *)PTR_sqlite3_free_0015b620)(param_2);" (statement_identifier "LAB_00051618") (: ":") (expression_statement "(*(code *)PTR_sqlite3_free_0015b620)(param_2);" (call_expression "(*(code *)PTR_sqlite3_free_0015b620)(param_2)" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0015b620)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_0015b620" (* "*") (cast_expression "(code *)PTR_sqlite3_free_0015b620" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_0015b620"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";"))) (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}")))

type_1 * function_1(type_2 *pParse,type_1 *p)

{
  type_1 *var_3;
  int var_7;
  int var_6;
  int var_5;
  int var_4;
  type_3 *pcVar6;
  type_4 *var_8;
  type_5 in_stack_ffffffe4;
  
  var_8 = &_gp;
  if (pParse->rc == 0) {
    var_4 = pParse->pConfig->nCol;
    var_8 = &_gp;
    var_3 = (type_1 *)var_1(&pParse->rc,var_2(&_gp,in_stack_ffffffe4));
    if (var_3 == (type_1 *)0x0) goto LAB_00051610;
    var_7 = 0;
    if (0 < var_4) {
      var_6 = p->nCol;
      var_5 = 0;
      while( true ) {
        if ((var_5 < var_6) && (p->aiCol[var_5] == var_7)) {
          var_5 = var_5 + 1;
        }
        else {
          var_6 = var_3->nCol;
          var_3->nCol = var_6 + 1;
          var_3->aiCol[var_6] = var_7;
        }
        var_7 = var_7 + 1;
        pcVar6 = *(type_3 **)(var_8 + -0x7f90);
        if (var_4 == var_7) break;
        var_6 = p->nCol;
      }
      goto LAB_00051618;
    }
  }
  else {
LAB_00051610:
    var_3 = (type_1 *)0x0;
  }
  pcVar6 = *(type_3 **)(var_8 + -0x7f90);
LAB_00051618:
  (*pcVar6)(p);
  return var_3;
}


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

int * MASKED(int *param_1,int *param_2)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  if (param_1[2] == 0) {
    iVar5 = *(int *)(*param_1 + 0xc);
    piVar1 = (int *)FUN_0005108c(param_1 + 2,param_2,0,(iVar5 + 2) * 4);
    if (piVar1 != (int *)0x0) {
      iVar2 = 0;
      if (0 < iVar5) {
        iVar3 = *param_2;
        iVar4 = 0;
        while( true ) {
          if ((iVar4 < iVar3) && (param_2[iVar4 + 1] == iVar2)) {
            iVar4 = iVar4 + 1;
          }
          else {
            iVar3 = *piVar1;
            *piVar1 = iVar3 + 1;
            piVar1[iVar3 + 1] = iVar2;
          }
          iVar2 = iVar2 + 1;
          if (iVar5 == iVar2) break;
          iVar3 = *param_2;
        }
      }
      goto LAB_00051618;
    }
  }
  piVar1 = (int *)0x0;
LAB_00051618:
  (*(code *)PTR_sqlite3_free_0015b620)(param_2);
  return piVar1;
}

