
void __regparm3 moveToParent(BtCursor *pCur)

{
  u16 uVar1;
  MemPage *pMVar2;
  char cVar3;
  
  cVar3 = pCur->iPage;
  pCur->curFlags = pCur->curFlags & 0xf9;
  (pCur->info).nSize = 0;
  uVar1 = pCur->aiIdx[cVar3 + -1];
  cVar3 = cVar3 + -1;
  pCur->iPage = cVar3;
  pCur->ix = uVar1;
  pMVar2 = pCur->pPage;
  pCur->pPage = pCur->apPage[cVar3];
  sqlite3PagerUnrefNotNull(pMVar2->pDbPage);
  return;
}



void __regparm3 FUN_00038c80(int param_1)

{
  undefined2 uVar1;
  char cVar2;
  
  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;
  *(undefined2 *)(param_1 + 0x2e) = 0;
  uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);
  cVar2 = *(char *)(param_1 + 0x3c) + -1;
  *(char *)(param_1 + 0x3c) = cVar2;
  *(undefined2 *)(param_1 + 0x3e) = uVar1;
  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);
  FUN_000386c0();
  return;
}


MOVSX ECX,byte ptr [EAX + 0x3c]
XOR EDX,EDX
AND byte ptr [EAX + 0x1],0xf9
MOV word ptr [EAX + 0x2e],DX
MOV EDX,ECX
MOVZX ECX,word ptr [EAX + ECX*0x2 + 0x3e]
SUB EDX,0x1
MOV byte ptr [EAX + 0x3c],DL
MOVSX EDX,DL
MOV word ptr [EAX + 0x3e],CX
MOV EDX,dword ptr [EAX + EDX*0x4 + 0x70]
MOV ECX,dword ptr [EAX + 0x6c]
MOV dword ptr [EAX + 0x6c],EDX
MOV EAX,dword ptr [ECX + 0x48]
JMP 0x000386c0
(translation_unit "void __regparm3 FUN_00038c80(int param_1)\n\n{\n  undefined2 uVar1;\n  char cVar2;\n  \n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);\n  cVar2 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar2;\n  *(undefined2 *)(param_1 + 0x3e) = uVar1;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);\n  FUN_000386c0();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00038c80(int param_1)\n\n{\n  undefined2 uVar1;\n  char cVar2;\n  \n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);\n  cVar2 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar2;\n  *(undefined2 *)(param_1 + 0x3e) = uVar1;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);\n  FUN_000386c0();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00038c80(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  \n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);\n  cVar2 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar2;\n  *(undefined2 *)(param_1 + 0x3e) = uVar1;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);\n  FUN_000386c0();\n  return;\n}" { (declaration "undefined2 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (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 "*(undefined2 *)(param_1 + 0x2e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x2e) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x2e)" * (cast_expression "(undefined2 *)(param_1 + 0x2e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2e)" ( (binary_expression "param_1 + 0x2e" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);" (assignment_expression "uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" identifier = (pointer_expression "*(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" * (cast_expression "(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" ( (binary_expression "param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2" (binary_expression "param_1 + 0x3e" identifier + number_literal) + (binary_expression "*(char *)(param_1 + 0x3c) * 2" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) * number_literal)) ))))) ;) (expression_statement "cVar2 = *(char *)(param_1 + 0x3c) + -1;" (assignment_expression "cVar2 = *(char *)(param_1 + 0x3c) + -1" identifier = (binary_expression "*(char *)(param_1 + 0x3c) + -1" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(char *)(param_1 + 0x3c) = cVar2;" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar2" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_1 + 0x3e) = uVar1;" (assignment_expression "*(undefined2 *)(param_1 + 0x3e) = uVar1" (pointer_expression "*(undefined2 *)(param_1 + 0x3e)" * (cast_expression "(undefined2 *)(param_1 + 0x3e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4)" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar2 * 4)" * (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70 + cVar2 * 4)" ( (binary_expression "param_1 + 0x70 + cVar2 * 4" (binary_expression "param_1 + 0x70" identifier + number_literal) + (binary_expression "cVar2 * 4" identifier * number_literal)) ))))) ;) (expression_statement "FUN_000386c0();" (call_expression "FUN_000386c0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 moveToParent(BtCursor *pCur)\n\n{\n  u16 uVar1;\n  MemPage *pMVar2;\n  char cVar3;\n  \n  cVar3 = pCur->iPage;\n  pCur->curFlags = pCur->curFlags & 0xf9;\n  (pCur->info).nSize = 0;\n  uVar1 = pCur->aiIdx[cVar3 + -1];\n  cVar3 = cVar3 + -1;\n  pCur->iPage = cVar3;\n  pCur->ix = uVar1;\n  pMVar2 = pCur->pPage;\n  pCur->pPage = pCur->apPage[cVar3];\n  sqlite3PagerUnrefNotNull(pMVar2->pDbPage);\n  return;\n}\n\n" (function_definition "void __regparm3 moveToParent(BtCursor *pCur)\n\n{\n  u16 uVar1;\n  MemPage *pMVar2;\n  char cVar3;\n  \n  cVar3 = pCur->iPage;\n  pCur->curFlags = pCur->curFlags & 0xf9;\n  (pCur->info).nSize = 0;\n  uVar1 = pCur->aiIdx[cVar3 + -1];\n  cVar3 = cVar3 + -1;\n  pCur->iPage = cVar3;\n  pCur->ix = uVar1;\n  pMVar2 = pCur->pPage;\n  pCur->pPage = pCur->apPage[cVar3];\n  sqlite3PagerUnrefNotNull(pMVar2->pDbPage);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "moveToParent(BtCursor *pCur)" identifier (parameter_list "(BtCursor *pCur)" ( (parameter_declaration "BtCursor *pCur" type_identifier (pointer_declarator "*pCur" * identifier)) ))) (compound_statement "{\n  u16 uVar1;\n  MemPage *pMVar2;\n  char cVar3;\n  \n  cVar3 = pCur->iPage;\n  pCur->curFlags = pCur->curFlags & 0xf9;\n  (pCur->info).nSize = 0;\n  uVar1 = pCur->aiIdx[cVar3 + -1];\n  cVar3 = cVar3 + -1;\n  pCur->iPage = cVar3;\n  pCur->ix = uVar1;\n  pMVar2 = pCur->pPage;\n  pCur->pPage = pCur->apPage[cVar3];\n  sqlite3PagerUnrefNotNull(pMVar2->pDbPage);\n  return;\n}" { (declaration "u16 uVar1;" type_identifier identifier ;) (declaration "MemPage *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (expression_statement "cVar3 = pCur->iPage;" (assignment_expression "cVar3 = pCur->iPage" identifier = (field_expression "pCur->iPage" identifier -> field_identifier)) ;) (expression_statement "pCur->curFlags = pCur->curFlags & 0xf9;" (assignment_expression "pCur->curFlags = pCur->curFlags & 0xf9" (field_expression "pCur->curFlags" identifier -> field_identifier) = (binary_expression "pCur->curFlags & 0xf9" (field_expression "pCur->curFlags" identifier -> field_identifier) & number_literal)) ;) (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 "uVar1 = pCur->aiIdx[cVar3 + -1];" (assignment_expression "uVar1 = pCur->aiIdx[cVar3 + -1]" identifier = (subscript_expression "pCur->aiIdx[cVar3 + -1]" (field_expression "pCur->aiIdx" identifier -> field_identifier) [ (binary_expression "cVar3 + -1" identifier + number_literal) ])) ;) (expression_statement "cVar3 = cVar3 + -1;" (assignment_expression "cVar3 = cVar3 + -1" identifier = (binary_expression "cVar3 + -1" identifier + number_literal)) ;) (expression_statement "pCur->iPage = cVar3;" (assignment_expression "pCur->iPage = cVar3" (field_expression "pCur->iPage" identifier -> field_identifier) = identifier) ;) (expression_statement "pCur->ix = uVar1;" (assignment_expression "pCur->ix = uVar1" (field_expression "pCur->ix" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar2 = pCur->pPage;" (assignment_expression "pMVar2 = pCur->pPage" identifier = (field_expression "pCur->pPage" identifier -> field_identifier)) ;) (expression_statement "pCur->pPage = pCur->apPage[cVar3];" (assignment_expression "pCur->pPage = pCur->apPage[cVar3]" (field_expression "pCur->pPage" identifier -> field_identifier) = (subscript_expression "pCur->apPage[cVar3]" (field_expression "pCur->apPage" identifier -> field_identifier) [ identifier ])) ;) (expression_statement "sqlite3PagerUnrefNotNull(pMVar2->pDbPage);" (call_expression "sqlite3PagerUnrefNotNull(pMVar2->pDbPage)" identifier (argument_list "(pMVar2->pDbPage)" ( (field_expression "pMVar2->pDbPage" identifier -> field_identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00038c80(int param_1)\n\n{\n  undefined2 uVar1;\n  char cVar2;\n  \n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);\n  cVar2 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar2;\n  *(undefined2 *)(param_1 + 0x3e) = uVar1;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);\n  FUN_000386c0();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00038c80(int param_1)\n\n{\n  undefined2 uVar1;\n  char cVar2;\n  \n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);\n  cVar2 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar2;\n  *(undefined2 *)(param_1 + 0x3e) = uVar1;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);\n  FUN_000386c0();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00038c80(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  \n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);\n  cVar2 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar2;\n  *(undefined2 *)(param_1 + 0x3e) = uVar1;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);\n  FUN_000386c0();\n  return;\n}" { (declaration "undefined2 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (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 "*(undefined2 *)(param_1 + 0x2e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x2e) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x2e)" * (cast_expression "(undefined2 *)(param_1 + 0x2e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2e)" ( (binary_expression "param_1 + 0x2e" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);" (assignment_expression "uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" identifier = (pointer_expression "*(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" * (cast_expression "(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" ( (binary_expression "param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2" (binary_expression "param_1 + 0x3e" identifier + number_literal) + (binary_expression "*(char *)(param_1 + 0x3c) * 2" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) * number_literal)) ))))) ;) (expression_statement "cVar2 = *(char *)(param_1 + 0x3c) + -1;" (assignment_expression "cVar2 = *(char *)(param_1 + 0x3c) + -1" identifier = (binary_expression "*(char *)(param_1 + 0x3c) + -1" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(char *)(param_1 + 0x3c) = cVar2;" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar2" (pointer_expression "*(char *)(param_1 + 0x3c)" * (cast_expression "(char *)(param_1 + 0x3c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_1 + 0x3e) = uVar1;" (assignment_expression "*(undefined2 *)(param_1 + 0x3e) = uVar1" (pointer_expression "*(undefined2 *)(param_1 + 0x3e)" * (cast_expression "(undefined2 *)(param_1 + 0x3e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4)" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar2 * 4)" * (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70 + cVar2 * 4)" ( (binary_expression "param_1 + 0x70 + cVar2 * 4" (binary_expression "param_1 + 0x70" identifier + number_literal) + (binary_expression "cVar2 * 4" identifier * number_literal)) ))))) ;) (expression_statement "FUN_000386c0();" (call_expression "FUN_000386c0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (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) )))) = (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) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (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) )))) = 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 (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00038c80(int param_1)\n\n{\n  undefined2 uVar1;\n  char cVar2;\n  \n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);\n  cVar2 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar2;\n  *(undefined2 *)(param_1 + 0x3e) = uVar1;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);\n  FUN_000386c0();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00038c80(int param_1)" (identifier "FUN_00038c80") (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  \n  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n  *(undefined2 *)(param_1 + 0x2e) = 0;\n  uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);\n  cVar2 = *(char *)(param_1 + 0x3c) + -1;\n  *(char *)(param_1 + 0x3c) = cVar2;\n  *(undefined2 *)(param_1 + 0x3e) = uVar1;\n  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);\n  FUN_000386c0();\n  return;\n}" ({ "{") (declaration "undefined2 uVar1;" (type_identifier "undefined2") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (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 "*(undefined2 *)(param_1 + 0x2e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x2e) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x2e)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x2e)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2e)" (( "(") (binary_expression "param_1 + 0x2e" (identifier "param_1") (+ "+") (number_literal "0x2e")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);" (assignment_expression "uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2)" (( "(") (binary_expression "param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2" (binary_expression "param_1 + 0x3e" (identifier "param_1") (+ "+") (number_literal "0x3e")) (+ "+") (binary_expression "*(char *)(param_1 + 0x3c) * 2" (pointer_expression "*(char *)(param_1 + 0x3c)" (* "*") (cast_expression "(char *)(param_1 + 0x3c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (* "*") (number_literal "2"))) () ")"))))) (; ";")) (expression_statement "cVar2 = *(char *)(param_1 + 0x3c) + -1;" (assignment_expression "cVar2 = *(char *)(param_1 + 0x3c) + -1" (identifier "cVar2") (= "=") (binary_expression "*(char *)(param_1 + 0x3c) + -1" (pointer_expression "*(char *)(param_1 + 0x3c)" (* "*") (cast_expression "(char *)(param_1 + 0x3c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(char *)(param_1 + 0x3c) = cVar2;" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar2" (pointer_expression "*(char *)(param_1 + 0x3c)" (* "*") (cast_expression "(char *)(param_1 + 0x3c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (identifier "cVar2")) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x3e) = uVar1;" (assignment_expression "*(undefined2 *)(param_1 + 0x3e) = uVar1" (pointer_expression "*(undefined2 *)(param_1 + 0x3e)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x3e)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3e)" (( "(") (binary_expression "param_1 + 0x3e" (identifier "param_1") (+ "+") (number_literal "0x3e")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4)" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar2 * 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70 + cVar2 * 4)" (( "(") (binary_expression "param_1 + 0x70 + cVar2 * 4" (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) (+ "+") (binary_expression "cVar2 * 4" (identifier "cVar2") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "FUN_000386c0();" (call_expression "FUN_000386c0()" (identifier "FUN_000386c0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *pCur)

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


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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)) (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: (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: (binary_expression left: (identifier) right: (number_literal)) 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: (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: (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: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void __regparm3 MASKED(int param_1)

{
  undefined2 uVar1;
  char cVar2;
  
  *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;
  *(undefined2 *)(param_1 + 0x2e) = 0;
  uVar1 = *(undefined2 *)(param_1 + 0x3e + *(char *)(param_1 + 0x3c) * 2);
  cVar2 = *(char *)(param_1 + 0x3c) + -1;
  *(char *)(param_1 + 0x3c) = cVar2;
  *(undefined2 *)(param_1 + 0x3e) = uVar1;
  *(undefined4 *)(param_1 + 0x6c) = *(undefined4 *)(param_1 + 0x70 + cVar2 * 4);
  FUN_000386c0();
  return;
}

