
int __regparm3 fts5StorageSaveTotals(Fts5Storage *p)

{
  i64 *piVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  Fts5Index *p_00;
  int iVar5;
  int in_GS_OFFSET;
  int rc;
  Fts5Buffer buf;
  
  iVar5 = 0;
  iVar3 = *(int *)(in_GS_OFFSET + 0x14);
  rc = 0;
  buf.p = (u8 *)0x0;
  iVar4 = p->pConfig->nCol;
  buf.n = 0;
  buf.nSpace = 0;
  sqlite3Fts5BufferAppendVarint(&rc,&buf,p->nTotalRow);
  if (0 < iVar4) {
    do {
      iVar2 = iVar5 * 8;
      piVar1 = p->aTotalSize + iVar5;
      iVar5 = iVar5 + 1;
      sqlite3Fts5BufferAppendVarint
                (&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1));
    } while (iVar4 != iVar5);
  }
  if (rc == 0) {
    p_00 = p->pIndex;
    fts5DataWrite(p_00,CONCAT44(buf.n,buf.p),(u8 *)0x1,0);
    rc = p_00->rc;
    p_00->rc = 0;
  }
  sqlite3_free(buf.p);
  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {
    return rc;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



undefined4 __regparm3 FUN_000ea320(int *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  int in_GS_OFFSET;
  
  iVar6 = 0;
  iVar3 = *(int *)(in_GS_OFFSET + 0x14);
  iVar4 = *(int *)(*param_1 + 0xc);
  FUN_00087710(param_1[3],param_1[4]);
  if (0 < iVar4) {
    do {
      iVar2 = iVar6 * 8;
      iVar1 = iVar6 * 8;
      iVar6 = iVar6 + 1;
      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));
    } while (iVar4 != iVar6);
  }
  iVar4 = param_1[1];
  FUN_000ea240(0,0);
  uVar5 = *(undefined4 *)(iVar4 + 0x20);
  *(undefined4 *)(iVar4 + 0x20) = 0;
  FUN_00042800(0);
  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return uVar5;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
XOR EBX,EBX
SUB ESP,0x3c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESP + 0x1c],0x0
LEA EBP,[ESP + 0x20]
MOV dword ptr [ESP + 0x20],0x0
MOV EDX,EBP
MOV ESI,dword ptr [EAX + 0xc]
LEA EAX,[ESP + 0x1c]
SUB ESP,0x8
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x14],EAX
PUSH dword ptr [EDI + 0x10]
PUSH dword ptr [EDI + 0xc]
CALL 0x00087710
ADD ESP,0x10
TEST ESI,ESI
JLE 0x000ea3a2
NOP
MOV EAX,dword ptr [EDI + 0x14]
SUB ESP,0x8
MOV EDX,EBP
PUSH dword ptr [EAX + EBX*0x8 + 0x4]
PUSH dword ptr [EAX + EBX*0x8]
ADD EBX,0x1
MOV EAX,dword ptr [ESP + 0x1c]
CALL 0x00087710
ADD ESP,0x10
CMP ESI,EBX
JNZ 0x000ea380
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x20]
TEST EDX,EDX
JZ 0x000ea3d8
SUB ESP,0xc
PUSH EAX
CALL 0x00042800
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
MOV ECX,dword ptr [ESP + 0x2c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x000ea408
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
MOV EBX,dword ptr [EDI + 0x4]
MOV EDX,0x1
XOR ECX,ECX
PUSH dword ptr [ESP + 0x2c]
PUSH EAX
MOV EAX,EBX
CALL 0x000ea240
MOV EAX,dword ptr [EBX + 0x20]
MOV dword ptr [EBX + 0x20],0x0
MOV dword ptr [ESP + 0x2c],EAX
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x10
JMP 0x000ea3ae
CALL 0x00116110
(translation_unit "undefined4 __regparm3 FUN_000ea320(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  \n  iVar6 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(*param_1 + 0xc);\n  FUN_00087710(param_1[3],param_1[4]);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }\n  iVar4 = param_1[1];\n  FUN_000ea240(0,0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x20);\n  *(undefined4 *)(iVar4 + 0x20) = 0;\n  FUN_00042800(0);\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return uVar5;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000ea320(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  \n  iVar6 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(*param_1 + 0xc);\n  FUN_00087710(param_1[3],param_1[4]);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }\n  iVar4 = param_1[1];\n  FUN_000ea240(0,0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x20);\n  *(undefined4 *)(iVar4 + 0x20) = 0;\n  FUN_00042800(0);\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return uVar5;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000ea320(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  \n  iVar6 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(*param_1 + 0xc);\n  FUN_00087710(param_1[3],param_1[4]);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }\n  iVar4 = param_1[1];\n  FUN_000ea240(0,0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x20);\n  *(undefined4 *)(iVar4 + 0x20) = 0;\n  FUN_00042800(0);\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return uVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(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 "iVar4 = *(int *)(*param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(*param_1 + 0xc)" identifier = (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "FUN_00087710(param_1[3],param_1[4]);" (call_expression "FUN_00087710(param_1[3],param_1[4])" identifier (argument_list "(param_1[3],param_1[4])" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (if_statement "if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }" { (do_statement "do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);" do (compound_statement "{\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    }" { (expression_statement "iVar2 = iVar6 * 8;" (assignment_expression "iVar2 = iVar6 * 8" identifier = (binary_expression "iVar6 * 8" identifier * number_literal)) ;) (expression_statement "iVar1 = iVar6 * 8;" (assignment_expression "iVar1 = iVar6 * 8" identifier = (binary_expression "iVar6 * 8" identifier * number_literal)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));" (call_expression "FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2))" identifier (argument_list "(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2))" ( (pointer_expression "*(undefined4 *)(param_1[5] + iVar1)" * (cast_expression "(undefined4 *)(param_1[5] + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + iVar1)" ( (binary_expression "param_1[5] + iVar1" (subscript_expression "param_1[5]" identifier [ number_literal ]) + identifier) )))) , (pointer_expression "*(undefined4 *)(param_1[5] + 4 + iVar2)" * (cast_expression "(undefined4 *)(param_1[5] + 4 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 4 + iVar2)" ( (binary_expression "param_1[5] + 4 + iVar2" (binary_expression "param_1[5] + 4" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) + identifier) )))) ))) ;) }) while (parenthesized_expression "(iVar4 != iVar6)" ( (binary_expression "iVar4 != iVar6" identifier != identifier) )) ;) })) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "FUN_000ea240(0,0);" (call_expression "FUN_000ea240(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar4 + 0x20);" (assignment_expression "uVar5 = *(undefined4 *)(iVar4 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 0x20)" * (cast_expression "(undefined4 *)(iVar4 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x20)" ( (binary_expression "iVar4 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x20)" * (cast_expression "(undefined4 *)(iVar4 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x20)" ( (binary_expression "iVar4 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00042800(0);" (call_expression "FUN_00042800(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (if_statement "if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" if (parenthesized_expression "(iVar3 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar3 != *(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                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" { comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "int __regparm3 fts5StorageSaveTotals(Fts5Storage *p)\n\n{\n  i64 *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  Fts5Index *p_00;\n  int iVar5;\n  int in_GS_OFFSET;\n  int rc;\n  Fts5Buffer buf;\n  \n  iVar5 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  rc = 0;\n  buf.p = (u8 *)0x0;\n  iVar4 = p->pConfig->nCol;\n  buf.n = 0;\n  buf.nSpace = 0;\n  sqlite3Fts5BufferAppendVarint(&rc,&buf,p->nTotalRow);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar5 * 8;\n      piVar1 = p->aTotalSize + iVar5;\n      iVar5 = iVar5 + 1;\n      sqlite3Fts5BufferAppendVarint\n                (&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1));\n    } while (iVar4 != iVar5);\n  }\n  if (rc == 0) {\n    p_00 = p->pIndex;\n    fts5DataWrite(p_00,CONCAT44(buf.n,buf.p),(u8 *)0x1,0);\n    rc = p_00->rc;\n    p_00->rc = 0;\n  }\n  sqlite3_free(buf.p);\n  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rc;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" (function_definition "int __regparm3 fts5StorageSaveTotals(Fts5Storage *p)\n\n{\n  i64 *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  Fts5Index *p_00;\n  int iVar5;\n  int in_GS_OFFSET;\n  int rc;\n  Fts5Buffer buf;\n  \n  iVar5 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  rc = 0;\n  buf.p = (u8 *)0x0;\n  iVar4 = p->pConfig->nCol;\n  buf.n = 0;\n  buf.nSpace = 0;\n  sqlite3Fts5BufferAppendVarint(&rc,&buf,p->nTotalRow);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar5 * 8;\n      piVar1 = p->aTotalSize + iVar5;\n      iVar5 = iVar5 + 1;\n      sqlite3Fts5BufferAppendVarint\n                (&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1));\n    } while (iVar4 != iVar5);\n  }\n  if (rc == 0) {\n    p_00 = p->pIndex;\n    fts5DataWrite(p_00,CONCAT44(buf.n,buf.p),(u8 *)0x1,0);\n    rc = p_00->rc;\n    p_00->rc = 0;\n  }\n  sqlite3_free(buf.p);\n  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rc;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "fts5StorageSaveTotals(Fts5Storage *p)" identifier (parameter_list "(Fts5Storage *p)" ( (parameter_declaration "Fts5Storage *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  i64 *piVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  Fts5Index *p_00;\n  int iVar5;\n  int in_GS_OFFSET;\n  int rc;\n  Fts5Buffer buf;\n  \n  iVar5 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  rc = 0;\n  buf.p = (u8 *)0x0;\n  iVar4 = p->pConfig->nCol;\n  buf.n = 0;\n  buf.nSpace = 0;\n  sqlite3Fts5BufferAppendVarint(&rc,&buf,p->nTotalRow);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar5 * 8;\n      piVar1 = p->aTotalSize + iVar5;\n      iVar5 = iVar5 + 1;\n      sqlite3Fts5BufferAppendVarint\n                (&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1));\n    } while (iVar4 != iVar5);\n  }\n  if (rc == 0) {\n    p_00 = p->pIndex;\n    fts5DataWrite(p_00,CONCAT44(buf.n,buf.p),(u8 *)0x1,0);\n    rc = p_00->rc;\n    p_00->rc = 0;\n  }\n  sqlite3_free(buf.p);\n  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rc;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "i64 *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Fts5Index *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int rc;" primitive_type identifier ;) (declaration "Fts5Buffer buf;" type_identifier identifier ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(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 "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) (expression_statement "buf.p = (u8 *)0x0;" (assignment_expression "buf.p = (u8 *)0x0" (field_expression "buf.p" identifier . field_identifier) = (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar4 = p->pConfig->nCol;" (assignment_expression "iVar4 = p->pConfig->nCol" identifier = (field_expression "p->pConfig->nCol" (field_expression "p->pConfig" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "buf.n = 0;" (assignment_expression "buf.n = 0" (field_expression "buf.n" identifier . field_identifier) = number_literal) ;) (expression_statement "buf.nSpace = 0;" (assignment_expression "buf.nSpace = 0" (field_expression "buf.nSpace" identifier . field_identifier) = number_literal) ;) (expression_statement "sqlite3Fts5BufferAppendVarint(&rc,&buf,p->nTotalRow);" (call_expression "sqlite3Fts5BufferAppendVarint(&rc,&buf,p->nTotalRow)" identifier (argument_list "(&rc,&buf,p->nTotalRow)" ( (pointer_expression "&rc" & identifier) , (pointer_expression "&buf" & identifier) , (field_expression "p->nTotalRow" identifier -> field_identifier) ))) ;) (if_statement "if (0 < iVar4) {\n    do {\n      iVar2 = iVar5 * 8;\n      piVar1 = p->aTotalSize + iVar5;\n      iVar5 = iVar5 + 1;\n      sqlite3Fts5BufferAppendVarint\n                (&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1));\n    } while (iVar4 != iVar5);\n  }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      iVar2 = iVar5 * 8;\n      piVar1 = p->aTotalSize + iVar5;\n      iVar5 = iVar5 + 1;\n      sqlite3Fts5BufferAppendVarint\n                (&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1));\n    } while (iVar4 != iVar5);\n  }" { (do_statement "do {\n      iVar2 = iVar5 * 8;\n      piVar1 = p->aTotalSize + iVar5;\n      iVar5 = iVar5 + 1;\n      sqlite3Fts5BufferAppendVarint\n                (&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1));\n    } while (iVar4 != iVar5);" do (compound_statement "{\n      iVar2 = iVar5 * 8;\n      piVar1 = p->aTotalSize + iVar5;\n      iVar5 = iVar5 + 1;\n      sqlite3Fts5BufferAppendVarint\n                (&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1));\n    }" { (expression_statement "iVar2 = iVar5 * 8;" (assignment_expression "iVar2 = iVar5 * 8" identifier = (binary_expression "iVar5 * 8" identifier * number_literal)) ;) (expression_statement "piVar1 = p->aTotalSize + iVar5;" (assignment_expression "piVar1 = p->aTotalSize + iVar5" identifier = (binary_expression "p->aTotalSize + iVar5" (field_expression "p->aTotalSize" identifier -> field_identifier) + identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "sqlite3Fts5BufferAppendVarint\n                (&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1));" (call_expression "sqlite3Fts5BufferAppendVarint\n                (&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1))" identifier (argument_list "(&rc,&buf,CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1))" ( (pointer_expression "&rc" & identifier) , (pointer_expression "&buf" & identifier) , (call_expression "CONCAT44(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1)" identifier (argument_list "(*(undefined4 *)((int)p->aTotalSize + iVar2 + 4),(int)*piVar1)" ( (pointer_expression "*(undefined4 *)((int)p->aTotalSize + iVar2 + 4)" * (cast_expression "(undefined4 *)((int)p->aTotalSize + iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p->aTotalSize + iVar2 + 4)" ( (binary_expression "(int)p->aTotalSize + iVar2 + 4" (binary_expression "(int)p->aTotalSize + iVar2" (cast_expression "(int)p->aTotalSize" ( (type_descriptor "int" primitive_type) ) (field_expression "p->aTotalSize" identifier -> field_identifier)) + identifier) + number_literal) )))) , (cast_expression "(int)*piVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*piVar1" * identifier)) ))) ))) ;) }) while (parenthesized_expression "(iVar4 != iVar5)" ( (binary_expression "iVar4 != iVar5" identifier != identifier) )) ;) })) (if_statement "if (rc == 0) {\n    p_00 = p->pIndex;\n    fts5DataWrite(p_00,CONCAT44(buf.n,buf.p),(u8 *)0x1,0);\n    rc = p_00->rc;\n    p_00->rc = 0;\n  }" if (parenthesized_expression "(rc == 0)" ( (binary_expression "rc == 0" identifier == number_literal) )) (compound_statement "{\n    p_00 = p->pIndex;\n    fts5DataWrite(p_00,CONCAT44(buf.n,buf.p),(u8 *)0x1,0);\n    rc = p_00->rc;\n    p_00->rc = 0;\n  }" { (expression_statement "p_00 = p->pIndex;" (assignment_expression "p_00 = p->pIndex" identifier = (field_expression "p->pIndex" identifier -> field_identifier)) ;) (expression_statement "fts5DataWrite(p_00,CONCAT44(buf.n,buf.p),(u8 *)0x1,0);" (call_expression "fts5DataWrite(p_00,CONCAT44(buf.n,buf.p),(u8 *)0x1,0)" identifier (argument_list "(p_00,CONCAT44(buf.n,buf.p),(u8 *)0x1,0)" ( identifier , (call_expression "CONCAT44(buf.n,buf.p)" identifier (argument_list "(buf.n,buf.p)" ( (field_expression "buf.n" identifier . field_identifier) , (field_expression "buf.p" identifier . field_identifier) ))) , (cast_expression "(u8 *)0x1" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;) (expression_statement "rc = p_00->rc;" (assignment_expression "rc = p_00->rc" identifier = (field_expression "p_00->rc" identifier -> field_identifier)) ;) (expression_statement "p_00->rc = 0;" (assignment_expression "p_00->rc = 0" (field_expression "p_00->rc" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "sqlite3_free(buf.p);" (call_expression "sqlite3_free(buf.p)" identifier (argument_list "(buf.p)" ( (field_expression "buf.p" identifier . field_identifier) ))) ;) (if_statement "if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return rc;\n  }" if (parenthesized_expression "(iVar3 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar3 == *(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 rc;\n  }" { (return_statement "return rc;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 __regparm3 FUN_000ea320(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  \n  iVar6 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(*param_1 + 0xc);\n  FUN_00087710(param_1[3],param_1[4]);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }\n  iVar4 = param_1[1];\n  FUN_000ea240(0,0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x20);\n  *(undefined4 *)(iVar4 + 0x20) = 0;\n  FUN_00042800(0);\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return uVar5;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000ea320(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  \n  iVar6 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(*param_1 + 0xc);\n  FUN_00087710(param_1[3],param_1[4]);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }\n  iVar4 = param_1[1];\n  FUN_000ea240(0,0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x20);\n  *(undefined4 *)(iVar4 + 0x20) = 0;\n  FUN_00042800(0);\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return uVar5;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000ea320(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  \n  iVar6 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(*param_1 + 0xc);\n  FUN_00087710(param_1[3],param_1[4]);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }\n  iVar4 = param_1[1];\n  FUN_000ea240(0,0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x20);\n  *(undefined4 *)(iVar4 + 0x20) = 0;\n  FUN_00042800(0);\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return uVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(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 "iVar4 = *(int *)(*param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(*param_1 + 0xc)" identifier = (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "FUN_00087710(param_1[3],param_1[4]);" (call_expression "FUN_00087710(param_1[3],param_1[4])" identifier (argument_list "(param_1[3],param_1[4])" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (if_statement "if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }" { (do_statement "do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);" do (compound_statement "{\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    }" { (expression_statement "iVar2 = iVar6 * 8;" (assignment_expression "iVar2 = iVar6 * 8" identifier = (binary_expression "iVar6 * 8" identifier * number_literal)) ;) (expression_statement "iVar1 = iVar6 * 8;" (assignment_expression "iVar1 = iVar6 * 8" identifier = (binary_expression "iVar6 * 8" identifier * number_literal)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));" (call_expression "FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2))" identifier (argument_list "(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2))" ( (pointer_expression "*(undefined4 *)(param_1[5] + iVar1)" * (cast_expression "(undefined4 *)(param_1[5] + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + iVar1)" ( (binary_expression "param_1[5] + iVar1" (subscript_expression "param_1[5]" identifier [ number_literal ]) + identifier) )))) , (pointer_expression "*(undefined4 *)(param_1[5] + 4 + iVar2)" * (cast_expression "(undefined4 *)(param_1[5] + 4 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 4 + iVar2)" ( (binary_expression "param_1[5] + 4 + iVar2" (binary_expression "param_1[5] + 4" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) + identifier) )))) ))) ;) }) while (parenthesized_expression "(iVar4 != iVar6)" ( (binary_expression "iVar4 != iVar6" identifier != identifier) )) ;) })) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "FUN_000ea240(0,0);" (call_expression "FUN_000ea240(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar4 + 0x20);" (assignment_expression "uVar5 = *(undefined4 *)(iVar4 + 0x20)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 0x20)" * (cast_expression "(undefined4 *)(iVar4 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x20)" ( (binary_expression "iVar4 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x20)" * (cast_expression "(undefined4 *)(iVar4 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x20)" ( (binary_expression "iVar4 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00042800(0);" (call_expression "FUN_00042800(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (if_statement "if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" if (parenthesized_expression "(iVar3 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar3 != *(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                    \n    FUN_00116110();\n  }" { (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) )))) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( 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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_000ea320(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  \n  iVar6 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(*param_1 + 0xc);\n  FUN_00087710(param_1[3],param_1[4]);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }\n  iVar4 = param_1[1];\n  FUN_000ea240(0,0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x20);\n  *(undefined4 *)(iVar4 + 0x20) = 0;\n  FUN_00042800(0);\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return uVar5;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000ea320(int *param_1)" (identifier "FUN_000ea320") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  \n  iVar6 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(*param_1 + 0xc);\n  FUN_00087710(param_1[3],param_1[4]);\n  if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }\n  iVar4 = param_1[1];\n  FUN_000ea240(0,0);\n  uVar5 = *(undefined4 *)(iVar4 + 0x20);\n  *(undefined4 *)(iVar4 + 0x20) = 0;\n  FUN_00042800(0);\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return uVar5;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar3") (= "=") (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 "iVar4 = *(int *)(*param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(*param_1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*param_1 + 0xc)" (* "*") (cast_expression "(int *)(*param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "FUN_00087710(param_1[3],param_1[4]);" (call_expression "FUN_00087710(param_1[3],param_1[4])" (identifier "FUN_00087710") (argument_list "(param_1[3],param_1[4])" (( "(") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (if_statement "if (0 < iVar4) {\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n    do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);\n  }" ({ "{") (do_statement "do {\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    } while (iVar4 != iVar6);" (do "do") (compound_statement "{\n      iVar2 = iVar6 * 8;\n      iVar1 = iVar6 * 8;\n      iVar6 = iVar6 + 1;\n      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));\n    }" ({ "{") (expression_statement "iVar2 = iVar6 * 8;" (assignment_expression "iVar2 = iVar6 * 8" (identifier "iVar2") (= "=") (binary_expression "iVar6 * 8" (identifier "iVar6") (* "*") (number_literal "8"))) (; ";")) (expression_statement "iVar1 = iVar6 * 8;" (assignment_expression "iVar1 = iVar6 * 8" (identifier "iVar1") (= "=") (binary_expression "iVar6 * 8" (identifier "iVar6") (* "*") (number_literal "8"))) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));" (call_expression "FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2))" (identifier "FUN_00087710") (argument_list "(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2))" (( "(") (pointer_expression "*(undefined4 *)(param_1[5] + iVar1)" (* "*") (cast_expression "(undefined4 *)(param_1[5] + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[5] + iVar1)" (( "(") (binary_expression "param_1[5] + iVar1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (identifier "iVar1")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1[5] + 4 + iVar2)" (* "*") (cast_expression "(undefined4 *)(param_1[5] + 4 + iVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[5] + 4 + iVar2)" (( "(") (binary_expression "param_1[5] + 4 + iVar2" (binary_expression "param_1[5] + 4" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "4")) (+ "+") (identifier "iVar2")) () ")")))) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != iVar6)" (( "(") (binary_expression "iVar4 != iVar6" (identifier "iVar4") (!= "!=") (identifier "iVar6")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" (identifier "iVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "FUN_000ea240(0,0);" (call_expression "FUN_000ea240(0,0)" (identifier "FUN_000ea240") (argument_list "(0,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(iVar4 + 0x20);" (assignment_expression "uVar5 = *(undefined4 *)(iVar4 + 0x20)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(iVar4 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x20)" (( "(") (binary_expression "iVar4 + 0x20" (identifier "iVar4") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x20)" (( "(") (binary_expression "iVar4 + 0x20" (identifier "iVar4") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00042800(0);" (call_expression "FUN_00042800(0)" (identifier "FUN_00042800") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (if_statement "if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" (if "if") (parenthesized_expression "(iVar3 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar3 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar3") (!= "!=") (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                    \n    FUN_00116110();\n  }" ({ "{") (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *p)

{
  type_2 *piVar1;
  int var_6;
  int var_10;
  int var_3;
  type_3 *p_00;
  int var_4;
  int var_1;
  int var_7;
  type_4 buf;
  
  var_4 = 0;
  var_10 = *(int *)(var_1 + 0x14);
  var_7 = 0;
  buf.p = (type_5 *)0x0;
  var_3 = p->pConfig->nCol;
  buf.n = 0;
  buf.nSpace = 0;
  var_2(&var_7,&buf,p->nTotalRow);
  if (0 < var_3) {
    do {
      var_6 = var_4 * 8;
      piVar1 = p->aTotalSize + var_4;
      var_4 = var_4 + 1;
      var_2
                (&var_7,&buf,var_5(*(type_6 *)((int)p->aTotalSize + var_6 + 4),(int)*piVar1));
    } while (var_3 != var_4);
  }
  if (var_7 == 0) {
    p_00 = p->pIndex;
    var_8(p_00,var_5(buf.n,buf.p),(type_5 *)0x1,0);
    var_7 = p_00->var_7;
    p_00->var_7 = 0;
  }
  var_9(buf.p);
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return var_7;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


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

undefined4 __regparm3 MASKED(int *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  int in_GS_OFFSET;
  
  iVar6 = 0;
  iVar3 = *(int *)(in_GS_OFFSET + 0x14);
  iVar4 = *(int *)(*param_1 + 0xc);
  FUN_00087710(param_1[3],param_1[4]);
  if (0 < iVar4) {
    do {
      iVar2 = iVar6 * 8;
      iVar1 = iVar6 * 8;
      iVar6 = iVar6 + 1;
      FUN_00087710(*(undefined4 *)(param_1[5] + iVar1),*(undefined4 *)(param_1[5] + 4 + iVar2));
    } while (iVar4 != iVar6);
  }
  iVar4 = param_1[1];
  FUN_000ea240(0,0);
  uVar5 = *(undefined4 *)(iVar4 + 0x20);
  *(undefined4 *)(iVar4 + 0x20) = 0;
  FUN_00042800(0);
  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return uVar5;
}

