
void * rpl_memchr(void *s,int c_in,size_t n)

{
  byte bVar1;
  uint uVar2;
  uchar *char_ptr;
  uint *puVar3;
  uint uVar4;
  uchar c;
  uint uVar5;
  
  uVar5 = c_in & 0xff;
  if (n == 0) {
    return (void *)0x0;
  }
  while (((uint)s & 3) != 0) {
                    /* WARNING: Load size is inaccurate */
    n = n - 1;
    if (*s == uVar5) {
      return (uint *)s;
    }
    s = (void *)((int)s + 1);
    if (n == 0) {
      return (void *)0x0;
    }
  }
  uVar4 = (c_in & 0xffU) << 8 | c_in & 0xffU;
  uVar4 = uVar4 << 0x10 | uVar4;
  if (3 < n) {
                    /* WARNING: Load size is inaccurate */
    uVar2 = uVar4 ^ *s;
    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {
                    /* WARNING: Load size is inaccurate */
      bVar1 = *s;
      goto LAB_0001b304;
    }
    do {
      n = n - 4;
      s = (void *)((int)s + 4);
      if (n < 4) {
        if (n == 0) {
          return (void *)0x0;
        }
        break;
      }
                    /* WARNING: Load size is inaccurate */
      uVar2 = uVar4 ^ *s;
    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);
  }
                    /* WARNING: Load size is inaccurate */
  bVar1 = *s;
LAB_0001b304:
  if (bVar1 == uVar5) {
    return (uint *)s;
  }
  puVar3 = (uint *)((int)s + n);
  do {
    s = (void *)((int)s + 1);
    if (puVar3 == (uint *)s) {
      return (void *)0x0;
    }
                    /* WARNING: Load size is inaccurate */
  } while (*s != uVar5);
  return (uint *)s;
}



uint * rpl_memchr(uint *param_1,char param_2,uint param_3)

{
  char cVar1;
  uint uVar2;
  uint *puVar3;
  uint uVar4;
  
  if (param_3 == 0) {
    return (uint *)0x0;
  }
  while (((uint)param_1 & 3) != 0) {
    param_3 = param_3 - 1;
    if (*(char *)param_1 == param_2) {
      return param_1;
    }
    param_1 = (uint *)((int)param_1 + 1);
    if (param_3 == 0) {
      return (uint *)0x0;
    }
  }
  uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));
  if (3 < param_3) {
    uVar2 = uVar4 ^ *param_1;
    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {
      cVar1 = *(char *)param_1;
      goto LAB_0001b304;
    }
    do {
      param_3 = param_3 - 4;
      param_1 = param_1 + 1;
      if (param_3 < 4) {
        if (param_3 == 0) {
          return (uint *)0x0;
        }
        break;
      }
      uVar2 = uVar4 ^ *param_1;
    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);
  }
  cVar1 = *(char *)param_1;
LAB_0001b304:
  if (cVar1 == param_2) {
    return param_1;
  }
  puVar3 = (uint *)((int)param_1 + param_3);
  do {
    param_1 = (uint *)((int)param_1 + 1);
    if (puVar3 == param_1) {
      return (uint *)0x0;
    }
  } while (*(char *)param_1 != param_2);
  return param_1;
}


bne a2,zero,0x0001b264
_andi a3,a1,0xff
jr ra
_or v0,zero,zero
lbu v0,0x0(a0)
beq v0,a3,0x0001b33c
_addiu a2,a2,-0x1
beq a2,zero,0x0001b32c
_addiu a0,a0,0x1
andi v0,a0,0x3
bne v0,zero,0x0001b250
_sll t1,a1,0x8
andi a1,a1,0xff
andi t1,t1,0xffff
or a1,t1,a1
sll t1,a1,0x10
sltiu v0,a2,0x4
bne v0,zero,0x0001b300
_or t1,t1,a1
lw v0,0x0(a0)
lui t0,0xfefe
lui a1,0x8080
ori t0,t0,0xfeff
xor v0,t1,v0
addu v1,v0,t0
nor v0,zero,v0
and v0,v1,v0
ori a1,a1,0x8080
and v0,v0,a1
beq v0,zero,0x0001b2ec
_addiu a2,a2,-0x4
addiu a2,a2,0x4
b 0x0001b304
_lbu v0,0x0(a0)
lw v0,0x0(a0)
xor v0,t1,v0
addu v1,v0,t0
nor v0,zero,v0
and v0,v1,v0
and v0,v0,a1
bne v0,zero,0x0001b300
_nop
addiu a2,a2,-0x4
sltiu v0,a2,0x4
beq v0,zero,0x0001b2c8
_addiu a0,a0,0x4
beq a2,zero,0x0001b32c
_nop
lbu v0,0x0(a0)
beq v0,a3,0x0001b334
_addiu v1,a0,0x1
b 0x0001b320
_addu a0,a0,a2
lbu a1,-0x1(v1)
beq a1,a3,0x0001b340
_nop
or v0,v1,zero
bne a0,v0,0x0001b314
_addiu v1,v1,0x1
jr ra
_or v0,zero,zero
jr ra
_or v0,a0,zero
or v0,a0,zero
jr ra
_nop
(translation_unit "uint * rpl_memchr(uint *param_1,char param_2,uint param_3)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }\n  uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));\n  if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n  cVar1 = *(char *)param_1;\nLAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }\n  puVar3 = (uint *)((int)param_1 + param_3);\n  do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);\n  return param_1;\n}\n\n" (function_definition "uint * rpl_memchr(uint *param_1,char param_2,uint param_3)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }\n  uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));\n  if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n  cVar1 = *(char *)param_1;\nLAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }\n  puVar3 = (uint *)((int)param_1 + param_3);\n  do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);\n  return param_1;\n}" type_identifier (pointer_declarator "* rpl_memchr(uint *param_1,char param_2,uint param_3)" * (function_declarator "rpl_memchr(uint *param_1,char param_2,uint param_3)" identifier (parameter_list "(uint *param_1,char param_2,uint param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }\n  uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));\n  if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n  cVar1 = *(char *)param_1;\nLAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }\n  puVar3 = (uint *)((int)param_1 + param_3);\n  do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);\n  return param_1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (param_3 == 0) {\n    return (uint *)0x0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return (uint *)0x0;\n  }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (while_statement "while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }" while (parenthesized_expression "(((uint)param_1 & 3) != 0)" ( (binary_expression "((uint)param_1 & 3) != 0" (parenthesized_expression "((uint)param_1 & 3)" ( (binary_expression "(uint)param_1 & 3" (cast_expression "(uint)param_1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }" { (expression_statement "param_3 = param_3 - 1;" (assignment_expression "param_3 = param_3 - 1" identifier = (binary_expression "param_3 - 1" identifier - number_literal)) ;) (if_statement "if (*(char *)param_1 == param_2) {\n      return param_1;\n    }" if (parenthesized_expression "(*(char *)param_1 == param_2)" ( (binary_expression "*(char *)param_1 == param_2" (pointer_expression "*(char *)param_1" * (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_1 = (uint *)((int)param_1 + 1);" (assignment_expression "param_1 = (uint *)((int)param_1 + 1)" identifier = (cast_expression "(uint *)((int)param_1 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 1)" ( (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (param_3 == 0) {\n      return (uint *)0x0;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      return (uint *)0x0;\n    }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));" (assignment_expression "uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2))" identifier = (call_expression "CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2))" identifier (argument_list "(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2))" ( (call_expression "CONCAT11(param_2,param_2)" identifier (argument_list "(param_2,param_2)" ( identifier , identifier ))) , (call_expression "CONCAT11(param_2,param_2)" identifier (argument_list "(param_2,param_2)" ( identifier , identifier ))) )))) ;) (if_statement "if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }" if (parenthesized_expression "(3 < param_3)" ( (binary_expression "3 < param_3" number_literal < identifier) )) (compound_statement "{\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }" { (expression_statement "uVar2 = uVar4 ^ *param_1;" (assignment_expression "uVar2 = uVar4 ^ *param_1" identifier = (binary_expression "uVar4 ^ *param_1" identifier ^ (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }" if (parenthesized_expression "((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0)" ( (binary_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0" (parenthesized_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080)" ( (binary_expression "uVar2 + 0xfefefeff & ~uVar2 & 0x80808080" (binary_expression "uVar2 + 0xfefefeff & ~uVar2" (binary_expression "uVar2 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar2" ~ identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }" { (expression_statement "cVar1 = *(char *)param_1;" (assignment_expression "cVar1 = *(char *)param_1" identifier = (pointer_expression "*(char *)param_1" * (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (goto_statement "goto LAB_0001b304;" goto statement_identifier ;) })) (do_statement "do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);" do (compound_statement "{\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    }" { (expression_statement "param_3 = param_3 - 4;" (assignment_expression "param_3 = param_3 - 4" identifier = (binary_expression "param_3 - 4" identifier - number_literal)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }" if (parenthesized_expression "(param_3 < 4)" ( (binary_expression "param_3 < 4" identifier < number_literal) )) (compound_statement "{\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }" { (if_statement "if (param_3 == 0) {\n          return (uint *)0x0;\n        }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n          return (uint *)0x0;\n        }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (break_statement "break;" break ;) })) (expression_statement "uVar2 = uVar4 ^ *param_1;" (assignment_expression "uVar2 = uVar4 ^ *param_1" identifier = (binary_expression "uVar4 ^ *param_1" identifier ^ (pointer_expression "*param_1" * identifier))) ;) }) while (parenthesized_expression "((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0)" ( (binary_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0" (parenthesized_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080)" ( (binary_expression "uVar2 + 0xfefefeff & ~uVar2 & 0x80808080" (binary_expression "uVar2 + 0xfefefeff & ~uVar2" (binary_expression "uVar2 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar2" ~ identifier)) & number_literal) )) == number_literal) )) ;) })) (expression_statement "cVar1 = *(char *)param_1;" (assignment_expression "cVar1 = *(char *)param_1" identifier = (pointer_expression "*(char *)param_1" * (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (labeled_statement "LAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }" statement_identifier : (if_statement "if (cVar1 == param_2) {\n    return param_1;\n  }" if (parenthesized_expression "(cVar1 == param_2)" ( (binary_expression "cVar1 == param_2" identifier == identifier) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) }))) (expression_statement "puVar3 = (uint *)((int)param_1 + param_3);" (assignment_expression "puVar3 = (uint *)((int)param_1 + param_3)" identifier = (cast_expression "(uint *)((int)param_1 + param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + param_3)" ( (binary_expression "(int)param_1 + param_3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);" do (compound_statement "{\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  }" { (expression_statement "param_1 = (uint *)((int)param_1 + 1);" (assignment_expression "param_1 = (uint *)((int)param_1 + 1)" identifier = (cast_expression "(uint *)((int)param_1 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 1)" ( (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }" if (parenthesized_expression "(puVar3 == param_1)" ( (binary_expression "puVar3 == param_1" identifier == identifier) )) (compound_statement "{\n      return (uint *)0x0;\n    }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) while (parenthesized_expression "(*(char *)param_1 != param_2)" ( (binary_expression "*(char *)param_1 != param_2" (pointer_expression "*(char *)param_1" * (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != identifier) )) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "void * rpl_memchr(void *s,int c_in,size_t n)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uchar *char_ptr;\n  uint *puVar3;\n  uint uVar4;\n  uchar c;\n  uint uVar5;\n  \n  uVar5 = c_in & 0xff;\n  if (n == 0) {\n    return (void *)0x0;\n  }\n  while (((uint)s & 3) != 0) {\n                    /* WARNING: Load size is inaccurate */\n    n = n - 1;\n    if (*s == uVar5) {\n      return (uint *)s;\n    }\n    s = (void *)((int)s + 1);\n    if (n == 0) {\n      return (void *)0x0;\n    }\n  }\n  uVar4 = (c_in & 0xffU) << 8 | c_in & 0xffU;\n  uVar4 = uVar4 << 0x10 | uVar4;\n  if (3 < n) {\n                    /* WARNING: Load size is inaccurate */\n    uVar2 = uVar4 ^ *s;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n      goto LAB_0001b304;\n    }\n    do {\n      n = n - 4;\n      s = (void *)((int)s + 4);\n      if (n < 4) {\n        if (n == 0) {\n          return (void *)0x0;\n        }\n        break;\n      }\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar4 ^ *s;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n                    /* WARNING: Load size is inaccurate */\n  bVar1 = *s;\nLAB_0001b304:\n  if (bVar1 == uVar5) {\n    return (uint *)s;\n  }\n  puVar3 = (uint *)((int)s + n);\n  do {\n    s = (void *)((int)s + 1);\n    if (puVar3 == (uint *)s) {\n      return (void *)0x0;\n    }\n                    /* WARNING: Load size is inaccurate */\n  } while (*s != uVar5);\n  return (uint *)s;\n}\n\n" (function_definition "void * rpl_memchr(void *s,int c_in,size_t n)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uchar *char_ptr;\n  uint *puVar3;\n  uint uVar4;\n  uchar c;\n  uint uVar5;\n  \n  uVar5 = c_in & 0xff;\n  if (n == 0) {\n    return (void *)0x0;\n  }\n  while (((uint)s & 3) != 0) {\n                    /* WARNING: Load size is inaccurate */\n    n = n - 1;\n    if (*s == uVar5) {\n      return (uint *)s;\n    }\n    s = (void *)((int)s + 1);\n    if (n == 0) {\n      return (void *)0x0;\n    }\n  }\n  uVar4 = (c_in & 0xffU) << 8 | c_in & 0xffU;\n  uVar4 = uVar4 << 0x10 | uVar4;\n  if (3 < n) {\n                    /* WARNING: Load size is inaccurate */\n    uVar2 = uVar4 ^ *s;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n      goto LAB_0001b304;\n    }\n    do {\n      n = n - 4;\n      s = (void *)((int)s + 4);\n      if (n < 4) {\n        if (n == 0) {\n          return (void *)0x0;\n        }\n        break;\n      }\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar4 ^ *s;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n                    /* WARNING: Load size is inaccurate */\n  bVar1 = *s;\nLAB_0001b304:\n  if (bVar1 == uVar5) {\n    return (uint *)s;\n  }\n  puVar3 = (uint *)((int)s + n);\n  do {\n    s = (void *)((int)s + 1);\n    if (puVar3 == (uint *)s) {\n      return (void *)0x0;\n    }\n                    /* WARNING: Load size is inaccurate */\n  } while (*s != uVar5);\n  return (uint *)s;\n}" primitive_type (pointer_declarator "* rpl_memchr(void *s,int c_in,size_t n)" * (function_declarator "rpl_memchr(void *s,int c_in,size_t n)" identifier (parameter_list "(void *s,int c_in,size_t n)" ( (parameter_declaration "void *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "int c_in" primitive_type identifier) , (parameter_declaration "size_t n" primitive_type identifier) )))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uchar *char_ptr;\n  uint *puVar3;\n  uint uVar4;\n  uchar c;\n  uint uVar5;\n  \n  uVar5 = c_in & 0xff;\n  if (n == 0) {\n    return (void *)0x0;\n  }\n  while (((uint)s & 3) != 0) {\n                    /* WARNING: Load size is inaccurate */\n    n = n - 1;\n    if (*s == uVar5) {\n      return (uint *)s;\n    }\n    s = (void *)((int)s + 1);\n    if (n == 0) {\n      return (void *)0x0;\n    }\n  }\n  uVar4 = (c_in & 0xffU) << 8 | c_in & 0xffU;\n  uVar4 = uVar4 << 0x10 | uVar4;\n  if (3 < n) {\n                    /* WARNING: Load size is inaccurate */\n    uVar2 = uVar4 ^ *s;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n      goto LAB_0001b304;\n    }\n    do {\n      n = n - 4;\n      s = (void *)((int)s + 4);\n      if (n < 4) {\n        if (n == 0) {\n          return (void *)0x0;\n        }\n        break;\n      }\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar4 ^ *s;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n                    /* WARNING: Load size is inaccurate */\n  bVar1 = *s;\nLAB_0001b304:\n  if (bVar1 == uVar5) {\n    return (uint *)s;\n  }\n  puVar3 = (uint *)((int)s + n);\n  do {\n    s = (void *)((int)s + 1);\n    if (puVar3 == (uint *)s) {\n      return (void *)0x0;\n    }\n                    /* WARNING: Load size is inaccurate */\n  } while (*s != uVar5);\n  return (uint *)s;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uchar *char_ptr;" type_identifier (pointer_declarator "*char_ptr" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uchar c;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = c_in & 0xff;" (assignment_expression "uVar5 = c_in & 0xff" identifier = (binary_expression "c_in & 0xff" identifier & number_literal)) ;) (if_statement "if (n == 0) {\n    return (void *)0x0;\n  }" if (parenthesized_expression "(n == 0)" ( (binary_expression "n == 0" identifier == number_literal) )) (compound_statement "{\n    return (void *)0x0;\n  }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (while_statement "while (((uint)s & 3) != 0) {\n                    /* WARNING: Load size is inaccurate */\n    n = n - 1;\n    if (*s == uVar5) {\n      return (uint *)s;\n    }\n    s = (void *)((int)s + 1);\n    if (n == 0) {\n      return (void *)0x0;\n    }\n  }" while (parenthesized_expression "(((uint)s & 3) != 0)" ( (binary_expression "((uint)s & 3) != 0" (parenthesized_expression "((uint)s & 3)" ( (binary_expression "(uint)s & 3" (cast_expression "(uint)s" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    n = n - 1;\n    if (*s == uVar5) {\n      return (uint *)s;\n    }\n    s = (void *)((int)s + 1);\n    if (n == 0) {\n      return (void *)0x0;\n    }\n  }" { comment (expression_statement "n = n - 1;" (assignment_expression "n = n - 1" identifier = (binary_expression "n - 1" identifier - number_literal)) ;) (if_statement "if (*s == uVar5) {\n      return (uint *)s;\n    }" if (parenthesized_expression "(*s == uVar5)" ( (binary_expression "*s == uVar5" (pointer_expression "*s" * identifier) == identifier) )) (compound_statement "{\n      return (uint *)s;\n    }" { (return_statement "return (uint *)s;" return (cast_expression "(uint *)s" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "s = (void *)((int)s + 1);" (assignment_expression "s = (void *)((int)s + 1)" identifier = (cast_expression "(void *)((int)s + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)s + 1)" ( (binary_expression "(int)s + 1" (cast_expression "(int)s" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (n == 0) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "(n == 0)" ( (binary_expression "n == 0" identifier == number_literal) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "uVar4 = (c_in & 0xffU) << 8 | c_in & 0xffU;" (assignment_expression "uVar4 = (c_in & 0xffU) << 8 | c_in & 0xffU" identifier = (binary_expression "(c_in & 0xffU) << 8 | c_in & 0xffU" (binary_expression "(c_in & 0xffU) << 8" (parenthesized_expression "(c_in & 0xffU)" ( (binary_expression "c_in & 0xffU" identifier & number_literal) )) << number_literal) | (binary_expression "c_in & 0xffU" identifier & number_literal))) ;) (expression_statement "uVar4 = uVar4 << 0x10 | uVar4;" (assignment_expression "uVar4 = uVar4 << 0x10 | uVar4" identifier = (binary_expression "uVar4 << 0x10 | uVar4" (binary_expression "uVar4 << 0x10" identifier << number_literal) | identifier)) ;) (if_statement "if (3 < n) {\n                    /* WARNING: Load size is inaccurate */\n    uVar2 = uVar4 ^ *s;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n      goto LAB_0001b304;\n    }\n    do {\n      n = n - 4;\n      s = (void *)((int)s + 4);\n      if (n < 4) {\n        if (n == 0) {\n          return (void *)0x0;\n        }\n        break;\n      }\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar4 ^ *s;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }" if (parenthesized_expression "(3 < n)" ( (binary_expression "3 < n" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    uVar2 = uVar4 ^ *s;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n      goto LAB_0001b304;\n    }\n    do {\n      n = n - 4;\n      s = (void *)((int)s + 4);\n      if (n < 4) {\n        if (n == 0) {\n          return (void *)0x0;\n        }\n        break;\n      }\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar4 ^ *s;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }" { comment (expression_statement "uVar2 = uVar4 ^ *s;" (assignment_expression "uVar2 = uVar4 ^ *s" identifier = (binary_expression "uVar4 ^ *s" identifier ^ (pointer_expression "*s" * identifier))) ;) (if_statement "if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n      goto LAB_0001b304;\n    }" if (parenthesized_expression "((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0)" ( (binary_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0" (parenthesized_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080)" ( (binary_expression "uVar2 + 0xfefefeff & ~uVar2 & 0x80808080" (binary_expression "uVar2 + 0xfefefeff & ~uVar2" (binary_expression "uVar2 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar2" ~ identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n      goto LAB_0001b304;\n    }" { comment (expression_statement "bVar1 = *s;" (assignment_expression "bVar1 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (goto_statement "goto LAB_0001b304;" goto statement_identifier ;) })) (do_statement "do {\n      n = n - 4;\n      s = (void *)((int)s + 4);\n      if (n < 4) {\n        if (n == 0) {\n          return (void *)0x0;\n        }\n        break;\n      }\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar4 ^ *s;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);" do (compound_statement "{\n      n = n - 4;\n      s = (void *)((int)s + 4);\n      if (n < 4) {\n        if (n == 0) {\n          return (void *)0x0;\n        }\n        break;\n      }\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar4 ^ *s;\n    }" { (expression_statement "n = n - 4;" (assignment_expression "n = n - 4" identifier = (binary_expression "n - 4" identifier - number_literal)) ;) (expression_statement "s = (void *)((int)s + 4);" (assignment_expression "s = (void *)((int)s + 4)" identifier = (cast_expression "(void *)((int)s + 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)s + 4)" ( (binary_expression "(int)s + 4" (cast_expression "(int)s" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (n < 4) {\n        if (n == 0) {\n          return (void *)0x0;\n        }\n        break;\n      }" if (parenthesized_expression "(n < 4)" ( (binary_expression "n < 4" identifier < number_literal) )) (compound_statement "{\n        if (n == 0) {\n          return (void *)0x0;\n        }\n        break;\n      }" { (if_statement "if (n == 0) {\n          return (void *)0x0;\n        }" if (parenthesized_expression "(n == 0)" ( (binary_expression "n == 0" identifier == number_literal) )) (compound_statement "{\n          return (void *)0x0;\n        }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (break_statement "break;" break ;) })) comment (expression_statement "uVar2 = uVar4 ^ *s;" (assignment_expression "uVar2 = uVar4 ^ *s" identifier = (binary_expression "uVar4 ^ *s" identifier ^ (pointer_expression "*s" * identifier))) ;) }) while (parenthesized_expression "((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0)" ( (binary_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0" (parenthesized_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080)" ( (binary_expression "uVar2 + 0xfefefeff & ~uVar2 & 0x80808080" (binary_expression "uVar2 + 0xfefefeff & ~uVar2" (binary_expression "uVar2 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar2" ~ identifier)) & number_literal) )) == number_literal) )) ;) })) comment (expression_statement "bVar1 = *s;" (assignment_expression "bVar1 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (labeled_statement "LAB_0001b304:\n  if (bVar1 == uVar5) {\n    return (uint *)s;\n  }" statement_identifier : (if_statement "if (bVar1 == uVar5) {\n    return (uint *)s;\n  }" if (parenthesized_expression "(bVar1 == uVar5)" ( (binary_expression "bVar1 == uVar5" identifier == identifier) )) (compound_statement "{\n    return (uint *)s;\n  }" { (return_statement "return (uint *)s;" return (cast_expression "(uint *)s" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) }))) (expression_statement "puVar3 = (uint *)((int)s + n);" (assignment_expression "puVar3 = (uint *)((int)s + n)" identifier = (cast_expression "(uint *)((int)s + n)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)s + n)" ( (binary_expression "(int)s + n" (cast_expression "(int)s" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n    s = (void *)((int)s + 1);\n    if (puVar3 == (uint *)s) {\n      return (void *)0x0;\n    }\n                    /* WARNING: Load size is inaccurate */\n  } while (*s != uVar5);" do (compound_statement "{\n    s = (void *)((int)s + 1);\n    if (puVar3 == (uint *)s) {\n      return (void *)0x0;\n    }\n                    /* WARNING: Load size is inaccurate */\n  }" { (expression_statement "s = (void *)((int)s + 1);" (assignment_expression "s = (void *)((int)s + 1)" identifier = (cast_expression "(void *)((int)s + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)s + 1)" ( (binary_expression "(int)s + 1" (cast_expression "(int)s" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (puVar3 == (uint *)s) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "(puVar3 == (uint *)s)" ( (binary_expression "puVar3 == (uint *)s" identifier == (cast_expression "(uint *)s" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) comment }) while (parenthesized_expression "(*s != uVar5)" ( (binary_expression "*s != uVar5" (pointer_expression "*s" * identifier) != identifier) )) ;) (return_statement "return (uint *)s;" return (cast_expression "(uint *)s" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "uint * rpl_memchr(uint *param_1,char param_2,uint param_3)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }\n  uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));\n  if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n  cVar1 = *(char *)param_1;\nLAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }\n  puVar3 = (uint *)((int)param_1 + param_3);\n  do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);\n  return param_1;\n}\n\n" (function_definition "uint * rpl_memchr(uint *param_1,char param_2,uint param_3)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }\n  uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));\n  if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n  cVar1 = *(char *)param_1;\nLAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }\n  puVar3 = (uint *)((int)param_1 + param_3);\n  do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);\n  return param_1;\n}" type_identifier (pointer_declarator "* rpl_memchr(uint *param_1,char param_2,uint param_3)" * (function_declarator "rpl_memchr(uint *param_1,char param_2,uint param_3)" identifier (parameter_list "(uint *param_1,char param_2,uint param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }\n  uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));\n  if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n  cVar1 = *(char *)param_1;\nLAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }\n  puVar3 = (uint *)((int)param_1 + param_3);\n  do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);\n  return param_1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (param_3 == 0) {\n    return (uint *)0x0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return (uint *)0x0;\n  }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (while_statement "while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }" while (parenthesized_expression "(((uint)param_1 & 3) != 0)" ( (binary_expression "((uint)param_1 & 3) != 0" (parenthesized_expression "((uint)param_1 & 3)" ( (binary_expression "(uint)param_1 & 3" (cast_expression "(uint)param_1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }" { (expression_statement "param_3 = param_3 - 1;" (assignment_expression "param_3 = param_3 - 1" identifier = (binary_expression "param_3 - 1" identifier - number_literal)) ;) (if_statement "if (*(char *)param_1 == param_2) {\n      return param_1;\n    }" if (parenthesized_expression "(*(char *)param_1 == param_2)" ( (binary_expression "*(char *)param_1 == param_2" (pointer_expression "*(char *)param_1" * (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_1 = (uint *)((int)param_1 + 1);" (assignment_expression "param_1 = (uint *)((int)param_1 + 1)" identifier = (cast_expression "(uint *)((int)param_1 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 1)" ( (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (param_3 == 0) {\n      return (uint *)0x0;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      return (uint *)0x0;\n    }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));" (assignment_expression "uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2))" identifier = (call_expression "CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2))" identifier (argument_list "(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2))" ( (call_expression "CONCAT11(param_2,param_2)" identifier (argument_list "(param_2,param_2)" ( identifier , identifier ))) , (call_expression "CONCAT11(param_2,param_2)" identifier (argument_list "(param_2,param_2)" ( identifier , identifier ))) )))) ;) (if_statement "if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }" if (parenthesized_expression "(3 < param_3)" ( (binary_expression "3 < param_3" number_literal < identifier) )) (compound_statement "{\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }" { (expression_statement "uVar2 = uVar4 ^ *param_1;" (assignment_expression "uVar2 = uVar4 ^ *param_1" identifier = (binary_expression "uVar4 ^ *param_1" identifier ^ (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }" if (parenthesized_expression "((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0)" ( (binary_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0" (parenthesized_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080)" ( (binary_expression "uVar2 + 0xfefefeff & ~uVar2 & 0x80808080" (binary_expression "uVar2 + 0xfefefeff & ~uVar2" (binary_expression "uVar2 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar2" ~ identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }" { (expression_statement "cVar1 = *(char *)param_1;" (assignment_expression "cVar1 = *(char *)param_1" identifier = (pointer_expression "*(char *)param_1" * (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (goto_statement "goto LAB_0001b304;" goto statement_identifier ;) })) (do_statement "do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);" do (compound_statement "{\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    }" { (expression_statement "param_3 = param_3 - 4;" (assignment_expression "param_3 = param_3 - 4" identifier = (binary_expression "param_3 - 4" identifier - number_literal)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }" if (parenthesized_expression "(param_3 < 4)" ( (binary_expression "param_3 < 4" identifier < number_literal) )) (compound_statement "{\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }" { (if_statement "if (param_3 == 0) {\n          return (uint *)0x0;\n        }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n          return (uint *)0x0;\n        }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (break_statement "break;" break ;) })) (expression_statement "uVar2 = uVar4 ^ *param_1;" (assignment_expression "uVar2 = uVar4 ^ *param_1" identifier = (binary_expression "uVar4 ^ *param_1" identifier ^ (pointer_expression "*param_1" * identifier))) ;) }) while (parenthesized_expression "((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0)" ( (binary_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0" (parenthesized_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080)" ( (binary_expression "uVar2 + 0xfefefeff & ~uVar2 & 0x80808080" (binary_expression "uVar2 + 0xfefefeff & ~uVar2" (binary_expression "uVar2 + 0xfefefeff" identifier + number_literal) & (unary_expression "~uVar2" ~ identifier)) & number_literal) )) == number_literal) )) ;) })) (expression_statement "cVar1 = *(char *)param_1;" (assignment_expression "cVar1 = *(char *)param_1" identifier = (pointer_expression "*(char *)param_1" * (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (labeled_statement "LAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }" statement_identifier : (if_statement "if (cVar1 == param_2) {\n    return param_1;\n  }" if (parenthesized_expression "(cVar1 == param_2)" ( (binary_expression "cVar1 == param_2" identifier == identifier) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) }))) (expression_statement "puVar3 = (uint *)((int)param_1 + param_3);" (assignment_expression "puVar3 = (uint *)((int)param_1 + param_3)" identifier = (cast_expression "(uint *)((int)param_1 + param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + param_3)" ( (binary_expression "(int)param_1 + param_3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);" do (compound_statement "{\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  }" { (expression_statement "param_1 = (uint *)((int)param_1 + 1);" (assignment_expression "param_1 = (uint *)((int)param_1 + 1)" identifier = (cast_expression "(uint *)((int)param_1 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 1)" ( (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }" if (parenthesized_expression "(puVar3 == param_1)" ( (binary_expression "puVar3 == param_1" identifier == identifier) )) (compound_statement "{\n      return (uint *)0x0;\n    }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) while (parenthesized_expression "(*(char *)param_1 != param_2)" ( (binary_expression "*(char *)param_1 != param_2" (pointer_expression "*(char *)param_1" * (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != identifier) )) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (while_statement while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (call_expression IDENT (argument_list ( IDENT , IDENT ))) , (call_expression IDENT (argument_list ( IDENT , IDENT ))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + LIT) & (unary_expression ~ IDENT)) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (goto_statement goto statement_identifier ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + LIT) & (unary_expression ~ IDENT)) & LIT) )) == LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != IDENT) )) ;) (return_statement return IDENT ;) })))
(function_definition "uint * rpl_memchr(uint *param_1,char param_2,uint param_3)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }\n  uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));\n  if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n  cVar1 = *(char *)param_1;\nLAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }\n  puVar3 = (uint *)((int)param_1 + param_3);\n  do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);\n  return param_1;\n}" (type_identifier "uint") (pointer_declarator "* rpl_memchr(uint *param_1,char param_2,uint param_3)" (* "*") (function_declarator "rpl_memchr(uint *param_1,char param_2,uint param_3)" (identifier "rpl_memchr") (parameter_list "(uint *param_1,char param_2,uint param_3)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")")))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  if (param_3 == 0) {\n    return (uint *)0x0;\n  }\n  while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }\n  uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));\n  if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }\n  cVar1 = *(char *)param_1;\nLAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }\n  puVar3 = (uint *)((int)param_1 + param_3);\n  do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);\n  return param_1;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (if_statement "if (param_3 == 0) {\n    return (uint *)0x0;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return (uint *)0x0;\n  }" ({ "{") (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (while_statement "while (((uint)param_1 & 3) != 0) {\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }" (while "while") (parenthesized_expression "(((uint)param_1 & 3) != 0)" (( "(") (binary_expression "((uint)param_1 & 3) != 0" (parenthesized_expression "((uint)param_1 & 3)" (( "(") (binary_expression "(uint)param_1 & 3" (cast_expression "(uint)param_1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_1")) (& "&") (number_literal "3")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = param_3 - 1;\n    if (*(char *)param_1 == param_2) {\n      return param_1;\n    }\n    param_1 = (uint *)((int)param_1 + 1);\n    if (param_3 == 0) {\n      return (uint *)0x0;\n    }\n  }" ({ "{") (expression_statement "param_3 = param_3 - 1;" (assignment_expression "param_3 = param_3 - 1" (identifier "param_3") (= "=") (binary_expression "param_3 - 1" (identifier "param_3") (- "-") (number_literal "1"))) (; ";")) (if_statement "if (*(char *)param_1 == param_2) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(*(char *)param_1 == param_2)" (( "(") (binary_expression "*(char *)param_1 == param_2" (pointer_expression "*(char *)param_1" (* "*") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "param_1 = (uint *)((int)param_1 + 1);" (assignment_expression "param_1 = (uint *)((int)param_1 + 1)" (identifier "param_1") (= "=") (cast_expression "(uint *)((int)param_1 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 1)" (( "(") (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (param_3 == 0) {\n      return (uint *)0x0;\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return (uint *)0x0;\n    }" ({ "{") (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));" (assignment_expression "uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2))" (identifier "uVar4") (= "=") (call_expression "CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2))" (identifier "CONCAT22") (argument_list "(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2))" (( "(") (call_expression "CONCAT11(param_2,param_2)" (identifier "CONCAT11") (argument_list "(param_2,param_2)" (( "(") (identifier "param_2") (, ",") (identifier "param_2") () ")"))) (, ",") (call_expression "CONCAT11(param_2,param_2)" (identifier "CONCAT11") (argument_list "(param_2,param_2)" (( "(") (identifier "param_2") (, ",") (identifier "param_2") () ")"))) () ")")))) (; ";")) (if_statement "if (3 < param_3) {\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }" (if "if") (parenthesized_expression "(3 < param_3)" (( "(") (binary_expression "3 < param_3" (number_literal "3") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    uVar2 = uVar4 ^ *param_1;\n    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }\n    do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);\n  }" ({ "{") (expression_statement "uVar2 = uVar4 ^ *param_1;" (assignment_expression "uVar2 = uVar4 ^ *param_1" (identifier "uVar2") (= "=") (binary_expression "uVar4 ^ *param_1" (identifier "uVar4") (^ "^") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }" (if "if") (parenthesized_expression "((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0)" (( "(") (binary_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0" (parenthesized_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080)" (( "(") (binary_expression "uVar2 + 0xfefefeff & ~uVar2 & 0x80808080" (binary_expression "uVar2 + 0xfefefeff & ~uVar2" (binary_expression "uVar2 + 0xfefefeff" (identifier "uVar2") (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~uVar2" (~ "~") (identifier "uVar2"))) (& "&") (number_literal "0x80808080")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      cVar1 = *(char *)param_1;\n      goto LAB_0001b304;\n    }" ({ "{") (expression_statement "cVar1 = *(char *)param_1;" (assignment_expression "cVar1 = *(char *)param_1" (identifier "cVar1") (= "=") (pointer_expression "*(char *)param_1" (* "*") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")))) (; ";")) (goto_statement "goto LAB_0001b304;" (goto "goto") (statement_identifier "LAB_0001b304") (; ";")) (} "}"))) (do_statement "do {\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);" (do "do") (compound_statement "{\n      param_3 = param_3 - 4;\n      param_1 = param_1 + 1;\n      if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }\n      uVar2 = uVar4 ^ *param_1;\n    }" ({ "{") (expression_statement "param_3 = param_3 - 4;" (assignment_expression "param_3 = param_3 - 4" (identifier "param_3") (= "=") (binary_expression "param_3 - 4" (identifier "param_3") (- "-") (number_literal "4"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_3 < 4) {\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }" (if "if") (parenthesized_expression "(param_3 < 4)" (( "(") (binary_expression "param_3 < 4" (identifier "param_3") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n        if (param_3 == 0) {\n          return (uint *)0x0;\n        }\n        break;\n      }" ({ "{") (if_statement "if (param_3 == 0) {\n          return (uint *)0x0;\n        }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return (uint *)0x0;\n        }" ({ "{") (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "uVar2 = uVar4 ^ *param_1;" (assignment_expression "uVar2 = uVar4 ^ *param_1" (identifier "uVar2") (= "=") (binary_expression "uVar4 ^ *param_1" (identifier "uVar4") (^ "^") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0)" (( "(") (binary_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0" (parenthesized_expression "(uVar2 + 0xfefefeff & ~uVar2 & 0x80808080)" (( "(") (binary_expression "uVar2 + 0xfefefeff & ~uVar2 & 0x80808080" (binary_expression "uVar2 + 0xfefefeff & ~uVar2" (binary_expression "uVar2 + 0xfefefeff" (identifier "uVar2") (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~uVar2" (~ "~") (identifier "uVar2"))) (& "&") (number_literal "0x80808080")) () ")")) (== "==") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "cVar1 = *(char *)param_1;" (assignment_expression "cVar1 = *(char *)param_1" (identifier "cVar1") (= "=") (pointer_expression "*(char *)param_1" (* "*") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")))) (; ";")) (labeled_statement "LAB_0001b304:\n  if (cVar1 == param_2) {\n    return param_1;\n  }" (statement_identifier "LAB_0001b304") (: ":") (if_statement "if (cVar1 == param_2) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(cVar1 == param_2)" (( "(") (binary_expression "cVar1 == param_2" (identifier "cVar1") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))) (expression_statement "puVar3 = (uint *)((int)param_1 + param_3);" (assignment_expression "puVar3 = (uint *)((int)param_1 + param_3)" (identifier "puVar3") (= "=") (cast_expression "(uint *)((int)param_1 + param_3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + param_3)" (( "(") (binary_expression "(int)param_1 + param_3" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "param_3")) () ")")))) (; ";")) (do_statement "do {\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  } while (*(char *)param_1 != param_2);" (do "do") (compound_statement "{\n    param_1 = (uint *)((int)param_1 + 1);\n    if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }\n  }" ({ "{") (expression_statement "param_1 = (uint *)((int)param_1 + 1);" (assignment_expression "param_1 = (uint *)((int)param_1 + 1)" (identifier "param_1") (= "=") (cast_expression "(uint *)((int)param_1 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 1)" (( "(") (binary_expression "(int)param_1 + 1" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (puVar3 == param_1) {\n      return (uint *)0x0;\n    }" (if "if") (parenthesized_expression "(puVar3 == param_1)" (( "(") (binary_expression "puVar3 == param_1" (identifier "puVar3") (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      return (uint *)0x0;\n    }" ({ "{") (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(*(char *)param_1 != param_2)" (( "(") (binary_expression "*(char *)param_1 != param_2" (pointer_expression "*(char *)param_1" (* "*") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (!= "!=") (identifier "param_2")) () ")")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(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)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (while_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_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: (identifier))) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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: (call_expression function: (identifier) arguments: (argument_list (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (unary_expression argument: (identifier))) right: (number_literal))) right: (number_literal))) 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: (identifier))))) (goto_statement label: (statement_identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (unary_expression argument: (identifier))) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)))) (return_statement (identifier)))))

uint * MASKED(uint *param_1,char param_2,uint param_3)

{
  char cVar1;
  uint uVar2;
  uint *puVar3;
  uint uVar4;
  
  if (param_3 == 0) {
    return (uint *)0x0;
  }
  while (((uint)param_1 & 3) != 0) {
    param_3 = param_3 - 1;
    if (*(char *)param_1 == param_2) {
      return param_1;
    }
    param_1 = (uint *)((int)param_1 + 1);
    if (param_3 == 0) {
      return (uint *)0x0;
    }
  }
  uVar4 = CONCAT22(CONCAT11(param_2,param_2),CONCAT11(param_2,param_2));
  if (3 < param_3) {
    uVar2 = uVar4 ^ *param_1;
    if ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) != 0) {
      cVar1 = *(char *)param_1;
      goto LAB_0001b304;
    }
    do {
      param_3 = param_3 - 4;
      param_1 = param_1 + 1;
      if (param_3 < 4) {
        if (param_3 == 0) {
          return (uint *)0x0;
        }
        break;
      }
      uVar2 = uVar4 ^ *param_1;
    } while ((uVar2 + 0xfefefeff & ~uVar2 & 0x80808080) == 0);
  }
  cVar1 = *(char *)param_1;
LAB_0001b304:
  if (cVar1 == param_2) {
    return param_1;
  }
  puVar3 = (uint *)((int)param_1 + param_3);
  do {
    param_1 = (uint *)((int)param_1 + 1);
    if (puVar3 == param_1) {
      return (uint *)0x0;
    }
  } while (*(char *)param_1 != param_2);
  return param_1;
}

