
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

int __regparm3
sqlite3JournalOpen(sqlite3_vfs *pVfs,char *zName,sqlite3_file *pJfd,int flags,int nSpill)

{
  sqlite3_io_methods *psVar1;
  int iVar2;
  MemJournal *p;
  uint uVar3;
  undefined4 *puVar4;
  
  pJfd->pMethods = (sqlite3_io_methods *)0x0;
  pJfd[0xd].pMethods = (sqlite3_io_methods *)0x0;
  puVar4 = (undefined4 *)((uint)(pJfd + 1) & 0xfffffffc);
  for (uVar3 = (uint)((int)pJfd + (0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc))) >> 2; uVar3 != 0;
      uVar3 = uVar3 - 1) {
    *puVar4 = 0;
    puVar4 = puVar4 + 1;
  }
  if (nSpill != 0) {
    psVar1 = (sqlite3_io_methods *)0x3fc;
    if (0 < nSpill) {
      psVar1 = (sqlite3_io_methods *)nSpill;
    }
    pJfd[0xc].pMethods = (sqlite3_io_methods *)pVfs;
    pJfd[0xd].pMethods = (sqlite3_io_methods *)zName;
    pJfd[1].pMethods = psVar1;
    pJfd->pMethods = &MemJournalMethods;
    pJfd[2].pMethods = (sqlite3_io_methods *)nSpill;
    pJfd[0xb].pMethods = (sqlite3_io_methods *)flags;
    return 0;
  }
  iVar2 = (*pVfs->xOpen)(pVfs,zName,pJfd,flags,(int *)0x0);
  return iVar2;
}



undefined4 FUN_0004a4c0(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  int *extraout_ECX;
  uint uVar3;
  int unaff_EBP;
  undefined4 *puVar4;
  byte bVar5;
  undefined8 uVar6;
  
  bVar5 = 0;
  uVar6 = FUN_00036ac9();
  *extraout_ECX = 0;
  extraout_ECX[0xd] = 0;
  puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);
  for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>
               2; uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar4 = 0;
    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
  }
  if (param_2 != 0) {
    iVar1 = 0x3fc;
    if (0 < param_2) {
      iVar1 = param_2;
    }
    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;
    extraout_ECX[1] = iVar1;
    *extraout_ECX =
         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +
              unaff_EBP + 0x16);
    extraout_ECX[2] = param_2;
    extraout_ECX[0xb] = param_1;
    return 0;
  }
  uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);
  return uVar2;
}


PUSH EBP
CALL 0x00036ac9
ADD EBP,0x131962
PUSH EDI
LEA EDI,[ECX + 0x4]
PUSH ESI
AND EDI,0xfffffffc
MOV ESI,EAX
XOR EAX,EAX
PUSH EBX
MOV EBX,ECX
SUB ESP,0xc
MOV dword ptr [ECX],0x0
MOV dword ptr [ECX + 0x34],0x0
SUB ECX,EDI
ADD ECX,0x38
SHR ECX,0x2
STOSD.REP ES:EDI
MOV EAX,dword ptr [ESP + 0x24]
TEST EAX,EAX
JZ 0x0004a530
MOV EAX,0x3fc
CMOVG EAX,dword ptr [ESP + 0x24]
MOV dword ptr [EBX + 0x30],ESI
MOV dword ptr [EBX + 0x34],EDX
MOV dword ptr [EBX + 0x4],EAX
LEA EAX,[EBP + 0xfffffc18]
MOV dword ptr [EBX],EAX
MOV EAX,dword ptr [ESP + 0x24]
MOV dword ptr [EBX + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [EBX + 0x2c],EAX
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x0
PUSH dword ptr [ESP + 0x30]
PUSH EBX
PUSH EDX
PUSH ESI
CALL dword ptr [ESI + 0x18]
ADD ESP,0x20
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "undefined4 FUN_0004a4c0(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *extraout_ECX;\n  uint uVar3;\n  int unaff_EBP;\n  undefined4 *puVar4;\n  byte bVar5;\n  undefined8 uVar6;\n  \n  bVar5 = 0;\n  uVar6 = FUN_00036ac9();\n  *extraout_ECX = 0;\n  extraout_ECX[0xd] = 0;\n  puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }\n  uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0004a4c0(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *extraout_ECX;\n  uint uVar3;\n  int unaff_EBP;\n  undefined4 *puVar4;\n  byte bVar5;\n  undefined8 uVar6;\n  \n  bVar5 = 0;\n  uVar6 = FUN_00036ac9();\n  *extraout_ECX = 0;\n  extraout_ECX[0xd] = 0;\n  puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }\n  uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0004a4c0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *extraout_ECX;\n  uint uVar3;\n  int unaff_EBP;\n  undefined4 *puVar4;\n  byte bVar5;\n  undefined8 uVar6;\n  \n  bVar5 = 0;\n  uVar6 = FUN_00036ac9();\n  *extraout_ECX = 0;\n  extraout_ECX[0xd] = 0;\n  puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }\n  uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *extraout_ECX;" primitive_type (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = FUN_00036ac9();" (assignment_expression "uVar6 = FUN_00036ac9()" identifier = (call_expression "FUN_00036ac9()" identifier (argument_list "()" ( )))) ;) (expression_statement "*extraout_ECX = 0;" (assignment_expression "*extraout_ECX = 0" (pointer_expression "*extraout_ECX" * identifier) = number_literal) ;) (expression_statement "extraout_ECX[0xd] = 0;" (assignment_expression "extraout_ECX[0xd] = 0" (subscript_expression "extraout_ECX[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(extraout_ECX + 1) & 0xfffffffc)" ( (binary_expression "(uint)(extraout_ECX + 1) & 0xfffffffc" (call_expression "(uint)(extraout_ECX + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(extraout_ECX + 1)" ( (binary_expression "extraout_ECX + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2" identifier = (binary_expression "(uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2" (call_expression "(uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc)))" ( (binary_expression "(int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))" (cast_expression "(int)extraout_ECX" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))" ( (binary_expression "0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(extraout_ECX + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(extraout_ECX + 1) & 0xfffffffc)" ( (binary_expression "(uint)(extraout_ECX + 1) & 0xfffffffc" (call_expression "(uint)(extraout_ECX + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(extraout_ECX + 1)" ( (binary_expression "extraout_ECX + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }" { (expression_statement "iVar1 = 0x3fc;" (assignment_expression "iVar1 = 0x3fc" identifier = number_literal) ;) (if_statement "if (0 < param_2) {\n      iVar1 = param_2;\n    }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n      iVar1 = param_2;\n    }" { (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" identifier = identifier) ;) })) (expression_statement "*(undefined8 *)(extraout_ECX + 0xc) = uVar6;" (assignment_expression "*(undefined8 *)(extraout_ECX + 0xc) = uVar6" (pointer_expression "*(undefined8 *)(extraout_ECX + 0xc)" * (cast_expression "(undefined8 *)(extraout_ECX + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + 0xc)" ( (binary_expression "extraout_ECX + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "extraout_ECX[1] = iVar1;" (assignment_expression "extraout_ECX[1] = iVar1" (subscript_expression "extraout_ECX[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);" (assignment_expression "*extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16)" (pointer_expression "*extraout_ECX" * identifier) = (cast_expression "(int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16)" ( (binary_expression ""sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16" (binary_expression ""sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP" (string_literal ""sqlite3changeset_apply(): table %s has %d columns, expected %d or more"" " string_content ") + identifier) + number_literal) )))) ;) (expression_statement "extraout_ECX[2] = param_2;" (assignment_expression "extraout_ECX[2] = param_2" (subscript_expression "extraout_ECX[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "extraout_ECX[0xb] = param_1;" (assignment_expression "extraout_ECX[0xb] = param_1" (subscript_expression "extraout_ECX[0xb]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);" (assignment_expression "uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0)" identifier = (call_expression "(**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0)" (parenthesized_expression "(**(code **)((int)uVar6 + 0x18))" ( (pointer_expression "**(code **)((int)uVar6 + 0x18)" * (pointer_expression "*(code **)((int)uVar6 + 0x18)" * (cast_expression "(code **)((int)uVar6 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)uVar6 + 0x18)" ( (binary_expression "(int)uVar6 + 0x18" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (argument_list "(uVar6,extraout_ECX,param_1,0)" ( identifier , identifier , identifier , number_literal )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n\nint __regparm3\nsqlite3JournalOpen(sqlite3_vfs *pVfs,char *zName,sqlite3_file *pJfd,int flags,int nSpill)\n\n{\n  sqlite3_io_methods *psVar1;\n  int iVar2;\n  MemJournal *p;\n  uint uVar3;\n  undefined4 *puVar4;\n  \n  pJfd->pMethods = (sqlite3_io_methods *)0x0;\n  pJfd[0xd].pMethods = (sqlite3_io_methods *)0x0;\n  puVar4 = (undefined4 *)((uint)(pJfd + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)pJfd + (0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc))) >> 2; uVar3 != 0;\n      uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  if (nSpill != 0) {\n    psVar1 = (sqlite3_io_methods *)0x3fc;\n    if (0 < nSpill) {\n      psVar1 = (sqlite3_io_methods *)nSpill;\n    }\n    pJfd[0xc].pMethods = (sqlite3_io_methods *)pVfs;\n    pJfd[0xd].pMethods = (sqlite3_io_methods *)zName;\n    pJfd[1].pMethods = psVar1;\n    pJfd->pMethods = &MemJournalMethods;\n    pJfd[2].pMethods = (sqlite3_io_methods *)nSpill;\n    pJfd[0xb].pMethods = (sqlite3_io_methods *)flags;\n    return 0;\n  }\n  iVar2 = (*pVfs->xOpen)(pVfs,zName,pJfd,flags,(int *)0x0);\n  return iVar2;\n}\n\n" comment (function_definition "int __regparm3\nsqlite3JournalOpen(sqlite3_vfs *pVfs,char *zName,sqlite3_file *pJfd,int flags,int nSpill)\n\n{\n  sqlite3_io_methods *psVar1;\n  int iVar2;\n  MemJournal *p;\n  uint uVar3;\n  undefined4 *puVar4;\n  \n  pJfd->pMethods = (sqlite3_io_methods *)0x0;\n  pJfd[0xd].pMethods = (sqlite3_io_methods *)0x0;\n  puVar4 = (undefined4 *)((uint)(pJfd + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)pJfd + (0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc))) >> 2; uVar3 != 0;\n      uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  if (nSpill != 0) {\n    psVar1 = (sqlite3_io_methods *)0x3fc;\n    if (0 < nSpill) {\n      psVar1 = (sqlite3_io_methods *)nSpill;\n    }\n    pJfd[0xc].pMethods = (sqlite3_io_methods *)pVfs;\n    pJfd[0xd].pMethods = (sqlite3_io_methods *)zName;\n    pJfd[1].pMethods = psVar1;\n    pJfd->pMethods = &MemJournalMethods;\n    pJfd[2].pMethods = (sqlite3_io_methods *)nSpill;\n    pJfd[0xb].pMethods = (sqlite3_io_methods *)flags;\n    return 0;\n  }\n  iVar2 = (*pVfs->xOpen)(pVfs,zName,pJfd,flags,(int *)0x0);\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3JournalOpen(sqlite3_vfs *pVfs,char *zName,sqlite3_file *pJfd,int flags,int nSpill)" identifier (parameter_list "(sqlite3_vfs *pVfs,char *zName,sqlite3_file *pJfd,int flags,int nSpill)" ( (parameter_declaration "sqlite3_vfs *pVfs" type_identifier (pointer_declarator "*pVfs" * identifier)) , (parameter_declaration "char *zName" primitive_type (pointer_declarator "*zName" * identifier)) , (parameter_declaration "sqlite3_file *pJfd" type_identifier (pointer_declarator "*pJfd" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) , (parameter_declaration "int nSpill" primitive_type identifier) ))) (compound_statement "{\n  sqlite3_io_methods *psVar1;\n  int iVar2;\n  MemJournal *p;\n  uint uVar3;\n  undefined4 *puVar4;\n  \n  pJfd->pMethods = (sqlite3_io_methods *)0x0;\n  pJfd[0xd].pMethods = (sqlite3_io_methods *)0x0;\n  puVar4 = (undefined4 *)((uint)(pJfd + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)pJfd + (0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc))) >> 2; uVar3 != 0;\n      uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  if (nSpill != 0) {\n    psVar1 = (sqlite3_io_methods *)0x3fc;\n    if (0 < nSpill) {\n      psVar1 = (sqlite3_io_methods *)nSpill;\n    }\n    pJfd[0xc].pMethods = (sqlite3_io_methods *)pVfs;\n    pJfd[0xd].pMethods = (sqlite3_io_methods *)zName;\n    pJfd[1].pMethods = psVar1;\n    pJfd->pMethods = &MemJournalMethods;\n    pJfd[2].pMethods = (sqlite3_io_methods *)nSpill;\n    pJfd[0xb].pMethods = (sqlite3_io_methods *)flags;\n    return 0;\n  }\n  iVar2 = (*pVfs->xOpen)(pVfs,zName,pJfd,flags,(int *)0x0);\n  return iVar2;\n}" { (declaration "sqlite3_io_methods *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "MemJournal *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "pJfd->pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pJfd->pMethods = (sqlite3_io_methods *)0x0" (field_expression "pJfd->pMethods" identifier -> field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pJfd[0xd].pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pJfd[0xd].pMethods = (sqlite3_io_methods *)0x0" (field_expression "pJfd[0xd].pMethods" (subscript_expression "pJfd[0xd]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar4 = (undefined4 *)((uint)(pJfd + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(pJfd + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(pJfd + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(pJfd + 1) & 0xfffffffc)" ( (binary_expression "(uint)(pJfd + 1) & 0xfffffffc" (call_expression "(uint)(pJfd + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pJfd + 1)" ( (binary_expression "pJfd + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)pJfd + (0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc))) >> 2; uVar3 != 0;\n      uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)pJfd + (0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)pJfd + (0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)pJfd + (0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pJfd + (0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc)))" ( (binary_expression "(int)pJfd + (0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc))" (cast_expression "(int)pJfd" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc))" ( (binary_expression "0x38 - (int)((uint)(pJfd + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(pJfd + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(pJfd + 1) & 0xfffffffc)" ( (binary_expression "(uint)(pJfd + 1) & 0xfffffffc" (call_expression "(uint)(pJfd + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pJfd + 1)" ( (binary_expression "pJfd + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) })) (if_statement "if (nSpill != 0) {\n    psVar1 = (sqlite3_io_methods *)0x3fc;\n    if (0 < nSpill) {\n      psVar1 = (sqlite3_io_methods *)nSpill;\n    }\n    pJfd[0xc].pMethods = (sqlite3_io_methods *)pVfs;\n    pJfd[0xd].pMethods = (sqlite3_io_methods *)zName;\n    pJfd[1].pMethods = psVar1;\n    pJfd->pMethods = &MemJournalMethods;\n    pJfd[2].pMethods = (sqlite3_io_methods *)nSpill;\n    pJfd[0xb].pMethods = (sqlite3_io_methods *)flags;\n    return 0;\n  }" if (parenthesized_expression "(nSpill != 0)" ( (binary_expression "nSpill != 0" identifier != number_literal) )) (compound_statement "{\n    psVar1 = (sqlite3_io_methods *)0x3fc;\n    if (0 < nSpill) {\n      psVar1 = (sqlite3_io_methods *)nSpill;\n    }\n    pJfd[0xc].pMethods = (sqlite3_io_methods *)pVfs;\n    pJfd[0xd].pMethods = (sqlite3_io_methods *)zName;\n    pJfd[1].pMethods = psVar1;\n    pJfd->pMethods = &MemJournalMethods;\n    pJfd[2].pMethods = (sqlite3_io_methods *)nSpill;\n    pJfd[0xb].pMethods = (sqlite3_io_methods *)flags;\n    return 0;\n  }" { (expression_statement "psVar1 = (sqlite3_io_methods *)0x3fc;" (assignment_expression "psVar1 = (sqlite3_io_methods *)0x3fc" identifier = (cast_expression "(sqlite3_io_methods *)0x3fc" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (0 < nSpill) {\n      psVar1 = (sqlite3_io_methods *)nSpill;\n    }" if (parenthesized_expression "(0 < nSpill)" ( (binary_expression "0 < nSpill" number_literal < identifier) )) (compound_statement "{\n      psVar1 = (sqlite3_io_methods *)nSpill;\n    }" { (expression_statement "psVar1 = (sqlite3_io_methods *)nSpill;" (assignment_expression "psVar1 = (sqlite3_io_methods *)nSpill" identifier = (cast_expression "(sqlite3_io_methods *)nSpill" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "pJfd[0xc].pMethods = (sqlite3_io_methods *)pVfs;" (assignment_expression "pJfd[0xc].pMethods = (sqlite3_io_methods *)pVfs" (field_expression "pJfd[0xc].pMethods" (subscript_expression "pJfd[0xc]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)pVfs" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pJfd[0xd].pMethods = (sqlite3_io_methods *)zName;" (assignment_expression "pJfd[0xd].pMethods = (sqlite3_io_methods *)zName" (field_expression "pJfd[0xd].pMethods" (subscript_expression "pJfd[0xd]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)zName" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pJfd[1].pMethods = psVar1;" (assignment_expression "pJfd[1].pMethods = psVar1" (field_expression "pJfd[1].pMethods" (subscript_expression "pJfd[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "pJfd->pMethods = &MemJournalMethods;" (assignment_expression "pJfd->pMethods = &MemJournalMethods" (field_expression "pJfd->pMethods" identifier -> field_identifier) = (pointer_expression "&MemJournalMethods" & identifier)) ;) (expression_statement "pJfd[2].pMethods = (sqlite3_io_methods *)nSpill;" (assignment_expression "pJfd[2].pMethods = (sqlite3_io_methods *)nSpill" (field_expression "pJfd[2].pMethods" (subscript_expression "pJfd[2]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)nSpill" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pJfd[0xb].pMethods = (sqlite3_io_methods *)flags;" (assignment_expression "pJfd[0xb].pMethods = (sqlite3_io_methods *)flags" (field_expression "pJfd[0xb].pMethods" (subscript_expression "pJfd[0xb]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)flags" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (*pVfs->xOpen)(pVfs,zName,pJfd,flags,(int *)0x0);" (assignment_expression "iVar2 = (*pVfs->xOpen)(pVfs,zName,pJfd,flags,(int *)0x0)" identifier = (call_expression "(*pVfs->xOpen)(pVfs,zName,pJfd,flags,(int *)0x0)" (parenthesized_expression "(*pVfs->xOpen)" ( (pointer_expression "*pVfs->xOpen" * (field_expression "pVfs->xOpen" identifier -> field_identifier)) )) (argument_list "(pVfs,zName,pJfd,flags,(int *)0x0)" ( identifier , identifier , identifier , identifier , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0004a4c0(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *extraout_ECX;\n  uint uVar3;\n  int unaff_EBP;\n  undefined4 *puVar4;\n  byte bVar5;\n  undefined8 uVar6;\n  \n  bVar5 = 0;\n  uVar6 = FUN_00036ac9();\n  *extraout_ECX = 0;\n  extraout_ECX[0xd] = 0;\n  puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }\n  uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0004a4c0(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *extraout_ECX;\n  uint uVar3;\n  int unaff_EBP;\n  undefined4 *puVar4;\n  byte bVar5;\n  undefined8 uVar6;\n  \n  bVar5 = 0;\n  uVar6 = FUN_00036ac9();\n  *extraout_ECX = 0;\n  extraout_ECX[0xd] = 0;\n  puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }\n  uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0004a4c0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *extraout_ECX;\n  uint uVar3;\n  int unaff_EBP;\n  undefined4 *puVar4;\n  byte bVar5;\n  undefined8 uVar6;\n  \n  bVar5 = 0;\n  uVar6 = FUN_00036ac9();\n  *extraout_ECX = 0;\n  extraout_ECX[0xd] = 0;\n  puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }\n  uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *extraout_ECX;" primitive_type (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = FUN_00036ac9();" (assignment_expression "uVar6 = FUN_00036ac9()" identifier = (call_expression "FUN_00036ac9()" identifier (argument_list "()" ( )))) ;) (expression_statement "*extraout_ECX = 0;" (assignment_expression "*extraout_ECX = 0" (pointer_expression "*extraout_ECX" * identifier) = number_literal) ;) (expression_statement "extraout_ECX[0xd] = 0;" (assignment_expression "extraout_ECX[0xd] = 0" (subscript_expression "extraout_ECX[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(extraout_ECX + 1) & 0xfffffffc)" ( (binary_expression "(uint)(extraout_ECX + 1) & 0xfffffffc" (call_expression "(uint)(extraout_ECX + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(extraout_ECX + 1)" ( (binary_expression "extraout_ECX + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2" identifier = (binary_expression "(uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2" (call_expression "(uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc)))" ( (binary_expression "(int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))" (cast_expression "(int)extraout_ECX" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))" ( (binary_expression "0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(extraout_ECX + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(extraout_ECX + 1) & 0xfffffffc)" ( (binary_expression "(uint)(extraout_ECX + 1) & 0xfffffffc" (call_expression "(uint)(extraout_ECX + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(extraout_ECX + 1)" ( (binary_expression "extraout_ECX + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (if_statement "if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }" { (expression_statement "iVar1 = 0x3fc;" (assignment_expression "iVar1 = 0x3fc" identifier = number_literal) ;) (if_statement "if (0 < param_2) {\n      iVar1 = param_2;\n    }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n      iVar1 = param_2;\n    }" { (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" identifier = identifier) ;) })) (expression_statement "*(undefined8 *)(extraout_ECX + 0xc) = uVar6;" (assignment_expression "*(undefined8 *)(extraout_ECX + 0xc) = uVar6" (pointer_expression "*(undefined8 *)(extraout_ECX + 0xc)" * (cast_expression "(undefined8 *)(extraout_ECX + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ECX + 0xc)" ( (binary_expression "extraout_ECX + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "extraout_ECX[1] = iVar1;" (assignment_expression "extraout_ECX[1] = iVar1" (subscript_expression "extraout_ECX[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);" (assignment_expression "*extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16)" (pointer_expression "*extraout_ECX" * identifier) = (cast_expression "(int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16)" ( (binary_expression ""sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16" (binary_expression ""sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP" (string_literal ""sqlite3changeset_apply(): table %s has %d columns, expected %d or more"" " string_content ") + identifier) + number_literal) )))) ;) (expression_statement "extraout_ECX[2] = param_2;" (assignment_expression "extraout_ECX[2] = param_2" (subscript_expression "extraout_ECX[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "extraout_ECX[0xb] = param_1;" (assignment_expression "extraout_ECX[0xb] = param_1" (subscript_expression "extraout_ECX[0xb]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);" (assignment_expression "uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0)" identifier = (call_expression "(**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0)" (parenthesized_expression "(**(code **)((int)uVar6 + 0x18))" ( (pointer_expression "**(code **)((int)uVar6 + 0x18)" * (pointer_expression "*(code **)((int)uVar6 + 0x18)" * (cast_expression "(code **)((int)uVar6 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)uVar6 + 0x18)" ( (binary_expression "(int)uVar6 + 0x18" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (argument_list "(uVar6,extraout_ECX,param_1,0)" ( identifier , identifier , identifier , number_literal )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (string_literal " string_content ") + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , LIT )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0004a4c0(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *extraout_ECX;\n  uint uVar3;\n  int unaff_EBP;\n  undefined4 *puVar4;\n  byte bVar5;\n  undefined8 uVar6;\n  \n  bVar5 = 0;\n  uVar6 = FUN_00036ac9();\n  *extraout_ECX = 0;\n  extraout_ECX[0xd] = 0;\n  puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }\n  uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004a4c0(int param_1,int param_2)" (identifier "FUN_0004a4c0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *extraout_ECX;\n  uint uVar3;\n  int unaff_EBP;\n  undefined4 *puVar4;\n  byte bVar5;\n  undefined8 uVar6;\n  \n  bVar5 = 0;\n  uVar6 = FUN_00036ac9();\n  *extraout_ECX = 0;\n  extraout_ECX[0xd] = 0;\n  puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }\n  uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *extraout_ECX;" (primitive_type "int") (pointer_declarator "*extraout_ECX" (* "*") (identifier "extraout_ECX")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = FUN_00036ac9();" (assignment_expression "uVar6 = FUN_00036ac9()" (identifier "uVar6") (= "=") (call_expression "FUN_00036ac9()" (identifier "FUN_00036ac9") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*extraout_ECX = 0;" (assignment_expression "*extraout_ECX = 0" (pointer_expression "*extraout_ECX" (* "*") (identifier "extraout_ECX")) (= "=") (number_literal "0")) (; ";")) (expression_statement "extraout_ECX[0xd] = 0;" (assignment_expression "extraout_ECX[0xd] = 0" (subscript_expression "extraout_ECX[0xd]" (identifier "extraout_ECX") ([ "[") (number_literal "0xd") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(extraout_ECX + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(extraout_ECX + 1) & 0xfffffffc" (call_expression "(uint)(extraout_ECX + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(extraout_ECX + 1)" (( "(") (binary_expression "extraout_ECX + 1" (identifier "extraout_ECX") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2" (identifier "uVar3") (= "=") (binary_expression "(uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>\n               2" (call_expression "(uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc)))" (( "(") (binary_expression "(int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))" (cast_expression "(int)extraout_ECX" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "extraout_ECX")) (+ "+") (parenthesized_expression "(0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))" (( "(") (binary_expression "0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc)" (number_literal "0x38") (- "-") (cast_expression "(int)((uint)(extraout_ECX + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(extraout_ECX + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(extraout_ECX + 1) & 0xfffffffc" (call_expression "(uint)(extraout_ECX + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(extraout_ECX + 1)" (( "(") (binary_expression "extraout_ECX + 1" (identifier "extraout_ECX") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" (identifier "puVar4") (+ "+") (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = 0x3fc;\n    if (0 < param_2) {\n      iVar1 = param_2;\n    }\n    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;\n    extraout_ECX[1] = iVar1;\n    *extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);\n    extraout_ECX[2] = param_2;\n    extraout_ECX[0xb] = param_1;\n    return 0;\n  }" ({ "{") (expression_statement "iVar1 = 0x3fc;" (assignment_expression "iVar1 = 0x3fc" (identifier "iVar1") (= "=") (number_literal "0x3fc")) (; ";")) (if_statement "if (0 < param_2) {\n      iVar1 = param_2;\n    }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      iVar1 = param_2;\n    }" ({ "{") (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" (identifier "iVar1") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "*(undefined8 *)(extraout_ECX + 0xc) = uVar6;" (assignment_expression "*(undefined8 *)(extraout_ECX + 0xc) = uVar6" (pointer_expression "*(undefined8 *)(extraout_ECX + 0xc)" (* "*") (cast_expression "(undefined8 *)(extraout_ECX + 0xc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ECX + 0xc)" (( "(") (binary_expression "extraout_ECX + 0xc" (identifier "extraout_ECX") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "extraout_ECX[1] = iVar1;" (assignment_expression "extraout_ECX[1] = iVar1" (subscript_expression "extraout_ECX[1]" (identifier "extraout_ECX") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16);" (assignment_expression "*extraout_ECX =\n         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16)" (pointer_expression "*extraout_ECX" (* "*") (identifier "extraout_ECX")) (= "=") (cast_expression "(int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16)" (( "(") (binary_expression ""sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP + 0x16" (binary_expression ""sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +\n              unaff_EBP" (string_literal ""sqlite3changeset_apply(): table %s has %d columns, expected %d or more"" (" """) (string_content "sqlite3changeset_apply(): table %s has %d columns, expected %d or more") (" """)) (+ "+") (identifier "unaff_EBP")) (+ "+") (number_literal "0x16")) () ")")))) (; ";")) (expression_statement "extraout_ECX[2] = param_2;" (assignment_expression "extraout_ECX[2] = param_2" (subscript_expression "extraout_ECX[2]" (identifier "extraout_ECX") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "extraout_ECX[0xb] = param_1;" (assignment_expression "extraout_ECX[0xb] = param_1" (subscript_expression "extraout_ECX[0xb]" (identifier "extraout_ECX") ([ "[") (number_literal "0xb") (] "]")) (= "=") (identifier "param_1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);" (assignment_expression "uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0)" (identifier "uVar2") (= "=") (call_expression "(**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0)" (parenthesized_expression "(**(code **)((int)uVar6 + 0x18))" (( "(") (pointer_expression "**(code **)((int)uVar6 + 0x18)" (* "*") (pointer_expression "*(code **)((int)uVar6 + 0x18)" (* "*") (cast_expression "(code **)((int)uVar6 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)uVar6 + 0x18)" (( "(") (binary_expression "(int)uVar6 + 0x18" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(uVar6,extraout_ECX,param_1,0)" (( "(") (identifier "uVar6") (, ",") (identifier "extraout_ECX") (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

int __regparm3
function_1(type_1 *pVfs,char *zName,type_2 *var_1,int flags,int var_4)

{
  type_3 *psVar1;
  int iVar2;
  type_4 *p;
  type_5 var_2;
  type_6 *var_3;
  
  var_1->pMethods = (type_3 *)0x0;
  var_1[0xd].pMethods = (type_3 *)0x0;
  var_3 = (type_6 *)((type_5)(var_1 + 1) & 0xfffffffc);
  for (var_2 = (type_5)((int)var_1 + (0x38 - (int)((type_5)(var_1 + 1) & 0xfffffffc))) >> 2; var_2 != 0;
      var_2 = var_2 - 1) {
    *var_3 = 0;
    var_3 = var_3 + 1;
  }
  if (var_4 != 0) {
    psVar1 = (type_3 *)0x3fc;
    if (0 < var_4) {
      psVar1 = (type_3 *)var_4;
    }
    var_1[0xc].pMethods = (type_3 *)pVfs;
    var_1[0xd].pMethods = (type_3 *)zName;
    var_1[1].pMethods = psVar1;
    var_1->pMethods = &MemJournalMethods;
    var_1[2].pMethods = (type_3 *)var_4;
    var_1[0xb].pMethods = (type_3 *)flags;
    return 0;
  }
  iVar2 = (*pVfs->xOpen)(pVfs,zName,var_1,flags,(int *)0x0);
  return iVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))))) (for_statement initializer: (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))))))))) right: (number_literal))) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (string_literal (string_content)) right: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  int *extraout_ECX;
  uint uVar3;
  int unaff_EBP;
  undefined4 *puVar4;
  byte bVar5;
  undefined8 uVar6;
  
  bVar5 = 0;
  uVar6 = FUN_00036ac9();
  *extraout_ECX = 0;
  extraout_ECX[0xd] = 0;
  puVar4 = (undefined4 *)((uint)(extraout_ECX + 1) & 0xfffffffc);
  for (uVar3 = (uint)((int)extraout_ECX + (0x38 - (int)((uint)(extraout_ECX + 1) & 0xfffffffc))) >>
               2; uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar4 = 0;
    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
  }
  if (param_2 != 0) {
    iVar1 = 0x3fc;
    if (0 < param_2) {
      iVar1 = param_2;
    }
    *(undefined8 *)(extraout_ECX + 0xc) = uVar6;
    extraout_ECX[1] = iVar1;
    *extraout_ECX =
         (int)("sqlite3changeset_apply(): table %s has %d columns, expected %d or more" +
              unaff_EBP + 0x16);
    extraout_ECX[2] = param_2;
    extraout_ECX[0xb] = param_1;
    return 0;
  }
  uVar2 = (**(code **)((int)uVar6 + 0x18))(uVar6,extraout_ECX,param_1,0);
  return uVar2;
}

