
int fts5CursorFirst(Fts5FullTable *pTab,Fts5Cursor *pCsr,int bDesc)

{
  int iVar1;
  Fts5Expr *p;
  undefined4 in_stack_ffffffe4;
  
  p = pCsr->pExpr;
  iVar1 = sqlite3Fts5ExprFirst
                    (p,(pTab->p).pIndex,CONCAT44(bDesc,in_stack_ffffffe4),*(int *)&pCsr->iFirstRowid
                    );
  if (p->pRoot->bEof != 0) {
    pCsr->csrflags = pCsr->csrflags | 1;
  }
  pCsr->csrflags = pCsr->csrflags | 0x4e;
  return iVar1;
}



void FUN_00143158(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = *(int *)(param_2 + 0x34);
  FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),
               *(undefined4 *)(param_2 + 0x24),param_3);
  if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {
    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;
  }
  *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;
  return;
}


lui gp,0x5
addiu gp,gp,0x47c8
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s1,0x28(sp)
sw s0,0x24(sp)
sw gp,0x18(sp)
or s0,a1,zero
lw s1,0x34(a1)
lw a1,0x10(a0)
sw a2,0x10(sp)
lw a3,0x24(s0)
lw a2,0x20(s0)
or a0,s1,zero
lw t9,-0x7d40(gp)
addiu t9,t9,0x3014
bal 0x00143014
_nop
lw gp,0x18(sp)
lw v1,0x8(s1)
lw v1,0x4(v1)
beq v1,zero,0x001431c4
_nop
lw v1,0x3c(s0)
ori v1,v1,0x1
sw v1,0x3c(s0)
lw v1,0x3c(s0)
ori v1,v1,0x4e
sw v1,0x3c(s0)
lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_00143158(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_2 + 0x34);\n  FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);\n  if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }\n  *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;\n  return;\n}\n\n" (function_definition "void FUN_00143158(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_2 + 0x34);\n  FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);\n  if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }\n  *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;\n  return;\n}" primitive_type (function_declarator "FUN_00143158(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_2 + 0x34);\n  FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);\n  if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }\n  *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x34);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x34)" identifier = (pointer_expression "*(int *)(param_2 + 0x34)" * (cast_expression "(int *)(param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);" (call_expression "FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3)" identifier (argument_list "(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3)" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x24)" * (cast_expression "(undefined4 *)(param_2 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }" if (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 8) + 4) != 0)" ( (binary_expression "*(int *)(*(int *)(iVar1 + 8) + 4) != 0" (pointer_expression "*(int *)(*(int *)(iVar1 + 8) + 4)" * (cast_expression "(int *)(*(int *)(iVar1 + 8) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 8) + 4)" ( (binary_expression "*(int *)(iVar1 + 8) + 4" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }" { (expression_statement "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;" (assignment_expression "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1" (pointer_expression "*(uint *)(param_2 + 0x3c)" * (cast_expression "(uint *)(param_2 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_2 + 0x3c) | 1" (pointer_expression "*(uint *)(param_2 + 0x3c)" * (cast_expression "(uint *)(param_2 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;" (assignment_expression "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e" (pointer_expression "*(uint *)(param_2 + 0x3c)" * (cast_expression "(uint *)(param_2 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_2 + 0x3c) | 0x4e" (pointer_expression "*(uint *)(param_2 + 0x3c)" * (cast_expression "(uint *)(param_2 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "int fts5CursorFirst(Fts5FullTable *pTab,Fts5Cursor *pCsr,int bDesc)\n\n{\n  int iVar1;\n  Fts5Expr *p;\n  undefined4 in_stack_ffffffe4;\n  \n  p = pCsr->pExpr;\n  iVar1 = sqlite3Fts5ExprFirst\n                    (p,(pTab->p).pIndex,CONCAT44(bDesc,in_stack_ffffffe4),*(int *)&pCsr->iFirstRowid\n                    );\n  if (p->pRoot->bEof != 0) {\n    pCsr->csrflags = pCsr->csrflags | 1;\n  }\n  pCsr->csrflags = pCsr->csrflags | 0x4e;\n  return iVar1;\n}\n\n" (function_definition "int fts5CursorFirst(Fts5FullTable *pTab,Fts5Cursor *pCsr,int bDesc)\n\n{\n  int iVar1;\n  Fts5Expr *p;\n  undefined4 in_stack_ffffffe4;\n  \n  p = pCsr->pExpr;\n  iVar1 = sqlite3Fts5ExprFirst\n                    (p,(pTab->p).pIndex,CONCAT44(bDesc,in_stack_ffffffe4),*(int *)&pCsr->iFirstRowid\n                    );\n  if (p->pRoot->bEof != 0) {\n    pCsr->csrflags = pCsr->csrflags | 1;\n  }\n  pCsr->csrflags = pCsr->csrflags | 0x4e;\n  return iVar1;\n}" primitive_type (function_declarator "fts5CursorFirst(Fts5FullTable *pTab,Fts5Cursor *pCsr,int bDesc)" identifier (parameter_list "(Fts5FullTable *pTab,Fts5Cursor *pCsr,int bDesc)" ( (parameter_declaration "Fts5FullTable *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) , (parameter_declaration "Fts5Cursor *pCsr" type_identifier (pointer_declarator "*pCsr" * identifier)) , (parameter_declaration "int bDesc" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  Fts5Expr *p;\n  undefined4 in_stack_ffffffe4;\n  \n  p = pCsr->pExpr;\n  iVar1 = sqlite3Fts5ExprFirst\n                    (p,(pTab->p).pIndex,CONCAT44(bDesc,in_stack_ffffffe4),*(int *)&pCsr->iFirstRowid\n                    );\n  if (p->pRoot->bEof != 0) {\n    pCsr->csrflags = pCsr->csrflags | 1;\n  }\n  pCsr->csrflags = pCsr->csrflags | 0x4e;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Fts5Expr *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "undefined4 in_stack_ffffffe4;" type_identifier identifier ;) (expression_statement "p = pCsr->pExpr;" (assignment_expression "p = pCsr->pExpr" identifier = (field_expression "pCsr->pExpr" identifier -> field_identifier)) ;) (expression_statement "iVar1 = sqlite3Fts5ExprFirst\n                    (p,(pTab->p).pIndex,CONCAT44(bDesc,in_stack_ffffffe4),*(int *)&pCsr->iFirstRowid\n                    );" (assignment_expression "iVar1 = sqlite3Fts5ExprFirst\n                    (p,(pTab->p).pIndex,CONCAT44(bDesc,in_stack_ffffffe4),*(int *)&pCsr->iFirstRowid\n                    )" identifier = (call_expression "sqlite3Fts5ExprFirst\n                    (p,(pTab->p).pIndex,CONCAT44(bDesc,in_stack_ffffffe4),*(int *)&pCsr->iFirstRowid\n                    )" identifier (argument_list "(p,(pTab->p).pIndex,CONCAT44(bDesc,in_stack_ffffffe4),*(int *)&pCsr->iFirstRowid\n                    )" ( identifier , (field_expression "(pTab->p).pIndex" (parenthesized_expression "(pTab->p)" ( (field_expression "pTab->p" identifier -> field_identifier) )) . field_identifier) , (call_expression "CONCAT44(bDesc,in_stack_ffffffe4)" identifier (argument_list "(bDesc,in_stack_ffffffe4)" ( identifier , identifier ))) , (pointer_expression "*(int *)&pCsr->iFirstRowid" * (cast_expression "(int *)&pCsr->iFirstRowid" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCsr->iFirstRowid" & (field_expression "pCsr->iFirstRowid" identifier -> field_identifier)))) )))) ;) (if_statement "if (p->pRoot->bEof != 0) {\n    pCsr->csrflags = pCsr->csrflags | 1;\n  }" if (parenthesized_expression "(p->pRoot->bEof != 0)" ( (binary_expression "p->pRoot->bEof != 0" (field_expression "p->pRoot->bEof" (field_expression "p->pRoot" identifier -> field_identifier) -> field_identifier) != number_literal) )) (compound_statement "{\n    pCsr->csrflags = pCsr->csrflags | 1;\n  }" { (expression_statement "pCsr->csrflags = pCsr->csrflags | 1;" (assignment_expression "pCsr->csrflags = pCsr->csrflags | 1" (field_expression "pCsr->csrflags" identifier -> field_identifier) = (binary_expression "pCsr->csrflags | 1" (field_expression "pCsr->csrflags" identifier -> field_identifier) | number_literal)) ;) })) (expression_statement "pCsr->csrflags = pCsr->csrflags | 0x4e;" (assignment_expression "pCsr->csrflags = pCsr->csrflags | 0x4e" (field_expression "pCsr->csrflags" identifier -> field_identifier) = (binary_expression "pCsr->csrflags | 0x4e" (field_expression "pCsr->csrflags" identifier -> field_identifier) | number_literal)) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_00143158(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_2 + 0x34);\n  FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);\n  if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }\n  *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;\n  return;\n}\n\n" (function_definition "void FUN_00143158(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_2 + 0x34);\n  FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);\n  if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }\n  *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;\n  return;\n}" primitive_type (function_declarator "FUN_00143158(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_2 + 0x34);\n  FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);\n  if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }\n  *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x34);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x34)" identifier = (pointer_expression "*(int *)(param_2 + 0x34)" * (cast_expression "(int *)(param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);" (call_expression "FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3)" identifier (argument_list "(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3)" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x24)" * (cast_expression "(undefined4 *)(param_2 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }" if (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 8) + 4) != 0)" ( (binary_expression "*(int *)(*(int *)(iVar1 + 8) + 4) != 0" (pointer_expression "*(int *)(*(int *)(iVar1 + 8) + 4)" * (cast_expression "(int *)(*(int *)(iVar1 + 8) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 8) + 4)" ( (binary_expression "*(int *)(iVar1 + 8) + 4" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }" { (expression_statement "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;" (assignment_expression "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1" (pointer_expression "*(uint *)(param_2 + 0x3c)" * (cast_expression "(uint *)(param_2 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_2 + 0x3c) | 1" (pointer_expression "*(uint *)(param_2 + 0x3c)" * (cast_expression "(uint *)(param_2 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;" (assignment_expression "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e" (pointer_expression "*(uint *)(param_2 + 0x3c)" * (cast_expression "(uint *)(param_2 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_2 + 0x3c) | 0x4e" (pointer_expression "*(uint *)(param_2 + 0x3c)" * (cast_expression "(uint *)(param_2 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != LIT) )) (compound_statement { (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)) ;) })) (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)) ;) (return_statement return ;) })))
(function_definition "void FUN_00143158(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_2 + 0x34);\n  FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);\n  if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }\n  *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00143158(int param_1,int param_2,undefined4 param_3)" (identifier "FUN_00143158") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_2 + 0x34);\n  FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);\n  if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }\n  *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 0x34);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x34)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 0x34)" (* "*") (cast_expression "(int *)(param_2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x34)" (( "(") (binary_expression "param_2 + 0x34" (identifier "param_2") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3);" (call_expression "FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3)" (identifier "FUN_00143014") (argument_list "(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),\n               *(undefined4 *)(param_2 + 0x24),param_3)" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")")))) (, ",") (identifier "param_3") () ")"))) (; ";")) (if_statement "if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 8) + 4) != 0)" (( "(") (binary_expression "*(int *)(*(int *)(iVar1 + 8) + 4) != 0" (pointer_expression "*(int *)(*(int *)(iVar1 + 8) + 4)" (* "*") (cast_expression "(int *)(*(int *)(iVar1 + 8) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 8) + 4)" (( "(") (binary_expression "*(int *)(iVar1 + 8) + 4" (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;\n  }" ({ "{") (expression_statement "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;" (assignment_expression "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1" (pointer_expression "*(uint *)(param_2 + 0x3c)" (* "*") (cast_expression "(uint *)(param_2 + 0x3c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3c)" (( "(") (binary_expression "param_2 + 0x3c" (identifier "param_2") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "*(uint *)(param_2 + 0x3c) | 1" (pointer_expression "*(uint *)(param_2 + 0x3c)" (* "*") (cast_expression "(uint *)(param_2 + 0x3c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3c)" (( "(") (binary_expression "param_2 + 0x3c" (identifier "param_2") (+ "+") (number_literal "0x3c")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;" (assignment_expression "*(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e" (pointer_expression "*(uint *)(param_2 + 0x3c)" (* "*") (cast_expression "(uint *)(param_2 + 0x3c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3c)" (( "(") (binary_expression "param_2 + 0x3c" (identifier "param_2") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "*(uint *)(param_2 + 0x3c) | 0x4e" (pointer_expression "*(uint *)(param_2 + 0x3c)" (* "*") (cast_expression "(uint *)(param_2 + 0x3c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3c)" (( "(") (binary_expression "param_2 + 0x3c" (identifier "param_2") (+ "+") (number_literal "0x3c")) () ")")))) (| "|") (number_literal "0x4e"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(type_1 *pTab,type_2 *pCsr,int bDesc)

{
  int iVar1;
  type_3 *p;
  type_4 in_stack_ffffffe4;
  
  p = pCsr->pExpr;
  iVar1 = var_1
                    (p,(pTab->p).pIndex,var_2(bDesc,in_stack_ffffffe4),*(int *)&pCsr->iFirstRowid
                    );
  if (p->pRoot->bEof != 0) {
    pCsr->csrflags = pCsr->csrflags | 1;
  }
  pCsr->csrflags = pCsr->csrflags | 0x4e;
  return iVar1;
}


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

void MASKED(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = *(int *)(param_2 + 0x34);
  FUN_00143014(iVar1,*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_2 + 0x20),
               *(undefined4 *)(param_2 + 0x24),param_3);
  if (*(int *)(*(int *)(iVar1 + 8) + 4) != 0) {
    *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 1;
  }
  *(uint *)(param_2 + 0x3c) = *(uint *)(param_2 + 0x3c) | 0x4e;
  return;
}

