
void moveToParent(BtCursor *pCur)

{
  char cVar1;
  byte bVar2;
  u16 uVar3;
  char cVar4;
  MemPage *pMVar5;
  
  cVar1 = pCur->iPage;
  bVar2 = pCur->curFlags;
  (pCur->info).nSize = 0;
  pMVar5 = pCur->pPage;
  cVar4 = cVar1 + -1;
  pCur->curFlags = bVar2 & 0xf9;
  uVar3 = pCur->aiIdx[cVar1 + -1];
  pCur->iPage = cVar4;
  pCur->ix = uVar3;
  pCur->pPage = pCur->apPage[cVar4];
  sqlite3PagerUnrefNotNull(pMVar5->pDbPage);
  return;
}



void FUN_00041664(int param_1)

{
  undefined2 uVar1;
  char cVar2;
  int iVar3;
  
  *(undefined2 *)(param_1 + 0x32) = 0;
  iVar3 = *(int *)(param_1 + 0x74);
  cVar2 = *(char *)(param_1 + 0x44) + -1;
  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;
  uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);
  *(char *)(param_1 + 0x44) = cVar2;
  *(undefined2 *)(param_1 + 0x46) = uVar1;
  *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);
  FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));
  return;
}


lui gp,0x15
addiu gp,gp,0x72bc
addu gp,gp,t9
lb v0,0x44(a0)
lbu a2,0x1(a0)
sh zero,0x32(a0)
addiu a1,v0,0x23
lw a3,0x74(a0)
addiu v0,v0,-0x1
lw t9,-0x7de0(gp)
sll a1,a1,0x1
seb v0,v0
addu a1,a0,a1
addiu v1,v0,0x1e
andi a2,a2,0xf9
sb a2,0x1(a0)
sll v1,v1,0x2
lhu a1,0x0(a1)
addiu t9,t9,0xee8
addu v1,a0,v1
sb v0,0x44(a0)
sh a1,0x46(a0)
lw v0,0x0(v1)
sw v0,0x74(a0)
b 0x00040ee8
_lw a0,0x48(a3)
(translation_unit "void FUN_00041664(int param_1)\n\n{\n  undefined2 uVar1;\n  char cVar2;\n  int iVar3;\n  \n  *(undefined2 *)(param_1 + 0x32) = 0;\n  iVar3 = *(int *)(param_1 + 0x74);\n  cVar2 = *(char *)(param_1 + 0x44) + -1;\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);\n  *(char *)(param_1 + 0x44) = cVar2;\n  *(undefined2 *)(param_1 + 0x46) = uVar1;\n  *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);\n  FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));\n  return;\n}\n\n" (function_definition "void FUN_00041664(int param_1)\n\n{\n  undefined2 uVar1;\n  char cVar2;\n  int iVar3;\n  \n  *(undefined2 *)(param_1 + 0x32) = 0;\n  iVar3 = *(int *)(param_1 + 0x74);\n  cVar2 = *(char *)(param_1 + 0x44) + -1;\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);\n  *(char *)(param_1 + 0x44) = cVar2;\n  *(undefined2 *)(param_1 + 0x46) = uVar1;\n  *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);\n  FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));\n  return;\n}" primitive_type (function_declarator "FUN_00041664(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined2 uVar1;\n  char cVar2;\n  int iVar3;\n  \n  *(undefined2 *)(param_1 + 0x32) = 0;\n  iVar3 = *(int *)(param_1 + 0x74);\n  cVar2 = *(char *)(param_1 + 0x44) + -1;\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);\n  *(char *)(param_1 + 0x44) = cVar2;\n  *(undefined2 *)(param_1 + 0x46) = uVar1;\n  *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);\n  FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));\n  return;\n}" { (declaration "undefined2 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "*(undefined2 *)(param_1 + 0x32) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x32) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x32)" * (cast_expression "(undefined2 *)(param_1 + 0x32)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x32)" ( (binary_expression "param_1 + 0x32" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) (expression_statement "cVar2 = *(char *)(param_1 + 0x44) + -1;" (assignment_expression "cVar2 = *(char *)(param_1 + 0x44) + -1" identifier = (binary_expression "*(char *)(param_1 + 0x44) + -1" (pointer_expression "*(char *)(param_1 + 0x44)" * (cast_expression "(char *)(param_1 + 0x44)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;" (assignment_expression "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);" (assignment_expression "uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" identifier = (pointer_expression "*(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" * (cast_expression "(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" ( (binary_expression "param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2" identifier + (binary_expression "(*(char *)(param_1 + 0x44) + 0x23) * 2" (parenthesized_expression "(*(char *)(param_1 + 0x44) + 0x23)" ( (binary_expression "*(char *)(param_1 + 0x44) + 0x23" (pointer_expression "*(char *)(param_1 + 0x44)" * (cast_expression "(char *)(param_1 + 0x44)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal) )) * number_literal)) ))))) ;) (expression_statement "*(char *)(param_1 + 0x44) = cVar2;" (assignment_expression "*(char *)(param_1 + 0x44) = cVar2" (pointer_expression "*(char *)(param_1 + 0x44)" * (cast_expression "(char *)(param_1 + 0x44)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_1 + 0x46) = uVar1;" (assignment_expression "*(undefined2 *)(param_1 + 0x46) = uVar1" (pointer_expression "*(undefined2 *)(param_1 + 0x46)" * (cast_expression "(undefined2 *)(param_1 + 0x46)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x46)" ( (binary_expression "param_1 + 0x46" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4)" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4)" * (cast_expression "(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (cVar2 + 0x1e) * 4)" ( (binary_expression "param_1 + (cVar2 + 0x1e) * 4" identifier + (binary_expression "(cVar2 + 0x1e) * 4" (parenthesized_expression "(cVar2 + 0x1e)" ( (binary_expression "cVar2 + 0x1e" identifier + number_literal) )) * number_literal)) ))))) ;) (expression_statement "FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));" (call_expression "FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48))" identifier (argument_list "(*(undefined4 *)(iVar3 + 0x48))" ( (pointer_expression "*(undefined4 *)(iVar3 + 0x48)" * (cast_expression "(undefined4 *)(iVar3 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x48)" ( (binary_expression "iVar3 + 0x48" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void moveToParent(BtCursor *pCur)\n\n{\n  char cVar1;\n  byte bVar2;\n  u16 uVar3;\n  char cVar4;\n  MemPage *pMVar5;\n  \n  cVar1 = pCur->iPage;\n  bVar2 = pCur->curFlags;\n  (pCur->info).nSize = 0;\n  pMVar5 = pCur->pPage;\n  cVar4 = cVar1 + -1;\n  pCur->curFlags = bVar2 & 0xf9;\n  uVar3 = pCur->aiIdx[cVar1 + -1];\n  pCur->iPage = cVar4;\n  pCur->ix = uVar3;\n  pCur->pPage = pCur->apPage[cVar4];\n  sqlite3PagerUnrefNotNull(pMVar5->pDbPage);\n  return;\n}\n\n" (function_definition "void moveToParent(BtCursor *pCur)\n\n{\n  char cVar1;\n  byte bVar2;\n  u16 uVar3;\n  char cVar4;\n  MemPage *pMVar5;\n  \n  cVar1 = pCur->iPage;\n  bVar2 = pCur->curFlags;\n  (pCur->info).nSize = 0;\n  pMVar5 = pCur->pPage;\n  cVar4 = cVar1 + -1;\n  pCur->curFlags = bVar2 & 0xf9;\n  uVar3 = pCur->aiIdx[cVar1 + -1];\n  pCur->iPage = cVar4;\n  pCur->ix = uVar3;\n  pCur->pPage = pCur->apPage[cVar4];\n  sqlite3PagerUnrefNotNull(pMVar5->pDbPage);\n  return;\n}" primitive_type (function_declarator "moveToParent(BtCursor *pCur)" identifier (parameter_list "(BtCursor *pCur)" ( (parameter_declaration "BtCursor *pCur" type_identifier (pointer_declarator "*pCur" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  u16 uVar3;\n  char cVar4;\n  MemPage *pMVar5;\n  \n  cVar1 = pCur->iPage;\n  bVar2 = pCur->curFlags;\n  (pCur->info).nSize = 0;\n  pMVar5 = pCur->pPage;\n  cVar4 = cVar1 + -1;\n  pCur->curFlags = bVar2 & 0xf9;\n  uVar3 = pCur->aiIdx[cVar1 + -1];\n  pCur->iPage = cVar4;\n  pCur->ix = uVar3;\n  pCur->pPage = pCur->apPage[cVar4];\n  sqlite3PagerUnrefNotNull(pMVar5->pDbPage);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "u16 uVar3;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "MemPage *pMVar5;" type_identifier (pointer_declarator "*pMVar5" * identifier) ;) (expression_statement "cVar1 = pCur->iPage;" (assignment_expression "cVar1 = pCur->iPage" identifier = (field_expression "pCur->iPage" identifier -> field_identifier)) ;) (expression_statement "bVar2 = pCur->curFlags;" (assignment_expression "bVar2 = pCur->curFlags" identifier = (field_expression "pCur->curFlags" identifier -> field_identifier)) ;) (expression_statement "(pCur->info).nSize = 0;" (assignment_expression "(pCur->info).nSize = 0" (field_expression "(pCur->info).nSize" (parenthesized_expression "(pCur->info)" ( (field_expression "pCur->info" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "pMVar5 = pCur->pPage;" (assignment_expression "pMVar5 = pCur->pPage" identifier = (field_expression "pCur->pPage" identifier -> field_identifier)) ;) (expression_statement "cVar4 = cVar1 + -1;" (assignment_expression "cVar4 = cVar1 + -1" identifier = (binary_expression "cVar1 + -1" identifier + number_literal)) ;) (expression_statement "pCur->curFlags = bVar2 & 0xf9;" (assignment_expression "pCur->curFlags = bVar2 & 0xf9" (field_expression "pCur->curFlags" identifier -> field_identifier) = (binary_expression "bVar2 & 0xf9" identifier & number_literal)) ;) (expression_statement "uVar3 = pCur->aiIdx[cVar1 + -1];" (assignment_expression "uVar3 = pCur->aiIdx[cVar1 + -1]" identifier = (subscript_expression "pCur->aiIdx[cVar1 + -1]" (field_expression "pCur->aiIdx" identifier -> field_identifier) [ (binary_expression "cVar1 + -1" identifier + number_literal) ])) ;) (expression_statement "pCur->iPage = cVar4;" (assignment_expression "pCur->iPage = cVar4" (field_expression "pCur->iPage" identifier -> field_identifier) = identifier) ;) (expression_statement "pCur->ix = uVar3;" (assignment_expression "pCur->ix = uVar3" (field_expression "pCur->ix" identifier -> field_identifier) = identifier) ;) (expression_statement "pCur->pPage = pCur->apPage[cVar4];" (assignment_expression "pCur->pPage = pCur->apPage[cVar4]" (field_expression "pCur->pPage" identifier -> field_identifier) = (subscript_expression "pCur->apPage[cVar4]" (field_expression "pCur->apPage" identifier -> field_identifier) [ identifier ])) ;) (expression_statement "sqlite3PagerUnrefNotNull(pMVar5->pDbPage);" (call_expression "sqlite3PagerUnrefNotNull(pMVar5->pDbPage)" identifier (argument_list "(pMVar5->pDbPage)" ( (field_expression "pMVar5->pDbPage" identifier -> field_identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00041664(int param_1)\n\n{\n  undefined2 uVar1;\n  char cVar2;\n  int iVar3;\n  \n  *(undefined2 *)(param_1 + 0x32) = 0;\n  iVar3 = *(int *)(param_1 + 0x74);\n  cVar2 = *(char *)(param_1 + 0x44) + -1;\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);\n  *(char *)(param_1 + 0x44) = cVar2;\n  *(undefined2 *)(param_1 + 0x46) = uVar1;\n  *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);\n  FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));\n  return;\n}\n\n" (function_definition "void FUN_00041664(int param_1)\n\n{\n  undefined2 uVar1;\n  char cVar2;\n  int iVar3;\n  \n  *(undefined2 *)(param_1 + 0x32) = 0;\n  iVar3 = *(int *)(param_1 + 0x74);\n  cVar2 = *(char *)(param_1 + 0x44) + -1;\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);\n  *(char *)(param_1 + 0x44) = cVar2;\n  *(undefined2 *)(param_1 + 0x46) = uVar1;\n  *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);\n  FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));\n  return;\n}" primitive_type (function_declarator "FUN_00041664(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined2 uVar1;\n  char cVar2;\n  int iVar3;\n  \n  *(undefined2 *)(param_1 + 0x32) = 0;\n  iVar3 = *(int *)(param_1 + 0x74);\n  cVar2 = *(char *)(param_1 + 0x44) + -1;\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);\n  *(char *)(param_1 + 0x44) = cVar2;\n  *(undefined2 *)(param_1 + 0x46) = uVar1;\n  *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);\n  FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));\n  return;\n}" { (declaration "undefined2 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "*(undefined2 *)(param_1 + 0x32) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x32) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x32)" * (cast_expression "(undefined2 *)(param_1 + 0x32)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x32)" ( (binary_expression "param_1 + 0x32" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) (expression_statement "cVar2 = *(char *)(param_1 + 0x44) + -1;" (assignment_expression "cVar2 = *(char *)(param_1 + 0x44) + -1" identifier = (binary_expression "*(char *)(param_1 + 0x44) + -1" (pointer_expression "*(char *)(param_1 + 0x44)" * (cast_expression "(char *)(param_1 + 0x44)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;" (assignment_expression "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);" (assignment_expression "uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" identifier = (pointer_expression "*(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" * (cast_expression "(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" ( (binary_expression "param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2" identifier + (binary_expression "(*(char *)(param_1 + 0x44) + 0x23) * 2" (parenthesized_expression "(*(char *)(param_1 + 0x44) + 0x23)" ( (binary_expression "*(char *)(param_1 + 0x44) + 0x23" (pointer_expression "*(char *)(param_1 + 0x44)" * (cast_expression "(char *)(param_1 + 0x44)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal) )) * number_literal)) ))))) ;) (expression_statement "*(char *)(param_1 + 0x44) = cVar2;" (assignment_expression "*(char *)(param_1 + 0x44) = cVar2" (pointer_expression "*(char *)(param_1 + 0x44)" * (cast_expression "(char *)(param_1 + 0x44)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_1 + 0x46) = uVar1;" (assignment_expression "*(undefined2 *)(param_1 + 0x46) = uVar1" (pointer_expression "*(undefined2 *)(param_1 + 0x46)" * (cast_expression "(undefined2 *)(param_1 + 0x46)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x46)" ( (binary_expression "param_1 + 0x46" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4)" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4)" * (cast_expression "(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (cVar2 + 0x1e) * 4)" ( (binary_expression "param_1 + (cVar2 + 0x1e) * 4" identifier + (binary_expression "(cVar2 + 0x1e) * 4" (parenthesized_expression "(cVar2 + 0x1e)" ( (binary_expression "cVar2 + 0x1e" identifier + number_literal) )) * number_literal)) ))))) ;) (expression_statement "FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));" (call_expression "FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48))" identifier (argument_list "(*(undefined4 *)(iVar3 + 0x48))" ( (pointer_expression "*(undefined4 *)(iVar3 + 0x48)" * (cast_expression "(undefined4 *)(iVar3 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x48)" ( (binary_expression "iVar3 + 0x48" 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (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)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )) * LIT)) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (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 + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * 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_00041664(int param_1)\n\n{\n  undefined2 uVar1;\n  char cVar2;\n  int iVar3;\n  \n  *(undefined2 *)(param_1 + 0x32) = 0;\n  iVar3 = *(int *)(param_1 + 0x74);\n  cVar2 = *(char *)(param_1 + 0x44) + -1;\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);\n  *(char *)(param_1 + 0x44) = cVar2;\n  *(undefined2 *)(param_1 + 0x46) = uVar1;\n  *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);\n  FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00041664(int param_1)" (identifier "FUN_00041664") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined2 uVar1;\n  char cVar2;\n  int iVar3;\n  \n  *(undefined2 *)(param_1 + 0x32) = 0;\n  iVar3 = *(int *)(param_1 + 0x74);\n  cVar2 = *(char *)(param_1 + 0x44) + -1;\n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);\n  *(char *)(param_1 + 0x44) = cVar2;\n  *(undefined2 *)(param_1 + 0x46) = uVar1;\n  *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);\n  FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));\n  return;\n}" ({ "{") (declaration "undefined2 uVar1;" (type_identifier "undefined2") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x32) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x32) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x32)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x32)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x32)" (( "(") (binary_expression "param_1 + 0x32" (identifier "param_1") (+ "+") (number_literal "0x32")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x74)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (expression_statement "cVar2 = *(char *)(param_1 + 0x44) + -1;" (assignment_expression "cVar2 = *(char *)(param_1 + 0x44) + -1" (identifier "cVar2") (= "=") (binary_expression "*(char *)(param_1 + 0x44) + -1" (pointer_expression "*(char *)(param_1 + 0x44)" (* "*") (cast_expression "(char *)(param_1 + 0x44)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;" (assignment_expression "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" (* "*") (cast_expression "(byte *)(param_1 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 1) & 0xf9" (pointer_expression "*(byte *)(param_1 + 1)" (* "*") (cast_expression "(byte *)(param_1 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "0xf9"))) (; ";")) (expression_statement "uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);" (assignment_expression "uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" (* "*") (cast_expression "(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2)" (( "(") (binary_expression "param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2" (identifier "param_1") (+ "+") (binary_expression "(*(char *)(param_1 + 0x44) + 0x23) * 2" (parenthesized_expression "(*(char *)(param_1 + 0x44) + 0x23)" (( "(") (binary_expression "*(char *)(param_1 + 0x44) + 0x23" (pointer_expression "*(char *)(param_1 + 0x44)" (* "*") (cast_expression "(char *)(param_1 + 0x44)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (+ "+") (number_literal "0x23")) () ")")) (* "*") (number_literal "2"))) () ")"))))) (; ";")) (expression_statement "*(char *)(param_1 + 0x44) = cVar2;" (assignment_expression "*(char *)(param_1 + 0x44) = cVar2" (pointer_expression "*(char *)(param_1 + 0x44)" (* "*") (cast_expression "(char *)(param_1 + 0x44)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (identifier "cVar2")) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x46) = uVar1;" (assignment_expression "*(undefined2 *)(param_1 + 0x46) = uVar1" (pointer_expression "*(undefined2 *)(param_1 + 0x46)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x46)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x46)" (( "(") (binary_expression "param_1 + 0x46" (identifier "param_1") (+ "+") (number_literal "0x46")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4)" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (cVar2 + 0x1e) * 4)" (( "(") (binary_expression "param_1 + (cVar2 + 0x1e) * 4" (identifier "param_1") (+ "+") (binary_expression "(cVar2 + 0x1e) * 4" (parenthesized_expression "(cVar2 + 0x1e)" (( "(") (binary_expression "cVar2 + 0x1e" (identifier "cVar2") (+ "+") (number_literal "0x1e")) () ")")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));" (call_expression "FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48))" (identifier "FUN_00040ee8") (argument_list "(*(undefined4 *)(iVar3 + 0x48))" (( "(") (pointer_expression "*(undefined4 *)(iVar3 + 0x48)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x48)" (( "(") (binary_expression "iVar3 + 0x48" (identifier "iVar3") (+ "+") (number_literal "0x48")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pCur)

{
  char var_1;
  type_2 var_2;
  type_3 uVar3;
  char cVar4;
  type_4 *pMVar5;
  
  var_1 = pCur->iPage;
  var_2 = pCur->curFlags;
  (pCur->info).nSize = 0;
  pMVar5 = pCur->pPage;
  cVar4 = var_1 + -1;
  pCur->curFlags = var_2 & 0xf9;
  uVar3 = pCur->aiIdx[var_1 + -1];
  pCur->iPage = cVar4;
  pCur->ix = uVar3;
  pCur->pPage = pCur->apPage[cVar4];
  var_3(pMVar5->pDbPage);
  return;
}


(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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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: (number_literal))) (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 (assignment_expression left: (identifier) right: (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)))) (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: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (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)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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)

{
  undefined2 uVar1;
  char cVar2;
  int iVar3;
  
  *(undefined2 *)(param_1 + 0x32) = 0;
  iVar3 = *(int *)(param_1 + 0x74);
  cVar2 = *(char *)(param_1 + 0x44) + -1;
  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;
  uVar1 = *(undefined2 *)(param_1 + (*(char *)(param_1 + 0x44) + 0x23) * 2);
  *(char *)(param_1 + 0x44) = cVar2;
  *(undefined2 *)(param_1 + 0x46) = uVar1;
  *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + (cVar2 + 0x1e) * 4);
  FUN_00040ee8(*(undefined4 *)(iVar3 + 0x48));
  return;
}

