
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

int sqlite3_db_cacheflush(sqlite3 *db)

{
  u8 uVar1;
  Btree *pBVar2;
  Pager *p;
  PCache *pPVar3;
  PgHdr *pPVar4;
  bool bVar5;
  bool bVar6;
  bool bVar7;
  PgHdr *pPVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  
  if (db->mutex != (sqlite3_mutex *)0x0) {
    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);
  }
  if (db->noSharedCache == '\0') {
    btreeEnterAll(db);
  }
  bVar7 = false;
  iVar10 = 0;
LAB_000a3f53:
  iVar9 = db->nDb;
  while (iVar11 = iVar10, iVar10 < iVar9) {
    while( true ) {
      iVar10 = iVar11 + 1;
      pBVar2 = db->aDb[iVar11].pBt;
      if ((pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02')) break;
      p = pBVar2->pBt->pPager;
      iVar9 = p->errCode;
      if (p->memDb == '\0') {
        pPVar3 = p->pPCache;
        pPVar8 = pPVar3->pDirty;
        if (pPVar8 != (PgHdr *)0x0) {
          do {
            pPVar4 = pPVar8->pDirtyNext;
            pPVar8->pDirty = pPVar4;
            pPVar8 = pPVar4;
          } while (pPVar4 != (PgHdr *)0x0);
          pPVar8 = pPVar3->pDirty;
        }
        pPVar8 = pcacheSortDirtyList(pPVar8);
        while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {
          iVar9 = 0;
          pPVar8 = pPVar4->pDirty;
          if (pPVar4->nRef == 0) {
            iVar9 = pagerStress(p,pPVar4);
          }
        }
      }
      if (iVar9 != 5) {
        if (iVar9 == 0) goto LAB_000a3f53;
        uVar1 = db->noSharedCache;
        bVar6 = true;
        bVar5 = true;
        goto joined_r0x000a3fde;
      }
      iVar9 = db->nDb;
      bVar7 = true;
      iVar11 = iVar10;
      if (iVar9 <= iVar10) goto LAB_000a4048;
    }
  }
LAB_000a4048:
  bVar6 = false;
  bVar5 = false;
  iVar9 = 0;
  uVar1 = db->noSharedCache;
joined_r0x000a3fde:
  if (uVar1 == '\0') {
    btreeLeaveAll(db);
    bVar5 = bVar6;
  }
  if (db->mutex != (sqlite3_mutex *)0x0) {
    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);
  }
  if ((bVar7) && (!bVar5)) {
    iVar9 = 5;
  }
  return iVar9;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int FUN_000a3f10(int param_1)

{
  char cVar1;
  bool bVar2;
  bool bVar3;
  bool bVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  
  if (*(int *)(param_1 + 0xc) != 0) {
    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));
  }
  if (*(char *)(param_1 + 0x55) == '\0') {
    FUN_00048b60();
  }
  bVar4 = false;
  iVar9 = 0;
LAB_000a3f53:
  iVar8 = *(int *)(param_1 + 0x14);
  while (iVar7 = iVar9, iVar9 < iVar8) {
    while( true ) {
      iVar9 = iVar7 + 1;
      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);
      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;
      iVar8 = **(int **)(iVar7 + 4);
      iVar7 = *(int *)(iVar8 + 0x28);
      if (*(char *)(iVar8 + 0xf) == '\0') {
        iVar6 = **(int **)(iVar8 + 0xd0);
        while (iVar6 != 0) {
          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);
          iVar6 = *(int *)(iVar6 + 0x20);
        }
        iVar6 = FUN_00041e10();
        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {
          iVar7 = 0;
          iVar6 = *(int *)(iVar5 + 0x10);
          if (*(short *)(iVar5 + 0x1e) == 0) {
            iVar7 = FUN_000a3e30(iVar8,iVar5);
          }
        }
      }
      if (iVar7 != 5) {
        if (iVar7 == 0) goto LAB_000a3f53;
        cVar1 = *(char *)(param_1 + 0x55);
        bVar3 = true;
        bVar2 = true;
        goto joined_r0x000a3fde;
      }
      iVar8 = *(int *)(param_1 + 0x14);
      bVar4 = true;
      iVar7 = iVar9;
      if (iVar8 <= iVar9) goto LAB_000a4048;
    }
  }
LAB_000a4048:
  bVar3 = false;
  bVar2 = false;
  iVar7 = 0;
  cVar1 = *(char *)(param_1 + 0x55);
joined_r0x000a3fde:
  if (cVar1 == '\0') {
    FUN_00048be0();
    bVar2 = bVar3;
  }
  if (*(int *)(param_1 + 0xc) != 0) {
    (*DAT_0017c444)(*(int *)(param_1 + 0xc));
  }
  if ((bVar4) && (!bVar2)) {
    iVar7 = 5;
  }
  return iVar7;
}


CALL 0x00036abd
ADD EAX,0xd7f13
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ECX,EAX
MOV EDI,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EDI + 0xc]
TEST EAX,EAX
JZ 0x000a3f3f
SUB ESP,0xc
PUSH EAX
CALL dword ptr [ECX + 0x614]
ADD ESP,0x10
CMP byte ptr [EDI + 0x55],0x0
JZ 0x000a4060
MOV dword ptr [ESP + 0x8],0x0
XOR EBX,EBX
MOV EDX,dword ptr [EDI + 0x14]
CMP EDX,EBX
JLE 0x000a4048
MOV EAX,EBX
ADD EBX,0x1
SHL EAX,0x4
ADD EAX,dword ptr [EDI + 0x10]
MOV EAX,dword ptr [EAX + 0x4]
TEST EAX,EAX
JZ 0x000a3f56
CMP byte ptr [EAX + 0x8],0x2
JNZ 0x000a3f56
MOV EAX,dword ptr [EAX + 0x4]
MOV EBP,dword ptr [EAX]
CMP byte ptr [EBP + 0xf],0x0
MOV ESI,dword ptr [EBP + 0x28]
JNZ 0x000a3fc8
MOV ECX,dword ptr [EBP + 0xd0]
MOV EAX,dword ptr [ECX]
TEST EAX,EAX
JZ 0x000a3f9e
MOV EDX,dword ptr [EAX + 0x20]
MOV dword ptr [EAX + 0x10],EDX
MOV EAX,EDX
TEST EDX,EDX
JNZ 0x000a3f90
MOV EAX,dword ptr [ECX]
CALL 0x00041e10
MOV EDX,EAX
MOV EAX,ESI
TEST EAX,EAX
JNZ 0x000a3fc6
LEA ESI,[ESI]
NOP
TEST EDX,EDX
JZ 0x000a3fc6
XOR EAX,EAX
CMP word ptr [EDX + 0x1e],0x0
MOV ESI,dword ptr [EDX + 0x10]
JZ 0x000a4018
MOV EDX,ESI
TEST EAX,EAX
JZ 0x000a3fb0
MOV ESI,EAX
CMP ESI,0x5
JZ 0x000a4030
TEST ESI,ESI
JZ 0x000a3f53
CMP byte ptr [EDI + 0x55],0x0
MOV EBX,0x1
JZ 0x000a4052
MOV EAX,dword ptr [EDI + 0xc]
TEST EAX,EAX
JZ 0x000a3ff8
SUB ESP,0xc
PUSH EAX
MOV EAX,dword ptr [ESP + 0x1c]
CALL dword ptr [EAX + 0x61c]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x000a400a
TEST BL,BL
MOV EAX,0x5
CMOVZ ESI,EAX
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EDX
PUSH EBP
CALL 0x000a3e30
ADD ESP,0x10
MOV EDX,ESI
JMP 0x000a3fc2
MOV EDX,dword ptr [EDI + 0x14]
MOV dword ptr [ESP + 0x8],0x1
CMP EDX,EBX
JG 0x000a3f5e
LEA ESI,[ESI]
NOP
XOR EBX,EBX
XOR ESI,ESI
CMP byte ptr [EDI + 0x55],0x0
JNZ 0x000a3fe0
MOV EAX,EDI
CALL 0x00048be0
JMP 0x000a3fe0
MOV EAX,EDI
CALL 0x00048b60
JMP 0x000a3f49
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint FUN_000a3f10(int param_1)\n\n{\n  char cVar1;\n  bool bVar2;\n  bool bVar3;\n  bool bVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }\n  if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }\n  bVar4 = false;\n  iVar9 = 0;\nLAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);\n  while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar3 = false;\n  bVar2 = false;\n  iVar7 = 0;\n  cVar1 = *(char *)(param_1 + 0x55);\njoined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }\n  if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }\n  return iVar7;\n}\n\n" comment (function_definition "int FUN_000a3f10(int param_1)\n\n{\n  char cVar1;\n  bool bVar2;\n  bool bVar3;\n  bool bVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }\n  if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }\n  bVar4 = false;\n  iVar9 = 0;\nLAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);\n  while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar3 = false;\n  bVar2 = false;\n  iVar7 = 0;\n  cVar1 = *(char *)(param_1 + 0x55);\njoined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }\n  if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }\n  return iVar7;\n}" primitive_type (function_declarator "FUN_000a3f10(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  bool bVar3;\n  bool bVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }\n  if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }\n  bVar4 = false;\n  iVar9 = 0;\nLAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);\n  while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar3 = false;\n  bVar2 = false;\n  iVar7 = 0;\n  cVar1 = *(char *)(param_1 + 0x55);\njoined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }\n  if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }\n  return iVar7;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(*DAT_0017c43c)(*(int *)(param_1 + 0xc));" (call_expression "(*DAT_0017c43c)(*(int *)(param_1 + 0xc))" (parenthesized_expression "(*DAT_0017c43c)" ( (pointer_expression "*DAT_0017c43c" * identifier) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (if_statement "if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x55) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x55) == '\0'" (pointer_expression "*(char *)(param_1 + 0x55)" * (cast_expression "(char *)(param_1 + 0x55)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x55)" ( (binary_expression "param_1 + 0x55" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00048b60();\n  }" { (expression_statement "FUN_00048b60();" (call_expression "FUN_00048b60()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);" statement_identifier : (expression_statement "iVar8 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;)) (while_statement "while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }" while (parenthesized_expression "(iVar7 = iVar9, iVar9 < iVar8)" ( (comma_expression "iVar7 = iVar9, iVar9 < iVar8" (assignment_expression "iVar7 = iVar9" identifier = identifier) , (binary_expression "iVar9 < iVar8" identifier < identifier)) )) (compound_statement "{\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }" { (while_statement "while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }" { (expression_statement "iVar9 = iVar7 + 1;" (assignment_expression "iVar9 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);" (assignment_expression "iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" identifier = (pointer_expression "*(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" * (cast_expression "(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" ( (binary_expression "iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4" (binary_expression "iVar7 * 0x10 + *(int *)(param_1 + 0x10)" (binary_expression "iVar7 * 0x10" identifier * number_literal) + (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;" if (parenthesized_expression "((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02'))" ( (binary_expression "(iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')" (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(char *)(iVar7 + 8) != '\x02')" ( (binary_expression "*(char *)(iVar7 + 8) != '\x02'" (pointer_expression "*(char *)(iVar7 + 8)" * (cast_expression "(char *)(iVar7 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) )))) != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = **(int **)(iVar7 + 4);" (assignment_expression "iVar8 = **(int **)(iVar7 + 4)" identifier = (pointer_expression "**(int **)(iVar7 + 4)" * (pointer_expression "*(int **)(iVar7 + 4)" * (cast_expression "(int **)(iVar7 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) )))))) ;) (expression_statement "iVar7 = *(int *)(iVar8 + 0x28);" (assignment_expression "iVar7 = *(int *)(iVar8 + 0x28)" identifier = (pointer_expression "*(int *)(iVar8 + 0x28)" * (cast_expression "(int *)(iVar8 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x28)" ( (binary_expression "iVar8 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }" if (parenthesized_expression "(*(char *)(iVar8 + 0xf) == '\0')" ( (binary_expression "*(char *)(iVar8 + 0xf) == '\0'" (pointer_expression "*(char *)(iVar8 + 0xf)" * (cast_expression "(char *)(iVar8 + 0xf)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xf)" ( (binary_expression "iVar8 + 0xf" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }" { (expression_statement "iVar6 = **(int **)(iVar8 + 0xd0);" (assignment_expression "iVar6 = **(int **)(iVar8 + 0xd0)" identifier = (pointer_expression "**(int **)(iVar8 + 0xd0)" * (pointer_expression "*(int **)(iVar8 + 0xd0)" * (cast_expression "(int **)(iVar8 + 0xd0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 0xd0)" ( (binary_expression "iVar8 + 0xd0" identifier + number_literal) )))))) ;) (while_statement "while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }" while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }" { (expression_statement "*(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);" (assignment_expression "*(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20)" (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(int *)(iVar6 + 0x20)" * (cast_expression "(int *)(iVar6 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x20)" ( (binary_expression "iVar6 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(iVar6 + 0x20);" (assignment_expression "iVar6 = *(int *)(iVar6 + 0x20)" identifier = (pointer_expression "*(int *)(iVar6 + 0x20)" * (cast_expression "(int *)(iVar6 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x20)" ( (binary_expression "iVar6 + 0x20" identifier + number_literal) ))))) ;) })) (expression_statement "iVar6 = FUN_00041e10();" (assignment_expression "iVar6 = FUN_00041e10()" identifier = (call_expression "FUN_00041e10()" identifier (argument_list "()" ( )))) ;) (while_statement "while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }" while (parenthesized_expression "((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0)))" ( (parenthesized_expression "(iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))" ( (comma_expression "iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0)" (assignment_expression "iVar5 = iVar6" identifier = identifier) , (binary_expression "iVar7 == 0 && (iVar5 != 0)" (binary_expression "iVar7 == 0" identifier == number_literal) && (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )))) )) )) (compound_statement "{\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0x10)" identifier = (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }" if (parenthesized_expression "(*(short *)(iVar5 + 0x1e) == 0)" ( (binary_expression "*(short *)(iVar5 + 0x1e) == 0" (pointer_expression "*(short *)(iVar5 + 0x1e)" * (cast_expression "(short *)(iVar5 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1e)" ( (binary_expression "iVar5 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }" { (expression_statement "iVar7 = FUN_000a3e30(iVar8,iVar5);" (assignment_expression "iVar7 = FUN_000a3e30(iVar8,iVar5)" identifier = (call_expression "FUN_000a3e30(iVar8,iVar5)" identifier (argument_list "(iVar8,iVar5)" ( identifier , identifier )))) ;) })) })) })) (if_statement "if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }" if (parenthesized_expression "(iVar7 != 5)" ( (binary_expression "iVar7 != 5" identifier != number_literal) )) (compound_statement "{\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }" { (if_statement "if (iVar7 == 0) goto LAB_000a3f53;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a3f53;" goto statement_identifier ;)) (expression_statement "cVar1 = *(char *)(param_1 + 0x55);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x55)" identifier = (pointer_expression "*(char *)(param_1 + 0x55)" * (cast_expression "(char *)(param_1 + 0x55)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x55)" ( (binary_expression "param_1 + 0x55" identifier + number_literal) ))))) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (goto_statement "goto joined_r0x000a3fde;" goto statement_identifier ;) })) (expression_statement "iVar8 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "bVar4 = true;" (assignment_expression "bVar4 = true" identifier = true) ;) (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" identifier = identifier) ;) (if_statement "if (iVar8 <= iVar9) goto LAB_000a4048;" if (parenthesized_expression "(iVar8 <= iVar9)" ( (binary_expression "iVar8 <= iVar9" identifier <= identifier) )) (goto_statement "goto LAB_000a4048;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_000a4048:\n  bVar3 = false;" statement_identifier : (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;)) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x55);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x55)" identifier = (pointer_expression "*(char *)(param_1 + 0x55)" * (cast_expression "(char *)(param_1 + 0x55)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x55)" ( (binary_expression "param_1 + 0x55" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }" statement_identifier : (if_statement "if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }" { (expression_statement "FUN_00048be0();" (call_expression "FUN_00048be0()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar2 = bVar3;" (assignment_expression "bVar2 = bVar3" identifier = identifier) ;) }))) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(*DAT_0017c444)(*(int *)(param_1 + 0xc));" (call_expression "(*DAT_0017c444)(*(int *)(param_1 + 0xc))" (parenthesized_expression "(*DAT_0017c444)" ( (pointer_expression "*DAT_0017c444" * identifier) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }" if (parenthesized_expression "((bVar4) && (!bVar2))" ( (binary_expression "(bVar4) && (!bVar2)" (parenthesized_expression "(bVar4)" ( identifier )) && (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) ))) )) (compound_statement "{\n    iVar7 = 5;\n  }" { (expression_statement "iVar7 = 5;" (assignment_expression "iVar7 = 5" identifier = number_literal) ;) })) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nint sqlite3_db_cacheflush(sqlite3 *db)\n\n{\n  u8 uVar1;\n  Btree *pBVar2;\n  Pager *p;\n  PCache *pPVar3;\n  PgHdr *pPVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  PgHdr *pPVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);\n  }\n  if (db->noSharedCache == '\0') {\n    btreeEnterAll(db);\n  }\n  bVar7 = false;\n  iVar10 = 0;\nLAB_000a3f53:\n  iVar9 = db->nDb;\n  while (iVar11 = iVar10, iVar10 < iVar9) {\n    while( true ) {\n      iVar10 = iVar11 + 1;\n      pBVar2 = db->aDb[iVar11].pBt;\n      if ((pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02')) break;\n      p = pBVar2->pBt->pPager;\n      iVar9 = p->errCode;\n      if (p->memDb == '\0') {\n        pPVar3 = p->pPCache;\n        pPVar8 = pPVar3->pDirty;\n        if (pPVar8 != (PgHdr *)0x0) {\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }\n        pPVar8 = pcacheSortDirtyList(pPVar8);\n        while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }\n      }\n      if (iVar9 != 5) {\n        if (iVar9 == 0) goto LAB_000a3f53;\n        uVar1 = db->noSharedCache;\n        bVar6 = true;\n        bVar5 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar9 = db->nDb;\n      bVar7 = true;\n      iVar11 = iVar10;\n      if (iVar9 <= iVar10) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar6 = false;\n  bVar5 = false;\n  iVar9 = 0;\n  uVar1 = db->noSharedCache;\njoined_r0x000a3fde:\n  if (uVar1 == '\0') {\n    btreeLeaveAll(db);\n    bVar5 = bVar6;\n  }\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);\n  }\n  if ((bVar7) && (!bVar5)) {\n    iVar9 = 5;\n  }\n  return iVar9;\n}\n\n" comment comment (function_definition "int sqlite3_db_cacheflush(sqlite3 *db)\n\n{\n  u8 uVar1;\n  Btree *pBVar2;\n  Pager *p;\n  PCache *pPVar3;\n  PgHdr *pPVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  PgHdr *pPVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);\n  }\n  if (db->noSharedCache == '\0') {\n    btreeEnterAll(db);\n  }\n  bVar7 = false;\n  iVar10 = 0;\nLAB_000a3f53:\n  iVar9 = db->nDb;\n  while (iVar11 = iVar10, iVar10 < iVar9) {\n    while( true ) {\n      iVar10 = iVar11 + 1;\n      pBVar2 = db->aDb[iVar11].pBt;\n      if ((pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02')) break;\n      p = pBVar2->pBt->pPager;\n      iVar9 = p->errCode;\n      if (p->memDb == '\0') {\n        pPVar3 = p->pPCache;\n        pPVar8 = pPVar3->pDirty;\n        if (pPVar8 != (PgHdr *)0x0) {\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }\n        pPVar8 = pcacheSortDirtyList(pPVar8);\n        while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }\n      }\n      if (iVar9 != 5) {\n        if (iVar9 == 0) goto LAB_000a3f53;\n        uVar1 = db->noSharedCache;\n        bVar6 = true;\n        bVar5 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar9 = db->nDb;\n      bVar7 = true;\n      iVar11 = iVar10;\n      if (iVar9 <= iVar10) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar6 = false;\n  bVar5 = false;\n  iVar9 = 0;\n  uVar1 = db->noSharedCache;\njoined_r0x000a3fde:\n  if (uVar1 == '\0') {\n    btreeLeaveAll(db);\n    bVar5 = bVar6;\n  }\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);\n  }\n  if ((bVar7) && (!bVar5)) {\n    iVar9 = 5;\n  }\n  return iVar9;\n}" primitive_type (function_declarator "sqlite3_db_cacheflush(sqlite3 *db)" identifier (parameter_list "(sqlite3 *db)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) ))) (compound_statement "{\n  u8 uVar1;\n  Btree *pBVar2;\n  Pager *p;\n  PCache *pPVar3;\n  PgHdr *pPVar4;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  PgHdr *pPVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);\n  }\n  if (db->noSharedCache == '\0') {\n    btreeEnterAll(db);\n  }\n  bVar7 = false;\n  iVar10 = 0;\nLAB_000a3f53:\n  iVar9 = db->nDb;\n  while (iVar11 = iVar10, iVar10 < iVar9) {\n    while( true ) {\n      iVar10 = iVar11 + 1;\n      pBVar2 = db->aDb[iVar11].pBt;\n      if ((pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02')) break;\n      p = pBVar2->pBt->pPager;\n      iVar9 = p->errCode;\n      if (p->memDb == '\0') {\n        pPVar3 = p->pPCache;\n        pPVar8 = pPVar3->pDirty;\n        if (pPVar8 != (PgHdr *)0x0) {\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }\n        pPVar8 = pcacheSortDirtyList(pPVar8);\n        while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }\n      }\n      if (iVar9 != 5) {\n        if (iVar9 == 0) goto LAB_000a3f53;\n        uVar1 = db->noSharedCache;\n        bVar6 = true;\n        bVar5 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar9 = db->nDb;\n      bVar7 = true;\n      iVar11 = iVar10;\n      if (iVar9 <= iVar10) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar6 = false;\n  bVar5 = false;\n  iVar9 = 0;\n  uVar1 = db->noSharedCache;\njoined_r0x000a3fde:\n  if (uVar1 == '\0') {\n    btreeLeaveAll(db);\n    bVar5 = bVar6;\n  }\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);\n  }\n  if ((bVar7) && (!bVar5)) {\n    iVar9 = 5;\n  }\n  return iVar9;\n}" { (declaration "u8 uVar1;" type_identifier identifier ;) (declaration "Btree *pBVar2;" type_identifier (pointer_declarator "*pBVar2" * identifier) ;) (declaration "Pager *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "PCache *pPVar3;" type_identifier (pointer_declarator "*pPVar3" * identifier) ;) (declaration "PgHdr *pPVar4;" type_identifier (pointer_declarator "*pPVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "PgHdr *pPVar8;" type_identifier (pointer_declarator "*pPVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (if_statement "if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);\n  }" if (parenthesized_expression "(db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "db->mutex != (sqlite3_mutex *)0x0" (field_expression "db->mutex" identifier -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);\n  }" { (expression_statement "(*sqlite3Config.mutex.xMutexEnter)(db->mutex);" (call_expression "(*sqlite3Config.mutex.xMutexEnter)(db->mutex)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexEnter)" ( (pointer_expression "*sqlite3Config.mutex.xMutexEnter" * (field_expression "sqlite3Config.mutex.xMutexEnter" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) })) (if_statement "if (db->noSharedCache == '\0') {\n    btreeEnterAll(db);\n  }" if (parenthesized_expression "(db->noSharedCache == '\0')" ( (binary_expression "db->noSharedCache == '\0'" (field_expression "db->noSharedCache" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    btreeEnterAll(db);\n  }" { (expression_statement "btreeEnterAll(db);" (call_expression "btreeEnterAll(db)" identifier (argument_list "(db)" ( identifier ))) ;) })) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000a3f53:\n  iVar9 = db->nDb;" statement_identifier : (expression_statement "iVar9 = db->nDb;" (assignment_expression "iVar9 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;)) (while_statement "while (iVar11 = iVar10, iVar10 < iVar9) {\n    while( true ) {\n      iVar10 = iVar11 + 1;\n      pBVar2 = db->aDb[iVar11].pBt;\n      if ((pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02')) break;\n      p = pBVar2->pBt->pPager;\n      iVar9 = p->errCode;\n      if (p->memDb == '\0') {\n        pPVar3 = p->pPCache;\n        pPVar8 = pPVar3->pDirty;\n        if (pPVar8 != (PgHdr *)0x0) {\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }\n        pPVar8 = pcacheSortDirtyList(pPVar8);\n        while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }\n      }\n      if (iVar9 != 5) {\n        if (iVar9 == 0) goto LAB_000a3f53;\n        uVar1 = db->noSharedCache;\n        bVar6 = true;\n        bVar5 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar9 = db->nDb;\n      bVar7 = true;\n      iVar11 = iVar10;\n      if (iVar9 <= iVar10) goto LAB_000a4048;\n    }\n  }" while (parenthesized_expression "(iVar11 = iVar10, iVar10 < iVar9)" ( (comma_expression "iVar11 = iVar10, iVar10 < iVar9" (assignment_expression "iVar11 = iVar10" identifier = identifier) , (binary_expression "iVar10 < iVar9" identifier < identifier)) )) (compound_statement "{\n    while( true ) {\n      iVar10 = iVar11 + 1;\n      pBVar2 = db->aDb[iVar11].pBt;\n      if ((pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02')) break;\n      p = pBVar2->pBt->pPager;\n      iVar9 = p->errCode;\n      if (p->memDb == '\0') {\n        pPVar3 = p->pPCache;\n        pPVar8 = pPVar3->pDirty;\n        if (pPVar8 != (PgHdr *)0x0) {\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }\n        pPVar8 = pcacheSortDirtyList(pPVar8);\n        while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }\n      }\n      if (iVar9 != 5) {\n        if (iVar9 == 0) goto LAB_000a3f53;\n        uVar1 = db->noSharedCache;\n        bVar6 = true;\n        bVar5 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar9 = db->nDb;\n      bVar7 = true;\n      iVar11 = iVar10;\n      if (iVar9 <= iVar10) goto LAB_000a4048;\n    }\n  }" { (while_statement "while( true ) {\n      iVar10 = iVar11 + 1;\n      pBVar2 = db->aDb[iVar11].pBt;\n      if ((pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02')) break;\n      p = pBVar2->pBt->pPager;\n      iVar9 = p->errCode;\n      if (p->memDb == '\0') {\n        pPVar3 = p->pPCache;\n        pPVar8 = pPVar3->pDirty;\n        if (pPVar8 != (PgHdr *)0x0) {\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }\n        pPVar8 = pcacheSortDirtyList(pPVar8);\n        while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }\n      }\n      if (iVar9 != 5) {\n        if (iVar9 == 0) goto LAB_000a3f53;\n        uVar1 = db->noSharedCache;\n        bVar6 = true;\n        bVar5 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar9 = db->nDb;\n      bVar7 = true;\n      iVar11 = iVar10;\n      if (iVar9 <= iVar10) goto LAB_000a4048;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar10 = iVar11 + 1;\n      pBVar2 = db->aDb[iVar11].pBt;\n      if ((pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02')) break;\n      p = pBVar2->pBt->pPager;\n      iVar9 = p->errCode;\n      if (p->memDb == '\0') {\n        pPVar3 = p->pPCache;\n        pPVar8 = pPVar3->pDirty;\n        if (pPVar8 != (PgHdr *)0x0) {\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }\n        pPVar8 = pcacheSortDirtyList(pPVar8);\n        while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }\n      }\n      if (iVar9 != 5) {\n        if (iVar9 == 0) goto LAB_000a3f53;\n        uVar1 = db->noSharedCache;\n        bVar6 = true;\n        bVar5 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar9 = db->nDb;\n      bVar7 = true;\n      iVar11 = iVar10;\n      if (iVar9 <= iVar10) goto LAB_000a4048;\n    }" { (expression_statement "iVar10 = iVar11 + 1;" (assignment_expression "iVar10 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "pBVar2 = db->aDb[iVar11].pBt;" (assignment_expression "pBVar2 = db->aDb[iVar11].pBt" identifier = (field_expression "db->aDb[iVar11].pBt" (subscript_expression "db->aDb[iVar11]" (field_expression "db->aDb" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (if_statement "if ((pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02')) break;" if (parenthesized_expression "((pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02'))" ( (binary_expression "(pBVar2 == (Btree *)0x0) || (pBVar2->inTrans != '\x02')" (parenthesized_expression "(pBVar2 == (Btree *)0x0)" ( (binary_expression "pBVar2 == (Btree *)0x0" identifier == (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pBVar2->inTrans != '\x02')" ( (binary_expression "pBVar2->inTrans != '\x02'" (field_expression "pBVar2->inTrans" identifier -> field_identifier) != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "p = pBVar2->pBt->pPager;" (assignment_expression "p = pBVar2->pBt->pPager" identifier = (field_expression "pBVar2->pBt->pPager" (field_expression "pBVar2->pBt" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar9 = p->errCode;" (assignment_expression "iVar9 = p->errCode" identifier = (field_expression "p->errCode" identifier -> field_identifier)) ;) (if_statement "if (p->memDb == '\0') {\n        pPVar3 = p->pPCache;\n        pPVar8 = pPVar3->pDirty;\n        if (pPVar8 != (PgHdr *)0x0) {\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }\n        pPVar8 = pcacheSortDirtyList(pPVar8);\n        while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }\n      }" if (parenthesized_expression "(p->memDb == '\0')" ( (binary_expression "p->memDb == '\0'" (field_expression "p->memDb" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pPVar3 = p->pPCache;\n        pPVar8 = pPVar3->pDirty;\n        if (pPVar8 != (PgHdr *)0x0) {\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }\n        pPVar8 = pcacheSortDirtyList(pPVar8);\n        while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }\n      }" { (expression_statement "pPVar3 = p->pPCache;" (assignment_expression "pPVar3 = p->pPCache" identifier = (field_expression "p->pPCache" identifier -> field_identifier)) ;) (expression_statement "pPVar8 = pPVar3->pDirty;" (assignment_expression "pPVar8 = pPVar3->pDirty" identifier = (field_expression "pPVar3->pDirty" identifier -> field_identifier)) ;) (if_statement "if (pPVar8 != (PgHdr *)0x0) {\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }" if (parenthesized_expression "(pPVar8 != (PgHdr *)0x0)" ( (binary_expression "pPVar8 != (PgHdr *)0x0" identifier != (cast_expression "(PgHdr *)0x0" ( (type_descriptor "PgHdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);\n          pPVar8 = pPVar3->pDirty;\n        }" { (do_statement "do {\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          } while (pPVar4 != (PgHdr *)0x0);" do (compound_statement "{\n            pPVar4 = pPVar8->pDirtyNext;\n            pPVar8->pDirty = pPVar4;\n            pPVar8 = pPVar4;\n          }" { (expression_statement "pPVar4 = pPVar8->pDirtyNext;" (assignment_expression "pPVar4 = pPVar8->pDirtyNext" identifier = (field_expression "pPVar8->pDirtyNext" identifier -> field_identifier)) ;) (expression_statement "pPVar8->pDirty = pPVar4;" (assignment_expression "pPVar8->pDirty = pPVar4" (field_expression "pPVar8->pDirty" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar8 = pPVar4;" (assignment_expression "pPVar8 = pPVar4" identifier = identifier) ;) }) while (parenthesized_expression "(pPVar4 != (PgHdr *)0x0)" ( (binary_expression "pPVar4 != (PgHdr *)0x0" identifier != (cast_expression "(PgHdr *)0x0" ( (type_descriptor "PgHdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "pPVar8 = pPVar3->pDirty;" (assignment_expression "pPVar8 = pPVar3->pDirty" identifier = (field_expression "pPVar3->pDirty" identifier -> field_identifier)) ;) })) (expression_statement "pPVar8 = pcacheSortDirtyList(pPVar8);" (assignment_expression "pPVar8 = pcacheSortDirtyList(pPVar8)" identifier = (call_expression "pcacheSortDirtyList(pPVar8)" identifier (argument_list "(pPVar8)" ( identifier )))) ;) (while_statement "while ((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))) {\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }" while (parenthesized_expression "((pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0)))" ( (parenthesized_expression "(pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0))" ( (comma_expression "pPVar4 = pPVar8, iVar9 == 0 && (pPVar4 != (PgHdr *)0x0)" (assignment_expression "pPVar4 = pPVar8" identifier = identifier) , (binary_expression "iVar9 == 0 && (pPVar4 != (PgHdr *)0x0)" (binary_expression "iVar9 == 0" identifier == number_literal) && (parenthesized_expression "(pPVar4 != (PgHdr *)0x0)" ( (binary_expression "pPVar4 != (PgHdr *)0x0" identifier != (cast_expression "(PgHdr *)0x0" ( (type_descriptor "PgHdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )))) )) )) (compound_statement "{\n          iVar9 = 0;\n          pPVar8 = pPVar4->pDirty;\n          if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }\n        }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "pPVar8 = pPVar4->pDirty;" (assignment_expression "pPVar8 = pPVar4->pDirty" identifier = (field_expression "pPVar4->pDirty" identifier -> field_identifier)) ;) (if_statement "if (pPVar4->nRef == 0) {\n            iVar9 = pagerStress(p,pPVar4);\n          }" if (parenthesized_expression "(pPVar4->nRef == 0)" ( (binary_expression "pPVar4->nRef == 0" (field_expression "pPVar4->nRef" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n            iVar9 = pagerStress(p,pPVar4);\n          }" { (expression_statement "iVar9 = pagerStress(p,pPVar4);" (assignment_expression "iVar9 = pagerStress(p,pPVar4)" identifier = (call_expression "pagerStress(p,pPVar4)" identifier (argument_list "(p,pPVar4)" ( identifier , identifier )))) ;) })) })) })) (if_statement "if (iVar9 != 5) {\n        if (iVar9 == 0) goto LAB_000a3f53;\n        uVar1 = db->noSharedCache;\n        bVar6 = true;\n        bVar5 = true;\n        goto joined_r0x000a3fde;\n      }" if (parenthesized_expression "(iVar9 != 5)" ( (binary_expression "iVar9 != 5" identifier != number_literal) )) (compound_statement "{\n        if (iVar9 == 0) goto LAB_000a3f53;\n        uVar1 = db->noSharedCache;\n        bVar6 = true;\n        bVar5 = true;\n        goto joined_r0x000a3fde;\n      }" { (if_statement "if (iVar9 == 0) goto LAB_000a3f53;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a3f53;" goto statement_identifier ;)) (expression_statement "uVar1 = db->noSharedCache;" (assignment_expression "uVar1 = db->noSharedCache" identifier = (field_expression "db->noSharedCache" identifier -> field_identifier)) ;) (expression_statement "bVar6 = true;" (assignment_expression "bVar6 = true" identifier = true) ;) (expression_statement "bVar5 = true;" (assignment_expression "bVar5 = true" identifier = true) ;) (goto_statement "goto joined_r0x000a3fde;" goto statement_identifier ;) })) (expression_statement "iVar9 = db->nDb;" (assignment_expression "iVar9 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" identifier = true) ;) (expression_statement "iVar11 = iVar10;" (assignment_expression "iVar11 = iVar10" identifier = identifier) ;) (if_statement "if (iVar9 <= iVar10) goto LAB_000a4048;" if (parenthesized_expression "(iVar9 <= iVar10)" ( (binary_expression "iVar9 <= iVar10" identifier <= identifier) )) (goto_statement "goto LAB_000a4048;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_000a4048:\n  bVar6 = false;" statement_identifier : (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;)) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = db->noSharedCache;" (assignment_expression "uVar1 = db->noSharedCache" identifier = (field_expression "db->noSharedCache" identifier -> field_identifier)) ;) (labeled_statement "joined_r0x000a3fde:\n  if (uVar1 == '\0') {\n    btreeLeaveAll(db);\n    bVar5 = bVar6;\n  }" statement_identifier : (if_statement "if (uVar1 == '\0') {\n    btreeLeaveAll(db);\n    bVar5 = bVar6;\n  }" if (parenthesized_expression "(uVar1 == '\0')" ( (binary_expression "uVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    btreeLeaveAll(db);\n    bVar5 = bVar6;\n  }" { (expression_statement "btreeLeaveAll(db);" (call_expression "btreeLeaveAll(db)" identifier (argument_list "(db)" ( identifier ))) ;) (expression_statement "bVar5 = bVar6;" (assignment_expression "bVar5 = bVar6" identifier = identifier) ;) }))) (if_statement "if (db->mutex != (sqlite3_mutex *)0x0) {\n    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);\n  }" if (parenthesized_expression "(db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "db->mutex != (sqlite3_mutex *)0x0" (field_expression "db->mutex" identifier -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);\n  }" { (expression_statement "(*sqlite3Config.mutex.xMutexLeave)(db->mutex);" (call_expression "(*sqlite3Config.mutex.xMutexLeave)(db->mutex)" (parenthesized_expression "(*sqlite3Config.mutex.xMutexLeave)" ( (pointer_expression "*sqlite3Config.mutex.xMutexLeave" * (field_expression "sqlite3Config.mutex.xMutexLeave" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) })) (if_statement "if ((bVar7) && (!bVar5)) {\n    iVar9 = 5;\n  }" if (parenthesized_expression "((bVar7) && (!bVar5))" ( (binary_expression "(bVar7) && (!bVar5)" (parenthesized_expression "(bVar7)" ( identifier )) && (parenthesized_expression "(!bVar5)" ( (unary_expression "!bVar5" ! identifier) ))) )) (compound_statement "{\n    iVar9 = 5;\n  }" { (expression_statement "iVar9 = 5;" (assignment_expression "iVar9 = 5" identifier = number_literal) ;) })) (return_statement "return iVar9;" return identifier ;) })))
(translation_unit "int FUN_000a3f10(int param_1)\n\n{\n  char cVar1;\n  bool bVar2;\n  bool bVar3;\n  bool bVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }\n  if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }\n  bVar4 = false;\n  iVar9 = 0;\nLAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);\n  while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar3 = false;\n  bVar2 = false;\n  iVar7 = 0;\n  cVar1 = *(char *)(param_1 + 0x55);\njoined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }\n  if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }\n  return iVar7;\n}\n\n" (function_definition "int FUN_000a3f10(int param_1)\n\n{\n  char cVar1;\n  bool bVar2;\n  bool bVar3;\n  bool bVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }\n  if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }\n  bVar4 = false;\n  iVar9 = 0;\nLAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);\n  while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar3 = false;\n  bVar2 = false;\n  iVar7 = 0;\n  cVar1 = *(char *)(param_1 + 0x55);\njoined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }\n  if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }\n  return iVar7;\n}" primitive_type (function_declarator "FUN_000a3f10(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  bool bVar3;\n  bool bVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }\n  if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }\n  bVar4 = false;\n  iVar9 = 0;\nLAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);\n  while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar3 = false;\n  bVar2 = false;\n  iVar7 = 0;\n  cVar1 = *(char *)(param_1 + 0x55);\njoined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }\n  if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }\n  return iVar7;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(*DAT_0017c43c)(*(int *)(param_1 + 0xc));" (call_expression "(*DAT_0017c43c)(*(int *)(param_1 + 0xc))" (parenthesized_expression "(*DAT_0017c43c)" ( (pointer_expression "*DAT_0017c43c" * identifier) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (if_statement "if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x55) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x55) == '\0'" (pointer_expression "*(char *)(param_1 + 0x55)" * (cast_expression "(char *)(param_1 + 0x55)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x55)" ( (binary_expression "param_1 + 0x55" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00048b60();\n  }" { (expression_statement "FUN_00048b60();" (call_expression "FUN_00048b60()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);" statement_identifier : (expression_statement "iVar8 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;)) (while_statement "while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }" while (parenthesized_expression "(iVar7 = iVar9, iVar9 < iVar8)" ( (comma_expression "iVar7 = iVar9, iVar9 < iVar8" (assignment_expression "iVar7 = iVar9" identifier = identifier) , (binary_expression "iVar9 < iVar8" identifier < identifier)) )) (compound_statement "{\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }" { (while_statement "while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }" { (expression_statement "iVar9 = iVar7 + 1;" (assignment_expression "iVar9 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);" (assignment_expression "iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" identifier = (pointer_expression "*(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" * (cast_expression "(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" ( (binary_expression "iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4" (binary_expression "iVar7 * 0x10 + *(int *)(param_1 + 0x10)" (binary_expression "iVar7 * 0x10" identifier * number_literal) + (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;" if (parenthesized_expression "((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02'))" ( (binary_expression "(iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')" (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(char *)(iVar7 + 8) != '\x02')" ( (binary_expression "*(char *)(iVar7 + 8) != '\x02'" (pointer_expression "*(char *)(iVar7 + 8)" * (cast_expression "(char *)(iVar7 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) )))) != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = **(int **)(iVar7 + 4);" (assignment_expression "iVar8 = **(int **)(iVar7 + 4)" identifier = (pointer_expression "**(int **)(iVar7 + 4)" * (pointer_expression "*(int **)(iVar7 + 4)" * (cast_expression "(int **)(iVar7 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) )))))) ;) (expression_statement "iVar7 = *(int *)(iVar8 + 0x28);" (assignment_expression "iVar7 = *(int *)(iVar8 + 0x28)" identifier = (pointer_expression "*(int *)(iVar8 + 0x28)" * (cast_expression "(int *)(iVar8 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x28)" ( (binary_expression "iVar8 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }" if (parenthesized_expression "(*(char *)(iVar8 + 0xf) == '\0')" ( (binary_expression "*(char *)(iVar8 + 0xf) == '\0'" (pointer_expression "*(char *)(iVar8 + 0xf)" * (cast_expression "(char *)(iVar8 + 0xf)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xf)" ( (binary_expression "iVar8 + 0xf" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }" { (expression_statement "iVar6 = **(int **)(iVar8 + 0xd0);" (assignment_expression "iVar6 = **(int **)(iVar8 + 0xd0)" identifier = (pointer_expression "**(int **)(iVar8 + 0xd0)" * (pointer_expression "*(int **)(iVar8 + 0xd0)" * (cast_expression "(int **)(iVar8 + 0xd0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 0xd0)" ( (binary_expression "iVar8 + 0xd0" identifier + number_literal) )))))) ;) (while_statement "while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }" while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }" { (expression_statement "*(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);" (assignment_expression "*(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20)" (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(int *)(iVar6 + 0x20)" * (cast_expression "(int *)(iVar6 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x20)" ( (binary_expression "iVar6 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(iVar6 + 0x20);" (assignment_expression "iVar6 = *(int *)(iVar6 + 0x20)" identifier = (pointer_expression "*(int *)(iVar6 + 0x20)" * (cast_expression "(int *)(iVar6 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x20)" ( (binary_expression "iVar6 + 0x20" identifier + number_literal) ))))) ;) })) (expression_statement "iVar6 = FUN_00041e10();" (assignment_expression "iVar6 = FUN_00041e10()" identifier = (call_expression "FUN_00041e10()" identifier (argument_list "()" ( )))) ;) (while_statement "while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }" while (parenthesized_expression "((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0)))" ( (parenthesized_expression "(iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))" ( (comma_expression "iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0)" (assignment_expression "iVar5 = iVar6" identifier = identifier) , (binary_expression "iVar7 == 0 && (iVar5 != 0)" (binary_expression "iVar7 == 0" identifier == number_literal) && (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )))) )) )) (compound_statement "{\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0x10)" identifier = (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }" if (parenthesized_expression "(*(short *)(iVar5 + 0x1e) == 0)" ( (binary_expression "*(short *)(iVar5 + 0x1e) == 0" (pointer_expression "*(short *)(iVar5 + 0x1e)" * (cast_expression "(short *)(iVar5 + 0x1e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1e)" ( (binary_expression "iVar5 + 0x1e" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }" { (expression_statement "iVar7 = FUN_000a3e30(iVar8,iVar5);" (assignment_expression "iVar7 = FUN_000a3e30(iVar8,iVar5)" identifier = (call_expression "FUN_000a3e30(iVar8,iVar5)" identifier (argument_list "(iVar8,iVar5)" ( identifier , identifier )))) ;) })) })) })) (if_statement "if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }" if (parenthesized_expression "(iVar7 != 5)" ( (binary_expression "iVar7 != 5" identifier != number_literal) )) (compound_statement "{\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }" { (if_statement "if (iVar7 == 0) goto LAB_000a3f53;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a3f53;" goto statement_identifier ;)) (expression_statement "cVar1 = *(char *)(param_1 + 0x55);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x55)" identifier = (pointer_expression "*(char *)(param_1 + 0x55)" * (cast_expression "(char *)(param_1 + 0x55)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x55)" ( (binary_expression "param_1 + 0x55" identifier + number_literal) ))))) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (goto_statement "goto joined_r0x000a3fde;" goto statement_identifier ;) })) (expression_statement "iVar8 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "bVar4 = true;" (assignment_expression "bVar4 = true" identifier = true) ;) (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" identifier = identifier) ;) (if_statement "if (iVar8 <= iVar9) goto LAB_000a4048;" if (parenthesized_expression "(iVar8 <= iVar9)" ( (binary_expression "iVar8 <= iVar9" identifier <= identifier) )) (goto_statement "goto LAB_000a4048;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_000a4048:\n  bVar3 = false;" statement_identifier : (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;)) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x55);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x55)" identifier = (pointer_expression "*(char *)(param_1 + 0x55)" * (cast_expression "(char *)(param_1 + 0x55)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x55)" ( (binary_expression "param_1 + 0x55" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }" statement_identifier : (if_statement "if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }" { (expression_statement "FUN_00048be0();" (call_expression "FUN_00048be0()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar2 = bVar3;" (assignment_expression "bVar2 = bVar3" identifier = identifier) ;) }))) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(*DAT_0017c444)(*(int *)(param_1 + 0xc));" (call_expression "(*DAT_0017c444)(*(int *)(param_1 + 0xc))" (parenthesized_expression "(*DAT_0017c444)" ( (pointer_expression "*DAT_0017c444" * identifier) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }" if (parenthesized_expression "((bVar4) && (!bVar2))" ( (binary_expression "(bVar4) && (!bVar2)" (parenthesized_expression "(bVar4)" ( identifier )) && (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) ))) )) (compound_statement "{\n    iVar7 = 5;\n  }" { (expression_statement "iVar7 = 5;" (assignment_expression "iVar7 = 5" identifier = number_literal) ;) })) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (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 (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT < IDENT)) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT * LIT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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 (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 IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (while_statement while (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 IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (binary_expression IDENT == LIT) && (parenthesized_expression ( (binary_expression IDENT != LIT) )))) )) )) (compound_statement { (expression_statement (assignment_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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) })) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (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) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = BOOL) ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( IDENT )) && (parenthesized_expression ( (unary_expression ! IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000a3f10(int param_1)\n\n{\n  char cVar1;\n  bool bVar2;\n  bool bVar3;\n  bool bVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }\n  if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }\n  bVar4 = false;\n  iVar9 = 0;\nLAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);\n  while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar3 = false;\n  bVar2 = false;\n  iVar7 = 0;\n  cVar1 = *(char *)(param_1 + 0x55);\njoined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }\n  if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }\n  return iVar7;\n}" (primitive_type "int") (function_declarator "FUN_000a3f10(int param_1)" (identifier "FUN_000a3f10") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  bool bVar3;\n  bool bVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }\n  if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }\n  bVar4 = false;\n  iVar9 = 0;\nLAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);\n  while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }\nLAB_000a4048:\n  bVar3 = false;\n  bVar2 = false;\n  iVar7 = 0;\n  cVar1 = *(char *)(param_1 + 0x55);\njoined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }\n  if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }\n  return iVar7;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));\n  }" ({ "{") (expression_statement "(*DAT_0017c43c)(*(int *)(param_1 + 0xc));" (call_expression "(*DAT_0017c43c)(*(int *)(param_1 + 0xc))" (parenthesized_expression "(*DAT_0017c43c)" (( "(") (pointer_expression "*DAT_0017c43c" (* "*") (identifier "DAT_0017c43c")) () ")")) (argument_list "(*(int *)(param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_1 + 0x55) == '\0') {\n    FUN_00048b60();\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x55) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x55) == '\0'" (pointer_expression "*(char *)(param_1 + 0x55)" (* "*") (cast_expression "(char *)(param_1 + 0x55)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x55)" (( "(") (binary_expression "param_1 + 0x55" (identifier "param_1") (+ "+") (number_literal "0x55")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_00048b60();\n  }" ({ "{") (expression_statement "FUN_00048b60();" (call_expression "FUN_00048b60()" (identifier "FUN_00048b60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" (identifier "bVar4") (= "=") (false "false")) (; ";")) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000a3f53:\n  iVar8 = *(int *)(param_1 + 0x14);" (statement_identifier "LAB_000a3f53") (: ":") (expression_statement "iVar8 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x14)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";"))) (while_statement "while (iVar7 = iVar9, iVar9 < iVar8) {\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }" (while "while") (parenthesized_expression "(iVar7 = iVar9, iVar9 < iVar8)" (( "(") (comma_expression "iVar7 = iVar9, iVar9 < iVar8" (assignment_expression "iVar7 = iVar9" (identifier "iVar7") (= "=") (identifier "iVar9")) (, ",") (binary_expression "iVar9 < iVar8" (identifier "iVar9") (< "<") (identifier "iVar8"))) () ")")) (compound_statement "{\n    while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar9 = iVar7 + 1;\n      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);\n      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;\n      iVar8 = **(int **)(iVar7 + 4);\n      iVar7 = *(int *)(iVar8 + 0x28);\n      if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }\n      if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }\n      iVar8 = *(int *)(param_1 + 0x14);\n      bVar4 = true;\n      iVar7 = iVar9;\n      if (iVar8 <= iVar9) goto LAB_000a4048;\n    }" ({ "{") (expression_statement "iVar9 = iVar7 + 1;" (assignment_expression "iVar9 = iVar7 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);" (assignment_expression "iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" (* "*") (cast_expression "(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4)" (( "(") (binary_expression "iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4" (binary_expression "iVar7 * 0x10 + *(int *)(param_1 + 0x10)" (binary_expression "iVar7 * 0x10" (identifier "iVar7") (* "*") (number_literal "0x10")) (+ "+") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;" (if "if") (parenthesized_expression "((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02'))" (( "(") (binary_expression "(iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')" (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(char *)(iVar7 + 8) != '\x02')" (( "(") (binary_expression "*(char *)(iVar7 + 8) != '\x02'" (pointer_expression "*(char *)(iVar7 + 8)" (* "*") (cast_expression "(char *)(iVar7 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 8)" (( "(") (binary_expression "iVar7 + 8" (identifier "iVar7") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar8 = **(int **)(iVar7 + 4);" (assignment_expression "iVar8 = **(int **)(iVar7 + 4)" (identifier "iVar8") (= "=") (pointer_expression "**(int **)(iVar7 + 4)" (* "*") (pointer_expression "*(int **)(iVar7 + 4)" (* "*") (cast_expression "(int **)(iVar7 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar7 + 4)" (( "(") (binary_expression "iVar7 + 4" (identifier "iVar7") (+ "+") (number_literal "4")) () ")")))))) (; ";")) (expression_statement "iVar7 = *(int *)(iVar8 + 0x28);" (assignment_expression "iVar7 = *(int *)(iVar8 + 0x28)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar8 + 0x28)" (* "*") (cast_expression "(int *)(iVar8 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x28)" (( "(") (binary_expression "iVar8 + 0x28" (identifier "iVar8") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (*(char *)(iVar8 + 0xf) == '\0') {\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }" (if "if") (parenthesized_expression "(*(char *)(iVar8 + 0xf) == '\0')" (( "(") (binary_expression "*(char *)(iVar8 + 0xf) == '\0'" (pointer_expression "*(char *)(iVar8 + 0xf)" (* "*") (cast_expression "(char *)(iVar8 + 0xf)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0xf)" (( "(") (binary_expression "iVar8 + 0xf" (identifier "iVar8") (+ "+") (number_literal "0xf")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar6 = **(int **)(iVar8 + 0xd0);\n        while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }\n        iVar6 = FUN_00041e10();\n        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }\n      }" ({ "{") (expression_statement "iVar6 = **(int **)(iVar8 + 0xd0);" (assignment_expression "iVar6 = **(int **)(iVar8 + 0xd0)" (identifier "iVar6") (= "=") (pointer_expression "**(int **)(iVar8 + 0xd0)" (* "*") (pointer_expression "*(int **)(iVar8 + 0xd0)" (* "*") (cast_expression "(int **)(iVar8 + 0xd0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar8 + 0xd0)" (( "(") (binary_expression "iVar8 + 0xd0" (identifier "iVar8") (+ "+") (number_literal "0xd0")) () ")")))))) (; ";")) (while_statement "while (iVar6 != 0) {\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }" (while "while") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);\n          iVar6 = *(int *)(iVar6 + 0x20);\n        }" ({ "{") (expression_statement "*(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);" (assignment_expression "*(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20)" (pointer_expression "*(int *)(iVar6 + 0x10)" (* "*") (cast_expression "(int *)(iVar6 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*(int *)(iVar6 + 0x20)" (* "*") (cast_expression "(int *)(iVar6 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x20)" (( "(") (binary_expression "iVar6 + 0x20" (identifier "iVar6") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(iVar6 + 0x20);" (assignment_expression "iVar6 = *(int *)(iVar6 + 0x20)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar6 + 0x20)" (* "*") (cast_expression "(int *)(iVar6 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x20)" (( "(") (binary_expression "iVar6 + 0x20" (identifier "iVar6") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar6 = FUN_00041e10();" (assignment_expression "iVar6 = FUN_00041e10()" (identifier "iVar6") (= "=") (call_expression "FUN_00041e10()" (identifier "FUN_00041e10") (argument_list "()" (( "(") () ")")))) (; ";")) (while_statement "while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }" (while "while") (parenthesized_expression "((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0)))" (( "(") (parenthesized_expression "(iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))" (( "(") (comma_expression "iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0)" (assignment_expression "iVar5 = iVar6" (identifier "iVar5") (= "=") (identifier "iVar6")) (, ",") (binary_expression "iVar7 == 0 && (iVar5 != 0)" (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")))) () ")")) () ")")) (compound_statement "{\n          iVar7 = 0;\n          iVar6 = *(int *)(iVar5 + 0x10);\n          if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }\n        }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = *(int *)(iVar5 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0x10)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar5 + 0x10)" (* "*") (cast_expression "(int *)(iVar5 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (*(short *)(iVar5 + 0x1e) == 0) {\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }" (if "if") (parenthesized_expression "(*(short *)(iVar5 + 0x1e) == 0)" (( "(") (binary_expression "*(short *)(iVar5 + 0x1e) == 0" (pointer_expression "*(short *)(iVar5 + 0x1e)" (* "*") (cast_expression "(short *)(iVar5 + 0x1e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1e)" (( "(") (binary_expression "iVar5 + 0x1e" (identifier "iVar5") (+ "+") (number_literal "0x1e")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar7 = FUN_000a3e30(iVar8,iVar5);\n          }" ({ "{") (expression_statement "iVar7 = FUN_000a3e30(iVar8,iVar5);" (assignment_expression "iVar7 = FUN_000a3e30(iVar8,iVar5)" (identifier "iVar7") (= "=") (call_expression "FUN_000a3e30(iVar8,iVar5)" (identifier "FUN_000a3e30") (argument_list "(iVar8,iVar5)" (( "(") (identifier "iVar8") (, ",") (identifier "iVar5") () ")")))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (if_statement "if (iVar7 != 5) {\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }" (if "if") (parenthesized_expression "(iVar7 != 5)" (( "(") (binary_expression "iVar7 != 5" (identifier "iVar7") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n        if (iVar7 == 0) goto LAB_000a3f53;\n        cVar1 = *(char *)(param_1 + 0x55);\n        bVar3 = true;\n        bVar2 = true;\n        goto joined_r0x000a3fde;\n      }" ({ "{") (if_statement "if (iVar7 == 0) goto LAB_000a3f53;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a3f53;" (goto "goto") (statement_identifier "LAB_000a3f53") (; ";"))) (expression_statement "cVar1 = *(char *)(param_1 + 0x55);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x55)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 0x55)" (* "*") (cast_expression "(char *)(param_1 + 0x55)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x55)" (( "(") (binary_expression "param_1 + 0x55" (identifier "param_1") (+ "+") (number_literal "0x55")) () ")"))))) (; ";")) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" (identifier "bVar3") (= "=") (true "true")) (; ";")) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (goto_statement "goto joined_r0x000a3fde;" (goto "goto") (statement_identifier "joined_r0x000a3fde") (; ";")) (} "}"))) (expression_statement "iVar8 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x14)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "bVar4 = true;" (assignment_expression "bVar4 = true" (identifier "bVar4") (= "=") (true "true")) (; ";")) (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" (identifier "iVar7") (= "=") (identifier "iVar9")) (; ";")) (if_statement "if (iVar8 <= iVar9) goto LAB_000a4048;" (if "if") (parenthesized_expression "(iVar8 <= iVar9)" (( "(") (binary_expression "iVar8 <= iVar9" (identifier "iVar8") (<= "<=") (identifier "iVar9")) () ")")) (goto_statement "goto LAB_000a4048;" (goto "goto") (statement_identifier "LAB_000a4048") (; ";"))) (} "}"))) (} "}"))) (labeled_statement "LAB_000a4048:\n  bVar3 = false;" (statement_identifier "LAB_000a4048") (: ":") (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";"))) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "cVar1 = *(char *)(param_1 + 0x55);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x55)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 0x55)" (* "*") (cast_expression "(char *)(param_1 + 0x55)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x55)" (( "(") (binary_expression "param_1 + 0x55" (identifier "param_1") (+ "+") (number_literal "0x55")) () ")"))))) (; ";")) (labeled_statement "joined_r0x000a3fde:\n  if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }" (statement_identifier "joined_r0x000a3fde") (: ":") (if_statement "if (cVar1 == '\0') {\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_00048be0();\n    bVar2 = bVar3;\n  }" ({ "{") (expression_statement "FUN_00048be0();" (call_expression "FUN_00048be0()" (identifier "FUN_00048be0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "bVar2 = bVar3;" (assignment_expression "bVar2 = bVar3" (identifier "bVar2") (= "=") (identifier "bVar3")) (; ";")) (} "}")))) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*DAT_0017c444)(*(int *)(param_1 + 0xc));\n  }" ({ "{") (expression_statement "(*DAT_0017c444)(*(int *)(param_1 + 0xc));" (call_expression "(*DAT_0017c444)(*(int *)(param_1 + 0xc))" (parenthesized_expression "(*DAT_0017c444)" (( "(") (pointer_expression "*DAT_0017c444" (* "*") (identifier "DAT_0017c444")) () ")")) (argument_list "(*(int *)(param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((bVar4) && (!bVar2)) {\n    iVar7 = 5;\n  }" (if "if") (parenthesized_expression "((bVar4) && (!bVar2))" (( "(") (binary_expression "(bVar4) && (!bVar2)" (parenthesized_expression "(bVar4)" (( "(") (identifier "bVar4") () ")")) (&& "&&") (parenthesized_expression "(!bVar2)" (( "(") (unary_expression "!bVar2" (! "!") (identifier "bVar2")) () ")"))) () ")")) (compound_statement "{\n    iVar7 = 5;\n  }" ({ "{") (expression_statement "iVar7 = 5;" (assignment_expression "iVar7 = 5" (identifier "iVar7") (= "=") (number_literal "5")) (; ";")) (} "}"))) (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

int function_1(type_1 *db)

{
  type_2 var_10;
  type_3 *var_5;
  type_4 *p;
  type_5 *pPVar3;
  type_6 *var_7;
  bool bVar5;
  bool bVar6;
  bool bVar7;
  type_6 *var_6;
  int var_3;
  int var_2;
  int var_4;
  
  if (db->mutex != (type_7 *)0x0) {
    (*sqlite3Config.mutex.xMutexEnter)(db->mutex);
  }
  if (db->noSharedCache == '\0') {
    var_1(db);
  }
  bVar7 = false;
  var_2 = 0;
LAB_000a3f53:
  var_3 = db->nDb;
  while (var_4 = var_2, var_2 < var_3) {
    while( true ) {
      var_2 = var_4 + 1;
      var_5 = db->aDb[var_4].pBt;
      if ((var_5 == (type_3 *)0x0) || (var_5->inTrans != '\x02')) break;
      p = var_5->pBt->pPager;
      var_3 = p->errCode;
      if (p->memDb == '\0') {
        pPVar3 = p->pPCache;
        var_6 = pPVar3->pDirty;
        if (var_6 != (type_6 *)0x0) {
          do {
            var_7 = var_6->pDirtyNext;
            var_6->pDirty = var_7;
            var_6 = var_7;
          } while (var_7 != (type_6 *)0x0);
          var_6 = pPVar3->pDirty;
        }
        var_6 = var_8(var_6);
        while ((var_7 = var_6, var_3 == 0 && (var_7 != (type_6 *)0x0))) {
          var_3 = 0;
          var_6 = var_7->pDirty;
          if (var_7->nRef == 0) {
            var_3 = var_9(p,var_7);
          }
        }
      }
      if (var_3 != 5) {
        if (var_3 == 0) goto LAB_000a3f53;
        var_10 = db->noSharedCache;
        bVar6 = true;
        bVar5 = true;
        goto joined_r0x000a3fde;
      }
      var_3 = db->nDb;
      bVar7 = true;
      var_4 = var_2;
      if (var_3 <= var_2) goto LAB_000a4048;
    }
  }
LAB_000a4048:
  bVar6 = false;
  bVar5 = false;
  var_3 = 0;
  var_10 = db->noSharedCache;
joined_r0x000a3fde:
  if (var_10 == '\0') {
    var_11(db);
    bVar5 = bVar6;
  }
  if (db->mutex != (type_7 *)0x0) {
    (*sqlite3Config.mutex.xMutexLeave)(db->mutex);
  }
  if ((bVar7) && (!bVar5)) {
    var_3 = 5;
  }
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (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: (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 (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_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)))))))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) 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)))))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (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: (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: (identifier) right: (pointer_expression argument: (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)))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (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: (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))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (while_statement condition: (parenthesized_expression (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) body: (compound_statement (expression_statement (assignment_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (true))) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (false)))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_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))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) 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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (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: (parenthesized_expression (identifier)) right: (parenthesized_expression (unary_expression argument: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int MASKED(int param_1)

{
  char cVar1;
  bool bVar2;
  bool bVar3;
  bool bVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  
  if (*(int *)(param_1 + 0xc) != 0) {
    (*DAT_0017c43c)(*(int *)(param_1 + 0xc));
  }
  if (*(char *)(param_1 + 0x55) == '\0') {
    FUN_00048b60();
  }
  bVar4 = false;
  iVar9 = 0;
LAB_000a3f53:
  iVar8 = *(int *)(param_1 + 0x14);
  while (iVar7 = iVar9, iVar9 < iVar8) {
    while( true ) {
      iVar9 = iVar7 + 1;
      iVar7 = *(int *)(iVar7 * 0x10 + *(int *)(param_1 + 0x10) + 4);
      if ((iVar7 == 0) || (*(char *)(iVar7 + 8) != '\x02')) break;
      iVar8 = **(int **)(iVar7 + 4);
      iVar7 = *(int *)(iVar8 + 0x28);
      if (*(char *)(iVar8 + 0xf) == '\0') {
        iVar6 = **(int **)(iVar8 + 0xd0);
        while (iVar6 != 0) {
          *(int *)(iVar6 + 0x10) = *(int *)(iVar6 + 0x20);
          iVar6 = *(int *)(iVar6 + 0x20);
        }
        iVar6 = FUN_00041e10();
        while ((iVar5 = iVar6, iVar7 == 0 && (iVar5 != 0))) {
          iVar7 = 0;
          iVar6 = *(int *)(iVar5 + 0x10);
          if (*(short *)(iVar5 + 0x1e) == 0) {
            iVar7 = FUN_000a3e30(iVar8,iVar5);
          }
        }
      }
      if (iVar7 != 5) {
        if (iVar7 == 0) goto LAB_000a3f53;
        cVar1 = *(char *)(param_1 + 0x55);
        bVar3 = true;
        bVar2 = true;
        goto joined_r0x000a3fde;
      }
      iVar8 = *(int *)(param_1 + 0x14);
      bVar4 = true;
      iVar7 = iVar9;
      if (iVar8 <= iVar9) goto LAB_000a4048;
    }
  }
LAB_000a4048:
  bVar3 = false;
  bVar2 = false;
  iVar7 = 0;
  cVar1 = *(char *)(param_1 + 0x55);
joined_r0x000a3fde:
  if (cVar1 == '\0') {
    FUN_00048be0();
    bVar2 = bVar3;
  }
  if (*(int *)(param_1 + 0xc) != 0) {
    (*DAT_0017c444)(*(int *)(param_1 + 0xc));
  }
  if ((bVar4) && (!bVar2)) {
    iVar7 = 5;
  }
  return iVar7;
}

