
int fts5SavepointMethod(sqlite3_vtab *pVtab,int iSavepoint)

{
  int iVar1;
  _func_int_sqlite3_vtab_cursor_ptr *p_Var2;
  
  for (p_Var2 = (pVtab[2].pModule)->xNext; p_Var2 != (_func_int_sqlite3_vtab_cursor_ptr *)0x0;
      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)) {
    while ((*(int *)(p_Var2 + 0x20) != 1 || (pVtab != *(sqlite3_vtab **)p_Var2))) {
      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8);
      if (p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0) goto LAB_001d2a81;
    }
    *(uint *)(p_Var2 + 0x50) = *(uint *)(p_Var2 + 0x50) | 0x20;
  }
LAB_001d2a81:
  iVar1 = sqlite3Fts5StorageSync((Fts5Storage *)pVtab[1].zErrMsg);
  return iVar1;
}



void thunk_FUN_001d2a50(long param_1)

{
  long *plVar1;
  
  for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;
      plVar1 = (long *)plVar1[1]) {
    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {
      plVar1 = (long *)plVar1[1];
      if (plVar1 == (long *)0x0) goto LAB_001d2a81;
    }
    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;
  }
LAB_001d2a81:
  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));
  return;
}


JMP 0x001d2a50
(translation_unit "void thunk_FUN_001d2a50(long param_1)\n\n{\n  long *plVar1;\n  \n  for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }\nLAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));\n  return;\n}\n\n" (function_definition "void thunk_FUN_001d2a50(long param_1)\n\n{\n  long *plVar1;\n  \n  for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }\nLAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));\n  return;\n}" primitive_type (function_declarator "thunk_FUN_001d2a50(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long *plVar1;\n  \n  for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }\nLAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (for_statement "for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }" for ( (assignment_expression "plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48)" identifier = (pointer_expression "*(long **)(*(long *)(param_1 + 0x30) + 0x48)" * (cast_expression "(long **)(*(long *)(param_1 + 0x30) + 0x48)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 0x30) + 0x48)" ( (binary_expression "*(long *)(param_1 + 0x30) + 0x48" (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) + number_literal) ))))) ; (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "plVar1 = (long *)plVar1[1]" identifier = (cast_expression "(long *)plVar1[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[1]" identifier [ number_literal ]))) ) (compound_statement "{\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }" { (while_statement "while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }" while (parenthesized_expression "(((int)plVar1[4] != 1 || (param_1 != *plVar1)))" ( (parenthesized_expression "((int)plVar1[4] != 1 || (param_1 != *plVar1))" ( (binary_expression "(int)plVar1[4] != 1 || (param_1 != *plVar1)" (binary_expression "(int)plVar1[4] != 1" (cast_expression "(int)plVar1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar1[4]" identifier [ number_literal ])) != number_literal) || (parenthesized_expression "(param_1 != *plVar1)" ( (binary_expression "param_1 != *plVar1" identifier != (pointer_expression "*plVar1" * identifier)) ))) )) )) (compound_statement "{\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }" { (expression_statement "plVar1 = (long *)plVar1[1];" (assignment_expression "plVar1 = (long *)plVar1[1]" identifier = (cast_expression "(long *)plVar1[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (plVar1 == (long *)0x0) goto LAB_001d2a81;" if (parenthesized_expression "(plVar1 == (long *)0x0)" ( (binary_expression "plVar1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001d2a81;" goto statement_identifier ;)) })) (expression_statement "*(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;" (assignment_expression "*(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20" (pointer_expression "*(uint *)(plVar1 + 10)" * (cast_expression "(uint *)(plVar1 + 10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar1 + 10)" ( (binary_expression "plVar1 + 10" identifier + number_literal) )))) = (binary_expression "*(uint *)(plVar1 + 10) | 0x20" (pointer_expression "*(uint *)(plVar1 + 10)" * (cast_expression "(uint *)(plVar1 + 10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar1 + 10)" ( (binary_expression "plVar1 + 10" identifier + number_literal) )))) | number_literal)) ;) })) (labeled_statement "LAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));" statement_identifier : (expression_statement "FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));" (call_expression "FUN_001d29b0(*(undefined8 *)(param_1 + 0x28))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "int fts5SavepointMethod(sqlite3_vtab *pVtab,int iSavepoint)\n\n{\n  int iVar1;\n  _func_int_sqlite3_vtab_cursor_ptr *p_Var2;\n  \n  for (p_Var2 = (pVtab[2].pModule)->xNext; p_Var2 != (_func_int_sqlite3_vtab_cursor_ptr *)0x0;\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)) {\n    while ((*(int *)(p_Var2 + 0x20) != 1 || (pVtab != *(sqlite3_vtab **)p_Var2))) {\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8);\n      if (p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(p_Var2 + 0x50) = *(uint *)(p_Var2 + 0x50) | 0x20;\n  }\nLAB_001d2a81:\n  iVar1 = sqlite3Fts5StorageSync((Fts5Storage *)pVtab[1].zErrMsg);\n  return iVar1;\n}\n\n" (function_definition "int fts5SavepointMethod(sqlite3_vtab *pVtab,int iSavepoint)\n\n{\n  int iVar1;\n  _func_int_sqlite3_vtab_cursor_ptr *p_Var2;\n  \n  for (p_Var2 = (pVtab[2].pModule)->xNext; p_Var2 != (_func_int_sqlite3_vtab_cursor_ptr *)0x0;\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)) {\n    while ((*(int *)(p_Var2 + 0x20) != 1 || (pVtab != *(sqlite3_vtab **)p_Var2))) {\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8);\n      if (p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(p_Var2 + 0x50) = *(uint *)(p_Var2 + 0x50) | 0x20;\n  }\nLAB_001d2a81:\n  iVar1 = sqlite3Fts5StorageSync((Fts5Storage *)pVtab[1].zErrMsg);\n  return iVar1;\n}" primitive_type (function_declarator "fts5SavepointMethod(sqlite3_vtab *pVtab,int iSavepoint)" identifier (parameter_list "(sqlite3_vtab *pVtab,int iSavepoint)" ( (parameter_declaration "sqlite3_vtab *pVtab" type_identifier (pointer_declarator "*pVtab" * identifier)) , (parameter_declaration "int iSavepoint" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  _func_int_sqlite3_vtab_cursor_ptr *p_Var2;\n  \n  for (p_Var2 = (pVtab[2].pModule)->xNext; p_Var2 != (_func_int_sqlite3_vtab_cursor_ptr *)0x0;\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)) {\n    while ((*(int *)(p_Var2 + 0x20) != 1 || (pVtab != *(sqlite3_vtab **)p_Var2))) {\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8);\n      if (p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(p_Var2 + 0x50) = *(uint *)(p_Var2 + 0x50) | 0x20;\n  }\nLAB_001d2a81:\n  iVar1 = sqlite3Fts5StorageSync((Fts5Storage *)pVtab[1].zErrMsg);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "_func_int_sqlite3_vtab_cursor_ptr *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (for_statement "for (p_Var2 = (pVtab[2].pModule)->xNext; p_Var2 != (_func_int_sqlite3_vtab_cursor_ptr *)0x0;\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)) {\n    while ((*(int *)(p_Var2 + 0x20) != 1 || (pVtab != *(sqlite3_vtab **)p_Var2))) {\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8);\n      if (p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(p_Var2 + 0x50) = *(uint *)(p_Var2 + 0x50) | 0x20;\n  }" for ( (assignment_expression "p_Var2 = (pVtab[2].pModule)->xNext" identifier = (field_expression "(pVtab[2].pModule)->xNext" (parenthesized_expression "(pVtab[2].pModule)" ( (field_expression "pVtab[2].pModule" (subscript_expression "pVtab[2]" identifier [ number_literal ]) . field_identifier) )) -> field_identifier)) ; (binary_expression "p_Var2 != (_func_int_sqlite3_vtab_cursor_ptr *)0x0" identifier != (cast_expression "(_func_int_sqlite3_vtab_cursor_ptr *)0x0" ( (type_descriptor "_func_int_sqlite3_vtab_cursor_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)" identifier = (pointer_expression "*(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)" * (cast_expression "(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)" ( (type_descriptor "_func_int_sqlite3_vtab_cursor_ptr **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var2 + 8)" ( (binary_expression "p_Var2 + 8" identifier + number_literal) ))))) ) (compound_statement "{\n    while ((*(int *)(p_Var2 + 0x20) != 1 || (pVtab != *(sqlite3_vtab **)p_Var2))) {\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8);\n      if (p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(p_Var2 + 0x50) = *(uint *)(p_Var2 + 0x50) | 0x20;\n  }" { (while_statement "while ((*(int *)(p_Var2 + 0x20) != 1 || (pVtab != *(sqlite3_vtab **)p_Var2))) {\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8);\n      if (p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0) goto LAB_001d2a81;\n    }" while (parenthesized_expression "((*(int *)(p_Var2 + 0x20) != 1 || (pVtab != *(sqlite3_vtab **)p_Var2)))" ( (parenthesized_expression "(*(int *)(p_Var2 + 0x20) != 1 || (pVtab != *(sqlite3_vtab **)p_Var2))" ( (binary_expression "*(int *)(p_Var2 + 0x20) != 1 || (pVtab != *(sqlite3_vtab **)p_Var2)" (binary_expression "*(int *)(p_Var2 + 0x20) != 1" (pointer_expression "*(int *)(p_Var2 + 0x20)" * (cast_expression "(int *)(p_Var2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p_Var2 + 0x20)" ( (binary_expression "p_Var2 + 0x20" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(pVtab != *(sqlite3_vtab **)p_Var2)" ( (binary_expression "pVtab != *(sqlite3_vtab **)p_Var2" identifier != (pointer_expression "*(sqlite3_vtab **)p_Var2" * (cast_expression "(sqlite3_vtab **)p_Var2" ( (type_descriptor "sqlite3_vtab **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ))) )) )) (compound_statement "{\n      p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8);\n      if (p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0) goto LAB_001d2a81;\n    }" { (expression_statement "p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8);" (assignment_expression "p_Var2 = *(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)" identifier = (pointer_expression "*(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)" * (cast_expression "(_func_int_sqlite3_vtab_cursor_ptr **)(p_Var2 + 8)" ( (type_descriptor "_func_int_sqlite3_vtab_cursor_ptr **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var2 + 8)" ( (binary_expression "p_Var2 + 8" identifier + number_literal) ))))) ;) (if_statement "if (p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0) goto LAB_001d2a81;" if (parenthesized_expression "(p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0)" ( (binary_expression "p_Var2 == (_func_int_sqlite3_vtab_cursor_ptr *)0x0" identifier == (cast_expression "(_func_int_sqlite3_vtab_cursor_ptr *)0x0" ( (type_descriptor "_func_int_sqlite3_vtab_cursor_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001d2a81;" goto statement_identifier ;)) })) (expression_statement "*(uint *)(p_Var2 + 0x50) = *(uint *)(p_Var2 + 0x50) | 0x20;" (assignment_expression "*(uint *)(p_Var2 + 0x50) = *(uint *)(p_Var2 + 0x50) | 0x20" (pointer_expression "*(uint *)(p_Var2 + 0x50)" * (cast_expression "(uint *)(p_Var2 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p_Var2 + 0x50)" ( (binary_expression "p_Var2 + 0x50" identifier + number_literal) )))) = (binary_expression "*(uint *)(p_Var2 + 0x50) | 0x20" (pointer_expression "*(uint *)(p_Var2 + 0x50)" * (cast_expression "(uint *)(p_Var2 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p_Var2 + 0x50)" ( (binary_expression "p_Var2 + 0x50" identifier + number_literal) )))) | number_literal)) ;) })) (labeled_statement "LAB_001d2a81:\n  iVar1 = sqlite3Fts5StorageSync((Fts5Storage *)pVtab[1].zErrMsg);" statement_identifier : (expression_statement "iVar1 = sqlite3Fts5StorageSync((Fts5Storage *)pVtab[1].zErrMsg);" (assignment_expression "iVar1 = sqlite3Fts5StorageSync((Fts5Storage *)pVtab[1].zErrMsg)" identifier = (call_expression "sqlite3Fts5StorageSync((Fts5Storage *)pVtab[1].zErrMsg)" identifier (argument_list "((Fts5Storage *)pVtab[1].zErrMsg)" ( (cast_expression "(Fts5Storage *)pVtab[1].zErrMsg" ( (type_descriptor "Fts5Storage *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pVtab[1].zErrMsg" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) )))) ;)) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void thunk_FUN_001d2a50(long param_1)\n\n{\n  long *plVar1;\n  \n  for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }\nLAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));\n  return;\n}\n\n" (function_definition "void thunk_FUN_001d2a50(long param_1)\n\n{\n  long *plVar1;\n  \n  for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }\nLAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));\n  return;\n}" primitive_type (function_declarator "thunk_FUN_001d2a50(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long *plVar1;\n  \n  for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }\nLAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (for_statement "for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }" for ( (assignment_expression "plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48)" identifier = (pointer_expression "*(long **)(*(long *)(param_1 + 0x30) + 0x48)" * (cast_expression "(long **)(*(long *)(param_1 + 0x30) + 0x48)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 0x30) + 0x48)" ( (binary_expression "*(long *)(param_1 + 0x30) + 0x48" (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) + number_literal) ))))) ; (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "plVar1 = (long *)plVar1[1]" identifier = (cast_expression "(long *)plVar1[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[1]" identifier [ number_literal ]))) ) (compound_statement "{\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }" { (while_statement "while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }" while (parenthesized_expression "(((int)plVar1[4] != 1 || (param_1 != *plVar1)))" ( (parenthesized_expression "((int)plVar1[4] != 1 || (param_1 != *plVar1))" ( (binary_expression "(int)plVar1[4] != 1 || (param_1 != *plVar1)" (binary_expression "(int)plVar1[4] != 1" (cast_expression "(int)plVar1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar1[4]" identifier [ number_literal ])) != number_literal) || (parenthesized_expression "(param_1 != *plVar1)" ( (binary_expression "param_1 != *plVar1" identifier != (pointer_expression "*plVar1" * identifier)) ))) )) )) (compound_statement "{\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }" { (expression_statement "plVar1 = (long *)plVar1[1];" (assignment_expression "plVar1 = (long *)plVar1[1]" identifier = (cast_expression "(long *)plVar1[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (plVar1 == (long *)0x0) goto LAB_001d2a81;" if (parenthesized_expression "(plVar1 == (long *)0x0)" ( (binary_expression "plVar1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001d2a81;" goto statement_identifier ;)) })) (expression_statement "*(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;" (assignment_expression "*(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20" (pointer_expression "*(uint *)(plVar1 + 10)" * (cast_expression "(uint *)(plVar1 + 10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar1 + 10)" ( (binary_expression "plVar1 + 10" identifier + number_literal) )))) = (binary_expression "*(uint *)(plVar1 + 10) | 0x20" (pointer_expression "*(uint *)(plVar1 + 10)" * (cast_expression "(uint *)(plVar1 + 10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar1 + 10)" ( (binary_expression "plVar1 + 10" identifier + number_literal) )))) | number_literal)) ;) })) (labeled_statement "LAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));" statement_identifier : (expression_statement "FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));" (call_expression "FUN_001d29b0(*(undefined8 *)(param_1 + 0x28))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) != LIT) || (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (labeled_statement statement_identifier : (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 thunk_FUN_001d2a50(long param_1)\n\n{\n  long *plVar1;\n  \n  for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }\nLAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));\n  return;\n}" (primitive_type "void") (function_declarator "thunk_FUN_001d2a50(long param_1)" (identifier "thunk_FUN_001d2a50") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long *plVar1;\n  \n  for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }\nLAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (for_statement "for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;\n      plVar1 = (long *)plVar1[1]) {\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }" (for "for") (( "(") (assignment_expression "plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)(*(long *)(param_1 + 0x30) + 0x48)" (* "*") (cast_expression "(long **)(*(long *)(param_1 + 0x30) + 0x48)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x30) + 0x48)" (( "(") (binary_expression "*(long *)(param_1 + 0x30) + 0x48" (pointer_expression "*(long *)(param_1 + 0x30)" (* "*") (cast_expression "(long *)(param_1 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "0x48")) () ")"))))) (; ";") (binary_expression "plVar1 != (long *)0x0" (identifier "plVar1") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "plVar1 = (long *)plVar1[1]" (identifier "plVar1") (= "=") (cast_expression "(long *)plVar1[1]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[1]" (identifier "plVar1") ([ "[") (number_literal "1") (] "]")))) () ")") (compound_statement "{\n    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }\n    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;\n  }" ({ "{") (while_statement "while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }" (while "while") (parenthesized_expression "(((int)plVar1[4] != 1 || (param_1 != *plVar1)))" (( "(") (parenthesized_expression "((int)plVar1[4] != 1 || (param_1 != *plVar1))" (( "(") (binary_expression "(int)plVar1[4] != 1 || (param_1 != *plVar1)" (binary_expression "(int)plVar1[4] != 1" (cast_expression "(int)plVar1[4]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar1[4]" (identifier "plVar1") ([ "[") (number_literal "4") (] "]"))) (!= "!=") (number_literal "1")) (|| "||") (parenthesized_expression "(param_1 != *plVar1)" (( "(") (binary_expression "param_1 != *plVar1" (identifier "param_1") (!= "!=") (pointer_expression "*plVar1" (* "*") (identifier "plVar1"))) () ")"))) () ")")) () ")")) (compound_statement "{\n      plVar1 = (long *)plVar1[1];\n      if (plVar1 == (long *)0x0) goto LAB_001d2a81;\n    }" ({ "{") (expression_statement "plVar1 = (long *)plVar1[1];" (assignment_expression "plVar1 = (long *)plVar1[1]" (identifier "plVar1") (= "=") (cast_expression "(long *)plVar1[1]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[1]" (identifier "plVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (plVar1 == (long *)0x0) goto LAB_001d2a81;" (if "if") (parenthesized_expression "(plVar1 == (long *)0x0)" (( "(") (binary_expression "plVar1 == (long *)0x0" (identifier "plVar1") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_001d2a81;" (goto "goto") (statement_identifier "LAB_001d2a81") (; ";"))) (} "}"))) (expression_statement "*(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;" (assignment_expression "*(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20" (pointer_expression "*(uint *)(plVar1 + 10)" (* "*") (cast_expression "(uint *)(plVar1 + 10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar1 + 10)" (( "(") (binary_expression "plVar1 + 10" (identifier "plVar1") (+ "+") (number_literal "10")) () ")")))) (= "=") (binary_expression "*(uint *)(plVar1 + 10) | 0x20" (pointer_expression "*(uint *)(plVar1 + 10)" (* "*") (cast_expression "(uint *)(plVar1 + 10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar1 + 10)" (( "(") (binary_expression "plVar1 + 10" (identifier "plVar1") (+ "+") (number_literal "10")) () ")")))) (| "|") (number_literal "0x20"))) (; ";")) (} "}"))) (labeled_statement "LAB_001d2a81:\n  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));" (statement_identifier "LAB_001d2a81") (: ":") (expression_statement "FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));" (call_expression "FUN_001d29b0(*(undefined8 *)(param_1 + 0x28))" (identifier "FUN_001d29b0") (argument_list "(*(undefined8 *)(param_1 + 0x28))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(type_1 *var_2,int iSavepoint)

{
  int iVar1;
  type_2 *var_1;
  
  for (var_1 = (var_2[2].pModule)->xNext; var_1 != (type_2 *)0x0;
      var_1 = *(type_2 **)(var_1 + 8)) {
    while ((*(int *)(var_1 + 0x20) != 1 || (var_2 != *(type_1 **)var_1))) {
      var_1 = *(type_2 **)(var_1 + 8);
      if (var_1 == (type_2 *)0x0) goto LAB_001d2a81;
    }
    *(type_3 *)(var_1 + 0x50) = *(type_3 *)(var_1 + 0x50) | 0x20;
  }
LAB_001d2a81:
  iVar1 = var_3((type_4 *)var_2[1].zErrMsg);
  return iVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) condition: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal))) update: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) body: (compound_statement (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (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(long param_1)

{
  long *plVar1;
  
  for (plVar1 = *(long **)(*(long *)(param_1 + 0x30) + 0x48); plVar1 != (long *)0x0;
      plVar1 = (long *)plVar1[1]) {
    while (((int)plVar1[4] != 1 || (param_1 != *plVar1))) {
      plVar1 = (long *)plVar1[1];
      if (plVar1 == (long *)0x0) goto LAB_001d2a81;
    }
    *(uint *)(plVar1 + 10) = *(uint *)(plVar1 + 10) | 0x20;
  }
LAB_001d2a81:
  FUN_001d29b0(*(undefined8 *)(param_1 + 0x28));
  return;
}

