
int __regparm3 moveToChild(BtCursor *pCur,u32 newPgno)

{
  char cVar1;
  u16 uVar2;
  BtShared *pBt;
  int iVar3;
  
  cVar1 = pCur->iPage;
  if (cVar1 < '\x13') {
    pBt = pCur->pBt;
    uVar2 = pCur->ix;
    (pCur->info).nSize = 0;
    pCur->curFlags = pCur->curFlags & 0xf9;
    pCur->aiIdx[cVar1] = uVar2;
    pCur->apPage[cVar1] = pCur->pPage;
    pCur->ix = 0;
    pCur->iPage = cVar1 + '\x01';
    iVar3 = getAndInitPage(pBt,newPgno,&pCur->pPage,pCur,(uint)pCur->curPagerFlags);
    return iVar3;
  }
  iVar3 = sqlite3CorruptError(0x10fd1);
  return iVar3;
}



void __regparm3 FUN_00039b90(int param_1)

{
  char cVar1;
  
  cVar1 = *(char *)(param_1 + 0x3c);
  if (cVar1 < '\x13') {
    *(undefined2 *)(param_1 + 0x2e) = 0;
    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;
    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);
    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);
    *(undefined2 *)(param_1 + 0x3e) = 0;
    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';
    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));
    return;
  }
  FUN_000383f0();
  return;
}


MOVZX ECX,byte ptr [EAX + 0x3c]
CMP CL,0x12
JG 0x00039be8
PUSH EDI
PUSH ESI
XOR ESI,ESI
PUSH EBX
MOV EBX,EAX
MOV EAX,dword ptr [EAX + 0x14]
MOVZX EDI,word ptr [EBX + 0x3e]
MOV word ptr [EBX + 0x2e],SI
MOVSX ESI,CL
AND byte ptr [EBX + 0x1],0xf9
SUB ESP,0x8
ADD ECX,0x1
MOV word ptr [EBX + ESI*0x2 + 0x40],DI
MOV EDI,dword ptr [EBX + 0x6c]
MOV dword ptr [EBX + ESI*0x4 + 0x70],EDI
MOVZX ESI,byte ptr [EBX + 0x2]
XOR EDI,EDI
MOV word ptr [EBX + 0x3e],DI
MOV byte ptr [EBX + 0x3c],CL
LEA ECX,[EBX + 0x6c]
PUSH ESI
PUSH EBX
CALL 0x00039a40
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EAX,0x10fd1
JMP 0x000383f0
(translation_unit "void __regparm3 FUN_00039b90(int param_1)\n\n{\n  char cVar1;\n  \n  cVar1 = *(char *)(param_1 + 0x3c);\n  if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }\n  FUN_000383f0();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00039b90(int param_1)\n\n{\n  char cVar1;\n  \n  cVar1 = *(char *)(param_1 + 0x3c);\n  if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }\n  FUN_000383f0();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00039b90(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  \n  cVar1 = *(char *)(param_1 + 0x3c);\n  if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }\n  FUN_000383f0();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x3c);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x3c)" identifier = (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) ))))) ;) (if_statement "if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }" if (parenthesized_expression "(cVar1 < '\x13')" ( (binary_expression "cVar1 < '\x13'" identifier < (char_literal "'\x13'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }" { (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 "*(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 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);" (assignment_expression "*(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e)" (pointer_expression "*(undefined2 *)(param_1 + 0x40 + cVar1 * 2)" * (cast_expression "(undefined2 *)(param_1 + 0x40 + cVar1 * 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40 + cVar1 * 2)" ( (binary_expression "param_1 + 0x40 + cVar1 * 2" (binary_expression "param_1 + 0x40" identifier + number_literal) + (binary_expression "cVar1 * 2" identifier * number_literal)) )))) = (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) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "*(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c)" (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar1 * 4)" * (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70 + cVar1 * 4)" ( (binary_expression "param_1 + 0x70 + cVar1 * 4" (binary_expression "param_1 + 0x70" identifier + number_literal) + (binary_expression "cVar1 * 4" identifier * number_literal)) )))) = (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) ))))) ;) (expression_statement "*(undefined2 *)(param_1 + 0x3e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3e) = 0" (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) )))) = number_literal) ;) (expression_statement "*(char *)(param_1 + 0x3c) = cVar1 + '\x01';" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar1 + '\x01'" (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) )))) = (binary_expression "cVar1 + '\x01'" identifier + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));" (call_expression "FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2))" identifier (argument_list "(param_1,*(undefined1 *)(param_1 + 2))" ( identifier , (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000383f0();" (call_expression "FUN_000383f0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int __regparm3 moveToChild(BtCursor *pCur,u32 newPgno)\n\n{\n  char cVar1;\n  u16 uVar2;\n  BtShared *pBt;\n  int iVar3;\n  \n  cVar1 = pCur->iPage;\n  if (cVar1 < '\x13') {\n    pBt = pCur->pBt;\n    uVar2 = pCur->ix;\n    (pCur->info).nSize = 0;\n    pCur->curFlags = pCur->curFlags & 0xf9;\n    pCur->aiIdx[cVar1] = uVar2;\n    pCur->apPage[cVar1] = pCur->pPage;\n    pCur->ix = 0;\n    pCur->iPage = cVar1 + '\x01';\n    iVar3 = getAndInitPage(pBt,newPgno,&pCur->pPage,pCur,(uint)pCur->curPagerFlags);\n    return iVar3;\n  }\n  iVar3 = sqlite3CorruptError(0x10fd1);\n  return iVar3;\n}\n\n" (function_definition "int __regparm3 moveToChild(BtCursor *pCur,u32 newPgno)\n\n{\n  char cVar1;\n  u16 uVar2;\n  BtShared *pBt;\n  int iVar3;\n  \n  cVar1 = pCur->iPage;\n  if (cVar1 < '\x13') {\n    pBt = pCur->pBt;\n    uVar2 = pCur->ix;\n    (pCur->info).nSize = 0;\n    pCur->curFlags = pCur->curFlags & 0xf9;\n    pCur->aiIdx[cVar1] = uVar2;\n    pCur->apPage[cVar1] = pCur->pPage;\n    pCur->ix = 0;\n    pCur->iPage = cVar1 + '\x01';\n    iVar3 = getAndInitPage(pBt,newPgno,&pCur->pPage,pCur,(uint)pCur->curPagerFlags);\n    return iVar3;\n  }\n  iVar3 = sqlite3CorruptError(0x10fd1);\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "moveToChild(BtCursor *pCur,u32 newPgno)" identifier (parameter_list "(BtCursor *pCur,u32 newPgno)" ( (parameter_declaration "BtCursor *pCur" type_identifier (pointer_declarator "*pCur" * identifier)) , (parameter_declaration "u32 newPgno" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  u16 uVar2;\n  BtShared *pBt;\n  int iVar3;\n  \n  cVar1 = pCur->iPage;\n  if (cVar1 < '\x13') {\n    pBt = pCur->pBt;\n    uVar2 = pCur->ix;\n    (pCur->info).nSize = 0;\n    pCur->curFlags = pCur->curFlags & 0xf9;\n    pCur->aiIdx[cVar1] = uVar2;\n    pCur->apPage[cVar1] = pCur->pPage;\n    pCur->ix = 0;\n    pCur->iPage = cVar1 + '\x01';\n    iVar3 = getAndInitPage(pBt,newPgno,&pCur->pPage,pCur,(uint)pCur->curPagerFlags);\n    return iVar3;\n  }\n  iVar3 = sqlite3CorruptError(0x10fd1);\n  return iVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "u16 uVar2;" type_identifier identifier ;) (declaration "BtShared *pBt;" type_identifier (pointer_declarator "*pBt" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "cVar1 = pCur->iPage;" (assignment_expression "cVar1 = pCur->iPage" identifier = (field_expression "pCur->iPage" identifier -> field_identifier)) ;) (if_statement "if (cVar1 < '\x13') {\n    pBt = pCur->pBt;\n    uVar2 = pCur->ix;\n    (pCur->info).nSize = 0;\n    pCur->curFlags = pCur->curFlags & 0xf9;\n    pCur->aiIdx[cVar1] = uVar2;\n    pCur->apPage[cVar1] = pCur->pPage;\n    pCur->ix = 0;\n    pCur->iPage = cVar1 + '\x01';\n    iVar3 = getAndInitPage(pBt,newPgno,&pCur->pPage,pCur,(uint)pCur->curPagerFlags);\n    return iVar3;\n  }" if (parenthesized_expression "(cVar1 < '\x13')" ( (binary_expression "cVar1 < '\x13'" identifier < (char_literal "'\x13'" ' escape_sequence ')) )) (compound_statement "{\n    pBt = pCur->pBt;\n    uVar2 = pCur->ix;\n    (pCur->info).nSize = 0;\n    pCur->curFlags = pCur->curFlags & 0xf9;\n    pCur->aiIdx[cVar1] = uVar2;\n    pCur->apPage[cVar1] = pCur->pPage;\n    pCur->ix = 0;\n    pCur->iPage = cVar1 + '\x01';\n    iVar3 = getAndInitPage(pBt,newPgno,&pCur->pPage,pCur,(uint)pCur->curPagerFlags);\n    return iVar3;\n  }" { (expression_statement "pBt = pCur->pBt;" (assignment_expression "pBt = pCur->pBt" identifier = (field_expression "pCur->pBt" identifier -> field_identifier)) ;) (expression_statement "uVar2 = pCur->ix;" (assignment_expression "uVar2 = pCur->ix" identifier = (field_expression "pCur->ix" 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 "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->aiIdx[cVar1] = uVar2;" (assignment_expression "pCur->aiIdx[cVar1] = uVar2" (subscript_expression "pCur->aiIdx[cVar1]" (field_expression "pCur->aiIdx" identifier -> field_identifier) [ identifier ]) = identifier) ;) (expression_statement "pCur->apPage[cVar1] = pCur->pPage;" (assignment_expression "pCur->apPage[cVar1] = pCur->pPage" (subscript_expression "pCur->apPage[cVar1]" (field_expression "pCur->apPage" identifier -> field_identifier) [ identifier ]) = (field_expression "pCur->pPage" identifier -> field_identifier)) ;) (expression_statement "pCur->ix = 0;" (assignment_expression "pCur->ix = 0" (field_expression "pCur->ix" identifier -> field_identifier) = number_literal) ;) (expression_statement "pCur->iPage = cVar1 + '\x01';" (assignment_expression "pCur->iPage = cVar1 + '\x01'" (field_expression "pCur->iPage" identifier -> field_identifier) = (binary_expression "cVar1 + '\x01'" identifier + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "iVar3 = getAndInitPage(pBt,newPgno,&pCur->pPage,pCur,(uint)pCur->curPagerFlags);" (assignment_expression "iVar3 = getAndInitPage(pBt,newPgno,&pCur->pPage,pCur,(uint)pCur->curPagerFlags)" identifier = (call_expression "getAndInitPage(pBt,newPgno,&pCur->pPage,pCur,(uint)pCur->curPagerFlags)" identifier (argument_list "(pBt,newPgno,&pCur->pPage,pCur,(uint)pCur->curPagerFlags)" ( identifier , identifier , (pointer_expression "&pCur->pPage" & (field_expression "pCur->pPage" identifier -> field_identifier)) , identifier , (cast_expression "(uint)pCur->curPagerFlags" ( (type_descriptor "uint" type_identifier) ) (field_expression "pCur->curPagerFlags" identifier -> field_identifier)) )))) ;) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "iVar3 = sqlite3CorruptError(0x10fd1);" (assignment_expression "iVar3 = sqlite3CorruptError(0x10fd1)" identifier = (call_expression "sqlite3CorruptError(0x10fd1)" identifier (argument_list "(0x10fd1)" ( number_literal )))) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_00039b90(int param_1)\n\n{\n  char cVar1;\n  \n  cVar1 = *(char *)(param_1 + 0x3c);\n  if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }\n  FUN_000383f0();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00039b90(int param_1)\n\n{\n  char cVar1;\n  \n  cVar1 = *(char *)(param_1 + 0x3c);\n  if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }\n  FUN_000383f0();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00039b90(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  \n  cVar1 = *(char *)(param_1 + 0x3c);\n  if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }\n  FUN_000383f0();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x3c);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x3c)" identifier = (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) ))))) ;) (if_statement "if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }" if (parenthesized_expression "(cVar1 < '\x13')" ( (binary_expression "cVar1 < '\x13'" identifier < (char_literal "'\x13'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }" { (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 "*(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 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);" (assignment_expression "*(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e)" (pointer_expression "*(undefined2 *)(param_1 + 0x40 + cVar1 * 2)" * (cast_expression "(undefined2 *)(param_1 + 0x40 + cVar1 * 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40 + cVar1 * 2)" ( (binary_expression "param_1 + 0x40 + cVar1 * 2" (binary_expression "param_1 + 0x40" identifier + number_literal) + (binary_expression "cVar1 * 2" identifier * number_literal)) )))) = (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) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "*(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c)" (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar1 * 4)" * (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70 + cVar1 * 4)" ( (binary_expression "param_1 + 0x70 + cVar1 * 4" (binary_expression "param_1 + 0x70" identifier + number_literal) + (binary_expression "cVar1 * 4" identifier * number_literal)) )))) = (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) ))))) ;) (expression_statement "*(undefined2 *)(param_1 + 0x3e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3e) = 0" (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) )))) = number_literal) ;) (expression_statement "*(char *)(param_1 + 0x3c) = cVar1 + '\x01';" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar1 + '\x01'" (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) )))) = (binary_expression "cVar1 + '\x01'" identifier + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));" (call_expression "FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2))" identifier (argument_list "(param_1,*(undefined1 *)(param_1 + 2))" ( identifier , (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000383f0();" (call_expression "FUN_000383f0()" 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 ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (char_literal ' escape_sequence ')) )) (compound_statement { (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 (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 (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + (char_literal ' escape_sequence '))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00039b90(int param_1)\n\n{\n  char cVar1;\n  \n  cVar1 = *(char *)(param_1 + 0x3c);\n  if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }\n  FUN_000383f0();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00039b90(int param_1)" (identifier "FUN_00039b90") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char cVar1;\n  \n  cVar1 = *(char *)(param_1 + 0x3c);\n  if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }\n  FUN_000383f0();\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (expression_statement "cVar1 = *(char *)(param_1 + 0x3c);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x3c)" (identifier "cVar1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (cVar1 < '\x13') {\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }" (if "if") (parenthesized_expression "(cVar1 < '\x13')" (( "(") (binary_expression "cVar1 < '\x13'" (identifier "cVar1") (< "<") (char_literal "'\x13'" (' "'") (escape_sequence "\x13") (' "'"))) () ")")) (compound_statement "{\n    *(undefined2 *)(param_1 + 0x2e) = 0;\n    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;\n    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);\n    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);\n    *(undefined2 *)(param_1 + 0x3e) = 0;\n    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';\n    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));\n    return;\n  }" ({ "{") (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 "*(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 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);" (assignment_expression "*(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e)" (pointer_expression "*(undefined2 *)(param_1 + 0x40 + cVar1 * 2)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x40 + cVar1 * 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40 + cVar1 * 2)" (( "(") (binary_expression "param_1 + 0x40 + cVar1 * 2" (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) (+ "+") (binary_expression "cVar1 * 2" (identifier "cVar1") (* "*") (number_literal "2"))) () ")")))) (= "=") (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")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "*(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c)" (pointer_expression "*(undefined4 *)(param_1 + 0x70 + cVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70 + cVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70 + cVar1 * 4)" (( "(") (binary_expression "param_1 + 0x70 + cVar1 * 4" (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) (+ "+") (binary_expression "cVar1 * 4" (identifier "cVar1") (* "*") (number_literal "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")) () ")"))))) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x3e) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3e) = 0" (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")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(char *)(param_1 + 0x3c) = cVar1 + '\x01';" (assignment_expression "*(char *)(param_1 + 0x3c) = cVar1 + '\x01'" (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")) () ")")))) (= "=") (binary_expression "cVar1 + '\x01'" (identifier "cVar1") (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")))) (; ";")) (expression_statement "FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));" (call_expression "FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2))" (identifier "FUN_00039a40") (argument_list "(param_1,*(undefined1 *)(param_1 + 2))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined1 *)(param_1 + 2)" (* "*") (cast_expression "(undefined1 *)(param_1 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000383f0();" (call_expression "FUN_000383f0()" (identifier "FUN_000383f0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pCur,type_2 newPgno)

{
  char var_1;
  type_3 uVar2;
  type_4 *pBt;
  int iVar3;
  
  var_1 = pCur->iPage;
  if (var_1 < '\x13') {
    pBt = pCur->pBt;
    uVar2 = pCur->ix;
    (pCur->info).nSize = 0;
    pCur->curFlags = pCur->curFlags & 0xf9;
    pCur->aiIdx[var_1] = uVar2;
    pCur->apPage[var_1] = pCur->pPage;
    pCur->ix = 0;
    pCur->iPage = var_1 + '\x01';
    iVar3 = var_2(pBt,newPgno,&pCur->pPage,pCur,(type_5)pCur->curPagerFlags);
    return iVar3;
  }
  iVar3 = var_3(0x10fd1);
  return iVar3;
}


(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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) 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: (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: (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)))))) right: (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))))))) (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: (binary_expression left: (identifier) right: (number_literal)) right: (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: (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: (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: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (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)))))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void __regparm3 MASKED(int param_1)

{
  char cVar1;
  
  cVar1 = *(char *)(param_1 + 0x3c);
  if (cVar1 < '\x13') {
    *(undefined2 *)(param_1 + 0x2e) = 0;
    *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) & 0xf9;
    *(undefined2 *)(param_1 + 0x40 + cVar1 * 2) = *(undefined2 *)(param_1 + 0x3e);
    *(undefined4 *)(param_1 + 0x70 + cVar1 * 4) = *(undefined4 *)(param_1 + 0x6c);
    *(undefined2 *)(param_1 + 0x3e) = 0;
    *(char *)(param_1 + 0x3c) = cVar1 + '\x01';
    FUN_00039a40(param_1,*(undefined1 *)(param_1 + 2));
    return;
  }
  FUN_000383f0();
  return;
}

