
int fts5VocabInstanceNewTerm(Fts5VocabCursor *pCsr)

{
  u32 nData;
  ushort uVar1;
  u32 uVar2;
  Fts5IndexIter *pFVar3;
  u32 uVar4;
  int iVar5;
  u8 *pData;
  long in_FS_OFFSET;
  int rc;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  pFVar3 = pCsr->pIter;
  rc = 0;
  if (pFVar3->bEof == '\0') {
    uVar2 = pCsr->nLeTerm;
    uVar1 = *(ushort *)(*(long *)&pFVar3[3].nData + 4);
    nData = (int)pFVar3[(ulong)uVar1 * 5 + 8].iRowid - 1;
    pData = (u8 *)(*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1);
    if (-1 < (int)uVar2) {
      uVar4 = nData;
      if ((int)uVar2 <= (int)nData) {
        uVar4 = uVar2;
      }
      iVar5 = memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4);
      if ((iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0)))) {
        pCsr->bEof = 1;
      }
    }
    (pCsr->term).n = 0;
    sqlite3Fts5BufferAppendBlob(&rc,&pCsr->term,nData,pData);
  }
  else {
    pCsr->bEof = 1;
  }
  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return rc;
}



undefined4 FUN_0015b0c0(long param_1)

{
  int iVar1;
  int iVar2;
  long lVar3;
  int iVar4;
  void *__s2;
  long in_FS_OFFSET;
  undefined4 local_34;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  lVar3 = *(long *)(param_1 + 0x20);
  local_34 = 0;
  if (*(char *)(lVar3 + 0x14) == '\0') {
    iVar2 = *(int *)(param_1 + 0x28);
    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;
    iVar1 = *(int *)(lVar3 + 0xc0) + -1;
    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);
    if (-1 < iVar2) {
      iVar4 = iVar1;
      if (iVar2 <= iVar1) {
        iVar4 = iVar2;
      }
      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);
      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {
        *(undefined4 *)(param_1 + 0x18) = 1;
      }
    }
    *(undefined4 *)(param_1 + 0x60) = 0;
    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);
  }
  else {
    *(undefined4 *)(param_1 + 0x18) = 1;
    local_34 = 0;
  }
  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return local_34;
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x18
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
MOV RAX,qword ptr [RDI + 0x20]
MOV dword ptr [RSP + 0x4],0x0
CMP byte ptr [RAX + 0x14],0x0
JZ 0x0015b120
MOV dword ptr [RDI + 0x18],0x1
XOR EAX,EAX
MOV RSI,qword ptr [RSP + 0x8]
XOR RSI,qword ptr FS:[0x28]
JNZ 0x0015b1b1
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
MOV RDX,qword ptr [RAX + 0x58]
MOVSXD R13,dword ptr [RDI + 0x28]
MOVZX ECX,word ptr [RDX + 0x4]
MOV RDX,RCX
SHL RDX,0x4
SUB RDX,RCX
LEA RAX,[RAX + RDX*0x8]
MOV ECX,dword ptr [RAX + 0xc0]
MOV R12,qword ptr [RAX + 0xb8]
LEA EBP,[RCX + -0x1]
ADD R12,0x1
TEST R13D,R13D
JS 0x0015b180
CMP R13D,EBP
MOVSXD RDX,EBP
MOV RDI,qword ptr [RDI + 0x30]
MOV RSI,R12
CMOVLE RDX,R13
CALL 0x0010a1e0
TEST EAX,EAX
JS 0x0015b1a8
CMP R13D,EBP
JGE 0x0015b180
TEST EAX,EAX
JZ 0x0015b1a8
NOP word ptr CS:[RAX + RAX*0x1]
MOV dword ptr [RBX + 0x60],0x0
LEA RSI,[RBX + 0x58]
MOV RCX,R12
MOV EDX,EBP
LEA RDI,[RSP + 0x4]
CALL 0x0015b060
MOV EAX,dword ptr [RSP + 0x4]
JMP 0x0015b0f8
MOV dword ptr [RBX + 0x18],0x1
JMP 0x0015b180
CALL 0x0010a140
(translation_unit "undefined4 FUN_0015b0c0(long param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  int iVar4;\n  void *__s2;\n  long in_FS_OFFSET;\n  undefined4 local_34;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar3 = *(long *)(param_1 + 0x20);\n  local_34 = 0;\n  if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return local_34;\n}\n\n" (function_definition "undefined4 FUN_0015b0c0(long param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  int iVar4;\n  void *__s2;\n  long in_FS_OFFSET;\n  undefined4 local_34;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar3 = *(long *)(param_1 + 0x20);\n  local_34 = 0;\n  if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return local_34;\n}" type_identifier (function_declarator "FUN_0015b0c0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  int iVar4;\n  void *__s2;\n  long in_FS_OFFSET;\n  undefined4 local_34;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar3 = *(long *)(param_1 + 0x20);\n  local_34 = 0;\n  if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return local_34;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_34;" type_identifier 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 "lVar3 = *(long *)(param_1 + 0x20);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x20)" identifier = (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) ))))) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }" if (parenthesized_expression "(*(char *)(lVar3 + 0x14) == '\0')" ( (binary_expression "*(char *)(lVar3 + 0x14) == '\0'" (pointer_expression "*(char *)(lVar3 + 0x14)" * (cast_expression "(char *)(lVar3 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x14)" ( (binary_expression "lVar3 + 0x14" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;" (assignment_expression "lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78" identifier = (binary_expression "lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78" identifier + (binary_expression "(ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78" (binary_expression "(ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(ushort *)(*(long *)(lVar3 + 0x58) + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x58) + 4)" ( (binary_expression "*(long *)(lVar3 + 0x58) + 4" (pointer_expression "*(long *)(lVar3 + 0x58)" * (cast_expression "(long *)(lVar3 + 0x58)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x58)" ( (binary_expression "lVar3 + 0x58" identifier + number_literal) )))) + number_literal) )))) * number_literal))) ;) (expression_statement "iVar1 = *(int *)(lVar3 + 0xc0) + -1;" (assignment_expression "iVar1 = *(int *)(lVar3 + 0xc0) + -1" identifier = (binary_expression "*(int *)(lVar3 + 0xc0) + -1" (pointer_expression "*(int *)(lVar3 + 0xc0)" * (cast_expression "(int *)(lVar3 + 0xc0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xc0)" ( (binary_expression "lVar3 + 0xc0" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "__s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);" (assignment_expression "__s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1)" identifier = (cast_expression "(void *)(*(long *)(lVar3 + 0xb8) + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0xb8) + 1)" ( (binary_expression "*(long *)(lVar3 + 0xb8) + 1" (pointer_expression "*(long *)(lVar3 + 0xb8)" * (cast_expression "(long *)(lVar3 + 0xb8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xb8)" ( (binary_expression "lVar3 + 0xb8" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (if_statement "if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }" if (parenthesized_expression "(iVar2 <= iVar1)" ( (binary_expression "iVar2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n        iVar4 = iVar2;\n      }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) })) (expression_statement "iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);" (assignment_expression "iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4)" identifier = (call_expression "memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4)" identifier (argument_list "(*(void **)(param_1 + 0x30),__s2,(long)iVar4)" ( (pointer_expression "*(void **)(param_1 + 0x30)" * (cast_expression "(void **)(param_1 + 0x30)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) , identifier , (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) )))) ;) (if_statement "if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }" if (parenthesized_expression "((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0))))" ( (binary_expression "(iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))" (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) || (parenthesized_expression "((iVar2 < iVar1 && (iVar4 == 0)))" ( (parenthesized_expression "(iVar2 < iVar1 && (iVar4 == 0))" ( (binary_expression "iVar2 < iVar1 && (iVar4 == 0)" (binary_expression "iVar2 < iVar1" identifier < identifier) && (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) })) })) (expression_statement "*(undefined4 *)(param_1 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);" (call_expression "FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2)" identifier (argument_list "(&local_34,param_1 + 0x58,iVar1,__s2)" ( (pointer_expression "&local_34" & identifier) , (binary_expression "param_1 + 0x58" identifier + number_literal) , identifier , identifier ))) ;) }) (else_clause "else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }" else (compound_statement "{\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }))) (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_34;" return identifier ;) })))
(translation_unit "int fts5VocabInstanceNewTerm(Fts5VocabCursor *pCsr)\n\n{\n  u32 nData;\n  ushort uVar1;\n  u32 uVar2;\n  Fts5IndexIter *pFVar3;\n  u32 uVar4;\n  int iVar5;\n  u8 *pData;\n  long in_FS_OFFSET;\n  int rc;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  pFVar3 = pCsr->pIter;\n  rc = 0;\n  if (pFVar3->bEof == '\0') {\n    uVar2 = pCsr->nLeTerm;\n    uVar1 = *(ushort *)(*(long *)&pFVar3[3].nData + 4);\n    nData = (int)pFVar3[(ulong)uVar1 * 5 + 8].iRowid - 1;\n    pData = (u8 *)(*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1);\n    if (-1 < (int)uVar2) {\n      uVar4 = nData;\n      if ((int)uVar2 <= (int)nData) {\n        uVar4 = uVar2;\n      }\n      iVar5 = memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4);\n      if ((iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0)))) {\n        pCsr->bEof = 1;\n      }\n    }\n    (pCsr->term).n = 0;\n    sqlite3Fts5BufferAppendBlob(&rc,&pCsr->term,nData,pData);\n  }\n  else {\n    pCsr->bEof = 1;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return rc;\n}\n\n" (function_definition "int fts5VocabInstanceNewTerm(Fts5VocabCursor *pCsr)\n\n{\n  u32 nData;\n  ushort uVar1;\n  u32 uVar2;\n  Fts5IndexIter *pFVar3;\n  u32 uVar4;\n  int iVar5;\n  u8 *pData;\n  long in_FS_OFFSET;\n  int rc;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  pFVar3 = pCsr->pIter;\n  rc = 0;\n  if (pFVar3->bEof == '\0') {\n    uVar2 = pCsr->nLeTerm;\n    uVar1 = *(ushort *)(*(long *)&pFVar3[3].nData + 4);\n    nData = (int)pFVar3[(ulong)uVar1 * 5 + 8].iRowid - 1;\n    pData = (u8 *)(*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1);\n    if (-1 < (int)uVar2) {\n      uVar4 = nData;\n      if ((int)uVar2 <= (int)nData) {\n        uVar4 = uVar2;\n      }\n      iVar5 = memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4);\n      if ((iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0)))) {\n        pCsr->bEof = 1;\n      }\n    }\n    (pCsr->term).n = 0;\n    sqlite3Fts5BufferAppendBlob(&rc,&pCsr->term,nData,pData);\n  }\n  else {\n    pCsr->bEof = 1;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return rc;\n}" primitive_type (function_declarator "fts5VocabInstanceNewTerm(Fts5VocabCursor *pCsr)" identifier (parameter_list "(Fts5VocabCursor *pCsr)" ( (parameter_declaration "Fts5VocabCursor *pCsr" type_identifier (pointer_declarator "*pCsr" * identifier)) ))) (compound_statement "{\n  u32 nData;\n  ushort uVar1;\n  u32 uVar2;\n  Fts5IndexIter *pFVar3;\n  u32 uVar4;\n  int iVar5;\n  u8 *pData;\n  long in_FS_OFFSET;\n  int rc;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  pFVar3 = pCsr->pIter;\n  rc = 0;\n  if (pFVar3->bEof == '\0') {\n    uVar2 = pCsr->nLeTerm;\n    uVar1 = *(ushort *)(*(long *)&pFVar3[3].nData + 4);\n    nData = (int)pFVar3[(ulong)uVar1 * 5 + 8].iRowid - 1;\n    pData = (u8 *)(*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1);\n    if (-1 < (int)uVar2) {\n      uVar4 = nData;\n      if ((int)uVar2 <= (int)nData) {\n        uVar4 = uVar2;\n      }\n      iVar5 = memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4);\n      if ((iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0)))) {\n        pCsr->bEof = 1;\n      }\n    }\n    (pCsr->term).n = 0;\n    sqlite3Fts5BufferAppendBlob(&rc,&pCsr->term,nData,pData);\n  }\n  else {\n    pCsr->bEof = 1;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return rc;\n}" { (declaration "u32 nData;" type_identifier identifier ;) (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "u32 uVar2;" type_identifier identifier ;) (declaration "Fts5IndexIter *pFVar3;" type_identifier (pointer_declarator "*pFVar3" * identifier) ;) (declaration "u32 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "u8 *pData;" type_identifier (pointer_declarator "*pData" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int rc;" primitive_type 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 "pFVar3 = pCsr->pIter;" (assignment_expression "pFVar3 = pCsr->pIter" identifier = (field_expression "pCsr->pIter" identifier -> field_identifier)) ;) (expression_statement "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) (if_statement "if (pFVar3->bEof == '\0') {\n    uVar2 = pCsr->nLeTerm;\n    uVar1 = *(ushort *)(*(long *)&pFVar3[3].nData + 4);\n    nData = (int)pFVar3[(ulong)uVar1 * 5 + 8].iRowid - 1;\n    pData = (u8 *)(*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1);\n    if (-1 < (int)uVar2) {\n      uVar4 = nData;\n      if ((int)uVar2 <= (int)nData) {\n        uVar4 = uVar2;\n      }\n      iVar5 = memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4);\n      if ((iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0)))) {\n        pCsr->bEof = 1;\n      }\n    }\n    (pCsr->term).n = 0;\n    sqlite3Fts5BufferAppendBlob(&rc,&pCsr->term,nData,pData);\n  }\n  else {\n    pCsr->bEof = 1;\n  }" if (parenthesized_expression "(pFVar3->bEof == '\0')" ( (binary_expression "pFVar3->bEof == '\0'" (field_expression "pFVar3->bEof" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar2 = pCsr->nLeTerm;\n    uVar1 = *(ushort *)(*(long *)&pFVar3[3].nData + 4);\n    nData = (int)pFVar3[(ulong)uVar1 * 5 + 8].iRowid - 1;\n    pData = (u8 *)(*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1);\n    if (-1 < (int)uVar2) {\n      uVar4 = nData;\n      if ((int)uVar2 <= (int)nData) {\n        uVar4 = uVar2;\n      }\n      iVar5 = memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4);\n      if ((iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0)))) {\n        pCsr->bEof = 1;\n      }\n    }\n    (pCsr->term).n = 0;\n    sqlite3Fts5BufferAppendBlob(&rc,&pCsr->term,nData,pData);\n  }" { (expression_statement "uVar2 = pCsr->nLeTerm;" (assignment_expression "uVar2 = pCsr->nLeTerm" identifier = (field_expression "pCsr->nLeTerm" identifier -> field_identifier)) ;) (expression_statement "uVar1 = *(ushort *)(*(long *)&pFVar3[3].nData + 4);" (assignment_expression "uVar1 = *(ushort *)(*(long *)&pFVar3[3].nData + 4)" identifier = (pointer_expression "*(ushort *)(*(long *)&pFVar3[3].nData + 4)" * (cast_expression "(ushort *)(*(long *)&pFVar3[3].nData + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)&pFVar3[3].nData + 4)" ( (binary_expression "*(long *)&pFVar3[3].nData + 4" (pointer_expression "*(long *)&pFVar3[3].nData" * (cast_expression "(long *)&pFVar3[3].nData" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pFVar3[3].nData" & (field_expression "pFVar3[3].nData" (subscript_expression "pFVar3[3]" identifier [ number_literal ]) . field_identifier)))) + number_literal) ))))) ;) (expression_statement "nData = (int)pFVar3[(ulong)uVar1 * 5 + 8].iRowid - 1;" (assignment_expression "nData = (int)pFVar3[(ulong)uVar1 * 5 + 8].iRowid - 1" identifier = (binary_expression "(int)pFVar3[(ulong)uVar1 * 5 + 8].iRowid - 1" (cast_expression "(int)pFVar3[(ulong)uVar1 * 5 + 8].iRowid" ( (type_descriptor "int" primitive_type) ) (field_expression "pFVar3[(ulong)uVar1 * 5 + 8].iRowid" (subscript_expression "pFVar3[(ulong)uVar1 * 5 + 8]" identifier [ (binary_expression "(ulong)uVar1 * 5 + 8" (binary_expression "(ulong)uVar1 * 5" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal) + number_literal) ]) . field_identifier)) - number_literal)) ;) (expression_statement "pData = (u8 *)(*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1);" (assignment_expression "pData = (u8 *)(*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1)" identifier = (cast_expression "(u8 *)(*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1)" ( (binary_expression "*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData + 1" (pointer_expression "*(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData" * (cast_expression "(long *)&pFVar3[(ulong)uVar1 * 5 + 7].nData" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pFVar3[(ulong)uVar1 * 5 + 7].nData" & (field_expression "pFVar3[(ulong)uVar1 * 5 + 7].nData" (subscript_expression "pFVar3[(ulong)uVar1 * 5 + 7]" identifier [ (binary_expression "(ulong)uVar1 * 5 + 7" (binary_expression "(ulong)uVar1 * 5" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal) + number_literal) ]) . field_identifier)))) + number_literal) )))) ;) (if_statement "if (-1 < (int)uVar2) {\n      uVar4 = nData;\n      if ((int)uVar2 <= (int)nData) {\n        uVar4 = uVar2;\n      }\n      iVar5 = memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4);\n      if ((iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0)))) {\n        pCsr->bEof = 1;\n      }\n    }" if (parenthesized_expression "(-1 < (int)uVar2)" ( (binary_expression "-1 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      uVar4 = nData;\n      if ((int)uVar2 <= (int)nData) {\n        uVar4 = uVar2;\n      }\n      iVar5 = memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4);\n      if ((iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0)))) {\n        pCsr->bEof = 1;\n      }\n    }" { (expression_statement "uVar4 = nData;" (assignment_expression "uVar4 = nData" identifier = identifier) ;) (if_statement "if ((int)uVar2 <= (int)nData) {\n        uVar4 = uVar2;\n      }" if (parenthesized_expression "((int)uVar2 <= (int)nData)" ( (binary_expression "(int)uVar2 <= (int)nData" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)nData" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        uVar4 = uVar2;\n      }" { (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) })) (expression_statement "iVar5 = memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4);" (assignment_expression "iVar5 = memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4)" identifier = (call_expression "memcmp(pCsr->zLeTerm,pData,(long)(int)uVar4)" identifier (argument_list "(pCsr->zLeTerm,pData,(long)(int)uVar4)" ( (field_expression "pCsr->zLeTerm" identifier -> field_identifier) , identifier , (cast_expression "(long)(int)uVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if ((iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0)))) {\n        pCsr->bEof = 1;\n      }" if (parenthesized_expression "((iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0))))" ( (binary_expression "(iVar5 < 0) || (((int)uVar2 < (int)nData && (iVar5 == 0)))" (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) || (parenthesized_expression "(((int)uVar2 < (int)nData && (iVar5 == 0)))" ( (parenthesized_expression "((int)uVar2 < (int)nData && (iVar5 == 0))" ( (binary_expression "(int)uVar2 < (int)nData && (iVar5 == 0)" (binary_expression "(int)uVar2 < (int)nData" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)nData" ( (type_descriptor "int" primitive_type) ) identifier)) && (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n        pCsr->bEof = 1;\n      }" { (expression_statement "pCsr->bEof = 1;" (assignment_expression "pCsr->bEof = 1" (field_expression "pCsr->bEof" identifier -> field_identifier) = number_literal) ;) })) })) (expression_statement "(pCsr->term).n = 0;" (assignment_expression "(pCsr->term).n = 0" (field_expression "(pCsr->term).n" (parenthesized_expression "(pCsr->term)" ( (field_expression "pCsr->term" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "sqlite3Fts5BufferAppendBlob(&rc,&pCsr->term,nData,pData);" (call_expression "sqlite3Fts5BufferAppendBlob(&rc,&pCsr->term,nData,pData)" identifier (argument_list "(&rc,&pCsr->term,nData,pData)" ( (pointer_expression "&rc" & identifier) , (pointer_expression "&pCsr->term" & (field_expression "pCsr->term" identifier -> field_identifier)) , identifier , identifier ))) ;) }) (else_clause "else {\n    pCsr->bEof = 1;\n  }" else (compound_statement "{\n    pCsr->bEof = 1;\n  }" { (expression_statement "pCsr->bEof = 1;" (assignment_expression "pCsr->bEof = 1" (field_expression "pCsr->bEof" identifier -> field_identifier) = number_literal) ;) }))) (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return rc;" return identifier ;) })))
(translation_unit "undefined4 FUN_0015b0c0(long param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  int iVar4;\n  void *__s2;\n  long in_FS_OFFSET;\n  undefined4 local_34;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar3 = *(long *)(param_1 + 0x20);\n  local_34 = 0;\n  if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_34;\n}\n\n" (function_definition "undefined4 FUN_0015b0c0(long param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  int iVar4;\n  void *__s2;\n  long in_FS_OFFSET;\n  undefined4 local_34;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar3 = *(long *)(param_1 + 0x20);\n  local_34 = 0;\n  if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_34;\n}" type_identifier (function_declarator "FUN_0015b0c0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  int iVar4;\n  void *__s2;\n  long in_FS_OFFSET;\n  undefined4 local_34;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar3 = *(long *)(param_1 + 0x20);\n  local_34 = 0;\n  if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_34;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_34;" type_identifier 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 "lVar3 = *(long *)(param_1 + 0x20);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x20)" identifier = (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) ))))) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }" if (parenthesized_expression "(*(char *)(lVar3 + 0x14) == '\0')" ( (binary_expression "*(char *)(lVar3 + 0x14) == '\0'" (pointer_expression "*(char *)(lVar3 + 0x14)" * (cast_expression "(char *)(lVar3 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x14)" ( (binary_expression "lVar3 + 0x14" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;" (assignment_expression "lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78" identifier = (binary_expression "lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78" identifier + (binary_expression "(ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78" (binary_expression "(ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(ushort *)(*(long *)(lVar3 + 0x58) + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x58) + 4)" ( (binary_expression "*(long *)(lVar3 + 0x58) + 4" (pointer_expression "*(long *)(lVar3 + 0x58)" * (cast_expression "(long *)(lVar3 + 0x58)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x58)" ( (binary_expression "lVar3 + 0x58" identifier + number_literal) )))) + number_literal) )))) * number_literal))) ;) (expression_statement "iVar1 = *(int *)(lVar3 + 0xc0) + -1;" (assignment_expression "iVar1 = *(int *)(lVar3 + 0xc0) + -1" identifier = (binary_expression "*(int *)(lVar3 + 0xc0) + -1" (pointer_expression "*(int *)(lVar3 + 0xc0)" * (cast_expression "(int *)(lVar3 + 0xc0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xc0)" ( (binary_expression "lVar3 + 0xc0" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "__s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);" (assignment_expression "__s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1)" identifier = (cast_expression "(void *)(*(long *)(lVar3 + 0xb8) + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0xb8) + 1)" ( (binary_expression "*(long *)(lVar3 + 0xb8) + 1" (pointer_expression "*(long *)(lVar3 + 0xb8)" * (cast_expression "(long *)(lVar3 + 0xb8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xb8)" ( (binary_expression "lVar3 + 0xb8" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (if_statement "if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }" if (parenthesized_expression "(iVar2 <= iVar1)" ( (binary_expression "iVar2 <= iVar1" identifier <= identifier) )) (compound_statement "{\n        iVar4 = iVar2;\n      }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) })) (expression_statement "iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);" (assignment_expression "iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4)" identifier = (call_expression "memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4)" identifier (argument_list "(*(void **)(param_1 + 0x30),__s2,(long)iVar4)" ( (pointer_expression "*(void **)(param_1 + 0x30)" * (cast_expression "(void **)(param_1 + 0x30)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) , identifier , (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) )))) ;) (if_statement "if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }" if (parenthesized_expression "((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0))))" ( (binary_expression "(iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))" (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) || (parenthesized_expression "((iVar2 < iVar1 && (iVar4 == 0)))" ( (parenthesized_expression "(iVar2 < iVar1 && (iVar4 == 0))" ( (binary_expression "iVar2 < iVar1 && (iVar4 == 0)" (binary_expression "iVar2 < iVar1" identifier < identifier) && (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) })) })) (expression_statement "*(undefined4 *)(param_1 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);" (call_expression "FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2)" identifier (argument_list "(&local_34,param_1 + 0x58,iVar1,__s2)" ( (pointer_expression "&local_34" & identifier) , (binary_expression "param_1 + 0x58" identifier + number_literal) , identifier , identifier ))) ;) }) (else_clause "else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }" else (compound_statement "{\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }))) (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\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                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_34;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE 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 = (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) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (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) )))) * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (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 LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0015b0c0(long param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  int iVar4;\n  void *__s2;\n  long in_FS_OFFSET;\n  undefined4 local_34;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar3 = *(long *)(param_1 + 0x20);\n  local_34 = 0;\n  if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_34;\n}" (type_identifier "undefined4") (function_declarator "FUN_0015b0c0(long param_1)" (identifier "FUN_0015b0c0") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  long lVar3;\n  int iVar4;\n  void *__s2;\n  long in_FS_OFFSET;\n  undefined4 local_34;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar3 = *(long *)(param_1 + 0x20);\n  local_34 = 0;\n  if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_34;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "void *__s2;" (primitive_type "void") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (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 "lVar3 = *(long *)(param_1 + 0x20);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x20)" (identifier "lVar3") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)(lVar3 + 0x14) == '\0') {\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }" (if "if") (parenthesized_expression "(*(char *)(lVar3 + 0x14) == '\0')" (( "(") (binary_expression "*(char *)(lVar3 + 0x14) == '\0'" (pointer_expression "*(char *)(lVar3 + 0x14)" (* "*") (cast_expression "(char *)(lVar3 + 0x14)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x14)" (( "(") (binary_expression "lVar3 + 0x14" (identifier "lVar3") (+ "+") (number_literal "0x14")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x28);\n    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;\n    iVar1 = *(int *)(lVar3 + 0xc0) + -1;\n    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);\n    if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }\n    *(undefined4 *)(param_1 + 0x60) = 0;\n    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;" (assignment_expression "lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78" (identifier "lVar3") (= "=") (binary_expression "lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78" (identifier "lVar3") (+ "+") (binary_expression "(ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78" (binary_expression "(ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(ushort *)(*(long *)(lVar3 + 0x58) + 4)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar3 + 0x58) + 4)" (( "(") (binary_expression "*(long *)(lVar3 + 0x58) + 4" (pointer_expression "*(long *)(lVar3 + 0x58)" (* "*") (cast_expression "(long *)(lVar3 + 0x58)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x58)" (( "(") (binary_expression "lVar3 + 0x58" (identifier "lVar3") (+ "+") (number_literal "0x58")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (* "*") (number_literal "0x78")))) (; ";")) (expression_statement "iVar1 = *(int *)(lVar3 + 0xc0) + -1;" (assignment_expression "iVar1 = *(int *)(lVar3 + 0xc0) + -1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(lVar3 + 0xc0) + -1" (pointer_expression "*(int *)(lVar3 + 0xc0)" (* "*") (cast_expression "(int *)(lVar3 + 0xc0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0xc0)" (( "(") (binary_expression "lVar3 + 0xc0" (identifier "lVar3") (+ "+") (number_literal "0xc0")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "__s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);" (assignment_expression "__s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1)" (identifier "__s2") (= "=") (cast_expression "(void *)(*(long *)(lVar3 + 0xb8) + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar3 + 0xb8) + 1)" (( "(") (binary_expression "*(long *)(lVar3 + 0xb8) + 1" (pointer_expression "*(long *)(lVar3 + 0xb8)" (* "*") (cast_expression "(long *)(lVar3 + 0xb8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0xb8)" (( "(") (binary_expression "lVar3 + 0xb8" (identifier "lVar3") (+ "+") (number_literal "0xb8")) () ")")))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (-1 < iVar2) {\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      iVar4 = iVar1;\n      if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }\n      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);\n      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }\n    }" ({ "{") (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" (identifier "iVar4") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar2 <= iVar1) {\n        iVar4 = iVar2;\n      }" (if "if") (parenthesized_expression "(iVar2 <= iVar1)" (( "(") (binary_expression "iVar2 <= iVar1" (identifier "iVar2") (<= "<=") (identifier "iVar1")) () ")")) (compound_statement "{\n        iVar4 = iVar2;\n      }" ({ "{") (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" (identifier "iVar4") (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (expression_statement "iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);" (assignment_expression "iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4)" (identifier "iVar4") (= "=") (call_expression "memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4)" (identifier "memcmp") (argument_list "(*(void **)(param_1 + 0x30),__s2,(long)iVar4)" (( "(") (pointer_expression "*(void **)(param_1 + 0x30)" (* "*") (cast_expression "(void **)(param_1 + 0x30)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (, ",") (identifier "__s2") (, ",") (cast_expression "(long)iVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar4")) () ")")))) (; ";")) (if_statement "if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }" (if "if") (parenthesized_expression "((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0))))" (( "(") (binary_expression "(iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))" (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((iVar2 < iVar1 && (iVar4 == 0)))" (( "(") (parenthesized_expression "(iVar2 < iVar1 && (iVar4 == 0))" (( "(") (binary_expression "iVar2 < iVar1 && (iVar4 == 0)" (binary_expression "iVar2 < iVar1" (identifier "iVar2") (< "<") (identifier "iVar1")) (&& "&&") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x18) = 1;\n      }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);" (call_expression "FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2)" (identifier "FUN_0015b060") (argument_list "(&local_34,param_1 + 0x58,iVar1,__s2)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) (, ",") (identifier "iVar1") (, ",") (identifier "__s2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }" (else "else") (compound_statement "{\n    *(undefined4 *)(param_1 + 0x18) = 1;\n    local_34 = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\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                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return local_34;" (return "return") (identifier "local_34") (; ";")) (} "}")))

int function_1(type_1 *pCsr)

{
  type_2 nData;
  type_3 uVar1;
  type_2 uVar2;
  type_4 *pFVar3;
  type_2 uVar4;
  int var_3;
  type_5 *pData;
  long var_1;
  int rc;
  long var_5;
  
  var_5 = *(long *)(var_1 + 0x28);
  pFVar3 = pCsr->pIter;
  rc = 0;
  if (pFVar3->bEof == '\0') {
    uVar2 = pCsr->nLeTerm;
    uVar1 = *(type_3 *)(*(long *)&pFVar3[3].nData + 4);
    nData = (int)pFVar3[(type_6)uVar1 * 5 + 8].iRowid - 1;
    pData = (type_5 *)(*(long *)&pFVar3[(type_6)uVar1 * 5 + 7].nData + 1);
    if (-1 < (int)uVar2) {
      uVar4 = nData;
      if ((int)uVar2 <= (int)nData) {
        uVar4 = uVar2;
      }
      var_3 = var_2(pCsr->zLeTerm,pData,(long)(int)uVar4);
      if ((var_3 < 0) || (((int)uVar2 < (int)nData && (var_3 == 0)))) {
        pCsr->bEof = 1;
      }
    }
    (pCsr->term).n = 0;
    var_4(&rc,&pCsr->term,nData,pData);
  }
  else {
    pCsr->bEof = 1;
  }
  if (var_5 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_6();
  }
  return rc;
}


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

undefined4 MASKED(long param_1)

{
  int iVar1;
  int iVar2;
  long lVar3;
  int iVar4;
  void *__s2;
  long in_FS_OFFSET;
  undefined4 local_34;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  lVar3 = *(long *)(param_1 + 0x20);
  local_34 = 0;
  if (*(char *)(lVar3 + 0x14) == '\0') {
    iVar2 = *(int *)(param_1 + 0x28);
    lVar3 = lVar3 + (ulong)*(ushort *)(*(long *)(lVar3 + 0x58) + 4) * 0x78;
    iVar1 = *(int *)(lVar3 + 0xc0) + -1;
    __s2 = (void *)(*(long *)(lVar3 + 0xb8) + 1);
    if (-1 < iVar2) {
      iVar4 = iVar1;
      if (iVar2 <= iVar1) {
        iVar4 = iVar2;
      }
      iVar4 = memcmp(*(void **)(param_1 + 0x30),__s2,(long)iVar4);
      if ((iVar4 < 0) || ((iVar2 < iVar1 && (iVar4 == 0)))) {
        *(undefined4 *)(param_1 + 0x18) = 1;
      }
    }
    *(undefined4 *)(param_1 + 0x60) = 0;
    FUN_0015b060(&local_34,param_1 + 0x58,iVar1,__s2);
  }
  else {
    *(undefined4 *)(param_1 + 0x18) = 1;
    local_34 = 0;
  }
  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return local_34;
}

