
int fts3ExprTermOffsetInit(Fts3Expr *pExpr,int iPhrase,void *ctx)

{
  int iVar1;
  int iVar2;
  undefined8 *puVar3;
  long in_FS_OFFSET;
  int iPos;
  char *pList;
  long local_30;
  
                    /* WARNING: Load size is inaccurate */
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  iPos = 0;
  iVar1 = sqlite3Fts3EvalPhrasePoslist(*ctx,pExpr,*(int *)((long)ctx + 8),&pList);
  iVar2 = pExpr->pPhrase->nToken;
  if (pList != (char *)0x0) {
    fts3GetDeltaPosition(&pList,&iPos);
  }
  if (0 < iVar2) {
    iVar2 = iVar2 + -1;
    do {
      puVar3 = (undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18));
      *(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1;
      *(int *)((long)puVar3 + 0xc) = iVar2;
      iVar2 = iVar2 + -1;
      *puVar3 = pList;
      *(int *)(puVar3 + 1) = iPos;
    } while (iVar2 != -1);
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined4 FUN_001de420(long param_1,undefined8 param_2,undefined8 *param_3)

{
  undefined4 uVar1;
  int iVar2;
  long *plVar3;
  long in_FS_OFFSET;
  undefined4 local_3c;
  long local_38;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  local_3c = 0;
  uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);
  iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);
  if (local_38 != 0) {
    FUN_00114090(&local_38,&local_3c);
  }
  if (0 < iVar2) {
    iVar2 = iVar2 + -1;
    do {
      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);
      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;
      *(int *)((long)plVar3 + 0xc) = iVar2;
      iVar2 = iVar2 + -1;
      *plVar3 = local_38;
      *(undefined4 *)(plVar3 + 1) = local_3c;
    } while (iVar2 != -1);
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R13
MOV RSI,RDI
PUSH R12
PUSH RBP
MOV RBP,RDX
PUSH RBX
MOV RBX,RDI
SUB RSP,0x28
MOV EDX,dword ptr [RDX + 0x8]
MOV RDI,qword ptr [RBP]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
LEA R12,[RSP + 0x10]
MOV dword ptr [RSP + 0xc],0x0
MOV RCX,R12
CALL 0x001dcfe0
CMP qword ptr [RSP + 0x10],0x0
MOV R13D,EAX
MOV RAX,qword ptr [RBX + 0x20]
MOV EBX,dword ptr [RAX + 0x50]
JZ 0x001de47e
LEA RSI,[RSP + 0xc]
MOV RDI,R12
CALL 0x00114090
TEST EBX,EBX
JLE 0x001de4b4
LEA ECX,[RBX + -0x1]
NOP dword ptr [RAX]
MOVSXD RDX,dword ptr [RBP + 0xc]
LEA ESI,[RDX + 0x1]
SHL RDX,0x4
ADD RDX,qword ptr [RBP + 0x18]
MOV dword ptr [RBP + 0xc],ESI
MOV RSI,qword ptr [RSP + 0x10]
MOV dword ptr [RDX + 0xc],ECX
SUB ECX,0x1
MOV qword ptr [RDX],RSI
MOV ESI,dword ptr [RSP + 0xc]
MOV dword ptr [RDX + 0x8],ESI
CMP ECX,-0x1
JNZ 0x001de488
MOV RDI,qword ptr [RSP + 0x18]
XOR RDI,qword ptr FS:[0x28]
MOV EAX,R13D
JNZ 0x001de4d2
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
RET
CALL 0x0010a140
(translation_unit "undefined4 FUN_001de420(long param_1,undefined8 param_2,undefined8 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long *plVar3;\n  long in_FS_OFFSET;\n  undefined4 local_3c;\n  long local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_3c = 0;\n  uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);\n  iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);\n  if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 FUN_001de420(long param_1,undefined8 param_2,undefined8 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long *plVar3;\n  long in_FS_OFFSET;\n  undefined4 local_3c;\n  long local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_3c = 0;\n  uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);\n  iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);\n  if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_001de420(long param_1,undefined8 param_2,undefined8 *param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  long *plVar3;\n  long in_FS_OFFSET;\n  undefined4 local_3c;\n  long local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_3c = 0;\n  uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);\n  iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);\n  if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "long local_38;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);" (assignment_expression "uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38)" identifier = (call_expression "FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38)" identifier (argument_list "(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38)" ( (pointer_expression "*param_3" * identifier) , identifier , (pointer_expression "*(undefined4 *)(param_3 + 1)" * (cast_expression "(undefined4 *)(param_3 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) )))) , (pointer_expression "&local_38" & identifier) )))) ;) (expression_statement "iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);" (assignment_expression "iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50)" identifier = (pointer_expression "*(int *)(*(long *)(param_1 + 0x20) + 0x50)" * (cast_expression "(int *)(*(long *)(param_1 + 0x20) + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + 0x50)" ( (binary_expression "*(long *)(param_1 + 0x20) + 0x50" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }" if (parenthesized_expression "(local_38 != 0)" ( (binary_expression "local_38 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00114090(&local_38,&local_3c);\n  }" { (expression_statement "FUN_00114090(&local_38,&local_3c);" (call_expression "FUN_00114090(&local_38,&local_3c)" identifier (argument_list "(&local_38,&local_3c)" ( (pointer_expression "&local_38" & identifier) , (pointer_expression "&local_3c" & identifier) ))) ;) })) (if_statement "if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }" { (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (do_statement "do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);" do (compound_statement "{\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    }" { (expression_statement "plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);" (assignment_expression "plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3])" identifier = (cast_expression "(long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3])" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3])" ( (binary_expression "(long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]" (binary_expression "(long)*(int *)((long)param_3 + 0xc) * 0x10" (cast_expression "(long)*(int *)((long)param_3 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_3 + 0xc)" * (cast_expression "(int *)((long)param_3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0xc)" ( (binary_expression "(long)param_3 + 0xc" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal) + (subscript_expression "param_3[3]" identifier [ number_literal ])) )))) ;) (expression_statement "*(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;" (assignment_expression "*(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1" (pointer_expression "*(int *)((long)param_3 + 0xc)" * (cast_expression "(int *)((long)param_3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0xc)" ( (binary_expression "(long)param_3 + 0xc" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)param_3 + 0xc) + 1" (pointer_expression "*(int *)((long)param_3 + 0xc)" * (cast_expression "(int *)((long)param_3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0xc)" ( (binary_expression "(long)param_3 + 0xc" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)plVar3 + 0xc) = iVar2;" (assignment_expression "*(int *)((long)plVar3 + 0xc) = iVar2" (pointer_expression "*(int *)((long)plVar3 + 0xc)" * (cast_expression "(int *)((long)plVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0xc)" ( (binary_expression "(long)plVar3 + 0xc" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*plVar3 = local_38;" (assignment_expression "*plVar3 = local_38" (pointer_expression "*plVar3" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(plVar3 + 1) = local_3c;" (assignment_expression "*(undefined4 *)(plVar3 + 1) = local_3c" (pointer_expression "*(undefined4 *)(plVar3 + 1)" * (cast_expression "(undefined4 *)(plVar3 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar3 + 1)" ( (binary_expression "plVar3 + 1" identifier + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) })) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int fts3ExprTermOffsetInit(Fts3Expr *pExpr,int iPhrase,void *ctx)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  long in_FS_OFFSET;\n  int iPos;\n  char *pList;\n  long local_30;\n  \n                    /* WARNING: Load size is inaccurate */\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  iPos = 0;\n  iVar1 = sqlite3Fts3EvalPhrasePoslist(*ctx,pExpr,*(int *)((long)ctx + 8),&pList);\n  iVar2 = pExpr->pPhrase->nToken;\n  if (pList != (char *)0x0) {\n    fts3GetDeltaPosition(&pList,&iPos);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      puVar3 = (undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18));\n      *(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1;\n      *(int *)((long)puVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *puVar3 = pList;\n      *(int *)(puVar3 + 1) = iPos;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int fts3ExprTermOffsetInit(Fts3Expr *pExpr,int iPhrase,void *ctx)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  long in_FS_OFFSET;\n  int iPos;\n  char *pList;\n  long local_30;\n  \n                    /* WARNING: Load size is inaccurate */\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  iPos = 0;\n  iVar1 = sqlite3Fts3EvalPhrasePoslist(*ctx,pExpr,*(int *)((long)ctx + 8),&pList);\n  iVar2 = pExpr->pPhrase->nToken;\n  if (pList != (char *)0x0) {\n    fts3GetDeltaPosition(&pList,&iPos);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      puVar3 = (undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18));\n      *(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1;\n      *(int *)((long)puVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *puVar3 = pList;\n      *(int *)(puVar3 + 1) = iPos;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "fts3ExprTermOffsetInit(Fts3Expr *pExpr,int iPhrase,void *ctx)" identifier (parameter_list "(Fts3Expr *pExpr,int iPhrase,void *ctx)" ( (parameter_declaration "Fts3Expr *pExpr" type_identifier (pointer_declarator "*pExpr" * identifier)) , (parameter_declaration "int iPhrase" primitive_type identifier) , (parameter_declaration "void *ctx" primitive_type (pointer_declarator "*ctx" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined8 *puVar3;\n  long in_FS_OFFSET;\n  int iPos;\n  char *pList;\n  long local_30;\n  \n                    /* WARNING: Load size is inaccurate */\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  iPos = 0;\n  iVar1 = sqlite3Fts3EvalPhrasePoslist(*ctx,pExpr,*(int *)((long)ctx + 8),&pList);\n  iVar2 = pExpr->pPhrase->nToken;\n  if (pList != (char *)0x0) {\n    fts3GetDeltaPosition(&pList,&iPos);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      puVar3 = (undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18));\n      *(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1;\n      *(int *)((long)puVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *puVar3 = pList;\n      *(int *)(puVar3 + 1) = iPos;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int iPos;" primitive_type identifier ;) (declaration "char *pList;" primitive_type (pointer_declarator "*pList" * identifier) ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) comment (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iPos = 0;" (assignment_expression "iPos = 0" identifier = number_literal) ;) (expression_statement "iVar1 = sqlite3Fts3EvalPhrasePoslist(*ctx,pExpr,*(int *)((long)ctx + 8),&pList);" (assignment_expression "iVar1 = sqlite3Fts3EvalPhrasePoslist(*ctx,pExpr,*(int *)((long)ctx + 8),&pList)" identifier = (call_expression "sqlite3Fts3EvalPhrasePoslist(*ctx,pExpr,*(int *)((long)ctx + 8),&pList)" identifier (argument_list "(*ctx,pExpr,*(int *)((long)ctx + 8),&pList)" ( (pointer_expression "*ctx" * identifier) , identifier , (pointer_expression "*(int *)((long)ctx + 8)" * (cast_expression "(int *)((long)ctx + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ctx + 8)" ( (binary_expression "(long)ctx + 8" (cast_expression "(long)ctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) , (pointer_expression "&pList" & identifier) )))) ;) (expression_statement "iVar2 = pExpr->pPhrase->nToken;" (assignment_expression "iVar2 = pExpr->pPhrase->nToken" identifier = (field_expression "pExpr->pPhrase->nToken" (field_expression "pExpr->pPhrase" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (pList != (char *)0x0) {\n    fts3GetDeltaPosition(&pList,&iPos);\n  }" if (parenthesized_expression "(pList != (char *)0x0)" ( (binary_expression "pList != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fts3GetDeltaPosition(&pList,&iPos);\n  }" { (expression_statement "fts3GetDeltaPosition(&pList,&iPos);" (call_expression "fts3GetDeltaPosition(&pList,&iPos)" identifier (argument_list "(&pList,&iPos)" ( (pointer_expression "&pList" & identifier) , (pointer_expression "&iPos" & identifier) ))) ;) })) (if_statement "if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      puVar3 = (undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18));\n      *(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1;\n      *(int *)((long)puVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *puVar3 = pList;\n      *(int *)(puVar3 + 1) = iPos;\n    } while (iVar2 != -1);\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar2 = iVar2 + -1;\n    do {\n      puVar3 = (undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18));\n      *(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1;\n      *(int *)((long)puVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *puVar3 = pList;\n      *(int *)(puVar3 + 1) = iPos;\n    } while (iVar2 != -1);\n  }" { (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (do_statement "do {\n      puVar3 = (undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18));\n      *(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1;\n      *(int *)((long)puVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *puVar3 = pList;\n      *(int *)(puVar3 + 1) = iPos;\n    } while (iVar2 != -1);" do (compound_statement "{\n      puVar3 = (undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18));\n      *(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1;\n      *(int *)((long)puVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *puVar3 = pList;\n      *(int *)(puVar3 + 1) = iPos;\n    }" { (expression_statement "puVar3 = (undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18));" (assignment_expression "puVar3 = (undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18))" identifier = (cast_expression "(undefined8 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18))" ( (binary_expression "(long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18)" (binary_expression "(long)*(int *)((long)ctx + 0xc) * 0x10" (cast_expression "(long)*(int *)((long)ctx + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)ctx + 0xc)" * (cast_expression "(int *)((long)ctx + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ctx + 0xc)" ( (binary_expression "(long)ctx + 0xc" (cast_expression "(long)ctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal) + (pointer_expression "*(long *)((long)ctx + 0x18)" * (cast_expression "(long *)((long)ctx + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ctx + 0x18)" ( (binary_expression "(long)ctx + 0x18" (cast_expression "(long)ctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )))) ;) (expression_statement "*(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1;" (assignment_expression "*(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1" (pointer_expression "*(int *)((long)ctx + 0xc)" * (cast_expression "(int *)((long)ctx + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ctx + 0xc)" ( (binary_expression "(long)ctx + 0xc" (cast_expression "(long)ctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)ctx + 0xc) + 1" (pointer_expression "*(int *)((long)ctx + 0xc)" * (cast_expression "(int *)((long)ctx + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ctx + 0xc)" ( (binary_expression "(long)ctx + 0xc" (cast_expression "(long)ctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)puVar3 + 0xc) = iVar2;" (assignment_expression "*(int *)((long)puVar3 + 0xc) = iVar2" (pointer_expression "*(int *)((long)puVar3 + 0xc)" * (cast_expression "(int *)((long)puVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar3 + 0xc)" ( (binary_expression "(long)puVar3 + 0xc" (cast_expression "(long)puVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*puVar3 = pList;" (assignment_expression "*puVar3 = pList" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "*(int *)(puVar3 + 1) = iPos;" (assignment_expression "*(int *)(puVar3 + 1) = iPos" (pointer_expression "*(int *)(puVar3 + 1)" * (cast_expression "(int *)(puVar3 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) })) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_001de420(long param_1,undefined8 param_2,undefined8 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long *plVar3;\n  long in_FS_OFFSET;\n  undefined4 local_3c;\n  long local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_3c = 0;\n  uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);\n  iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);\n  if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 FUN_001de420(long param_1,undefined8 param_2,undefined8 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long *plVar3;\n  long in_FS_OFFSET;\n  undefined4 local_3c;\n  long local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_3c = 0;\n  uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);\n  iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);\n  if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_001de420(long param_1,undefined8 param_2,undefined8 *param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  long *plVar3;\n  long in_FS_OFFSET;\n  undefined4 local_3c;\n  long local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_3c = 0;\n  uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);\n  iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);\n  if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "long local_38;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);" (assignment_expression "uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38)" identifier = (call_expression "FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38)" identifier (argument_list "(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38)" ( (pointer_expression "*param_3" * identifier) , identifier , (pointer_expression "*(undefined4 *)(param_3 + 1)" * (cast_expression "(undefined4 *)(param_3 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) )))) , (pointer_expression "&local_38" & identifier) )))) ;) (expression_statement "iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);" (assignment_expression "iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50)" identifier = (pointer_expression "*(int *)(*(long *)(param_1 + 0x20) + 0x50)" * (cast_expression "(int *)(*(long *)(param_1 + 0x20) + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + 0x50)" ( (binary_expression "*(long *)(param_1 + 0x20) + 0x50" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }" if (parenthesized_expression "(local_38 != 0)" ( (binary_expression "local_38 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00114090(&local_38,&local_3c);\n  }" { (expression_statement "FUN_00114090(&local_38,&local_3c);" (call_expression "FUN_00114090(&local_38,&local_3c)" identifier (argument_list "(&local_38,&local_3c)" ( (pointer_expression "&local_38" & identifier) , (pointer_expression "&local_3c" & identifier) ))) ;) })) (if_statement "if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }" { (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (do_statement "do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);" do (compound_statement "{\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    }" { (expression_statement "plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);" (assignment_expression "plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3])" identifier = (cast_expression "(long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3])" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3])" ( (binary_expression "(long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]" (binary_expression "(long)*(int *)((long)param_3 + 0xc) * 0x10" (cast_expression "(long)*(int *)((long)param_3 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_3 + 0xc)" * (cast_expression "(int *)((long)param_3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0xc)" ( (binary_expression "(long)param_3 + 0xc" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal) + (subscript_expression "param_3[3]" identifier [ number_literal ])) )))) ;) (expression_statement "*(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;" (assignment_expression "*(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1" (pointer_expression "*(int *)((long)param_3 + 0xc)" * (cast_expression "(int *)((long)param_3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0xc)" ( (binary_expression "(long)param_3 + 0xc" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)param_3 + 0xc) + 1" (pointer_expression "*(int *)((long)param_3 + 0xc)" * (cast_expression "(int *)((long)param_3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0xc)" ( (binary_expression "(long)param_3 + 0xc" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)plVar3 + 0xc) = iVar2;" (assignment_expression "*(int *)((long)plVar3 + 0xc) = iVar2" (pointer_expression "*(int *)((long)plVar3 + 0xc)" * (cast_expression "(int *)((long)plVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0xc)" ( (binary_expression "(long)plVar3 + 0xc" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*plVar3 = local_38;" (assignment_expression "*plVar3 = local_38" (pointer_expression "*plVar3" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(plVar3 + 1) = local_3c;" (assignment_expression "*(undefined4 *)(plVar3 + 1) = local_3c" (pointer_expression "*(undefined4 *)(plVar3 + 1)" * (cast_expression "(undefined4 *)(plVar3 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar3 + 1)" ( (binary_expression "plVar3 + 1" identifier + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) })) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) * LIT) + (subscript_expression IDENT [ LIT ])) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_001de420(long param_1,undefined8 param_2,undefined8 *param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long *plVar3;\n  long in_FS_OFFSET;\n  undefined4 local_3c;\n  long local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_3c = 0;\n  uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);\n  iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);\n  if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined4") (function_declarator "FUN_001de420(long param_1,undefined8 param_2,undefined8 *param_3)" (identifier "FUN_001de420") (parameter_list "(long param_1,undefined8 param_2,undefined8 *param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  long *plVar3;\n  long in_FS_OFFSET;\n  undefined4 local_3c;\n  long local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_3c = 0;\n  uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);\n  iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);\n  if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }\n  if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined4 local_3c;" (type_identifier "undefined4") (identifier "local_3c") (; ";")) (declaration "long local_38;" (sized_type_specifier "long" (long "long")) (identifier "local_38") (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);" (assignment_expression "uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38)" (identifier "uVar1") (= "=") (call_expression "FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38)" (identifier "FUN_001dcfe0") (argument_list "(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_3 + 1)" (* "*") (cast_expression "(undefined4 *)(param_3 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")")))) (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")")))) (; ";")) (expression_statement "iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);" (assignment_expression "iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(long *)(param_1 + 0x20) + 0x50)" (* "*") (cast_expression "(int *)(*(long *)(param_1 + 0x20) + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x20) + 0x50)" (( "(") (binary_expression "*(long *)(param_1 + 0x20) + 0x50" (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (if_statement "if (local_38 != 0) {\n    FUN_00114090(&local_38,&local_3c);\n  }" (if "if") (parenthesized_expression "(local_38 != 0)" (( "(") (binary_expression "local_38 != 0" (identifier "local_38") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00114090(&local_38,&local_3c);\n  }" ({ "{") (expression_statement "FUN_00114090(&local_38,&local_3c);" (call_expression "FUN_00114090(&local_38,&local_3c)" (identifier "FUN_00114090") (argument_list "(&local_38,&local_3c)" (( "(") (pointer_expression "&local_38" (& "&") (identifier "local_38")) (, ",") (pointer_expression "&local_3c" (& "&") (identifier "local_3c")) () ")"))) (; ";")) (} "}"))) (if_statement "if (0 < iVar2) {\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar2 = iVar2 + -1;\n    do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);\n  }" ({ "{") (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (do_statement "do {\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    } while (iVar2 != -1);" (do "do") (compound_statement "{\n      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);\n      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;\n      *(int *)((long)plVar3 + 0xc) = iVar2;\n      iVar2 = iVar2 + -1;\n      *plVar3 = local_38;\n      *(undefined4 *)(plVar3 + 1) = local_3c;\n    }" ({ "{") (expression_statement "plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);" (assignment_expression "plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3])" (identifier "plVar3") (= "=") (cast_expression "(long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3])" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3])" (( "(") (binary_expression "(long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]" (binary_expression "(long)*(int *)((long)param_3 + 0xc) * 0x10" (cast_expression "(long)*(int *)((long)param_3 + 0xc)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)((long)param_3 + 0xc)" (* "*") (cast_expression "(int *)((long)param_3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_3 + 0xc)" (( "(") (binary_expression "(long)param_3 + 0xc" (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) (+ "+") (number_literal "0xc")) () ")"))))) (* "*") (number_literal "0x10")) (+ "+") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]"))) () ")")))) (; ";")) (expression_statement "*(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;" (assignment_expression "*(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1" (pointer_expression "*(int *)((long)param_3 + 0xc)" (* "*") (cast_expression "(int *)((long)param_3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_3 + 0xc)" (( "(") (binary_expression "(long)param_3 + 0xc" (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(int *)((long)param_3 + 0xc) + 1" (pointer_expression "*(int *)((long)param_3 + 0xc)" (* "*") (cast_expression "(int *)((long)param_3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_3 + 0xc)" (( "(") (binary_expression "(long)param_3 + 0xc" (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)((long)plVar3 + 0xc) = iVar2;" (assignment_expression "*(int *)((long)plVar3 + 0xc) = iVar2" (pointer_expression "*(int *)((long)plVar3 + 0xc)" (* "*") (cast_expression "(int *)((long)plVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar3 + 0xc)" (( "(") (binary_expression "(long)plVar3 + 0xc" (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*plVar3 = local_38;" (assignment_expression "*plVar3 = local_38" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (= "=") (identifier "local_38")) (; ";")) (expression_statement "*(undefined4 *)(plVar3 + 1) = local_3c;" (assignment_expression "*(undefined4 *)(plVar3 + 1) = local_3c" (pointer_expression "*(undefined4 *)(plVar3 + 1)" (* "*") (cast_expression "(undefined4 *)(plVar3 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar3 + 1)" (( "(") (binary_expression "plVar3 + 1" (identifier "plVar3") (+ "+") (number_literal "1")) () ")")))) (= "=") (identifier "local_3c")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != -1)" (( "(") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (} "}"))) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *pExpr,int iPhrase,void *ctx)

{
  int iVar1;
  int var_5;
  type_2 *var_6;
  long var_1;
  int iPos;
  char *var_3;
  long var_7;
  
                    /* WARNING: Load size is inaccurate */
  var_7 = *(long *)(var_1 + 0x28);
  iPos = 0;
  iVar1 = var_2(*ctx,pExpr,*(int *)((long)ctx + 8),&var_3);
  var_5 = pExpr->pPhrase->nToken;
  if (var_3 != (char *)0x0) {
    var_4(&var_3,&iPos);
  }
  if (0 < var_5) {
    var_5 = var_5 + -1;
    do {
      var_6 = (type_2 *)((long)*(int *)((long)ctx + 0xc) * 0x10 + *(long *)((long)ctx + 0x18));
      *(int *)((long)ctx + 0xc) = *(int *)((long)ctx + 0xc) + 1;
      *(int *)((long)var_6 + 0xc) = var_5;
      var_5 = var_5 + -1;
      *var_6 = var_3;
      *(int *)(var_6 + 1) = iPos;
    } while (var_5 != -1);
  }
  if (var_7 == *(long *)(var_1 + 0x28)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_8();
}


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

undefined4 MASKED(long param_1,undefined8 param_2,undefined8 *param_3)

{
  undefined4 uVar1;
  int iVar2;
  long *plVar3;
  long in_FS_OFFSET;
  undefined4 local_3c;
  long local_38;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  local_3c = 0;
  uVar1 = FUN_001dcfe0(*param_3,param_1,*(undefined4 *)(param_3 + 1),&local_38);
  iVar2 = *(int *)(*(long *)(param_1 + 0x20) + 0x50);
  if (local_38 != 0) {
    FUN_00114090(&local_38,&local_3c);
  }
  if (0 < iVar2) {
    iVar2 = iVar2 + -1;
    do {
      plVar3 = (long *)((long)*(int *)((long)param_3 + 0xc) * 0x10 + param_3[3]);
      *(int *)((long)param_3 + 0xc) = *(int *)((long)param_3 + 0xc) + 1;
      *(int *)((long)plVar3 + 0xc) = iVar2;
      iVar2 = iVar2 + -1;
      *plVar3 = local_38;
      *(undefined4 *)(plVar3 + 1) = local_3c;
    } while (iVar2 != -1);
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

