
int sqlite3Fts5FlushToDisk(Fts5Table *pTab)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = *(int **)(pTab[1].base.nRef + 0x2c);
  if (piVar1 != (int *)0x0) {
    iVar2 = piVar1[6];
    while( true ) {
      if ((iVar2 == 1) && (pTab == (Fts5Table *)*piVar1)) {
        piVar1[0xf] = piVar1[0xf] | 0x20;
        piVar1 = (int *)piVar1[1];
      }
      else {
        piVar1 = (int *)piVar1[1];
      }
      if (piVar1 == (int *)0x0) break;
      iVar2 = piVar1[6];
    }
  }
  iVar2 = sqlite3Fts5StorageSync((Fts5Storage *)pTab[1].base.pModule);
  return iVar2;
}



void FUN_00119258(int param_1)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);
  if (piVar1 != (int *)0x0) {
    iVar2 = piVar1[6];
    while( true ) {
      if ((iVar2 == 1) && (param_1 == *piVar1)) {
        piVar1[0xf] = piVar1[0xf] | 0x20;
        piVar1 = (int *)piVar1[1];
      }
      else {
        piVar1 = (int *)piVar1[1];
      }
      if (piVar1 == (int *)0x0) break;
      iVar2 = piVar1[6];
    }
  }
  FUN_00119160(*(undefined4 *)(param_1 + 0x14));
  return;
}


lui gp,0x5
addiu gp,gp,-0x5ca8
addu gp,gp,t9
lw v0,0x18(a0)
lw v0,0x2c(v0)
beq v0,zero,0x001192b8
_li a1,0x1
b 0x0011928c
_lw v1,0x18(v0)
lw v0,0x4(v0)
beq v0,zero,0x001192bc
_lw t9,-0x7edc(gp)
lw v1,0x18(v0)
bne v1,a1,0x0011927c
_nop
lw v1,0x0(v0)
bne a0,v1,0x0011927c
_nop
lw v1,0x3c(v0)
ori v1,v1,0x20
sw v1,0x3c(v0)
lw v0,0x4(v0)
bne v0,zero,0x00119288
_nop
lw t9,-0x7edc(gp)
addiu t9,t9,-0x6ea0
b 0x00119160
_lw a0,0x14(a0)
(translation_unit "void FUN_00119258(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  FUN_00119160(*(undefined4 *)(param_1 + 0x14));\n  return;\n}\n\n" (function_definition "void FUN_00119258(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  FUN_00119160(*(undefined4 *)(param_1 + 0x14));\n  return;\n}" primitive_type (function_declarator "FUN_00119258(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  FUN_00119160(*(undefined4 *)(param_1 + 0x14));\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x18) + 0x2c)" * (cast_expression "(int **)(*(int *)(param_1 + 0x18) + 0x2c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x2c)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x2c" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\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 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }" { (expression_statement "iVar2 = piVar1[6];" (assignment_expression "iVar2 = piVar1[6]" identifier = (subscript_expression "piVar1[6]" identifier [ number_literal ])) ;) (while_statement "while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }" { (if_statement "if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }" if (parenthesized_expression "((iVar2 == 1) && (param_1 == *piVar1))" ( (binary_expression "(iVar2 == 1) && (param_1 == *piVar1)" (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) && (parenthesized_expression "(param_1 == *piVar1)" ( (binary_expression "param_1 == *piVar1" identifier == (pointer_expression "*piVar1" * identifier)) ))) )) (compound_statement "{\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }" { (expression_statement "piVar1[0xf] = piVar1[0xf] | 0x20;" (assignment_expression "piVar1[0xf] = piVar1[0xf] | 0x20" (subscript_expression "piVar1[0xf]" identifier [ number_literal ]) = (binary_expression "piVar1[0xf] | 0x20" (subscript_expression "piVar1[0xf]" identifier [ number_literal ]) | number_literal)) ;) (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n        piVar1 = (int *)piVar1[1];\n      }" else (compound_statement "{\n        piVar1 = (int *)piVar1[1];\n      }" { (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) }))) (if_statement "if (piVar1 == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = piVar1[6];" (assignment_expression "iVar2 = piVar1[6]" identifier = (subscript_expression "piVar1[6]" identifier [ number_literal ])) ;) })) })) (expression_statement "FUN_00119160(*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_00119160(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int sqlite3Fts5FlushToDisk(Fts5Table *pTab)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(pTab[1].base.nRef + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (pTab == (Fts5Table *)*piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  iVar2 = sqlite3Fts5StorageSync((Fts5Storage *)pTab[1].base.pModule);\n  return iVar2;\n}\n\n" (function_definition "int sqlite3Fts5FlushToDisk(Fts5Table *pTab)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(pTab[1].base.nRef + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (pTab == (Fts5Table *)*piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  iVar2 = sqlite3Fts5StorageSync((Fts5Storage *)pTab[1].base.pModule);\n  return iVar2;\n}" primitive_type (function_declarator "sqlite3Fts5FlushToDisk(Fts5Table *pTab)" identifier (parameter_list "(Fts5Table *pTab)" ( (parameter_declaration "Fts5Table *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(pTab[1].base.nRef + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (pTab == (Fts5Table *)*piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  iVar2 = sqlite3Fts5StorageSync((Fts5Storage *)pTab[1].base.pModule);\n  return iVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(pTab[1].base.nRef + 0x2c);" (assignment_expression "piVar1 = *(int **)(pTab[1].base.nRef + 0x2c)" identifier = (pointer_expression "*(int **)(pTab[1].base.nRef + 0x2c)" * (cast_expression "(int **)(pTab[1].base.nRef + 0x2c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pTab[1].base.nRef + 0x2c)" ( (binary_expression "pTab[1].base.nRef + 0x2c" (field_expression "pTab[1].base.nRef" (field_expression "pTab[1].base" (subscript_expression "pTab[1]" identifier [ number_literal ]) . field_identifier) . field_identifier) + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (pTab == (Fts5Table *)*piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\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 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (pTab == (Fts5Table *)*piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }" { (expression_statement "iVar2 = piVar1[6];" (assignment_expression "iVar2 = piVar1[6]" identifier = (subscript_expression "piVar1[6]" identifier [ number_literal ])) ;) (while_statement "while( true ) {\n      if ((iVar2 == 1) && (pTab == (Fts5Table *)*piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if ((iVar2 == 1) && (pTab == (Fts5Table *)*piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }" { (if_statement "if ((iVar2 == 1) && (pTab == (Fts5Table *)*piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }" if (parenthesized_expression "((iVar2 == 1) && (pTab == (Fts5Table *)*piVar1))" ( (binary_expression "(iVar2 == 1) && (pTab == (Fts5Table *)*piVar1)" (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) && (parenthesized_expression "(pTab == (Fts5Table *)*piVar1)" ( (binary_expression "pTab == (Fts5Table *)*piVar1" identifier == (cast_expression "(Fts5Table *)*piVar1" ( (type_descriptor "Fts5Table *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ))) )) (compound_statement "{\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }" { (expression_statement "piVar1[0xf] = piVar1[0xf] | 0x20;" (assignment_expression "piVar1[0xf] = piVar1[0xf] | 0x20" (subscript_expression "piVar1[0xf]" identifier [ number_literal ]) = (binary_expression "piVar1[0xf] | 0x20" (subscript_expression "piVar1[0xf]" identifier [ number_literal ]) | number_literal)) ;) (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n        piVar1 = (int *)piVar1[1];\n      }" else (compound_statement "{\n        piVar1 = (int *)piVar1[1];\n      }" { (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) }))) (if_statement "if (piVar1 == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = piVar1[6];" (assignment_expression "iVar2 = piVar1[6]" identifier = (subscript_expression "piVar1[6]" identifier [ number_literal ])) ;) })) })) (expression_statement "iVar2 = sqlite3Fts5StorageSync((Fts5Storage *)pTab[1].base.pModule);" (assignment_expression "iVar2 = sqlite3Fts5StorageSync((Fts5Storage *)pTab[1].base.pModule)" identifier = (call_expression "sqlite3Fts5StorageSync((Fts5Storage *)pTab[1].base.pModule)" identifier (argument_list "((Fts5Storage *)pTab[1].base.pModule)" ( (cast_expression "(Fts5Storage *)pTab[1].base.pModule" ( (type_descriptor "Fts5Storage *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pTab[1].base.pModule" (field_expression "pTab[1].base" (subscript_expression "pTab[1]" identifier [ number_literal ]) . field_identifier) . field_identifier)) )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "void FUN_00119258(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  FUN_00119160(*(undefined4 *)(param_1 + 0x14));\n  return;\n}\n\n" (function_definition "void FUN_00119258(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  FUN_00119160(*(undefined4 *)(param_1 + 0x14));\n  return;\n}" primitive_type (function_declarator "FUN_00119258(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  FUN_00119160(*(undefined4 *)(param_1 + 0x14));\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x18) + 0x2c)" * (cast_expression "(int **)(*(int *)(param_1 + 0x18) + 0x2c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x2c)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0x2c" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\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 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }" { (expression_statement "iVar2 = piVar1[6];" (assignment_expression "iVar2 = piVar1[6]" identifier = (subscript_expression "piVar1[6]" identifier [ number_literal ])) ;) (while_statement "while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }" { (if_statement "if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }" if (parenthesized_expression "((iVar2 == 1) && (param_1 == *piVar1))" ( (binary_expression "(iVar2 == 1) && (param_1 == *piVar1)" (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) && (parenthesized_expression "(param_1 == *piVar1)" ( (binary_expression "param_1 == *piVar1" identifier == (pointer_expression "*piVar1" * identifier)) ))) )) (compound_statement "{\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }" { (expression_statement "piVar1[0xf] = piVar1[0xf] | 0x20;" (assignment_expression "piVar1[0xf] = piVar1[0xf] | 0x20" (subscript_expression "piVar1[0xf]" identifier [ number_literal ]) = (binary_expression "piVar1[0xf] | 0x20" (subscript_expression "piVar1[0xf]" identifier [ number_literal ]) | number_literal)) ;) (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n        piVar1 = (int *)piVar1[1];\n      }" else (compound_statement "{\n        piVar1 = (int *)piVar1[1];\n      }" { (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) }))) (if_statement "if (piVar1 == (int *)0x0) break;" 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)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = piVar1[6];" (assignment_expression "iVar2 = piVar1[6]" identifier = (subscript_expression "piVar1[6]" identifier [ number_literal ])) ;) })) })) (expression_statement "FUN_00119160(*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_00119160(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 = (subscript_expression IDENT [ LIT ])) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) (else_clause else (compound_statement { (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 == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00119258(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  FUN_00119160(*(undefined4 *)(param_1 + 0x14));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00119258(int param_1)" (identifier "FUN_00119258") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);\n  if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }\n  FUN_00119160(*(undefined4 *)(param_1 + 0x14));\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(*(int *)(param_1 + 0x18) + 0x2c)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x18) + 0x2c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0x2c)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + 0x2c" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar2 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\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 = piVar1[6];\n    while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }\n  }" ({ "{") (expression_statement "iVar2 = piVar1[6];" (assignment_expression "iVar2 = piVar1[6]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (while_statement "while( true ) {\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = piVar1[6];\n    }" ({ "{") (if_statement "if ((iVar2 == 1) && (param_1 == *piVar1)) {\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }\n      else {\n        piVar1 = (int *)piVar1[1];\n      }" (if "if") (parenthesized_expression "((iVar2 == 1) && (param_1 == *piVar1))" (( "(") (binary_expression "(iVar2 == 1) && (param_1 == *piVar1)" (parenthesized_expression "(iVar2 == 1)" (( "(") (binary_expression "iVar2 == 1" (identifier "iVar2") (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(param_1 == *piVar1)" (( "(") (binary_expression "param_1 == *piVar1" (identifier "param_1") (== "==") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) () ")"))) () ")")) (compound_statement "{\n        piVar1[0xf] = piVar1[0xf] | 0x20;\n        piVar1 = (int *)piVar1[1];\n      }" ({ "{") (expression_statement "piVar1[0xf] = piVar1[0xf] | 0x20;" (assignment_expression "piVar1[0xf] = piVar1[0xf] | 0x20" (subscript_expression "piVar1[0xf]" (identifier "piVar1") ([ "[") (number_literal "0xf") (] "]")) (= "=") (binary_expression "piVar1[0xf] | 0x20" (subscript_expression "piVar1[0xf]" (identifier "piVar1") ([ "[") (number_literal "0xf") (] "]")) (| "|") (number_literal "0x20"))) (; ";")) (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" (identifier "piVar1") (= "=") (cast_expression "(int *)piVar1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")) (else_clause "else {\n        piVar1 = (int *)piVar1[1];\n      }" (else "else") (compound_statement "{\n        piVar1 = (int *)piVar1[1];\n      }" ({ "{") (expression_statement "piVar1 = (int *)piVar1[1];" (assignment_expression "piVar1 = (int *)piVar1[1]" (identifier "piVar1") (= "=") (cast_expression "(int *)piVar1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")))) (if_statement "if (piVar1 == (int *)0x0) break;" (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"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = piVar1[6];" (assignment_expression "iVar2 = piVar1[6]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00119160(*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_00119160(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_00119160") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(type_1 *var_3)

{
  int *var_1;
  int var_2;
  
  var_1 = *(int **)(var_3[1].base.nRef + 0x2c);
  if (var_1 != (int *)0x0) {
    var_2 = var_1[6];
    while( true ) {
      if ((var_2 == 1) && (var_3 == (type_1 *)*var_1)) {
        var_1[0xf] = var_1[0xf] | 0x20;
        var_1 = (int *)var_1[1];
      }
      else {
        var_1 = (int *)var_1[1];
      }
      if (var_1 == (int *)0x0) break;
      var_2 = var_1[6];
    }
  }
  var_2 = var_4((type_2 *)var_3[1].base.pModule);
  return var_2;
}


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

void MASKED(int param_1)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = *(int **)(*(int *)(param_1 + 0x18) + 0x2c);
  if (piVar1 != (int *)0x0) {
    iVar2 = piVar1[6];
    while( true ) {
      if ((iVar2 == 1) && (param_1 == *piVar1)) {
        piVar1[0xf] = piVar1[0xf] | 0x20;
        piVar1 = (int *)piVar1[1];
      }
      else {
        piVar1 = (int *)piVar1[1];
      }
      if (piVar1 == (int *)0x0) break;
      iVar2 = piVar1[6];
    }
  }
  FUN_00119160(*(undefined4 *)(param_1 + 0x14));
  return;
}

