
int fts5Porter_MEq1(char *zStem,int nStem)

{
  uint uVar1;
  int iVar2;
  
  uVar1 = fts5PorterGobbleVC(zStem,nStem,0);
  if (uVar1 != 0) {
    iVar2 = fts5PorterGobbleVC(zStem + (int)uVar1,nStem - uVar1,1);
    uVar1 = (uint)(iVar2 == 0);
  }
  return uVar1;
}



ulong FUN_00135761(long param_1,undefined8 param_2)

{
  int iVar1;
  ulong uVar2;
  
  uVar2 = FUN_00135678(param_1,param_2,0);
  iVar1 = (int)uVar2;
  if (iVar1 != 0) {
    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);
    uVar2 = (ulong)(iVar1 == 0);
  }
  return uVar2;
}


PUSH RBP
PUSH RBX
MOV RBX,RDI
MOV EBP,ESI
MOV EDX,0x0
CALL 0x00135678
TEST EAX,EAX
JZ 0x00135792
MOV ESI,EBP
SUB ESI,EAX
CDQE
LEA RDI,[RBX + RAX*0x1]
MOV EDX,0x1
CALL 0x00135678
TEST EAX,EAX
SETZ AL
MOVZX EAX,AL
POP RBX
POP RBP
RET
(translation_unit "ulong FUN_00135761(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = FUN_00135678(param_1,param_2,0);\n  iVar1 = (int)uVar2;\n  if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong FUN_00135761(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = FUN_00135678(param_1,param_2,0);\n  iVar1 = (int)uVar2;\n  if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00135761(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = FUN_00135678(param_1,param_2,0);\n  iVar1 = (int)uVar2;\n  if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = FUN_00135678(param_1,param_2,0);" (assignment_expression "uVar2 = FUN_00135678(param_1,param_2,0)" identifier = (call_expression "FUN_00135678(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar1 = (int)uVar2;" (assignment_expression "iVar1 = (int)uVar2" identifier = (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }" { (expression_statement "iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);" (assignment_expression "iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1)" identifier = (call_expression "FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1)" identifier (argument_list "(param_1 + iVar1,(int)param_2 - iVar1,1)" ( (binary_expression "param_1 + iVar1" identifier + identifier) , (binary_expression "(int)param_2 - iVar1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) , number_literal )))) ;) (expression_statement "uVar2 = (ulong)(iVar1 == 0);" (assignment_expression "uVar2 = (ulong)(iVar1 == 0)" identifier = (call_expression "(ulong)(iVar1 == 0)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int fts5Porter_MEq1(char *zStem,int nStem)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = fts5PorterGobbleVC(zStem,nStem,0);\n  if (uVar1 != 0) {\n    iVar2 = fts5PorterGobbleVC(zStem + (int)uVar1,nStem - uVar1,1);\n    uVar1 = (uint)(iVar2 == 0);\n  }\n  return uVar1;\n}\n\n" (function_definition "int fts5Porter_MEq1(char *zStem,int nStem)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = fts5PorterGobbleVC(zStem,nStem,0);\n  if (uVar1 != 0) {\n    iVar2 = fts5PorterGobbleVC(zStem + (int)uVar1,nStem - uVar1,1);\n    uVar1 = (uint)(iVar2 == 0);\n  }\n  return uVar1;\n}" primitive_type (function_declarator "fts5Porter_MEq1(char *zStem,int nStem)" identifier (parameter_list "(char *zStem,int nStem)" ( (parameter_declaration "char *zStem" primitive_type (pointer_declarator "*zStem" * identifier)) , (parameter_declaration "int nStem" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = fts5PorterGobbleVC(zStem,nStem,0);\n  if (uVar1 != 0) {\n    iVar2 = fts5PorterGobbleVC(zStem + (int)uVar1,nStem - uVar1,1);\n    uVar1 = (uint)(iVar2 == 0);\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = fts5PorterGobbleVC(zStem,nStem,0);" (assignment_expression "uVar1 = fts5PorterGobbleVC(zStem,nStem,0)" identifier = (call_expression "fts5PorterGobbleVC(zStem,nStem,0)" identifier (argument_list "(zStem,nStem,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (uVar1 != 0) {\n    iVar2 = fts5PorterGobbleVC(zStem + (int)uVar1,nStem - uVar1,1);\n    uVar1 = (uint)(iVar2 == 0);\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = fts5PorterGobbleVC(zStem + (int)uVar1,nStem - uVar1,1);\n    uVar1 = (uint)(iVar2 == 0);\n  }" { (expression_statement "iVar2 = fts5PorterGobbleVC(zStem + (int)uVar1,nStem - uVar1,1);" (assignment_expression "iVar2 = fts5PorterGobbleVC(zStem + (int)uVar1,nStem - uVar1,1)" identifier = (call_expression "fts5PorterGobbleVC(zStem + (int)uVar1,nStem - uVar1,1)" identifier (argument_list "(zStem + (int)uVar1,nStem - uVar1,1)" ( (binary_expression "zStem + (int)uVar1" identifier + (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "nStem - uVar1" identifier - identifier) , number_literal )))) ;) (expression_statement "uVar1 = (uint)(iVar2 == 0);" (assignment_expression "uVar1 = (uint)(iVar2 == 0)" identifier = (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "ulong FUN_00135761(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = FUN_00135678(param_1,param_2,0);\n  iVar1 = (int)uVar2;\n  if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong FUN_00135761(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = FUN_00135678(param_1,param_2,0);\n  iVar1 = (int)uVar2;\n  if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00135761(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = FUN_00135678(param_1,param_2,0);\n  iVar1 = (int)uVar2;\n  if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = FUN_00135678(param_1,param_2,0);" (assignment_expression "uVar2 = FUN_00135678(param_1,param_2,0)" identifier = (call_expression "FUN_00135678(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar1 = (int)uVar2;" (assignment_expression "iVar1 = (int)uVar2" identifier = (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }" { (expression_statement "iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);" (assignment_expression "iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1)" identifier = (call_expression "FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1)" identifier (argument_list "(param_1 + iVar1,(int)param_2 - iVar1,1)" ( (binary_expression "param_1 + iVar1" identifier + identifier) , (binary_expression "(int)param_2 - iVar1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) , number_literal )))) ;) (expression_statement "uVar2 = (ulong)(iVar1 == 0);" (assignment_expression "uVar2 = (ulong)(iVar1 == 0)" identifier = (call_expression "(ulong)(iVar1 == 0)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_00135761(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = FUN_00135678(param_1,param_2,0);\n  iVar1 = (int)uVar2;\n  if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }\n  return uVar2;\n}" (type_identifier "ulong") (function_declarator "FUN_00135761(long param_1,undefined8 param_2)" (identifier "FUN_00135761") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  \n  uVar2 = FUN_00135678(param_1,param_2,0);\n  iVar1 = (int)uVar2;\n  if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = FUN_00135678(param_1,param_2,0);" (assignment_expression "uVar2 = FUN_00135678(param_1,param_2,0)" (identifier "uVar2") (= "=") (call_expression "FUN_00135678(param_1,param_2,0)" (identifier "FUN_00135678") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar1 = (int)uVar2;" (assignment_expression "iVar1 = (int)uVar2" (identifier "iVar1") (= "=") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);\n    uVar2 = (ulong)(iVar1 == 0);\n  }" ({ "{") (expression_statement "iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);" (assignment_expression "iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1)" (identifier "iVar1") (= "=") (call_expression "FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1)" (identifier "FUN_00135678") (argument_list "(param_1 + iVar1,(int)param_2 - iVar1,1)" (( "(") (binary_expression "param_1 + iVar1" (identifier "param_1") (+ "+") (identifier "iVar1")) (, ",") (binary_expression "(int)param_2 - iVar1" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (identifier "iVar1")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "uVar2 = (ulong)(iVar1 == 0);" (assignment_expression "uVar2 = (ulong)(iVar1 == 0)" (identifier "uVar2") (= "=") (call_expression "(ulong)(iVar1 == 0)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")))) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int function_1(char *var_3,int var_4)

{
  type_1 var_2;
  int var_5;
  
  var_2 = var_1(var_3,var_4,0);
  if (var_2 != 0) {
    var_5 = var_1(var_3 + (int)var_2,var_4 - var_2,1);
    var_2 = (type_1)(var_5 == 0);
  }
  return var_2;
}


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

ulong MASKED(long param_1,undefined8 param_2)

{
  int iVar1;
  ulong uVar2;
  
  uVar2 = FUN_00135678(param_1,param_2,0);
  iVar1 = (int)uVar2;
  if (iVar1 != 0) {
    iVar1 = FUN_00135678(param_1 + iVar1,(int)param_2 - iVar1,1);
    uVar2 = (ulong)(iVar1 == 0);
  }
  return uVar2;
}

