
int __regparm3 fts3PendingTermsDocid(Fts3Table *p,int bDelete,int iLangid,sqlite_int64 iDocid)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *(int *)((int)&p->iPrevDocid + 4);
  uVar1 = (uint)((uint)iDocid < (uint)p->iPrevDocid);
  iVar2 = iDocid._4_4_ - iVar3;
  if ((SBORROW4(iDocid._4_4_,iVar3) != SBORROW4(iVar2,uVar1)) == (int)(iVar2 - uVar1) < 0) {
    if (iDocid == p->iPrevDocid) {
      if (p->bPrevDelete == 0) goto LAB_000e3c19;
      iVar3 = p->iPrevLangid;
    }
    else {
      iVar3 = p->iPrevLangid;
    }
    if ((iVar3 == iLangid) && (p->nPendingData <= p->nMaxPendingData)) goto LAB_000e3c2c;
  }
LAB_000e3c19:
  iVar3 = sqlite3Fts3PendingTermsFlush(p);
  if (iVar3 != 0) {
    return iVar3;
  }
LAB_000e3c2c:
  p->iPrevDocid = iDocid;
  p->iPrevLangid = iLangid;
  p->bPrevDelete = bDelete;
  return 0;
}



int __regparm3 FUN_000e3be0(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)

{
  uint uVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 0x110);
  uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));
  if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==
      (int)((param_5 - iVar2) - uVar1) < 0) {
    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {
      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;
      iVar2 = *(int *)(param_1 + 0x114);
    }
    else {
      iVar2 = *(int *)(param_1 + 0x114);
    }
    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))
    goto LAB_000e3c2c;
  }
LAB_000e3c19:
  iVar2 = FUN_000e3910();
  if (iVar2 != 0) {
    return iVar2;
  }
LAB_000e3c2c:
  *(uint *)(param_1 + 0x10c) = param_4;
  *(int *)(param_1 + 0x110) = param_5;
  *(int *)(param_1 + 0x114) = param_3;
  *(undefined4 *)(param_1 + 0x118) = param_2;
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x1c
MOV EAX,dword ptr [EAX + 0x10c]
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],EDX
MOV EDX,dword ptr [EBX + 0x110]
CMP ESI,EAX
MOV EBP,EDI
SBB EBP,EDX
JL 0x000e3c19
XOR EAX,ESI
XOR EDX,EDI
OR EDX,EAX
JZ 0x000e3c58
CMP dword ptr [EBX + 0x114],ECX
JZ 0x000e3c6a
MOV EAX,EBX
MOV dword ptr [ESP + 0x8],ECX
CALL 0x000e3910
MOV ECX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JNZ 0x000e3c4a
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EBX + 0x10c],ESI
MOV dword ptr [EBX + 0x110],EDI
MOV dword ptr [EBX + 0x114],ECX
MOV dword ptr [EBX + 0x118],EAX
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX + 0x118]
TEST EAX,EAX
JZ 0x000e3c19
CMP dword ptr [EBX + 0x114],ECX
JNZ 0x000e3c19
MOV EAX,dword ptr [EBX + 0x104]
CMP dword ptr [EBX + 0x108],EAX
JG 0x000e3c19
JMP 0x000e3c2c
(translation_unit "int __regparm3 FUN_000e3be0(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x110);\n  uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));\n  if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar2 = FUN_000e3910();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;\n  *(int *)(param_1 + 0x110) = param_5;\n  *(int *)(param_1 + 0x114) = param_3;\n  *(undefined4 *)(param_1 + 0x118) = param_2;\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_000e3be0(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x110);\n  uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));\n  if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar2 = FUN_000e3910();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;\n  *(int *)(param_1 + 0x110) = param_5;\n  *(int *)(param_1 + 0x114) = param_3;\n  *(undefined4 *)(param_1 + 0x118) = param_2;\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000e3be0(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x110);\n  uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));\n  if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar2 = FUN_000e3910();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;\n  *(int *)(param_1 + 0x110) = param_5;\n  *(int *)(param_1 + 0x114) = param_3;\n  *(undefined4 *)(param_1 + 0x118) = param_2;\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x110);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x110)" identifier = (pointer_expression "*(int *)(param_1 + 0x110)" * (cast_expression "(int *)(param_1 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));" (assignment_expression "uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c))" identifier = (call_expression "(uint)(param_4 < *(uint *)(param_1 + 0x10c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 < *(uint *)(param_1 + 0x10c))" ( (binary_expression "param_4 < *(uint *)(param_1 + 0x10c)" identifier < (pointer_expression "*(uint *)(param_1 + 0x10c)" * (cast_expression "(uint *)(param_1 + 0x10c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) ))))) )))) ;) (if_statement "if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }" if (parenthesized_expression "((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0)" ( (binary_expression "(SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0" (parenthesized_expression "(SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1))" ( (binary_expression "SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)" (call_expression "SBORROW4(param_5,iVar2)" identifier (argument_list "(param_5,iVar2)" ( identifier , identifier ))) != (call_expression "SBORROW4(param_5 - iVar2,uVar1)" identifier (argument_list "(param_5 - iVar2,uVar1)" ( (binary_expression "param_5 - iVar2" identifier - identifier) , identifier )))) )) == (binary_expression "(int)((param_5 - iVar2) - uVar1) < 0" (cast_expression "(int)((param_5 - iVar2) - uVar1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((param_5 - iVar2) - uVar1)" ( (binary_expression "(param_5 - iVar2) - uVar1" (parenthesized_expression "(param_5 - iVar2)" ( (binary_expression "param_5 - iVar2" identifier - identifier) )) - identifier) ))) < number_literal)) )) (compound_statement "{\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }" { (if_statement "if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" if (parenthesized_expression "(iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4)" ( (binary_expression "iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4" (binary_expression "iVar2 == param_5" identifier == identifier) && (binary_expression "*(uint *)(param_1 + 0x10c) == param_4" (pointer_expression "*(uint *)(param_1 + 0x10c)" * (cast_expression "(uint *)(param_1 + 0x10c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) == identifier)) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" { (if_statement "if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;" if (parenthesized_expression "(*(int *)(param_1 + 0x118) == 0)" ( (binary_expression "*(int *)(param_1 + 0x118) == 0" (pointer_expression "*(int *)(param_1 + 0x118)" * (cast_expression "(int *)(param_1 + 0x118)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x118)" ( (binary_expression "param_1 + 0x118" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000e3c19;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)(param_1 + 0x114);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x114)" identifier = (pointer_expression "*(int *)(param_1 + 0x114)" * (cast_expression "(int *)(param_1 + 0x114)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x114)" ( (binary_expression "param_1 + 0x114" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" else (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x114);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x114)" identifier = (pointer_expression "*(int *)(param_1 + 0x114)" * (cast_expression "(int *)(param_1 + 0x114)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x114)" ( (binary_expression "param_1 + 0x114" identifier + number_literal) ))))) ;) }))) (if_statement "if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;" if (parenthesized_expression "((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))" ( (binary_expression "(iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104))" (parenthesized_expression "(iVar2 == param_3)" ( (binary_expression "iVar2 == param_3" identifier == identifier) )) && (parenthesized_expression "(*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104))" ( (binary_expression "*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) <= (pointer_expression "*(int *)(param_1 + 0x104)" * (cast_expression "(int *)(param_1 + 0x104)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x104)" ( (binary_expression "param_1 + 0x104" identifier + number_literal) ))))) ))) )) (goto_statement "goto LAB_000e3c2c;" goto statement_identifier ;)) })) (labeled_statement "LAB_000e3c19:\n  iVar2 = FUN_000e3910();" statement_identifier : (expression_statement "iVar2 = FUN_000e3910();" (assignment_expression "iVar2 = FUN_000e3910()" identifier = (call_expression "FUN_000e3910()" identifier (argument_list "()" ( )))) ;)) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (labeled_statement "LAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;" statement_identifier : (expression_statement "*(uint *)(param_1 + 0x10c) = param_4;" (assignment_expression "*(uint *)(param_1 + 0x10c) = param_4" (pointer_expression "*(uint *)(param_1 + 0x10c)" * (cast_expression "(uint *)(param_1 + 0x10c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(int *)(param_1 + 0x110) = param_5;" (assignment_expression "*(int *)(param_1 + 0x110) = param_5" (pointer_expression "*(int *)(param_1 + 0x110)" * (cast_expression "(int *)(param_1 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x114) = param_3;" (assignment_expression "*(int *)(param_1 + 0x114) = param_3" (pointer_expression "*(int *)(param_1 + 0x114)" * (cast_expression "(int *)(param_1 + 0x114)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x114)" ( (binary_expression "param_1 + 0x114" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x118) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x118) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x118)" * (cast_expression "(undefined4 *)(param_1 + 0x118)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x118)" ( (binary_expression "param_1 + 0x118" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 fts3PendingTermsDocid(Fts3Table *p,int bDelete,int iLangid,sqlite_int64 iDocid)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)((int)&p->iPrevDocid + 4);\n  uVar1 = (uint)((uint)iDocid < (uint)p->iPrevDocid);\n  iVar2 = iDocid._4_4_ - iVar3;\n  if ((SBORROW4(iDocid._4_4_,iVar3) != SBORROW4(iVar2,uVar1)) == (int)(iVar2 - uVar1) < 0) {\n    if (iDocid == p->iPrevDocid) {\n      if (p->bPrevDelete == 0) goto LAB_000e3c19;\n      iVar3 = p->iPrevLangid;\n    }\n    else {\n      iVar3 = p->iPrevLangid;\n    }\n    if ((iVar3 == iLangid) && (p->nPendingData <= p->nMaxPendingData)) goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar3 = sqlite3Fts3PendingTermsFlush(p);\n  if (iVar3 != 0) {\n    return iVar3;\n  }\nLAB_000e3c2c:\n  p->iPrevDocid = iDocid;\n  p->iPrevLangid = iLangid;\n  p->bPrevDelete = bDelete;\n  return 0;\n}\n\n" (function_definition "int __regparm3 fts3PendingTermsDocid(Fts3Table *p,int bDelete,int iLangid,sqlite_int64 iDocid)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)((int)&p->iPrevDocid + 4);\n  uVar1 = (uint)((uint)iDocid < (uint)p->iPrevDocid);\n  iVar2 = iDocid._4_4_ - iVar3;\n  if ((SBORROW4(iDocid._4_4_,iVar3) != SBORROW4(iVar2,uVar1)) == (int)(iVar2 - uVar1) < 0) {\n    if (iDocid == p->iPrevDocid) {\n      if (p->bPrevDelete == 0) goto LAB_000e3c19;\n      iVar3 = p->iPrevLangid;\n    }\n    else {\n      iVar3 = p->iPrevLangid;\n    }\n    if ((iVar3 == iLangid) && (p->nPendingData <= p->nMaxPendingData)) goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar3 = sqlite3Fts3PendingTermsFlush(p);\n  if (iVar3 != 0) {\n    return iVar3;\n  }\nLAB_000e3c2c:\n  p->iPrevDocid = iDocid;\n  p->iPrevLangid = iLangid;\n  p->bPrevDelete = bDelete;\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "fts3PendingTermsDocid(Fts3Table *p,int bDelete,int iLangid,sqlite_int64 iDocid)" identifier (parameter_list "(Fts3Table *p,int bDelete,int iLangid,sqlite_int64 iDocid)" ( (parameter_declaration "Fts3Table *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int bDelete" primitive_type identifier) , (parameter_declaration "int iLangid" primitive_type identifier) , (parameter_declaration "sqlite_int64 iDocid" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)((int)&p->iPrevDocid + 4);\n  uVar1 = (uint)((uint)iDocid < (uint)p->iPrevDocid);\n  iVar2 = iDocid._4_4_ - iVar3;\n  if ((SBORROW4(iDocid._4_4_,iVar3) != SBORROW4(iVar2,uVar1)) == (int)(iVar2 - uVar1) < 0) {\n    if (iDocid == p->iPrevDocid) {\n      if (p->bPrevDelete == 0) goto LAB_000e3c19;\n      iVar3 = p->iPrevLangid;\n    }\n    else {\n      iVar3 = p->iPrevLangid;\n    }\n    if ((iVar3 == iLangid) && (p->nPendingData <= p->nMaxPendingData)) goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar3 = sqlite3Fts3PendingTermsFlush(p);\n  if (iVar3 != 0) {\n    return iVar3;\n  }\nLAB_000e3c2c:\n  p->iPrevDocid = iDocid;\n  p->iPrevLangid = iLangid;\n  p->bPrevDelete = bDelete;\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)((int)&p->iPrevDocid + 4);" (assignment_expression "iVar3 = *(int *)((int)&p->iPrevDocid + 4)" identifier = (pointer_expression "*(int *)((int)&p->iPrevDocid + 4)" * (cast_expression "(int *)((int)&p->iPrevDocid + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->iPrevDocid + 4)" ( (binary_expression "(int)&p->iPrevDocid + 4" (cast_expression "(int)&p->iPrevDocid" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->iPrevDocid" & (field_expression "p->iPrevDocid" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "uVar1 = (uint)((uint)iDocid < (uint)p->iPrevDocid);" (assignment_expression "uVar1 = (uint)((uint)iDocid < (uint)p->iPrevDocid)" identifier = (call_expression "(uint)((uint)iDocid < (uint)p->iPrevDocid)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)iDocid < (uint)p->iPrevDocid)" ( (binary_expression "(uint)iDocid < (uint)p->iPrevDocid" (cast_expression "(uint)iDocid" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)p->iPrevDocid" ( (type_descriptor "uint" type_identifier) ) (field_expression "p->iPrevDocid" identifier -> field_identifier))) )))) ;) (expression_statement "iVar2 = iDocid._4_4_ - iVar3;" (assignment_expression "iVar2 = iDocid._4_4_ - iVar3" identifier = (binary_expression "iDocid._4_4_ - iVar3" (field_expression "iDocid._4_4_" identifier . field_identifier) - identifier)) ;) (if_statement "if ((SBORROW4(iDocid._4_4_,iVar3) != SBORROW4(iVar2,uVar1)) == (int)(iVar2 - uVar1) < 0) {\n    if (iDocid == p->iPrevDocid) {\n      if (p->bPrevDelete == 0) goto LAB_000e3c19;\n      iVar3 = p->iPrevLangid;\n    }\n    else {\n      iVar3 = p->iPrevLangid;\n    }\n    if ((iVar3 == iLangid) && (p->nPendingData <= p->nMaxPendingData)) goto LAB_000e3c2c;\n  }" if (parenthesized_expression "((SBORROW4(iDocid._4_4_,iVar3) != SBORROW4(iVar2,uVar1)) == (int)(iVar2 - uVar1) < 0)" ( (binary_expression "(SBORROW4(iDocid._4_4_,iVar3) != SBORROW4(iVar2,uVar1)) == (int)(iVar2 - uVar1) < 0" (parenthesized_expression "(SBORROW4(iDocid._4_4_,iVar3) != SBORROW4(iVar2,uVar1))" ( (binary_expression "SBORROW4(iDocid._4_4_,iVar3) != SBORROW4(iVar2,uVar1)" (call_expression "SBORROW4(iDocid._4_4_,iVar3)" identifier (argument_list "(iDocid._4_4_,iVar3)" ( (field_expression "iDocid._4_4_" identifier . field_identifier) , identifier ))) != (call_expression "SBORROW4(iVar2,uVar1)" identifier (argument_list "(iVar2,uVar1)" ( identifier , identifier )))) )) == (binary_expression "(int)(iVar2 - uVar1) < 0" (cast_expression "(int)(iVar2 - uVar1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar2 - uVar1)" ( (binary_expression "iVar2 - uVar1" identifier - identifier) ))) < number_literal)) )) (compound_statement "{\n    if (iDocid == p->iPrevDocid) {\n      if (p->bPrevDelete == 0) goto LAB_000e3c19;\n      iVar3 = p->iPrevLangid;\n    }\n    else {\n      iVar3 = p->iPrevLangid;\n    }\n    if ((iVar3 == iLangid) && (p->nPendingData <= p->nMaxPendingData)) goto LAB_000e3c2c;\n  }" { (if_statement "if (iDocid == p->iPrevDocid) {\n      if (p->bPrevDelete == 0) goto LAB_000e3c19;\n      iVar3 = p->iPrevLangid;\n    }\n    else {\n      iVar3 = p->iPrevLangid;\n    }" if (parenthesized_expression "(iDocid == p->iPrevDocid)" ( (binary_expression "iDocid == p->iPrevDocid" identifier == (field_expression "p->iPrevDocid" identifier -> field_identifier)) )) (compound_statement "{\n      if (p->bPrevDelete == 0) goto LAB_000e3c19;\n      iVar3 = p->iPrevLangid;\n    }" { (if_statement "if (p->bPrevDelete == 0) goto LAB_000e3c19;" if (parenthesized_expression "(p->bPrevDelete == 0)" ( (binary_expression "p->bPrevDelete == 0" (field_expression "p->bPrevDelete" identifier -> field_identifier) == number_literal) )) (goto_statement "goto LAB_000e3c19;" goto statement_identifier ;)) (expression_statement "iVar3 = p->iPrevLangid;" (assignment_expression "iVar3 = p->iPrevLangid" identifier = (field_expression "p->iPrevLangid" identifier -> field_identifier)) ;) }) (else_clause "else {\n      iVar3 = p->iPrevLangid;\n    }" else (compound_statement "{\n      iVar3 = p->iPrevLangid;\n    }" { (expression_statement "iVar3 = p->iPrevLangid;" (assignment_expression "iVar3 = p->iPrevLangid" identifier = (field_expression "p->iPrevLangid" identifier -> field_identifier)) ;) }))) (if_statement "if ((iVar3 == iLangid) && (p->nPendingData <= p->nMaxPendingData)) goto LAB_000e3c2c;" if (parenthesized_expression "((iVar3 == iLangid) && (p->nPendingData <= p->nMaxPendingData))" ( (binary_expression "(iVar3 == iLangid) && (p->nPendingData <= p->nMaxPendingData)" (parenthesized_expression "(iVar3 == iLangid)" ( (binary_expression "iVar3 == iLangid" identifier == identifier) )) && (parenthesized_expression "(p->nPendingData <= p->nMaxPendingData)" ( (binary_expression "p->nPendingData <= p->nMaxPendingData" (field_expression "p->nPendingData" identifier -> field_identifier) <= (field_expression "p->nMaxPendingData" identifier -> field_identifier)) ))) )) (goto_statement "goto LAB_000e3c2c;" goto statement_identifier ;)) })) (labeled_statement "LAB_000e3c19:\n  iVar3 = sqlite3Fts3PendingTermsFlush(p);" statement_identifier : (expression_statement "iVar3 = sqlite3Fts3PendingTermsFlush(p);" (assignment_expression "iVar3 = sqlite3Fts3PendingTermsFlush(p)" identifier = (call_expression "sqlite3Fts3PendingTermsFlush(p)" identifier (argument_list "(p)" ( identifier )))) ;)) (if_statement "if (iVar3 != 0) {\n    return iVar3;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) })) (labeled_statement "LAB_000e3c2c:\n  p->iPrevDocid = iDocid;" statement_identifier : (expression_statement "p->iPrevDocid = iDocid;" (assignment_expression "p->iPrevDocid = iDocid" (field_expression "p->iPrevDocid" identifier -> field_identifier) = identifier) ;)) (expression_statement "p->iPrevLangid = iLangid;" (assignment_expression "p->iPrevLangid = iLangid" (field_expression "p->iPrevLangid" identifier -> field_identifier) = identifier) ;) (expression_statement "p->bPrevDelete = bDelete;" (assignment_expression "p->bPrevDelete = bDelete" (field_expression "p->bPrevDelete" identifier -> field_identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 FUN_000e3be0(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x110);\n  uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));\n  if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar2 = FUN_000e3910();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;\n  *(int *)(param_1 + 0x110) = param_5;\n  *(int *)(param_1 + 0x114) = param_3;\n  *(undefined4 *)(param_1 + 0x118) = param_2;\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_000e3be0(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x110);\n  uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));\n  if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar2 = FUN_000e3910();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;\n  *(int *)(param_1 + 0x110) = param_5;\n  *(int *)(param_1 + 0x114) = param_3;\n  *(undefined4 *)(param_1 + 0x118) = param_2;\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000e3be0(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x110);\n  uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));\n  if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar2 = FUN_000e3910();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;\n  *(int *)(param_1 + 0x110) = param_5;\n  *(int *)(param_1 + 0x114) = param_3;\n  *(undefined4 *)(param_1 + 0x118) = param_2;\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x110);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x110)" identifier = (pointer_expression "*(int *)(param_1 + 0x110)" * (cast_expression "(int *)(param_1 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));" (assignment_expression "uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c))" identifier = (call_expression "(uint)(param_4 < *(uint *)(param_1 + 0x10c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 < *(uint *)(param_1 + 0x10c))" ( (binary_expression "param_4 < *(uint *)(param_1 + 0x10c)" identifier < (pointer_expression "*(uint *)(param_1 + 0x10c)" * (cast_expression "(uint *)(param_1 + 0x10c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) ))))) )))) ;) (if_statement "if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }" if (parenthesized_expression "((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0)" ( (binary_expression "(SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0" (parenthesized_expression "(SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1))" ( (binary_expression "SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)" (call_expression "SBORROW4(param_5,iVar2)" identifier (argument_list "(param_5,iVar2)" ( identifier , identifier ))) != (call_expression "SBORROW4(param_5 - iVar2,uVar1)" identifier (argument_list "(param_5 - iVar2,uVar1)" ( (binary_expression "param_5 - iVar2" identifier - identifier) , identifier )))) )) == (binary_expression "(int)((param_5 - iVar2) - uVar1) < 0" (cast_expression "(int)((param_5 - iVar2) - uVar1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((param_5 - iVar2) - uVar1)" ( (binary_expression "(param_5 - iVar2) - uVar1" (parenthesized_expression "(param_5 - iVar2)" ( (binary_expression "param_5 - iVar2" identifier - identifier) )) - identifier) ))) < number_literal)) )) (compound_statement "{\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }" { (if_statement "if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" if (parenthesized_expression "(iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4)" ( (binary_expression "iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4" (binary_expression "iVar2 == param_5" identifier == identifier) && (binary_expression "*(uint *)(param_1 + 0x10c) == param_4" (pointer_expression "*(uint *)(param_1 + 0x10c)" * (cast_expression "(uint *)(param_1 + 0x10c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) == identifier)) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" { (if_statement "if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;" if (parenthesized_expression "(*(int *)(param_1 + 0x118) == 0)" ( (binary_expression "*(int *)(param_1 + 0x118) == 0" (pointer_expression "*(int *)(param_1 + 0x118)" * (cast_expression "(int *)(param_1 + 0x118)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x118)" ( (binary_expression "param_1 + 0x118" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000e3c19;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)(param_1 + 0x114);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x114)" identifier = (pointer_expression "*(int *)(param_1 + 0x114)" * (cast_expression "(int *)(param_1 + 0x114)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x114)" ( (binary_expression "param_1 + 0x114" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" else (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x114);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x114)" identifier = (pointer_expression "*(int *)(param_1 + 0x114)" * (cast_expression "(int *)(param_1 + 0x114)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x114)" ( (binary_expression "param_1 + 0x114" identifier + number_literal) ))))) ;) }))) (if_statement "if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;" if (parenthesized_expression "((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))" ( (binary_expression "(iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104))" (parenthesized_expression "(iVar2 == param_3)" ( (binary_expression "iVar2 == param_3" identifier == identifier) )) && (parenthesized_expression "(*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104))" ( (binary_expression "*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) <= (pointer_expression "*(int *)(param_1 + 0x104)" * (cast_expression "(int *)(param_1 + 0x104)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x104)" ( (binary_expression "param_1 + 0x104" identifier + number_literal) ))))) ))) )) (goto_statement "goto LAB_000e3c2c;" goto statement_identifier ;)) })) (labeled_statement "LAB_000e3c19:\n  iVar2 = FUN_000e3910();" statement_identifier : (expression_statement "iVar2 = FUN_000e3910();" (assignment_expression "iVar2 = FUN_000e3910()" identifier = (call_expression "FUN_000e3910()" identifier (argument_list "()" ( )))) ;)) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (labeled_statement "LAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;" statement_identifier : (expression_statement "*(uint *)(param_1 + 0x10c) = param_4;" (assignment_expression "*(uint *)(param_1 + 0x10c) = param_4" (pointer_expression "*(uint *)(param_1 + 0x10c)" * (cast_expression "(uint *)(param_1 + 0x10c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(int *)(param_1 + 0x110) = param_5;" (assignment_expression "*(int *)(param_1 + 0x110) = param_5" (pointer_expression "*(int *)(param_1 + 0x110)" * (cast_expression "(int *)(param_1 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x114) = param_3;" (assignment_expression "*(int *)(param_1 + 0x114) = param_3" (pointer_expression "*(int *)(param_1 + 0x114)" * (cast_expression "(int *)(param_1 + 0x114)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x114)" ( (binary_expression "param_1 + 0x114" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x118) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x118) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x118)" * (cast_expression "(undefined4 *)(param_1 + 0x118)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x118)" ( (binary_expression "param_1 + 0x118" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) != (call_expression IDENT (argument_list ( (binary_expression IDENT - IDENT) , IDENT )))) )) == (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - IDENT) ))) < LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == IDENT) && (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (goto_statement goto statement_identifier ;)) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_000e3be0(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x110);\n  uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));\n  if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar2 = FUN_000e3910();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;\n  *(int *)(param_1 + 0x110) = param_5;\n  *(int *)(param_1 + 0x114) = param_3;\n  *(undefined4 *)(param_1 + 0x118) = param_2;\n  return 0;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000e3be0(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)" (identifier "FUN_000e3be0") (parameter_list "(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x110);\n  uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));\n  if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }\nLAB_000e3c19:\n  iVar2 = FUN_000e3910();\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;\n  *(int *)(param_1 + 0x110) = param_5;\n  *(int *)(param_1 + 0x114) = param_3;\n  *(undefined4 *)(param_1 + 0x118) = param_2;\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x110);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x110)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x110)" (* "*") (cast_expression "(int *)(param_1 + 0x110)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x110)" (( "(") (binary_expression "param_1 + 0x110" (identifier "param_1") (+ "+") (number_literal "0x110")) () ")"))))) (; ";")) (expression_statement "uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));" (assignment_expression "uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c))" (identifier "uVar1") (= "=") (call_expression "(uint)(param_4 < *(uint *)(param_1 + 0x10c))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_4 < *(uint *)(param_1 + 0x10c))" (( "(") (binary_expression "param_4 < *(uint *)(param_1 + 0x10c)" (identifier "param_4") (< "<") (pointer_expression "*(uint *)(param_1 + 0x10c)" (* "*") (cast_expression "(uint *)(param_1 + 0x10c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")"))))) () ")")))) (; ";")) (if_statement "if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0) {\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }" (if "if") (parenthesized_expression "((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0)" (( "(") (binary_expression "(SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==\n      (int)((param_5 - iVar2) - uVar1) < 0" (parenthesized_expression "(SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1))" (( "(") (binary_expression "SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)" (call_expression "SBORROW4(param_5,iVar2)" (identifier "SBORROW4") (argument_list "(param_5,iVar2)" (( "(") (identifier "param_5") (, ",") (identifier "iVar2") () ")"))) (!= "!=") (call_expression "SBORROW4(param_5 - iVar2,uVar1)" (identifier "SBORROW4") (argument_list "(param_5 - iVar2,uVar1)" (( "(") (binary_expression "param_5 - iVar2" (identifier "param_5") (- "-") (identifier "iVar2")) (, ",") (identifier "uVar1") () ")")))) () ")")) (== "==") (binary_expression "(int)((param_5 - iVar2) - uVar1) < 0" (cast_expression "(int)((param_5 - iVar2) - uVar1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((param_5 - iVar2) - uVar1)" (( "(") (binary_expression "(param_5 - iVar2) - uVar1" (parenthesized_expression "(param_5 - iVar2)" (( "(") (binary_expression "param_5 - iVar2" (identifier "param_5") (- "-") (identifier "iVar2")) () ")")) (- "-") (identifier "uVar1")) () ")"))) (< "<") (number_literal "0"))) () ")")) (compound_statement "{\n    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;\n  }" ({ "{") (if_statement "if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" (if "if") (parenthesized_expression "(iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4)" (( "(") (binary_expression "iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4" (binary_expression "iVar2 == param_5" (identifier "iVar2") (== "==") (identifier "param_5")) (&& "&&") (binary_expression "*(uint *)(param_1 + 0x10c) == param_4" (pointer_expression "*(uint *)(param_1 + 0x10c)" (* "*") (cast_expression "(uint *)(param_1 + 0x10c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")")))) (== "==") (identifier "param_4"))) () ")")) (compound_statement "{\n      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x118) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x118) == 0" (pointer_expression "*(int *)(param_1 + 0x118)" (* "*") (cast_expression "(int *)(param_1 + 0x118)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x118)" (( "(") (binary_expression "param_1 + 0x118" (identifier "param_1") (+ "+") (number_literal "0x118")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000e3c19;" (goto "goto") (statement_identifier "LAB_000e3c19") (; ";"))) (expression_statement "iVar2 = *(int *)(param_1 + 0x114);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x114)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x114)" (* "*") (cast_expression "(int *)(param_1 + 0x114)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x114)" (( "(") (binary_expression "param_1 + 0x114" (identifier "param_1") (+ "+") (number_literal "0x114")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" (else "else") (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x114);\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x114);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x114)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x114)" (* "*") (cast_expression "(int *)(param_1 + 0x114)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x114)" (( "(") (binary_expression "param_1 + 0x114" (identifier "param_1") (+ "+") (number_literal "0x114")) () ")"))))) (; ";")) (} "}")))) (if_statement "if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))\n    goto LAB_000e3c2c;" (if "if") (parenthesized_expression "((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))" (( "(") (binary_expression "(iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104))" (parenthesized_expression "(iVar2 == param_3)" (( "(") (binary_expression "iVar2 == param_3" (identifier "iVar2") (== "==") (identifier "param_3")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104))" (( "(") (binary_expression "*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)" (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (<= "<=") (pointer_expression "*(int *)(param_1 + 0x104)" (* "*") (cast_expression "(int *)(param_1 + 0x104)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x104)" (( "(") (binary_expression "param_1 + 0x104" (identifier "param_1") (+ "+") (number_literal "0x104")) () ")"))))) () ")"))) () ")")) (goto_statement "goto LAB_000e3c2c;" (goto "goto") (statement_identifier "LAB_000e3c2c") (; ";"))) (} "}"))) (labeled_statement "LAB_000e3c19:\n  iVar2 = FUN_000e3910();" (statement_identifier "LAB_000e3c19") (: ":") (expression_statement "iVar2 = FUN_000e3910();" (assignment_expression "iVar2 = FUN_000e3910()" (identifier "iVar2") (= "=") (call_expression "FUN_000e3910()" (identifier "FUN_000e3910") (argument_list "()" (( "(") () ")")))) (; ";"))) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (labeled_statement "LAB_000e3c2c:\n  *(uint *)(param_1 + 0x10c) = param_4;" (statement_identifier "LAB_000e3c2c") (: ":") (expression_statement "*(uint *)(param_1 + 0x10c) = param_4;" (assignment_expression "*(uint *)(param_1 + 0x10c) = param_4" (pointer_expression "*(uint *)(param_1 + 0x10c)" (* "*") (cast_expression "(uint *)(param_1 + 0x10c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")")))) (= "=") (identifier "param_4")) (; ";"))) (expression_statement "*(int *)(param_1 + 0x110) = param_5;" (assignment_expression "*(int *)(param_1 + 0x110) = param_5" (pointer_expression "*(int *)(param_1 + 0x110)" (* "*") (cast_expression "(int *)(param_1 + 0x110)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x110)" (( "(") (binary_expression "param_1 + 0x110" (identifier "param_1") (+ "+") (number_literal "0x110")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*(int *)(param_1 + 0x114) = param_3;" (assignment_expression "*(int *)(param_1 + 0x114) = param_3" (pointer_expression "*(int *)(param_1 + 0x114)" (* "*") (cast_expression "(int *)(param_1 + 0x114)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x114)" (( "(") (binary_expression "param_1 + 0x114" (identifier "param_1") (+ "+") (number_literal "0x114")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x118) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x118) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x118)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x118)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x118)" (( "(") (binary_expression "param_1 + 0x118" (identifier "param_1") (+ "+") (number_literal "0x118")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *p,int bDelete,int var_6,type_2 var_5)

{
  type_3 var_4;
  int var_3;
  int var_1;
  
  var_1 = *(int *)((int)&p->iPrevDocid + 4);
  var_4 = (type_3)((type_3)var_5 < (type_3)p->iPrevDocid);
  var_3 = var_5._4_4_ - var_1;
  if ((var_2(var_5._4_4_,var_1) != var_2(var_3,var_4)) == (int)(var_3 - var_4) < 0) {
    if (var_5 == p->iPrevDocid) {
      if (p->bPrevDelete == 0) goto LAB_000e3c19;
      var_1 = p->iPrevLangid;
    }
    else {
      var_1 = p->iPrevLangid;
    }
    if ((var_1 == var_6) && (p->nPendingData <= p->nMaxPendingData)) goto LAB_000e3c2c;
  }
LAB_000e3c19:
  var_1 = var_7(p);
  if (var_1 != 0) {
    return var_1;
  }
LAB_000e3c2c:
  p->iPrevDocid = var_5;
  p->iPrevLangid = var_6;
  p->bPrevDelete = bDelete;
  return 0;
}


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

int __regparm3 MASKED(int param_1,undefined4 param_2,int param_3,uint param_4,int param_5)

{
  uint uVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 0x110);
  uVar1 = (uint)(param_4 < *(uint *)(param_1 + 0x10c));
  if ((SBORROW4(param_5,iVar2) != SBORROW4(param_5 - iVar2,uVar1)) ==
      (int)((param_5 - iVar2) - uVar1) < 0) {
    if (iVar2 == param_5 && *(uint *)(param_1 + 0x10c) == param_4) {
      if (*(int *)(param_1 + 0x118) == 0) goto LAB_000e3c19;
      iVar2 = *(int *)(param_1 + 0x114);
    }
    else {
      iVar2 = *(int *)(param_1 + 0x114);
    }
    if ((iVar2 == param_3) && (*(int *)(param_1 + 0x108) <= *(int *)(param_1 + 0x104)))
    goto LAB_000e3c2c;
  }
LAB_000e3c19:
  iVar2 = FUN_000e3910();
  if (iVar2 != 0) {
    return iVar2;
  }
LAB_000e3c2c:
  *(uint *)(param_1 + 0x10c) = param_4;
  *(int *)(param_1 + 0x110) = param_5;
  *(int *)(param_1 + 0x114) = param_3;
  *(undefined4 *)(param_1 + 0x118) = param_2;
  return 0;
}

