
char * find_host_sep(char *url)

{
  int iVar1;
  char *pcVar2;
  char *pcVar3;
  
  iVar1 = (*(code *)PTR_strstr_000a701c)(url,PTR_UINT_000a6194 + 0x2d64);
  pcVar3 = url;
  if (iVar1 != 0) {
    pcVar3 = (char *)(iVar1 + 2);
  }
  pcVar2 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x3f);
  pcVar3 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x2f);
  if (pcVar3 == (char *)0x0) {
    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);
    pcVar3 = url + iVar1;
  }
  if (pcVar2 == (char *)0x0) {
    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);
    pcVar2 = url + iVar1;
    if (pcVar3 <= url + iVar1) {
      pcVar2 = pcVar3;
    }
    return pcVar2;
  }
  if (pcVar3 <= pcVar2) {
    pcVar2 = pcVar3;
  }
  return pcVar2;
}



uint FUN_00076024(int param_1)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  
  iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);
  iVar4 = param_1;
  if (iVar1 != 0) {
    iVar4 = iVar1 + 2;
  }
  uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);
  uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);
  if (uVar3 == 0) {
    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);
    uVar3 = param_1 + iVar4;
  }
  if (uVar2 == 0) {
    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);
    uVar2 = param_1 + iVar4;
    if (uVar3 <= (uint)(param_1 + iVar4)) {
      uVar2 = uVar3;
    }
    return uVar2;
  }
  if (uVar3 <= uVar2) {
    uVar2 = uVar3;
  }
  return uVar2;
}


lui gp,0x4
addiu gp,gp,-0x7f14
addu gp,gp,t9
lw a1,-0x7f7c(gp)
addiu sp,sp,-0x28
lw t9,-0x70f4(gp)
addiu a1,a1,0x2d64
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a0,zero
sw ra,0x24(sp)
sw s1,0x1c(sp)
jalr t9
_sw s0,0x18(sp)
beq v0,zero,0x000760c4
_lw gp,0x10(sp)
addiu s0,v0,0x2
lw t9,-0x7404(gp)
li a1,0x3f
jalr t9
_or a0,s0,zero
li a1,0x2f
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7404(gp)
jalr t9
_or s0,v0,zero
lw gp,0x10(sp)
beq v0,zero,0x00076100
_or s1,v0,zero
beq s0,zero,0x000760cc
_sltu v0,s0,s1
lw ra,0x24(sp)
movz s0,s1,v0
lw s2,0x20(sp)
lw s1,0x1c(sp)
or v0,s0,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
b 0x00076068
_or s0,s2,zero
lw t9,-0x7268(gp)
jalr t9
_or a0,s2,zero
addu s0,s2,v0
lw ra,0x24(sp)
lw s2,0x20(sp)
sltu v0,s0,s1
movz s0,s1,v0
lw s1,0x1c(sp)
or v0,s0,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7268(gp)
jalr t9
_or a0,s2,zero
lw gp,0x10(sp)
b 0x0007609c
_addu s1,s2,v0
(translation_unit "uint FUN_00076024(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);\n  iVar4 = param_1;\n  if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }\n  uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);\n  uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);\n  if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }\n  if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }\n  if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }\n  return uVar2;\n}\n\n" (function_definition "uint FUN_00076024(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);\n  iVar4 = param_1;\n  if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }\n  uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);\n  uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);\n  if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }\n  if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }\n  if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00076024(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);\n  iVar4 = param_1;\n  if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }\n  uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);\n  uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);\n  if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }\n  if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }\n  if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);" (assignment_expression "iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64)" identifier = (call_expression "(*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64)" (parenthesized_expression "(*(code *)PTR_strstr_000a701c)" ( (pointer_expression "*(code *)PTR_strstr_000a701c" * (cast_expression "(code *)PTR_strstr_000a701c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_UINT_000a6194 + 0x2d64)" ( identifier , (binary_expression "PTR_UINT_000a6194 + 0x2d64" identifier + number_literal) )))) ;) (expression_statement "iVar4 = param_1;" (assignment_expression "iVar4 = param_1" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = iVar1 + 2;\n  }" { (expression_statement "iVar4 = iVar1 + 2;" (assignment_expression "iVar4 = iVar1 + 2" identifier = (binary_expression "iVar1 + 2" identifier + number_literal)) ;) })) (expression_statement "uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);" (assignment_expression "uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f)" identifier = (call_expression "(*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f)" (parenthesized_expression "(*(code *)PTR_strchr_000a6d0c)" ( (pointer_expression "*(code *)PTR_strchr_000a6d0c" * (cast_expression "(code *)PTR_strchr_000a6d0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0x3f)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);" (assignment_expression "uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f)" identifier = (call_expression "(*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f)" (parenthesized_expression "(*(code *)PTR_strchr_000a6d0c)" ( (pointer_expression "*(code *)PTR_strchr_000a6d0c" * (cast_expression "(code *)PTR_strchr_000a6d0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar3 = param_1 + iVar4;" (assignment_expression "uVar3 = param_1 + iVar4" identifier = (binary_expression "param_1 + iVar4" identifier + identifier)) ;) })) (if_statement "if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar2 = param_1 + iVar4;" (assignment_expression "uVar2 = param_1 + iVar4" identifier = (binary_expression "param_1 + iVar4" identifier + identifier)) ;) (if_statement "if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }" if (parenthesized_expression "(uVar3 <= (uint)(param_1 + iVar4))" ( (binary_expression "uVar3 <= (uint)(param_1 + iVar4)" identifier <= (call_expression "(uint)(param_1 + iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + iVar4)" ( (binary_expression "param_1 + iVar4" identifier + identifier) )))) )) (compound_statement "{\n      uVar2 = uVar3;\n    }" { (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) })) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }" if (parenthesized_expression "(uVar3 <= uVar2)" ( (binary_expression "uVar3 <= uVar2" identifier <= identifier) )) (compound_statement "{\n    uVar2 = uVar3;\n  }" { (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "char * find_host_sep(char *url)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(url,PTR_UINT_000a6194 + 0x2d64);\n  pcVar3 = url;\n  if (iVar1 != 0) {\n    pcVar3 = (char *)(iVar1 + 2);\n  }\n  pcVar2 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x3f);\n  pcVar3 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x2f);\n  if (pcVar3 == (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);\n    pcVar3 = url + iVar1;\n  }\n  if (pcVar2 == (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);\n    pcVar2 = url + iVar1;\n    if (pcVar3 <= url + iVar1) {\n      pcVar2 = pcVar3;\n    }\n    return pcVar2;\n  }\n  if (pcVar3 <= pcVar2) {\n    pcVar2 = pcVar3;\n  }\n  return pcVar2;\n}\n\n" (function_definition "char * find_host_sep(char *url)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(url,PTR_UINT_000a6194 + 0x2d64);\n  pcVar3 = url;\n  if (iVar1 != 0) {\n    pcVar3 = (char *)(iVar1 + 2);\n  }\n  pcVar2 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x3f);\n  pcVar3 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x2f);\n  if (pcVar3 == (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);\n    pcVar3 = url + iVar1;\n  }\n  if (pcVar2 == (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);\n    pcVar2 = url + iVar1;\n    if (pcVar3 <= url + iVar1) {\n      pcVar2 = pcVar3;\n    }\n    return pcVar2;\n  }\n  if (pcVar3 <= pcVar2) {\n    pcVar2 = pcVar3;\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* find_host_sep(char *url)" * (function_declarator "find_host_sep(char *url)" identifier (parameter_list "(char *url)" ( (parameter_declaration "char *url" primitive_type (pointer_declarator "*url" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(url,PTR_UINT_000a6194 + 0x2d64);\n  pcVar3 = url;\n  if (iVar1 != 0) {\n    pcVar3 = (char *)(iVar1 + 2);\n  }\n  pcVar2 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x3f);\n  pcVar3 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x2f);\n  if (pcVar3 == (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);\n    pcVar3 = url + iVar1;\n  }\n  if (pcVar2 == (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);\n    pcVar2 = url + iVar1;\n    if (pcVar3 <= url + iVar1) {\n      pcVar2 = pcVar3;\n    }\n    return pcVar2;\n  }\n  if (pcVar3 <= pcVar2) {\n    pcVar2 = pcVar3;\n  }\n  return pcVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_strstr_000a701c)(url,PTR_UINT_000a6194 + 0x2d64);" (assignment_expression "iVar1 = (*(code *)PTR_strstr_000a701c)(url,PTR_UINT_000a6194 + 0x2d64)" identifier = (call_expression "(*(code *)PTR_strstr_000a701c)(url,PTR_UINT_000a6194 + 0x2d64)" (parenthesized_expression "(*(code *)PTR_strstr_000a701c)" ( (pointer_expression "*(code *)PTR_strstr_000a701c" * (cast_expression "(code *)PTR_strstr_000a701c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(url,PTR_UINT_000a6194 + 0x2d64)" ( identifier , (binary_expression "PTR_UINT_000a6194 + 0x2d64" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = url;" (assignment_expression "pcVar3 = url" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    pcVar3 = (char *)(iVar1 + 2);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar3 = (char *)(iVar1 + 2);\n  }" { (expression_statement "pcVar3 = (char *)(iVar1 + 2);" (assignment_expression "pcVar3 = (char *)(iVar1 + 2)" identifier = (cast_expression "(char *)(iVar1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 2)" ( (binary_expression "iVar1 + 2" identifier + number_literal) )))) ;) })) (expression_statement "pcVar2 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x3f);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x3f)" identifier = (cast_expression "(char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x3f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x3f)" (parenthesized_expression "(*(code *)PTR_strchr_000a6d0c)" ( (pointer_expression "*(code *)PTR_strchr_000a6d0c" * (cast_expression "(code *)PTR_strchr_000a6d0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3,0x3f)" ( identifier , number_literal ))))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x2f);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x2f)" identifier = (cast_expression "(char *)(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x2f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000a6d0c)(pcVar3,0x2f)" (parenthesized_expression "(*(code *)PTR_strchr_000a6d0c)" ( (pointer_expression "*(code *)PTR_strchr_000a6d0c" * (cast_expression "(code *)PTR_strchr_000a6d0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3,0x2f)" ( identifier , number_literal ))))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);\n    pcVar3 = url + iVar1;\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);\n    pcVar3 = url + iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000a6ea8)(url)" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)(url)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(url)" ( identifier )))) ;) (expression_statement "pcVar3 = url + iVar1;" (assignment_expression "pcVar3 = url + iVar1" identifier = (binary_expression "url + iVar1" identifier + identifier)) ;) })) (if_statement "if (pcVar2 == (char *)0x0) {\n    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);\n    pcVar2 = url + iVar1;\n    if (pcVar3 <= url + iVar1) {\n      pcVar2 = pcVar3;\n    }\n    return pcVar2;\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);\n    pcVar2 = url + iVar1;\n    if (pcVar3 <= url + iVar1) {\n      pcVar2 = pcVar3;\n    }\n    return pcVar2;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_000a6ea8)(url);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000a6ea8)(url)" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)(url)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(url)" ( identifier )))) ;) (expression_statement "pcVar2 = url + iVar1;" (assignment_expression "pcVar2 = url + iVar1" identifier = (binary_expression "url + iVar1" identifier + identifier)) ;) (if_statement "if (pcVar3 <= url + iVar1) {\n      pcVar2 = pcVar3;\n    }" if (parenthesized_expression "(pcVar3 <= url + iVar1)" ( (binary_expression "pcVar3 <= url + iVar1" identifier <= (binary_expression "url + iVar1" identifier + identifier)) )) (compound_statement "{\n      pcVar2 = pcVar3;\n    }" { (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" identifier = identifier) ;) })) (return_statement "return pcVar2;" return identifier ;) })) (if_statement "if (pcVar3 <= pcVar2) {\n    pcVar2 = pcVar3;\n  }" if (parenthesized_expression "(pcVar3 <= pcVar2)" ( (binary_expression "pcVar3 <= pcVar2" identifier <= identifier) )) (compound_statement "{\n    pcVar2 = pcVar3;\n  }" { (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" identifier = identifier) ;) })) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "uint FUN_00076024(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);\n  iVar4 = param_1;\n  if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }\n  uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);\n  uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);\n  if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }\n  if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }\n  if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }\n  return uVar2;\n}\n\n" (function_definition "uint FUN_00076024(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);\n  iVar4 = param_1;\n  if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }\n  uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);\n  uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);\n  if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }\n  if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }\n  if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00076024(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);\n  iVar4 = param_1;\n  if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }\n  uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);\n  uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);\n  if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }\n  if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }\n  if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);" (assignment_expression "iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64)" identifier = (call_expression "(*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64)" (parenthesized_expression "(*(code *)PTR_strstr_000a701c)" ( (pointer_expression "*(code *)PTR_strstr_000a701c" * (cast_expression "(code *)PTR_strstr_000a701c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_UINT_000a6194 + 0x2d64)" ( identifier , (binary_expression "PTR_UINT_000a6194 + 0x2d64" identifier + number_literal) )))) ;) (expression_statement "iVar4 = param_1;" (assignment_expression "iVar4 = param_1" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = iVar1 + 2;\n  }" { (expression_statement "iVar4 = iVar1 + 2;" (assignment_expression "iVar4 = iVar1 + 2" identifier = (binary_expression "iVar1 + 2" identifier + number_literal)) ;) })) (expression_statement "uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);" (assignment_expression "uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f)" identifier = (call_expression "(*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f)" (parenthesized_expression "(*(code *)PTR_strchr_000a6d0c)" ( (pointer_expression "*(code *)PTR_strchr_000a6d0c" * (cast_expression "(code *)PTR_strchr_000a6d0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0x3f)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);" (assignment_expression "uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f)" identifier = (call_expression "(*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f)" (parenthesized_expression "(*(code *)PTR_strchr_000a6d0c)" ( (pointer_expression "*(code *)PTR_strchr_000a6d0c" * (cast_expression "(code *)PTR_strchr_000a6d0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar3 = param_1 + iVar4;" (assignment_expression "uVar3 = param_1 + iVar4" identifier = (binary_expression "param_1 + iVar4" identifier + identifier)) ;) })) (if_statement "if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar2 = param_1 + iVar4;" (assignment_expression "uVar2 = param_1 + iVar4" identifier = (binary_expression "param_1 + iVar4" identifier + identifier)) ;) (if_statement "if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }" if (parenthesized_expression "(uVar3 <= (uint)(param_1 + iVar4))" ( (binary_expression "uVar3 <= (uint)(param_1 + iVar4)" identifier <= (call_expression "(uint)(param_1 + iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + iVar4)" ( (binary_expression "param_1 + iVar4" identifier + identifier) )))) )) (compound_statement "{\n      uVar2 = uVar3;\n    }" { (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) })) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }" if (parenthesized_expression "(uVar3 <= uVar2)" ( (binary_expression "uVar3 <= uVar2" identifier <= identifier) )) (compound_statement "{\n    uVar2 = uVar3;\n  }" { (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_00076024(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);\n  iVar4 = param_1;\n  if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }\n  uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);\n  uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);\n  if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }\n  if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }\n  if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }\n  return uVar2;\n}" (type_identifier "uint") (function_declarator "FUN_00076024(int param_1)" (identifier "FUN_00076024") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);\n  iVar4 = param_1;\n  if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }\n  uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);\n  uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);\n  if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }\n  if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }\n  if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);" (assignment_expression "iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64)" (parenthesized_expression "(*(code *)PTR_strstr_000a701c)" (( "(") (pointer_expression "*(code *)PTR_strstr_000a701c" (* "*") (cast_expression "(code *)PTR_strstr_000a701c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strstr_000a701c"))) () ")")) (argument_list "(param_1,PTR_UINT_000a6194 + 0x2d64)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_UINT_000a6194 + 0x2d64" (identifier "PTR_UINT_000a6194") (+ "+") (number_literal "0x2d64")) () ")")))) (; ";")) (expression_statement "iVar4 = param_1;" (assignment_expression "iVar4 = param_1" (identifier "iVar4") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar4 = iVar1 + 2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = iVar1 + 2;\n  }" ({ "{") (expression_statement "iVar4 = iVar1 + 2;" (assignment_expression "iVar4 = iVar1 + 2" (identifier "iVar4") (= "=") (binary_expression "iVar1 + 2" (identifier "iVar1") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);" (assignment_expression "uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f)" (parenthesized_expression "(*(code *)PTR_strchr_000a6d0c)" (( "(") (pointer_expression "*(code *)PTR_strchr_000a6d0c" (* "*") (cast_expression "(code *)PTR_strchr_000a6d0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_000a6d0c"))) () ")")) (argument_list "(iVar4,0x3f)" (( "(") (identifier "iVar4") (, ",") (number_literal "0x3f") () ")")))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);" (assignment_expression "uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f)" (parenthesized_expression "(*(code *)PTR_strchr_000a6d0c)" (( "(") (pointer_expression "*(code *)PTR_strchr_000a6d0c" (* "*") (cast_expression "(code *)PTR_strchr_000a6d0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_000a6d0c"))) () ")")) (argument_list "(iVar4,0x2f)" (( "(") (identifier "iVar4") (, ",") (number_literal "0x2f") () ")")))) (; ";")) (if_statement "if (uVar3 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar3 = param_1 + iVar4;\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_000a6ea8)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" (( "(") (pointer_expression "*(code *)PTR_strlen_000a6ea8" (* "*") (cast_expression "(code *)PTR_strlen_000a6ea8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000a6ea8"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar3 = param_1 + iVar4;" (assignment_expression "uVar3 = param_1 + iVar4" (identifier "uVar3") (= "=") (binary_expression "param_1 + iVar4" (identifier "param_1") (+ "+") (identifier "iVar4"))) (; ";")) (} "}"))) (if_statement "if (uVar2 == 0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);\n    uVar2 = param_1 + iVar4;\n    if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }\n    return uVar2;\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_000a6ea8)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" (( "(") (pointer_expression "*(code *)PTR_strlen_000a6ea8" (* "*") (cast_expression "(code *)PTR_strlen_000a6ea8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000a6ea8"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar2 = param_1 + iVar4;" (assignment_expression "uVar2 = param_1 + iVar4" (identifier "uVar2") (= "=") (binary_expression "param_1 + iVar4" (identifier "param_1") (+ "+") (identifier "iVar4"))) (; ";")) (if_statement "if (uVar3 <= (uint)(param_1 + iVar4)) {\n      uVar2 = uVar3;\n    }" (if "if") (parenthesized_expression "(uVar3 <= (uint)(param_1 + iVar4))" (( "(") (binary_expression "uVar3 <= (uint)(param_1 + iVar4)" (identifier "uVar3") (<= "<=") (call_expression "(uint)(param_1 + iVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 + iVar4)" (( "(") (binary_expression "param_1 + iVar4" (identifier "param_1") (+ "+") (identifier "iVar4")) () ")")))) () ")")) (compound_statement "{\n      uVar2 = uVar3;\n    }" ({ "{") (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" (identifier "uVar2") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (if_statement "if (uVar3 <= uVar2) {\n    uVar2 = uVar3;\n  }" (if "if") (parenthesized_expression "(uVar3 <= uVar2)" (( "(") (binary_expression "uVar3 <= uVar2" (identifier "uVar3") (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n    uVar2 = uVar3;\n  }" ({ "{") (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" (identifier "uVar2") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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) (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) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement (identifier)))))

uint MASKED(int param_1)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  
  iVar1 = (*(code *)PTR_strstr_000a701c)(param_1,PTR_UINT_000a6194 + 0x2d64);
  iVar4 = param_1;
  if (iVar1 != 0) {
    iVar4 = iVar1 + 2;
  }
  uVar2 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x3f);
  uVar3 = (*(code *)PTR_strchr_000a6d0c)(iVar4,0x2f);
  if (uVar3 == 0) {
    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);
    uVar3 = param_1 + iVar4;
  }
  if (uVar2 == 0) {
    iVar4 = (*(code *)PTR_strlen_000a6ea8)(param_1);
    uVar2 = param_1 + iVar4;
    if (uVar3 <= (uint)(param_1 + iVar4)) {
      uVar2 = uVar3;
    }
    return uVar2;
  }
  if (uVar3 <= uVar2) {
    uVar2 = uVar3;
  }
  return uVar2;
}

