
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int __regparm3 fts5DecodeDoclist(int *pRc,Fts5Buffer *pBuf,u8 *a,int n)

{
  byte bVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  int in_GS_OFFSET;
  bool bVar7;
  int nPos;
  int bDel;
  i64 iDocid;
  i64 iDelta;
  int local_20;
  
  uVar5 = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iDocid._0_4_ = 0;
  iDocid._4_4_ = 0;
  if (0 < n) {
    bVar1 = sqlite3GetVarint(a,(u64 *)&iDocid);
    uVar5 = (uint)bVar1;
    sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);
    if ((int)uVar5 < n) {
      do {
        iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);
        uVar5 = uVar5 + iVar2;
        pcVar3 = "";
        if (bDel != 0) {
          pcVar3 = "*";
        }
        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);
        iVar2 = n - uVar5;
        if (nPos < (int)(n - uVar5)) {
          iVar2 = nPos;
        }
        if (0 < iVar2) {
          iVar6 = 0;
          do {
            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);
            iVar6 = iVar6 + iVar4;
            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);
          } while (iVar6 < iVar2);
          uVar5 = uVar5 + iVar6;
        }
        if (n <= (int)uVar5) break;
        bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);
        uVar5 = uVar5 + bVar1;
        bVar7 = CARRY4((uint)iDelta,(uint)iDocid);
        iDocid._0_4_ = (uint)iDelta + (uint)iDocid;
        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;
        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);
      } while ((int)uVar5 < n);
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return uVar5;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

uint __regparm2 FUN_0008f1e0(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  int iVar7;
  int in_GS_OFFSET;
  bool bVar8;
  int local_3c;
  int local_38;
  uint local_34;
  int local_30;
  uint local_2c;
  int local_28;
  
  uVar6 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  local_34 = 0;
  local_30 = 0;
  if (0 < param_3) {
    uVar6 = FUN_00037a90();
    uVar6 = uVar6 & 0xff;
    FUN_0008efe0(param_1,param_2," id=%lld",0,0);
    if ((int)uVar6 < param_3) {
      do {
        iVar2 = FUN_000524a0();
        uVar6 = uVar6 + iVar2;
        pcVar3 = "";
        if (local_38 != 0) {
          pcVar3 = "*";
        }
        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);
        iVar2 = param_3 - uVar6;
        if (local_3c < (int)(param_3 - uVar6)) {
          iVar2 = local_3c;
        }
        if (0 < iVar2) {
          iVar7 = 0;
          do {
            iVar4 = FUN_000523f0();
            iVar7 = iVar7 + iVar4;
            FUN_0008efe0(param_1,param_2," %d",local_2c);
          } while (iVar7 < iVar2);
          uVar6 = uVar6 + iVar7;
        }
        if (param_3 <= (int)uVar6) break;
        uVar5 = FUN_00037a90();
        uVar6 = uVar6 + (uVar5 & 0xff);
        bVar8 = CARRY4(local_2c,local_34);
        local_34 = local_2c + local_34;
        local_30 = local_28 + local_30 + (uint)bVar8;
        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);
      } while ((int)uVar6 < param_3);
    }
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return uVar6;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
CALL 0x00115708
ADD ESI,0xecc3e
PUSH EBX
XOR EBX,EBX
SUB ESP,0x5c
MOV dword ptr [ESP + 0x4],EDX
MOV EDI,dword ptr [ESP + 0x70]
MOV dword ptr [ESP + 0x8],ECX
MOV dword ptr [ESP + 0x28],ESI
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x4c],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x38],0x0
MOV dword ptr [ESP + 0x3c],0x0
TEST EDI,EDI
JG 0x0008f250
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EDX,dword ptr [ESP + 0x4c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,EBX
JNZ 0x0008f3b2
ADD ESP,0x5c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,EDX
MOV EAX,ECX
LEA EDX,[ESP + 0x38]
CALL 0x00037a90
SUB ESP,0xc
PUSH dword ptr [ESP + 0x48]
MOVZX EBX,AL
LEA EAX,[ESI + 0xfffa42aa]
PUSH dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x40],EAX
PUSH EAX
PUSH EDI
PUSH EBP
CALL 0x0008efe0
ADD ESP,0x20
CMP dword ptr [ESP + 0x70],EBX
JLE 0x0008f230
LEA EAX,[ESP + 0x34]
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[ESP + 0x30]
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[ESI + 0xfffa42b3]
MOV dword ptr [ESP + 0x1c],EAX
LEA EAX,[ESI + 0xfff9c3da]
MOV dword ptr [ESP + 0x20],EAX
LEA EAX,[ESI + 0xfff9b5d8]
MOV dword ptr [ESP + 0x24],EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x14]
ADD EAX,EBX
CALL 0x000524a0
ADD EBX,EAX
MOV EAX,dword ptr [ESP + 0x34]
TEST EAX,EAX
MOV EAX,dword ptr [ESP + 0x24]
CMOVNZ EAX,dword ptr [ESP + 0x20]
SUB ESP,0xc
PUSH EAX
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x30]
PUSH dword ptr [ESP + 0x1c]
PUSH EBP
CALL 0x0008efe0
MOV EDI,dword ptr [ESP + 0x90]
MOV EAX,dword ptr [ESP + 0x50]
ADD ESP,0x20
SUB EDI,EBX
CMP EDI,EAX
CMOVG EDI,EAX
TEST EDI,EDI
JLE 0x0008f355
MOV EAX,dword ptr [ESP + 0x28]
LEA ECX,[ESP + 0x40]
XOR ESI,ESI
MOV dword ptr [ESP + 0x10],ECX
LEA EAX,[EAX + 0xfff9b6fd]
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
NOP
MOV EDX,dword ptr [ESP + 0x10]
LEA EAX,[ESI + EBX*0x1]
ADD EAX,dword ptr [ESP + 0x8]
CALL 0x000523f0
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x10]
ADD ESI,EAX
PUSH dword ptr [ESP + 0xc]
PUSH EBP
CALL 0x0008efe0
ADD ESP,0x10
CMP EDI,ESI
JG 0x0008f328
ADD EBX,ESI
CMP dword ptr [ESP + 0x70],EBX
JLE 0x0008f230
MOV EAX,dword ptr [ESP + 0x8]
LEA ECX,[ESP + 0x40]
MOV EDX,ECX
ADD EAX,EBX
CALL 0x00037a90
MOV EDX,dword ptr [ESP + 0x44]
MOVZX EAX,AL
ADD EBX,EAX
MOV EAX,dword ptr [ESP + 0x40]
ADD EAX,dword ptr [ESP + 0x38]
ADC EDX,dword ptr [ESP + 0x3c]
MOV dword ptr [ESP + 0x38],EAX
SUB ESP,0xc
MOV dword ptr [ESP + 0x48],EDX
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x1c]
PUSH EBP
CALL 0x0008efe0
ADD ESP,0x20
CMP dword ptr [ESP + 0x70],EBX
JG 0x0008f2b8
JMP 0x0008f230
CALL 0x00116110
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nuint __regparm2 FUN_0008f1e0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  bool bVar8;\n  int local_3c;\n  int local_38;\n  uint local_34;\n  int local_30;\n  uint local_2c;\n  int local_28;\n  \n  uVar6 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_34 = 0;\n  local_30 = 0;\n  if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return uVar6;\n}\n\n" comment (function_definition "uint __regparm2 FUN_0008f1e0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  bool bVar8;\n  int local_3c;\n  int local_38;\n  uint local_34;\n  int local_30;\n  uint local_2c;\n  int local_28;\n  \n  uVar6 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_34 = 0;\n  local_30 = 0;\n  if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return uVar6;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_0008f1e0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  bool bVar8;\n  int local_3c;\n  int local_38;\n  uint local_34;\n  int local_30;\n  uint local_2c;\n  int local_28;\n  \n  uVar6 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_34 = 0;\n  local_30 = 0;\n  if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return uVar6;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" 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 "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (if_statement "if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }" { (expression_statement "uVar6 = FUN_00037a90();" (assignment_expression "uVar6 = FUN_00037a90()" identifier = (call_expression "FUN_00037a90()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = uVar6 & 0xff;" (assignment_expression "uVar6 = uVar6 & 0xff" identifier = (binary_expression "uVar6 & 0xff" identifier & number_literal)) ;) (expression_statement "FUN_0008efe0(param_1,param_2," id=%lld",0,0);" (call_expression "FUN_0008efe0(param_1,param_2," id=%lld",0,0)" identifier (argument_list "(param_1,param_2," id=%lld",0,0)" ( identifier , identifier , (string_literal "" id=%lld"" " string_content ") , number_literal , number_literal ))) ;) (if_statement "if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }" if (parenthesized_expression "((int)uVar6 < param_3)" ( (binary_expression "(int)uVar6 < param_3" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }" { (do_statement "do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);" do (compound_statement "{\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      }" { (expression_statement "iVar2 = FUN_000524a0();" (assignment_expression "iVar2 = FUN_000524a0()" identifier = (call_expression "FUN_000524a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = uVar6 + iVar2;" (assignment_expression "uVar6 = uVar6 + iVar2" identifier = (binary_expression "uVar6 + iVar2" identifier + identifier)) ;) (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ identifier = (string_literal """" " ")) ;) (if_statement "if (local_38 != 0) {\n          pcVar3 = "*";\n        }" if (parenthesized_expression "(local_38 != 0)" ( (binary_expression "local_38 != 0" identifier != number_literal) )) (compound_statement "{\n          pcVar3 = "*";\n        }" { (expression_statement "pcVar3 = "*";" (assignment_expression "pcVar3 = "*"" identifier = (string_literal ""*"" " string_content ")) ;) })) (expression_statement "FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);" (call_expression "FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3)" identifier (argument_list "(param_1,param_2," nPos=%d%s",local_3c,pcVar3)" ( identifier , identifier , (string_literal "" nPos=%d%s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "iVar2 = param_3 - uVar6;" (assignment_expression "iVar2 = param_3 - uVar6" identifier = (binary_expression "param_3 - uVar6" identifier - identifier)) ;) (if_statement "if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }" if (parenthesized_expression "(local_3c < (int)(param_3 - uVar6))" ( (binary_expression "local_3c < (int)(param_3 - uVar6)" identifier < (cast_expression "(int)(param_3 - uVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 - uVar6)" ( (binary_expression "param_3 - uVar6" identifier - identifier) )))) )) (compound_statement "{\n          iVar2 = local_3c;\n        }" { (expression_statement "iVar2 = local_3c;" (assignment_expression "iVar2 = local_3c" identifier = identifier) ;) })) (if_statement "if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);" do (compound_statement "{\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          }" { (expression_statement "iVar4 = FUN_000523f0();" (assignment_expression "iVar4 = FUN_000523f0()" identifier = (call_expression "FUN_000523f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar7 = iVar7 + iVar4;" (assignment_expression "iVar7 = iVar7 + iVar4" identifier = (binary_expression "iVar7 + iVar4" identifier + identifier)) ;) (expression_statement "FUN_0008efe0(param_1,param_2," %d",local_2c);" (call_expression "FUN_0008efe0(param_1,param_2," %d",local_2c)" identifier (argument_list "(param_1,param_2," %d",local_2c)" ( identifier , identifier , (string_literal "" %d"" " string_content ") , identifier ))) ;) }) while (parenthesized_expression "(iVar7 < iVar2)" ( (binary_expression "iVar7 < iVar2" identifier < identifier) )) ;) (expression_statement "uVar6 = uVar6 + iVar7;" (assignment_expression "uVar6 = uVar6 + iVar7" identifier = (binary_expression "uVar6 + iVar7" identifier + identifier)) ;) })) (if_statement "if (param_3 <= (int)uVar6) break;" if (parenthesized_expression "(param_3 <= (int)uVar6)" ( (binary_expression "param_3 <= (int)uVar6" identifier <= (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (break_statement "break;" break ;)) (expression_statement "uVar5 = FUN_00037a90();" (assignment_expression "uVar5 = FUN_00037a90()" identifier = (call_expression "FUN_00037a90()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = uVar6 + (uVar5 & 0xff);" (assignment_expression "uVar6 = uVar6 + (uVar5 & 0xff)" identifier = (binary_expression "uVar6 + (uVar5 & 0xff)" identifier + (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )))) ;) (expression_statement "bVar8 = CARRY4(local_2c,local_34);" (assignment_expression "bVar8 = CARRY4(local_2c,local_34)" identifier = (call_expression "CARRY4(local_2c,local_34)" identifier (argument_list "(local_2c,local_34)" ( identifier , identifier )))) ;) (expression_statement "local_34 = local_2c + local_34;" (assignment_expression "local_34 = local_2c + local_34" identifier = (binary_expression "local_2c + local_34" identifier + identifier)) ;) (expression_statement "local_30 = local_28 + local_30 + (uint)bVar8;" (assignment_expression "local_30 = local_28 + local_30 + (uint)bVar8" identifier = (binary_expression "local_28 + local_30 + (uint)bVar8" (binary_expression "local_28 + local_30" identifier + identifier) + (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);" (call_expression "FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30)" identifier (argument_list "(param_1,param_2," id=%lld",local_34,local_30)" ( identifier , identifier , (string_literal "" id=%lld"" " string_content ") , identifier , identifier ))) ;) }) while (parenthesized_expression "((int)uVar6 < param_3)" ( (binary_expression "(int)uVar6 < param_3" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) ;) })) })) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\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                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" { comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar6;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint __regparm3 fts5DecodeDoclist(int *pRc,Fts5Buffer *pBuf,u8 *a,int n)\n\n{\n  byte bVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  int nPos;\n  int bDel;\n  i64 iDocid;\n  i64 iDelta;\n  int local_20;\n  \n  uVar5 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iDocid._0_4_ = 0;\n  iDocid._4_4_ = 0;\n  if (0 < n) {\n    bVar1 = sqlite3GetVarint(a,(u64 *)&iDocid);\n    uVar5 = (uint)bVar1;\n    sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n    if ((int)uVar5 < n) {\n      do {\n        iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);\n        uVar5 = uVar5 + iVar2;\n        pcVar3 = "";\n        if (bDel != 0) {\n          pcVar3 = "*";\n        }\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);\n        iVar2 = n - uVar5;\n        if (nPos < (int)(n - uVar5)) {\n          iVar2 = nPos;\n        }\n        if (0 < iVar2) {\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }\n        if (n <= (int)uVar5) break;\n        bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);\n        uVar5 = uVar5 + bVar1;\n        bVar7 = CARRY4((uint)iDelta,(uint)iDocid);\n        iDocid._0_4_ = (uint)iDelta + (uint)iDocid;\n        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n      } while ((int)uVar5 < n);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return uVar5;\n}\n\n" comment (function_definition "int __regparm3 fts5DecodeDoclist(int *pRc,Fts5Buffer *pBuf,u8 *a,int n)\n\n{\n  byte bVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  int nPos;\n  int bDel;\n  i64 iDocid;\n  i64 iDelta;\n  int local_20;\n  \n  uVar5 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iDocid._0_4_ = 0;\n  iDocid._4_4_ = 0;\n  if (0 < n) {\n    bVar1 = sqlite3GetVarint(a,(u64 *)&iDocid);\n    uVar5 = (uint)bVar1;\n    sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n    if ((int)uVar5 < n) {\n      do {\n        iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);\n        uVar5 = uVar5 + iVar2;\n        pcVar3 = "";\n        if (bDel != 0) {\n          pcVar3 = "*";\n        }\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);\n        iVar2 = n - uVar5;\n        if (nPos < (int)(n - uVar5)) {\n          iVar2 = nPos;\n        }\n        if (0 < iVar2) {\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }\n        if (n <= (int)uVar5) break;\n        bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);\n        uVar5 = uVar5 + bVar1;\n        bVar7 = CARRY4((uint)iDelta,(uint)iDocid);\n        iDocid._0_4_ = (uint)iDelta + (uint)iDocid;\n        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n      } while ((int)uVar5 < n);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return uVar5;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "fts5DecodeDoclist(int *pRc,Fts5Buffer *pBuf,u8 *a,int n)" identifier (parameter_list "(int *pRc,Fts5Buffer *pBuf,u8 *a,int n)" ( (parameter_declaration "int *pRc" primitive_type (pointer_declarator "*pRc" * identifier)) , (parameter_declaration "Fts5Buffer *pBuf" type_identifier (pointer_declarator "*pBuf" * identifier)) , (parameter_declaration "u8 *a" type_identifier (pointer_declarator "*a" * identifier)) , (parameter_declaration "int n" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  int nPos;\n  int bDel;\n  i64 iDocid;\n  i64 iDelta;\n  int local_20;\n  \n  uVar5 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iDocid._0_4_ = 0;\n  iDocid._4_4_ = 0;\n  if (0 < n) {\n    bVar1 = sqlite3GetVarint(a,(u64 *)&iDocid);\n    uVar5 = (uint)bVar1;\n    sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n    if ((int)uVar5 < n) {\n      do {\n        iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);\n        uVar5 = uVar5 + iVar2;\n        pcVar3 = "";\n        if (bDel != 0) {\n          pcVar3 = "*";\n        }\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);\n        iVar2 = n - uVar5;\n        if (nPos < (int)(n - uVar5)) {\n          iVar2 = nPos;\n        }\n        if (0 < iVar2) {\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }\n        if (n <= (int)uVar5) break;\n        bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);\n        uVar5 = uVar5 + bVar1;\n        bVar7 = CARRY4((uint)iDelta,(uint)iDocid);\n        iDocid._0_4_ = (uint)iDelta + (uint)iDocid;\n        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n      } while ((int)uVar5 < n);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return uVar5;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "int nPos;" primitive_type identifier ;) (declaration "int bDel;" primitive_type identifier ;) (declaration "i64 iDocid;" type_identifier identifier ;) (declaration "i64 iDelta;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (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 "iDocid._0_4_ = 0;" (assignment_expression "iDocid._0_4_ = 0" (field_expression "iDocid._0_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "iDocid._4_4_ = 0;" (assignment_expression "iDocid._4_4_ = 0" (field_expression "iDocid._4_4_" identifier . field_identifier) = number_literal) ;) (if_statement "if (0 < n) {\n    bVar1 = sqlite3GetVarint(a,(u64 *)&iDocid);\n    uVar5 = (uint)bVar1;\n    sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n    if ((int)uVar5 < n) {\n      do {\n        iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);\n        uVar5 = uVar5 + iVar2;\n        pcVar3 = "";\n        if (bDel != 0) {\n          pcVar3 = "*";\n        }\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);\n        iVar2 = n - uVar5;\n        if (nPos < (int)(n - uVar5)) {\n          iVar2 = nPos;\n        }\n        if (0 < iVar2) {\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }\n        if (n <= (int)uVar5) break;\n        bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);\n        uVar5 = uVar5 + bVar1;\n        bVar7 = CARRY4((uint)iDelta,(uint)iDocid);\n        iDocid._0_4_ = (uint)iDelta + (uint)iDocid;\n        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n      } while ((int)uVar5 < n);\n    }\n  }" if (parenthesized_expression "(0 < n)" ( (binary_expression "0 < n" number_literal < identifier) )) (compound_statement "{\n    bVar1 = sqlite3GetVarint(a,(u64 *)&iDocid);\n    uVar5 = (uint)bVar1;\n    sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n    if ((int)uVar5 < n) {\n      do {\n        iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);\n        uVar5 = uVar5 + iVar2;\n        pcVar3 = "";\n        if (bDel != 0) {\n          pcVar3 = "*";\n        }\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);\n        iVar2 = n - uVar5;\n        if (nPos < (int)(n - uVar5)) {\n          iVar2 = nPos;\n        }\n        if (0 < iVar2) {\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }\n        if (n <= (int)uVar5) break;\n        bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);\n        uVar5 = uVar5 + bVar1;\n        bVar7 = CARRY4((uint)iDelta,(uint)iDocid);\n        iDocid._0_4_ = (uint)iDelta + (uint)iDocid;\n        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n      } while ((int)uVar5 < n);\n    }\n  }" { (expression_statement "bVar1 = sqlite3GetVarint(a,(u64 *)&iDocid);" (assignment_expression "bVar1 = sqlite3GetVarint(a,(u64 *)&iDocid)" identifier = (call_expression "sqlite3GetVarint(a,(u64 *)&iDocid)" identifier (argument_list "(a,(u64 *)&iDocid)" ( identifier , (cast_expression "(u64 *)&iDocid" ( (type_descriptor "u64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&iDocid" & identifier)) )))) ;) (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);" (call_expression "sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_)" identifier (argument_list "(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_)" ( identifier , identifier , (string_literal "" id=%lld"" " string_content ") , (cast_expression "(uint)iDocid" ( (type_descriptor "uint" type_identifier) ) identifier) , (field_expression "iDocid._4_4_" identifier . field_identifier) ))) ;) (if_statement "if ((int)uVar5 < n) {\n      do {\n        iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);\n        uVar5 = uVar5 + iVar2;\n        pcVar3 = "";\n        if (bDel != 0) {\n          pcVar3 = "*";\n        }\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);\n        iVar2 = n - uVar5;\n        if (nPos < (int)(n - uVar5)) {\n          iVar2 = nPos;\n        }\n        if (0 < iVar2) {\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }\n        if (n <= (int)uVar5) break;\n        bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);\n        uVar5 = uVar5 + bVar1;\n        bVar7 = CARRY4((uint)iDelta,(uint)iDocid);\n        iDocid._0_4_ = (uint)iDelta + (uint)iDocid;\n        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n      } while ((int)uVar5 < n);\n    }" if (parenthesized_expression "((int)uVar5 < n)" ( (binary_expression "(int)uVar5 < n" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n      do {\n        iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);\n        uVar5 = uVar5 + iVar2;\n        pcVar3 = "";\n        if (bDel != 0) {\n          pcVar3 = "*";\n        }\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);\n        iVar2 = n - uVar5;\n        if (nPos < (int)(n - uVar5)) {\n          iVar2 = nPos;\n        }\n        if (0 < iVar2) {\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }\n        if (n <= (int)uVar5) break;\n        bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);\n        uVar5 = uVar5 + bVar1;\n        bVar7 = CARRY4((uint)iDelta,(uint)iDocid);\n        iDocid._0_4_ = (uint)iDelta + (uint)iDocid;\n        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n      } while ((int)uVar5 < n);\n    }" { (do_statement "do {\n        iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);\n        uVar5 = uVar5 + iVar2;\n        pcVar3 = "";\n        if (bDel != 0) {\n          pcVar3 = "*";\n        }\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);\n        iVar2 = n - uVar5;\n        if (nPos < (int)(n - uVar5)) {\n          iVar2 = nPos;\n        }\n        if (0 < iVar2) {\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }\n        if (n <= (int)uVar5) break;\n        bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);\n        uVar5 = uVar5 + bVar1;\n        bVar7 = CARRY4((uint)iDelta,(uint)iDocid);\n        iDocid._0_4_ = (uint)iDelta + (uint)iDocid;\n        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n      } while ((int)uVar5 < n);" do (compound_statement "{\n        iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);\n        uVar5 = uVar5 + iVar2;\n        pcVar3 = "";\n        if (bDel != 0) {\n          pcVar3 = "*";\n        }\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);\n        iVar2 = n - uVar5;\n        if (nPos < (int)(n - uVar5)) {\n          iVar2 = nPos;\n        }\n        if (0 < iVar2) {\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }\n        if (n <= (int)uVar5) break;\n        bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);\n        uVar5 = uVar5 + bVar1;\n        bVar7 = CARRY4((uint)iDelta,(uint)iDocid);\n        iDocid._0_4_ = (uint)iDelta + (uint)iDocid;\n        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;\n        sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);\n      }" { (expression_statement "iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel);" (assignment_expression "iVar2 = fts5GetPoslistSize(a + uVar5,&nPos,&bDel)" identifier = (call_expression "fts5GetPoslistSize(a + uVar5,&nPos,&bDel)" identifier (argument_list "(a + uVar5,&nPos,&bDel)" ( (binary_expression "a + uVar5" identifier + identifier) , (pointer_expression "&nPos" & identifier) , (pointer_expression "&bDel" & identifier) )))) ;) (expression_statement "uVar5 = uVar5 + iVar2;" (assignment_expression "uVar5 = uVar5 + iVar2" identifier = (binary_expression "uVar5 + iVar2" identifier + identifier)) ;) (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ identifier = (string_literal """" " ")) ;) (if_statement "if (bDel != 0) {\n          pcVar3 = "*";\n        }" if (parenthesized_expression "(bDel != 0)" ( (binary_expression "bDel != 0" identifier != number_literal) )) (compound_statement "{\n          pcVar3 = "*";\n        }" { (expression_statement "pcVar3 = "*";" (assignment_expression "pcVar3 = "*"" identifier = (string_literal ""*"" " string_content ")) ;) })) (expression_statement "sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3);" (call_expression "sqlite3Fts5BufferAppendPrintf(pRc,pBuf," nPos=%d%s",nPos,pcVar3)" identifier (argument_list "(pRc,pBuf," nPos=%d%s",nPos,pcVar3)" ( identifier , identifier , (string_literal "" nPos=%d%s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "iVar2 = n - uVar5;" (assignment_expression "iVar2 = n - uVar5" identifier = (binary_expression "n - uVar5" identifier - identifier)) ;) (if_statement "if (nPos < (int)(n - uVar5)) {\n          iVar2 = nPos;\n        }" if (parenthesized_expression "(nPos < (int)(n - uVar5))" ( (binary_expression "nPos < (int)(n - uVar5)" identifier < (cast_expression "(int)(n - uVar5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(n - uVar5)" ( (binary_expression "n - uVar5" identifier - identifier) )))) )) (compound_statement "{\n          iVar2 = nPos;\n        }" { (expression_statement "iVar2 = nPos;" (assignment_expression "iVar2 = nPos" identifier = identifier) ;) })) (if_statement "if (0 < iVar2) {\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n          iVar6 = 0;\n          do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);\n          uVar5 = uVar5 + iVar6;\n        }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          } while (iVar6 < iVar2);" do (compound_statement "{\n            iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);\n            iVar6 = iVar6 + iVar4;\n            sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);\n          }" { (expression_statement "iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta);" (assignment_expression "iVar4 = sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta)" identifier = (call_expression "sqlite3Fts5GetVarint32(a + iVar6 + uVar5,(u32 *)&iDelta)" identifier (argument_list "(a + iVar6 + uVar5,(u32 *)&iDelta)" ( (binary_expression "a + iVar6 + uVar5" (binary_expression "a + iVar6" identifier + identifier) + identifier) , (cast_expression "(u32 *)&iDelta" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&iDelta" & identifier)) )))) ;) (expression_statement "iVar6 = iVar6 + iVar4;" (assignment_expression "iVar6 = iVar6 + iVar4" identifier = (binary_expression "iVar6 + iVar4" identifier + identifier)) ;) (expression_statement "sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta);" (call_expression "sqlite3Fts5BufferAppendPrintf(pRc,pBuf," %d",(uint)iDelta)" identifier (argument_list "(pRc,pBuf," %d",(uint)iDelta)" ( identifier , identifier , (string_literal "" %d"" " string_content ") , (cast_expression "(uint)iDelta" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }) while (parenthesized_expression "(iVar6 < iVar2)" ( (binary_expression "iVar6 < iVar2" identifier < identifier) )) ;) (expression_statement "uVar5 = uVar5 + iVar6;" (assignment_expression "uVar5 = uVar5 + iVar6" identifier = (binary_expression "uVar5 + iVar6" identifier + identifier)) ;) })) (if_statement "if (n <= (int)uVar5) break;" if (parenthesized_expression "(n <= (int)uVar5)" ( (binary_expression "n <= (int)uVar5" identifier <= (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) (break_statement "break;" break ;)) (expression_statement "bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta);" (assignment_expression "bVar1 = sqlite3GetVarint(a + uVar5,(u64 *)&iDelta)" identifier = (call_expression "sqlite3GetVarint(a + uVar5,(u64 *)&iDelta)" identifier (argument_list "(a + uVar5,(u64 *)&iDelta)" ( (binary_expression "a + uVar5" identifier + identifier) , (cast_expression "(u64 *)&iDelta" ( (type_descriptor "u64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&iDelta" & identifier)) )))) ;) (expression_statement "uVar5 = uVar5 + bVar1;" (assignment_expression "uVar5 = uVar5 + bVar1" identifier = (binary_expression "uVar5 + bVar1" identifier + identifier)) ;) (expression_statement "bVar7 = CARRY4((uint)iDelta,(uint)iDocid);" (assignment_expression "bVar7 = CARRY4((uint)iDelta,(uint)iDocid)" identifier = (call_expression "CARRY4((uint)iDelta,(uint)iDocid)" identifier (argument_list "((uint)iDelta,(uint)iDocid)" ( (cast_expression "(uint)iDelta" ( (type_descriptor "uint" type_identifier) ) identifier) , (cast_expression "(uint)iDocid" ( (type_descriptor "uint" type_identifier) ) identifier) )))) ;) (expression_statement "iDocid._0_4_ = (uint)iDelta + (uint)iDocid;" (assignment_expression "iDocid._0_4_ = (uint)iDelta + (uint)iDocid" (field_expression "iDocid._0_4_" identifier . field_identifier) = (binary_expression "(uint)iDelta + (uint)iDocid" (cast_expression "(uint)iDelta" ( (type_descriptor "uint" type_identifier) ) identifier) + (cast_expression "(uint)iDocid" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7;" (assignment_expression "iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7" (field_expression "iDocid._4_4_" identifier . field_identifier) = (binary_expression "iDelta._4_4_ + iDocid._4_4_ + (uint)bVar7" (binary_expression "iDelta._4_4_ + iDocid._4_4_" (field_expression "iDelta._4_4_" identifier . field_identifier) + (field_expression "iDocid._4_4_" identifier . field_identifier)) + (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_);" (call_expression "sqlite3Fts5BufferAppendPrintf(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_)" identifier (argument_list "(pRc,pBuf," id=%lld",(uint)iDocid,iDocid._4_4_)" ( identifier , identifier , (string_literal "" id=%lld"" " string_content ") , (cast_expression "(uint)iDocid" ( (type_descriptor "uint" type_identifier) ) identifier) , (field_expression "iDocid._4_4_" identifier . field_identifier) ))) ;) }) while (parenthesized_expression "((int)uVar5 < n)" ( (binary_expression "(int)uVar5 < n" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) ;) })) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "uint __regparm2 FUN_0008f1e0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  bool bVar8;\n  int local_3c;\n  int local_38;\n  uint local_34;\n  int local_30;\n  uint local_2c;\n  int local_28;\n  \n  uVar6 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_34 = 0;\n  local_30 = 0;\n  if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return uVar6;\n}\n\n" (function_definition "uint __regparm2 FUN_0008f1e0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  bool bVar8;\n  int local_3c;\n  int local_38;\n  uint local_34;\n  int local_30;\n  uint local_2c;\n  int local_28;\n  \n  uVar6 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_34 = 0;\n  local_30 = 0;\n  if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return uVar6;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_0008f1e0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  bool bVar8;\n  int local_3c;\n  int local_38;\n  uint local_34;\n  int local_30;\n  uint local_2c;\n  int local_28;\n  \n  uVar6 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_34 = 0;\n  local_30 = 0;\n  if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return uVar6;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" 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 "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (if_statement "if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }" { (expression_statement "uVar6 = FUN_00037a90();" (assignment_expression "uVar6 = FUN_00037a90()" identifier = (call_expression "FUN_00037a90()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = uVar6 & 0xff;" (assignment_expression "uVar6 = uVar6 & 0xff" identifier = (binary_expression "uVar6 & 0xff" identifier & number_literal)) ;) (expression_statement "FUN_0008efe0(param_1,param_2," id=%lld",0,0);" (call_expression "FUN_0008efe0(param_1,param_2," id=%lld",0,0)" identifier (argument_list "(param_1,param_2," id=%lld",0,0)" ( identifier , identifier , (string_literal "" id=%lld"" " string_content ") , number_literal , number_literal ))) ;) (if_statement "if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }" if (parenthesized_expression "((int)uVar6 < param_3)" ( (binary_expression "(int)uVar6 < param_3" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }" { (do_statement "do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);" do (compound_statement "{\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      }" { (expression_statement "iVar2 = FUN_000524a0();" (assignment_expression "iVar2 = FUN_000524a0()" identifier = (call_expression "FUN_000524a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = uVar6 + iVar2;" (assignment_expression "uVar6 = uVar6 + iVar2" identifier = (binary_expression "uVar6 + iVar2" identifier + identifier)) ;) (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ identifier = (string_literal """" " ")) ;) (if_statement "if (local_38 != 0) {\n          pcVar3 = "*";\n        }" if (parenthesized_expression "(local_38 != 0)" ( (binary_expression "local_38 != 0" identifier != number_literal) )) (compound_statement "{\n          pcVar3 = "*";\n        }" { (expression_statement "pcVar3 = "*";" (assignment_expression "pcVar3 = "*"" identifier = (string_literal ""*"" " string_content ")) ;) })) (expression_statement "FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);" (call_expression "FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3)" identifier (argument_list "(param_1,param_2," nPos=%d%s",local_3c,pcVar3)" ( identifier , identifier , (string_literal "" nPos=%d%s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "iVar2 = param_3 - uVar6;" (assignment_expression "iVar2 = param_3 - uVar6" identifier = (binary_expression "param_3 - uVar6" identifier - identifier)) ;) (if_statement "if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }" if (parenthesized_expression "(local_3c < (int)(param_3 - uVar6))" ( (binary_expression "local_3c < (int)(param_3 - uVar6)" identifier < (cast_expression "(int)(param_3 - uVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 - uVar6)" ( (binary_expression "param_3 - uVar6" identifier - identifier) )))) )) (compound_statement "{\n          iVar2 = local_3c;\n        }" { (expression_statement "iVar2 = local_3c;" (assignment_expression "iVar2 = local_3c" identifier = identifier) ;) })) (if_statement "if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);" do (compound_statement "{\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          }" { (expression_statement "iVar4 = FUN_000523f0();" (assignment_expression "iVar4 = FUN_000523f0()" identifier = (call_expression "FUN_000523f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar7 = iVar7 + iVar4;" (assignment_expression "iVar7 = iVar7 + iVar4" identifier = (binary_expression "iVar7 + iVar4" identifier + identifier)) ;) (expression_statement "FUN_0008efe0(param_1,param_2," %d",local_2c);" (call_expression "FUN_0008efe0(param_1,param_2," %d",local_2c)" identifier (argument_list "(param_1,param_2," %d",local_2c)" ( identifier , identifier , (string_literal "" %d"" " string_content ") , identifier ))) ;) }) while (parenthesized_expression "(iVar7 < iVar2)" ( (binary_expression "iVar7 < iVar2" identifier < identifier) )) ;) (expression_statement "uVar6 = uVar6 + iVar7;" (assignment_expression "uVar6 = uVar6 + iVar7" identifier = (binary_expression "uVar6 + iVar7" identifier + identifier)) ;) })) (if_statement "if (param_3 <= (int)uVar6) break;" if (parenthesized_expression "(param_3 <= (int)uVar6)" ( (binary_expression "param_3 <= (int)uVar6" identifier <= (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (break_statement "break;" break ;)) (expression_statement "uVar5 = FUN_00037a90();" (assignment_expression "uVar5 = FUN_00037a90()" identifier = (call_expression "FUN_00037a90()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = uVar6 + (uVar5 & 0xff);" (assignment_expression "uVar6 = uVar6 + (uVar5 & 0xff)" identifier = (binary_expression "uVar6 + (uVar5 & 0xff)" identifier + (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )))) ;) (expression_statement "bVar8 = CARRY4(local_2c,local_34);" (assignment_expression "bVar8 = CARRY4(local_2c,local_34)" identifier = (call_expression "CARRY4(local_2c,local_34)" identifier (argument_list "(local_2c,local_34)" ( identifier , identifier )))) ;) (expression_statement "local_34 = local_2c + local_34;" (assignment_expression "local_34 = local_2c + local_34" identifier = (binary_expression "local_2c + local_34" identifier + identifier)) ;) (expression_statement "local_30 = local_28 + local_30 + (uint)bVar8;" (assignment_expression "local_30 = local_28 + local_30 + (uint)bVar8" identifier = (binary_expression "local_28 + local_30 + (uint)bVar8" (binary_expression "local_28 + local_30" identifier + identifier) + (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);" (call_expression "FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30)" identifier (argument_list "(param_1,param_2," id=%lld",local_34,local_30)" ( identifier , identifier , (string_literal "" id=%lld"" " string_content ") , identifier , identifier ))) ;) }) while (parenthesized_expression "((int)uVar6 < param_3)" ( (binary_expression "(int)uVar6 < param_3" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) ;) })) })) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\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                    \n    FUN_00116110();\n  }" { (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (string_literal " string_content ") , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (string_literal " string_content ") , IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < IDENT) )) ;) })) })) (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 "uint __regparm2 FUN_0008f1e0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  bool bVar8;\n  int local_3c;\n  int local_38;\n  uint local_34;\n  int local_30;\n  uint local_2c;\n  int local_28;\n  \n  uVar6 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_34 = 0;\n  local_30 = 0;\n  if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return uVar6;\n}" (type_identifier "uint") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_0008f1e0(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_0008f1e0") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  bool bVar8;\n  int local_3c;\n  int local_38;\n  uint local_34;\n  int local_30;\n  uint local_2c;\n  int local_28;\n  \n  uVar6 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_34 = 0;\n  local_30 = 0;\n  if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return uVar6;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "uint local_34;" (type_identifier "uint") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (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_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < param_3) {\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    uVar6 = FUN_00037a90();\n    uVar6 = uVar6 & 0xff;\n    FUN_0008efe0(param_1,param_2," id=%lld",0,0);\n    if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }\n  }" ({ "{") (expression_statement "uVar6 = FUN_00037a90();" (assignment_expression "uVar6 = FUN_00037a90()" (identifier "uVar6") (= "=") (call_expression "FUN_00037a90()" (identifier "FUN_00037a90") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar6 = uVar6 & 0xff;" (assignment_expression "uVar6 = uVar6 & 0xff" (identifier "uVar6") (= "=") (binary_expression "uVar6 & 0xff" (identifier "uVar6") (& "&") (number_literal "0xff"))) (; ";")) (expression_statement "FUN_0008efe0(param_1,param_2," id=%lld",0,0);" (call_expression "FUN_0008efe0(param_1,param_2," id=%lld",0,0)" (identifier "FUN_0008efe0") (argument_list "(param_1,param_2," id=%lld",0,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (string_literal "" id=%lld"" (" """) (string_content " id=%lld") (" """)) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if ((int)uVar6 < param_3) {\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }" (if "if") (parenthesized_expression "((int)uVar6 < param_3)" (( "(") (binary_expression "(int)uVar6 < param_3" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);\n    }" ({ "{") (do_statement "do {\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      } while ((int)uVar6 < param_3);" (do "do") (compound_statement "{\n        iVar2 = FUN_000524a0();\n        uVar6 = uVar6 + iVar2;\n        pcVar3 = "";\n        if (local_38 != 0) {\n          pcVar3 = "*";\n        }\n        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);\n        iVar2 = param_3 - uVar6;\n        if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }\n        if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }\n        if (param_3 <= (int)uVar6) break;\n        uVar5 = FUN_00037a90();\n        uVar6 = uVar6 + (uVar5 & 0xff);\n        bVar8 = CARRY4(local_2c,local_34);\n        local_34 = local_2c + local_34;\n        local_30 = local_28 + local_30 + (uint)bVar8;\n        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);\n      }" ({ "{") (expression_statement "iVar2 = FUN_000524a0();" (assignment_expression "iVar2 = FUN_000524a0()" (identifier "iVar2") (= "=") (call_expression "FUN_000524a0()" (identifier "FUN_000524a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar6 = uVar6 + iVar2;" (assignment_expression "uVar6 = uVar6 + iVar2" (identifier "uVar6") (= "=") (binary_expression "uVar6 + iVar2" (identifier "uVar6") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ (identifier "pcVar3") (= "=") (string_literal """" (" """) (" """))) (; ";")) (if_statement "if (local_38 != 0) {\n          pcVar3 = "*";\n        }" (if "if") (parenthesized_expression "(local_38 != 0)" (( "(") (binary_expression "local_38 != 0" (identifier "local_38") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          pcVar3 = "*";\n        }" ({ "{") (expression_statement "pcVar3 = "*";" (assignment_expression "pcVar3 = "*"" (identifier "pcVar3") (= "=") (string_literal ""*"" (" """) (string_content "*") (" """))) (; ";")) (} "}"))) (expression_statement "FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);" (call_expression "FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3)" (identifier "FUN_0008efe0") (argument_list "(param_1,param_2," nPos=%d%s",local_3c,pcVar3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (string_literal "" nPos=%d%s"" (" """) (string_content " nPos=%d%s") (" """)) (, ",") (identifier "local_3c") (, ",") (identifier "pcVar3") () ")"))) (; ";")) (expression_statement "iVar2 = param_3 - uVar6;" (assignment_expression "iVar2 = param_3 - uVar6" (identifier "iVar2") (= "=") (binary_expression "param_3 - uVar6" (identifier "param_3") (- "-") (identifier "uVar6"))) (; ";")) (if_statement "if (local_3c < (int)(param_3 - uVar6)) {\n          iVar2 = local_3c;\n        }" (if "if") (parenthesized_expression "(local_3c < (int)(param_3 - uVar6))" (( "(") (binary_expression "local_3c < (int)(param_3 - uVar6)" (identifier "local_3c") (< "<") (cast_expression "(int)(param_3 - uVar6)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_3 - uVar6)" (( "(") (binary_expression "param_3 - uVar6" (identifier "param_3") (- "-") (identifier "uVar6")) () ")")))) () ")")) (compound_statement "{\n          iVar2 = local_3c;\n        }" ({ "{") (expression_statement "iVar2 = local_3c;" (assignment_expression "iVar2 = local_3c" (identifier "iVar2") (= "=") (identifier "local_3c")) (; ";")) (} "}"))) (if_statement "if (0 < iVar2) {\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n          iVar7 = 0;\n          do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);\n          uVar6 = uVar6 + iVar7;\n        }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          } while (iVar7 < iVar2);" (do "do") (compound_statement "{\n            iVar4 = FUN_000523f0();\n            iVar7 = iVar7 + iVar4;\n            FUN_0008efe0(param_1,param_2," %d",local_2c);\n          }" ({ "{") (expression_statement "iVar4 = FUN_000523f0();" (assignment_expression "iVar4 = FUN_000523f0()" (identifier "iVar4") (= "=") (call_expression "FUN_000523f0()" (identifier "FUN_000523f0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar7 = iVar7 + iVar4;" (assignment_expression "iVar7 = iVar7 + iVar4" (identifier "iVar7") (= "=") (binary_expression "iVar7 + iVar4" (identifier "iVar7") (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "FUN_0008efe0(param_1,param_2," %d",local_2c);" (call_expression "FUN_0008efe0(param_1,param_2," %d",local_2c)" (identifier "FUN_0008efe0") (argument_list "(param_1,param_2," %d",local_2c)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (string_literal "" %d"" (" """) (string_content " %d") (" """)) (, ",") (identifier "local_2c") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 < iVar2)" (( "(") (binary_expression "iVar7 < iVar2" (identifier "iVar7") (< "<") (identifier "iVar2")) () ")")) (; ";")) (expression_statement "uVar6 = uVar6 + iVar7;" (assignment_expression "uVar6 = uVar6 + iVar7" (identifier "uVar6") (= "=") (binary_expression "uVar6 + iVar7" (identifier "uVar6") (+ "+") (identifier "iVar7"))) (; ";")) (} "}"))) (if_statement "if (param_3 <= (int)uVar6) break;" (if "if") (parenthesized_expression "(param_3 <= (int)uVar6)" (( "(") (binary_expression "param_3 <= (int)uVar6" (identifier "param_3") (<= "<=") (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar5 = FUN_00037a90();" (assignment_expression "uVar5 = FUN_00037a90()" (identifier "uVar5") (= "=") (call_expression "FUN_00037a90()" (identifier "FUN_00037a90") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar6 = uVar6 + (uVar5 & 0xff);" (assignment_expression "uVar6 = uVar6 + (uVar5 & 0xff)" (identifier "uVar6") (= "=") (binary_expression "uVar6 + (uVar5 & 0xff)" (identifier "uVar6") (+ "+") (parenthesized_expression "(uVar5 & 0xff)" (( "(") (binary_expression "uVar5 & 0xff" (identifier "uVar5") (& "&") (number_literal "0xff")) () ")")))) (; ";")) (expression_statement "bVar8 = CARRY4(local_2c,local_34);" (assignment_expression "bVar8 = CARRY4(local_2c,local_34)" (identifier "bVar8") (= "=") (call_expression "CARRY4(local_2c,local_34)" (identifier "CARRY4") (argument_list "(local_2c,local_34)" (( "(") (identifier "local_2c") (, ",") (identifier "local_34") () ")")))) (; ";")) (expression_statement "local_34 = local_2c + local_34;" (assignment_expression "local_34 = local_2c + local_34" (identifier "local_34") (= "=") (binary_expression "local_2c + local_34" (identifier "local_2c") (+ "+") (identifier "local_34"))) (; ";")) (expression_statement "local_30 = local_28 + local_30 + (uint)bVar8;" (assignment_expression "local_30 = local_28 + local_30 + (uint)bVar8" (identifier "local_30") (= "=") (binary_expression "local_28 + local_30 + (uint)bVar8" (binary_expression "local_28 + local_30" (identifier "local_28") (+ "+") (identifier "local_30")) (+ "+") (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")))) (; ";")) (expression_statement "FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);" (call_expression "FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30)" (identifier "FUN_0008efe0") (argument_list "(param_1,param_2," id=%lld",local_34,local_30)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (string_literal "" id=%lld"" (" """) (string_content " id=%lld") (" """)) (, ",") (identifier "local_34") (, ",") (identifier "local_30") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)uVar6 < param_3)" (( "(") (binary_expression "(int)uVar6 < param_3" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (< "<") (identifier "param_3")) () ")")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (!= "!=") (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 uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int __regparm3 function_1(int *pRc,type_1 *pBuf,type_2 *var_6,int var_2)

{
  type_3 var_14;
  int var_8;
  char *pcVar3;
  int var_13;
  type_4 var_7;
  int var_12;
  int var_1;
  bool bVar7;
  int var_10;
  int var_9;
  type_5 iDocid;
  type_5 iDelta;
  int var_16;
  
  var_7 = 0;
  var_16 = *(int *)(var_1 + 0x14);
  iDocid._0_4_ = 0;
  iDocid._4_4_ = 0;
  if (0 < var_2) {
    var_14 = var_3(var_6,(type_6 *)&iDocid);
    var_7 = (type_4)var_14;
    var_4(pRc,pBuf," id=%lld",(type_4)iDocid,iDocid._4_4_);
    if ((int)var_7 < var_2) {
      do {
        var_8 = var_5(var_6 + var_7,&var_10,&var_9);
        var_7 = var_7 + var_8;
        pcVar3 = "";
        if (var_9 != 0) {
          pcVar3 = "*";
        }
        var_4(pRc,pBuf," nPos=%d%s",var_10,pcVar3);
        var_8 = var_2 - var_7;
        if (var_10 < (int)(var_2 - var_7)) {
          var_8 = var_10;
        }
        if (0 < var_8) {
          var_12 = 0;
          do {
            var_13 = var_11(var_6 + var_12 + var_7,(type_7 *)&iDelta);
            var_12 = var_12 + var_13;
            var_4(pRc,pBuf," %d",(type_4)iDelta);
          } while (var_12 < var_8);
          var_7 = var_7 + var_12;
        }
        if (var_2 <= (int)var_7) break;
        var_14 = var_3(var_6 + var_7,(type_6 *)&iDelta);
        var_7 = var_7 + var_14;
        bVar7 = var_15((type_4)iDelta,(type_4)iDocid);
        iDocid._0_4_ = (type_4)iDelta + (type_4)iDocid;
        iDocid._4_4_ = iDelta._4_4_ + iDocid._4_4_ + (type_4)bVar7;
        var_4(pRc,pBuf," id=%lld",(type_4)iDocid,iDocid._4_4_);
      } while ((int)var_7 < var_2);
    }
  }
  if (var_16 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_17();
  }
  return var_7;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

uint __regparm2 MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  int iVar7;
  int in_GS_OFFSET;
  bool bVar8;
  int local_3c;
  int local_38;
  uint local_34;
  int local_30;
  uint local_2c;
  int local_28;
  
  uVar6 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  local_34 = 0;
  local_30 = 0;
  if (0 < param_3) {
    uVar6 = FUN_00037a90();
    uVar6 = uVar6 & 0xff;
    FUN_0008efe0(param_1,param_2," id=%lld",0,0);
    if ((int)uVar6 < param_3) {
      do {
        iVar2 = FUN_000524a0();
        uVar6 = uVar6 + iVar2;
        pcVar3 = "";
        if (local_38 != 0) {
          pcVar3 = "*";
        }
        FUN_0008efe0(param_1,param_2," nPos=%d%s",local_3c,pcVar3);
        iVar2 = param_3 - uVar6;
        if (local_3c < (int)(param_3 - uVar6)) {
          iVar2 = local_3c;
        }
        if (0 < iVar2) {
          iVar7 = 0;
          do {
            iVar4 = FUN_000523f0();
            iVar7 = iVar7 + iVar4;
            FUN_0008efe0(param_1,param_2," %d",local_2c);
          } while (iVar7 < iVar2);
          uVar6 = uVar6 + iVar7;
        }
        if (param_3 <= (int)uVar6) break;
        uVar5 = FUN_00037a90();
        uVar6 = uVar6 + (uVar5 & 0xff);
        bVar8 = CARRY4(local_2c,local_34);
        local_34 = local_2c + local_34;
        local_30 = local_28 + local_30 + (uint)bVar8;
        FUN_0008efe0(param_1,param_2," id=%lld",local_34,local_30);
      } while ((int)uVar6 < param_3);
    }
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return uVar6;
}

