
int rpl_regexec(regex_t *preg,char *string,size_t nmatch,regmatch_t *pmatch,int eflags)

{
  reg_errcode_t rVar1;
  uint uVar2;
  Idx length;
  Idx start;
  
  if ((eflags & 0xfffffff8U) == 0) {
    if ((eflags & 4U) == 0) {
      length = (*(code *)PTR_strlen_0003e2e4)(string);
      start = 0;
    }
    else {
      start = pmatch->rm_so;
      length = pmatch->rm_eo;
    }
    if ((preg->field_0x1c & 8) == 0) {
      rVar1 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);
      uVar2 = (uint)(rVar1 != _REG_NOERROR);
    }
    else {
      rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags);
      uVar2 = (uint)(rVar1 != _REG_NOERROR);
    }
  }
  else {
    uVar2 = 2;
  }
  return uVar2;
}



undefined1
FUN_0002a928(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)

{
  int iVar1;
  undefined1 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  if ((param_5 & 0xfffffff8) == 0) {
    if ((param_5 & 4) == 0) {
      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);
      uVar4 = 0;
    }
    else {
      uVar4 = *param_4;
      uVar3 = param_4[1];
    }
    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {
      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);
      uVar2 = iVar1 != 0;
    }
    else {
      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);
      uVar2 = iVar1 != 0;
    }
  }
  else {
    uVar2 = 2;
  }
  return uVar2;
}


lui gp,0x2
addiu gp,gp,-0x4818
addu gp,gp,t9
addiu sp,sp,-0x50
sw ra,0x4c(sp)
sw s5,0x48(sp)
sw s4,0x44(sp)
sw s3,0x40(sp)
sw s2,0x3c(sp)
sw s1,0x38(sp)
sw s0,0x34(sp)
sw gp,0x28(sp)
lw s2,0x60(sp)
li v0,-0x8
and v0,s2,v0
bne v0,zero,0x0002aa44
_or s3,a3,zero
or s4,a2,zero
or s1,a1,zero
andi s5,s2,0x4
beq s5,zero,0x0002a9f0
_or s0,a0,zero
lw s5,0x0(a3)
lw a2,0x4(a3)
lbu v0,0x1c(s0)
andi v0,v0,0x8
beq v0,zero,0x0002aa0c
_or a3,s5,zero
sw s2,0x20(sp)
sw zero,0x1c(sp)
sw zero,0x18(sp)
sw a2,0x14(sp)
sw a2,0x10(sp)
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x7a50
bal 0x000285b0
_nop
lw gp,0x28(sp)
sltu v0,zero,v0
lw ra,0x4c(sp)
lw s5,0x48(sp)
lw s4,0x44(sp)
lw s3,0x40(sp)
lw s2,0x3c(sp)
lw s1,0x38(sp)
lw s0,0x34(sp)
jr ra
_addiu sp,sp,0x50
or a0,a1,zero
lw t9,-0x7e2c(gp)
jalr t9
_nop
lw gp,0x28(sp)
b 0x0002a988
_or a2,v0,zero
sw s2,0x20(sp)
sw s3,0x1c(sp)
sw s4,0x18(sp)
sw a2,0x14(sp)
sw a2,0x10(sp)
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x7a50
bal 0x000285b0
_nop
lw gp,0x28(sp)
b 0x0002a9cc
_sltu v0,zero,v0
b 0x0002a9cc
_li v0,0x2
(translation_unit "undefined1\nFUN_0002a928(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined1\nFUN_0002a928(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0002a928(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }" if (parenthesized_expression "((param_5 & 0xfffffff8) == 0)" ( (binary_expression "(param_5 & 0xfffffff8) == 0" (parenthesized_expression "(param_5 & 0xfffffff8)" ( (binary_expression "param_5 & 0xfffffff8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }" { (if_statement "if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }" if (parenthesized_expression "((param_5 & 4) == 0)" ( (binary_expression "(param_5 & 4) == 0" (parenthesized_expression "(param_5 & 4)" ( (binary_expression "param_5 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);" (assignment_expression "uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0003e2e4)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0003e2e4)" ( (pointer_expression "*(code *)PTR_strlen_0003e2e4" * (cast_expression "(code *)PTR_strlen_0003e2e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }" else (compound_statement "{\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }" { (expression_statement "uVar4 = *param_4;" (assignment_expression "uVar4 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "uVar3 = param_4[1];" (assignment_expression "uVar3 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) }))) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 8) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 8) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 8)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 8" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }" { (expression_statement "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);" (assignment_expression "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5)" identifier = (call_expression "FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5)" identifier (argument_list "(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar2 = iVar1 != 0;" (assignment_expression "uVar2 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) }) (else_clause "else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }" else (compound_statement "{\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }" { (expression_statement "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);" (assignment_expression "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5)" identifier = (call_expression "FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5)" identifier (argument_list "(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5)" ( identifier , identifier , identifier , identifier , identifier , identifier , number_literal , number_literal , identifier )))) ;) (expression_statement "uVar2 = iVar1 != 0;" (assignment_expression "uVar2 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) }))) }) (else_clause "else {\n    uVar2 = 2;\n  }" else (compound_statement "{\n    uVar2 = 2;\n  }" { (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int rpl_regexec(regex_t *preg,char *string,size_t nmatch,regmatch_t *pmatch,int eflags)\n\n{\n  reg_errcode_t rVar1;\n  uint uVar2;\n  Idx length;\n  Idx start;\n  \n  if ((eflags & 0xfffffff8U) == 0) {\n    if ((eflags & 4U) == 0) {\n      length = (*(code *)PTR_strlen_0003e2e4)(string);\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n    }\n    if ((preg->field_0x1c & 8) == 0) {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n    else {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}\n\n" (function_definition "int rpl_regexec(regex_t *preg,char *string,size_t nmatch,regmatch_t *pmatch,int eflags)\n\n{\n  reg_errcode_t rVar1;\n  uint uVar2;\n  Idx length;\n  Idx start;\n  \n  if ((eflags & 0xfffffff8U) == 0) {\n    if ((eflags & 4U) == 0) {\n      length = (*(code *)PTR_strlen_0003e2e4)(string);\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n    }\n    if ((preg->field_0x1c & 8) == 0) {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n    else {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}" primitive_type (function_declarator "rpl_regexec(regex_t *preg,char *string,size_t nmatch,regmatch_t *pmatch,int eflags)" identifier (parameter_list "(regex_t *preg,char *string,size_t nmatch,regmatch_t *pmatch,int eflags)" ( (parameter_declaration "regex_t *preg" type_identifier (pointer_declarator "*preg" * identifier)) , (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "size_t nmatch" primitive_type identifier) , (parameter_declaration "regmatch_t *pmatch" type_identifier (pointer_declarator "*pmatch" * identifier)) , (parameter_declaration "int eflags" primitive_type identifier) ))) (compound_statement "{\n  reg_errcode_t rVar1;\n  uint uVar2;\n  Idx length;\n  Idx start;\n  \n  if ((eflags & 0xfffffff8U) == 0) {\n    if ((eflags & 4U) == 0) {\n      length = (*(code *)PTR_strlen_0003e2e4)(string);\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n    }\n    if ((preg->field_0x1c & 8) == 0) {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n    else {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}" { (declaration "reg_errcode_t rVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "Idx length;" type_identifier identifier ;) (declaration "Idx start;" type_identifier identifier ;) (if_statement "if ((eflags & 0xfffffff8U) == 0) {\n    if ((eflags & 4U) == 0) {\n      length = (*(code *)PTR_strlen_0003e2e4)(string);\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n    }\n    if ((preg->field_0x1c & 8) == 0) {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n    else {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n  }\n  else {\n    uVar2 = 2;\n  }" if (parenthesized_expression "((eflags & 0xfffffff8U) == 0)" ( (binary_expression "(eflags & 0xfffffff8U) == 0" (parenthesized_expression "(eflags & 0xfffffff8U)" ( (binary_expression "eflags & 0xfffffff8U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((eflags & 4U) == 0) {\n      length = (*(code *)PTR_strlen_0003e2e4)(string);\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n    }\n    if ((preg->field_0x1c & 8) == 0) {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n    else {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n  }" { (if_statement "if ((eflags & 4U) == 0) {\n      length = (*(code *)PTR_strlen_0003e2e4)(string);\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n    }" if (parenthesized_expression "((eflags & 4U) == 0)" ( (binary_expression "(eflags & 4U) == 0" (parenthesized_expression "(eflags & 4U)" ( (binary_expression "eflags & 4U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      length = (*(code *)PTR_strlen_0003e2e4)(string);\n      start = 0;\n    }" { (expression_statement "length = (*(code *)PTR_strlen_0003e2e4)(string);" (assignment_expression "length = (*(code *)PTR_strlen_0003e2e4)(string)" identifier = (call_expression "(*(code *)PTR_strlen_0003e2e4)(string)" (parenthesized_expression "(*(code *)PTR_strlen_0003e2e4)" ( (pointer_expression "*(code *)PTR_strlen_0003e2e4" * (cast_expression "(code *)PTR_strlen_0003e2e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(string)" ( identifier )))) ;) (expression_statement "start = 0;" (assignment_expression "start = 0" identifier = number_literal) ;) }) (else_clause "else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n    }" else (compound_statement "{\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n    }" { (expression_statement "start = pmatch->rm_so;" (assignment_expression "start = pmatch->rm_so" identifier = (field_expression "pmatch->rm_so" identifier -> field_identifier)) ;) (expression_statement "length = pmatch->rm_eo;" (assignment_expression "length = pmatch->rm_eo" identifier = (field_expression "pmatch->rm_eo" identifier -> field_identifier)) ;) }))) (if_statement "if ((preg->field_0x1c & 8) == 0) {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }\n    else {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }" if (parenthesized_expression "((preg->field_0x1c & 8) == 0)" ( (binary_expression "(preg->field_0x1c & 8) == 0" (parenthesized_expression "(preg->field_0x1c & 8)" ( (binary_expression "preg->field_0x1c & 8" (field_expression "preg->field_0x1c" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      rVar1 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }" { (expression_statement "rVar1 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);" (assignment_expression "rVar1 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags)" identifier = (call_expression "re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags)" identifier (argument_list "(preg,string,length,start,length,length,nmatch,pmatch,eflags)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar2 = (uint)(rVar1 != _REG_NOERROR);" (assignment_expression "uVar2 = (uint)(rVar1 != _REG_NOERROR)" identifier = (call_expression "(uint)(rVar1 != _REG_NOERROR)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(rVar1 != _REG_NOERROR)" ( (binary_expression "rVar1 != _REG_NOERROR" identifier != identifier) )))) ;) }) (else_clause "else {\n      rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }" else (compound_statement "{\n      rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags);\n      uVar2 = (uint)(rVar1 != _REG_NOERROR);\n    }" { (expression_statement "rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags);" (assignment_expression "rVar1 = re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags)" identifier = (call_expression "re_search_internal(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags)" identifier (argument_list "(preg,string,length,start,length,length,0,(regmatch_t *)0x0,eflags)" ( identifier , identifier , identifier , identifier , identifier , identifier , number_literal , (cast_expression "(regmatch_t *)0x0" ( (type_descriptor "regmatch_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (expression_statement "uVar2 = (uint)(rVar1 != _REG_NOERROR);" (assignment_expression "uVar2 = (uint)(rVar1 != _REG_NOERROR)" identifier = (call_expression "(uint)(rVar1 != _REG_NOERROR)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(rVar1 != _REG_NOERROR)" ( (binary_expression "rVar1 != _REG_NOERROR" identifier != identifier) )))) ;) }))) }) (else_clause "else {\n    uVar2 = 2;\n  }" else (compound_statement "{\n    uVar2 = 2;\n  }" { (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "undefined1\nFUN_0002a928(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined1\nFUN_0002a928(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0002a928(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }" if (parenthesized_expression "((param_5 & 0xfffffff8) == 0)" ( (binary_expression "(param_5 & 0xfffffff8) == 0" (parenthesized_expression "(param_5 & 0xfffffff8)" ( (binary_expression "param_5 & 0xfffffff8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }" { (if_statement "if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }" if (parenthesized_expression "((param_5 & 4) == 0)" ( (binary_expression "(param_5 & 4) == 0" (parenthesized_expression "(param_5 & 4)" ( (binary_expression "param_5 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);" (assignment_expression "uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0003e2e4)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0003e2e4)" ( (pointer_expression "*(code *)PTR_strlen_0003e2e4" * (cast_expression "(code *)PTR_strlen_0003e2e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }" else (compound_statement "{\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }" { (expression_statement "uVar4 = *param_4;" (assignment_expression "uVar4 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "uVar3 = param_4[1];" (assignment_expression "uVar3 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) }))) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 8) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1c) & 8) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 8)" ( (binary_expression "*(byte *)(param_1 + 0x1c) & 8" (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }" { (expression_statement "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);" (assignment_expression "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5)" identifier = (call_expression "FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5)" identifier (argument_list "(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar2 = iVar1 != 0;" (assignment_expression "uVar2 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) }) (else_clause "else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }" else (compound_statement "{\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }" { (expression_statement "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);" (assignment_expression "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5)" identifier = (call_expression "FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5)" identifier (argument_list "(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5)" ( identifier , identifier , identifier , identifier , identifier , identifier , number_literal , number_literal , identifier )))) ;) (expression_statement "uVar2 = iVar1 != 0;" (assignment_expression "uVar2 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) }))) }) (else_clause "else {\n    uVar2 = 2;\n  }" else (compound_statement "{\n    uVar2 = 2;\n  }" { (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , LIT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined1\nFUN_0002a928(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}" (type_identifier "undefined1") (function_declarator "FUN_0002a928(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" (identifier "FUN_0002a928") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined1 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (if_statement "if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }\n  else {\n    uVar2 = 2;\n  }" (if "if") (parenthesized_expression "((param_5 & 0xfffffff8) == 0)" (( "(") (binary_expression "(param_5 & 0xfffffff8) == 0" (parenthesized_expression "(param_5 & 0xfffffff8)" (( "(") (binary_expression "param_5 & 0xfffffff8" (identifier "param_5") (& "&") (number_literal "0xfffffff8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }\n    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }\n  }" ({ "{") (if_statement "if ((param_5 & 4) == 0) {\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }" (if "if") (parenthesized_expression "((param_5 & 4) == 0)" (( "(") (binary_expression "(param_5 & 4) == 0" (parenthesized_expression "(param_5 & 4)" (( "(") (binary_expression "param_5 & 4" (identifier "param_5") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);\n      uVar4 = 0;\n    }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);" (assignment_expression "uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_strlen_0003e2e4)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0003e2e4)" (( "(") (pointer_expression "*(code *)PTR_strlen_0003e2e4" (* "*") (cast_expression "(code *)PTR_strlen_0003e2e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0003e2e4"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }" (else "else") (compound_statement "{\n      uVar4 = *param_4;\n      uVar3 = param_4[1];\n    }" ({ "{") (expression_statement "uVar4 = *param_4;" (assignment_expression "uVar4 = *param_4" (identifier "uVar4") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "uVar3 = param_4[1];" (assignment_expression "uVar3 = param_4[1]" (identifier "uVar3") (= "=") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (if_statement "if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }\n    else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x1c) & 8) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x1c) & 8) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1c) & 8)" (( "(") (binary_expression "*(byte *)(param_1 + 0x1c) & 8" (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);\n      uVar2 = iVar1 != 0;\n    }" ({ "{") (expression_statement "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);" (assignment_expression "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5)" (identifier "iVar1") (= "=") (call_expression "FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5)" (identifier "FUN_000285b0") (argument_list "(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (identifier "uVar3") (, ",") (identifier "uVar3") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar2 = iVar1 != 0;" (assignment_expression "uVar2 = iVar1 != 0" (identifier "uVar2") (= "=") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }" (else "else") (compound_statement "{\n      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);\n      uVar2 = iVar1 != 0;\n    }" ({ "{") (expression_statement "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);" (assignment_expression "iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5)" (identifier "iVar1") (= "=") (call_expression "FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5)" (identifier "FUN_000285b0") (argument_list "(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (identifier "uVar3") (, ",") (identifier "uVar3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar2 = iVar1 != 0;" (assignment_expression "uVar2 = iVar1 != 0" (identifier "uVar2") (= "=") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar2 = 2;\n  }" (else "else") (compound_statement "{\n    uVar2 = 2;\n  }" ({ "{") (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" (identifier "uVar2") (= "=") (number_literal "2")) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator 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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (number_literal) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

undefined1
MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,uint param_5)

{
  int iVar1;
  undefined1 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  if ((param_5 & 0xfffffff8) == 0) {
    if ((param_5 & 4) == 0) {
      uVar3 = (*(code *)PTR_strlen_0003e2e4)(param_2);
      uVar4 = 0;
    }
    else {
      uVar4 = *param_4;
      uVar3 = param_4[1];
    }
    if ((*(byte *)(param_1 + 0x1c) & 8) == 0) {
      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,param_3,param_4,param_5);
      uVar2 = iVar1 != 0;
    }
    else {
      iVar1 = FUN_000285b0(param_1,param_2,uVar3,uVar4,uVar3,uVar3,0,0,param_5);
      uVar2 = iVar1 != 0;
    }
  }
  else {
    uVar2 = 2;
  }
  return uVar2;
}

