
void sqlite3VtabMakeWritable(Parse *pParse,Table *pTab)

{
  int iVar1;
  uint uVar2;
  Table **ppTVar3;
  Table **ppTVar4;
  sqlite3 *db;
  Parse *pPVar5;
  undefined4 in_stack_ffffffec;
  
  pPVar5 = pParse->pToplevel;
  if (pParse->pToplevel == (Parse *)0x0) {
    pPVar5 = pParse;
  }
  ppTVar4 = pPVar5->apVtabLock;
  if (pPVar5->nVtabLock < 1) {
LAB_00036b78:
    ppTVar4 = (Table **)sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec));
    if (ppTVar4 == (Table **)0x0) {
      db = pPVar5->db;
      uVar2._0_1_ = db->temp_store;
      uVar2._1_1_ = db->mallocFailed;
      uVar2._2_1_ = db->bBenignMalloc;
      uVar2._3_1_ = db->dfltLockMode;
      if ((uVar2 & 0xffff00) == 0) {
        sqlite3OomFault(db);
        return;
      }
    }
    else {
      iVar1 = pPVar5->nVtabLock;
      pPVar5->apVtabLock = ppTVar4;
      pPVar5->nVtabLock = iVar1 + 1;
      ppTVar4[iVar1] = pTab;
    }
  }
  else if (pTab != *ppTVar4) {
    iVar1 = 0;
    ppTVar3 = ppTVar4;
    do {
      ppTVar3 = ppTVar3 + 1;
      iVar1 = iVar1 + 1;
      if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;
    } while (*ppTVar3 != pTab);
  }
  return;
}



void FUN_00036b18(int *param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  int *piVar5;
  
  piVar5 = (int *)param_1[0x1d];
  if ((int *)param_1[0x1d] == (int *)0x0) {
    piVar5 = param_1;
  }
  iVar4 = piVar5[0x34];
  piVar3 = (int *)piVar5[0x40];
  if (iVar4 < 1) {
LAB_00036b78:
    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);
    if (iVar4 == 0) {
      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {
        FUN_000367b4();
        return;
      }
    }
    else {
      iVar1 = piVar5[0x34];
      piVar5[0x40] = iVar4;
      piVar5[0x34] = iVar1 + 1;
      *(int *)(iVar4 + iVar1 * 4) = param_2;
    }
  }
  else if (param_2 != *piVar3) {
    iVar1 = 0;
    piVar2 = piVar3;
    do {
      piVar2 = piVar2 + 1;
      iVar1 = iVar1 + 1;
      if (iVar1 == iVar4) goto LAB_00036b78;
    } while (*piVar2 != param_2);
  }
  return;
}


lui gp,0xc
addiu gp,gp,0x6788
addu gp,gp,t9
addiu sp,sp,-0x28
sw s1,0x20(sp)
lw s1,0x74(a0)
sw gp,0x10(sp)
sw ra,0x24(sp)
movz s1,a0,s1
sw s0,0x1c(sp)
lw a3,0xd0(s1)
blez a3,0x00036b78
_lw a0,0x100(s1)
lw v0,0x0(a0)
beq a1,v0,0x00036bb8
_addiu v1,a0,0x4
b 0x00036b6c
_or v0,zero,zero
lw a2,-0x4(v1)
beq a2,a1,0x00036bbc
_lw ra,0x24(sp)
addiu v0,v0,0x1
bne v0,a3,0x00036b60
_addiu v1,v1,0x4
addiu a3,a3,0x1
lw t9,-0x7fb4(gp)
or s0,a1,zero
sll a3,a3,0x2
addiu t9,t9,0x4e44
bal 0x00034e44
_sra a2,a3,0x1f
beq v0,zero,0x00036bcc
_lw gp,0x10(sp)
lw v1,0xd0(s1)
sw v0,0x100(s1)
sll a0,v1,0x2
addiu v1,v1,0x1
addu v0,v0,a0
sw v1,0xd0(s1)
sw s0,0x0(v0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw a0,0x0(s1)
lui v1,0xff
ori v1,v1,0xff00
lw v0,0x50(a0)
and v0,v0,v1
bne v0,zero,0x00036bbc
_lw ra,0x24(sp)
lw t9,-0x7fb4(gp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
addiu t9,t9,0x67b4
b 0x000367b4
_addiu sp,sp,0x28
(translation_unit "void FUN_00036b18(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)param_1[0x1d];\n  if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }\n  iVar4 = piVar5[0x34];\n  piVar3 = (int *)piVar5[0x40];\n  if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00036b18(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)param_1[0x1d];\n  if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }\n  iVar4 = piVar5[0x34];\n  piVar3 = (int *)piVar5[0x40];\n  if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00036b18(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 *piVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)param_1[0x1d];\n  if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }\n  iVar4 = piVar5[0x34];\n  piVar3 = (int *)piVar5[0x40];\n  if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = (int *)param_1[0x1d];" (assignment_expression "piVar5 = (int *)param_1[0x1d]" identifier = (cast_expression "(int *)param_1[0x1d]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x1d]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }" if (parenthesized_expression "((int *)param_1[0x1d] == (int *)0x0)" ( (binary_expression "(int *)param_1[0x1d] == (int *)0x0" (cast_expression "(int *)param_1[0x1d]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x1d]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar5 = param_1;\n  }" { (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" identifier = identifier) ;) })) (expression_statement "iVar4 = piVar5[0x34];" (assignment_expression "iVar4 = piVar5[0x34]" identifier = (subscript_expression "piVar5[0x34]" identifier [ number_literal ])) ;) (expression_statement "piVar3 = (int *)piVar5[0x40];" (assignment_expression "piVar3 = (int *)piVar5[0x40]" identifier = (cast_expression "(int *)piVar5[0x40]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[0x40]" identifier [ number_literal ]))) ;) (if_statement "if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }" { (labeled_statement "LAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);" statement_identifier : (expression_statement "iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);" (assignment_expression "iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f)" identifier = (call_expression "FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f)" identifier (argument_list "(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f)" ( identifier , identifier , (binary_expression "(iVar4 + 1) * 4 >> 0x1f" (binary_expression "(iVar4 + 1) * 4" (parenthesized_expression "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )) * number_literal) >> number_literal) )))) ;)) (if_statement "if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }" { (if_statement "if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }" if (parenthesized_expression "((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0)" ( (binary_expression "(*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0" (parenthesized_expression "(*(uint *)(*piVar5 + 0x50) & 0xffff00)" ( (binary_expression "*(uint *)(*piVar5 + 0x50) & 0xffff00" (pointer_expression "*(uint *)(*piVar5 + 0x50)" * (cast_expression "(uint *)(*piVar5 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar5 + 0x50)" ( (binary_expression "*piVar5 + 0x50" (pointer_expression "*piVar5" * identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        FUN_000367b4();\n        return;\n      }" { (expression_statement "FUN_000367b4();" (call_expression "FUN_000367b4()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }" else (compound_statement "{\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }" { (expression_statement "iVar1 = piVar5[0x34];" (assignment_expression "iVar1 = piVar5[0x34]" identifier = (subscript_expression "piVar5[0x34]" identifier [ number_literal ])) ;) (expression_statement "piVar5[0x40] = iVar4;" (assignment_expression "piVar5[0x40] = iVar4" (subscript_expression "piVar5[0x40]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[0x34] = iVar1 + 1;" (assignment_expression "piVar5[0x34] = iVar1 + 1" (subscript_expression "piVar5[0x34]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar4 + iVar1 * 4) = param_2;" (assignment_expression "*(int *)(iVar4 + iVar1 * 4) = param_2" (pointer_expression "*(int *)(iVar4 + iVar1 * 4)" * (cast_expression "(int *)(iVar4 + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar1 * 4)" ( (binary_expression "iVar4 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) }))) }) (else_clause "else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" else (if_statement "if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" if (parenthesized_expression "(param_2 != *piVar3)" ( (binary_expression "param_2 != *piVar3" identifier != (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" identifier = identifier) ;) (do_statement "do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);" do (compound_statement "{\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == iVar4) goto LAB_00036b78;" if (parenthesized_expression "(iVar1 == iVar4)" ( (binary_expression "iVar1 == iVar4" identifier == identifier) )) (goto_statement "goto LAB_00036b78;" goto statement_identifier ;)) }) while (parenthesized_expression "(*piVar2 != param_2)" ( (binary_expression "*piVar2 != param_2" (pointer_expression "*piVar2" * identifier) != identifier) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3VtabMakeWritable(Parse *pParse,Table *pTab)\n\n{\n  int iVar1;\n  uint uVar2;\n  Table **ppTVar3;\n  Table **ppTVar4;\n  sqlite3 *db;\n  Parse *pPVar5;\n  undefined4 in_stack_ffffffec;\n  \n  pPVar5 = pParse->pToplevel;\n  if (pParse->pToplevel == (Parse *)0x0) {\n    pPVar5 = pParse;\n  }\n  ppTVar4 = pPVar5->apVtabLock;\n  if (pPVar5->nVtabLock < 1) {\nLAB_00036b78:\n    ppTVar4 = (Table **)sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec));\n    if (ppTVar4 == (Table **)0x0) {\n      db = pPVar5->db;\n      uVar2._0_1_ = db->temp_store;\n      uVar2._1_1_ = db->mallocFailed;\n      uVar2._2_1_ = db->bBenignMalloc;\n      uVar2._3_1_ = db->dfltLockMode;\n      if ((uVar2 & 0xffff00) == 0) {\n        sqlite3OomFault(db);\n        return;\n      }\n    }\n    else {\n      iVar1 = pPVar5->nVtabLock;\n      pPVar5->apVtabLock = ppTVar4;\n      pPVar5->nVtabLock = iVar1 + 1;\n      ppTVar4[iVar1] = pTab;\n    }\n  }\n  else if (pTab != *ppTVar4) {\n    iVar1 = 0;\n    ppTVar3 = ppTVar4;\n    do {\n      ppTVar3 = ppTVar3 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;\n    } while (*ppTVar3 != pTab);\n  }\n  return;\n}\n\n" (function_definition "void sqlite3VtabMakeWritable(Parse *pParse,Table *pTab)\n\n{\n  int iVar1;\n  uint uVar2;\n  Table **ppTVar3;\n  Table **ppTVar4;\n  sqlite3 *db;\n  Parse *pPVar5;\n  undefined4 in_stack_ffffffec;\n  \n  pPVar5 = pParse->pToplevel;\n  if (pParse->pToplevel == (Parse *)0x0) {\n    pPVar5 = pParse;\n  }\n  ppTVar4 = pPVar5->apVtabLock;\n  if (pPVar5->nVtabLock < 1) {\nLAB_00036b78:\n    ppTVar4 = (Table **)sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec));\n    if (ppTVar4 == (Table **)0x0) {\n      db = pPVar5->db;\n      uVar2._0_1_ = db->temp_store;\n      uVar2._1_1_ = db->mallocFailed;\n      uVar2._2_1_ = db->bBenignMalloc;\n      uVar2._3_1_ = db->dfltLockMode;\n      if ((uVar2 & 0xffff00) == 0) {\n        sqlite3OomFault(db);\n        return;\n      }\n    }\n    else {\n      iVar1 = pPVar5->nVtabLock;\n      pPVar5->apVtabLock = ppTVar4;\n      pPVar5->nVtabLock = iVar1 + 1;\n      ppTVar4[iVar1] = pTab;\n    }\n  }\n  else if (pTab != *ppTVar4) {\n    iVar1 = 0;\n    ppTVar3 = ppTVar4;\n    do {\n      ppTVar3 = ppTVar3 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;\n    } while (*ppTVar3 != pTab);\n  }\n  return;\n}" primitive_type (function_declarator "sqlite3VtabMakeWritable(Parse *pParse,Table *pTab)" identifier (parameter_list "(Parse *pParse,Table *pTab)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Table *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  Table **ppTVar3;\n  Table **ppTVar4;\n  sqlite3 *db;\n  Parse *pPVar5;\n  undefined4 in_stack_ffffffec;\n  \n  pPVar5 = pParse->pToplevel;\n  if (pParse->pToplevel == (Parse *)0x0) {\n    pPVar5 = pParse;\n  }\n  ppTVar4 = pPVar5->apVtabLock;\n  if (pPVar5->nVtabLock < 1) {\nLAB_00036b78:\n    ppTVar4 = (Table **)sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec));\n    if (ppTVar4 == (Table **)0x0) {\n      db = pPVar5->db;\n      uVar2._0_1_ = db->temp_store;\n      uVar2._1_1_ = db->mallocFailed;\n      uVar2._2_1_ = db->bBenignMalloc;\n      uVar2._3_1_ = db->dfltLockMode;\n      if ((uVar2 & 0xffff00) == 0) {\n        sqlite3OomFault(db);\n        return;\n      }\n    }\n    else {\n      iVar1 = pPVar5->nVtabLock;\n      pPVar5->apVtabLock = ppTVar4;\n      pPVar5->nVtabLock = iVar1 + 1;\n      ppTVar4[iVar1] = pTab;\n    }\n  }\n  else if (pTab != *ppTVar4) {\n    iVar1 = 0;\n    ppTVar3 = ppTVar4;\n    do {\n      ppTVar3 = ppTVar3 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;\n    } while (*ppTVar3 != pTab);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "Table **ppTVar3;" type_identifier (pointer_declarator "**ppTVar3" * (pointer_declarator "*ppTVar3" * identifier)) ;) (declaration "Table **ppTVar4;" type_identifier (pointer_declarator "**ppTVar4" * (pointer_declarator "*ppTVar4" * identifier)) ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "Parse *pPVar5;" type_identifier (pointer_declarator "*pPVar5" * identifier) ;) (declaration "undefined4 in_stack_ffffffec;" type_identifier identifier ;) (expression_statement "pPVar5 = pParse->pToplevel;" (assignment_expression "pPVar5 = pParse->pToplevel" identifier = (field_expression "pParse->pToplevel" identifier -> field_identifier)) ;) (if_statement "if (pParse->pToplevel == (Parse *)0x0) {\n    pPVar5 = pParse;\n  }" if (parenthesized_expression "(pParse->pToplevel == (Parse *)0x0)" ( (binary_expression "pParse->pToplevel == (Parse *)0x0" (field_expression "pParse->pToplevel" identifier -> field_identifier) == (cast_expression "(Parse *)0x0" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pPVar5 = pParse;\n  }" { (expression_statement "pPVar5 = pParse;" (assignment_expression "pPVar5 = pParse" identifier = identifier) ;) })) (expression_statement "ppTVar4 = pPVar5->apVtabLock;" (assignment_expression "ppTVar4 = pPVar5->apVtabLock" identifier = (field_expression "pPVar5->apVtabLock" identifier -> field_identifier)) ;) (if_statement "if (pPVar5->nVtabLock < 1) {\nLAB_00036b78:\n    ppTVar4 = (Table **)sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec));\n    if (ppTVar4 == (Table **)0x0) {\n      db = pPVar5->db;\n      uVar2._0_1_ = db->temp_store;\n      uVar2._1_1_ = db->mallocFailed;\n      uVar2._2_1_ = db->bBenignMalloc;\n      uVar2._3_1_ = db->dfltLockMode;\n      if ((uVar2 & 0xffff00) == 0) {\n        sqlite3OomFault(db);\n        return;\n      }\n    }\n    else {\n      iVar1 = pPVar5->nVtabLock;\n      pPVar5->apVtabLock = ppTVar4;\n      pPVar5->nVtabLock = iVar1 + 1;\n      ppTVar4[iVar1] = pTab;\n    }\n  }\n  else if (pTab != *ppTVar4) {\n    iVar1 = 0;\n    ppTVar3 = ppTVar4;\n    do {\n      ppTVar3 = ppTVar3 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;\n    } while (*ppTVar3 != pTab);\n  }" if (parenthesized_expression "(pPVar5->nVtabLock < 1)" ( (binary_expression "pPVar5->nVtabLock < 1" (field_expression "pPVar5->nVtabLock" identifier -> field_identifier) < number_literal) )) (compound_statement "{\nLAB_00036b78:\n    ppTVar4 = (Table **)sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec));\n    if (ppTVar4 == (Table **)0x0) {\n      db = pPVar5->db;\n      uVar2._0_1_ = db->temp_store;\n      uVar2._1_1_ = db->mallocFailed;\n      uVar2._2_1_ = db->bBenignMalloc;\n      uVar2._3_1_ = db->dfltLockMode;\n      if ((uVar2 & 0xffff00) == 0) {\n        sqlite3OomFault(db);\n        return;\n      }\n    }\n    else {\n      iVar1 = pPVar5->nVtabLock;\n      pPVar5->apVtabLock = ppTVar4;\n      pPVar5->nVtabLock = iVar1 + 1;\n      ppTVar4[iVar1] = pTab;\n    }\n  }" { (labeled_statement "LAB_00036b78:\n    ppTVar4 = (Table **)sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec));" statement_identifier : (expression_statement "ppTVar4 = (Table **)sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec));" (assignment_expression "ppTVar4 = (Table **)sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec))" identifier = (cast_expression "(Table **)sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec))" ( (type_descriptor "Table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "sqlite3Realloc(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec))" identifier (argument_list "(ppTVar4,CONCAT44(&_gp,in_stack_ffffffec))" ( identifier , (call_expression "CONCAT44(&_gp,in_stack_ffffffec)" identifier (argument_list "(&_gp,in_stack_ffffffec)" ( (pointer_expression "&_gp" & identifier) , identifier ))) ))))) ;)) (if_statement "if (ppTVar4 == (Table **)0x0) {\n      db = pPVar5->db;\n      uVar2._0_1_ = db->temp_store;\n      uVar2._1_1_ = db->mallocFailed;\n      uVar2._2_1_ = db->bBenignMalloc;\n      uVar2._3_1_ = db->dfltLockMode;\n      if ((uVar2 & 0xffff00) == 0) {\n        sqlite3OomFault(db);\n        return;\n      }\n    }\n    else {\n      iVar1 = pPVar5->nVtabLock;\n      pPVar5->apVtabLock = ppTVar4;\n      pPVar5->nVtabLock = iVar1 + 1;\n      ppTVar4[iVar1] = pTab;\n    }" if (parenthesized_expression "(ppTVar4 == (Table **)0x0)" ( (binary_expression "ppTVar4 == (Table **)0x0" identifier == (cast_expression "(Table **)0x0" ( (type_descriptor "Table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      db = pPVar5->db;\n      uVar2._0_1_ = db->temp_store;\n      uVar2._1_1_ = db->mallocFailed;\n      uVar2._2_1_ = db->bBenignMalloc;\n      uVar2._3_1_ = db->dfltLockMode;\n      if ((uVar2 & 0xffff00) == 0) {\n        sqlite3OomFault(db);\n        return;\n      }\n    }" { (expression_statement "db = pPVar5->db;" (assignment_expression "db = pPVar5->db" identifier = (field_expression "pPVar5->db" identifier -> field_identifier)) ;) (expression_statement "uVar2._0_1_ = db->temp_store;" (assignment_expression "uVar2._0_1_ = db->temp_store" (field_expression "uVar2._0_1_" identifier . field_identifier) = (field_expression "db->temp_store" identifier -> field_identifier)) ;) (expression_statement "uVar2._1_1_ = db->mallocFailed;" (assignment_expression "uVar2._1_1_ = db->mallocFailed" (field_expression "uVar2._1_1_" identifier . field_identifier) = (field_expression "db->mallocFailed" identifier -> field_identifier)) ;) (expression_statement "uVar2._2_1_ = db->bBenignMalloc;" (assignment_expression "uVar2._2_1_ = db->bBenignMalloc" (field_expression "uVar2._2_1_" identifier . field_identifier) = (field_expression "db->bBenignMalloc" identifier -> field_identifier)) ;) (expression_statement "uVar2._3_1_ = db->dfltLockMode;" (assignment_expression "uVar2._3_1_ = db->dfltLockMode" (field_expression "uVar2._3_1_" identifier . field_identifier) = (field_expression "db->dfltLockMode" identifier -> field_identifier)) ;) (if_statement "if ((uVar2 & 0xffff00) == 0) {\n        sqlite3OomFault(db);\n        return;\n      }" if (parenthesized_expression "((uVar2 & 0xffff00) == 0)" ( (binary_expression "(uVar2 & 0xffff00) == 0" (parenthesized_expression "(uVar2 & 0xffff00)" ( (binary_expression "uVar2 & 0xffff00" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        sqlite3OomFault(db);\n        return;\n      }" { (expression_statement "sqlite3OomFault(db);" (call_expression "sqlite3OomFault(db)" identifier (argument_list "(db)" ( identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n      iVar1 = pPVar5->nVtabLock;\n      pPVar5->apVtabLock = ppTVar4;\n      pPVar5->nVtabLock = iVar1 + 1;\n      ppTVar4[iVar1] = pTab;\n    }" else (compound_statement "{\n      iVar1 = pPVar5->nVtabLock;\n      pPVar5->apVtabLock = ppTVar4;\n      pPVar5->nVtabLock = iVar1 + 1;\n      ppTVar4[iVar1] = pTab;\n    }" { (expression_statement "iVar1 = pPVar5->nVtabLock;" (assignment_expression "iVar1 = pPVar5->nVtabLock" identifier = (field_expression "pPVar5->nVtabLock" identifier -> field_identifier)) ;) (expression_statement "pPVar5->apVtabLock = ppTVar4;" (assignment_expression "pPVar5->apVtabLock = ppTVar4" (field_expression "pPVar5->apVtabLock" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar5->nVtabLock = iVar1 + 1;" (assignment_expression "pPVar5->nVtabLock = iVar1 + 1" (field_expression "pPVar5->nVtabLock" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "ppTVar4[iVar1] = pTab;" (assignment_expression "ppTVar4[iVar1] = pTab" (subscript_expression "ppTVar4[iVar1]" identifier [ identifier ]) = identifier) ;) }))) }) (else_clause "else if (pTab != *ppTVar4) {\n    iVar1 = 0;\n    ppTVar3 = ppTVar4;\n    do {\n      ppTVar3 = ppTVar3 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;\n    } while (*ppTVar3 != pTab);\n  }" else (if_statement "if (pTab != *ppTVar4) {\n    iVar1 = 0;\n    ppTVar3 = ppTVar4;\n    do {\n      ppTVar3 = ppTVar3 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;\n    } while (*ppTVar3 != pTab);\n  }" if (parenthesized_expression "(pTab != *ppTVar4)" ( (binary_expression "pTab != *ppTVar4" identifier != (pointer_expression "*ppTVar4" * identifier)) )) (compound_statement "{\n    iVar1 = 0;\n    ppTVar3 = ppTVar4;\n    do {\n      ppTVar3 = ppTVar3 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;\n    } while (*ppTVar3 != pTab);\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "ppTVar3 = ppTVar4;" (assignment_expression "ppTVar3 = ppTVar4" identifier = identifier) ;) (do_statement "do {\n      ppTVar3 = ppTVar3 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;\n    } while (*ppTVar3 != pTab);" do (compound_statement "{\n      ppTVar3 = ppTVar3 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;\n    }" { (expression_statement "ppTVar3 = ppTVar3 + 1;" (assignment_expression "ppTVar3 = ppTVar3 + 1" identifier = (binary_expression "ppTVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == pPVar5->nVtabLock) goto LAB_00036b78;" if (parenthesized_expression "(iVar1 == pPVar5->nVtabLock)" ( (binary_expression "iVar1 == pPVar5->nVtabLock" identifier == (field_expression "pPVar5->nVtabLock" identifier -> field_identifier)) )) (goto_statement "goto LAB_00036b78;" goto statement_identifier ;)) }) while (parenthesized_expression "(*ppTVar3 != pTab)" ( (binary_expression "*ppTVar3 != pTab" (pointer_expression "*ppTVar3" * identifier) != identifier) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00036b18(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)param_1[0x1d];\n  if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }\n  iVar4 = piVar5[0x34];\n  piVar3 = (int *)piVar5[0x40];\n  if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00036b18(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)param_1[0x1d];\n  if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }\n  iVar4 = piVar5[0x34];\n  piVar3 = (int *)piVar5[0x40];\n  if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00036b18(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 *piVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)param_1[0x1d];\n  if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }\n  iVar4 = piVar5[0x34];\n  piVar3 = (int *)piVar5[0x40];\n  if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = (int *)param_1[0x1d];" (assignment_expression "piVar5 = (int *)param_1[0x1d]" identifier = (cast_expression "(int *)param_1[0x1d]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x1d]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }" if (parenthesized_expression "((int *)param_1[0x1d] == (int *)0x0)" ( (binary_expression "(int *)param_1[0x1d] == (int *)0x0" (cast_expression "(int *)param_1[0x1d]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x1d]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar5 = param_1;\n  }" { (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" identifier = identifier) ;) })) (expression_statement "iVar4 = piVar5[0x34];" (assignment_expression "iVar4 = piVar5[0x34]" identifier = (subscript_expression "piVar5[0x34]" identifier [ number_literal ])) ;) (expression_statement "piVar3 = (int *)piVar5[0x40];" (assignment_expression "piVar3 = (int *)piVar5[0x40]" identifier = (cast_expression "(int *)piVar5[0x40]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[0x40]" identifier [ number_literal ]))) ;) (if_statement "if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }" { (labeled_statement "LAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);" statement_identifier : (expression_statement "iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);" (assignment_expression "iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f)" identifier = (call_expression "FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f)" identifier (argument_list "(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f)" ( identifier , identifier , (binary_expression "(iVar4 + 1) * 4 >> 0x1f" (binary_expression "(iVar4 + 1) * 4" (parenthesized_expression "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )) * number_literal) >> number_literal) )))) ;)) (if_statement "if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }" { (if_statement "if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }" if (parenthesized_expression "((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0)" ( (binary_expression "(*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0" (parenthesized_expression "(*(uint *)(*piVar5 + 0x50) & 0xffff00)" ( (binary_expression "*(uint *)(*piVar5 + 0x50) & 0xffff00" (pointer_expression "*(uint *)(*piVar5 + 0x50)" * (cast_expression "(uint *)(*piVar5 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar5 + 0x50)" ( (binary_expression "*piVar5 + 0x50" (pointer_expression "*piVar5" * identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        FUN_000367b4();\n        return;\n      }" { (expression_statement "FUN_000367b4();" (call_expression "FUN_000367b4()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }" else (compound_statement "{\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }" { (expression_statement "iVar1 = piVar5[0x34];" (assignment_expression "iVar1 = piVar5[0x34]" identifier = (subscript_expression "piVar5[0x34]" identifier [ number_literal ])) ;) (expression_statement "piVar5[0x40] = iVar4;" (assignment_expression "piVar5[0x40] = iVar4" (subscript_expression "piVar5[0x40]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[0x34] = iVar1 + 1;" (assignment_expression "piVar5[0x34] = iVar1 + 1" (subscript_expression "piVar5[0x34]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar4 + iVar1 * 4) = param_2;" (assignment_expression "*(int *)(iVar4 + iVar1 * 4) = param_2" (pointer_expression "*(int *)(iVar4 + iVar1 * 4)" * (cast_expression "(int *)(iVar4 + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar1 * 4)" ( (binary_expression "iVar4 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) }))) }) (else_clause "else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" else (if_statement "if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" if (parenthesized_expression "(param_2 != *piVar3)" ( (binary_expression "param_2 != *piVar3" identifier != (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" identifier = identifier) ;) (do_statement "do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);" do (compound_statement "{\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == iVar4) goto LAB_00036b78;" if (parenthesized_expression "(iVar1 == iVar4)" ( (binary_expression "iVar1 == iVar4" identifier == identifier) )) (goto_statement "goto LAB_00036b78;" goto statement_identifier ;)) }) while (parenthesized_expression "(*piVar2 != param_2)" ( (binary_expression "*piVar2 != param_2" (pointer_expression "*piVar2" * identifier) != identifier) )) ;) })))) (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT) >> LIT) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) ;) })))) (return_statement return ;) })))
(function_definition "void FUN_00036b18(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)param_1[0x1d];\n  if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }\n  iVar4 = piVar5[0x34];\n  piVar3 = (int *)piVar5[0x40];\n  if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00036b18(int *param_1,int param_2)" (identifier "FUN_00036b18") (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 *piVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)param_1[0x1d];\n  if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }\n  iVar4 = piVar5[0x34];\n  piVar3 = (int *)piVar5[0x40];\n  if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "piVar5 = (int *)param_1[0x1d];" (assignment_expression "piVar5 = (int *)param_1[0x1d]" (identifier "piVar5") (= "=") (cast_expression "(int *)param_1[0x1d]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]")))) (; ";")) (if_statement "if ((int *)param_1[0x1d] == (int *)0x0) {\n    piVar5 = param_1;\n  }" (if "if") (parenthesized_expression "((int *)param_1[0x1d] == (int *)0x0)" (( "(") (binary_expression "(int *)param_1[0x1d] == (int *)0x0" (cast_expression "(int *)param_1[0x1d]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]"))) (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar5 = param_1;\n  }" ({ "{") (expression_statement "piVar5 = param_1;" (assignment_expression "piVar5 = param_1" (identifier "piVar5") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "iVar4 = piVar5[0x34];" (assignment_expression "iVar4 = piVar5[0x34]" (identifier "iVar4") (= "=") (subscript_expression "piVar5[0x34]" (identifier "piVar5") ([ "[") (number_literal "0x34") (] "]"))) (; ";")) (expression_statement "piVar3 = (int *)piVar5[0x40];" (assignment_expression "piVar3 = (int *)piVar5[0x40]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar5[0x40]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar5[0x40]" (identifier "piVar5") ([ "[") (number_literal "0x40") (] "]")))) (; ";")) (if_statement "if (iVar4 < 1) {\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }\n  else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" (if "if") (parenthesized_expression "(iVar4 < 1)" (( "(") (binary_expression "iVar4 < 1" (identifier "iVar4") (< "<") (number_literal "1")) () ")")) (compound_statement "{\nLAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);\n    if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }\n  }" ({ "{") (labeled_statement "LAB_00036b78:\n    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);" (statement_identifier "LAB_00036b78") (: ":") (expression_statement "iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);" (assignment_expression "iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f)" (identifier "iVar4") (= "=") (call_expression "FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f)" (identifier "FUN_00034e44") (argument_list "(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f)" (( "(") (identifier "piVar3") (, ",") (identifier "param_2") (, ",") (binary_expression "(iVar4 + 1) * 4 >> 0x1f" (binary_expression "(iVar4 + 1) * 4" (parenthesized_expression "(iVar4 + 1)" (( "(") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "4")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";"))) (if_statement "if (iVar4 == 0) {\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }\n    else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }\n    }" ({ "{") (if_statement "if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {\n        FUN_000367b4();\n        return;\n      }" (if "if") (parenthesized_expression "((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0)" (( "(") (binary_expression "(*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0" (parenthesized_expression "(*(uint *)(*piVar5 + 0x50) & 0xffff00)" (( "(") (binary_expression "*(uint *)(*piVar5 + 0x50) & 0xffff00" (pointer_expression "*(uint *)(*piVar5 + 0x50)" (* "*") (cast_expression "(uint *)(*piVar5 + 0x50)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar5 + 0x50)" (( "(") (binary_expression "*piVar5 + 0x50" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (+ "+") (number_literal "0x50")) () ")")))) (& "&") (number_literal "0xffff00")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_000367b4();\n        return;\n      }" ({ "{") (expression_statement "FUN_000367b4();" (call_expression "FUN_000367b4()" (identifier "FUN_000367b4") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }" (else "else") (compound_statement "{\n      iVar1 = piVar5[0x34];\n      piVar5[0x40] = iVar4;\n      piVar5[0x34] = iVar1 + 1;\n      *(int *)(iVar4 + iVar1 * 4) = param_2;\n    }" ({ "{") (expression_statement "iVar1 = piVar5[0x34];" (assignment_expression "iVar1 = piVar5[0x34]" (identifier "iVar1") (= "=") (subscript_expression "piVar5[0x34]" (identifier "piVar5") ([ "[") (number_literal "0x34") (] "]"))) (; ";")) (expression_statement "piVar5[0x40] = iVar4;" (assignment_expression "piVar5[0x40] = iVar4" (subscript_expression "piVar5[0x40]" (identifier "piVar5") ([ "[") (number_literal "0x40") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "piVar5[0x34] = iVar1 + 1;" (assignment_expression "piVar5[0x34] = iVar1 + 1" (subscript_expression "piVar5[0x34]" (identifier "piVar5") ([ "[") (number_literal "0x34") (] "]")) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(iVar4 + iVar1 * 4) = param_2;" (assignment_expression "*(int *)(iVar4 + iVar1 * 4) = param_2" (pointer_expression "*(int *)(iVar4 + iVar1 * 4)" (* "*") (cast_expression "(int *)(iVar4 + iVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar1 * 4)" (( "(") (binary_expression "iVar4 + iVar1 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}")))) (} "}")) (else_clause "else if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" (else "else") (if_statement "if (param_2 != *piVar3) {\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" (if "if") (parenthesized_expression "(param_2 != *piVar3)" (( "(") (binary_expression "param_2 != *piVar3" (identifier "param_2") (!= "!=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (compound_statement "{\n    iVar1 = 0;\n    piVar2 = piVar3;\n    do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" (identifier "piVar2") (= "=") (identifier "piVar3")) (; ";")) (do_statement "do {\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    } while (*piVar2 != param_2);" (do "do") (compound_statement "{\n      piVar2 = piVar2 + 1;\n      iVar1 = iVar1 + 1;\n      if (iVar1 == iVar4) goto LAB_00036b78;\n    }" ({ "{") (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar1 == iVar4) goto LAB_00036b78;" (if "if") (parenthesized_expression "(iVar1 == iVar4)" (( "(") (binary_expression "iVar1 == iVar4" (identifier "iVar1") (== "==") (identifier "iVar4")) () ")")) (goto_statement "goto LAB_00036b78;" (goto "goto") (statement_identifier "LAB_00036b78") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(*piVar2 != param_2)" (( "(") (binary_expression "*piVar2 != param_2" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (identifier "param_2")) () ")")) (; ";")) (} "}"))))) (return_statement "return;" (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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) 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: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (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: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))))) (return_statement))))

void MASKED(int *param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  int *piVar5;
  
  piVar5 = (int *)param_1[0x1d];
  if ((int *)param_1[0x1d] == (int *)0x0) {
    piVar5 = param_1;
  }
  iVar4 = piVar5[0x34];
  piVar3 = (int *)piVar5[0x40];
  if (iVar4 < 1) {
LAB_00036b78:
    iVar4 = FUN_00034e44(piVar3,param_2,(iVar4 + 1) * 4 >> 0x1f);
    if (iVar4 == 0) {
      if ((*(uint *)(*piVar5 + 0x50) & 0xffff00) == 0) {
        FUN_000367b4();
        return;
      }
    }
    else {
      iVar1 = piVar5[0x34];
      piVar5[0x40] = iVar4;
      piVar5[0x34] = iVar1 + 1;
      *(int *)(iVar4 + iVar1 * 4) = param_2;
    }
  }
  else if (param_2 != *piVar3) {
    iVar1 = 0;
    piVar2 = piVar3;
    do {
      piVar2 = piVar2 + 1;
      iVar1 = iVar1 + 1;
      if (iVar1 == iVar4) goto LAB_00036b78;
    } while (*piVar2 != param_2);
  }
  return;
}

