
char * strdupdelim(char *beg,char *end)

{
  char *pcVar1;
  void *pvVar2;
  int iVar3;
  
  if ((beg != (char *)0x0) && (iVar3 = (int)end - (int)beg, beg <= end)) {
    pvVar2 = xmalloc(iVar3 + 1);
    pcVar1 = (char *)(*(code *)PTR_memcpy_000afc70)(pvVar2,beg,iVar3);
    pcVar1[iVar3] = '\0';
    return pcVar1;
  }
  pcVar1 = xstrdup(PTR_s_hallenge__000af46c + -0x1710);
  return pcVar1;
}



void strdupdelim(uint param_1,uint param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  
  if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {
    uVar1 = xmalloc(iVar3 + 1);
    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);
    *(undefined1 *)(iVar2 + iVar3) = 0;
    return;
  }
  xstrdup(PTR_s_hallenge__000af46c + -0x1710);
  return;
}


lui gp,0x6
addiu gp,gp,0x1c28
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
beq a0,zero,0x00055838
_sw s0,0x1c(sp)
sltu v0,a1,a0
beq v0,zero,0x00055858
_subu s1,a1,a0
lw a0,-0x7fc4(gp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
addiu a0,a0,-0x1710
lw t9,-0x7fa4(gp)
b 0x0006b64c
_addiu sp,sp,0x28
lw t9,-0x7e6c(gp)
or s0,a0,zero
bal 0x0006b280
_addiu a0,s1,0x1
or a2,s1,zero
lw gp,0x10(sp)
or a1,s0,zero
lw t9,-0x77c0(gp)
jalr t9
_or a0,v0,zero
addu s1,v0,s1
sb zero,0x0(s1)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void strdupdelim(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }\n  xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return;\n}\n\n" (function_definition "void strdupdelim(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }\n  xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return;\n}" primitive_type (function_declarator "strdupdelim(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }\n  xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }" if (parenthesized_expression "((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2))" ( (binary_expression "(param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = param_2 - param_1, param_1 <= param_2)" ( (comma_expression "iVar3 = param_2 - param_1, param_1 <= param_2" (assignment_expression "iVar3 = param_2 - param_1" identifier = (binary_expression "param_2 - param_1" identifier - identifier)) , (binary_expression "param_1 <= param_2" identifier <= identifier)) ))) )) (compound_statement "{\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }" { (expression_statement "uVar1 = xmalloc(iVar3 + 1);" (assignment_expression "uVar1 = xmalloc(iVar3 + 1)" identifier = (call_expression "xmalloc(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);" (assignment_expression "iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3)" identifier = (call_expression "(*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_000afc70)" ( (pointer_expression "*(code *)PTR_memcpy_000afc70" * (cast_expression "(code *)PTR_memcpy_000afc70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1,param_1,iVar3)" ( identifier , identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar2 + iVar3) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + iVar3) = 0" (pointer_expression "*(undefined1 *)(iVar2 + iVar3)" * (cast_expression "(undefined1 *)(iVar2 + iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar3)" ( (binary_expression "iVar2 + iVar3" identifier + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "xstrdup(PTR_s_hallenge__000af46c + -0x1710);" (call_expression "xstrdup(PTR_s_hallenge__000af46c + -0x1710)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x1710)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x1710" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "char * strdupdelim(char *beg,char *end)\n\n{\n  char *pcVar1;\n  void *pvVar2;\n  int iVar3;\n  \n  if ((beg != (char *)0x0) && (iVar3 = (int)end - (int)beg, beg <= end)) {\n    pvVar2 = xmalloc(iVar3 + 1);\n    pcVar1 = (char *)(*(code *)PTR_memcpy_000afc70)(pvVar2,beg,iVar3);\n    pcVar1[iVar3] = '\0';\n    return pcVar1;\n  }\n  pcVar1 = xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return pcVar1;\n}\n\n" (function_definition "char * strdupdelim(char *beg,char *end)\n\n{\n  char *pcVar1;\n  void *pvVar2;\n  int iVar3;\n  \n  if ((beg != (char *)0x0) && (iVar3 = (int)end - (int)beg, beg <= end)) {\n    pvVar2 = xmalloc(iVar3 + 1);\n    pcVar1 = (char *)(*(code *)PTR_memcpy_000afc70)(pvVar2,beg,iVar3);\n    pcVar1[iVar3] = '\0';\n    return pcVar1;\n  }\n  pcVar1 = xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* strdupdelim(char *beg,char *end)" * (function_declarator "strdupdelim(char *beg,char *end)" identifier (parameter_list "(char *beg,char *end)" ( (parameter_declaration "char *beg" primitive_type (pointer_declarator "*beg" * identifier)) , (parameter_declaration "char *end" primitive_type (pointer_declarator "*end" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  void *pvVar2;\n  int iVar3;\n  \n  if ((beg != (char *)0x0) && (iVar3 = (int)end - (int)beg, beg <= end)) {\n    pvVar2 = xmalloc(iVar3 + 1);\n    pcVar1 = (char *)(*(code *)PTR_memcpy_000afc70)(pvVar2,beg,iVar3);\n    pcVar1[iVar3] = '\0';\n    return pcVar1;\n  }\n  pcVar1 = xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((beg != (char *)0x0) && (iVar3 = (int)end - (int)beg, beg <= end)) {\n    pvVar2 = xmalloc(iVar3 + 1);\n    pcVar1 = (char *)(*(code *)PTR_memcpy_000afc70)(pvVar2,beg,iVar3);\n    pcVar1[iVar3] = '\0';\n    return pcVar1;\n  }" if (parenthesized_expression "((beg != (char *)0x0) && (iVar3 = (int)end - (int)beg, beg <= end))" ( (binary_expression "(beg != (char *)0x0) && (iVar3 = (int)end - (int)beg, beg <= end)" (parenthesized_expression "(beg != (char *)0x0)" ( (binary_expression "beg != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar3 = (int)end - (int)beg, beg <= end)" ( (comma_expression "iVar3 = (int)end - (int)beg, beg <= end" (assignment_expression "iVar3 = (int)end - (int)beg" identifier = (binary_expression "(int)end - (int)beg" (cast_expression "(int)end" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)beg" ( (type_descriptor "int" primitive_type) ) identifier))) , (binary_expression "beg <= end" identifier <= identifier)) ))) )) (compound_statement "{\n    pvVar2 = xmalloc(iVar3 + 1);\n    pcVar1 = (char *)(*(code *)PTR_memcpy_000afc70)(pvVar2,beg,iVar3);\n    pcVar1[iVar3] = '\0';\n    return pcVar1;\n  }" { (expression_statement "pvVar2 = xmalloc(iVar3 + 1);" (assignment_expression "pvVar2 = xmalloc(iVar3 + 1)" identifier = (call_expression "xmalloc(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_memcpy_000afc70)(pvVar2,beg,iVar3);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_memcpy_000afc70)(pvVar2,beg,iVar3)" identifier = (cast_expression "(char *)(*(code *)PTR_memcpy_000afc70)(pvVar2,beg,iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memcpy_000afc70)(pvVar2,beg,iVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_000afc70)" ( (pointer_expression "*(code *)PTR_memcpy_000afc70" * (cast_expression "(code *)PTR_memcpy_000afc70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pvVar2,beg,iVar3)" ( identifier , identifier , identifier ))))) ;) (expression_statement "pcVar1[iVar3] = '\0';" (assignment_expression "pcVar1[iVar3] = '\0'" (subscript_expression "pcVar1[iVar3]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "pcVar1 = xstrdup(PTR_s_hallenge__000af46c + -0x1710);" (assignment_expression "pcVar1 = xstrdup(PTR_s_hallenge__000af46c + -0x1710)" identifier = (call_expression "xstrdup(PTR_s_hallenge__000af46c + -0x1710)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x1710)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x1710" identifier + number_literal) )))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "void strdupdelim(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }\n  xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return;\n}\n\n" (function_definition "void strdupdelim(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }\n  xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return;\n}" primitive_type (function_declarator "strdupdelim(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }\n  xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }" if (parenthesized_expression "((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2))" ( (binary_expression "(param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = param_2 - param_1, param_1 <= param_2)" ( (comma_expression "iVar3 = param_2 - param_1, param_1 <= param_2" (assignment_expression "iVar3 = param_2 - param_1" identifier = (binary_expression "param_2 - param_1" identifier - identifier)) , (binary_expression "param_1 <= param_2" identifier <= identifier)) ))) )) (compound_statement "{\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }" { (expression_statement "uVar1 = xmalloc(iVar3 + 1);" (assignment_expression "uVar1 = xmalloc(iVar3 + 1)" identifier = (call_expression "xmalloc(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);" (assignment_expression "iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3)" identifier = (call_expression "(*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_000afc70)" ( (pointer_expression "*(code *)PTR_memcpy_000afc70" * (cast_expression "(code *)PTR_memcpy_000afc70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1,param_1,iVar3)" ( identifier , identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar2 + iVar3) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + iVar3) = 0" (pointer_expression "*(undefined1 *)(iVar2 + iVar3)" * (cast_expression "(undefined1 *)(iVar2 + iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar3)" ( (binary_expression "iVar2 + iVar3" identifier + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "xstrdup(PTR_s_hallenge__000af46c + -0x1710);" (call_expression "xstrdup(PTR_s_hallenge__000af46c + -0x1710)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x1710)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x1710" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT - IDENT)) , (binary_expression IDENT <= IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void strdupdelim(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }\n  xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return;\n}" (primitive_type "void") (function_declarator "strdupdelim(uint param_1,uint param_2)" (identifier "strdupdelim") (parameter_list "(uint param_1,uint param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }\n  xstrdup(PTR_s_hallenge__000af46c + -0x1710);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2))" (( "(") (binary_expression "(param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = param_2 - param_1, param_1 <= param_2)" (( "(") (comma_expression "iVar3 = param_2 - param_1, param_1 <= param_2" (assignment_expression "iVar3 = param_2 - param_1" (identifier "iVar3") (= "=") (binary_expression "param_2 - param_1" (identifier "param_2") (- "-") (identifier "param_1"))) (, ",") (binary_expression "param_1 <= param_2" (identifier "param_1") (<= "<=") (identifier "param_2"))) () ")"))) () ")")) (compound_statement "{\n    uVar1 = xmalloc(iVar3 + 1);\n    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);\n    *(undefined1 *)(iVar2 + iVar3) = 0;\n    return;\n  }" ({ "{") (expression_statement "uVar1 = xmalloc(iVar3 + 1);" (assignment_expression "uVar1 = xmalloc(iVar3 + 1)" (identifier "uVar1") (= "=") (call_expression "xmalloc(iVar3 + 1)" (identifier "xmalloc") (argument_list "(iVar3 + 1)" (( "(") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);" (assignment_expression "iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_000afc70)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000afc70" (* "*") (cast_expression "(code *)PTR_memcpy_000afc70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000afc70"))) () ")")) (argument_list "(uVar1,param_1,iVar3)" (( "(") (identifier "uVar1") (, ",") (identifier "param_1") (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(iVar2 + iVar3) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + iVar3) = 0" (pointer_expression "*(undefined1 *)(iVar2 + iVar3)" (* "*") (cast_expression "(undefined1 *)(iVar2 + iVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar3)" (( "(") (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "xstrdup(PTR_s_hallenge__000af46c + -0x1710);" (call_expression "xstrdup(PTR_s_hallenge__000af46c + -0x1710)" (identifier "xstrdup") (argument_list "(PTR_s_hallenge__000af46c + -0x1710)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + -0x1710" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "-0x1710")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

char * function_1(char *var_1,char *var_2)

{
  char *pcVar1;
  void *pvVar2;
  int var_4;
  
  if ((var_1 != (char *)0x0) && (var_4 = (int)var_2 - (int)var_1, var_1 <= var_2)) {
    pvVar2 = var_3(var_4 + 1);
    pcVar1 = (char *)(*(type_1 *)PTR_memcpy_000afc70)(pvVar2,var_1,var_4);
    pcVar1[var_4] = '\0';
    return pcVar1;
  }
  pcVar1 = var_5(var_6 + -0x1710);
  return pcVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))) right: (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (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) (identifier) (identifier))))) (expression_statement (assignment_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: (identifier))))) right: (number_literal))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

void MASKED(uint param_1,uint param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  
  if ((param_1 != 0) && (iVar3 = param_2 - param_1, param_1 <= param_2)) {
    uVar1 = xmalloc(iVar3 + 1);
    iVar2 = (*(code *)PTR_memcpy_000afc70)(uVar1,param_1,iVar3);
    *(undefined1 *)(iVar2 + iVar3) = 0;
    return;
  }
  xstrdup(PTR_s_hallenge__000af46c + -0x1710);
  return;
}

