
int fts5PorterGobbleVC(char *zStem,int nStem,int bPrevCons)

{
  int iVar1;
  char *pcVar2;
  int bCons;
  int iVar3;
  int iVar4;
  
  if (nStem < 1) {
    return 0;
  }
  iVar4 = 0;
  do {
    iVar3 = iVar4;
    iVar4 = iVar3 + 1;
    iVar1 = fts5PorterIsVowel(zStem[iVar3],bPrevCons);
    bPrevCons = (int)(iVar1 == 0);
    if (iVar1 != 0) goto LAB_0004063c;
  } while (nStem != iVar4);
  iVar4 = iVar3 + 2;
LAB_0004063c:
  if (iVar4 < nStem) {
    do {
      pcVar2 = zStem + iVar4;
      iVar4 = iVar4 + 1;
      iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons);
      bPrevCons = 0;
      if (iVar1 == 0) {
        return iVar4;
      }
    } while (nStem != iVar4);
  }
  return 0;
}



int FUN_000405e0(int param_1,int param_2,uint param_3)

{
  int iVar1;
  char *pcVar2;
  int iVar3;
  int iVar4;
  
  if (param_2 < 1) {
    return 0;
  }
  iVar4 = 0;
  do {
    iVar3 = iVar4;
    iVar4 = iVar3 + 1;
    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);
    param_3 = (uint)(iVar1 == 0);
    if (iVar1 != 0) goto LAB_0004063c;
  } while (param_2 != iVar4);
  iVar4 = iVar3 + 2;
LAB_0004063c:
  if (iVar4 < param_2) {
    do {
      pcVar2 = (char *)(param_1 + iVar4);
      iVar4 = iVar4 + 1;
      iVar1 = FUN_0004059c((int)*pcVar2,param_3);
      param_3 = 0;
      if (iVar1 == 0) {
        return iVar4;
      }
    } while (param_2 != iVar4);
  }
  return 0;
}


lui gp,0x12
addiu gp,gp,0x2fd0
addu gp,gp,t9
blez a1,0x00040698
_or t0,a1,zero
addiu sp,sp,-0x20
lw t9,-0x7ef0(gp)
or a1,a2,zero
or t1,a0,zero
sw gp,0x10(sp)
or a2,zero,zero
sw ra,0x1c(sp)
b 0x00040624
_addiu t9,t9,0x59c
beq t0,a3,0x00040680
_nop
or a2,a3,zero
addu v0,t1,a2
addiu a3,a2,0x1
bal 0x0004059c
_lb a0,0x0(v0)
beq v0,zero,0x00040618
_sltiu a1,v0,0x1
slt v0,a3,t0
bne v0,zero,0x00040658
_lw ra,0x1c(sp)
b 0x0004068c
_or a3,zero,zero
beq t0,a3,0x00040688
_lw ra,0x1c(sp)
addu v0,t1,a3
addiu a3,a3,0x1
bal 0x0004059c
_lb a0,0x0(v0)
bne v0,zero,0x00040650
_or a1,zero,zero
lw ra,0x1c(sp)
or v0,a3,zero
jr ra
_addiu sp,sp,0x20
b 0x0004063c
_addiu a3,a2,0x2
or a3,zero,zero
addiu sp,sp,0x20
jr ra
_or v0,a3,zero
or a3,zero,zero
jr ra
_or v0,a3,zero
(translation_unit "int FUN_000405e0(int param_1,int param_2,uint param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_2 < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_000405e0(int param_1,int param_2,uint param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_2 < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_000405e0(int param_1,int param_2,uint param_3)" identifier (parameter_list "(int param_1,int param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_2 < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (param_2 < 1) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);" do (compound_statement "{\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  }" { (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);" (assignment_expression "iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3)" identifier = (call_expression "FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3)" identifier (argument_list "((int)*(char *)(param_1 + iVar3),param_3)" ( (cast_expression "(int)*(char *)(param_1 + iVar3)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)(param_1 + iVar3)" * (cast_expression "(char *)(param_1 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar3)" ( (binary_expression "param_1 + iVar3" identifier + identifier) ))))) , identifier )))) ;) (expression_statement "param_3 = (uint)(iVar1 == 0);" (assignment_expression "param_3 = (uint)(iVar1 == 0)" identifier = (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) ;) (if_statement "if (iVar1 != 0) goto LAB_0004063c;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004063c;" goto statement_identifier ;)) }) while (parenthesized_expression "(param_2 != iVar4)" ( (binary_expression "param_2 != iVar4" identifier != identifier) )) ;) (expression_statement "iVar4 = iVar3 + 2;" (assignment_expression "iVar4 = iVar3 + 2" identifier = (binary_expression "iVar3 + 2" identifier + number_literal)) ;) (labeled_statement "LAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }" statement_identifier : (if_statement "if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }" if (parenthesized_expression "(iVar4 < param_2)" ( (binary_expression "iVar4 < param_2" identifier < identifier) )) (compound_statement "{\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }" { (do_statement "do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);" do (compound_statement "{\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    }" { (expression_statement "pcVar2 = (char *)(param_1 + iVar4);" (assignment_expression "pcVar2 = (char *)(param_1 + iVar4)" identifier = (cast_expression "(char *)(param_1 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4)" ( (binary_expression "param_1 + iVar4" identifier + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = FUN_0004059c((int)*pcVar2,param_3);" (assignment_expression "iVar1 = FUN_0004059c((int)*pcVar2,param_3)" identifier = (call_expression "FUN_0004059c((int)*pcVar2,param_3)" identifier (argument_list "((int)*pcVar2,param_3)" ( (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier)) , identifier )))) ;) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n        return iVar4;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return iVar4;\n      }" { (return_statement "return iVar4;" return identifier ;) })) }) while (parenthesized_expression "(param_2 != iVar4)" ( (binary_expression "param_2 != iVar4" identifier != identifier) )) ;) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int fts5PorterGobbleVC(char *zStem,int nStem,int bPrevCons)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int bCons;\n  int iVar3;\n  int iVar4;\n  \n  if (nStem < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = fts5PorterIsVowel(zStem[iVar3],bPrevCons);\n    bPrevCons = (int)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (nStem != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < nStem) {\n    do {\n      pcVar2 = zStem + iVar4;\n      iVar4 = iVar4 + 1;\n      iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons);\n      bPrevCons = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (nStem != iVar4);\n  }\n  return 0;\n}\n\n" (function_definition "int fts5PorterGobbleVC(char *zStem,int nStem,int bPrevCons)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int bCons;\n  int iVar3;\n  int iVar4;\n  \n  if (nStem < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = fts5PorterIsVowel(zStem[iVar3],bPrevCons);\n    bPrevCons = (int)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (nStem != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < nStem) {\n    do {\n      pcVar2 = zStem + iVar4;\n      iVar4 = iVar4 + 1;\n      iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons);\n      bPrevCons = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (nStem != iVar4);\n  }\n  return 0;\n}" primitive_type (function_declarator "fts5PorterGobbleVC(char *zStem,int nStem,int bPrevCons)" identifier (parameter_list "(char *zStem,int nStem,int bPrevCons)" ( (parameter_declaration "char *zStem" primitive_type (pointer_declarator "*zStem" * identifier)) , (parameter_declaration "int nStem" primitive_type identifier) , (parameter_declaration "int bPrevCons" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int bCons;\n  int iVar3;\n  int iVar4;\n  \n  if (nStem < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = fts5PorterIsVowel(zStem[iVar3],bPrevCons);\n    bPrevCons = (int)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (nStem != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < nStem) {\n    do {\n      pcVar2 = zStem + iVar4;\n      iVar4 = iVar4 + 1;\n      iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons);\n      bPrevCons = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (nStem != iVar4);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int bCons;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (nStem < 1) {\n    return 0;\n  }" if (parenthesized_expression "(nStem < 1)" ( (binary_expression "nStem < 1" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = fts5PorterIsVowel(zStem[iVar3],bPrevCons);\n    bPrevCons = (int)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (nStem != iVar4);" do (compound_statement "{\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = fts5PorterIsVowel(zStem[iVar3],bPrevCons);\n    bPrevCons = (int)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  }" { (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = fts5PorterIsVowel(zStem[iVar3],bPrevCons);" (assignment_expression "iVar1 = fts5PorterIsVowel(zStem[iVar3],bPrevCons)" identifier = (call_expression "fts5PorterIsVowel(zStem[iVar3],bPrevCons)" identifier (argument_list "(zStem[iVar3],bPrevCons)" ( (subscript_expression "zStem[iVar3]" identifier [ identifier ]) , identifier )))) ;) (expression_statement "bPrevCons = (int)(iVar1 == 0);" (assignment_expression "bPrevCons = (int)(iVar1 == 0)" identifier = (cast_expression "(int)(iVar1 == 0)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) ;) (if_statement "if (iVar1 != 0) goto LAB_0004063c;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004063c;" goto statement_identifier ;)) }) while (parenthesized_expression "(nStem != iVar4)" ( (binary_expression "nStem != iVar4" identifier != identifier) )) ;) (expression_statement "iVar4 = iVar3 + 2;" (assignment_expression "iVar4 = iVar3 + 2" identifier = (binary_expression "iVar3 + 2" identifier + number_literal)) ;) (labeled_statement "LAB_0004063c:\n  if (iVar4 < nStem) {\n    do {\n      pcVar2 = zStem + iVar4;\n      iVar4 = iVar4 + 1;\n      iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons);\n      bPrevCons = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (nStem != iVar4);\n  }" statement_identifier : (if_statement "if (iVar4 < nStem) {\n    do {\n      pcVar2 = zStem + iVar4;\n      iVar4 = iVar4 + 1;\n      iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons);\n      bPrevCons = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (nStem != iVar4);\n  }" if (parenthesized_expression "(iVar4 < nStem)" ( (binary_expression "iVar4 < nStem" identifier < identifier) )) (compound_statement "{\n    do {\n      pcVar2 = zStem + iVar4;\n      iVar4 = iVar4 + 1;\n      iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons);\n      bPrevCons = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (nStem != iVar4);\n  }" { (do_statement "do {\n      pcVar2 = zStem + iVar4;\n      iVar4 = iVar4 + 1;\n      iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons);\n      bPrevCons = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (nStem != iVar4);" do (compound_statement "{\n      pcVar2 = zStem + iVar4;\n      iVar4 = iVar4 + 1;\n      iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons);\n      bPrevCons = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    }" { (expression_statement "pcVar2 = zStem + iVar4;" (assignment_expression "pcVar2 = zStem + iVar4" identifier = (binary_expression "zStem + iVar4" identifier + identifier)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons);" (assignment_expression "iVar1 = fts5PorterIsVowel(*pcVar2,bPrevCons)" identifier = (call_expression "fts5PorterIsVowel(*pcVar2,bPrevCons)" identifier (argument_list "(*pcVar2,bPrevCons)" ( (pointer_expression "*pcVar2" * identifier) , identifier )))) ;) (expression_statement "bPrevCons = 0;" (assignment_expression "bPrevCons = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n        return iVar4;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return iVar4;\n      }" { (return_statement "return iVar4;" return identifier ;) })) }) while (parenthesized_expression "(nStem != iVar4)" ( (binary_expression "nStem != iVar4" identifier != identifier) )) ;) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_000405e0(int param_1,int param_2,uint param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_2 < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_000405e0(int param_1,int param_2,uint param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_2 < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_000405e0(int param_1,int param_2,uint param_3)" identifier (parameter_list "(int param_1,int param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_2 < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (param_2 < 1) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);" do (compound_statement "{\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  }" { (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);" (assignment_expression "iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3)" identifier = (call_expression "FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3)" identifier (argument_list "((int)*(char *)(param_1 + iVar3),param_3)" ( (cast_expression "(int)*(char *)(param_1 + iVar3)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)(param_1 + iVar3)" * (cast_expression "(char *)(param_1 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar3)" ( (binary_expression "param_1 + iVar3" identifier + identifier) ))))) , identifier )))) ;) (expression_statement "param_3 = (uint)(iVar1 == 0);" (assignment_expression "param_3 = (uint)(iVar1 == 0)" identifier = (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) ;) (if_statement "if (iVar1 != 0) goto LAB_0004063c;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004063c;" goto statement_identifier ;)) }) while (parenthesized_expression "(param_2 != iVar4)" ( (binary_expression "param_2 != iVar4" identifier != identifier) )) ;) (expression_statement "iVar4 = iVar3 + 2;" (assignment_expression "iVar4 = iVar3 + 2" identifier = (binary_expression "iVar3 + 2" identifier + number_literal)) ;) (labeled_statement "LAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }" statement_identifier : (if_statement "if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }" if (parenthesized_expression "(iVar4 < param_2)" ( (binary_expression "iVar4 < param_2" identifier < identifier) )) (compound_statement "{\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }" { (do_statement "do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);" do (compound_statement "{\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    }" { (expression_statement "pcVar2 = (char *)(param_1 + iVar4);" (assignment_expression "pcVar2 = (char *)(param_1 + iVar4)" identifier = (cast_expression "(char *)(param_1 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4)" ( (binary_expression "param_1 + iVar4" identifier + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = FUN_0004059c((int)*pcVar2,param_3);" (assignment_expression "iVar1 = FUN_0004059c((int)*pcVar2,param_3)" identifier = (call_expression "FUN_0004059c((int)*pcVar2,param_3)" identifier (argument_list "((int)*pcVar2,param_3)" ( (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier)) , identifier )))) ;) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n        return iVar4;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return iVar4;\n      }" { (return_statement "return iVar4;" return identifier ;) })) }) while (parenthesized_expression "(param_2 != iVar4)" ( (binary_expression "param_2 != iVar4" identifier != identifier) )) ;) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (return_statement return LIT ;) })))
(function_definition "int FUN_000405e0(int param_1,int param_2,uint param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_2 < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_000405e0(int param_1,int param_2,uint param_3)" (identifier "FUN_000405e0") (parameter_list "(int param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_2 < 1) {\n    return 0;\n  }\n  iVar4 = 0;\n  do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);\n  iVar4 = iVar3 + 2;\nLAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if (param_2 < 1) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  } while (param_2 != iVar4);" (do "do") (compound_statement "{\n    iVar3 = iVar4;\n    iVar4 = iVar3 + 1;\n    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);\n    param_3 = (uint)(iVar1 == 0);\n    if (iVar1 != 0) goto LAB_0004063c;\n  }" ({ "{") (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" (identifier "iVar3") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar4 = iVar3 + 1;" (assignment_expression "iVar4 = iVar3 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);" (assignment_expression "iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3)" (identifier "FUN_0004059c") (argument_list "((int)*(char *)(param_1 + iVar3),param_3)" (( "(") (cast_expression "(int)*(char *)(param_1 + iVar3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(char *)(param_1 + iVar3)" (* "*") (cast_expression "(char *)(param_1 + iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar3)" (( "(") (binary_expression "param_1 + iVar3" (identifier "param_1") (+ "+") (identifier "iVar3")) () ")"))))) (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "param_3 = (uint)(iVar1 == 0);" (assignment_expression "param_3 = (uint)(iVar1 == 0)" (identifier "param_3") (= "=") (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) goto LAB_0004063c;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0004063c;" (goto "goto") (statement_identifier "LAB_0004063c") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(param_2 != iVar4)" (( "(") (binary_expression "param_2 != iVar4" (identifier "param_2") (!= "!=") (identifier "iVar4")) () ")")) (; ";")) (expression_statement "iVar4 = iVar3 + 2;" (assignment_expression "iVar4 = iVar3 + 2" (identifier "iVar4") (= "=") (binary_expression "iVar3 + 2" (identifier "iVar3") (+ "+") (number_literal "2"))) (; ";")) (labeled_statement "LAB_0004063c:\n  if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }" (statement_identifier "LAB_0004063c") (: ":") (if_statement "if (iVar4 < param_2) {\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }" (if "if") (parenthesized_expression "(iVar4 < param_2)" (( "(") (binary_expression "iVar4 < param_2" (identifier "iVar4") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);\n  }" ({ "{") (do_statement "do {\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    } while (param_2 != iVar4);" (do "do") (compound_statement "{\n      pcVar2 = (char *)(param_1 + iVar4);\n      iVar4 = iVar4 + 1;\n      iVar1 = FUN_0004059c((int)*pcVar2,param_3);\n      param_3 = 0;\n      if (iVar1 == 0) {\n        return iVar4;\n      }\n    }" ({ "{") (expression_statement "pcVar2 = (char *)(param_1 + iVar4);" (assignment_expression "pcVar2 = (char *)(param_1 + iVar4)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(param_1 + iVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar4)" (( "(") (binary_expression "param_1 + iVar4" (identifier "param_1") (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = FUN_0004059c((int)*pcVar2,param_3);" (assignment_expression "iVar1 = FUN_0004059c((int)*pcVar2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_0004059c((int)*pcVar2,param_3)" (identifier "FUN_0004059c") (argument_list "((int)*pcVar2,param_3)" (( "(") (cast_expression "(int)*pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" (identifier "param_3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 == 0) {\n        return iVar4;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return iVar4;\n      }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(param_2 != iVar4)" (( "(") (binary_expression "param_2 != iVar4" (identifier "param_2") (!= "!=") (identifier "iVar4")) () ")")) (; ";")) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (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: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (return_statement (number_literal)))))

int MASKED(int param_1,int param_2,uint param_3)

{
  int iVar1;
  char *pcVar2;
  int iVar3;
  int iVar4;
  
  if (param_2 < 1) {
    return 0;
  }
  iVar4 = 0;
  do {
    iVar3 = iVar4;
    iVar4 = iVar3 + 1;
    iVar1 = FUN_0004059c((int)*(char *)(param_1 + iVar3),param_3);
    param_3 = (uint)(iVar1 == 0);
    if (iVar1 != 0) goto LAB_0004063c;
  } while (param_2 != iVar4);
  iVar4 = iVar3 + 2;
LAB_0004063c:
  if (iVar4 < param_2) {
    do {
      pcVar2 = (char *)(param_1 + iVar4);
      iVar4 = iVar4 + 1;
      iVar1 = FUN_0004059c((int)*pcVar2,param_3);
      param_3 = 0;
      if (iVar1 == 0) {
        return iVar4;
      }
    } while (param_2 != iVar4);
  }
  return 0;
}

