
uchar * find_otg(uchar *buf,int buflen)

{
  bool bVar1;
  uint uVar2;
  
  if (2 < buflen) {
    do {
      uVar2 = (uint)*buf;
      bVar1 = buflen < (int)uVar2;
      if ((uVar2 == 3) && (buf[1] == 9)) {
        return buf;
      }
      buflen = buflen - uVar2;
      if (bVar1) {
        return (uchar *)0x0;
      }
      buf = buf + uVar2;
    } while (2 < buflen);
  }
  return (uchar *)0x0;
}



byte * FUN_00017ec4(byte *param_1,int param_2)

{
  bool bVar1;
  uint uVar2;
  
  if (2 < param_2) {
    do {
      uVar2 = (uint)*param_1;
      bVar1 = param_2 < (int)uVar2;
      if ((uVar2 == 3) && (param_1[1] == 9)) {
        return param_1;
      }
      param_2 = param_2 - uVar2;
      if (bVar1) {
        return (byte *)0x0;
      }
      param_1 = param_1 + uVar2;
    } while (2 < param_2);
  }
  return (byte *)0x0;
}


slti v0,a1,0x3
bne v0,zero,0x00017f0c
_li a2,0x3
b 0x00017eec
_li t0,0x9
bne v0,zero,0x00017f14
_subu a1,a1,v1
slti v0,a1,0x3
bne v0,zero,0x00017f0c
_addu a0,a0,v1
lbu v1,0x0(a0)
bne v1,a2,0x00017ed8
_slt v0,a1,v1
lbu a3,0x1(a0)
bne a3,t0,0x00017ed8
_nop
jr ra
_or v0,a0,zero
jr ra
_or v0,zero,zero
jr ra
_or v0,zero,zero
(translation_unit "byte * FUN_00017ec4(byte *param_1,int param_2)\n\n{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }\n  return (byte *)0x0;\n}\n\n" (function_definition "byte * FUN_00017ec4(byte *param_1,int param_2)\n\n{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }\n  return (byte *)0x0;\n}" type_identifier (pointer_declarator "* FUN_00017ec4(byte *param_1,int param_2)" * (function_declarator "FUN_00017ec4(byte *param_1,int param_2)" identifier (parameter_list "(byte *param_1,int param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }\n  return (byte *)0x0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }" if (parenthesized_expression "(2 < param_2)" ( (binary_expression "2 < param_2" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }" { (do_statement "do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);" do (compound_statement "{\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    }" { (expression_statement "uVar2 = (uint)*param_1;" (assignment_expression "uVar2 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "bVar1 = param_2 < (int)uVar2;" (assignment_expression "bVar1 = param_2 < (int)uVar2" identifier = (binary_expression "param_2 < (int)uVar2" identifier < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }" if (parenthesized_expression "((uVar2 == 3) && (param_1[1] == 9))" ( (binary_expression "(uVar2 == 3) && (param_1[1] == 9)" (parenthesized_expression "(uVar2 == 3)" ( (binary_expression "uVar2 == 3" identifier == number_literal) )) && (parenthesized_expression "(param_1[1] == 9)" ( (binary_expression "param_1[1] == 9" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_2 = param_2 - uVar2;" (assignment_expression "param_2 = param_2 - uVar2" identifier = (binary_expression "param_2 - uVar2" identifier - identifier)) ;) (if_statement "if (bVar1) {\n        return (byte *)0x0;\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        return (byte *)0x0;\n      }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "param_1 = param_1 + uVar2;" (assignment_expression "param_1 = param_1 + uVar2" identifier = (binary_expression "param_1 + uVar2" identifier + identifier)) ;) }) while (parenthesized_expression "(2 < param_2)" ( (binary_expression "2 < param_2" number_literal < identifier) )) ;) })) (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "uchar * find_otg(uchar *buf,int buflen)\n\n{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < buflen) {\n    do {\n      uVar2 = (uint)*buf;\n      bVar1 = buflen < (int)uVar2;\n      if ((uVar2 == 3) && (buf[1] == 9)) {\n        return buf;\n      }\n      buflen = buflen - uVar2;\n      if (bVar1) {\n        return (uchar *)0x0;\n      }\n      buf = buf + uVar2;\n    } while (2 < buflen);\n  }\n  return (uchar *)0x0;\n}\n\n" (function_definition "uchar * find_otg(uchar *buf,int buflen)\n\n{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < buflen) {\n    do {\n      uVar2 = (uint)*buf;\n      bVar1 = buflen < (int)uVar2;\n      if ((uVar2 == 3) && (buf[1] == 9)) {\n        return buf;\n      }\n      buflen = buflen - uVar2;\n      if (bVar1) {\n        return (uchar *)0x0;\n      }\n      buf = buf + uVar2;\n    } while (2 < buflen);\n  }\n  return (uchar *)0x0;\n}" type_identifier (pointer_declarator "* find_otg(uchar *buf,int buflen)" * (function_declarator "find_otg(uchar *buf,int buflen)" identifier (parameter_list "(uchar *buf,int buflen)" ( (parameter_declaration "uchar *buf" type_identifier (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int buflen" primitive_type identifier) )))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < buflen) {\n    do {\n      uVar2 = (uint)*buf;\n      bVar1 = buflen < (int)uVar2;\n      if ((uVar2 == 3) && (buf[1] == 9)) {\n        return buf;\n      }\n      buflen = buflen - uVar2;\n      if (bVar1) {\n        return (uchar *)0x0;\n      }\n      buf = buf + uVar2;\n    } while (2 < buflen);\n  }\n  return (uchar *)0x0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (2 < buflen) {\n    do {\n      uVar2 = (uint)*buf;\n      bVar1 = buflen < (int)uVar2;\n      if ((uVar2 == 3) && (buf[1] == 9)) {\n        return buf;\n      }\n      buflen = buflen - uVar2;\n      if (bVar1) {\n        return (uchar *)0x0;\n      }\n      buf = buf + uVar2;\n    } while (2 < buflen);\n  }" if (parenthesized_expression "(2 < buflen)" ( (binary_expression "2 < buflen" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar2 = (uint)*buf;\n      bVar1 = buflen < (int)uVar2;\n      if ((uVar2 == 3) && (buf[1] == 9)) {\n        return buf;\n      }\n      buflen = buflen - uVar2;\n      if (bVar1) {\n        return (uchar *)0x0;\n      }\n      buf = buf + uVar2;\n    } while (2 < buflen);\n  }" { (do_statement "do {\n      uVar2 = (uint)*buf;\n      bVar1 = buflen < (int)uVar2;\n      if ((uVar2 == 3) && (buf[1] == 9)) {\n        return buf;\n      }\n      buflen = buflen - uVar2;\n      if (bVar1) {\n        return (uchar *)0x0;\n      }\n      buf = buf + uVar2;\n    } while (2 < buflen);" do (compound_statement "{\n      uVar2 = (uint)*buf;\n      bVar1 = buflen < (int)uVar2;\n      if ((uVar2 == 3) && (buf[1] == 9)) {\n        return buf;\n      }\n      buflen = buflen - uVar2;\n      if (bVar1) {\n        return (uchar *)0x0;\n      }\n      buf = buf + uVar2;\n    }" { (expression_statement "uVar2 = (uint)*buf;" (assignment_expression "uVar2 = (uint)*buf" identifier = (binary_expression "(uint)*buf" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "bVar1 = buflen < (int)uVar2;" (assignment_expression "bVar1 = buflen < (int)uVar2" identifier = (binary_expression "buflen < (int)uVar2" identifier < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((uVar2 == 3) && (buf[1] == 9)) {\n        return buf;\n      }" if (parenthesized_expression "((uVar2 == 3) && (buf[1] == 9))" ( (binary_expression "(uVar2 == 3) && (buf[1] == 9)" (parenthesized_expression "(uVar2 == 3)" ( (binary_expression "uVar2 == 3" identifier == number_literal) )) && (parenthesized_expression "(buf[1] == 9)" ( (binary_expression "buf[1] == 9" (subscript_expression "buf[1]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n        return buf;\n      }" { (return_statement "return buf;" return identifier ;) })) (expression_statement "buflen = buflen - uVar2;" (assignment_expression "buflen = buflen - uVar2" identifier = (binary_expression "buflen - uVar2" identifier - identifier)) ;) (if_statement "if (bVar1) {\n        return (uchar *)0x0;\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        return (uchar *)0x0;\n      }" { (return_statement "return (uchar *)0x0;" return (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "buf = buf + uVar2;" (assignment_expression "buf = buf + uVar2" identifier = (binary_expression "buf + uVar2" identifier + identifier)) ;) }) while (parenthesized_expression "(2 < buflen)" ( (binary_expression "2 < buflen" number_literal < identifier) )) ;) })) (return_statement "return (uchar *)0x0;" return (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "byte * FUN_00017ec4(byte *param_1,int param_2)\n\n{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }\n  return (byte *)0x0;\n}\n\n" (function_definition "byte * FUN_00017ec4(byte *param_1,int param_2)\n\n{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }\n  return (byte *)0x0;\n}" type_identifier (pointer_declarator "* FUN_00017ec4(byte *param_1,int param_2)" * (function_declarator "FUN_00017ec4(byte *param_1,int param_2)" identifier (parameter_list "(byte *param_1,int param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }\n  return (byte *)0x0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }" if (parenthesized_expression "(2 < param_2)" ( (binary_expression "2 < param_2" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }" { (do_statement "do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);" do (compound_statement "{\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    }" { (expression_statement "uVar2 = (uint)*param_1;" (assignment_expression "uVar2 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "bVar1 = param_2 < (int)uVar2;" (assignment_expression "bVar1 = param_2 < (int)uVar2" identifier = (binary_expression "param_2 < (int)uVar2" identifier < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }" if (parenthesized_expression "((uVar2 == 3) && (param_1[1] == 9))" ( (binary_expression "(uVar2 == 3) && (param_1[1] == 9)" (parenthesized_expression "(uVar2 == 3)" ( (binary_expression "uVar2 == 3" identifier == number_literal) )) && (parenthesized_expression "(param_1[1] == 9)" ( (binary_expression "param_1[1] == 9" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_2 = param_2 - uVar2;" (assignment_expression "param_2 = param_2 - uVar2" identifier = (binary_expression "param_2 - uVar2" identifier - identifier)) ;) (if_statement "if (bVar1) {\n        return (byte *)0x0;\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        return (byte *)0x0;\n      }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "param_1 = param_1 + uVar2;" (assignment_expression "param_1 = param_1 + uVar2" identifier = (binary_expression "param_1 + uVar2" identifier + identifier)) ;) }) while (parenthesized_expression "(2 < param_2)" ( (binary_expression "2 < param_2" number_literal < identifier) )) ;) })) (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "byte * FUN_00017ec4(byte *param_1,int param_2)\n\n{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }\n  return (byte *)0x0;\n}" (type_identifier "byte") (pointer_declarator "* FUN_00017ec4(byte *param_1,int param_2)" (* "*") (function_declarator "FUN_00017ec4(byte *param_1,int param_2)" (identifier "FUN_00017ec4") (parameter_list "(byte *param_1,int param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  \n  if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }\n  return (byte *)0x0;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (if_statement "if (2 < param_2) {\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }" (if "if") (parenthesized_expression "(2 < param_2)" (( "(") (binary_expression "2 < param_2" (number_literal "2") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);\n  }" ({ "{") (do_statement "do {\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    } while (2 < param_2);" (do "do") (compound_statement "{\n      uVar2 = (uint)*param_1;\n      bVar1 = param_2 < (int)uVar2;\n      if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }\n      param_2 = param_2 - uVar2;\n      if (bVar1) {\n        return (byte *)0x0;\n      }\n      param_1 = param_1 + uVar2;\n    }" ({ "{") (expression_statement "uVar2 = (uint)*param_1;" (assignment_expression "uVar2 = (uint)*param_1" (identifier "uVar2") (= "=") (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1"))) (; ";")) (expression_statement "bVar1 = param_2 < (int)uVar2;" (assignment_expression "bVar1 = param_2 < (int)uVar2" (identifier "bVar1") (= "=") (binary_expression "param_2 < (int)uVar2" (identifier "param_2") (< "<") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")))) (; ";")) (if_statement "if ((uVar2 == 3) && (param_1[1] == 9)) {\n        return param_1;\n      }" (if "if") (parenthesized_expression "((uVar2 == 3) && (param_1[1] == 9))" (( "(") (binary_expression "(uVar2 == 3) && (param_1[1] == 9)" (parenthesized_expression "(uVar2 == 3)" (( "(") (binary_expression "uVar2 == 3" (identifier "uVar2") (== "==") (number_literal "3")) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == 9)" (( "(") (binary_expression "param_1[1] == 9" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "9")) () ")"))) () ")")) (compound_statement "{\n        return param_1;\n      }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "param_2 = param_2 - uVar2;" (assignment_expression "param_2 = param_2 - uVar2" (identifier "param_2") (= "=") (binary_expression "param_2 - uVar2" (identifier "param_2") (- "-") (identifier "uVar2"))) (; ";")) (if_statement "if (bVar1) {\n        return (byte *)0x0;\n      }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n        return (byte *)0x0;\n      }" ({ "{") (return_statement "return (byte *)0x0;" (return "return") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + uVar2;" (assignment_expression "param_1 = param_1 + uVar2" (identifier "param_1") (= "=") (binary_expression "param_1 + uVar2" (identifier "param_1") (+ "+") (identifier "uVar2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(2 < param_2)" (( "(") (binary_expression "2 < param_2" (number_literal "2") (< "<") (identifier "param_2")) () ")")) (; ";")) (} "}"))) (return_statement "return (byte *)0x0;" (return "return") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier)))))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

byte * MASKED(byte *param_1,int param_2)

{
  bool bVar1;
  uint uVar2;
  
  if (2 < param_2) {
    do {
      uVar2 = (uint)*param_1;
      bVar1 = param_2 < (int)uVar2;
      if ((uVar2 == 3) && (param_1[1] == 9)) {
        return param_1;
      }
      param_2 = param_2 - uVar2;
      if (bVar1) {
        return (byte *)0x0;
      }
      param_1 = param_1 + uVar2;
    } while (2 < param_2);
  }
  return (byte *)0x0;
}

