
void __regparm3 sqlite3CollapseDatabaseArray(sqlite3 *db)

{
  u8 uVar1;
  undefined2 uVar2;
  Db *pDVar3;
  int iVar4;
  Db *pDVar5;
  int iVar6;
  int iVar7;
  
  iVar4 = db->nDb;
  if (iVar4 < 3) {
    db->nDb = 2;
  }
  else {
    iVar7 = 2;
    iVar6 = 2;
    do {
      while( true ) {
        pDVar5 = db->aDb + iVar6;
        if (pDVar5->pBt != (Btree *)0x0) break;
        if (pDVar5->zDbSName != (char *)0x0) {
          sqlite3DbFreeNN(db,pDVar5->zDbSName);
          iVar4 = db->nDb;
        }
        iVar6 = iVar6 + 1;
        pDVar5->zDbSName = (char *)0x0;
        if (iVar4 <= iVar6) goto LAB_00025600;
      }
      if (iVar7 < iVar6) {
        pDVar3 = db->aDb + iVar7;
        pDVar3->zDbSName = pDVar5->zDbSName;
        pDVar3->pBt = pDVar5->pBt;
        uVar1 = pDVar5->bSyncSet;
        uVar2 = *(undefined2 *)&pDVar5->field_0xa;
        pDVar3->safety_level = pDVar5->safety_level;
        pDVar3->bSyncSet = uVar1;
        *(undefined2 *)&pDVar3->field_0xa = uVar2;
        pDVar3->pSchema = pDVar5->pSchema;
      }
      iVar6 = iVar6 + 1;
      iVar7 = iVar7 + 1;
    } while (iVar6 < iVar4);
LAB_00025600:
    db->nDb = iVar7;
    if (iVar7 != 2) {
      return;
    }
  }
  pDVar5 = db->aDb;
  if (pDVar5 == db->aDbStatic) {
    return;
  }
  db->aDbStatic[0].zDbSName = pDVar5->zDbSName;
  db->aDbStatic[0].pBt = pDVar5->pBt;
  uVar1 = pDVar5->bSyncSet;
  uVar2 = *(undefined2 *)&pDVar5->field_0xa;
  db->aDbStatic[0].safety_level = pDVar5->safety_level;
  db->aDbStatic[0].bSyncSet = uVar1;
  *(undefined2 *)&db->aDbStatic[0].field_0xa = uVar2;
  db->aDbStatic[0].pSchema = pDVar5->pSchema;
  db->aDbStatic[1].zDbSName = pDVar5[1].zDbSName;
  db->aDbStatic[1].pBt = pDVar5[1].pBt;
  uVar1 = pDVar5[1].bSyncSet;
  uVar2 = *(undefined2 *)&pDVar5[1].field_0xa;
  db->aDbStatic[1].safety_level = pDVar5[1].safety_level;
  db->aDbStatic[1].bSyncSet = uVar1;
  *(undefined2 *)&db->aDbStatic[1].field_0xa = uVar2;
  db->aDbStatic[1].pSchema = pDVar5[1].pSchema;
  sqlite3DbFreeNN(db,pDVar5);
  db->aDb = db->aDbStatic;
  return;
}



void __regparm3 FUN_00025580(int param_1)

{
  undefined4 *puVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  int iVar6;
  
  iVar3 = *(int *)(param_1 + 0x14);
  if (iVar3 < 3) {
    *(undefined4 *)(param_1 + 0x14) = 2;
  }
  else {
    iVar6 = 2;
    iVar5 = 2;
    do {
      while( true ) {
        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));
        if (piVar4[1] != 0) break;
        if (*piVar4 != 0) {
          FUN_00023410();
          iVar3 = *(int *)(param_1 + 0x14);
        }
        iVar5 = iVar5 + 1;
        *piVar4 = 0;
        if (iVar3 <= iVar5) goto LAB_00025600;
      }
      if (iVar6 < iVar5) {
        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);
        *piVar2 = *piVar4;
        piVar2[1] = piVar4[1];
        piVar2[2] = piVar4[2];
        piVar2[3] = piVar4[3];
      }
      iVar5 = iVar5 + 1;
      iVar6 = iVar6 + 1;
    } while (iVar5 < iVar3);
LAB_00025600:
    *(int *)(param_1 + 0x14) = iVar6;
    if (iVar6 != 2) {
      return;
    }
  }
  puVar1 = *(undefined4 **)(param_1 + 0x10);
  if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {
    return;
  }
  *(undefined4 *)(param_1 + 0x1a8) = *puVar1;
  *(undefined4 *)(param_1 + 0x1ac) = puVar1[1];
  *(undefined4 *)(param_1 + 0x1b0) = puVar1[2];
  *(undefined4 *)(param_1 + 0x1b4) = puVar1[3];
  *(undefined4 *)(param_1 + 0x1b8) = puVar1[4];
  *(undefined4 *)(param_1 + 0x1bc) = puVar1[5];
  *(undefined4 *)(param_1 + 0x1c0) = puVar1[6];
  *(undefined4 *)(param_1 + 0x1c4) = puVar1[7];
  FUN_00023410();
  *(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);
  return;
}


PUSH EBP
PUSH EDI
MOV EBP,EAX
PUSH ESI
PUSH EBX
SUB ESP,0xc
MOV ECX,dword ptr [EAX + 0x14]
CMP ECX,0x2
JLE 0x00025610
MOV EDI,0x2
MOV ESI,0x2
JMP 0x000255cb
CMP EDI,ESI
JGE 0x000255c1
MOV EDX,EDI
SHL EDX,0x4
ADD EAX,EDX
MOV EDX,dword ptr [EBX]
MOV dword ptr [EAX],EDX
MOV EDX,dword ptr [EBX + 0x4]
MOV dword ptr [EAX + 0x4],EDX
MOV EDX,dword ptr [EBX + 0x8]
MOV dword ptr [EAX + 0x8],EDX
MOV EDX,dword ptr [EBX + 0xc]
MOV dword ptr [EAX + 0xc],EDX
ADD ESI,0x1
ADD EDI,0x1
CMP ESI,ECX
JGE 0x00025600
MOV EAX,dword ptr [EBP + 0x10]
MOV EBX,ESI
SHL EBX,0x4
ADD EBX,EAX
MOV EDX,dword ptr [EBX + 0x4]
TEST EDX,EDX
JNZ 0x000255a0
MOV EDX,dword ptr [EBX]
TEST EDX,EDX
JZ 0x000255ec
MOV EAX,EBP
CALL 0x00023410
MOV ECX,dword ptr [EBP + 0x14]
ADD ESI,0x1
MOV dword ptr [EBX],0x0
CMP ESI,ECX
JL 0x000255cb
LEA ESI,[ESI]
CMP EDI,0x2
MOV dword ptr [EBP + 0x14],EDI
JZ 0x00025617
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EAX + 0x14],0x2
MOV EDX,dword ptr [EBP + 0x10]
LEA EBX,[EBP + 0x1a8]
CMP EDX,EBX
JZ 0x00025608
MOV EAX,dword ptr [EDX]
MOV dword ptr [EBP + 0x1a8],EAX
MOV EAX,dword ptr [EDX + 0x4]
MOV dword ptr [EBP + 0x1ac],EAX
MOV EAX,dword ptr [EDX + 0x8]
MOV dword ptr [EBP + 0x1b0],EAX
MOV EAX,dword ptr [EDX + 0xc]
MOV dword ptr [EBP + 0x1b4],EAX
MOV EAX,dword ptr [EDX + 0x10]
MOV dword ptr [EBP + 0x1b8],EAX
MOV EAX,dword ptr [EDX + 0x14]
MOV dword ptr [EBP + 0x1bc],EAX
MOV EAX,dword ptr [EDX + 0x18]
MOV dword ptr [EBP + 0x1c0],EAX
MOV EAX,dword ptr [EDX + 0x1c]
MOV dword ptr [EBP + 0x1c4],EAX
MOV EAX,EBP
CALL 0x00023410
MOV dword ptr [EBP + 0x10],EBX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void __regparm3 FUN_00025580(int param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar3 = *(int *)(param_1 + 0x14);\n  if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x1a8) = *puVar1;\n  *(undefined4 *)(param_1 + 0x1ac) = puVar1[1];\n  *(undefined4 *)(param_1 + 0x1b0) = puVar1[2];\n  *(undefined4 *)(param_1 + 0x1b4) = puVar1[3];\n  *(undefined4 *)(param_1 + 0x1b8) = puVar1[4];\n  *(undefined4 *)(param_1 + 0x1bc) = puVar1[5];\n  *(undefined4 *)(param_1 + 0x1c0) = puVar1[6];\n  *(undefined4 *)(param_1 + 0x1c4) = puVar1[7];\n  FUN_00023410();\n  *(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00025580(int param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar3 = *(int *)(param_1 + 0x14);\n  if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x1a8) = *puVar1;\n  *(undefined4 *)(param_1 + 0x1ac) = puVar1[1];\n  *(undefined4 *)(param_1 + 0x1b0) = puVar1[2];\n  *(undefined4 *)(param_1 + 0x1b4) = puVar1[3];\n  *(undefined4 *)(param_1 + 0x1b8) = puVar1[4];\n  *(undefined4 *)(param_1 + 0x1bc) = puVar1[5];\n  *(undefined4 *)(param_1 + 0x1c0) = puVar1[6];\n  *(undefined4 *)(param_1 + 0x1c4) = puVar1[7];\n  FUN_00023410();\n  *(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00025580(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar3 = *(int *)(param_1 + 0x14);\n  if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x1a8) = *puVar1;\n  *(undefined4 *)(param_1 + 0x1ac) = puVar1[1];\n  *(undefined4 *)(param_1 + 0x1b0) = puVar1[2];\n  *(undefined4 *)(param_1 + 0x1b4) = puVar1[3];\n  *(undefined4 *)(param_1 + 0x1b8) = puVar1[4];\n  *(undefined4 *)(param_1 + 0x1bc) = puVar1[5];\n  *(undefined4 *)(param_1 + 0x1c0) = puVar1[6];\n  *(undefined4 *)(param_1 + 0x1c4) = puVar1[7];\n  FUN_00023410();\n  *(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar3 = *(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) ))))) ;) (if_statement "if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }" if (parenthesized_expression "(iVar3 < 3)" ( (binary_expression "iVar3 < 3" identifier < number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x14) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }" else (compound_statement "{\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }" { (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" identifier = number_literal) ;) (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);" do (compound_statement "{\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    }" { (while_statement "while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }" { (expression_statement "piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));" (assignment_expression "piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10))" identifier = (cast_expression "(int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 * 0x10 + *(int *)(param_1 + 0x10))" ( (binary_expression "iVar5 * 0x10 + *(int *)(param_1 + 0x10)" (binary_expression "iVar5 * 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) ))))) )))) ;) (if_statement "if (piVar4[1] != 0) break;" if (parenthesized_expression "(piVar4[1] != 0)" ( (binary_expression "piVar4[1] != 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) != number_literal) )) (break_statement "break;" break ;)) (if_statement "if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }" if (parenthesized_expression "(*piVar4 != 0)" ( (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }" { (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar3 = *(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 "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (if_statement "if (iVar3 <= iVar5) goto LAB_00025600;" if (parenthesized_expression "(iVar3 <= iVar5)" ( (binary_expression "iVar3 <= iVar5" identifier <= identifier) )) (goto_statement "goto LAB_00025600;" goto statement_identifier ;)) })) (if_statement "if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }" if (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) (compound_statement "{\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }" { (expression_statement "piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);" (assignment_expression "piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10)" identifier = (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar6 * 0x10)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar6 * 0x10" (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) )))) + (binary_expression "iVar6 * 0x10" identifier * number_literal)) )))) ;) (expression_statement "*piVar2 = *piVar4;" (assignment_expression "*piVar2 = *piVar4" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar2[1] = piVar4[1];" (assignment_expression "piVar2[1] = piVar4[1]" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[2] = piVar4[2];" (assignment_expression "piVar2[2] = piVar4[2]" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = (subscript_expression "piVar4[2]" identifier [ number_literal ])) ;) (expression_statement "piVar2[3] = piVar4[3];" (assignment_expression "piVar2[3] = piVar4[3]" (subscript_expression "piVar2[3]" identifier [ number_literal ]) = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < iVar3)" ( (binary_expression "iVar5 < iVar3" identifier < identifier) )) ;) (labeled_statement "LAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;" statement_identifier : (expression_statement "*(int *)(param_1 + 0x14) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar6" (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) )))) = identifier) ;)) (if_statement "if (iVar6 != 2) {\n      return;\n    }" if (parenthesized_expression "(iVar6 != 2)" ( (binary_expression "iVar6 != 2" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)(param_1 + 0x1a8))" ( (binary_expression "puVar1 == (undefined4 *)(param_1 + 0x1a8)" identifier == (cast_expression "(undefined4 *)(param_1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x1a8) = *puVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1a8) = *puVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x1a8)" * (cast_expression "(undefined4 *)(param_1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1ac) = puVar1[1];" (assignment_expression "*(undefined4 *)(param_1 + 0x1ac) = puVar1[1]" (pointer_expression "*(undefined4 *)(param_1 + 0x1ac)" * (cast_expression "(undefined4 *)(param_1 + 0x1ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ac)" ( (binary_expression "param_1 + 0x1ac" identifier + number_literal) )))) = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1b0) = puVar1[2];" (assignment_expression "*(undefined4 *)(param_1 + 0x1b0) = puVar1[2]" (pointer_expression "*(undefined4 *)(param_1 + 0x1b0)" * (cast_expression "(undefined4 *)(param_1 + 0x1b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b0)" ( (binary_expression "param_1 + 0x1b0" identifier + number_literal) )))) = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1b4) = puVar1[3];" (assignment_expression "*(undefined4 *)(param_1 + 0x1b4) = puVar1[3]" (pointer_expression "*(undefined4 *)(param_1 + 0x1b4)" * (cast_expression "(undefined4 *)(param_1 + 0x1b4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b4)" ( (binary_expression "param_1 + 0x1b4" identifier + number_literal) )))) = (subscript_expression "puVar1[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1b8) = puVar1[4];" (assignment_expression "*(undefined4 *)(param_1 + 0x1b8) = puVar1[4]" (pointer_expression "*(undefined4 *)(param_1 + 0x1b8)" * (cast_expression "(undefined4 *)(param_1 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b8)" ( (binary_expression "param_1 + 0x1b8" identifier + number_literal) )))) = (subscript_expression "puVar1[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1bc) = puVar1[5];" (assignment_expression "*(undefined4 *)(param_1 + 0x1bc) = puVar1[5]" (pointer_expression "*(undefined4 *)(param_1 + 0x1bc)" * (cast_expression "(undefined4 *)(param_1 + 0x1bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1bc)" ( (binary_expression "param_1 + 0x1bc" identifier + number_literal) )))) = (subscript_expression "puVar1[5]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c0) = puVar1[6];" (assignment_expression "*(undefined4 *)(param_1 + 0x1c0) = puVar1[6]" (pointer_expression "*(undefined4 *)(param_1 + 0x1c0)" * (cast_expression "(undefined4 *)(param_1 + 0x1c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c0)" ( (binary_expression "param_1 + 0x1c0" identifier + number_literal) )))) = (subscript_expression "puVar1[6]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c4) = puVar1[7];" (assignment_expression "*(undefined4 *)(param_1 + 0x1c4) = puVar1[7]" (pointer_expression "*(undefined4 *)(param_1 + 0x1c4)" * (cast_expression "(undefined4 *)(param_1 + 0x1c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c4)" ( (binary_expression "param_1 + 0x1c4" identifier + number_literal) )))) = (subscript_expression "puVar1[7]" identifier [ number_literal ])) ;) (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8)" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (cast_expression "(undefined4 *)(param_1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 sqlite3CollapseDatabaseArray(sqlite3 *db)\n\n{\n  u8 uVar1;\n  undefined2 uVar2;\n  Db *pDVar3;\n  int iVar4;\n  Db *pDVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar4 = db->nDb;\n  if (iVar4 < 3) {\n    db->nDb = 2;\n  }\n  else {\n    iVar7 = 2;\n    iVar6 = 2;\n    do {\n      while( true ) {\n        pDVar5 = db->aDb + iVar6;\n        if (pDVar5->pBt != (Btree *)0x0) break;\n        if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }\n        iVar6 = iVar6 + 1;\n        pDVar5->zDbSName = (char *)0x0;\n        if (iVar4 <= iVar6) goto LAB_00025600;\n      }\n      if (iVar7 < iVar6) {\n        pDVar3 = db->aDb + iVar7;\n        pDVar3->zDbSName = pDVar5->zDbSName;\n        pDVar3->pBt = pDVar5->pBt;\n        uVar1 = pDVar5->bSyncSet;\n        uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n        pDVar3->safety_level = pDVar5->safety_level;\n        pDVar3->bSyncSet = uVar1;\n        *(undefined2 *)&pDVar3->field_0xa = uVar2;\n        pDVar3->pSchema = pDVar5->pSchema;\n      }\n      iVar6 = iVar6 + 1;\n      iVar7 = iVar7 + 1;\n    } while (iVar6 < iVar4);\nLAB_00025600:\n    db->nDb = iVar7;\n    if (iVar7 != 2) {\n      return;\n    }\n  }\n  pDVar5 = db->aDb;\n  if (pDVar5 == db->aDbStatic) {\n    return;\n  }\n  db->aDbStatic[0].zDbSName = pDVar5->zDbSName;\n  db->aDbStatic[0].pBt = pDVar5->pBt;\n  uVar1 = pDVar5->bSyncSet;\n  uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n  db->aDbStatic[0].safety_level = pDVar5->safety_level;\n  db->aDbStatic[0].bSyncSet = uVar1;\n  *(undefined2 *)&db->aDbStatic[0].field_0xa = uVar2;\n  db->aDbStatic[0].pSchema = pDVar5->pSchema;\n  db->aDbStatic[1].zDbSName = pDVar5[1].zDbSName;\n  db->aDbStatic[1].pBt = pDVar5[1].pBt;\n  uVar1 = pDVar5[1].bSyncSet;\n  uVar2 = *(undefined2 *)&pDVar5[1].field_0xa;\n  db->aDbStatic[1].safety_level = pDVar5[1].safety_level;\n  db->aDbStatic[1].bSyncSet = uVar1;\n  *(undefined2 *)&db->aDbStatic[1].field_0xa = uVar2;\n  db->aDbStatic[1].pSchema = pDVar5[1].pSchema;\n  sqlite3DbFreeNN(db,pDVar5);\n  db->aDb = db->aDbStatic;\n  return;\n}\n\n" (function_definition "void __regparm3 sqlite3CollapseDatabaseArray(sqlite3 *db)\n\n{\n  u8 uVar1;\n  undefined2 uVar2;\n  Db *pDVar3;\n  int iVar4;\n  Db *pDVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar4 = db->nDb;\n  if (iVar4 < 3) {\n    db->nDb = 2;\n  }\n  else {\n    iVar7 = 2;\n    iVar6 = 2;\n    do {\n      while( true ) {\n        pDVar5 = db->aDb + iVar6;\n        if (pDVar5->pBt != (Btree *)0x0) break;\n        if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }\n        iVar6 = iVar6 + 1;\n        pDVar5->zDbSName = (char *)0x0;\n        if (iVar4 <= iVar6) goto LAB_00025600;\n      }\n      if (iVar7 < iVar6) {\n        pDVar3 = db->aDb + iVar7;\n        pDVar3->zDbSName = pDVar5->zDbSName;\n        pDVar3->pBt = pDVar5->pBt;\n        uVar1 = pDVar5->bSyncSet;\n        uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n        pDVar3->safety_level = pDVar5->safety_level;\n        pDVar3->bSyncSet = uVar1;\n        *(undefined2 *)&pDVar3->field_0xa = uVar2;\n        pDVar3->pSchema = pDVar5->pSchema;\n      }\n      iVar6 = iVar6 + 1;\n      iVar7 = iVar7 + 1;\n    } while (iVar6 < iVar4);\nLAB_00025600:\n    db->nDb = iVar7;\n    if (iVar7 != 2) {\n      return;\n    }\n  }\n  pDVar5 = db->aDb;\n  if (pDVar5 == db->aDbStatic) {\n    return;\n  }\n  db->aDbStatic[0].zDbSName = pDVar5->zDbSName;\n  db->aDbStatic[0].pBt = pDVar5->pBt;\n  uVar1 = pDVar5->bSyncSet;\n  uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n  db->aDbStatic[0].safety_level = pDVar5->safety_level;\n  db->aDbStatic[0].bSyncSet = uVar1;\n  *(undefined2 *)&db->aDbStatic[0].field_0xa = uVar2;\n  db->aDbStatic[0].pSchema = pDVar5->pSchema;\n  db->aDbStatic[1].zDbSName = pDVar5[1].zDbSName;\n  db->aDbStatic[1].pBt = pDVar5[1].pBt;\n  uVar1 = pDVar5[1].bSyncSet;\n  uVar2 = *(undefined2 *)&pDVar5[1].field_0xa;\n  db->aDbStatic[1].safety_level = pDVar5[1].safety_level;\n  db->aDbStatic[1].bSyncSet = uVar1;\n  *(undefined2 *)&db->aDbStatic[1].field_0xa = uVar2;\n  db->aDbStatic[1].pSchema = pDVar5[1].pSchema;\n  sqlite3DbFreeNN(db,pDVar5);\n  db->aDb = db->aDbStatic;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3CollapseDatabaseArray(sqlite3 *db)" identifier (parameter_list "(sqlite3 *db)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) ))) (compound_statement "{\n  u8 uVar1;\n  undefined2 uVar2;\n  Db *pDVar3;\n  int iVar4;\n  Db *pDVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar4 = db->nDb;\n  if (iVar4 < 3) {\n    db->nDb = 2;\n  }\n  else {\n    iVar7 = 2;\n    iVar6 = 2;\n    do {\n      while( true ) {\n        pDVar5 = db->aDb + iVar6;\n        if (pDVar5->pBt != (Btree *)0x0) break;\n        if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }\n        iVar6 = iVar6 + 1;\n        pDVar5->zDbSName = (char *)0x0;\n        if (iVar4 <= iVar6) goto LAB_00025600;\n      }\n      if (iVar7 < iVar6) {\n        pDVar3 = db->aDb + iVar7;\n        pDVar3->zDbSName = pDVar5->zDbSName;\n        pDVar3->pBt = pDVar5->pBt;\n        uVar1 = pDVar5->bSyncSet;\n        uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n        pDVar3->safety_level = pDVar5->safety_level;\n        pDVar3->bSyncSet = uVar1;\n        *(undefined2 *)&pDVar3->field_0xa = uVar2;\n        pDVar3->pSchema = pDVar5->pSchema;\n      }\n      iVar6 = iVar6 + 1;\n      iVar7 = iVar7 + 1;\n    } while (iVar6 < iVar4);\nLAB_00025600:\n    db->nDb = iVar7;\n    if (iVar7 != 2) {\n      return;\n    }\n  }\n  pDVar5 = db->aDb;\n  if (pDVar5 == db->aDbStatic) {\n    return;\n  }\n  db->aDbStatic[0].zDbSName = pDVar5->zDbSName;\n  db->aDbStatic[0].pBt = pDVar5->pBt;\n  uVar1 = pDVar5->bSyncSet;\n  uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n  db->aDbStatic[0].safety_level = pDVar5->safety_level;\n  db->aDbStatic[0].bSyncSet = uVar1;\n  *(undefined2 *)&db->aDbStatic[0].field_0xa = uVar2;\n  db->aDbStatic[0].pSchema = pDVar5->pSchema;\n  db->aDbStatic[1].zDbSName = pDVar5[1].zDbSName;\n  db->aDbStatic[1].pBt = pDVar5[1].pBt;\n  uVar1 = pDVar5[1].bSyncSet;\n  uVar2 = *(undefined2 *)&pDVar5[1].field_0xa;\n  db->aDbStatic[1].safety_level = pDVar5[1].safety_level;\n  db->aDbStatic[1].bSyncSet = uVar1;\n  *(undefined2 *)&db->aDbStatic[1].field_0xa = uVar2;\n  db->aDbStatic[1].pSchema = pDVar5[1].pSchema;\n  sqlite3DbFreeNN(db,pDVar5);\n  db->aDb = db->aDbStatic;\n  return;\n}" { (declaration "u8 uVar1;" type_identifier identifier ;) (declaration "undefined2 uVar2;" type_identifier identifier ;) (declaration "Db *pDVar3;" type_identifier (pointer_declarator "*pDVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Db *pDVar5;" type_identifier (pointer_declarator "*pDVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "iVar4 = db->nDb;" (assignment_expression "iVar4 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) (if_statement "if (iVar4 < 3) {\n    db->nDb = 2;\n  }\n  else {\n    iVar7 = 2;\n    iVar6 = 2;\n    do {\n      while( true ) {\n        pDVar5 = db->aDb + iVar6;\n        if (pDVar5->pBt != (Btree *)0x0) break;\n        if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }\n        iVar6 = iVar6 + 1;\n        pDVar5->zDbSName = (char *)0x0;\n        if (iVar4 <= iVar6) goto LAB_00025600;\n      }\n      if (iVar7 < iVar6) {\n        pDVar3 = db->aDb + iVar7;\n        pDVar3->zDbSName = pDVar5->zDbSName;\n        pDVar3->pBt = pDVar5->pBt;\n        uVar1 = pDVar5->bSyncSet;\n        uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n        pDVar3->safety_level = pDVar5->safety_level;\n        pDVar3->bSyncSet = uVar1;\n        *(undefined2 *)&pDVar3->field_0xa = uVar2;\n        pDVar3->pSchema = pDVar5->pSchema;\n      }\n      iVar6 = iVar6 + 1;\n      iVar7 = iVar7 + 1;\n    } while (iVar6 < iVar4);\nLAB_00025600:\n    db->nDb = iVar7;\n    if (iVar7 != 2) {\n      return;\n    }\n  }" if (parenthesized_expression "(iVar4 < 3)" ( (binary_expression "iVar4 < 3" identifier < number_literal) )) (compound_statement "{\n    db->nDb = 2;\n  }" { (expression_statement "db->nDb = 2;" (assignment_expression "db->nDb = 2" (field_expression "db->nDb" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n    iVar7 = 2;\n    iVar6 = 2;\n    do {\n      while( true ) {\n        pDVar5 = db->aDb + iVar6;\n        if (pDVar5->pBt != (Btree *)0x0) break;\n        if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }\n        iVar6 = iVar6 + 1;\n        pDVar5->zDbSName = (char *)0x0;\n        if (iVar4 <= iVar6) goto LAB_00025600;\n      }\n      if (iVar7 < iVar6) {\n        pDVar3 = db->aDb + iVar7;\n        pDVar3->zDbSName = pDVar5->zDbSName;\n        pDVar3->pBt = pDVar5->pBt;\n        uVar1 = pDVar5->bSyncSet;\n        uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n        pDVar3->safety_level = pDVar5->safety_level;\n        pDVar3->bSyncSet = uVar1;\n        *(undefined2 *)&pDVar3->field_0xa = uVar2;\n        pDVar3->pSchema = pDVar5->pSchema;\n      }\n      iVar6 = iVar6 + 1;\n      iVar7 = iVar7 + 1;\n    } while (iVar6 < iVar4);\nLAB_00025600:\n    db->nDb = iVar7;\n    if (iVar7 != 2) {\n      return;\n    }\n  }" else (compound_statement "{\n    iVar7 = 2;\n    iVar6 = 2;\n    do {\n      while( true ) {\n        pDVar5 = db->aDb + iVar6;\n        if (pDVar5->pBt != (Btree *)0x0) break;\n        if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }\n        iVar6 = iVar6 + 1;\n        pDVar5->zDbSName = (char *)0x0;\n        if (iVar4 <= iVar6) goto LAB_00025600;\n      }\n      if (iVar7 < iVar6) {\n        pDVar3 = db->aDb + iVar7;\n        pDVar3->zDbSName = pDVar5->zDbSName;\n        pDVar3->pBt = pDVar5->pBt;\n        uVar1 = pDVar5->bSyncSet;\n        uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n        pDVar3->safety_level = pDVar5->safety_level;\n        pDVar3->bSyncSet = uVar1;\n        *(undefined2 *)&pDVar3->field_0xa = uVar2;\n        pDVar3->pSchema = pDVar5->pSchema;\n      }\n      iVar6 = iVar6 + 1;\n      iVar7 = iVar7 + 1;\n    } while (iVar6 < iVar4);\nLAB_00025600:\n    db->nDb = iVar7;\n    if (iVar7 != 2) {\n      return;\n    }\n  }" { (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;) (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        pDVar5 = db->aDb + iVar6;\n        if (pDVar5->pBt != (Btree *)0x0) break;\n        if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }\n        iVar6 = iVar6 + 1;\n        pDVar5->zDbSName = (char *)0x0;\n        if (iVar4 <= iVar6) goto LAB_00025600;\n      }\n      if (iVar7 < iVar6) {\n        pDVar3 = db->aDb + iVar7;\n        pDVar3->zDbSName = pDVar5->zDbSName;\n        pDVar3->pBt = pDVar5->pBt;\n        uVar1 = pDVar5->bSyncSet;\n        uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n        pDVar3->safety_level = pDVar5->safety_level;\n        pDVar3->bSyncSet = uVar1;\n        *(undefined2 *)&pDVar3->field_0xa = uVar2;\n        pDVar3->pSchema = pDVar5->pSchema;\n      }\n      iVar6 = iVar6 + 1;\n      iVar7 = iVar7 + 1;\n    } while (iVar6 < iVar4);" do (compound_statement "{\n      while( true ) {\n        pDVar5 = db->aDb + iVar6;\n        if (pDVar5->pBt != (Btree *)0x0) break;\n        if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }\n        iVar6 = iVar6 + 1;\n        pDVar5->zDbSName = (char *)0x0;\n        if (iVar4 <= iVar6) goto LAB_00025600;\n      }\n      if (iVar7 < iVar6) {\n        pDVar3 = db->aDb + iVar7;\n        pDVar3->zDbSName = pDVar5->zDbSName;\n        pDVar3->pBt = pDVar5->pBt;\n        uVar1 = pDVar5->bSyncSet;\n        uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n        pDVar3->safety_level = pDVar5->safety_level;\n        pDVar3->bSyncSet = uVar1;\n        *(undefined2 *)&pDVar3->field_0xa = uVar2;\n        pDVar3->pSchema = pDVar5->pSchema;\n      }\n      iVar6 = iVar6 + 1;\n      iVar7 = iVar7 + 1;\n    }" { (while_statement "while( true ) {\n        pDVar5 = db->aDb + iVar6;\n        if (pDVar5->pBt != (Btree *)0x0) break;\n        if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }\n        iVar6 = iVar6 + 1;\n        pDVar5->zDbSName = (char *)0x0;\n        if (iVar4 <= iVar6) goto LAB_00025600;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        pDVar5 = db->aDb + iVar6;\n        if (pDVar5->pBt != (Btree *)0x0) break;\n        if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }\n        iVar6 = iVar6 + 1;\n        pDVar5->zDbSName = (char *)0x0;\n        if (iVar4 <= iVar6) goto LAB_00025600;\n      }" { (expression_statement "pDVar5 = db->aDb + iVar6;" (assignment_expression "pDVar5 = db->aDb + iVar6" identifier = (binary_expression "db->aDb + iVar6" (field_expression "db->aDb" identifier -> field_identifier) + identifier)) ;) (if_statement "if (pDVar5->pBt != (Btree *)0x0) break;" if (parenthesized_expression "(pDVar5->pBt != (Btree *)0x0)" ( (binary_expression "pDVar5->pBt != (Btree *)0x0" (field_expression "pDVar5->pBt" identifier -> field_identifier) != (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (if_statement "if (pDVar5->zDbSName != (char *)0x0) {\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }" if (parenthesized_expression "(pDVar5->zDbSName != (char *)0x0)" ( (binary_expression "pDVar5->zDbSName != (char *)0x0" (field_expression "pDVar5->zDbSName" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sqlite3DbFreeNN(db,pDVar5->zDbSName);\n          iVar4 = db->nDb;\n        }" { (expression_statement "sqlite3DbFreeNN(db,pDVar5->zDbSName);" (call_expression "sqlite3DbFreeNN(db,pDVar5->zDbSName)" identifier (argument_list "(db,pDVar5->zDbSName)" ( identifier , (field_expression "pDVar5->zDbSName" identifier -> field_identifier) ))) ;) (expression_statement "iVar4 = db->nDb;" (assignment_expression "iVar4 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "pDVar5->zDbSName = (char *)0x0;" (assignment_expression "pDVar5->zDbSName = (char *)0x0" (field_expression "pDVar5->zDbSName" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar4 <= iVar6) goto LAB_00025600;" if (parenthesized_expression "(iVar4 <= iVar6)" ( (binary_expression "iVar4 <= iVar6" identifier <= identifier) )) (goto_statement "goto LAB_00025600;" goto statement_identifier ;)) })) (if_statement "if (iVar7 < iVar6) {\n        pDVar3 = db->aDb + iVar7;\n        pDVar3->zDbSName = pDVar5->zDbSName;\n        pDVar3->pBt = pDVar5->pBt;\n        uVar1 = pDVar5->bSyncSet;\n        uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n        pDVar3->safety_level = pDVar5->safety_level;\n        pDVar3->bSyncSet = uVar1;\n        *(undefined2 *)&pDVar3->field_0xa = uVar2;\n        pDVar3->pSchema = pDVar5->pSchema;\n      }" if (parenthesized_expression "(iVar7 < iVar6)" ( (binary_expression "iVar7 < iVar6" identifier < identifier) )) (compound_statement "{\n        pDVar3 = db->aDb + iVar7;\n        pDVar3->zDbSName = pDVar5->zDbSName;\n        pDVar3->pBt = pDVar5->pBt;\n        uVar1 = pDVar5->bSyncSet;\n        uVar2 = *(undefined2 *)&pDVar5->field_0xa;\n        pDVar3->safety_level = pDVar5->safety_level;\n        pDVar3->bSyncSet = uVar1;\n        *(undefined2 *)&pDVar3->field_0xa = uVar2;\n        pDVar3->pSchema = pDVar5->pSchema;\n      }" { (expression_statement "pDVar3 = db->aDb + iVar7;" (assignment_expression "pDVar3 = db->aDb + iVar7" identifier = (binary_expression "db->aDb + iVar7" (field_expression "db->aDb" identifier -> field_identifier) + identifier)) ;) (expression_statement "pDVar3->zDbSName = pDVar5->zDbSName;" (assignment_expression "pDVar3->zDbSName = pDVar5->zDbSName" (field_expression "pDVar3->zDbSName" identifier -> field_identifier) = (field_expression "pDVar5->zDbSName" identifier -> field_identifier)) ;) (expression_statement "pDVar3->pBt = pDVar5->pBt;" (assignment_expression "pDVar3->pBt = pDVar5->pBt" (field_expression "pDVar3->pBt" identifier -> field_identifier) = (field_expression "pDVar5->pBt" identifier -> field_identifier)) ;) (expression_statement "uVar1 = pDVar5->bSyncSet;" (assignment_expression "uVar1 = pDVar5->bSyncSet" identifier = (field_expression "pDVar5->bSyncSet" identifier -> field_identifier)) ;) (expression_statement "uVar2 = *(undefined2 *)&pDVar5->field_0xa;" (assignment_expression "uVar2 = *(undefined2 *)&pDVar5->field_0xa" identifier = (pointer_expression "*(undefined2 *)&pDVar5->field_0xa" * (cast_expression "(undefined2 *)&pDVar5->field_0xa" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pDVar5->field_0xa" & (field_expression "pDVar5->field_0xa" identifier -> field_identifier))))) ;) (expression_statement "pDVar3->safety_level = pDVar5->safety_level;" (assignment_expression "pDVar3->safety_level = pDVar5->safety_level" (field_expression "pDVar3->safety_level" identifier -> field_identifier) = (field_expression "pDVar5->safety_level" identifier -> field_identifier)) ;) (expression_statement "pDVar3->bSyncSet = uVar1;" (assignment_expression "pDVar3->bSyncSet = uVar1" (field_expression "pDVar3->bSyncSet" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined2 *)&pDVar3->field_0xa = uVar2;" (assignment_expression "*(undefined2 *)&pDVar3->field_0xa = uVar2" (pointer_expression "*(undefined2 *)&pDVar3->field_0xa" * (cast_expression "(undefined2 *)&pDVar3->field_0xa" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pDVar3->field_0xa" & (field_expression "pDVar3->field_0xa" identifier -> field_identifier)))) = identifier) ;) (expression_statement "pDVar3->pSchema = pDVar5->pSchema;" (assignment_expression "pDVar3->pSchema = pDVar5->pSchema" (field_expression "pDVar3->pSchema" identifier -> field_identifier) = (field_expression "pDVar5->pSchema" identifier -> field_identifier)) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < iVar4)" ( (binary_expression "iVar6 < iVar4" identifier < identifier) )) ;) (labeled_statement "LAB_00025600:\n    db->nDb = iVar7;" statement_identifier : (expression_statement "db->nDb = iVar7;" (assignment_expression "db->nDb = iVar7" (field_expression "db->nDb" identifier -> field_identifier) = identifier) ;)) (if_statement "if (iVar7 != 2) {\n      return;\n    }" if (parenthesized_expression "(iVar7 != 2)" ( (binary_expression "iVar7 != 2" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "pDVar5 = db->aDb;" (assignment_expression "pDVar5 = db->aDb" identifier = (field_expression "db->aDb" identifier -> field_identifier)) ;) (if_statement "if (pDVar5 == db->aDbStatic) {\n    return;\n  }" if (parenthesized_expression "(pDVar5 == db->aDbStatic)" ( (binary_expression "pDVar5 == db->aDbStatic" identifier == (field_expression "db->aDbStatic" identifier -> field_identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "db->aDbStatic[0].zDbSName = pDVar5->zDbSName;" (assignment_expression "db->aDbStatic[0].zDbSName = pDVar5->zDbSName" (field_expression "db->aDbStatic[0].zDbSName" (subscript_expression "db->aDbStatic[0]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (field_expression "pDVar5->zDbSName" identifier -> field_identifier)) ;) (expression_statement "db->aDbStatic[0].pBt = pDVar5->pBt;" (assignment_expression "db->aDbStatic[0].pBt = pDVar5->pBt" (field_expression "db->aDbStatic[0].pBt" (subscript_expression "db->aDbStatic[0]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (field_expression "pDVar5->pBt" identifier -> field_identifier)) ;) (expression_statement "uVar1 = pDVar5->bSyncSet;" (assignment_expression "uVar1 = pDVar5->bSyncSet" identifier = (field_expression "pDVar5->bSyncSet" identifier -> field_identifier)) ;) (expression_statement "uVar2 = *(undefined2 *)&pDVar5->field_0xa;" (assignment_expression "uVar2 = *(undefined2 *)&pDVar5->field_0xa" identifier = (pointer_expression "*(undefined2 *)&pDVar5->field_0xa" * (cast_expression "(undefined2 *)&pDVar5->field_0xa" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pDVar5->field_0xa" & (field_expression "pDVar5->field_0xa" identifier -> field_identifier))))) ;) (expression_statement "db->aDbStatic[0].safety_level = pDVar5->safety_level;" (assignment_expression "db->aDbStatic[0].safety_level = pDVar5->safety_level" (field_expression "db->aDbStatic[0].safety_level" (subscript_expression "db->aDbStatic[0]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (field_expression "pDVar5->safety_level" identifier -> field_identifier)) ;) (expression_statement "db->aDbStatic[0].bSyncSet = uVar1;" (assignment_expression "db->aDbStatic[0].bSyncSet = uVar1" (field_expression "db->aDbStatic[0].bSyncSet" (subscript_expression "db->aDbStatic[0]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "*(undefined2 *)&db->aDbStatic[0].field_0xa = uVar2;" (assignment_expression "*(undefined2 *)&db->aDbStatic[0].field_0xa = uVar2" (pointer_expression "*(undefined2 *)&db->aDbStatic[0].field_0xa" * (cast_expression "(undefined2 *)&db->aDbStatic[0].field_0xa" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&db->aDbStatic[0].field_0xa" & (field_expression "db->aDbStatic[0].field_0xa" (subscript_expression "db->aDbStatic[0]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier)))) = identifier) ;) (expression_statement "db->aDbStatic[0].pSchema = pDVar5->pSchema;" (assignment_expression "db->aDbStatic[0].pSchema = pDVar5->pSchema" (field_expression "db->aDbStatic[0].pSchema" (subscript_expression "db->aDbStatic[0]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (field_expression "pDVar5->pSchema" identifier -> field_identifier)) ;) (expression_statement "db->aDbStatic[1].zDbSName = pDVar5[1].zDbSName;" (assignment_expression "db->aDbStatic[1].zDbSName = pDVar5[1].zDbSName" (field_expression "db->aDbStatic[1].zDbSName" (subscript_expression "db->aDbStatic[1]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (field_expression "pDVar5[1].zDbSName" (subscript_expression "pDVar5[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "db->aDbStatic[1].pBt = pDVar5[1].pBt;" (assignment_expression "db->aDbStatic[1].pBt = pDVar5[1].pBt" (field_expression "db->aDbStatic[1].pBt" (subscript_expression "db->aDbStatic[1]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (field_expression "pDVar5[1].pBt" (subscript_expression "pDVar5[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "uVar1 = pDVar5[1].bSyncSet;" (assignment_expression "uVar1 = pDVar5[1].bSyncSet" identifier = (field_expression "pDVar5[1].bSyncSet" (subscript_expression "pDVar5[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "uVar2 = *(undefined2 *)&pDVar5[1].field_0xa;" (assignment_expression "uVar2 = *(undefined2 *)&pDVar5[1].field_0xa" identifier = (pointer_expression "*(undefined2 *)&pDVar5[1].field_0xa" * (cast_expression "(undefined2 *)&pDVar5[1].field_0xa" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pDVar5[1].field_0xa" & (field_expression "pDVar5[1].field_0xa" (subscript_expression "pDVar5[1]" identifier [ number_literal ]) . field_identifier))))) ;) (expression_statement "db->aDbStatic[1].safety_level = pDVar5[1].safety_level;" (assignment_expression "db->aDbStatic[1].safety_level = pDVar5[1].safety_level" (field_expression "db->aDbStatic[1].safety_level" (subscript_expression "db->aDbStatic[1]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (field_expression "pDVar5[1].safety_level" (subscript_expression "pDVar5[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "db->aDbStatic[1].bSyncSet = uVar1;" (assignment_expression "db->aDbStatic[1].bSyncSet = uVar1" (field_expression "db->aDbStatic[1].bSyncSet" (subscript_expression "db->aDbStatic[1]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "*(undefined2 *)&db->aDbStatic[1].field_0xa = uVar2;" (assignment_expression "*(undefined2 *)&db->aDbStatic[1].field_0xa = uVar2" (pointer_expression "*(undefined2 *)&db->aDbStatic[1].field_0xa" * (cast_expression "(undefined2 *)&db->aDbStatic[1].field_0xa" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&db->aDbStatic[1].field_0xa" & (field_expression "db->aDbStatic[1].field_0xa" (subscript_expression "db->aDbStatic[1]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier)))) = identifier) ;) (expression_statement "db->aDbStatic[1].pSchema = pDVar5[1].pSchema;" (assignment_expression "db->aDbStatic[1].pSchema = pDVar5[1].pSchema" (field_expression "db->aDbStatic[1].pSchema" (subscript_expression "db->aDbStatic[1]" (field_expression "db->aDbStatic" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (field_expression "pDVar5[1].pSchema" (subscript_expression "pDVar5[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "sqlite3DbFreeNN(db,pDVar5);" (call_expression "sqlite3DbFreeNN(db,pDVar5)" identifier (argument_list "(db,pDVar5)" ( identifier , identifier ))) ;) (expression_statement "db->aDb = db->aDbStatic;" (assignment_expression "db->aDb = db->aDbStatic" (field_expression "db->aDb" identifier -> field_identifier) = (field_expression "db->aDbStatic" identifier -> field_identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00025580(int param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar3 = *(int *)(param_1 + 0x14);\n  if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x1a8) = *puVar1;\n  *(undefined4 *)(param_1 + 0x1ac) = puVar1[1];\n  *(undefined4 *)(param_1 + 0x1b0) = puVar1[2];\n  *(undefined4 *)(param_1 + 0x1b4) = puVar1[3];\n  *(undefined4 *)(param_1 + 0x1b8) = puVar1[4];\n  *(undefined4 *)(param_1 + 0x1bc) = puVar1[5];\n  *(undefined4 *)(param_1 + 0x1c0) = puVar1[6];\n  *(undefined4 *)(param_1 + 0x1c4) = puVar1[7];\n  FUN_00023410();\n  *(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00025580(int param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar3 = *(int *)(param_1 + 0x14);\n  if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x1a8) = *puVar1;\n  *(undefined4 *)(param_1 + 0x1ac) = puVar1[1];\n  *(undefined4 *)(param_1 + 0x1b0) = puVar1[2];\n  *(undefined4 *)(param_1 + 0x1b4) = puVar1[3];\n  *(undefined4 *)(param_1 + 0x1b8) = puVar1[4];\n  *(undefined4 *)(param_1 + 0x1bc) = puVar1[5];\n  *(undefined4 *)(param_1 + 0x1c0) = puVar1[6];\n  *(undefined4 *)(param_1 + 0x1c4) = puVar1[7];\n  FUN_00023410();\n  *(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00025580(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar3 = *(int *)(param_1 + 0x14);\n  if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x1a8) = *puVar1;\n  *(undefined4 *)(param_1 + 0x1ac) = puVar1[1];\n  *(undefined4 *)(param_1 + 0x1b0) = puVar1[2];\n  *(undefined4 *)(param_1 + 0x1b4) = puVar1[3];\n  *(undefined4 *)(param_1 + 0x1b8) = puVar1[4];\n  *(undefined4 *)(param_1 + 0x1bc) = puVar1[5];\n  *(undefined4 *)(param_1 + 0x1c0) = puVar1[6];\n  *(undefined4 *)(param_1 + 0x1c4) = puVar1[7];\n  FUN_00023410();\n  *(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar3 = *(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) ))))) ;) (if_statement "if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }" if (parenthesized_expression "(iVar3 < 3)" ( (binary_expression "iVar3 < 3" identifier < number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x14) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }" else (compound_statement "{\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }" { (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" identifier = number_literal) ;) (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);" do (compound_statement "{\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    }" { (while_statement "while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }" { (expression_statement "piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));" (assignment_expression "piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10))" identifier = (cast_expression "(int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 * 0x10 + *(int *)(param_1 + 0x10))" ( (binary_expression "iVar5 * 0x10 + *(int *)(param_1 + 0x10)" (binary_expression "iVar5 * 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) ))))) )))) ;) (if_statement "if (piVar4[1] != 0) break;" if (parenthesized_expression "(piVar4[1] != 0)" ( (binary_expression "piVar4[1] != 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) != number_literal) )) (break_statement "break;" break ;)) (if_statement "if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }" if (parenthesized_expression "(*piVar4 != 0)" ( (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }" { (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar3 = *(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 "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (if_statement "if (iVar3 <= iVar5) goto LAB_00025600;" if (parenthesized_expression "(iVar3 <= iVar5)" ( (binary_expression "iVar3 <= iVar5" identifier <= identifier) )) (goto_statement "goto LAB_00025600;" goto statement_identifier ;)) })) (if_statement "if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }" if (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) (compound_statement "{\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }" { (expression_statement "piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);" (assignment_expression "piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10)" identifier = (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar6 * 0x10)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar6 * 0x10" (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) )))) + (binary_expression "iVar6 * 0x10" identifier * number_literal)) )))) ;) (expression_statement "*piVar2 = *piVar4;" (assignment_expression "*piVar2 = *piVar4" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar2[1] = piVar4[1];" (assignment_expression "piVar2[1] = piVar4[1]" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[2] = piVar4[2];" (assignment_expression "piVar2[2] = piVar4[2]" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = (subscript_expression "piVar4[2]" identifier [ number_literal ])) ;) (expression_statement "piVar2[3] = piVar4[3];" (assignment_expression "piVar2[3] = piVar4[3]" (subscript_expression "piVar2[3]" identifier [ number_literal ]) = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < iVar3)" ( (binary_expression "iVar5 < iVar3" identifier < identifier) )) ;) (labeled_statement "LAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;" statement_identifier : (expression_statement "*(int *)(param_1 + 0x14) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar6" (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) )))) = identifier) ;)) (if_statement "if (iVar6 != 2) {\n      return;\n    }" if (parenthesized_expression "(iVar6 != 2)" ( (binary_expression "iVar6 != 2" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)(param_1 + 0x1a8))" ( (binary_expression "puVar1 == (undefined4 *)(param_1 + 0x1a8)" identifier == (cast_expression "(undefined4 *)(param_1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x1a8) = *puVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1a8) = *puVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x1a8)" * (cast_expression "(undefined4 *)(param_1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1ac) = puVar1[1];" (assignment_expression "*(undefined4 *)(param_1 + 0x1ac) = puVar1[1]" (pointer_expression "*(undefined4 *)(param_1 + 0x1ac)" * (cast_expression "(undefined4 *)(param_1 + 0x1ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ac)" ( (binary_expression "param_1 + 0x1ac" identifier + number_literal) )))) = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1b0) = puVar1[2];" (assignment_expression "*(undefined4 *)(param_1 + 0x1b0) = puVar1[2]" (pointer_expression "*(undefined4 *)(param_1 + 0x1b0)" * (cast_expression "(undefined4 *)(param_1 + 0x1b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b0)" ( (binary_expression "param_1 + 0x1b0" identifier + number_literal) )))) = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1b4) = puVar1[3];" (assignment_expression "*(undefined4 *)(param_1 + 0x1b4) = puVar1[3]" (pointer_expression "*(undefined4 *)(param_1 + 0x1b4)" * (cast_expression "(undefined4 *)(param_1 + 0x1b4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b4)" ( (binary_expression "param_1 + 0x1b4" identifier + number_literal) )))) = (subscript_expression "puVar1[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1b8) = puVar1[4];" (assignment_expression "*(undefined4 *)(param_1 + 0x1b8) = puVar1[4]" (pointer_expression "*(undefined4 *)(param_1 + 0x1b8)" * (cast_expression "(undefined4 *)(param_1 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b8)" ( (binary_expression "param_1 + 0x1b8" identifier + number_literal) )))) = (subscript_expression "puVar1[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1bc) = puVar1[5];" (assignment_expression "*(undefined4 *)(param_1 + 0x1bc) = puVar1[5]" (pointer_expression "*(undefined4 *)(param_1 + 0x1bc)" * (cast_expression "(undefined4 *)(param_1 + 0x1bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1bc)" ( (binary_expression "param_1 + 0x1bc" identifier + number_literal) )))) = (subscript_expression "puVar1[5]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c0) = puVar1[6];" (assignment_expression "*(undefined4 *)(param_1 + 0x1c0) = puVar1[6]" (pointer_expression "*(undefined4 *)(param_1 + 0x1c0)" * (cast_expression "(undefined4 *)(param_1 + 0x1c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c0)" ( (binary_expression "param_1 + 0x1c0" identifier + number_literal) )))) = (subscript_expression "puVar1[6]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c4) = puVar1[7];" (assignment_expression "*(undefined4 *)(param_1 + 0x1c4) = puVar1[7]" (pointer_expression "*(undefined4 *)(param_1 + 0x1c4)" * (cast_expression "(undefined4 *)(param_1 + 0x1c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c4)" ( (binary_expression "param_1 + 0x1c4" identifier + number_literal) )))) = (subscript_expression "puVar1[7]" identifier [ number_literal ])) ;) (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8)" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (cast_expression "(undefined4 *)(param_1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00025580(int param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar3 = *(int *)(param_1 + 0x14);\n  if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x1a8) = *puVar1;\n  *(undefined4 *)(param_1 + 0x1ac) = puVar1[1];\n  *(undefined4 *)(param_1 + 0x1b0) = puVar1[2];\n  *(undefined4 *)(param_1 + 0x1b4) = puVar1[3];\n  *(undefined4 *)(param_1 + 0x1b8) = puVar1[4];\n  *(undefined4 *)(param_1 + 0x1bc) = puVar1[5];\n  *(undefined4 *)(param_1 + 0x1c0) = puVar1[6];\n  *(undefined4 *)(param_1 + 0x1c4) = puVar1[7];\n  FUN_00023410();\n  *(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00025580(int param_1)" (identifier "FUN_00025580") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar3 = *(int *)(param_1 + 0x14);\n  if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }\n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x1a8) = *puVar1;\n  *(undefined4 *)(param_1 + 0x1ac) = puVar1[1];\n  *(undefined4 *)(param_1 + 0x1b0) = puVar1[2];\n  *(undefined4 *)(param_1 + 0x1b4) = puVar1[3];\n  *(undefined4 *)(param_1 + 0x1b8) = puVar1[4];\n  *(undefined4 *)(param_1 + 0x1bc) = puVar1[5];\n  *(undefined4 *)(param_1 + 0x1c0) = puVar1[6];\n  *(undefined4 *)(param_1 + 0x1c4) = puVar1[7];\n  FUN_00023410();\n  *(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x14)" (identifier "iVar3") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (iVar3 < 3) {\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }\n  else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 < 3)" (( "(") (binary_expression "iVar3 < 3" (identifier "iVar3") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x14) = 2;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x14) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    iVar6 = 2;\n    iVar5 = 2;\n    do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);\nLAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;\n    if (iVar6 != 2) {\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" (identifier "iVar6") (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" (identifier "iVar5") (= "=") (number_literal "2")) (; ";")) (do_statement "do {\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    } while (iVar5 < iVar3);" (do "do") (compound_statement "{\n      while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }\n      if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }\n      iVar5 = iVar5 + 1;\n      iVar6 = iVar6 + 1;\n    }" ({ "{") (while_statement "while( true ) {\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));\n        if (piVar4[1] != 0) break;\n        if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }\n        iVar5 = iVar5 + 1;\n        *piVar4 = 0;\n        if (iVar3 <= iVar5) goto LAB_00025600;\n      }" ({ "{") (expression_statement "piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));" (assignment_expression "piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10))" (identifier "piVar4") (= "=") (cast_expression "(int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 * 0x10 + *(int *)(param_1 + 0x10))" (( "(") (binary_expression "iVar5 * 0x10 + *(int *)(param_1 + 0x10)" (binary_expression "iVar5 * 0x10" (identifier "iVar5") (* "*") (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")) () ")"))))) () ")")))) (; ";")) (if_statement "if (piVar4[1] != 0) break;" (if "if") (parenthesized_expression "(piVar4[1] != 0)" (( "(") (binary_expression "piVar4[1] != 0" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (*piVar4 != 0) {\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }" (if "if") (parenthesized_expression "(*piVar4 != 0)" (( "(") (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_00023410();\n          iVar3 = *(int *)(param_1 + 0x14);\n        }" ({ "{") (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" (identifier "FUN_00023410") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x14)" (identifier "iVar3") (= "=") (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 "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar3 <= iVar5) goto LAB_00025600;" (if "if") (parenthesized_expression "(iVar3 <= iVar5)" (( "(") (binary_expression "iVar3 <= iVar5" (identifier "iVar3") (<= "<=") (identifier "iVar5")) () ")")) (goto_statement "goto LAB_00025600;" (goto "goto") (statement_identifier "LAB_00025600") (; ";"))) (} "}"))) (if_statement "if (iVar6 < iVar5) {\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }" (if "if") (parenthesized_expression "(iVar6 < iVar5)" (( "(") (binary_expression "iVar6 < iVar5" (identifier "iVar6") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);\n        *piVar2 = *piVar4;\n        piVar2[1] = piVar4[1];\n        piVar2[2] = piVar4[2];\n        piVar2[3] = piVar4[3];\n      }" ({ "{") (expression_statement "piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);" (assignment_expression "piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar6 * 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + iVar6 * 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")) () ")")))) (+ "+") (binary_expression "iVar6 * 0x10" (identifier "iVar6") (* "*") (number_literal "0x10"))) () ")")))) (; ";")) (expression_statement "*piVar2 = *piVar4;" (assignment_expression "*piVar2 = *piVar4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "piVar2[1] = piVar4[1];" (assignment_expression "piVar2[1] = piVar4[1]" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar2[2] = piVar4[2];" (assignment_expression "piVar2[2] = piVar4[2]" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "piVar2[3] = piVar4[3];" (assignment_expression "piVar2[3] = piVar4[3]" (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 < iVar3)" (( "(") (binary_expression "iVar5 < iVar3" (identifier "iVar5") (< "<") (identifier "iVar3")) () ")")) (; ";")) (labeled_statement "LAB_00025600:\n    *(int *)(param_1 + 0x14) = iVar6;" (statement_identifier "LAB_00025600") (: ":") (expression_statement "*(int *)(param_1 + 0x14) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar6" (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")) () ")")))) (= "=") (identifier "iVar6")) (; ";"))) (if_statement "if (iVar6 != 2) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar6 != 2)" (( "(") (binary_expression "iVar6 != 2" (identifier "iVar6") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x10)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {\n    return;\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)(param_1 + 0x1a8))" (( "(") (binary_expression "puVar1 == (undefined4 *)(param_1 + 0x1a8)" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)(param_1 + 0x1a8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a8)" (( "(") (binary_expression "param_1 + 0x1a8" (identifier "param_1") (+ "+") (number_literal "0x1a8")) () ")")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x1a8) = *puVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1a8) = *puVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x1a8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1a8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a8)" (( "(") (binary_expression "param_1 + 0x1a8" (identifier "param_1") (+ "+") (number_literal "0x1a8")) () ")")))) (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1ac) = puVar1[1];" (assignment_expression "*(undefined4 *)(param_1 + 0x1ac) = puVar1[1]" (pointer_expression "*(undefined4 *)(param_1 + 0x1ac)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1ac)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1ac)" (( "(") (binary_expression "param_1 + 0x1ac" (identifier "param_1") (+ "+") (number_literal "0x1ac")) () ")")))) (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1b0) = puVar1[2];" (assignment_expression "*(undefined4 *)(param_1 + 0x1b0) = puVar1[2]" (pointer_expression "*(undefined4 *)(param_1 + 0x1b0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1b0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1b0)" (( "(") (binary_expression "param_1 + 0x1b0" (identifier "param_1") (+ "+") (number_literal "0x1b0")) () ")")))) (= "=") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1b4) = puVar1[3];" (assignment_expression "*(undefined4 *)(param_1 + 0x1b4) = puVar1[3]" (pointer_expression "*(undefined4 *)(param_1 + 0x1b4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1b4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1b4)" (( "(") (binary_expression "param_1 + 0x1b4" (identifier "param_1") (+ "+") (number_literal "0x1b4")) () ")")))) (= "=") (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1b8) = puVar1[4];" (assignment_expression "*(undefined4 *)(param_1 + 0x1b8) = puVar1[4]" (pointer_expression "*(undefined4 *)(param_1 + 0x1b8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1b8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1b8)" (( "(") (binary_expression "param_1 + 0x1b8" (identifier "param_1") (+ "+") (number_literal "0x1b8")) () ")")))) (= "=") (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1bc) = puVar1[5];" (assignment_expression "*(undefined4 *)(param_1 + 0x1bc) = puVar1[5]" (pointer_expression "*(undefined4 *)(param_1 + 0x1bc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1bc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1bc)" (( "(") (binary_expression "param_1 + 0x1bc" (identifier "param_1") (+ "+") (number_literal "0x1bc")) () ")")))) (= "=") (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1c0) = puVar1[6];" (assignment_expression "*(undefined4 *)(param_1 + 0x1c0) = puVar1[6]" (pointer_expression "*(undefined4 *)(param_1 + 0x1c0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c0)" (( "(") (binary_expression "param_1 + 0x1c0" (identifier "param_1") (+ "+") (number_literal "0x1c0")) () ")")))) (= "=") (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1c4) = puVar1[7];" (assignment_expression "*(undefined4 *)(param_1 + 0x1c4) = puVar1[7]" (pointer_expression "*(undefined4 *)(param_1 + 0x1c4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c4)" (( "(") (binary_expression "param_1 + 0x1c4" (identifier "param_1") (+ "+") (number_literal "0x1c4")) () ")")))) (= "=") (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "FUN_00023410();" (call_expression "FUN_00023410()" (identifier "FUN_00023410") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8)" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (cast_expression "(undefined4 *)(param_1 + 0x1a8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a8)" (( "(") (binary_expression "param_1 + 0x1a8" (identifier "param_1") (+ "+") (number_literal "0x1a8")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *db)

{
  type_2 uVar1;
  type_3 uVar2;
  type_4 *pDVar3;
  int var_1;
  type_4 *var_5;
  int var_2;
  int var_4;
  
  var_1 = db->nDb;
  if (var_1 < 3) {
    db->nDb = 2;
  }
  else {
    var_4 = 2;
    var_2 = 2;
    do {
      while( true ) {
        var_5 = db->aDb + var_2;
        if (var_5->pBt != (type_5 *)0x0) break;
        if (var_5->zDbSName != (char *)0x0) {
          var_3(db,var_5->zDbSName);
          var_1 = db->nDb;
        }
        var_2 = var_2 + 1;
        var_5->zDbSName = (char *)0x0;
        if (var_1 <= var_2) goto LAB_00025600;
      }
      if (var_4 < var_2) {
        pDVar3 = db->aDb + var_4;
        pDVar3->zDbSName = var_5->zDbSName;
        pDVar3->pBt = var_5->pBt;
        uVar1 = var_5->bSyncSet;
        uVar2 = *(type_3 *)&var_5->field_0xa;
        pDVar3->safety_level = var_5->safety_level;
        pDVar3->bSyncSet = uVar1;
        *(type_3 *)&pDVar3->field_0xa = uVar2;
        pDVar3->pSchema = var_5->pSchema;
      }
      var_2 = var_2 + 1;
      var_4 = var_4 + 1;
    } while (var_2 < var_1);
LAB_00025600:
    db->nDb = var_4;
    if (var_4 != 2) {
      return;
    }
  }
  var_5 = db->aDb;
  if (var_5 == db->aDbStatic) {
    return;
  }
  db->aDbStatic[0].zDbSName = var_5->zDbSName;
  db->aDbStatic[0].pBt = var_5->pBt;
  uVar1 = var_5->bSyncSet;
  uVar2 = *(type_3 *)&var_5->field_0xa;
  db->aDbStatic[0].safety_level = var_5->safety_level;
  db->aDbStatic[0].bSyncSet = uVar1;
  *(type_3 *)&db->aDbStatic[0].field_0xa = uVar2;
  db->aDbStatic[0].pSchema = var_5->pSchema;
  db->aDbStatic[1].zDbSName = var_5[1].zDbSName;
  db->aDbStatic[1].pBt = var_5[1].pBt;
  uVar1 = var_5[1].bSyncSet;
  uVar2 = *(type_3 *)&var_5[1].field_0xa;
  db->aDbStatic[1].safety_level = var_5[1].safety_level;
  db->aDbStatic[1].bSyncSet = uVar1;
  *(type_3 *)&db->aDbStatic[1].field_0xa = uVar2;
  db->aDbStatic[1].pSchema = var_5[1].pSchema;
  var_3(db,var_5);
  db->aDb = db->aDbStatic;
  return;
}


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

void __regparm3 MASKED(int param_1)

{
  undefined4 *puVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  int iVar6;
  
  iVar3 = *(int *)(param_1 + 0x14);
  if (iVar3 < 3) {
    *(undefined4 *)(param_1 + 0x14) = 2;
  }
  else {
    iVar6 = 2;
    iVar5 = 2;
    do {
      while( true ) {
        piVar4 = (int *)(iVar5 * 0x10 + *(int *)(param_1 + 0x10));
        if (piVar4[1] != 0) break;
        if (*piVar4 != 0) {
          FUN_00023410();
          iVar3 = *(int *)(param_1 + 0x14);
        }
        iVar5 = iVar5 + 1;
        *piVar4 = 0;
        if (iVar3 <= iVar5) goto LAB_00025600;
      }
      if (iVar6 < iVar5) {
        piVar2 = (int *)(*(int *)(param_1 + 0x10) + iVar6 * 0x10);
        *piVar2 = *piVar4;
        piVar2[1] = piVar4[1];
        piVar2[2] = piVar4[2];
        piVar2[3] = piVar4[3];
      }
      iVar5 = iVar5 + 1;
      iVar6 = iVar6 + 1;
    } while (iVar5 < iVar3);
LAB_00025600:
    *(int *)(param_1 + 0x14) = iVar6;
    if (iVar6 != 2) {
      return;
    }
  }
  puVar1 = *(undefined4 **)(param_1 + 0x10);
  if (puVar1 == (undefined4 *)(param_1 + 0x1a8)) {
    return;
  }
  *(undefined4 *)(param_1 + 0x1a8) = *puVar1;
  *(undefined4 *)(param_1 + 0x1ac) = puVar1[1];
  *(undefined4 *)(param_1 + 0x1b0) = puVar1[2];
  *(undefined4 *)(param_1 + 0x1b4) = puVar1[3];
  *(undefined4 *)(param_1 + 0x1b8) = puVar1[4];
  *(undefined4 *)(param_1 + 0x1bc) = puVar1[5];
  *(undefined4 *)(param_1 + 0x1c0) = puVar1[6];
  *(undefined4 *)(param_1 + 0x1c4) = puVar1[7];
  FUN_00023410();
  *(undefined4 **)(param_1 + 0x10) = (undefined4 *)(param_1 + 0x1a8);
  return;
}

