
regoff_t re_search_2_stub(re_pattern_buffer *bufp,char *string1,Idx length1,char *string2,
                         Idx length2,Idx start,regoff_t range,re_registers *regs,Idx stop,
                         _Bool ret_len)

{
  regoff_t rVar1;
  char *string;
  uint length;
  char *pcVar2;
  
  if ((((-1 < length1) && (-1 < length2)) && (length = length1 + length2, -1 < stop)) &&
     (-1 < (int)((length ^ length2) & ~(length1 ^ length2)))) {
    if (length2 == 0) {
      pcVar2 = (char *)0x0;
      string = string1;
    }
    else if (length1 == 0) {
      string = string2;
      pcVar2 = (char *)0x0;
    }
    else {
      string = (char *)(*(code *)PTR_malloc_0003e294)(length);
      if (string == (char *)0x0) {
        return -2;
      }
      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);
      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);
      pcVar2 = string;
    }
    rVar1 = re_search_stub(bufp,string,length,start,range,stop,regs,ret_len);
    (*(code *)PTR_free_0003e300)(pcVar2);
    return rVar1;
  }
  return -2;
}



undefined4
FUN_00029e08(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6
            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)

{
  undefined4 uVar1;
  uint uVar2;
  int iVar3;
  
  if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&
     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {
    if (param_5 == 0) {
      iVar3 = 0;
    }
    else if (param_3 == 0) {
      iVar3 = 0;
      param_2 = param_4;
    }
    else {
      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);
      if (iVar3 == 0) {
        return 0xfffffffe;
      }
      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);
      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);
      param_2 = iVar3;
    }
    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);
    (*(code *)PTR_free_0003e300)(iVar3);
    return uVar1;
  }
  return 0xfffffffe;
}


lui gp,0x2
addiu gp,gp,-0x3d48
addu gp,gp,t9
addiu sp,sp,-0x50
sw gp,0x20(sp)
sw s2,0x38(sp)
sw s0,0x30(sp)
sw ra,0x4c(sp)
sw s6,0x48(sp)
sw s5,0x44(sp)
sw s4,0x40(sp)
sw s3,0x3c(sp)
sw s1,0x34(sp)
lw s0,0x60(sp)
bltz a2,0x00029f18
_lw s2,0x70(sp)
bltz s0,0x00029f18
_nop
bltz s2,0x00029f18
_addu s3,a2,s0
xor v1,a2,s0
xor v0,s3,s0
nor v1,zero,v1
and v0,v0,v1
bltz v0,0x00029f18
_or s1,a2,zero
beq s0,zero,0x00029f7c
_or s6,a0,zero
or s4,a3,zero
bne a2,zero,0x00029f00
_sw a1,0x54(sp)
or s5,zero,zero
lbu v0,0x77(sp)
or a2,s3,zero
lw t9,-0x7fc8(gp)
or a1,s4,zero
lw a3,0x64(sp)
or a0,s6,zero
sw v0,0x1c(sp)
lw v0,0x6c(sp)
addiu t9,t9,-0x667c
sw s2,0x14(sp)
sw v0,0x18(sp)
lw v0,0x68(sp)
bal 0x00029984
_sw v0,0x10(sp)
or a0,s5,zero
lw gp,0x20(sp)
lw t9,-0x7dc0(gp)
jalr t9
_sw v0,0x2c(sp)
lw ra,0x4c(sp)
lw v0,0x2c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x50
lw t9,-0x7e2c(gp)
jalr t9
_or a0,s3,zero
lw gp,0x20(sp)
bne v0,zero,0x00029f44
_or s5,v0,zero
lw ra,0x4c(sp)
li v0,-0x2
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x50
lw t9,-0x7dc8(gp)
or a2,s1,zero
lw a1,0x54(sp)
jalr t9
_or a0,v0,zero
addu a0,s5,s1
lw gp,0x20(sp)
or a1,s4,zero
or a2,s0,zero
lw t9,-0x7dc8(gp)
jalr t9
_or s4,s5,zero
b 0x00029e88
_lw gp,0x20(sp)
or s4,a1,zero
b 0x00029e88
_or s5,zero,zero
(translation_unit "undefined4\nFUN_00029e08(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }\n  return 0xfffffffe;\n}\n\n" (function_definition "undefined4\nFUN_00029e08(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }\n  return 0xfffffffe;\n}" type_identifier (function_declarator "FUN_00029e08(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "int param_9" primitive_type identifier) , (parameter_declaration "undefined1 param_10" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }\n  return 0xfffffffe;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }" if (parenthesized_expression "((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5))))" ( (binary_expression "(((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))" (parenthesized_expression "(((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9))" ( (binary_expression "((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)" (parenthesized_expression "((-1 < (int)param_3) && (-1 < (int)param_5))" ( (binary_expression "(-1 < (int)param_3) && (-1 < (int)param_5)" (parenthesized_expression "(-1 < (int)param_3)" ( (binary_expression "-1 < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(-1 < (int)param_5)" ( (binary_expression "-1 < (int)param_5" number_literal < (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) && (parenthesized_expression "(uVar2 = param_3 + param_5, -1 < param_9)" ( (comma_expression "uVar2 = param_3 + param_5, -1 < param_9" (assignment_expression "uVar2 = param_3 + param_5" identifier = (binary_expression "param_3 + param_5" identifier + identifier)) , (binary_expression "-1 < param_9" number_literal < identifier)) ))) )) && (parenthesized_expression "(-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))" ( (binary_expression "-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5))" number_literal < (cast_expression "(int)((uVar2 ^ param_5) & ~(param_3 ^ param_5))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uVar2 ^ param_5) & ~(param_3 ^ param_5))" ( (binary_expression "(uVar2 ^ param_5) & ~(param_3 ^ param_5)" (parenthesized_expression "(uVar2 ^ param_5)" ( (binary_expression "uVar2 ^ param_5" identifier ^ identifier) )) & (unary_expression "~(param_3 ^ param_5)" ~ (parenthesized_expression "(param_3 ^ param_5)" ( (binary_expression "param_3 ^ param_5" identifier ^ identifier) )))) )))) ))) )) (compound_statement "{\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }" { (if_statement "if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" else (if_statement "if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      param_2 = param_4;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "param_2 = param_4;" (assignment_expression "param_2 = param_4" identifier = identifier) ;) }) (else_clause "else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" else (compound_statement "{\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2)" identifier = (call_expression "(*(code *)PTR_malloc_0003e294)(uVar2)" (parenthesized_expression "(*(code *)PTR_malloc_0003e294)" ( (pointer_expression "*(code *)PTR_malloc_0003e294" * (cast_expression "(code *)PTR_malloc_0003e294" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n        return 0xfffffffe;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0xfffffffe;\n      }" { (return_statement "return 0xfffffffe;" return number_literal ;) })) (expression_statement "(*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);" (call_expression "(*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" ( (pointer_expression "*(code *)PTR_memcpy_0003e2f8" * (cast_expression "(code *)PTR_memcpy_0003e2f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);" (call_expression "(*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" ( (pointer_expression "*(code *)PTR_memcpy_0003e2f8" * (cast_expression "(code *)PTR_memcpy_0003e2f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + param_3,param_4,param_5)" ( (binary_expression "iVar3 + param_3" identifier + identifier) , identifier , identifier ))) ;) (expression_statement "param_2 = iVar3;" (assignment_expression "param_2 = iVar3" identifier = identifier) ;) }))))) (expression_statement "uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);" (assignment_expression "uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10)" identifier = (call_expression "FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10)" identifier (argument_list "(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_free_0003e300)(iVar3);" (call_expression "(*(code *)PTR_free_0003e300)(iVar3)" (parenthesized_expression "(*(code *)PTR_free_0003e300)" ( (pointer_expression "*(code *)PTR_free_0003e300" * (cast_expression "(code *)PTR_free_0003e300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0xfffffffe;" return number_literal ;) })))
(translation_unit "regoff_t re_search_2_stub(re_pattern_buffer *bufp,char *string1,Idx length1,char *string2,\n                         Idx length2,Idx start,regoff_t range,re_registers *regs,Idx stop,\n                         _Bool ret_len)\n\n{\n  regoff_t rVar1;\n  char *string;\n  uint length;\n  char *pcVar2;\n  \n  if ((((-1 < length1) && (-1 < length2)) && (length = length1 + length2, -1 < stop)) &&\n     (-1 < (int)((length ^ length2) & ~(length1 ^ length2)))) {\n    if (length2 == 0) {\n      pcVar2 = (char *)0x0;\n      string = string1;\n    }\n    else if (length1 == 0) {\n      string = string2;\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      string = (char *)(*(code *)PTR_malloc_0003e294)(length);\n      if (string == (char *)0x0) {\n        return -2;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);\n      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);\n      pcVar2 = string;\n    }\n    rVar1 = re_search_stub(bufp,string,length,start,range,stop,regs,ret_len);\n    (*(code *)PTR_free_0003e300)(pcVar2);\n    return rVar1;\n  }\n  return -2;\n}\n\n" (function_definition "regoff_t re_search_2_stub(re_pattern_buffer *bufp,char *string1,Idx length1,char *string2,\n                         Idx length2,Idx start,regoff_t range,re_registers *regs,Idx stop,\n                         _Bool ret_len)\n\n{\n  regoff_t rVar1;\n  char *string;\n  uint length;\n  char *pcVar2;\n  \n  if ((((-1 < length1) && (-1 < length2)) && (length = length1 + length2, -1 < stop)) &&\n     (-1 < (int)((length ^ length2) & ~(length1 ^ length2)))) {\n    if (length2 == 0) {\n      pcVar2 = (char *)0x0;\n      string = string1;\n    }\n    else if (length1 == 0) {\n      string = string2;\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      string = (char *)(*(code *)PTR_malloc_0003e294)(length);\n      if (string == (char *)0x0) {\n        return -2;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);\n      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);\n      pcVar2 = string;\n    }\n    rVar1 = re_search_stub(bufp,string,length,start,range,stop,regs,ret_len);\n    (*(code *)PTR_free_0003e300)(pcVar2);\n    return rVar1;\n  }\n  return -2;\n}" type_identifier (function_declarator "re_search_2_stub(re_pattern_buffer *bufp,char *string1,Idx length1,char *string2,\n                         Idx length2,Idx start,regoff_t range,re_registers *regs,Idx stop,\n                         _Bool ret_len)" identifier (parameter_list "(re_pattern_buffer *bufp,char *string1,Idx length1,char *string2,\n                         Idx length2,Idx start,regoff_t range,re_registers *regs,Idx stop,\n                         _Bool ret_len)" ( (parameter_declaration "re_pattern_buffer *bufp" type_identifier (pointer_declarator "*bufp" * identifier)) , (parameter_declaration "char *string1" primitive_type (pointer_declarator "*string1" * identifier)) , (parameter_declaration "Idx length1" type_identifier identifier) , (parameter_declaration "char *string2" primitive_type (pointer_declarator "*string2" * identifier)) , (parameter_declaration "Idx length2" type_identifier identifier) , (parameter_declaration "Idx start" type_identifier identifier) , (parameter_declaration "regoff_t range" type_identifier identifier) , (parameter_declaration "re_registers *regs" type_identifier (pointer_declarator "*regs" * identifier)) , (parameter_declaration "Idx stop" type_identifier identifier) , (parameter_declaration "_Bool ret_len" type_identifier identifier) ))) (compound_statement "{\n  regoff_t rVar1;\n  char *string;\n  uint length;\n  char *pcVar2;\n  \n  if ((((-1 < length1) && (-1 < length2)) && (length = length1 + length2, -1 < stop)) &&\n     (-1 < (int)((length ^ length2) & ~(length1 ^ length2)))) {\n    if (length2 == 0) {\n      pcVar2 = (char *)0x0;\n      string = string1;\n    }\n    else if (length1 == 0) {\n      string = string2;\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      string = (char *)(*(code *)PTR_malloc_0003e294)(length);\n      if (string == (char *)0x0) {\n        return -2;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);\n      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);\n      pcVar2 = string;\n    }\n    rVar1 = re_search_stub(bufp,string,length,start,range,stop,regs,ret_len);\n    (*(code *)PTR_free_0003e300)(pcVar2);\n    return rVar1;\n  }\n  return -2;\n}" { (declaration "regoff_t rVar1;" type_identifier identifier ;) (declaration "char *string;" primitive_type (pointer_declarator "*string" * identifier) ;) (declaration "uint length;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if ((((-1 < length1) && (-1 < length2)) && (length = length1 + length2, -1 < stop)) &&\n     (-1 < (int)((length ^ length2) & ~(length1 ^ length2)))) {\n    if (length2 == 0) {\n      pcVar2 = (char *)0x0;\n      string = string1;\n    }\n    else if (length1 == 0) {\n      string = string2;\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      string = (char *)(*(code *)PTR_malloc_0003e294)(length);\n      if (string == (char *)0x0) {\n        return -2;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);\n      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);\n      pcVar2 = string;\n    }\n    rVar1 = re_search_stub(bufp,string,length,start,range,stop,regs,ret_len);\n    (*(code *)PTR_free_0003e300)(pcVar2);\n    return rVar1;\n  }" if (parenthesized_expression "((((-1 < length1) && (-1 < length2)) && (length = length1 + length2, -1 < stop)) &&\n     (-1 < (int)((length ^ length2) & ~(length1 ^ length2))))" ( (binary_expression "(((-1 < length1) && (-1 < length2)) && (length = length1 + length2, -1 < stop)) &&\n     (-1 < (int)((length ^ length2) & ~(length1 ^ length2)))" (parenthesized_expression "(((-1 < length1) && (-1 < length2)) && (length = length1 + length2, -1 < stop))" ( (binary_expression "((-1 < length1) && (-1 < length2)) && (length = length1 + length2, -1 < stop)" (parenthesized_expression "((-1 < length1) && (-1 < length2))" ( (binary_expression "(-1 < length1) && (-1 < length2)" (parenthesized_expression "(-1 < length1)" ( (binary_expression "-1 < length1" number_literal < identifier) )) && (parenthesized_expression "(-1 < length2)" ( (binary_expression "-1 < length2" number_literal < identifier) ))) )) && (parenthesized_expression "(length = length1 + length2, -1 < stop)" ( (comma_expression "length = length1 + length2, -1 < stop" (assignment_expression "length = length1 + length2" identifier = (binary_expression "length1 + length2" identifier + identifier)) , (binary_expression "-1 < stop" number_literal < identifier)) ))) )) && (parenthesized_expression "(-1 < (int)((length ^ length2) & ~(length1 ^ length2)))" ( (binary_expression "-1 < (int)((length ^ length2) & ~(length1 ^ length2))" number_literal < (cast_expression "(int)((length ^ length2) & ~(length1 ^ length2))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((length ^ length2) & ~(length1 ^ length2))" ( (binary_expression "(length ^ length2) & ~(length1 ^ length2)" (parenthesized_expression "(length ^ length2)" ( (binary_expression "length ^ length2" identifier ^ identifier) )) & (unary_expression "~(length1 ^ length2)" ~ (parenthesized_expression "(length1 ^ length2)" ( (binary_expression "length1 ^ length2" identifier ^ identifier) )))) )))) ))) )) (compound_statement "{\n    if (length2 == 0) {\n      pcVar2 = (char *)0x0;\n      string = string1;\n    }\n    else if (length1 == 0) {\n      string = string2;\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      string = (char *)(*(code *)PTR_malloc_0003e294)(length);\n      if (string == (char *)0x0) {\n        return -2;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);\n      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);\n      pcVar2 = string;\n    }\n    rVar1 = re_search_stub(bufp,string,length,start,range,stop,regs,ret_len);\n    (*(code *)PTR_free_0003e300)(pcVar2);\n    return rVar1;\n  }" { (if_statement "if (length2 == 0) {\n      pcVar2 = (char *)0x0;\n      string = string1;\n    }\n    else if (length1 == 0) {\n      string = string2;\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      string = (char *)(*(code *)PTR_malloc_0003e294)(length);\n      if (string == (char *)0x0) {\n        return -2;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);\n      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);\n      pcVar2 = string;\n    }" if (parenthesized_expression "(length2 == 0)" ( (binary_expression "length2 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar2 = (char *)0x0;\n      string = string1;\n    }" { (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "string = string1;" (assignment_expression "string = string1" identifier = identifier) ;) }) (else_clause "else if (length1 == 0) {\n      string = string2;\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      string = (char *)(*(code *)PTR_malloc_0003e294)(length);\n      if (string == (char *)0x0) {\n        return -2;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);\n      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);\n      pcVar2 = string;\n    }" else (if_statement "if (length1 == 0) {\n      string = string2;\n      pcVar2 = (char *)0x0;\n    }\n    else {\n      string = (char *)(*(code *)PTR_malloc_0003e294)(length);\n      if (string == (char *)0x0) {\n        return -2;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);\n      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);\n      pcVar2 = string;\n    }" if (parenthesized_expression "(length1 == 0)" ( (binary_expression "length1 == 0" identifier == number_literal) )) (compound_statement "{\n      string = string2;\n      pcVar2 = (char *)0x0;\n    }" { (expression_statement "string = string2;" (assignment_expression "string = string2" identifier = identifier) ;) (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      string = (char *)(*(code *)PTR_malloc_0003e294)(length);\n      if (string == (char *)0x0) {\n        return -2;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);\n      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);\n      pcVar2 = string;\n    }" else (compound_statement "{\n      string = (char *)(*(code *)PTR_malloc_0003e294)(length);\n      if (string == (char *)0x0) {\n        return -2;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);\n      (*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);\n      pcVar2 = string;\n    }" { (expression_statement "string = (char *)(*(code *)PTR_malloc_0003e294)(length);" (assignment_expression "string = (char *)(*(code *)PTR_malloc_0003e294)(length)" identifier = (cast_expression "(char *)(*(code *)PTR_malloc_0003e294)(length)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0003e294)(length)" (parenthesized_expression "(*(code *)PTR_malloc_0003e294)" ( (pointer_expression "*(code *)PTR_malloc_0003e294" * (cast_expression "(code *)PTR_malloc_0003e294" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(length)" ( identifier ))))) ;) (if_statement "if (string == (char *)0x0) {\n        return -2;\n      }" if (parenthesized_expression "(string == (char *)0x0)" ( (binary_expression "string == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return -2;\n      }" { (return_statement "return -2;" return number_literal ;) })) (expression_statement "(*(code *)PTR_memcpy_0003e2f8)(string,string1,length1);" (call_expression "(*(code *)PTR_memcpy_0003e2f8)(string,string1,length1)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" ( (pointer_expression "*(code *)PTR_memcpy_0003e2f8" * (cast_expression "(code *)PTR_memcpy_0003e2f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(string,string1,length1)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2);" (call_expression "(*(code *)PTR_memcpy_0003e2f8)(string + length1,string2,length2)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" ( (pointer_expression "*(code *)PTR_memcpy_0003e2f8" * (cast_expression "(code *)PTR_memcpy_0003e2f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(string + length1,string2,length2)" ( (binary_expression "string + length1" identifier + identifier) , identifier , identifier ))) ;) (expression_statement "pcVar2 = string;" (assignment_expression "pcVar2 = string" identifier = identifier) ;) }))))) (expression_statement "rVar1 = re_search_stub(bufp,string,length,start,range,stop,regs,ret_len);" (assignment_expression "rVar1 = re_search_stub(bufp,string,length,start,range,stop,regs,ret_len)" identifier = (call_expression "re_search_stub(bufp,string,length,start,range,stop,regs,ret_len)" identifier (argument_list "(bufp,string,length,start,range,stop,regs,ret_len)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_free_0003e300)(pcVar2);" (call_expression "(*(code *)PTR_free_0003e300)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_0003e300)" ( (pointer_expression "*(code *)PTR_free_0003e300" * (cast_expression "(code *)PTR_free_0003e300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return rVar1;" return identifier ;) })) (return_statement "return -2;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_00029e08(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }\n  return 0xfffffffe;\n}\n\n" (function_definition "undefined4\nFUN_00029e08(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }\n  return 0xfffffffe;\n}" type_identifier (function_declarator "FUN_00029e08(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "int param_9" primitive_type identifier) , (parameter_declaration "undefined1 param_10" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }\n  return 0xfffffffe;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }" if (parenthesized_expression "((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5))))" ( (binary_expression "(((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))" (parenthesized_expression "(((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9))" ( (binary_expression "((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)" (parenthesized_expression "((-1 < (int)param_3) && (-1 < (int)param_5))" ( (binary_expression "(-1 < (int)param_3) && (-1 < (int)param_5)" (parenthesized_expression "(-1 < (int)param_3)" ( (binary_expression "-1 < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(-1 < (int)param_5)" ( (binary_expression "-1 < (int)param_5" number_literal < (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) && (parenthesized_expression "(uVar2 = param_3 + param_5, -1 < param_9)" ( (comma_expression "uVar2 = param_3 + param_5, -1 < param_9" (assignment_expression "uVar2 = param_3 + param_5" identifier = (binary_expression "param_3 + param_5" identifier + identifier)) , (binary_expression "-1 < param_9" number_literal < identifier)) ))) )) && (parenthesized_expression "(-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))" ( (binary_expression "-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5))" number_literal < (cast_expression "(int)((uVar2 ^ param_5) & ~(param_3 ^ param_5))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uVar2 ^ param_5) & ~(param_3 ^ param_5))" ( (binary_expression "(uVar2 ^ param_5) & ~(param_3 ^ param_5)" (parenthesized_expression "(uVar2 ^ param_5)" ( (binary_expression "uVar2 ^ param_5" identifier ^ identifier) )) & (unary_expression "~(param_3 ^ param_5)" ~ (parenthesized_expression "(param_3 ^ param_5)" ( (binary_expression "param_3 ^ param_5" identifier ^ identifier) )))) )))) ))) )) (compound_statement "{\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }" { (if_statement "if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" else (if_statement "if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      param_2 = param_4;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "param_2 = param_4;" (assignment_expression "param_2 = param_4" identifier = identifier) ;) }) (else_clause "else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" else (compound_statement "{\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2)" identifier = (call_expression "(*(code *)PTR_malloc_0003e294)(uVar2)" (parenthesized_expression "(*(code *)PTR_malloc_0003e294)" ( (pointer_expression "*(code *)PTR_malloc_0003e294" * (cast_expression "(code *)PTR_malloc_0003e294" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n        return 0xfffffffe;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0xfffffffe;\n      }" { (return_statement "return 0xfffffffe;" return number_literal ;) })) (expression_statement "(*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);" (call_expression "(*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" ( (pointer_expression "*(code *)PTR_memcpy_0003e2f8" * (cast_expression "(code *)PTR_memcpy_0003e2f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);" (call_expression "(*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" ( (pointer_expression "*(code *)PTR_memcpy_0003e2f8" * (cast_expression "(code *)PTR_memcpy_0003e2f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + param_3,param_4,param_5)" ( (binary_expression "iVar3 + param_3" identifier + identifier) , identifier , identifier ))) ;) (expression_statement "param_2 = iVar3;" (assignment_expression "param_2 = iVar3" identifier = identifier) ;) }))))) (expression_statement "uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);" (assignment_expression "uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10)" identifier = (call_expression "FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10)" identifier (argument_list "(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_free_0003e300)(iVar3);" (call_expression "(*(code *)PTR_free_0003e300)(iVar3)" (parenthesized_expression "(*(code *)PTR_free_0003e300)" ( (pointer_expression "*(code *)PTR_free_0003e300" * (cast_expression "(code *)PTR_free_0003e300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0xfffffffe;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + IDENT)) , (binary_expression LIT < IDENT)) ))) )) && (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ IDENT) )) & (unary_expression ~ (parenthesized_expression ( (binary_expression IDENT ^ IDENT) )))) )))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_00029e08(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }\n  return 0xfffffffe;\n}" (type_identifier "undefined4") (function_declarator "FUN_00029e08(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)" (identifier "FUN_00029e08") (parameter_list "(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6\n            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "int param_9" (primitive_type "int") (identifier "param_9")) (, ",") (parameter_declaration "undefined1 param_10" (type_identifier "undefined1") (identifier "param_10")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }\n  return 0xfffffffe;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5))))" (( "(") (binary_expression "(((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&\n     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))" (parenthesized_expression "(((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9))" (( "(") (binary_expression "((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)" (parenthesized_expression "((-1 < (int)param_3) && (-1 < (int)param_5))" (( "(") (binary_expression "(-1 < (int)param_3) && (-1 < (int)param_5)" (parenthesized_expression "(-1 < (int)param_3)" (( "(") (binary_expression "-1 < (int)param_3" (number_literal "-1") (< "<") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")) (&& "&&") (parenthesized_expression "(-1 < (int)param_5)" (( "(") (binary_expression "-1 < (int)param_5" (number_literal "-1") (< "<") (cast_expression "(int)param_5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_5"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(uVar2 = param_3 + param_5, -1 < param_9)" (( "(") (comma_expression "uVar2 = param_3 + param_5, -1 < param_9" (assignment_expression "uVar2 = param_3 + param_5" (identifier "uVar2") (= "=") (binary_expression "param_3 + param_5" (identifier "param_3") (+ "+") (identifier "param_5"))) (, ",") (binary_expression "-1 < param_9" (number_literal "-1") (< "<") (identifier "param_9"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))" (( "(") (binary_expression "-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5))" (number_literal "-1") (< "<") (cast_expression "(int)((uVar2 ^ param_5) & ~(param_3 ^ param_5))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uVar2 ^ param_5) & ~(param_3 ^ param_5))" (( "(") (binary_expression "(uVar2 ^ param_5) & ~(param_3 ^ param_5)" (parenthesized_expression "(uVar2 ^ param_5)" (( "(") (binary_expression "uVar2 ^ param_5" (identifier "uVar2") (^ "^") (identifier "param_5")) () ")")) (& "&") (unary_expression "~(param_3 ^ param_5)" (~ "~") (parenthesized_expression "(param_3 ^ param_5)" (( "(") (binary_expression "param_3 ^ param_5" (identifier "param_3") (^ "^") (identifier "param_5")) () ")")))) () ")")))) () ")"))) () ")")) (compound_statement "{\n    if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }\n    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);\n    (*(code *)PTR_free_0003e300)(iVar3);\n    return uVar1;\n  }" ({ "{") (if_statement "if (param_5 == 0) {\n      iVar3 = 0;\n    }\n    else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = 0;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" (else "else") (if_statement "if (param_3 == 0) {\n      iVar3 = 0;\n      param_2 = param_4;\n    }\n    else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = 0;\n      param_2 = param_4;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2 = param_4;" (assignment_expression "param_2 = param_4" (identifier "param_2") (= "=") (identifier "param_4")) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" (else "else") (compound_statement "{\n      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);\n      if (iVar3 == 0) {\n        return 0xfffffffe;\n      }\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);\n      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);\n      param_2 = iVar3;\n    }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);" (assignment_expression "iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_malloc_0003e294)(uVar2)" (parenthesized_expression "(*(code *)PTR_malloc_0003e294)" (( "(") (pointer_expression "*(code *)PTR_malloc_0003e294" (* "*") (cast_expression "(code *)PTR_malloc_0003e294" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_0003e294"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        return 0xfffffffe;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0xfffffffe;\n      }" ({ "{") (return_statement "return 0xfffffffe;" (return "return") (number_literal "0xfffffffe") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);" (call_expression "(*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0003e2f8" (* "*") (cast_expression "(code *)PTR_memcpy_0003e2f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0003e2f8"))) () ")")) (argument_list "(iVar3,param_2,param_3)" (( "(") (identifier "iVar3") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);" (call_expression "(*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0003e2f8" (* "*") (cast_expression "(code *)PTR_memcpy_0003e2f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0003e2f8"))) () ")")) (argument_list "(iVar3 + param_3,param_4,param_5)" (( "(") (binary_expression "iVar3 + param_3" (identifier "iVar3") (+ "+") (identifier "param_3")) (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "param_2 = iVar3;" (assignment_expression "param_2 = iVar3" (identifier "param_2") (= "=") (identifier "iVar3")) (; ";")) (} "}")))))) (expression_statement "uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);" (assignment_expression "uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10)" (identifier "uVar1") (= "=") (call_expression "FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10)" (identifier "FUN_00029984") (argument_list "(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar2") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_9") (, ",") (identifier "param_8") (, ",") (identifier "param_10") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_free_0003e300)(iVar3);" (call_expression "(*(code *)PTR_free_0003e300)(iVar3)" (parenthesized_expression "(*(code *)PTR_free_0003e300)" (( "(") (pointer_expression "*(code *)PTR_free_0003e300" (* "*") (cast_expression "(code *)PTR_free_0003e300" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0003e300"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0xfffffffe;" (return "return") (number_literal "0xfffffffe") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))) right: (binary_expression left: (number_literal) right: (identifier)))))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (unary_expression argument: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (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) (identifier) (identifier)))) (expression_statement (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 (binary_expression left: (identifier) right: (identifier)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier))))) (expression_statement (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)))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4
MASKED(undefined4 param_1,int param_2,uint param_3,int param_4,uint param_5,undefined4 param_6
            ,undefined4 param_7,undefined4 param_8,int param_9,undefined1 param_10)

{
  undefined4 uVar1;
  uint uVar2;
  int iVar3;
  
  if ((((-1 < (int)param_3) && (-1 < (int)param_5)) && (uVar2 = param_3 + param_5, -1 < param_9)) &&
     (-1 < (int)((uVar2 ^ param_5) & ~(param_3 ^ param_5)))) {
    if (param_5 == 0) {
      iVar3 = 0;
    }
    else if (param_3 == 0) {
      iVar3 = 0;
      param_2 = param_4;
    }
    else {
      iVar3 = (*(code *)PTR_malloc_0003e294)(uVar2);
      if (iVar3 == 0) {
        return 0xfffffffe;
      }
      (*(code *)PTR_memcpy_0003e2f8)(iVar3,param_2,param_3);
      (*(code *)PTR_memcpy_0003e2f8)(iVar3 + param_3,param_4,param_5);
      param_2 = iVar3;
    }
    uVar1 = FUN_00029984(param_1,param_2,uVar2,param_6,param_7,param_9,param_8,param_10);
    (*(code *)PTR_free_0003e300)(iVar3);
    return uVar1;
  }
  return 0xfffffffe;
}

