
void __regparm3 pcache1RemoveFromHash(PgHdr1 *pPage,int freeFlag)

{
  PCache1 *pPVar1;
  PgHdr1 *pPVar2;
  PgHdr1 **ppPVar3;
  PgHdr1 *pPVar4;
  
  pPVar1 = pPage->pCache;
  ppPVar3 = pPVar1->apHash + pPage->iKey % pPVar1->nHash;
  pPVar2 = *ppPVar3;
  if (*ppPVar3 != pPage) {
    do {
      pPVar4 = pPVar2;
      pPVar2 = pPVar4->pNext;
    } while (pPVar2 != pPage);
    ppPVar3 = &pPVar4->pNext;
  }
  *ppPVar3 = pPage->pNext;
  pPVar1->nPage = pPVar1->nPage - 1;
  if (freeFlag != 0) {
    pcache1FreePage(pPage);
    return;
  }
  return;
}



void __regparm3 FUN_000475f0(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  
  iVar1 = *(int *)(param_1 + 0x14);
  piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);
  iVar2 = *piVar3;
  if (*piVar3 != param_1) {
    do {
      iVar4 = iVar2;
      iVar2 = *(int *)(iVar4 + 0x10);
    } while (iVar2 != param_1);
    piVar3 = (int *)(iVar4 + 0x10);
  }
  *piVar3 = *(int *)(param_1 + 0x10);
  *(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;
  if (param_2 != 0) {
    FUN_000475b0();
    return;
  }
  return;
}


PUSH ESI
MOV ECX,EAX
MOV ESI,EDX
XOR EDX,EDX
PUSH EBX
MOV EBX,dword ptr [EAX + 0x14]
MOV EAX,dword ptr [EAX + 0x8]
DIV dword ptr [EBX + 0x34]
MOV EAX,dword ptr [EBX + 0x38]
LEA EAX,[EAX + EDX*0x4]
MOV EDX,dword ptr [EAX]
CMP EDX,ECX
JNZ 0x00047612
JMP 0x0004761c
MOV EDX,EAX
MOV EAX,dword ptr [EDX + 0x10]
CMP EAX,ECX
JNZ 0x00047610
LEA EAX,[EDX + 0x10]
MOV EDX,dword ptr [ECX + 0x10]
MOV dword ptr [EAX],EDX
SUB dword ptr [EBX + 0x30],0x1
TEST ESI,ESI
JNZ 0x00047630
POP EBX
POP ESI
RET
POP EBX
MOV EAX,ECX
POP ESI
JMP 0x000475b0
(translation_unit "void __regparm3 FUN_000475f0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);\n  iVar2 = *piVar3;\n  if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }\n  *piVar3 = *(int *)(param_1 + 0x10);\n  *(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;\n  if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000475f0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);\n  iVar2 = *piVar3;\n  if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }\n  *piVar3 = *(int *)(param_1 + 0x10);\n  *(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;\n  if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000475f0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);\n  iVar2 = *piVar3;\n  if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }\n  *piVar3 = *(int *)(param_1 + 0x10);\n  *(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;\n  if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(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 "piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);" (assignment_expression "piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4)" identifier = (cast_expression "(int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4)" ( (binary_expression "*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) + (binary_expression "(*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4" (parenthesized_expression "(*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34))" ( (binary_expression "*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) % (pointer_expression "*(uint *)(iVar1 + 0x34)" * (cast_expression "(uint *)(iVar1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) ))))) )) * number_literal)) )))) ;) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }" if (parenthesized_expression "(*piVar3 != param_1)" ( (binary_expression "*piVar3 != param_1" (pointer_expression "*piVar3" * identifier) != identifier) )) (compound_statement "{\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }" { (do_statement "do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);" do (compound_statement "{\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar2 = *(int *)(iVar4 + 0x10)" identifier = (pointer_expression "*(int *)(iVar4 + 0x10)" * (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar2 != param_1)" ( (binary_expression "iVar2 != param_1" identifier != identifier) )) ;) (expression_statement "piVar3 = (int *)(iVar4 + 0x10);" (assignment_expression "piVar3 = (int *)(iVar4 + 0x10)" identifier = (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) ;) })) (expression_statement "*piVar3 = *(int *)(param_1 + 0x10);" (assignment_expression "*piVar3 = *(int *)(param_1 + 0x10)" (pointer_expression "*piVar3" * identifier) = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;" (assignment_expression "*(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1" (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar1 + 0x30) + -1" (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_000475b0();\n    return;\n  }" { (expression_statement "FUN_000475b0();" (call_expression "FUN_000475b0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 pcache1RemoveFromHash(PgHdr1 *pPage,int freeFlag)\n\n{\n  PCache1 *pPVar1;\n  PgHdr1 *pPVar2;\n  PgHdr1 **ppPVar3;\n  PgHdr1 *pPVar4;\n  \n  pPVar1 = pPage->pCache;\n  ppPVar3 = pPVar1->apHash + pPage->iKey % pPVar1->nHash;\n  pPVar2 = *ppPVar3;\n  if (*ppPVar3 != pPage) {\n    do {\n      pPVar4 = pPVar2;\n      pPVar2 = pPVar4->pNext;\n    } while (pPVar2 != pPage);\n    ppPVar3 = &pPVar4->pNext;\n  }\n  *ppPVar3 = pPage->pNext;\n  pPVar1->nPage = pPVar1->nPage - 1;\n  if (freeFlag != 0) {\n    pcache1FreePage(pPage);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 pcache1RemoveFromHash(PgHdr1 *pPage,int freeFlag)\n\n{\n  PCache1 *pPVar1;\n  PgHdr1 *pPVar2;\n  PgHdr1 **ppPVar3;\n  PgHdr1 *pPVar4;\n  \n  pPVar1 = pPage->pCache;\n  ppPVar3 = pPVar1->apHash + pPage->iKey % pPVar1->nHash;\n  pPVar2 = *ppPVar3;\n  if (*ppPVar3 != pPage) {\n    do {\n      pPVar4 = pPVar2;\n      pPVar2 = pPVar4->pNext;\n    } while (pPVar2 != pPage);\n    ppPVar3 = &pPVar4->pNext;\n  }\n  *ppPVar3 = pPage->pNext;\n  pPVar1->nPage = pPVar1->nPage - 1;\n  if (freeFlag != 0) {\n    pcache1FreePage(pPage);\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "pcache1RemoveFromHash(PgHdr1 *pPage,int freeFlag)" identifier (parameter_list "(PgHdr1 *pPage,int freeFlag)" ( (parameter_declaration "PgHdr1 *pPage" type_identifier (pointer_declarator "*pPage" * identifier)) , (parameter_declaration "int freeFlag" primitive_type identifier) ))) (compound_statement "{\n  PCache1 *pPVar1;\n  PgHdr1 *pPVar2;\n  PgHdr1 **ppPVar3;\n  PgHdr1 *pPVar4;\n  \n  pPVar1 = pPage->pCache;\n  ppPVar3 = pPVar1->apHash + pPage->iKey % pPVar1->nHash;\n  pPVar2 = *ppPVar3;\n  if (*ppPVar3 != pPage) {\n    do {\n      pPVar4 = pPVar2;\n      pPVar2 = pPVar4->pNext;\n    } while (pPVar2 != pPage);\n    ppPVar3 = &pPVar4->pNext;\n  }\n  *ppPVar3 = pPage->pNext;\n  pPVar1->nPage = pPVar1->nPage - 1;\n  if (freeFlag != 0) {\n    pcache1FreePage(pPage);\n    return;\n  }\n  return;\n}" { (declaration "PCache1 *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "PgHdr1 *pPVar2;" type_identifier (pointer_declarator "*pPVar2" * identifier) ;) (declaration "PgHdr1 **ppPVar3;" type_identifier (pointer_declarator "**ppPVar3" * (pointer_declarator "*ppPVar3" * identifier)) ;) (declaration "PgHdr1 *pPVar4;" type_identifier (pointer_declarator "*pPVar4" * identifier) ;) (expression_statement "pPVar1 = pPage->pCache;" (assignment_expression "pPVar1 = pPage->pCache" identifier = (field_expression "pPage->pCache" identifier -> field_identifier)) ;) (expression_statement "ppPVar3 = pPVar1->apHash + pPage->iKey % pPVar1->nHash;" (assignment_expression "ppPVar3 = pPVar1->apHash + pPage->iKey % pPVar1->nHash" identifier = (binary_expression "pPVar1->apHash + pPage->iKey % pPVar1->nHash" (field_expression "pPVar1->apHash" identifier -> field_identifier) + (binary_expression "pPage->iKey % pPVar1->nHash" (field_expression "pPage->iKey" identifier -> field_identifier) % (field_expression "pPVar1->nHash" identifier -> field_identifier)))) ;) (expression_statement "pPVar2 = *ppPVar3;" (assignment_expression "pPVar2 = *ppPVar3" identifier = (pointer_expression "*ppPVar3" * identifier)) ;) (if_statement "if (*ppPVar3 != pPage) {\n    do {\n      pPVar4 = pPVar2;\n      pPVar2 = pPVar4->pNext;\n    } while (pPVar2 != pPage);\n    ppPVar3 = &pPVar4->pNext;\n  }" if (parenthesized_expression "(*ppPVar3 != pPage)" ( (binary_expression "*ppPVar3 != pPage" (pointer_expression "*ppPVar3" * identifier) != identifier) )) (compound_statement "{\n    do {\n      pPVar4 = pPVar2;\n      pPVar2 = pPVar4->pNext;\n    } while (pPVar2 != pPage);\n    ppPVar3 = &pPVar4->pNext;\n  }" { (do_statement "do {\n      pPVar4 = pPVar2;\n      pPVar2 = pPVar4->pNext;\n    } while (pPVar2 != pPage);" do (compound_statement "{\n      pPVar4 = pPVar2;\n      pPVar2 = pPVar4->pNext;\n    }" { (expression_statement "pPVar4 = pPVar2;" (assignment_expression "pPVar4 = pPVar2" identifier = identifier) ;) (expression_statement "pPVar2 = pPVar4->pNext;" (assignment_expression "pPVar2 = pPVar4->pNext" identifier = (field_expression "pPVar4->pNext" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pPVar2 != pPage)" ( (binary_expression "pPVar2 != pPage" identifier != identifier) )) ;) (expression_statement "ppPVar3 = &pPVar4->pNext;" (assignment_expression "ppPVar3 = &pPVar4->pNext" identifier = (pointer_expression "&pPVar4->pNext" & (field_expression "pPVar4->pNext" identifier -> field_identifier))) ;) })) (expression_statement "*ppPVar3 = pPage->pNext;" (assignment_expression "*ppPVar3 = pPage->pNext" (pointer_expression "*ppPVar3" * identifier) = (field_expression "pPage->pNext" identifier -> field_identifier)) ;) (expression_statement "pPVar1->nPage = pPVar1->nPage - 1;" (assignment_expression "pPVar1->nPage = pPVar1->nPage - 1" (field_expression "pPVar1->nPage" identifier -> field_identifier) = (binary_expression "pPVar1->nPage - 1" (field_expression "pPVar1->nPage" identifier -> field_identifier) - number_literal)) ;) (if_statement "if (freeFlag != 0) {\n    pcache1FreePage(pPage);\n    return;\n  }" if (parenthesized_expression "(freeFlag != 0)" ( (binary_expression "freeFlag != 0" identifier != number_literal) )) (compound_statement "{\n    pcache1FreePage(pPage);\n    return;\n  }" { (expression_statement "pcache1FreePage(pPage);" (call_expression "pcache1FreePage(pPage)" identifier (argument_list "(pPage)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000475f0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);\n  iVar2 = *piVar3;\n  if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }\n  *piVar3 = *(int *)(param_1 + 0x10);\n  *(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;\n  if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000475f0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);\n  iVar2 = *piVar3;\n  if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }\n  *piVar3 = *(int *)(param_1 + 0x10);\n  *(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;\n  if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000475f0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);\n  iVar2 = *piVar3;\n  if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }\n  *piVar3 = *(int *)(param_1 + 0x10);\n  *(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;\n  if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(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 "piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);" (assignment_expression "piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4)" identifier = (cast_expression "(int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4)" ( (binary_expression "*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) + (binary_expression "(*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4" (parenthesized_expression "(*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34))" ( (binary_expression "*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) % (pointer_expression "*(uint *)(iVar1 + 0x34)" * (cast_expression "(uint *)(iVar1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) ))))) )) * number_literal)) )))) ;) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }" if (parenthesized_expression "(*piVar3 != param_1)" ( (binary_expression "*piVar3 != param_1" (pointer_expression "*piVar3" * identifier) != identifier) )) (compound_statement "{\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }" { (do_statement "do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);" do (compound_statement "{\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar2 = *(int *)(iVar4 + 0x10)" identifier = (pointer_expression "*(int *)(iVar4 + 0x10)" * (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar2 != param_1)" ( (binary_expression "iVar2 != param_1" identifier != identifier) )) ;) (expression_statement "piVar3 = (int *)(iVar4 + 0x10);" (assignment_expression "piVar3 = (int *)(iVar4 + 0x10)" identifier = (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) ;) })) (expression_statement "*piVar3 = *(int *)(param_1 + 0x10);" (assignment_expression "*piVar3 = *(int *)(param_1 + 0x10)" (pointer_expression "*piVar3" * identifier) = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;" (assignment_expression "*(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1" (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar1 + 0x30) + -1" (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_000475b0();\n    return;\n  }" { (expression_statement "FUN_000475b0();" (call_expression "FUN_000475b0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (parenthesized_expression ( (binary_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) ))))) )) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (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) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000475f0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);\n  iVar2 = *piVar3;\n  if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }\n  *piVar3 = *(int *)(param_1 + 0x10);\n  *(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;\n  if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000475f0(int param_1,int param_2)" (identifier "FUN_000475f0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);\n  iVar2 = *piVar3;\n  if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }\n  *piVar3 = *(int *)(param_1 + 0x10);\n  *(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;\n  if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" (identifier "iVar1") (= "=") (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 "piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);" (assignment_expression "piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4)" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4)" (( "(") (binary_expression "*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4" (pointer_expression "*(int *)(iVar1 + 0x38)" (* "*") (cast_expression "(int *)(iVar1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x38)" (( "(") (binary_expression "iVar1 + 0x38" (identifier "iVar1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (binary_expression "(*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4" (parenthesized_expression "(*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34))" (( "(") (binary_expression "*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)" (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (% "%") (pointer_expression "*(uint *)(iVar1 + 0x34)" (* "*") (cast_expression "(uint *)(iVar1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x34)" (( "(") (binary_expression "iVar1 + 0x34" (identifier "iVar1") (+ "+") (number_literal "0x34")) () ")"))))) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" (identifier "iVar2") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (if_statement "if (*piVar3 != param_1) {\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }" (if "if") (parenthesized_expression "(*piVar3 != param_1)" (( "(") (binary_expression "*piVar3 != param_1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (identifier "param_1")) () ")")) (compound_statement "{\n    do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);\n    piVar3 = (int *)(iVar4 + 0x10);\n  }" ({ "{") (do_statement "do {\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    } while (iVar2 != param_1);" (do "do") (compound_statement "{\n      iVar4 = iVar2;\n      iVar2 = *(int *)(iVar4 + 0x10);\n    }" ({ "{") (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" (identifier "iVar4") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar2 = *(int *)(iVar4 + 0x10)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar4 + 0x10)" (* "*") (cast_expression "(int *)(iVar4 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != param_1)" (( "(") (binary_expression "iVar2 != param_1" (identifier "iVar2") (!= "!=") (identifier "param_1")) () ")")) (; ";")) (expression_statement "piVar3 = (int *)(iVar4 + 0x10);" (assignment_expression "piVar3 = (int *)(iVar4 + 0x10)" (identifier "piVar3") (= "=") (cast_expression "(int *)(iVar4 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (} "}"))) (expression_statement "*piVar3 = *(int *)(param_1 + 0x10);" (assignment_expression "*piVar3 = *(int *)(param_1 + 0x10)" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;" (assignment_expression "*(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1" (pointer_expression "*(int *)(iVar1 + 0x30)" (* "*") (cast_expression "(int *)(iVar1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (binary_expression "*(int *)(iVar1 + 0x30) + -1" (pointer_expression "*(int *)(iVar1 + 0x30)" (* "*") (cast_expression "(int *)(iVar1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (param_2 != 0) {\n    FUN_000475b0();\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000475b0();\n    return;\n  }" ({ "{") (expression_statement "FUN_000475b0();" (call_expression "FUN_000475b0()" (identifier "FUN_000475b0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *var_1,int var_3)

{
  type_2 *pPVar1;
  type_1 *var_2;
  type_1 **ppPVar3;
  type_1 *pPVar4;
  
  pPVar1 = var_1->pCache;
  ppPVar3 = pPVar1->apHash + var_1->iKey % pPVar1->nHash;
  var_2 = *ppPVar3;
  if (*ppPVar3 != var_1) {
    do {
      pPVar4 = var_2;
      var_2 = pPVar4->pNext;
    } while (var_2 != var_1);
    ppPVar3 = &pPVar4->pNext;
  }
  *ppPVar3 = var_1->pNext;
  pPVar1->nPage = pPVar1->nPage - 1;
  if (var_3 != 0) {
    var_4(var_1);
    return;
  }
  return;
}


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

void __regparm3 MASKED(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  
  iVar1 = *(int *)(param_1 + 0x14);
  piVar3 = (int *)(*(int *)(iVar1 + 0x38) + (*(uint *)(param_1 + 8) % *(uint *)(iVar1 + 0x34)) * 4);
  iVar2 = *piVar3;
  if (*piVar3 != param_1) {
    do {
      iVar4 = iVar2;
      iVar2 = *(int *)(iVar4 + 0x10);
    } while (iVar2 != param_1);
    piVar3 = (int *)(iVar4 + 0x10);
  }
  *piVar3 = *(int *)(param_1 + 0x10);
  *(int *)(iVar1 + 0x30) = *(int *)(iVar1 + 0x30) + -1;
  if (param_2 != 0) {
    FUN_000475b0();
    return;
  }
  return;
}

