
void pcacheManageDirtyList(PgHdr *pPage,u8 addRemove)

{
  PCache *pPVar1;
  PgHdr *pPVar2;
  PgHdr *pPVar3;
  
  pPVar1 = pPage->pCache;
  if ((addRemove & 1) == 0) goto LAB_0001da8c;
  pPVar3 = pPage->pDirtyPrev;
  if (pPVar1->pSynced == pPage) {
    pPVar1->pSynced = pPVar3;
    pPVar2 = pPage->pDirtyNext;
    pPVar3 = pPage->pDirtyPrev;
    if (pPVar2 != (PgHdr *)0x0) goto LAB_0001da78;
LAB_0001db00:
    pPVar1->pDirtyTail = pPVar3;
    pPVar3 = pPage->pDirtyPrev;
    pPVar2 = pPage->pDirtyNext;
  }
  else {
    pPVar2 = pPage->pDirtyNext;
    if (pPVar2 == (PgHdr *)0x0) goto LAB_0001db00;
LAB_0001da78:
    pPVar2->pDirtyPrev = pPVar3;
    pPVar3 = pPage->pDirtyPrev;
    pPVar2 = pPage->pDirtyNext;
  }
  if (pPVar3 == (PgHdr *)0x0) {
    pPVar1->pDirty = pPVar2;
    if (pPVar2 == (PgHdr *)0x0) {
      pPVar1->eCreate = '\x02';
    }
  }
  else {
    pPVar3->pDirtyNext = pPVar2;
  }
LAB_0001da8c:
  if ((addRemove & 2) != 0) {
    pPage->pDirtyPrev = (PgHdr *)0x0;
    pPVar3 = pPVar1->pDirty;
    pPage->pDirtyNext = pPVar3;
    if (pPVar3 == (PgHdr *)0x0) {
      pPVar1->pDirtyTail = pPage;
      if (pPVar1->bPurgeable != '\0') {
        pPVar1->eCreate = '\x01';
      }
    }
    else {
      pPVar3->pDirtyPrev = pPage;
    }
    pPVar1->pDirty = pPage;
    if ((pPVar1->pSynced == (PgHdr *)0x0) && ((pPage->flags & 8) == 0)) {
      pPVar1->pSynced = pPage;
      return;
    }
  }
  return;
}



void FUN_0001da54(int param_1,uint param_2)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  piVar1 = *(int **)(param_1 + 0xc);
  if ((param_2 & 1) == 0) goto LAB_0001da8c;
  iVar3 = *(int *)(param_1 + 0x24);
  if (piVar1[2] == param_1) {
    piVar1[2] = iVar3;
    iVar2 = *(int *)(param_1 + 0x20);
    iVar3 = *(int *)(param_1 + 0x24);
    if (iVar2 != 0) goto LAB_0001da78;
LAB_0001db00:
    piVar1[1] = iVar3;
    iVar3 = *(int *)(param_1 + 0x24);
    iVar2 = *(int *)(param_1 + 0x20);
  }
  else {
    iVar2 = *(int *)(param_1 + 0x20);
    if (iVar2 == 0) goto LAB_0001db00;
LAB_0001da78:
    *(int *)(iVar2 + 0x24) = iVar3;
    iVar3 = *(int *)(param_1 + 0x24);
    iVar2 = *(int *)(param_1 + 0x20);
  }
  if (iVar3 == 0) {
    *piVar1 = iVar2;
    if (iVar2 == 0) {
      *(undefined1 *)((int)piVar1 + 0x21) = 2;
    }
  }
  else {
    *(int *)(iVar3 + 0x20) = iVar2;
  }
LAB_0001da8c:
  if ((param_2 & 2) != 0) {
    *(undefined4 *)(param_1 + 0x24) = 0;
    iVar3 = *piVar1;
    *(int *)(param_1 + 0x20) = iVar3;
    if (iVar3 == 0) {
      piVar1[1] = param_1;
      if (*(char *)(piVar1 + 8) != '\0') {
        *(undefined1 *)((int)piVar1 + 0x21) = 1;
      }
    }
    else {
      *(int *)(iVar3 + 0x24) = param_1;
    }
    *piVar1 = param_1;
    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {
      piVar1[2] = param_1;
      return;
    }
  }
  return;
}


andi v1,a1,0x1
beq v1,zero,0x0001da8c
_lw v0,0xc(a0)
lw v1,0x8(v0)
beq v1,a0,0x0001daf0
_lw a2,0x24(a0)
lw v1,0x20(a0)
beq v1,zero,0x0001db00
_nop
sw a2,0x24(v1)
lw v1,0x24(a0)
beq v1,zero,0x0001db10
_lw a2,0x20(a0)
sw a2,0x20(v1)
andi a1,a1,0x2
beq a1,zero,0x0001dab8
_nop
sw zero,0x24(a0)
lw v1,0x0(v0)
beq v1,zero,0x0001dad8
_sw v1,0x20(a0)
sw a0,0x24(v1)
lw v1,0x8(v0)
beq v1,zero,0x0001dac0
_sw a0,0x0(v0)
jr ra
_nop
lhu v1,0x1c(a0)
andi v1,v1,0x8
bne v1,zero,0x0001dab8
_nop
jr ra
_sw a0,0x8(v0)
lbu v1,0x20(v0)
beq v1,zero,0x0001daac
_sw a0,0x4(v0)
li v1,0x1
b 0x0001daac
_sb v1,0x21(v0)
sw a2,0x8(v0)
lw v1,0x20(a0)
bne v1,zero,0x0001da78
_lw a2,0x24(a0)
sw a2,0x4(v0)
lw v1,0x24(a0)
bne v1,zero,0x0001da88
_lw a2,0x20(a0)
bne a2,zero,0x0001da8c
_sw a2,0x0(v0)
li v1,0x2
b 0x0001da8c
_sb v1,0x21(v0)
(translation_unit "void FUN_0001da54(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = *(int **)(param_1 + 0xc);\n  if ((param_2 & 1) == 0) goto LAB_0001da8c;\n  iVar3 = *(int *)(param_1 + 0x24);\n  if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }\nLAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001da54(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = *(int **)(param_1 + 0xc);\n  if ((param_2 & 1) == 0) goto LAB_0001da8c;\n  iVar3 = *(int *)(param_1 + 0x24);\n  if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }\nLAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001da54(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = *(int **)(param_1 + 0xc);\n  if ((param_2 & 1) == 0) goto LAB_0001da8c;\n  iVar3 = *(int *)(param_1 + 0x24);\n  if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }\nLAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 0xc);" (assignment_expression "piVar1 = *(int **)(param_1 + 0xc)" identifier = (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((param_2 & 1) == 0) goto LAB_0001da8c;" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_0001da8c;" goto statement_identifier ;)) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" if (parenthesized_expression "(piVar1[2] == param_1)" ( (binary_expression "piVar1[2] == param_1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" { (expression_statement "piVar1[2] = iVar3;" (assignment_expression "piVar1[2] = iVar3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) goto LAB_0001da78;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001da78;" goto statement_identifier ;)) (labeled_statement "LAB_0001db00:\n    piVar1[1] = iVar3;" statement_identifier : (expression_statement "piVar1[1] = iVar3;" (assignment_expression "piVar1[1] = iVar3" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" else (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) goto LAB_0001db00;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001db00;" goto statement_identifier ;)) (labeled_statement "LAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;" statement_identifier : (expression_statement "*(int *)(iVar2 + 0x24) = iVar3;" (assignment_expression "*(int *)(iVar2 + 0x24) = iVar3" (pointer_expression "*(int *)(iVar2 + 0x24)" * (cast_expression "(int *)(iVar2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) = identifier) ;)) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }" { (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }" { (expression_statement "*(undefined1 *)((int)piVar1 + 0x21) = 2;" (assignment_expression "*(undefined1 *)((int)piVar1 + 0x21) = 2" (pointer_expression "*(undefined1 *)((int)piVar1 + 0x21)" * (cast_expression "(undefined1 *)((int)piVar1 + 0x21)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x21)" ( (binary_expression "(int)piVar1 + 0x21" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }" else (compound_statement "{\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }" { (expression_statement "*(int *)(iVar3 + 0x20) = iVar2;" (assignment_expression "*(int *)(iVar3 + 0x20) = iVar2" (pointer_expression "*(int *)(iVar3 + 0x20)" * (cast_expression "(int *)(iVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) }))) (labeled_statement "LAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }" statement_identifier : (if_statement "if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*(int *)(param_1 + 0x20) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x20) = iVar3" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }" { (expression_statement "piVar1[1] = param_1;" (assignment_expression "piVar1[1] = param_1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }" if (parenthesized_expression "(*(char *)(piVar1 + 8) != '\0')" ( (binary_expression "*(char *)(piVar1 + 8) != '\0'" (pointer_expression "*(char *)(piVar1 + 8)" * (cast_expression "(char *)(piVar1 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 8)" ( (binary_expression "piVar1 + 8" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }" { (expression_statement "*(undefined1 *)((int)piVar1 + 0x21) = 1;" (assignment_expression "*(undefined1 *)((int)piVar1 + 0x21) = 1" (pointer_expression "*(undefined1 *)((int)piVar1 + 0x21)" * (cast_expression "(undefined1 *)((int)piVar1 + 0x21)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x21)" ( (binary_expression "(int)piVar1 + 0x21" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }" else (compound_statement "{\n      *(int *)(iVar3 + 0x24) = param_1;\n    }" { (expression_statement "*(int *)(iVar3 + 0x24) = param_1;" (assignment_expression "*(int *)(iVar3 + 0x24) = param_1" (pointer_expression "*(int *)(iVar3 + 0x24)" * (cast_expression "(int *)(iVar3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }" if (parenthesized_expression "((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0))" ( (binary_expression "(piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)" (parenthesized_expression "(piVar1[2] == 0)" ( (binary_expression "piVar1[2] == 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "((*(ushort *)(param_1 + 0x1c) & 8) == 0)" ( (binary_expression "(*(ushort *)(param_1 + 0x1c) & 8) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 0x1c) & 8)" ( (binary_expression "*(ushort *)(param_1 + 0x1c) & 8" (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      piVar1[2] = param_1;\n      return;\n    }" { (expression_statement "piVar1[2] = param_1;" (assignment_expression "piVar1[2] = param_1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void pcacheManageDirtyList(PgHdr *pPage,u8 addRemove)\n\n{\n  PCache *pPVar1;\n  PgHdr *pPVar2;\n  PgHdr *pPVar3;\n  \n  pPVar1 = pPage->pCache;\n  if ((addRemove & 1) == 0) goto LAB_0001da8c;\n  pPVar3 = pPage->pDirtyPrev;\n  if (pPVar1->pSynced == pPage) {\n    pPVar1->pSynced = pPVar3;\n    pPVar2 = pPage->pDirtyNext;\n    pPVar3 = pPage->pDirtyPrev;\n    if (pPVar2 != (PgHdr *)0x0) goto LAB_0001da78;\nLAB_0001db00:\n    pPVar1->pDirtyTail = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }\n  else {\n    pPVar2 = pPage->pDirtyNext;\n    if (pPVar2 == (PgHdr *)0x0) goto LAB_0001db00;\nLAB_0001da78:\n    pPVar2->pDirtyPrev = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }\n  if (pPVar3 == (PgHdr *)0x0) {\n    pPVar1->pDirty = pPVar2;\n    if (pPVar2 == (PgHdr *)0x0) {\n      pPVar1->eCreate = '\x02';\n    }\n  }\n  else {\n    pPVar3->pDirtyNext = pPVar2;\n  }\nLAB_0001da8c:\n  if ((addRemove & 2) != 0) {\n    pPage->pDirtyPrev = (PgHdr *)0x0;\n    pPVar3 = pPVar1->pDirty;\n    pPage->pDirtyNext = pPVar3;\n    if (pPVar3 == (PgHdr *)0x0) {\n      pPVar1->pDirtyTail = pPage;\n      if (pPVar1->bPurgeable != '\0') {\n        pPVar1->eCreate = '\x01';\n      }\n    }\n    else {\n      pPVar3->pDirtyPrev = pPage;\n    }\n    pPVar1->pDirty = pPage;\n    if ((pPVar1->pSynced == (PgHdr *)0x0) && ((pPage->flags & 8) == 0)) {\n      pPVar1->pSynced = pPage;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void pcacheManageDirtyList(PgHdr *pPage,u8 addRemove)\n\n{\n  PCache *pPVar1;\n  PgHdr *pPVar2;\n  PgHdr *pPVar3;\n  \n  pPVar1 = pPage->pCache;\n  if ((addRemove & 1) == 0) goto LAB_0001da8c;\n  pPVar3 = pPage->pDirtyPrev;\n  if (pPVar1->pSynced == pPage) {\n    pPVar1->pSynced = pPVar3;\n    pPVar2 = pPage->pDirtyNext;\n    pPVar3 = pPage->pDirtyPrev;\n    if (pPVar2 != (PgHdr *)0x0) goto LAB_0001da78;\nLAB_0001db00:\n    pPVar1->pDirtyTail = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }\n  else {\n    pPVar2 = pPage->pDirtyNext;\n    if (pPVar2 == (PgHdr *)0x0) goto LAB_0001db00;\nLAB_0001da78:\n    pPVar2->pDirtyPrev = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }\n  if (pPVar3 == (PgHdr *)0x0) {\n    pPVar1->pDirty = pPVar2;\n    if (pPVar2 == (PgHdr *)0x0) {\n      pPVar1->eCreate = '\x02';\n    }\n  }\n  else {\n    pPVar3->pDirtyNext = pPVar2;\n  }\nLAB_0001da8c:\n  if ((addRemove & 2) != 0) {\n    pPage->pDirtyPrev = (PgHdr *)0x0;\n    pPVar3 = pPVar1->pDirty;\n    pPage->pDirtyNext = pPVar3;\n    if (pPVar3 == (PgHdr *)0x0) {\n      pPVar1->pDirtyTail = pPage;\n      if (pPVar1->bPurgeable != '\0') {\n        pPVar1->eCreate = '\x01';\n      }\n    }\n    else {\n      pPVar3->pDirtyPrev = pPage;\n    }\n    pPVar1->pDirty = pPage;\n    if ((pPVar1->pSynced == (PgHdr *)0x0) && ((pPage->flags & 8) == 0)) {\n      pPVar1->pSynced = pPage;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "pcacheManageDirtyList(PgHdr *pPage,u8 addRemove)" identifier (parameter_list "(PgHdr *pPage,u8 addRemove)" ( (parameter_declaration "PgHdr *pPage" type_identifier (pointer_declarator "*pPage" * identifier)) , (parameter_declaration "u8 addRemove" type_identifier identifier) ))) (compound_statement "{\n  PCache *pPVar1;\n  PgHdr *pPVar2;\n  PgHdr *pPVar3;\n  \n  pPVar1 = pPage->pCache;\n  if ((addRemove & 1) == 0) goto LAB_0001da8c;\n  pPVar3 = pPage->pDirtyPrev;\n  if (pPVar1->pSynced == pPage) {\n    pPVar1->pSynced = pPVar3;\n    pPVar2 = pPage->pDirtyNext;\n    pPVar3 = pPage->pDirtyPrev;\n    if (pPVar2 != (PgHdr *)0x0) goto LAB_0001da78;\nLAB_0001db00:\n    pPVar1->pDirtyTail = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }\n  else {\n    pPVar2 = pPage->pDirtyNext;\n    if (pPVar2 == (PgHdr *)0x0) goto LAB_0001db00;\nLAB_0001da78:\n    pPVar2->pDirtyPrev = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }\n  if (pPVar3 == (PgHdr *)0x0) {\n    pPVar1->pDirty = pPVar2;\n    if (pPVar2 == (PgHdr *)0x0) {\n      pPVar1->eCreate = '\x02';\n    }\n  }\n  else {\n    pPVar3->pDirtyNext = pPVar2;\n  }\nLAB_0001da8c:\n  if ((addRemove & 2) != 0) {\n    pPage->pDirtyPrev = (PgHdr *)0x0;\n    pPVar3 = pPVar1->pDirty;\n    pPage->pDirtyNext = pPVar3;\n    if (pPVar3 == (PgHdr *)0x0) {\n      pPVar1->pDirtyTail = pPage;\n      if (pPVar1->bPurgeable != '\0') {\n        pPVar1->eCreate = '\x01';\n      }\n    }\n    else {\n      pPVar3->pDirtyPrev = pPage;\n    }\n    pPVar1->pDirty = pPage;\n    if ((pPVar1->pSynced == (PgHdr *)0x0) && ((pPage->flags & 8) == 0)) {\n      pPVar1->pSynced = pPage;\n      return;\n    }\n  }\n  return;\n}" { (declaration "PCache *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "PgHdr *pPVar2;" type_identifier (pointer_declarator "*pPVar2" * identifier) ;) (declaration "PgHdr *pPVar3;" type_identifier (pointer_declarator "*pPVar3" * identifier) ;) (expression_statement "pPVar1 = pPage->pCache;" (assignment_expression "pPVar1 = pPage->pCache" identifier = (field_expression "pPage->pCache" identifier -> field_identifier)) ;) (if_statement "if ((addRemove & 1) == 0) goto LAB_0001da8c;" if (parenthesized_expression "((addRemove & 1) == 0)" ( (binary_expression "(addRemove & 1) == 0" (parenthesized_expression "(addRemove & 1)" ( (binary_expression "addRemove & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_0001da8c;" goto statement_identifier ;)) (expression_statement "pPVar3 = pPage->pDirtyPrev;" (assignment_expression "pPVar3 = pPage->pDirtyPrev" identifier = (field_expression "pPage->pDirtyPrev" identifier -> field_identifier)) ;) (if_statement "if (pPVar1->pSynced == pPage) {\n    pPVar1->pSynced = pPVar3;\n    pPVar2 = pPage->pDirtyNext;\n    pPVar3 = pPage->pDirtyPrev;\n    if (pPVar2 != (PgHdr *)0x0) goto LAB_0001da78;\nLAB_0001db00:\n    pPVar1->pDirtyTail = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }\n  else {\n    pPVar2 = pPage->pDirtyNext;\n    if (pPVar2 == (PgHdr *)0x0) goto LAB_0001db00;\nLAB_0001da78:\n    pPVar2->pDirtyPrev = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }" if (parenthesized_expression "(pPVar1->pSynced == pPage)" ( (binary_expression "pPVar1->pSynced == pPage" (field_expression "pPVar1->pSynced" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    pPVar1->pSynced = pPVar3;\n    pPVar2 = pPage->pDirtyNext;\n    pPVar3 = pPage->pDirtyPrev;\n    if (pPVar2 != (PgHdr *)0x0) goto LAB_0001da78;\nLAB_0001db00:\n    pPVar1->pDirtyTail = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }" { (expression_statement "pPVar1->pSynced = pPVar3;" (assignment_expression "pPVar1->pSynced = pPVar3" (field_expression "pPVar1->pSynced" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar2 = pPage->pDirtyNext;" (assignment_expression "pPVar2 = pPage->pDirtyNext" identifier = (field_expression "pPage->pDirtyNext" identifier -> field_identifier)) ;) (expression_statement "pPVar3 = pPage->pDirtyPrev;" (assignment_expression "pPVar3 = pPage->pDirtyPrev" identifier = (field_expression "pPage->pDirtyPrev" identifier -> field_identifier)) ;) (if_statement "if (pPVar2 != (PgHdr *)0x0) goto LAB_0001da78;" if (parenthesized_expression "(pPVar2 != (PgHdr *)0x0)" ( (binary_expression "pPVar2 != (PgHdr *)0x0" identifier != (cast_expression "(PgHdr *)0x0" ( (type_descriptor "PgHdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001da78;" goto statement_identifier ;)) (labeled_statement "LAB_0001db00:\n    pPVar1->pDirtyTail = pPVar3;" statement_identifier : (expression_statement "pPVar1->pDirtyTail = pPVar3;" (assignment_expression "pPVar1->pDirtyTail = pPVar3" (field_expression "pPVar1->pDirtyTail" identifier -> field_identifier) = identifier) ;)) (expression_statement "pPVar3 = pPage->pDirtyPrev;" (assignment_expression "pPVar3 = pPage->pDirtyPrev" identifier = (field_expression "pPage->pDirtyPrev" identifier -> field_identifier)) ;) (expression_statement "pPVar2 = pPage->pDirtyNext;" (assignment_expression "pPVar2 = pPage->pDirtyNext" identifier = (field_expression "pPage->pDirtyNext" identifier -> field_identifier)) ;) }) (else_clause "else {\n    pPVar2 = pPage->pDirtyNext;\n    if (pPVar2 == (PgHdr *)0x0) goto LAB_0001db00;\nLAB_0001da78:\n    pPVar2->pDirtyPrev = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }" else (compound_statement "{\n    pPVar2 = pPage->pDirtyNext;\n    if (pPVar2 == (PgHdr *)0x0) goto LAB_0001db00;\nLAB_0001da78:\n    pPVar2->pDirtyPrev = pPVar3;\n    pPVar3 = pPage->pDirtyPrev;\n    pPVar2 = pPage->pDirtyNext;\n  }" { (expression_statement "pPVar2 = pPage->pDirtyNext;" (assignment_expression "pPVar2 = pPage->pDirtyNext" identifier = (field_expression "pPage->pDirtyNext" identifier -> field_identifier)) ;) (if_statement "if (pPVar2 == (PgHdr *)0x0) goto LAB_0001db00;" if (parenthesized_expression "(pPVar2 == (PgHdr *)0x0)" ( (binary_expression "pPVar2 == (PgHdr *)0x0" identifier == (cast_expression "(PgHdr *)0x0" ( (type_descriptor "PgHdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001db00;" goto statement_identifier ;)) (labeled_statement "LAB_0001da78:\n    pPVar2->pDirtyPrev = pPVar3;" statement_identifier : (expression_statement "pPVar2->pDirtyPrev = pPVar3;" (assignment_expression "pPVar2->pDirtyPrev = pPVar3" (field_expression "pPVar2->pDirtyPrev" identifier -> field_identifier) = identifier) ;)) (expression_statement "pPVar3 = pPage->pDirtyPrev;" (assignment_expression "pPVar3 = pPage->pDirtyPrev" identifier = (field_expression "pPage->pDirtyPrev" identifier -> field_identifier)) ;) (expression_statement "pPVar2 = pPage->pDirtyNext;" (assignment_expression "pPVar2 = pPage->pDirtyNext" identifier = (field_expression "pPage->pDirtyNext" identifier -> field_identifier)) ;) }))) (if_statement "if (pPVar3 == (PgHdr *)0x0) {\n    pPVar1->pDirty = pPVar2;\n    if (pPVar2 == (PgHdr *)0x0) {\n      pPVar1->eCreate = '\x02';\n    }\n  }\n  else {\n    pPVar3->pDirtyNext = pPVar2;\n  }" if (parenthesized_expression "(pPVar3 == (PgHdr *)0x0)" ( (binary_expression "pPVar3 == (PgHdr *)0x0" identifier == (cast_expression "(PgHdr *)0x0" ( (type_descriptor "PgHdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pPVar1->pDirty = pPVar2;\n    if (pPVar2 == (PgHdr *)0x0) {\n      pPVar1->eCreate = '\x02';\n    }\n  }" { (expression_statement "pPVar1->pDirty = pPVar2;" (assignment_expression "pPVar1->pDirty = pPVar2" (field_expression "pPVar1->pDirty" identifier -> field_identifier) = identifier) ;) (if_statement "if (pPVar2 == (PgHdr *)0x0) {\n      pPVar1->eCreate = '\x02';\n    }" if (parenthesized_expression "(pPVar2 == (PgHdr *)0x0)" ( (binary_expression "pPVar2 == (PgHdr *)0x0" identifier == (cast_expression "(PgHdr *)0x0" ( (type_descriptor "PgHdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pPVar1->eCreate = '\x02';\n    }" { (expression_statement "pPVar1->eCreate = '\x02';" (assignment_expression "pPVar1->eCreate = '\x02'" (field_expression "pPVar1->eCreate" identifier -> field_identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) })) }) (else_clause "else {\n    pPVar3->pDirtyNext = pPVar2;\n  }" else (compound_statement "{\n    pPVar3->pDirtyNext = pPVar2;\n  }" { (expression_statement "pPVar3->pDirtyNext = pPVar2;" (assignment_expression "pPVar3->pDirtyNext = pPVar2" (field_expression "pPVar3->pDirtyNext" identifier -> field_identifier) = identifier) ;) }))) (labeled_statement "LAB_0001da8c:\n  if ((addRemove & 2) != 0) {\n    pPage->pDirtyPrev = (PgHdr *)0x0;\n    pPVar3 = pPVar1->pDirty;\n    pPage->pDirtyNext = pPVar3;\n    if (pPVar3 == (PgHdr *)0x0) {\n      pPVar1->pDirtyTail = pPage;\n      if (pPVar1->bPurgeable != '\0') {\n        pPVar1->eCreate = '\x01';\n      }\n    }\n    else {\n      pPVar3->pDirtyPrev = pPage;\n    }\n    pPVar1->pDirty = pPage;\n    if ((pPVar1->pSynced == (PgHdr *)0x0) && ((pPage->flags & 8) == 0)) {\n      pPVar1->pSynced = pPage;\n      return;\n    }\n  }" statement_identifier : (if_statement "if ((addRemove & 2) != 0) {\n    pPage->pDirtyPrev = (PgHdr *)0x0;\n    pPVar3 = pPVar1->pDirty;\n    pPage->pDirtyNext = pPVar3;\n    if (pPVar3 == (PgHdr *)0x0) {\n      pPVar1->pDirtyTail = pPage;\n      if (pPVar1->bPurgeable != '\0') {\n        pPVar1->eCreate = '\x01';\n      }\n    }\n    else {\n      pPVar3->pDirtyPrev = pPage;\n    }\n    pPVar1->pDirty = pPage;\n    if ((pPVar1->pSynced == (PgHdr *)0x0) && ((pPage->flags & 8) == 0)) {\n      pPVar1->pSynced = pPage;\n      return;\n    }\n  }" if (parenthesized_expression "((addRemove & 2) != 0)" ( (binary_expression "(addRemove & 2) != 0" (parenthesized_expression "(addRemove & 2)" ( (binary_expression "addRemove & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    pPage->pDirtyPrev = (PgHdr *)0x0;\n    pPVar3 = pPVar1->pDirty;\n    pPage->pDirtyNext = pPVar3;\n    if (pPVar3 == (PgHdr *)0x0) {\n      pPVar1->pDirtyTail = pPage;\n      if (pPVar1->bPurgeable != '\0') {\n        pPVar1->eCreate = '\x01';\n      }\n    }\n    else {\n      pPVar3->pDirtyPrev = pPage;\n    }\n    pPVar1->pDirty = pPage;\n    if ((pPVar1->pSynced == (PgHdr *)0x0) && ((pPage->flags & 8) == 0)) {\n      pPVar1->pSynced = pPage;\n      return;\n    }\n  }" { (expression_statement "pPage->pDirtyPrev = (PgHdr *)0x0;" (assignment_expression "pPage->pDirtyPrev = (PgHdr *)0x0" (field_expression "pPage->pDirtyPrev" identifier -> field_identifier) = (cast_expression "(PgHdr *)0x0" ( (type_descriptor "PgHdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pPVar3 = pPVar1->pDirty;" (assignment_expression "pPVar3 = pPVar1->pDirty" identifier = (field_expression "pPVar1->pDirty" identifier -> field_identifier)) ;) (expression_statement "pPage->pDirtyNext = pPVar3;" (assignment_expression "pPage->pDirtyNext = pPVar3" (field_expression "pPage->pDirtyNext" identifier -> field_identifier) = identifier) ;) (if_statement "if (pPVar3 == (PgHdr *)0x0) {\n      pPVar1->pDirtyTail = pPage;\n      if (pPVar1->bPurgeable != '\0') {\n        pPVar1->eCreate = '\x01';\n      }\n    }\n    else {\n      pPVar3->pDirtyPrev = pPage;\n    }" if (parenthesized_expression "(pPVar3 == (PgHdr *)0x0)" ( (binary_expression "pPVar3 == (PgHdr *)0x0" identifier == (cast_expression "(PgHdr *)0x0" ( (type_descriptor "PgHdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pPVar1->pDirtyTail = pPage;\n      if (pPVar1->bPurgeable != '\0') {\n        pPVar1->eCreate = '\x01';\n      }\n    }" { (expression_statement "pPVar1->pDirtyTail = pPage;" (assignment_expression "pPVar1->pDirtyTail = pPage" (field_expression "pPVar1->pDirtyTail" identifier -> field_identifier) = identifier) ;) (if_statement "if (pPVar1->bPurgeable != '\0') {\n        pPVar1->eCreate = '\x01';\n      }" if (parenthesized_expression "(pPVar1->bPurgeable != '\0')" ( (binary_expression "pPVar1->bPurgeable != '\0'" (field_expression "pPVar1->bPurgeable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pPVar1->eCreate = '\x01';\n      }" { (expression_statement "pPVar1->eCreate = '\x01';" (assignment_expression "pPVar1->eCreate = '\x01'" (field_expression "pPVar1->eCreate" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) })) }) (else_clause "else {\n      pPVar3->pDirtyPrev = pPage;\n    }" else (compound_statement "{\n      pPVar3->pDirtyPrev = pPage;\n    }" { (expression_statement "pPVar3->pDirtyPrev = pPage;" (assignment_expression "pPVar3->pDirtyPrev = pPage" (field_expression "pPVar3->pDirtyPrev" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "pPVar1->pDirty = pPage;" (assignment_expression "pPVar1->pDirty = pPage" (field_expression "pPVar1->pDirty" identifier -> field_identifier) = identifier) ;) (if_statement "if ((pPVar1->pSynced == (PgHdr *)0x0) && ((pPage->flags & 8) == 0)) {\n      pPVar1->pSynced = pPage;\n      return;\n    }" if (parenthesized_expression "((pPVar1->pSynced == (PgHdr *)0x0) && ((pPage->flags & 8) == 0))" ( (binary_expression "(pPVar1->pSynced == (PgHdr *)0x0) && ((pPage->flags & 8) == 0)" (parenthesized_expression "(pPVar1->pSynced == (PgHdr *)0x0)" ( (binary_expression "pPVar1->pSynced == (PgHdr *)0x0" (field_expression "pPVar1->pSynced" identifier -> field_identifier) == (cast_expression "(PgHdr *)0x0" ( (type_descriptor "PgHdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((pPage->flags & 8) == 0)" ( (binary_expression "(pPage->flags & 8) == 0" (parenthesized_expression "(pPage->flags & 8)" ( (binary_expression "pPage->flags & 8" (field_expression "pPage->flags" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      pPVar1->pSynced = pPage;\n      return;\n    }" { (expression_statement "pPVar1->pSynced = pPage;" (assignment_expression "pPVar1->pSynced = pPage" (field_expression "pPVar1->pSynced" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001da54(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = *(int **)(param_1 + 0xc);\n  if ((param_2 & 1) == 0) goto LAB_0001da8c;\n  iVar3 = *(int *)(param_1 + 0x24);\n  if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }\nLAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001da54(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = *(int **)(param_1 + 0xc);\n  if ((param_2 & 1) == 0) goto LAB_0001da8c;\n  iVar3 = *(int *)(param_1 + 0x24);\n  if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }\nLAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001da54(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = *(int **)(param_1 + 0xc);\n  if ((param_2 & 1) == 0) goto LAB_0001da8c;\n  iVar3 = *(int *)(param_1 + 0x24);\n  if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }\nLAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 0xc);" (assignment_expression "piVar1 = *(int **)(param_1 + 0xc)" identifier = (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((param_2 & 1) == 0) goto LAB_0001da8c;" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_0001da8c;" goto statement_identifier ;)) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" if (parenthesized_expression "(piVar1[2] == param_1)" ( (binary_expression "piVar1[2] == param_1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" { (expression_statement "piVar1[2] = iVar3;" (assignment_expression "piVar1[2] = iVar3" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) goto LAB_0001da78;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001da78;" goto statement_identifier ;)) (labeled_statement "LAB_0001db00:\n    piVar1[1] = iVar3;" statement_identifier : (expression_statement "piVar1[1] = iVar3;" (assignment_expression "piVar1[1] = iVar3" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" else (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) goto LAB_0001db00;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001db00;" goto statement_identifier ;)) (labeled_statement "LAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;" statement_identifier : (expression_statement "*(int *)(iVar2 + 0x24) = iVar3;" (assignment_expression "*(int *)(iVar2 + 0x24) = iVar3" (pointer_expression "*(int *)(iVar2 + 0x24)" * (cast_expression "(int *)(iVar2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) )))) = identifier) ;)) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" identifier = (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }" { (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }" { (expression_statement "*(undefined1 *)((int)piVar1 + 0x21) = 2;" (assignment_expression "*(undefined1 *)((int)piVar1 + 0x21) = 2" (pointer_expression "*(undefined1 *)((int)piVar1 + 0x21)" * (cast_expression "(undefined1 *)((int)piVar1 + 0x21)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x21)" ( (binary_expression "(int)piVar1 + 0x21" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }" else (compound_statement "{\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }" { (expression_statement "*(int *)(iVar3 + 0x20) = iVar2;" (assignment_expression "*(int *)(iVar3 + 0x20) = iVar2" (pointer_expression "*(int *)(iVar3 + 0x20)" * (cast_expression "(int *)(iVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) }))) (labeled_statement "LAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }" statement_identifier : (if_statement "if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*(int *)(param_1 + 0x20) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x20) = iVar3" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }" { (expression_statement "piVar1[1] = param_1;" (assignment_expression "piVar1[1] = param_1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }" if (parenthesized_expression "(*(char *)(piVar1 + 8) != '\0')" ( (binary_expression "*(char *)(piVar1 + 8) != '\0'" (pointer_expression "*(char *)(piVar1 + 8)" * (cast_expression "(char *)(piVar1 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 8)" ( (binary_expression "piVar1 + 8" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }" { (expression_statement "*(undefined1 *)((int)piVar1 + 0x21) = 1;" (assignment_expression "*(undefined1 *)((int)piVar1 + 0x21) = 1" (pointer_expression "*(undefined1 *)((int)piVar1 + 0x21)" * (cast_expression "(undefined1 *)((int)piVar1 + 0x21)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x21)" ( (binary_expression "(int)piVar1 + 0x21" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }" else (compound_statement "{\n      *(int *)(iVar3 + 0x24) = param_1;\n    }" { (expression_statement "*(int *)(iVar3 + 0x24) = param_1;" (assignment_expression "*(int *)(iVar3 + 0x24) = param_1" (pointer_expression "*(int *)(iVar3 + 0x24)" * (cast_expression "(int *)(iVar3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x24)" ( (binary_expression "iVar3 + 0x24" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }" if (parenthesized_expression "((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0))" ( (binary_expression "(piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)" (parenthesized_expression "(piVar1[2] == 0)" ( (binary_expression "piVar1[2] == 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "((*(ushort *)(param_1 + 0x1c) & 8) == 0)" ( (binary_expression "(*(ushort *)(param_1 + 0x1c) & 8) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 0x1c) & 8)" ( (binary_expression "*(ushort *)(param_1 + 0x1c) & 8" (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      piVar1[2] = param_1;\n      return;\n    }" { (expression_statement "piVar1[2] = param_1;" (assignment_expression "piVar1[2] = param_1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (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 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) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) })) }) (else_clause else (compound_statement { (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 * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) && (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 (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) }))) (return_statement return ;) })))
(function_definition "void FUN_0001da54(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = *(int **)(param_1 + 0xc);\n  if ((param_2 & 1) == 0) goto LAB_0001da8c;\n  iVar3 = *(int *)(param_1 + 0x24);\n  if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }\nLAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001da54(int param_1,uint param_2)" (identifier "FUN_0001da54") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  piVar1 = *(int **)(param_1 + 0xc);\n  if ((param_2 & 1) == 0) goto LAB_0001da8c;\n  iVar3 = *(int *)(param_1 + 0x24);\n  if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }\nLAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 0xc);" (assignment_expression "piVar1 = *(int **)(param_1 + 0xc)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if ((param_2 & 1) == 0) goto LAB_0001da8c;" (if "if") (parenthesized_expression "((param_2 & 1) == 0)" (( "(") (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001da8c;" (goto "goto") (statement_identifier "LAB_0001da8c") (; ";"))) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (piVar1[2] == param_1) {\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }\n  else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" (if "if") (parenthesized_expression "(piVar1[2] == param_1)" (( "(") (binary_expression "piVar1[2] == param_1" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n    piVar1[2] = iVar3;\n    iVar2 = *(int *)(param_1 + 0x20);\n    iVar3 = *(int *)(param_1 + 0x24);\n    if (iVar2 != 0) goto LAB_0001da78;\nLAB_0001db00:\n    piVar1[1] = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" ({ "{") (expression_statement "piVar1[2] = iVar3;" (assignment_expression "piVar1[2] = iVar3" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0001da78;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001da78;" (goto "goto") (statement_identifier "LAB_0001da78") (; ";"))) (labeled_statement "LAB_0001db00:\n    piVar1[1] = iVar3;" (statement_identifier "LAB_0001db00") (: ":") (expression_statement "piVar1[1] = iVar3;" (assignment_expression "piVar1[1] = iVar3" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";"))) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" (else "else") (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x20);\n    if (iVar2 == 0) goto LAB_0001db00;\nLAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;\n    iVar3 = *(int *)(param_1 + 0x24);\n    iVar2 = *(int *)(param_1 + 0x20);\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_0001db00;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001db00;" (goto "goto") (statement_identifier "LAB_0001db00") (; ";"))) (labeled_statement "LAB_0001da78:\n    *(int *)(iVar2 + 0x24) = iVar3;" (statement_identifier "LAB_0001da78") (: ":") (expression_statement "*(int *)(iVar2 + 0x24) = iVar3;" (assignment_expression "*(int *)(iVar2 + 0x24) = iVar3" (pointer_expression "*(int *)(iVar2 + 0x24)" (* "*") (cast_expression "(int *)(iVar2 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x24)" (( "(") (binary_expression "iVar2 + 0x24" (identifier "iVar2") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "iVar3")) (; ";"))) (expression_statement "iVar3 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x24)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x20)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar3 == 0) {\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }\n  else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }\n  }" ({ "{") (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) {\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined1 *)((int)piVar1 + 0x21) = 2;\n    }" ({ "{") (expression_statement "*(undefined1 *)((int)piVar1 + 0x21) = 2;" (assignment_expression "*(undefined1 *)((int)piVar1 + 0x21) = 2" (pointer_expression "*(undefined1 *)((int)piVar1 + 0x21)" (* "*") (cast_expression "(undefined1 *)((int)piVar1 + 0x21)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x21)" (( "(") (binary_expression "(int)piVar1 + 0x21" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x21")) () ")")))) (= "=") (number_literal "2")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }" (else "else") (compound_statement "{\n    *(int *)(iVar3 + 0x20) = iVar2;\n  }" ({ "{") (expression_statement "*(int *)(iVar3 + 0x20) = iVar2;" (assignment_expression "*(int *)(iVar3 + 0x20) = iVar2" (pointer_expression "*(int *)(iVar3 + 0x20)" (* "*") (cast_expression "(int *)(iVar3 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x20)" (( "(") (binary_expression "iVar3 + 0x20" (identifier "iVar3") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (labeled_statement "LAB_0001da8c:\n  if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }" (statement_identifier "LAB_0001da8c") (: ":") (if_statement "if ((param_2 & 2) != 0) {\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((param_2 & 2) != 0)" (( "(") (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" (( "(") (binary_expression "param_2 & 2" (identifier "param_2") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x24) = 0;\n    iVar3 = *piVar1;\n    *(int *)(param_1 + 0x20) = iVar3;\n    if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }\n    *piVar1 = param_1;\n    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x20) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x20) = iVar3" (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 == 0) {\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }\n    else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      piVar1[1] = param_1;\n      if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }\n    }" ({ "{") (expression_statement "piVar1[1] = param_1;" (assignment_expression "piVar1[1] = param_1" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_1")) (; ";")) (if_statement "if (*(char *)(piVar1 + 8) != '\0') {\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }" (if "if") (parenthesized_expression "(*(char *)(piVar1 + 8) != '\0')" (( "(") (binary_expression "*(char *)(piVar1 + 8) != '\0'" (pointer_expression "*(char *)(piVar1 + 8)" (* "*") (cast_expression "(char *)(piVar1 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 8)" (( "(") (binary_expression "piVar1 + 8" (identifier "piVar1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        *(undefined1 *)((int)piVar1 + 0x21) = 1;\n      }" ({ "{") (expression_statement "*(undefined1 *)((int)piVar1 + 0x21) = 1;" (assignment_expression "*(undefined1 *)((int)piVar1 + 0x21) = 1" (pointer_expression "*(undefined1 *)((int)piVar1 + 0x21)" (* "*") (cast_expression "(undefined1 *)((int)piVar1 + 0x21)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x21)" (( "(") (binary_expression "(int)piVar1 + 0x21" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x21")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      *(int *)(iVar3 + 0x24) = param_1;\n    }" (else "else") (compound_statement "{\n      *(int *)(iVar3 + 0x24) = param_1;\n    }" ({ "{") (expression_statement "*(int *)(iVar3 + 0x24) = param_1;" (assignment_expression "*(int *)(iVar3 + 0x24) = param_1" (pointer_expression "*(int *)(iVar3 + 0x24)" (* "*") (cast_expression "(int *)(iVar3 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x24)" (( "(") (binary_expression "iVar3 + 0x24" (identifier "iVar3") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}")))) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_1")) (; ";")) (if_statement "if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {\n      piVar1[2] = param_1;\n      return;\n    }" (if "if") (parenthesized_expression "((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0))" (( "(") (binary_expression "(piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)" (parenthesized_expression "(piVar1[2] == 0)" (( "(") (binary_expression "piVar1[2] == 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(ushort *)(param_1 + 0x1c) & 8) == 0)" (( "(") (binary_expression "(*(ushort *)(param_1 + 0x1c) & 8) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 0x1c) & 8)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x1c) & 8" (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 "8")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      piVar1[2] = param_1;\n      return;\n    }" ({ "{") (expression_statement "piVar1[2] = param_1;" (assignment_expression "piVar1[2] = param_1" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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))))))) (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)))))))) alternative: (else_clause (compound_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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (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: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal)))))) alternative: (else_clause (compound_statement (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)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal)))))) alternative: (else_clause (compound_statement (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: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement)))))) (return_statement))))

void MASKED(int param_1,uint param_2)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  piVar1 = *(int **)(param_1 + 0xc);
  if ((param_2 & 1) == 0) goto LAB_0001da8c;
  iVar3 = *(int *)(param_1 + 0x24);
  if (piVar1[2] == param_1) {
    piVar1[2] = iVar3;
    iVar2 = *(int *)(param_1 + 0x20);
    iVar3 = *(int *)(param_1 + 0x24);
    if (iVar2 != 0) goto LAB_0001da78;
LAB_0001db00:
    piVar1[1] = iVar3;
    iVar3 = *(int *)(param_1 + 0x24);
    iVar2 = *(int *)(param_1 + 0x20);
  }
  else {
    iVar2 = *(int *)(param_1 + 0x20);
    if (iVar2 == 0) goto LAB_0001db00;
LAB_0001da78:
    *(int *)(iVar2 + 0x24) = iVar3;
    iVar3 = *(int *)(param_1 + 0x24);
    iVar2 = *(int *)(param_1 + 0x20);
  }
  if (iVar3 == 0) {
    *piVar1 = iVar2;
    if (iVar2 == 0) {
      *(undefined1 *)((int)piVar1 + 0x21) = 2;
    }
  }
  else {
    *(int *)(iVar3 + 0x20) = iVar2;
  }
LAB_0001da8c:
  if ((param_2 & 2) != 0) {
    *(undefined4 *)(param_1 + 0x24) = 0;
    iVar3 = *piVar1;
    *(int *)(param_1 + 0x20) = iVar3;
    if (iVar3 == 0) {
      piVar1[1] = param_1;
      if (*(char *)(piVar1 + 8) != '\0') {
        *(undefined1 *)((int)piVar1 + 0x21) = 1;
      }
    }
    else {
      *(int *)(iVar3 + 0x24) = param_1;
    }
    *piVar1 = param_1;
    if ((piVar1[2] == 0) && ((*(ushort *)(param_1 + 0x1c) & 8) == 0)) {
      piVar1[2] = param_1;
      return;
    }
  }
  return;
}

