
/* WARNING: Unknown calling convention */

void fts5ApiPhraseNext(Fts5Context *pUnused,Fts5PhraseIter *pIter,int *piCol,int *piOff)

{
  uchar *puVar1;
  int iVar2;
  int in_GS_OFFSET;
  int iVal;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (pIter->a < pIter->b) {
    iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);
    puVar1 = pIter->a;
    pIter->a = puVar1 + iVar2;
    if (iVal == 1) {
      iVar2 = sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal);
      pIter->a = pIter->a + iVar2;
      *piCol = iVal;
      *piOff = 0;
      iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);
      pIter->a = pIter->a + iVar2;
    }
    *piOff = *piOff + iVal + -2;
  }
  else {
    *piCol = -1;
    *piOff = -1;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void FUN_000527d0(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  int local_24;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (*param_2 < param_2[1]) {
    iVar2 = FUN_000523f0();
    *param_2 = iVar2 + *param_2;
    if (local_24 == 1) {
      iVar2 = FUN_000523f0();
      *param_2 = *param_2 + iVar2;
      *param_3 = 1;
      *param_4 = 0;
      iVar2 = FUN_000523f0();
      *param_2 = *param_2 + iVar2;
    }
    *param_4 = *param_4 + local_24 + -2;
  }
  else {
    *param_3 = 0xffffffff;
    *param_4 = -1;
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EBX,dword ptr [ESP + 0x34]
MOV EBP,dword ptr [ESP + 0x38]
MOV ESI,dword ptr [ESP + 0x3c]
MOV EAX,dword ptr [EBX]
CMP EAX,dword ptr [EBX + 0x4]
JC 0x00052820
MOV dword ptr [EBP],0xffffffff
MOV dword ptr [ESI],0xffffffff
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00052867
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDI,[ESP + 0x8]
MOV EDX,EDI
CALL 0x000523f0
MOV EDX,dword ptr [ESP + 0x8]
ADD EAX,dword ptr [EBX]
MOV dword ptr [EBX],EAX
CMP EDX,0x1
JZ 0x00052840
SUB EDX,0x2
ADD dword ptr [ESI],EDX
JMP 0x00052803
MOV EDX,EDI
CALL 0x000523f0
ADD dword ptr [EBX],EAX
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,EDI
MOV dword ptr [EBP],EAX
MOV dword ptr [ESI],0x0
MOV EAX,dword ptr [EBX]
CALL 0x000523f0
MOV EDX,dword ptr [ESP + 0x8]
ADD dword ptr [EBX],EAX
JMP 0x00052838
CALL 0x00116110
(translation_unit "void FUN_000527d0(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}\n\n" (function_definition "void FUN_000527d0(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" primitive_type (function_declarator "FUN_000527d0(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)" identifier (parameter_list "(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }" if (parenthesized_expression "(*param_2 < param_2[1])" ( (binary_expression "*param_2 < param_2[1]" (pointer_expression "*param_2" * identifier) < (subscript_expression "param_2[1]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }" { (expression_statement "iVar2 = FUN_000523f0();" (assignment_expression "iVar2 = FUN_000523f0()" identifier = (call_expression "FUN_000523f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_2 = iVar2 + *param_2;" (assignment_expression "*param_2 = iVar2 + *param_2" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar2 + *param_2" identifier + (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }" if (parenthesized_expression "(local_24 == 1)" ( (binary_expression "local_24 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }" { (expression_statement "iVar2 = FUN_000523f0();" (assignment_expression "iVar2 = FUN_000523f0()" identifier = (call_expression "FUN_000523f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_2 = *param_2 + iVar2;" (assignment_expression "*param_2 = *param_2 + iVar2" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" * identifier) + identifier)) ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "iVar2 = FUN_000523f0();" (assignment_expression "iVar2 = FUN_000523f0()" identifier = (call_expression "FUN_000523f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_2 = *param_2 + iVar2;" (assignment_expression "*param_2 = *param_2 + iVar2" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" * identifier) + identifier)) ;) })) (expression_statement "*param_4 = *param_4 + local_24 + -2;" (assignment_expression "*param_4 = *param_4 + local_24 + -2" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + local_24 + -2" (binary_expression "*param_4 + local_24" (pointer_expression "*param_4" * identifier) + identifier) + number_literal)) ;) }) (else_clause "else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }" else (compound_statement "{\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }" { (expression_statement "*param_3 = 0xffffffff;" (assignment_expression "*param_3 = 0xffffffff" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "*param_4 = -1;" (assignment_expression "*param_4 = -1" (pointer_expression "*param_4" * identifier) = number_literal) ;) }))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid fts5ApiPhraseNext(Fts5Context *pUnused,Fts5PhraseIter *pIter,int *piCol,int *piOff)\n\n{\n  uchar *puVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int iVal;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pIter->a < pIter->b) {\n    iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n    puVar1 = pIter->a;\n    pIter->a = puVar1 + iVar2;\n    if (iVal == 1) {\n      iVar2 = sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n      *piCol = iVal;\n      *piOff = 0;\n      iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n    }\n    *piOff = *piOff + iVal + -2;\n  }\n  else {\n    *piCol = -1;\n    *piOff = -1;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void fts5ApiPhraseNext(Fts5Context *pUnused,Fts5PhraseIter *pIter,int *piCol,int *piOff)\n\n{\n  uchar *puVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int iVal;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pIter->a < pIter->b) {\n    iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n    puVar1 = pIter->a;\n    pIter->a = puVar1 + iVar2;\n    if (iVal == 1) {\n      iVar2 = sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n      *piCol = iVal;\n      *piOff = 0;\n      iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n    }\n    *piOff = *piOff + iVal + -2;\n  }\n  else {\n    *piCol = -1;\n    *piOff = -1;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "fts5ApiPhraseNext(Fts5Context *pUnused,Fts5PhraseIter *pIter,int *piCol,int *piOff)" identifier (parameter_list "(Fts5Context *pUnused,Fts5PhraseIter *pIter,int *piCol,int *piOff)" ( (parameter_declaration "Fts5Context *pUnused" type_identifier (pointer_declarator "*pUnused" * identifier)) , (parameter_declaration "Fts5PhraseIter *pIter" type_identifier (pointer_declarator "*pIter" * identifier)) , (parameter_declaration "int *piCol" primitive_type (pointer_declarator "*piCol" * identifier)) , (parameter_declaration "int *piOff" primitive_type (pointer_declarator "*piOff" * identifier)) ))) (compound_statement "{\n  uchar *puVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int iVal;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pIter->a < pIter->b) {\n    iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n    puVar1 = pIter->a;\n    pIter->a = puVar1 + iVar2;\n    if (iVal == 1) {\n      iVar2 = sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n      *piCol = iVal;\n      *piOff = 0;\n      iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n    }\n    *piOff = *piOff + iVal + -2;\n  }\n  else {\n    *piCol = -1;\n    *piOff = -1;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "uchar *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int iVal;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (pIter->a < pIter->b) {\n    iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n    puVar1 = pIter->a;\n    pIter->a = puVar1 + iVar2;\n    if (iVal == 1) {\n      iVar2 = sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n      *piCol = iVal;\n      *piOff = 0;\n      iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n    }\n    *piOff = *piOff + iVal + -2;\n  }\n  else {\n    *piCol = -1;\n    *piOff = -1;\n  }" if (parenthesized_expression "(pIter->a < pIter->b)" ( (binary_expression "pIter->a < pIter->b" (field_expression "pIter->a" identifier -> field_identifier) < (field_expression "pIter->b" identifier -> field_identifier)) )) (compound_statement "{\n    iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n    puVar1 = pIter->a;\n    pIter->a = puVar1 + iVar2;\n    if (iVal == 1) {\n      iVar2 = sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n      *piCol = iVal;\n      *piOff = 0;\n      iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n    }\n    *piOff = *piOff + iVal + -2;\n  }" { (expression_statement "iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);" (assignment_expression "iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal)" identifier = (call_expression "sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal)" identifier (argument_list "(pIter->a,(u32 *)&iVal)" ( (field_expression "pIter->a" identifier -> field_identifier) , (cast_expression "(u32 *)&iVal" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&iVal" & identifier)) )))) ;) (expression_statement "puVar1 = pIter->a;" (assignment_expression "puVar1 = pIter->a" identifier = (field_expression "pIter->a" identifier -> field_identifier)) ;) (expression_statement "pIter->a = puVar1 + iVar2;" (assignment_expression "pIter->a = puVar1 + iVar2" (field_expression "pIter->a" identifier -> field_identifier) = (binary_expression "puVar1 + iVar2" identifier + identifier)) ;) (if_statement "if (iVal == 1) {\n      iVar2 = sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n      *piCol = iVal;\n      *piOff = 0;\n      iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n    }" if (parenthesized_expression "(iVal == 1)" ( (binary_expression "iVal == 1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n      *piCol = iVal;\n      *piOff = 0;\n      iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);\n      pIter->a = pIter->a + iVar2;\n    }" { (expression_statement "iVar2 = sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal);" (assignment_expression "iVar2 = sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal)" identifier = (call_expression "sqlite3Fts5GetVarint32(puVar1 + iVar2,(u32 *)&iVal)" identifier (argument_list "(puVar1 + iVar2,(u32 *)&iVal)" ( (binary_expression "puVar1 + iVar2" identifier + identifier) , (cast_expression "(u32 *)&iVal" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&iVal" & identifier)) )))) ;) (expression_statement "pIter->a = pIter->a + iVar2;" (assignment_expression "pIter->a = pIter->a + iVar2" (field_expression "pIter->a" identifier -> field_identifier) = (binary_expression "pIter->a + iVar2" (field_expression "pIter->a" identifier -> field_identifier) + identifier)) ;) (expression_statement "*piCol = iVal;" (assignment_expression "*piCol = iVal" (pointer_expression "*piCol" * identifier) = identifier) ;) (expression_statement "*piOff = 0;" (assignment_expression "*piOff = 0" (pointer_expression "*piOff" * identifier) = number_literal) ;) (expression_statement "iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal);" (assignment_expression "iVar2 = sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal)" identifier = (call_expression "sqlite3Fts5GetVarint32(pIter->a,(u32 *)&iVal)" identifier (argument_list "(pIter->a,(u32 *)&iVal)" ( (field_expression "pIter->a" identifier -> field_identifier) , (cast_expression "(u32 *)&iVal" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&iVal" & identifier)) )))) ;) (expression_statement "pIter->a = pIter->a + iVar2;" (assignment_expression "pIter->a = pIter->a + iVar2" (field_expression "pIter->a" identifier -> field_identifier) = (binary_expression "pIter->a + iVar2" (field_expression "pIter->a" identifier -> field_identifier) + identifier)) ;) })) (expression_statement "*piOff = *piOff + iVal + -2;" (assignment_expression "*piOff = *piOff + iVal + -2" (pointer_expression "*piOff" * identifier) = (binary_expression "*piOff + iVal + -2" (binary_expression "*piOff + iVal" (pointer_expression "*piOff" * identifier) + identifier) + number_literal)) ;) }) (else_clause "else {\n    *piCol = -1;\n    *piOff = -1;\n  }" else (compound_statement "{\n    *piCol = -1;\n    *piOff = -1;\n  }" { (expression_statement "*piCol = -1;" (assignment_expression "*piCol = -1" (pointer_expression "*piCol" * identifier) = number_literal) ;) (expression_statement "*piOff = -1;" (assignment_expression "*piOff = -1" (pointer_expression "*piOff" * identifier) = number_literal) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_000527d0(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}\n\n" (function_definition "void FUN_000527d0(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" primitive_type (function_declarator "FUN_000527d0(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)" identifier (parameter_list "(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }" if (parenthesized_expression "(*param_2 < param_2[1])" ( (binary_expression "*param_2 < param_2[1]" (pointer_expression "*param_2" * identifier) < (subscript_expression "param_2[1]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }" { (expression_statement "iVar2 = FUN_000523f0();" (assignment_expression "iVar2 = FUN_000523f0()" identifier = (call_expression "FUN_000523f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_2 = iVar2 + *param_2;" (assignment_expression "*param_2 = iVar2 + *param_2" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar2 + *param_2" identifier + (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }" if (parenthesized_expression "(local_24 == 1)" ( (binary_expression "local_24 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }" { (expression_statement "iVar2 = FUN_000523f0();" (assignment_expression "iVar2 = FUN_000523f0()" identifier = (call_expression "FUN_000523f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_2 = *param_2 + iVar2;" (assignment_expression "*param_2 = *param_2 + iVar2" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" * identifier) + identifier)) ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "iVar2 = FUN_000523f0();" (assignment_expression "iVar2 = FUN_000523f0()" identifier = (call_expression "FUN_000523f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_2 = *param_2 + iVar2;" (assignment_expression "*param_2 = *param_2 + iVar2" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" * identifier) + identifier)) ;) })) (expression_statement "*param_4 = *param_4 + local_24 + -2;" (assignment_expression "*param_4 = *param_4 + local_24 + -2" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + local_24 + -2" (binary_expression "*param_4 + local_24" (pointer_expression "*param_4" * identifier) + identifier) + number_literal)) ;) }) (else_clause "else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }" else (compound_statement "{\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }" { (expression_statement "*param_3 = 0xffffffff;" (assignment_expression "*param_3 = 0xffffffff" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "*param_4 = -1;" (assignment_expression "*param_4 = -1" (pointer_expression "*param_4" * identifier) = number_literal) ;) }))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) + IDENT) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_000527d0(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" (primitive_type "void") (function_declarator "FUN_000527d0(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)" (identifier "FUN_000527d0") (parameter_list "(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00116110();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (*param_2 < param_2[1]) {\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }\n  else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }" (if "if") (parenthesized_expression "(*param_2 < param_2[1])" (( "(") (binary_expression "*param_2 < param_2[1]" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (< "<") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n    iVar2 = FUN_000523f0();\n    *param_2 = iVar2 + *param_2;\n    if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }\n    *param_4 = *param_4 + local_24 + -2;\n  }" ({ "{") (expression_statement "iVar2 = FUN_000523f0();" (assignment_expression "iVar2 = FUN_000523f0()" (identifier "iVar2") (= "=") (call_expression "FUN_000523f0()" (identifier "FUN_000523f0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_2 = iVar2 + *param_2;" (assignment_expression "*param_2 = iVar2 + *param_2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "iVar2 + *param_2" (identifier "iVar2") (+ "+") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (local_24 == 1) {\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }" (if "if") (parenthesized_expression "(local_24 == 1)" (( "(") (binary_expression "local_24 == 1" (identifier "local_24") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n      *param_3 = 1;\n      *param_4 = 0;\n      iVar2 = FUN_000523f0();\n      *param_2 = *param_2 + iVar2;\n    }" ({ "{") (expression_statement "iVar2 = FUN_000523f0();" (assignment_expression "iVar2 = FUN_000523f0()" (identifier "iVar2") (= "=") (call_expression "FUN_000523f0()" (identifier "FUN_000523f0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_2 = *param_2 + iVar2;" (assignment_expression "*param_2 = *param_2 + iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = FUN_000523f0();" (assignment_expression "iVar2 = FUN_000523f0()" (identifier "iVar2") (= "=") (call_expression "FUN_000523f0()" (identifier "FUN_000523f0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_2 = *param_2 + iVar2;" (assignment_expression "*param_2 = *param_2 + iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (identifier "iVar2"))) (; ";")) (} "}"))) (expression_statement "*param_4 = *param_4 + local_24 + -2;" (assignment_expression "*param_4 = *param_4 + local_24 + -2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "*param_4 + local_24 + -2" (binary_expression "*param_4 + local_24" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (identifier "local_24")) (+ "+") (number_literal "-2"))) (; ";")) (} "}")) (else_clause "else {\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }" (else "else") (compound_statement "{\n    *param_3 = 0xffffffff;\n    *param_4 = -1;\n  }" ({ "{") (expression_statement "*param_3 = 0xffffffff;" (assignment_expression "*param_3 = 0xffffffff" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*param_4 = -1;" (assignment_expression "*param_4 = -1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "-1")) (; ";")) (} "}")))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 *pUnused,type_2 *pIter,int *piCol,int *piOff)

{
  type_3 *var_3;
  int var_4;
  int var_1;
  int var_5;
  int var_6;
  
  var_6 = *(int *)(var_1 + 0x14);
  if (pIter->a < pIter->b) {
    var_4 = var_2(pIter->a,(type_4 *)&var_5);
    var_3 = pIter->a;
    pIter->a = var_3 + var_4;
    if (var_5 == 1) {
      var_4 = var_2(var_3 + var_4,(type_4 *)&var_5);
      pIter->a = pIter->a + var_4;
      *piCol = var_5;
      *piOff = 0;
      var_4 = var_2(pIter->a,(type_4 *)&var_5);
      pIter->a = pIter->a + var_4;
    }
    *piOff = *piOff + var_5 + -2;
  }
  else {
    *piCol = -1;
    *piOff = -1;
  }
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


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

void MASKED(undefined4 param_1,uint *param_2,undefined4 *param_3,int *param_4)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  int local_24;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (*param_2 < param_2[1]) {
    iVar2 = FUN_000523f0();
    *param_2 = iVar2 + *param_2;
    if (local_24 == 1) {
      iVar2 = FUN_000523f0();
      *param_2 = *param_2 + iVar2;
      *param_3 = 1;
      *param_4 = 0;
      iVar2 = FUN_000523f0();
      *param_2 = *param_2 + iVar2;
    }
    *param_4 = *param_4 + local_24 + -2;
  }
  else {
    *param_3 = 0xffffffff;
    *param_4 = -1;
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}

