
int __regparm3 apndWriteMark(ApndFile *p,sqlite3_file *pFile)

{
  int iVar1;
  sqlite3_int64 sVar2;
  byte bVar3;
  int iVar4;
  uint uVar5;
  byte *pbVar6;
  int in_GS_OFFSET;
  uchar a [25];
  
  uVar5 = 0x38;
  sVar2 = p->iPgOne;
  iVar4 = *(int *)((int)&p->iPgOne + 4);
  pbVar6 = a + 0x11;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  builtin_memcpy(a,"Start-Of-SQLite3-",0x11);
  do {
    bVar3 = (byte)uVar5 & 0x1f;
    bVar3 = (byte)((uint)sVar2 >> bVar3) | (byte)(iVar4 << 0x20 - bVar3);
    if ((uVar5 & 0x20) != 0) {
      bVar3 = (byte)(iVar4 >> ((byte)uVar5 & 0x1f));
    }
    uVar5 = uVar5 - 8;
    *pbVar6 = bVar3;
    pbVar6 = pbVar6 + 1;
  } while (uVar5 != 0xfffffff8);
  iVar4 = (*pFile->pMethods->xWrite)(pFile,a,0x19,p->iMark);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void __regparm3 FUN_000229d0(int param_1,int *param_2)

{
  uint uVar1;
  int iVar2;
  byte bVar3;
  uint uVar4;
  byte *pbVar5;
  int in_GS_OFFSET;
  undefined4 local_39;
  undefined4 local_35;
  undefined4 local_31;
  undefined4 local_2d;
  undefined1 local_29;
  byte local_28 [8];
  int local_20;
  
  uVar4 = 0x38;
  uVar1 = *(uint *)(param_1 + 4);
  iVar2 = *(int *)(param_1 + 8);
  pbVar5 = local_28;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_39 = 0x72617453;
  local_35 = 0x664f2d74;
  local_31 = 0x4c51532d;
  local_2d = 0x33657469;
  local_29 = 0x2d;
  do {
    bVar3 = (byte)uVar4 & 0x1f;
    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);
    if ((uVar4 & 0x20) != 0) {
      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));
    }
    uVar4 = uVar4 - 8;
    *pbVar5 = bVar3;
    pbVar5 = pbVar5 + 1;
  } while (uVar4 != 0xfffffff8);
  (**(code **)(*param_2 + 0xc))
            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}


PUSH EBP
MOV ECX,0x38
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x3c
MOV ESI,dword ptr [EBX + 0x4]
MOV EDI,dword ptr [EBX + 0x8]
MOV dword ptr [ESP + 0xc],EDX
LEA EBP,[ESP + 0x24]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x13],0x72617453
MOV dword ptr [ESP + 0x17],0x664f2d74
MOV dword ptr [ESP + 0x1b],0x4c51532d
MOV dword ptr [ESP + 0x1f],0x33657469
MOV byte ptr [ESP + 0x23],0x2d
LEA ESI,[ESI]
MOV EDX,EDI
MOV EAX,ESI
SHRD EAX,EDX,CL
SAR EDX,CL
TEST CL,0x20
JZ 0x00022a30
MOV EAX,EDX
SUB ECX,0x8
MOV byte ptr [EBP],AL
ADD EBP,0x1
CMP ECX,-0x8
JNZ 0x00022a20
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EDI]
PUSH dword ptr [EBX + 0x10]
PUSH dword ptr [EBX + 0xc]
PUSH 0x19
LEA EDX,[ESP + 0x2b]
PUSH EDX
PUSH EDI
CALL dword ptr [EAX + 0xc]
ADD ESP,0x20
MOV EDI,dword ptr [ESP + 0x2c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x00022a70
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00116110
(translation_unit "void __regparm3 FUN_000229d0(int param_1,int *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  int in_GS_OFFSET;\n  undefined4 local_39;\n  undefined4 local_35;\n  undefined4 local_31;\n  undefined4 local_2d;\n  undefined1 local_29;\n  byte local_28 [8];\n  int local_20;\n  \n  uVar4 = 0x38;\n  uVar1 = *(uint *)(param_1 + 4);\n  iVar2 = *(int *)(param_1 + 8);\n  pbVar5 = local_28;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_39 = 0x72617453;\n  local_35 = 0x664f2d74;\n  local_31 = 0x4c51532d;\n  local_2d = 0x33657469;\n  local_29 = 0x2d;\n  do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);\n  (**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}\n\n" (function_definition "void __regparm3 FUN_000229d0(int param_1,int *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  int in_GS_OFFSET;\n  undefined4 local_39;\n  undefined4 local_35;\n  undefined4 local_31;\n  undefined4 local_2d;\n  undefined1 local_29;\n  byte local_28 [8];\n  int local_20;\n  \n  uVar4 = 0x38;\n  uVar1 = *(uint *)(param_1 + 4);\n  iVar2 = *(int *)(param_1 + 8);\n  pbVar5 = local_28;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_39 = 0x72617453;\n  local_35 = 0x664f2d74;\n  local_31 = 0x4c51532d;\n  local_2d = 0x33657469;\n  local_29 = 0x2d;\n  do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);\n  (**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000229d0(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 (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  int in_GS_OFFSET;\n  undefined4 local_39;\n  undefined4 local_35;\n  undefined4 local_31;\n  undefined4 local_2d;\n  undefined1 local_29;\n  byte local_28 [8];\n  int local_20;\n  \n  uVar4 = 0x38;\n  uVar1 = *(uint *)(param_1 + 4);\n  iVar2 = *(int *)(param_1 + 8);\n  pbVar5 = local_28;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_39 = 0x72617453;\n  local_35 = 0x664f2d74;\n  local_31 = 0x4c51532d;\n  local_2d = 0x33657469;\n  local_29 = 0x2d;\n  do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);\n  (**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_39;" type_identifier identifier ;) (declaration "undefined4 local_35;" type_identifier identifier ;) (declaration "undefined4 local_31;" type_identifier identifier ;) (declaration "undefined4 local_2d;" type_identifier identifier ;) (declaration "undefined1 local_29;" type_identifier identifier ;) (declaration "byte local_28 [8];" type_identifier (array_declarator "local_28 [8]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar4 = 0x38;" (assignment_expression "uVar4 = 0x38" identifier = number_literal) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 4);" (assignment_expression "uVar1 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pbVar5 = local_28;" (assignment_expression "pbVar5 = local_28" identifier = identifier) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_39 = 0x72617453;" (assignment_expression "local_39 = 0x72617453" identifier = number_literal) ;) (expression_statement "local_35 = 0x664f2d74;" (assignment_expression "local_35 = 0x664f2d74" identifier = number_literal) ;) (expression_statement "local_31 = 0x4c51532d;" (assignment_expression "local_31 = 0x4c51532d" identifier = number_literal) ;) (expression_statement "local_2d = 0x33657469;" (assignment_expression "local_2d = 0x33657469" identifier = number_literal) ;) (expression_statement "local_29 = 0x2d;" (assignment_expression "local_29 = 0x2d" identifier = number_literal) ;) (do_statement "do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);" do (compound_statement "{\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  }" { (expression_statement "bVar3 = (byte)uVar4 & 0x1f;" (assignment_expression "bVar3 = (byte)uVar4 & 0x1f" identifier = (binary_expression "(byte)uVar4 & 0x1f" (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);" (assignment_expression "bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3)" identifier = (binary_expression "(byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3)" (call_expression "(byte)(uVar1 >> bVar3)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 >> bVar3)" ( (binary_expression "uVar1 >> bVar3" identifier >> identifier) ))) | (call_expression "(byte)(iVar2 << 0x20 - bVar3)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(iVar2 << 0x20 - bVar3)" ( (binary_expression "iVar2 << 0x20 - bVar3" identifier << (binary_expression "0x20 - bVar3" number_literal - identifier)) ))))) ;) (if_statement "if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }" if (parenthesized_expression "((uVar4 & 0x20) != 0)" ( (binary_expression "(uVar4 & 0x20) != 0" (parenthesized_expression "(uVar4 & 0x20)" ( (binary_expression "uVar4 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }" { (expression_statement "bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));" (assignment_expression "bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f))" identifier = (call_expression "(byte)(iVar2 >> ((byte)uVar4 & 0x1f))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(iVar2 >> ((byte)uVar4 & 0x1f))" ( (binary_expression "iVar2 >> ((byte)uVar4 & 0x1f)" identifier >> (parenthesized_expression "((byte)uVar4 & 0x1f)" ( (binary_expression "(byte)uVar4 & 0x1f" (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )))) ;) })) (expression_statement "uVar4 = uVar4 - 8;" (assignment_expression "uVar4 = uVar4 - 8" identifier = (binary_expression "uVar4 - 8" identifier - number_literal)) ;) (expression_statement "*pbVar5 = bVar3;" (assignment_expression "*pbVar5 = bVar3" (pointer_expression "*pbVar5" * identifier) = identifier) ;) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 != 0xfffffff8)" ( (binary_expression "uVar4 != 0xfffffff8" identifier != number_literal) )) ;) (expression_statement "(**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));" (call_expression "(**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10))" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" ( (pointer_expression "**(code **)(*param_2 + 0xc)" * (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10))" ( identifier , (pointer_expression "&local_39" & identifier) , number_literal , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 apndWriteMark(ApndFile *p,sqlite3_file *pFile)\n\n{\n  int iVar1;\n  sqlite3_int64 sVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  uchar a [25];\n  \n  uVar5 = 0x38;\n  sVar2 = p->iPgOne;\n  iVar4 = *(int *)((int)&p->iPgOne + 4);\n  pbVar6 = a + 0x11;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  builtin_memcpy(a,"Start-Of-SQLite3-",0x11);\n  do {\n    bVar3 = (byte)uVar5 & 0x1f;\n    bVar3 = (byte)((uint)sVar2 >> bVar3) | (byte)(iVar4 << 0x20 - bVar3);\n    if ((uVar5 & 0x20) != 0) {\n      bVar3 = (byte)(iVar4 >> ((byte)uVar5 & 0x1f));\n    }\n    uVar5 = uVar5 - 8;\n    *pbVar6 = bVar3;\n    pbVar6 = pbVar6 + 1;\n  } while (uVar5 != 0xfffffff8);\n  iVar4 = (*pFile->pMethods->xWrite)(pFile,a,0x19,p->iMark);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" (function_definition "int __regparm3 apndWriteMark(ApndFile *p,sqlite3_file *pFile)\n\n{\n  int iVar1;\n  sqlite3_int64 sVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  uchar a [25];\n  \n  uVar5 = 0x38;\n  sVar2 = p->iPgOne;\n  iVar4 = *(int *)((int)&p->iPgOne + 4);\n  pbVar6 = a + 0x11;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  builtin_memcpy(a,"Start-Of-SQLite3-",0x11);\n  do {\n    bVar3 = (byte)uVar5 & 0x1f;\n    bVar3 = (byte)((uint)sVar2 >> bVar3) | (byte)(iVar4 << 0x20 - bVar3);\n    if ((uVar5 & 0x20) != 0) {\n      bVar3 = (byte)(iVar4 >> ((byte)uVar5 & 0x1f));\n    }\n    uVar5 = uVar5 - 8;\n    *pbVar6 = bVar3;\n    pbVar6 = pbVar6 + 1;\n  } while (uVar5 != 0xfffffff8);\n  iVar4 = (*pFile->pMethods->xWrite)(pFile,a,0x19,p->iMark);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "apndWriteMark(ApndFile *p,sqlite3_file *pFile)" identifier (parameter_list "(ApndFile *p,sqlite3_file *pFile)" ( (parameter_declaration "ApndFile *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "sqlite3_file *pFile" type_identifier (pointer_declarator "*pFile" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  sqlite3_int64 sVar2;\n  byte bVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  uchar a [25];\n  \n  uVar5 = 0x38;\n  sVar2 = p->iPgOne;\n  iVar4 = *(int *)((int)&p->iPgOne + 4);\n  pbVar6 = a + 0x11;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  builtin_memcpy(a,"Start-Of-SQLite3-",0x11);\n  do {\n    bVar3 = (byte)uVar5 & 0x1f;\n    bVar3 = (byte)((uint)sVar2 >> bVar3) | (byte)(iVar4 << 0x20 - bVar3);\n    if ((uVar5 & 0x20) != 0) {\n      bVar3 = (byte)(iVar4 >> ((byte)uVar5 & 0x1f));\n    }\n    uVar5 = uVar5 - 8;\n    *pbVar6 = bVar3;\n    pbVar6 = pbVar6 + 1;\n  } while (uVar5 != 0xfffffff8);\n  iVar4 = (*pFile->pMethods->xWrite)(pFile,a,0x19,p->iMark);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_int64 sVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar a [25];" type_identifier (array_declarator "a [25]" identifier [ number_literal ]) ;) (expression_statement "uVar5 = 0x38;" (assignment_expression "uVar5 = 0x38" identifier = number_literal) ;) (expression_statement "sVar2 = p->iPgOne;" (assignment_expression "sVar2 = p->iPgOne" identifier = (field_expression "p->iPgOne" identifier -> field_identifier)) ;) (expression_statement "iVar4 = *(int *)((int)&p->iPgOne + 4);" (assignment_expression "iVar4 = *(int *)((int)&p->iPgOne + 4)" identifier = (pointer_expression "*(int *)((int)&p->iPgOne + 4)" * (cast_expression "(int *)((int)&p->iPgOne + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->iPgOne + 4)" ( (binary_expression "(int)&p->iPgOne + 4" (cast_expression "(int)&p->iPgOne" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->iPgOne" & (field_expression "p->iPgOne" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "pbVar6 = a + 0x11;" (assignment_expression "pbVar6 = a + 0x11" identifier = (binary_expression "a + 0x11" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "builtin_memcpy(a,"Start-Of-SQLite3-",0x11);" (call_expression "builtin_memcpy(a,"Start-Of-SQLite3-",0x11)" identifier (argument_list "(a,"Start-Of-SQLite3-",0x11)" ( identifier , (string_literal ""Start-Of-SQLite3-"" " string_content ") , number_literal ))) ;) (do_statement "do {\n    bVar3 = (byte)uVar5 & 0x1f;\n    bVar3 = (byte)((uint)sVar2 >> bVar3) | (byte)(iVar4 << 0x20 - bVar3);\n    if ((uVar5 & 0x20) != 0) {\n      bVar3 = (byte)(iVar4 >> ((byte)uVar5 & 0x1f));\n    }\n    uVar5 = uVar5 - 8;\n    *pbVar6 = bVar3;\n    pbVar6 = pbVar6 + 1;\n  } while (uVar5 != 0xfffffff8);" do (compound_statement "{\n    bVar3 = (byte)uVar5 & 0x1f;\n    bVar3 = (byte)((uint)sVar2 >> bVar3) | (byte)(iVar4 << 0x20 - bVar3);\n    if ((uVar5 & 0x20) != 0) {\n      bVar3 = (byte)(iVar4 >> ((byte)uVar5 & 0x1f));\n    }\n    uVar5 = uVar5 - 8;\n    *pbVar6 = bVar3;\n    pbVar6 = pbVar6 + 1;\n  }" { (expression_statement "bVar3 = (byte)uVar5 & 0x1f;" (assignment_expression "bVar3 = (byte)uVar5 & 0x1f" identifier = (binary_expression "(byte)uVar5 & 0x1f" (cast_expression "(byte)uVar5" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "bVar3 = (byte)((uint)sVar2 >> bVar3) | (byte)(iVar4 << 0x20 - bVar3);" (assignment_expression "bVar3 = (byte)((uint)sVar2 >> bVar3) | (byte)(iVar4 << 0x20 - bVar3)" identifier = (binary_expression "(byte)((uint)sVar2 >> bVar3) | (byte)(iVar4 << 0x20 - bVar3)" (call_expression "(byte)((uint)sVar2 >> bVar3)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)sVar2 >> bVar3)" ( (binary_expression "(uint)sVar2 >> bVar3" (cast_expression "(uint)sVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> identifier) ))) | (call_expression "(byte)(iVar4 << 0x20 - bVar3)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(iVar4 << 0x20 - bVar3)" ( (binary_expression "iVar4 << 0x20 - bVar3" identifier << (binary_expression "0x20 - bVar3" number_literal - identifier)) ))))) ;) (if_statement "if ((uVar5 & 0x20) != 0) {\n      bVar3 = (byte)(iVar4 >> ((byte)uVar5 & 0x1f));\n    }" if (parenthesized_expression "((uVar5 & 0x20) != 0)" ( (binary_expression "(uVar5 & 0x20) != 0" (parenthesized_expression "(uVar5 & 0x20)" ( (binary_expression "uVar5 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      bVar3 = (byte)(iVar4 >> ((byte)uVar5 & 0x1f));\n    }" { (expression_statement "bVar3 = (byte)(iVar4 >> ((byte)uVar5 & 0x1f));" (assignment_expression "bVar3 = (byte)(iVar4 >> ((byte)uVar5 & 0x1f))" identifier = (call_expression "(byte)(iVar4 >> ((byte)uVar5 & 0x1f))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(iVar4 >> ((byte)uVar5 & 0x1f))" ( (binary_expression "iVar4 >> ((byte)uVar5 & 0x1f)" identifier >> (parenthesized_expression "((byte)uVar5 & 0x1f)" ( (binary_expression "(byte)uVar5 & 0x1f" (cast_expression "(byte)uVar5" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )))) ;) })) (expression_statement "uVar5 = uVar5 - 8;" (assignment_expression "uVar5 = uVar5 - 8" identifier = (binary_expression "uVar5 - 8" identifier - number_literal)) ;) (expression_statement "*pbVar6 = bVar3;" (assignment_expression "*pbVar6 = bVar3" (pointer_expression "*pbVar6" * identifier) = identifier) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 != 0xfffffff8)" ( (binary_expression "uVar5 != 0xfffffff8" identifier != number_literal) )) ;) (expression_statement "iVar4 = (*pFile->pMethods->xWrite)(pFile,a,0x19,p->iMark);" (assignment_expression "iVar4 = (*pFile->pMethods->xWrite)(pFile,a,0x19,p->iMark)" identifier = (call_expression "(*pFile->pMethods->xWrite)(pFile,a,0x19,p->iMark)" (parenthesized_expression "(*pFile->pMethods->xWrite)" ( (pointer_expression "*pFile->pMethods->xWrite" * (field_expression "pFile->pMethods->xWrite" (field_expression "pFile->pMethods" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(pFile,a,0x19,p->iMark)" ( identifier , identifier , number_literal , (field_expression "p->iMark" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3 FUN_000229d0(int param_1,int *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  int in_GS_OFFSET;\n  undefined4 local_39;\n  undefined4 local_35;\n  undefined4 local_31;\n  undefined4 local_2d;\n  undefined1 local_29;\n  byte local_28 [8];\n  int local_20;\n  \n  uVar4 = 0x38;\n  uVar1 = *(uint *)(param_1 + 4);\n  iVar2 = *(int *)(param_1 + 8);\n  pbVar5 = local_28;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_39 = 0x72617453;\n  local_35 = 0x664f2d74;\n  local_31 = 0x4c51532d;\n  local_2d = 0x33657469;\n  local_29 = 0x2d;\n  do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);\n  (**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}\n\n" (function_definition "void __regparm3 FUN_000229d0(int param_1,int *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  int in_GS_OFFSET;\n  undefined4 local_39;\n  undefined4 local_35;\n  undefined4 local_31;\n  undefined4 local_2d;\n  undefined1 local_29;\n  byte local_28 [8];\n  int local_20;\n  \n  uVar4 = 0x38;\n  uVar1 = *(uint *)(param_1 + 4);\n  iVar2 = *(int *)(param_1 + 8);\n  pbVar5 = local_28;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_39 = 0x72617453;\n  local_35 = 0x664f2d74;\n  local_31 = 0x4c51532d;\n  local_2d = 0x33657469;\n  local_29 = 0x2d;\n  do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);\n  (**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000229d0(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 (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  int in_GS_OFFSET;\n  undefined4 local_39;\n  undefined4 local_35;\n  undefined4 local_31;\n  undefined4 local_2d;\n  undefined1 local_29;\n  byte local_28 [8];\n  int local_20;\n  \n  uVar4 = 0x38;\n  uVar1 = *(uint *)(param_1 + 4);\n  iVar2 = *(int *)(param_1 + 8);\n  pbVar5 = local_28;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_39 = 0x72617453;\n  local_35 = 0x664f2d74;\n  local_31 = 0x4c51532d;\n  local_2d = 0x33657469;\n  local_29 = 0x2d;\n  do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);\n  (**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_39;" type_identifier identifier ;) (declaration "undefined4 local_35;" type_identifier identifier ;) (declaration "undefined4 local_31;" type_identifier identifier ;) (declaration "undefined4 local_2d;" type_identifier identifier ;) (declaration "undefined1 local_29;" type_identifier identifier ;) (declaration "byte local_28 [8];" type_identifier (array_declarator "local_28 [8]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar4 = 0x38;" (assignment_expression "uVar4 = 0x38" identifier = number_literal) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 4);" (assignment_expression "uVar1 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pbVar5 = local_28;" (assignment_expression "pbVar5 = local_28" identifier = identifier) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_39 = 0x72617453;" (assignment_expression "local_39 = 0x72617453" identifier = number_literal) ;) (expression_statement "local_35 = 0x664f2d74;" (assignment_expression "local_35 = 0x664f2d74" identifier = number_literal) ;) (expression_statement "local_31 = 0x4c51532d;" (assignment_expression "local_31 = 0x4c51532d" identifier = number_literal) ;) (expression_statement "local_2d = 0x33657469;" (assignment_expression "local_2d = 0x33657469" identifier = number_literal) ;) (expression_statement "local_29 = 0x2d;" (assignment_expression "local_29 = 0x2d" identifier = number_literal) ;) (do_statement "do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);" do (compound_statement "{\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  }" { (expression_statement "bVar3 = (byte)uVar4 & 0x1f;" (assignment_expression "bVar3 = (byte)uVar4 & 0x1f" identifier = (binary_expression "(byte)uVar4 & 0x1f" (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);" (assignment_expression "bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3)" identifier = (binary_expression "(byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3)" (call_expression "(byte)(uVar1 >> bVar3)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 >> bVar3)" ( (binary_expression "uVar1 >> bVar3" identifier >> identifier) ))) | (call_expression "(byte)(iVar2 << 0x20 - bVar3)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(iVar2 << 0x20 - bVar3)" ( (binary_expression "iVar2 << 0x20 - bVar3" identifier << (binary_expression "0x20 - bVar3" number_literal - identifier)) ))))) ;) (if_statement "if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }" if (parenthesized_expression "((uVar4 & 0x20) != 0)" ( (binary_expression "(uVar4 & 0x20) != 0" (parenthesized_expression "(uVar4 & 0x20)" ( (binary_expression "uVar4 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }" { (expression_statement "bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));" (assignment_expression "bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f))" identifier = (call_expression "(byte)(iVar2 >> ((byte)uVar4 & 0x1f))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(iVar2 >> ((byte)uVar4 & 0x1f))" ( (binary_expression "iVar2 >> ((byte)uVar4 & 0x1f)" identifier >> (parenthesized_expression "((byte)uVar4 & 0x1f)" ( (binary_expression "(byte)uVar4 & 0x1f" (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )))) ;) })) (expression_statement "uVar4 = uVar4 - 8;" (assignment_expression "uVar4 = uVar4 - 8" identifier = (binary_expression "uVar4 - 8" identifier - number_literal)) ;) (expression_statement "*pbVar5 = bVar3;" (assignment_expression "*pbVar5 = bVar3" (pointer_expression "*pbVar5" * identifier) = identifier) ;) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 != 0xfffffff8)" ( (binary_expression "uVar4 != 0xfffffff8" identifier != number_literal) )) ;) (expression_statement "(**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));" (call_expression "(**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10))" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" ( (pointer_expression "**(code **)(*param_2 + 0xc)" * (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10))" ( identifier , (pointer_expression "&local_39" & identifier) , number_literal , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> IDENT) ))) | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT << (binary_expression LIT - IDENT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , (pointer_expression & IDENT) , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 FUN_000229d0(int param_1,int *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  int in_GS_OFFSET;\n  undefined4 local_39;\n  undefined4 local_35;\n  undefined4 local_31;\n  undefined4 local_2d;\n  undefined1 local_29;\n  byte local_28 [8];\n  int local_20;\n  \n  uVar4 = 0x38;\n  uVar1 = *(uint *)(param_1 + 4);\n  iVar2 = *(int *)(param_1 + 8);\n  pbVar5 = local_28;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_39 = 0x72617453;\n  local_35 = 0x664f2d74;\n  local_31 = 0x4c51532d;\n  local_2d = 0x33657469;\n  local_29 = 0x2d;\n  do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);\n  (**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000229d0(int param_1,int *param_2)" (identifier "FUN_000229d0") (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") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  int in_GS_OFFSET;\n  undefined4 local_39;\n  undefined4 local_35;\n  undefined4 local_31;\n  undefined4 local_2d;\n  undefined1 local_29;\n  byte local_28 [8];\n  int local_20;\n  \n  uVar4 = 0x38;\n  uVar1 = *(uint *)(param_1 + 4);\n  iVar2 = *(int *)(param_1 + 8);\n  pbVar5 = local_28;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_39 = 0x72617453;\n  local_35 = 0x664f2d74;\n  local_31 = 0x4c51532d;\n  local_2d = 0x33657469;\n  local_29 = 0x2d;\n  do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);\n  (**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_39;" (type_identifier "undefined4") (identifier "local_39") (; ";")) (declaration "undefined4 local_35;" (type_identifier "undefined4") (identifier "local_35") (; ";")) (declaration "undefined4 local_31;" (type_identifier "undefined4") (identifier "local_31") (; ";")) (declaration "undefined4 local_2d;" (type_identifier "undefined4") (identifier "local_2d") (; ";")) (declaration "undefined1 local_29;" (type_identifier "undefined1") (identifier "local_29") (; ";")) (declaration "byte local_28 [8];" (type_identifier "byte") (array_declarator "local_28 [8]" (identifier "local_28") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "uVar4 = 0x38;" (assignment_expression "uVar4 = 0x38" (identifier "uVar4") (= "=") (number_literal "0x38")) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 4);" (assignment_expression "uVar1 = *(uint *)(param_1 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "pbVar5 = local_28;" (assignment_expression "pbVar5 = local_28" (identifier "pbVar5") (= "=") (identifier "local_28")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_39 = 0x72617453;" (assignment_expression "local_39 = 0x72617453" (identifier "local_39") (= "=") (number_literal "0x72617453")) (; ";")) (expression_statement "local_35 = 0x664f2d74;" (assignment_expression "local_35 = 0x664f2d74" (identifier "local_35") (= "=") (number_literal "0x664f2d74")) (; ";")) (expression_statement "local_31 = 0x4c51532d;" (assignment_expression "local_31 = 0x4c51532d" (identifier "local_31") (= "=") (number_literal "0x4c51532d")) (; ";")) (expression_statement "local_2d = 0x33657469;" (assignment_expression "local_2d = 0x33657469" (identifier "local_2d") (= "=") (number_literal "0x33657469")) (; ";")) (expression_statement "local_29 = 0x2d;" (assignment_expression "local_29 = 0x2d" (identifier "local_29") (= "=") (number_literal "0x2d")) (; ";")) (do_statement "do {\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  } while (uVar4 != 0xfffffff8);" (do "do") (compound_statement "{\n    bVar3 = (byte)uVar4 & 0x1f;\n    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);\n    if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }\n    uVar4 = uVar4 - 8;\n    *pbVar5 = bVar3;\n    pbVar5 = pbVar5 + 1;\n  }" ({ "{") (expression_statement "bVar3 = (byte)uVar4 & 0x1f;" (assignment_expression "bVar3 = (byte)uVar4 & 0x1f" (identifier "bVar3") (= "=") (binary_expression "(byte)uVar4 & 0x1f" (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4")) (& "&") (number_literal "0x1f"))) (; ";")) (expression_statement "bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);" (assignment_expression "bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3)" (identifier "bVar3") (= "=") (binary_expression "(byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3)" (call_expression "(byte)(uVar1 >> bVar3)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar1 >> bVar3)" (( "(") (binary_expression "uVar1 >> bVar3" (identifier "uVar1") (>> ">>") (identifier "bVar3")) () ")"))) (| "|") (call_expression "(byte)(iVar2 << 0x20 - bVar3)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(iVar2 << 0x20 - bVar3)" (( "(") (binary_expression "iVar2 << 0x20 - bVar3" (identifier "iVar2") (<< "<<") (binary_expression "0x20 - bVar3" (number_literal "0x20") (- "-") (identifier "bVar3"))) () ")"))))) (; ";")) (if_statement "if ((uVar4 & 0x20) != 0) {\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }" (if "if") (parenthesized_expression "((uVar4 & 0x20) != 0)" (( "(") (binary_expression "(uVar4 & 0x20) != 0" (parenthesized_expression "(uVar4 & 0x20)" (( "(") (binary_expression "uVar4 & 0x20" (identifier "uVar4") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));\n    }" ({ "{") (expression_statement "bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));" (assignment_expression "bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f))" (identifier "bVar3") (= "=") (call_expression "(byte)(iVar2 >> ((byte)uVar4 & 0x1f))" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(iVar2 >> ((byte)uVar4 & 0x1f))" (( "(") (binary_expression "iVar2 >> ((byte)uVar4 & 0x1f)" (identifier "iVar2") (>> ">>") (parenthesized_expression "((byte)uVar4 & 0x1f)" (( "(") (binary_expression "(byte)uVar4 & 0x1f" (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4")) (& "&") (number_literal "0x1f")) () ")"))) () ")")))) (; ";")) (} "}"))) (expression_statement "uVar4 = uVar4 - 8;" (assignment_expression "uVar4 = uVar4 - 8" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 8" (identifier "uVar4") (- "-") (number_literal "8"))) (; ";")) (expression_statement "*pbVar5 = bVar3;" (assignment_expression "*pbVar5 = bVar3" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (= "=") (identifier "bVar3")) (; ";")) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 != 0xfffffff8)" (( "(") (binary_expression "uVar4 != 0xfffffff8" (identifier "uVar4") (!= "!=") (number_literal "0xfffffff8")) () ")")) (; ";")) (expression_statement "(**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));" (call_expression "(**(code **)(*param_2 + 0xc))\n            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10))" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" (( "(") (pointer_expression "**(code **)(*param_2 + 0xc)" (* "*") (pointer_expression "*(code **)(*param_2 + 0xc)" (* "*") (cast_expression "(code **)(*param_2 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0xc)" (( "(") (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10))" (( "(") (identifier "param_2") (, ",") (pointer_expression "&local_39" (& "&") (identifier "local_39")) (, ",") (number_literal "0x19") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int __regparm3 function_1(type_1 *p,type_2 *pFile)

{
  int var_8;
  type_3 sVar2;
  type_4 var_4;
  int var_5;
  type_5 var_6;
  type_4 *var_7;
  int var_2;
  type_6 var_1 [25];
  
  var_6 = 0x38;
  sVar2 = p->iPgOne;
  var_5 = *(int *)((int)&p->iPgOne + 4);
  var_7 = var_1 + 0x11;
  var_8 = *(int *)(var_2 + 0x14);
  var_3(var_1,"Start-Of-SQLite3-",0x11);
  do {
    var_4 = (type_4)var_6 & 0x1f;
    var_4 = (type_4)((type_5)sVar2 >> var_4) | (type_4)(var_5 << 0x20 - var_4);
    if ((var_6 & 0x20) != 0) {
      var_4 = (type_4)(var_5 >> ((type_4)var_6 & 0x1f));
    }
    var_6 = var_6 - 8;
    *var_7 = var_4;
    var_7 = var_7 + 1;
  } while (var_6 != 0xfffffff8);
  var_5 = (*pFile->pMethods->xWrite)(pFile,var_1,0x19,p->iMark);
  if (var_8 == *(int *)(var_2 + 0x14)) {
    return var_5;
  }
                    /* WARNING: Subroutine does not return */
  var_9();
}


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

void __regparm3 MASKED(int param_1,int *param_2)

{
  uint uVar1;
  int iVar2;
  byte bVar3;
  uint uVar4;
  byte *pbVar5;
  int in_GS_OFFSET;
  undefined4 local_39;
  undefined4 local_35;
  undefined4 local_31;
  undefined4 local_2d;
  undefined1 local_29;
  byte local_28 [8];
  int local_20;
  
  uVar4 = 0x38;
  uVar1 = *(uint *)(param_1 + 4);
  iVar2 = *(int *)(param_1 + 8);
  pbVar5 = local_28;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_39 = 0x72617453;
  local_35 = 0x664f2d74;
  local_31 = 0x4c51532d;
  local_2d = 0x33657469;
  local_29 = 0x2d;
  do {
    bVar3 = (byte)uVar4 & 0x1f;
    bVar3 = (byte)(uVar1 >> bVar3) | (byte)(iVar2 << 0x20 - bVar3);
    if ((uVar4 & 0x20) != 0) {
      bVar3 = (byte)(iVar2 >> ((byte)uVar4 & 0x1f));
    }
    uVar4 = uVar4 - 8;
    *pbVar5 = bVar3;
    pbVar5 = pbVar5 + 1;
  } while (uVar4 != 0xfffffff8);
  (**(code **)(*param_2 + 0xc))
            (param_2,&local_39,0x19,*(undefined4 *)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x10));
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}

