
void sqlite3PagerUnrefNotNull(DbPage *pPg)

{
  Pager *pPVar1;
  sqlite3_file *psVar2;
  void *pvVar3;
  sqlite3_io_methods *psVar4;
  void *pvVar5;
  undefined4 in_stack_ffffffec;
  
  if ((pPg->flags & 0x20) == 0) {
    sqlite3PcacheRelease(pPg);
    return;
  }
  pPVar1 = pPg->pPager;
  pvVar5 = pPg->pData;
  psVar2 = pPVar1->fd;
  psVar4 = psVar2->pMethods;
  pvVar3 = (void *)(pPVar1->nMmapOut + -1);
  pPVar1->nMmapOut = (int)pvVar3;
  pPg->pDirty = pPVar1->pMmapFreelist;
  pPVar1->pMmapFreelist = pPg;
  (*psVar4->xUnfetch)(psVar2,CONCAT44(pvVar5,in_stack_ffffffec),pvVar3);
  return;
}



void FUN_00021a94(int param_1)

{
  longlong lVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  undefined4 uVar8;
  
  if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {
    FUN_0002122c();
    return;
  }
  iVar2 = *(int *)(param_1 + 0x14);
  uVar8 = *(undefined4 *)(param_1 + 4);
  uVar6 = *(uint *)(iVar2 + 0x98);
  uVar4 = *(int *)(param_1 + 0x18) - 1;
  piVar3 = *(int **)(iVar2 + 0x3c);
  lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;
  iVar7 = *piVar3;
  iVar5 = *(int *)(iVar2 + 0x78) + -1;
  *(int *)(iVar2 + 0x78) = iVar5;
  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);
  *(int *)(iVar2 + 0x88) = param_1;
  (**(code **)(iVar7 + 0x48))
            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,
             uVar8);
  return;
}


lui gp,0xe
addiu gp,gp,-0x47f4
addu gp,gp,t9
addiu sp,sp,-0x28
lhu v1,0x1c(a0)
andi v1,v1,0x20
sw gp,0x18(sp)
sw ra,0x24(sp)
bne v1,zero,0x00021acc
_lw t9,-0x7fd8(gp)
lw ra,0x24(sp)
addiu t9,t9,0x122c
b 0x0002122c
_addiu sp,sp,0x28
lw v1,0x14(a0)
or v0,a0,zero
lw a1,0x18(a0)
lw t2,0x4(a0)
lw a2,0x98(v1)
addiu a1,a1,-0x1
lw a0,0x3c(v1)
lw t0,0x78(v1)
multu a1,a2
lw t3,0x88(v1)
sra t1,a2,0x1f
mflo a3
mfhi a2
mul t4,t1,a1
lw t1,0x0(a0)
addiu a1,t0,-0x1
sw a1,0x78(v1)
sw t3,0x10(v0)
sw v0,0x88(v1)
sw t2,0x10(sp)
lw t9,0x48(t1)
jalr t9
_addu a2,t4,a2
lw ra,0x24(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_00021a94(int param_1)\n\n{\n  longlong lVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x14);\n  uVar8 = *(undefined4 *)(param_1 + 4);\n  uVar6 = *(uint *)(iVar2 + 0x98);\n  uVar4 = *(int *)(param_1 + 0x18) - 1;\n  piVar3 = *(int **)(iVar2 + 0x3c);\n  lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;\n  iVar7 = *piVar3;\n  iVar5 = *(int *)(iVar2 + 0x78) + -1;\n  *(int *)(iVar2 + 0x78) = iVar5;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);\n  *(int *)(iVar2 + 0x88) = param_1;\n  (**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);\n  return;\n}\n\n" (function_definition "void FUN_00021a94(int param_1)\n\n{\n  longlong lVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x14);\n  uVar8 = *(undefined4 *)(param_1 + 4);\n  uVar6 = *(uint *)(iVar2 + 0x98);\n  uVar4 = *(int *)(param_1 + 0x18) - 1;\n  piVar3 = *(int **)(iVar2 + 0x3c);\n  lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;\n  iVar7 = *piVar3;\n  iVar5 = *(int *)(iVar2 + 0x78) + -1;\n  *(int *)(iVar2 + 0x78) = iVar5;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);\n  *(int *)(iVar2 + 0x88) = param_1;\n  (**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);\n  return;\n}" primitive_type (function_declarator "FUN_00021a94(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  longlong lVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x14);\n  uVar8 = *(undefined4 *)(param_1 + 4);\n  uVar6 = *(uint *)(iVar2 + 0x98);\n  uVar4 = *(int *)(param_1 + 0x18) - 1;\n  piVar3 = *(int **)(iVar2 + 0x3c);\n  lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;\n  iVar7 = *piVar3;\n  iVar5 = *(int *)(iVar2 + 0x78) + -1;\n  *(int *)(iVar2 + 0x78) = iVar5;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);\n  *(int *)(iVar2 + 0x88) = param_1;\n  (**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);\n  return;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (if_statement "if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }" if (parenthesized_expression "((*(ushort *)(param_1 + 0x1c) & 0x20) == 0)" ( (binary_expression "(*(ushort *)(param_1 + 0x1c) & 0x20) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 0x1c) & 0x20)" ( (binary_expression "*(ushort *)(param_1 + 0x1c) & 0x20" (pointer_expression "*(ushort *)(param_1 + 0x1c)" * (cast_expression "(ushort *)(param_1 + 0x1c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    FUN_0002122c();\n    return;\n  }" { (expression_statement "FUN_0002122c();" (call_expression "FUN_0002122c()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar8 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *(uint *)(iVar2 + 0x98);" (assignment_expression "uVar6 = *(uint *)(iVar2 + 0x98)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x98)" * (cast_expression "(uint *)(iVar2 + 0x98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x98)" ( (binary_expression "iVar2 + 0x98" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(int *)(param_1 + 0x18) - 1;" (assignment_expression "uVar4 = *(int *)(param_1 + 0x18) - 1" identifier = (binary_expression "*(int *)(param_1 + 0x18) - 1" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) - number_literal)) ;) (expression_statement "piVar3 = *(int **)(iVar2 + 0x3c);" (assignment_expression "piVar3 = *(int **)(iVar2 + 0x3c)" identifier = (pointer_expression "*(int **)(iVar2 + 0x3c)" * (cast_expression "(int **)(iVar2 + 0x3c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;" (assignment_expression "lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6" identifier = (binary_expression "(ulonglong)uVar4 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier))) ;) (expression_statement "iVar7 = *piVar3;" (assignment_expression "iVar7 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar5 = *(int *)(iVar2 + 0x78) + -1;" (assignment_expression "iVar5 = *(int *)(iVar2 + 0x78) + -1" identifier = (binary_expression "*(int *)(iVar2 + 0x78) + -1" (pointer_expression "*(int *)(iVar2 + 0x78)" * (cast_expression "(int *)(iVar2 + 0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x78)" ( (binary_expression "iVar2 + 0x78" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(iVar2 + 0x78) = iVar5;" (assignment_expression "*(int *)(iVar2 + 0x78) = iVar5" (pointer_expression "*(int *)(iVar2 + 0x78)" * (cast_expression "(int *)(iVar2 + 0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x78)" ( (binary_expression "iVar2 + 0x78" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar2 + 0x88)" * (cast_expression "(undefined4 *)(iVar2 + 0x88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x88)" ( (binary_expression "iVar2 + 0x88" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + 0x88) = param_1;" (assignment_expression "*(int *)(iVar2 + 0x88) = param_1" (pointer_expression "*(int *)(iVar2 + 0x88)" * (cast_expression "(int *)(iVar2 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x88)" ( (binary_expression "iVar2 + 0x88" identifier + number_literal) )))) = identifier) ;) (expression_statement "(**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);" (call_expression "(**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8)" (parenthesized_expression "(**(code **)(iVar7 + 0x48))" ( (pointer_expression "**(code **)(iVar7 + 0x48)" * (pointer_expression "*(code **)(iVar7 + 0x48)" * (cast_expression "(code **)(iVar7 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x48)" ( (binary_expression "iVar7 + 0x48" identifier + number_literal) ))))) )) (argument_list "(piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8)" ( identifier , identifier , (binary_expression "((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20)" (binary_expression "((int)uVar6 >> 0x1f) * uVar4" (parenthesized_expression "((int)uVar6 >> 0x1f)" ( (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * identifier) + (cast_expression "(int)((ulonglong)lVar1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar1 >> 0x20)" ( (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) , (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3PagerUnrefNotNull(DbPage *pPg)\n\n{\n  Pager *pPVar1;\n  sqlite3_file *psVar2;\n  void *pvVar3;\n  sqlite3_io_methods *psVar4;\n  void *pvVar5;\n  undefined4 in_stack_ffffffec;\n  \n  if ((pPg->flags & 0x20) == 0) {\n    sqlite3PcacheRelease(pPg);\n    return;\n  }\n  pPVar1 = pPg->pPager;\n  pvVar5 = pPg->pData;\n  psVar2 = pPVar1->fd;\n  psVar4 = psVar2->pMethods;\n  pvVar3 = (void *)(pPVar1->nMmapOut + -1);\n  pPVar1->nMmapOut = (int)pvVar3;\n  pPg->pDirty = pPVar1->pMmapFreelist;\n  pPVar1->pMmapFreelist = pPg;\n  (*psVar4->xUnfetch)(psVar2,CONCAT44(pvVar5,in_stack_ffffffec),pvVar3);\n  return;\n}\n\n" (function_definition "void sqlite3PagerUnrefNotNull(DbPage *pPg)\n\n{\n  Pager *pPVar1;\n  sqlite3_file *psVar2;\n  void *pvVar3;\n  sqlite3_io_methods *psVar4;\n  void *pvVar5;\n  undefined4 in_stack_ffffffec;\n  \n  if ((pPg->flags & 0x20) == 0) {\n    sqlite3PcacheRelease(pPg);\n    return;\n  }\n  pPVar1 = pPg->pPager;\n  pvVar5 = pPg->pData;\n  psVar2 = pPVar1->fd;\n  psVar4 = psVar2->pMethods;\n  pvVar3 = (void *)(pPVar1->nMmapOut + -1);\n  pPVar1->nMmapOut = (int)pvVar3;\n  pPg->pDirty = pPVar1->pMmapFreelist;\n  pPVar1->pMmapFreelist = pPg;\n  (*psVar4->xUnfetch)(psVar2,CONCAT44(pvVar5,in_stack_ffffffec),pvVar3);\n  return;\n}" primitive_type (function_declarator "sqlite3PagerUnrefNotNull(DbPage *pPg)" identifier (parameter_list "(DbPage *pPg)" ( (parameter_declaration "DbPage *pPg" type_identifier (pointer_declarator "*pPg" * identifier)) ))) (compound_statement "{\n  Pager *pPVar1;\n  sqlite3_file *psVar2;\n  void *pvVar3;\n  sqlite3_io_methods *psVar4;\n  void *pvVar5;\n  undefined4 in_stack_ffffffec;\n  \n  if ((pPg->flags & 0x20) == 0) {\n    sqlite3PcacheRelease(pPg);\n    return;\n  }\n  pPVar1 = pPg->pPager;\n  pvVar5 = pPg->pData;\n  psVar2 = pPVar1->fd;\n  psVar4 = psVar2->pMethods;\n  pvVar3 = (void *)(pPVar1->nMmapOut + -1);\n  pPVar1->nMmapOut = (int)pvVar3;\n  pPg->pDirty = pPVar1->pMmapFreelist;\n  pPVar1->pMmapFreelist = pPg;\n  (*psVar4->xUnfetch)(psVar2,CONCAT44(pvVar5,in_stack_ffffffec),pvVar3);\n  return;\n}" { (declaration "Pager *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "sqlite3_file *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "sqlite3_io_methods *psVar4;" type_identifier (pointer_declarator "*psVar4" * identifier) ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "undefined4 in_stack_ffffffec;" type_identifier identifier ;) (if_statement "if ((pPg->flags & 0x20) == 0) {\n    sqlite3PcacheRelease(pPg);\n    return;\n  }" if (parenthesized_expression "((pPg->flags & 0x20) == 0)" ( (binary_expression "(pPg->flags & 0x20) == 0" (parenthesized_expression "(pPg->flags & 0x20)" ( (binary_expression "pPg->flags & 0x20" (field_expression "pPg->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    sqlite3PcacheRelease(pPg);\n    return;\n  }" { (expression_statement "sqlite3PcacheRelease(pPg);" (call_expression "sqlite3PcacheRelease(pPg)" identifier (argument_list "(pPg)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pPVar1 = pPg->pPager;" (assignment_expression "pPVar1 = pPg->pPager" identifier = (field_expression "pPg->pPager" identifier -> field_identifier)) ;) (expression_statement "pvVar5 = pPg->pData;" (assignment_expression "pvVar5 = pPg->pData" identifier = (field_expression "pPg->pData" identifier -> field_identifier)) ;) (expression_statement "psVar2 = pPVar1->fd;" (assignment_expression "psVar2 = pPVar1->fd" identifier = (field_expression "pPVar1->fd" identifier -> field_identifier)) ;) (expression_statement "psVar4 = psVar2->pMethods;" (assignment_expression "psVar4 = psVar2->pMethods" identifier = (field_expression "psVar2->pMethods" identifier -> field_identifier)) ;) (expression_statement "pvVar3 = (void *)(pPVar1->nMmapOut + -1);" (assignment_expression "pvVar3 = (void *)(pPVar1->nMmapOut + -1)" identifier = (cast_expression "(void *)(pPVar1->nMmapOut + -1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pPVar1->nMmapOut + -1)" ( (binary_expression "pPVar1->nMmapOut + -1" (field_expression "pPVar1->nMmapOut" identifier -> field_identifier) + number_literal) )))) ;) (expression_statement "pPVar1->nMmapOut = (int)pvVar3;" (assignment_expression "pPVar1->nMmapOut = (int)pvVar3" (field_expression "pPVar1->nMmapOut" identifier -> field_identifier) = (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pPg->pDirty = pPVar1->pMmapFreelist;" (assignment_expression "pPg->pDirty = pPVar1->pMmapFreelist" (field_expression "pPg->pDirty" identifier -> field_identifier) = (field_expression "pPVar1->pMmapFreelist" identifier -> field_identifier)) ;) (expression_statement "pPVar1->pMmapFreelist = pPg;" (assignment_expression "pPVar1->pMmapFreelist = pPg" (field_expression "pPVar1->pMmapFreelist" identifier -> field_identifier) = identifier) ;) (expression_statement "(*psVar4->xUnfetch)(psVar2,CONCAT44(pvVar5,in_stack_ffffffec),pvVar3);" (call_expression "(*psVar4->xUnfetch)(psVar2,CONCAT44(pvVar5,in_stack_ffffffec),pvVar3)" (parenthesized_expression "(*psVar4->xUnfetch)" ( (pointer_expression "*psVar4->xUnfetch" * (field_expression "psVar4->xUnfetch" identifier -> field_identifier)) )) (argument_list "(psVar2,CONCAT44(pvVar5,in_stack_ffffffec),pvVar3)" ( identifier , (call_expression "CONCAT44(pvVar5,in_stack_ffffffec)" identifier (argument_list "(pvVar5,in_stack_ffffffec)" ( identifier , identifier ))) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00021a94(int param_1)\n\n{\n  longlong lVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x14);\n  uVar8 = *(undefined4 *)(param_1 + 4);\n  uVar6 = *(uint *)(iVar2 + 0x98);\n  uVar4 = *(int *)(param_1 + 0x18) - 1;\n  piVar3 = *(int **)(iVar2 + 0x3c);\n  lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;\n  iVar7 = *piVar3;\n  iVar5 = *(int *)(iVar2 + 0x78) + -1;\n  *(int *)(iVar2 + 0x78) = iVar5;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);\n  *(int *)(iVar2 + 0x88) = param_1;\n  (**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);\n  return;\n}\n\n" (function_definition "void FUN_00021a94(int param_1)\n\n{\n  longlong lVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x14);\n  uVar8 = *(undefined4 *)(param_1 + 4);\n  uVar6 = *(uint *)(iVar2 + 0x98);\n  uVar4 = *(int *)(param_1 + 0x18) - 1;\n  piVar3 = *(int **)(iVar2 + 0x3c);\n  lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;\n  iVar7 = *piVar3;\n  iVar5 = *(int *)(iVar2 + 0x78) + -1;\n  *(int *)(iVar2 + 0x78) = iVar5;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);\n  *(int *)(iVar2 + 0x88) = param_1;\n  (**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);\n  return;\n}" primitive_type (function_declarator "FUN_00021a94(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  longlong lVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x14);\n  uVar8 = *(undefined4 *)(param_1 + 4);\n  uVar6 = *(uint *)(iVar2 + 0x98);\n  uVar4 = *(int *)(param_1 + 0x18) - 1;\n  piVar3 = *(int **)(iVar2 + 0x3c);\n  lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;\n  iVar7 = *piVar3;\n  iVar5 = *(int *)(iVar2 + 0x78) + -1;\n  *(int *)(iVar2 + 0x78) = iVar5;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);\n  *(int *)(iVar2 + 0x88) = param_1;\n  (**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);\n  return;\n}" { (declaration "longlong lVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (if_statement "if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }" if (parenthesized_expression "((*(ushort *)(param_1 + 0x1c) & 0x20) == 0)" ( (binary_expression "(*(ushort *)(param_1 + 0x1c) & 0x20) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 0x1c) & 0x20)" ( (binary_expression "*(ushort *)(param_1 + 0x1c) & 0x20" (pointer_expression "*(ushort *)(param_1 + 0x1c)" * (cast_expression "(ushort *)(param_1 + 0x1c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    FUN_0002122c();\n    return;\n  }" { (expression_statement "FUN_0002122c();" (call_expression "FUN_0002122c()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar8 = *(undefined4 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *(uint *)(iVar2 + 0x98);" (assignment_expression "uVar6 = *(uint *)(iVar2 + 0x98)" identifier = (pointer_expression "*(uint *)(iVar2 + 0x98)" * (cast_expression "(uint *)(iVar2 + 0x98)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x98)" ( (binary_expression "iVar2 + 0x98" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(int *)(param_1 + 0x18) - 1;" (assignment_expression "uVar4 = *(int *)(param_1 + 0x18) - 1" identifier = (binary_expression "*(int *)(param_1 + 0x18) - 1" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) - number_literal)) ;) (expression_statement "piVar3 = *(int **)(iVar2 + 0x3c);" (assignment_expression "piVar3 = *(int **)(iVar2 + 0x3c)" identifier = (pointer_expression "*(int **)(iVar2 + 0x3c)" * (cast_expression "(int **)(iVar2 + 0x3c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;" (assignment_expression "lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6" identifier = (binary_expression "(ulonglong)uVar4 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier))) ;) (expression_statement "iVar7 = *piVar3;" (assignment_expression "iVar7 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar5 = *(int *)(iVar2 + 0x78) + -1;" (assignment_expression "iVar5 = *(int *)(iVar2 + 0x78) + -1" identifier = (binary_expression "*(int *)(iVar2 + 0x78) + -1" (pointer_expression "*(int *)(iVar2 + 0x78)" * (cast_expression "(int *)(iVar2 + 0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x78)" ( (binary_expression "iVar2 + 0x78" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(iVar2 + 0x78) = iVar5;" (assignment_expression "*(int *)(iVar2 + 0x78) = iVar5" (pointer_expression "*(int *)(iVar2 + 0x78)" * (cast_expression "(int *)(iVar2 + 0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x78)" ( (binary_expression "iVar2 + 0x78" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar2 + 0x88)" * (cast_expression "(undefined4 *)(iVar2 + 0x88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x88)" ( (binary_expression "iVar2 + 0x88" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + 0x88) = param_1;" (assignment_expression "*(int *)(iVar2 + 0x88) = param_1" (pointer_expression "*(int *)(iVar2 + 0x88)" * (cast_expression "(int *)(iVar2 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x88)" ( (binary_expression "iVar2 + 0x88" identifier + number_literal) )))) = identifier) ;) (expression_statement "(**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);" (call_expression "(**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8)" (parenthesized_expression "(**(code **)(iVar7 + 0x48))" ( (pointer_expression "**(code **)(iVar7 + 0x48)" * (pointer_expression "*(code **)(iVar7 + 0x48)" * (cast_expression "(code **)(iVar7 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x48)" ( (binary_expression "iVar7 + 0x48" identifier + number_literal) ))))) )) (argument_list "(piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8)" ( identifier , identifier , (binary_expression "((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20)" (binary_expression "((int)uVar6 >> 0x1f) * uVar4" (parenthesized_expression "((int)uVar6 >> 0x1f)" ( (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * identifier) + (cast_expression "(int)((ulonglong)lVar1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar1 >> 0x20)" ( (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) , (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (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) )))) = (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) )))) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) * IDENT) + (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00021a94(int param_1)\n\n{\n  longlong lVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x14);\n  uVar8 = *(undefined4 *)(param_1 + 4);\n  uVar6 = *(uint *)(iVar2 + 0x98);\n  uVar4 = *(int *)(param_1 + 0x18) - 1;\n  piVar3 = *(int **)(iVar2 + 0x3c);\n  lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;\n  iVar7 = *piVar3;\n  iVar5 = *(int *)(iVar2 + 0x78) + -1;\n  *(int *)(iVar2 + 0x78) = iVar5;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);\n  *(int *)(iVar2 + 0x88) = param_1;\n  (**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00021a94(int param_1)" (identifier "FUN_00021a94") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  longlong lVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 uVar8;\n  \n  if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0x14);\n  uVar8 = *(undefined4 *)(param_1 + 4);\n  uVar6 = *(uint *)(iVar2 + 0x98);\n  uVar4 = *(int *)(param_1 + 0x18) - 1;\n  piVar3 = *(int **)(iVar2 + 0x3c);\n  lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;\n  iVar7 = *piVar3;\n  iVar5 = *(int *)(iVar2 + 0x78) + -1;\n  *(int *)(iVar2 + 0x78) = iVar5;\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);\n  *(int *)(iVar2 + 0x88) = param_1;\n  (**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);\n  return;\n}" ({ "{") (declaration "longlong lVar1;" (type_identifier "longlong") (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (if_statement "if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {\n    FUN_0002122c();\n    return;\n  }" (if "if") (parenthesized_expression "((*(ushort *)(param_1 + 0x1c) & 0x20) == 0)" (( "(") (binary_expression "(*(ushort *)(param_1 + 0x1c) & 0x20) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 0x1c) & 0x20)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x1c) & 0x20" (pointer_expression "*(ushort *)(param_1 + 0x1c)" (* "*") (cast_expression "(ushort *)(param_1 + 0x1c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0002122c();\n    return;\n  }" ({ "{") (expression_statement "FUN_0002122c();" (call_expression "FUN_0002122c()" (identifier "FUN_0002122c") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar8 = *(undefined4 *)(param_1 + 4);" (assignment_expression "uVar8 = *(undefined4 *)(param_1 + 4)" (identifier "uVar8") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar6 = *(uint *)(iVar2 + 0x98);" (assignment_expression "uVar6 = *(uint *)(iVar2 + 0x98)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(iVar2 + 0x98)" (* "*") (cast_expression "(uint *)(iVar2 + 0x98)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x98)" (( "(") (binary_expression "iVar2 + 0x98" (identifier "iVar2") (+ "+") (number_literal "0x98")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(int *)(param_1 + 0x18) - 1;" (assignment_expression "uVar4 = *(int *)(param_1 + 0x18) - 1" (identifier "uVar4") (= "=") (binary_expression "*(int *)(param_1 + 0x18) - 1" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (- "-") (number_literal "1"))) (; ";")) (expression_statement "piVar3 = *(int **)(iVar2 + 0x3c);" (assignment_expression "piVar3 = *(int **)(iVar2 + 0x3c)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(iVar2 + 0x3c)" (* "*") (cast_expression "(int **)(iVar2 + 0x3c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x3c)" (( "(") (binary_expression "iVar2 + 0x3c" (identifier "iVar2") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (expression_statement "lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;" (assignment_expression "lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6" (identifier "lVar1") (= "=") (binary_expression "(ulonglong)uVar4 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar4")) (* "*") (cast_expression "(ulonglong)uVar6" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar6")))) (; ";")) (expression_statement "iVar7 = *piVar3;" (assignment_expression "iVar7 = *piVar3" (identifier "iVar7") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "iVar5 = *(int *)(iVar2 + 0x78) + -1;" (assignment_expression "iVar5 = *(int *)(iVar2 + 0x78) + -1" (identifier "iVar5") (= "=") (binary_expression "*(int *)(iVar2 + 0x78) + -1" (pointer_expression "*(int *)(iVar2 + 0x78)" (* "*") (cast_expression "(int *)(iVar2 + 0x78)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x78)" (( "(") (binary_expression "iVar2 + 0x78" (identifier "iVar2") (+ "+") (number_literal "0x78")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x78) = iVar5;" (assignment_expression "*(int *)(iVar2 + 0x78) = iVar5" (pointer_expression "*(int *)(iVar2 + 0x78)" (* "*") (cast_expression "(int *)(iVar2 + 0x78)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x78)" (( "(") (binary_expression "iVar2 + 0x78" (identifier "iVar2") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0x88)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x88)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x88)" (( "(") (binary_expression "iVar2 + 0x88" (identifier "iVar2") (+ "+") (number_literal "0x88")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x88) = param_1;" (assignment_expression "*(int *)(iVar2 + 0x88) = param_1" (pointer_expression "*(int *)(iVar2 + 0x88)" (* "*") (cast_expression "(int *)(iVar2 + 0x88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x88)" (( "(") (binary_expression "iVar2 + 0x88" (identifier "iVar2") (+ "+") (number_literal "0x88")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "(**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8);" (call_expression "(**(code **)(iVar7 + 0x48))\n            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8)" (parenthesized_expression "(**(code **)(iVar7 + 0x48))" (( "(") (pointer_expression "**(code **)(iVar7 + 0x48)" (* "*") (pointer_expression "*(code **)(iVar7 + 0x48)" (* "*") (cast_expression "(code **)(iVar7 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar7 + 0x48)" (( "(") (binary_expression "iVar7 + 0x48" (identifier "iVar7") (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "(piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,\n             uVar8)" (( "(") (identifier "piVar3") (, ",") (identifier "iVar5") (, ",") (binary_expression "((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20)" (binary_expression "((int)uVar6 >> 0x1f) * uVar4" (parenthesized_expression "((int)uVar6 >> 0x1f)" (( "(") (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (>> ">>") (number_literal "0x1f")) () ")")) (* "*") (identifier "uVar4")) (+ "+") (cast_expression "(int)((ulonglong)lVar1 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)lVar1 >> 0x20)" (( "(") (binary_expression "(ulonglong)lVar1 >> 0x20" (cast_expression "(ulonglong)lVar1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "lVar1")) (>> ">>") (number_literal "0x20")) () ")")))) (, ",") (cast_expression "(int)lVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar1")) (, ",") (identifier "uVar8") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pPg)

{
  type_2 *pPVar1;
  type_3 *psVar2;
  void *pvVar3;
  type_4 *psVar4;
  void *pvVar5;
  type_5 in_stack_ffffffec;
  
  if ((pPg->flags & 0x20) == 0) {
    var_1(pPg);
    return;
  }
  pPVar1 = pPg->pPager;
  pvVar5 = pPg->pData;
  psVar2 = pPVar1->fd;
  psVar4 = psVar2->pMethods;
  pvVar3 = (void *)(pPVar1->nMmapOut + -1);
  pPVar1->nMmapOut = (int)pvVar3;
  pPg->pDirty = pPVar1->pMmapFreelist;
  pPVar1->pMmapFreelist = pPg;
  (*psVar4->xUnfetch)(psVar2,var_2(pvVar5,in_stack_ffffffec),pvVar3);
  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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (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))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (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: (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: (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: (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: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) (identifier)))) (return_statement))))

void MASKED(int param_1)

{
  longlong lVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  undefined4 uVar8;
  
  if ((*(ushort *)(param_1 + 0x1c) & 0x20) == 0) {
    FUN_0002122c();
    return;
  }
  iVar2 = *(int *)(param_1 + 0x14);
  uVar8 = *(undefined4 *)(param_1 + 4);
  uVar6 = *(uint *)(iVar2 + 0x98);
  uVar4 = *(int *)(param_1 + 0x18) - 1;
  piVar3 = *(int **)(iVar2 + 0x3c);
  lVar1 = (ulonglong)uVar4 * (ulonglong)uVar6;
  iVar7 = *piVar3;
  iVar5 = *(int *)(iVar2 + 0x78) + -1;
  *(int *)(iVar2 + 0x78) = iVar5;
  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(iVar2 + 0x88);
  *(int *)(iVar2 + 0x88) = param_1;
  (**(code **)(iVar7 + 0x48))
            (piVar3,iVar5,((int)uVar6 >> 0x1f) * uVar4 + (int)((ulonglong)lVar1 >> 0x20),(int)lVar1,
             uVar8);
  return;
}

