
char * xmalloc_follow_symlinks(char *path)

{
  char *pcVar1;
  int iVar2;
  char *path_00;
  char *pcVar3;
  int iVar4;
  size_t size;
  
  iVar4 = 0x15;
  pcVar1 = xstrdup(path);
LAB_0001b63c:
  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);
  size = iVar2 + 1;
  path_00 = pcVar1;
  do {
    pcVar1 = xmalloc_readlink(path_00);
    if (pcVar1 == (char *)0x0) {
      if (**(int **)PTR_bb_errno_0012a214 == 0x16) {
        return path_00;
      }
      if (**(int **)PTR_bb_errno_0012a214 == 2) {
        return path_00;
      }
LAB_0001b684:
      (*(code *)PTR_free_0012b168)(path_00);
      return (char *)0x0;
    }
    iVar4 = iVar4 + -1;
    if (iVar4 == 0) {
      (*(code *)PTR_free_0012b168)(pcVar1);
      goto LAB_0001b684;
    }
    if (*pcVar1 == '/') break;
    iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);
    size = size + iVar2;
    path_00 = (char *)xrealloc(path_00,size);
    pcVar3 = bb_get_last_path_component_strip(path_00);
    (*(code *)PTR_strcpy_0012affc)(pcVar3,pcVar1);
    (*(code *)PTR_free_0012b168)(pcVar1);
  } while( true );
  (*(code *)PTR_free_0012b168)(path_00);
  goto LAB_0001b63c;
}



char * FUN_0001b5e0(void)

{
  char *pcVar1;
  int iVar2;
  int iVar3;
  char *pcVar4;
  undefined4 uVar5;
  int iVar6;
  
  iVar6 = 0x15;
  pcVar1 = (char *)FUN_0001a2b4();
LAB_0001b63c:
  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);
  iVar2 = iVar2 + 1;
  pcVar4 = pcVar1;
  do {
    pcVar1 = (char *)FUN_0001b500(pcVar4);
    if (pcVar1 == (char *)0x0) {
      if (**(int **)PTR_DAT_0012a214 == 0x16) {
        return pcVar4;
      }
      if (**(int **)PTR_DAT_0012a214 == 2) {
        return pcVar4;
      }
LAB_0001b684:
      (*(code *)PTR_free_0012b168)(pcVar4);
      return (char *)0x0;
    }
    iVar6 = iVar6 + -1;
    if (iVar6 == 0) {
      (*(code *)PTR_free_0012b168)(pcVar1);
      goto LAB_0001b684;
    }
    if (*pcVar1 == '/') break;
    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);
    iVar2 = iVar2 + iVar3;
    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);
    uVar5 = FUN_0001890c(pcVar4);
    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);
    (*(code *)PTR_free_0012b168)(pcVar1);
  } while( true );
  (*(code *)PTR_free_0012b168)(pcVar4);
  goto LAB_0001b63c;
}


lui gp,0x11
addiu gp,gp,0x6b70
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x7ea8(gp)
sw gp,0x10(sp)
sw s7,0x38(sp)
sw s6,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
li s4,0x2f
sw s2,0x24(sp)
li s2,0x15
sw s0,0x1c(sp)
sw ra,0x3c(sp)
sw s3,0x28(sp)
lw s7,-0x7f48(gp)
lw s6,-0x7eac(gp)
bal 0x0001a2b4
_sw s1,0x20(sp)
lw gp,0x10(sp)
or s0,v0,zero
lw s5,-0x7ea4(gp)
lw t9,-0x7214(gp)
jalr t9
_or a0,s0,zero
addiu s3,v0,0x1
or t9,s7,zero
bal 0x0001b500
_or a0,s0,zero
lw gp,0x10(sp)
bne v0,zero,0x0001b6c4
_or s1,v0,zero
lw v0,-0x7f3c(gp)
li v1,0x16
lw v0,0x0(v0)
lw v0,0x0(v0)
beq v0,v1,0x0001b694
_li v1,0x2
beq v0,v1,0x0001b698
_lw ra,0x3c(sp)
lw t9,-0x6fe8(gp)
or a0,s0,zero
jalr t9
_or s0,zero,zero
lw ra,0x3c(sp)
or v0,s0,zero
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
addiu s2,s2,-0x1
bne s2,zero,0x0001b6e0
_lw t9,-0x6fe8(gp)
jalr t9
_or a0,v0,zero
b 0x0001b684
_lw gp,0x10(sp)
lbu v0,0x0(v0)
beq v0,s4,0x0001b744
_lw t9,-0x7214(gp)
jalr t9
_or a0,s1,zero
or a0,s0,zero
addu s3,s3,v0
or t9,s6,zero
bal 0x0001a210
_or a1,s3,zero
or t9,s5,zero
or a0,v0,zero
bal 0x0001890c
_or s0,v0,zero
lw gp,0x10(sp)
or a1,s1,zero
lw t9,-0x7154(gp)
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
lw t9,-0x6fe8(gp)
jalr t9
_or a0,s1,zero
b 0x0001b650
_or t9,s7,zero
lw t9,-0x6fe8(gp)
or a0,s0,zero
jalr t9
_or s0,s1,zero
b 0x0001b63c
_lw gp,0x10(sp)
(translation_unit "char * FUN_0001b5e0(void)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar6 = 0x15;\n  pcVar1 = (char *)FUN_0001a2b4();\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  iVar2 = iVar2 + 1;\n  pcVar4 = pcVar1;\n  do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(pcVar4);\n  goto LAB_0001b63c;\n}\n\n" (function_definition "char * FUN_0001b5e0(void)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar6 = 0x15;\n  pcVar1 = (char *)FUN_0001a2b4();\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  iVar2 = iVar2 + 1;\n  pcVar4 = pcVar1;\n  do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(pcVar4);\n  goto LAB_0001b63c;\n}" primitive_type (pointer_declarator "* FUN_0001b5e0(void)" * (function_declarator "FUN_0001b5e0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar6 = 0x15;\n  pcVar1 = (char *)FUN_0001a2b4();\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  iVar2 = iVar2 + 1;\n  pcVar4 = pcVar1;\n  do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(pcVar4);\n  goto LAB_0001b63c;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar6 = 0x15;" (assignment_expression "iVar6 = 0x15" identifier = number_literal) ;) (expression_statement "pcVar1 = (char *)FUN_0001a2b4();" (assignment_expression "pcVar1 = (char *)FUN_0001a2b4()" identifier = (cast_expression "(char *)FUN_0001a2b4()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a2b4()" identifier (argument_list "()" ( ))))) ;) (labeled_statement "LAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" statement_identifier : (expression_statement "iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier )))) ;)) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = pcVar1;" (assignment_expression "pcVar4 = pcVar1" identifier = identifier) ;) (do_statement "do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );" do (compound_statement "{\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  }" { (expression_statement "pcVar1 = (char *)FUN_0001b500(pcVar4);" (assignment_expression "pcVar1 = (char *)FUN_0001b500(pcVar4)" identifier = (cast_expression "(char *)FUN_0001b500(pcVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001b500(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }" { (if_statement "if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }" if (parenthesized_expression "(**(int **)PTR_DAT_0012a214 == 0x16)" ( (binary_expression "**(int **)PTR_DAT_0012a214 == 0x16" (pointer_expression "**(int **)PTR_DAT_0012a214" * (pointer_expression "*(int **)PTR_DAT_0012a214" * (cast_expression "(int **)PTR_DAT_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) (compound_statement "{\n        return pcVar4;\n      }" { (return_statement "return pcVar4;" return identifier ;) })) (if_statement "if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }" if (parenthesized_expression "(**(int **)PTR_DAT_0012a214 == 2)" ( (binary_expression "**(int **)PTR_DAT_0012a214 == 2" (pointer_expression "**(int **)PTR_DAT_0012a214" * (pointer_expression "*(int **)PTR_DAT_0012a214" * (cast_expression "(int **)PTR_DAT_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) (compound_statement "{\n        return pcVar4;\n      }" { (return_statement "return pcVar4;" return identifier ;) })) (labeled_statement "LAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);" statement_identifier : (expression_statement "(*(code *)PTR_free_0012b168)(pcVar4);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar4)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;)) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (if_statement "if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }" { (expression_statement "(*(code *)PTR_free_0012b168)(pcVar1);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) (goto_statement "goto LAB_0001b684;" goto statement_identifier ;) })) (if_statement "if (*pcVar1 == '/') break;" if (parenthesized_expression "(*pcVar1 == '/')" ( (binary_expression "*pcVar1 == '/'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'/'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (expression_statement "pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);" (assignment_expression "pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2)" identifier = (cast_expression "(char *)FUN_0001a210(pcVar4,iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a210(pcVar4,iVar2)" identifier (argument_list "(pcVar4,iVar2)" ( identifier , identifier ))))) ;) (expression_statement "uVar5 = FUN_0001890c(pcVar4);" (assignment_expression "uVar5 = FUN_0001890c(pcVar4)" identifier = (call_expression "FUN_0001890c(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);" (call_expression "(*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1)" (parenthesized_expression "(*(code *)PTR_strcpy_0012affc)" ( (pointer_expression "*(code *)PTR_strcpy_0012affc" * (cast_expression "(code *)PTR_strcpy_0012affc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,pcVar1)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_free_0012b168)(pcVar1);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (expression_statement "(*(code *)PTR_free_0012b168)(pcVar4);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar4)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (goto_statement "goto LAB_0001b63c;" goto statement_identifier ;) })))
(translation_unit "char * xmalloc_follow_symlinks(char *path)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *path_00;\n  char *pcVar3;\n  int iVar4;\n  size_t size;\n  \n  iVar4 = 0x15;\n  pcVar1 = xstrdup(path);\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  size = iVar2 + 1;\n  path_00 = pcVar1;\n  do {\n    pcVar1 = xmalloc_readlink(path_00);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_bb_errno_0012a214 == 0x16) {\n        return path_00;\n      }\n      if (**(int **)PTR_bb_errno_0012a214 == 2) {\n        return path_00;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(path_00);\n      return (char *)0x0;\n    }\n    iVar4 = iVar4 + -1;\n    if (iVar4 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    size = size + iVar2;\n    path_00 = (char *)xrealloc(path_00,size);\n    pcVar3 = bb_get_last_path_component_strip(path_00);\n    (*(code *)PTR_strcpy_0012affc)(pcVar3,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(path_00);\n  goto LAB_0001b63c;\n}\n\n" (function_definition "char * xmalloc_follow_symlinks(char *path)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *path_00;\n  char *pcVar3;\n  int iVar4;\n  size_t size;\n  \n  iVar4 = 0x15;\n  pcVar1 = xstrdup(path);\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  size = iVar2 + 1;\n  path_00 = pcVar1;\n  do {\n    pcVar1 = xmalloc_readlink(path_00);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_bb_errno_0012a214 == 0x16) {\n        return path_00;\n      }\n      if (**(int **)PTR_bb_errno_0012a214 == 2) {\n        return path_00;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(path_00);\n      return (char *)0x0;\n    }\n    iVar4 = iVar4 + -1;\n    if (iVar4 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    size = size + iVar2;\n    path_00 = (char *)xrealloc(path_00,size);\n    pcVar3 = bb_get_last_path_component_strip(path_00);\n    (*(code *)PTR_strcpy_0012affc)(pcVar3,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(path_00);\n  goto LAB_0001b63c;\n}" primitive_type (pointer_declarator "* xmalloc_follow_symlinks(char *path)" * (function_declarator "xmalloc_follow_symlinks(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  char *path_00;\n  char *pcVar3;\n  int iVar4;\n  size_t size;\n  \n  iVar4 = 0x15;\n  pcVar1 = xstrdup(path);\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  size = iVar2 + 1;\n  path_00 = pcVar1;\n  do {\n    pcVar1 = xmalloc_readlink(path_00);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_bb_errno_0012a214 == 0x16) {\n        return path_00;\n      }\n      if (**(int **)PTR_bb_errno_0012a214 == 2) {\n        return path_00;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(path_00);\n      return (char *)0x0;\n    }\n    iVar4 = iVar4 + -1;\n    if (iVar4 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    size = size + iVar2;\n    path_00 = (char *)xrealloc(path_00,size);\n    pcVar3 = bb_get_last_path_component_strip(path_00);\n    (*(code *)PTR_strcpy_0012affc)(pcVar3,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(path_00);\n  goto LAB_0001b63c;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *path_00;" primitive_type (pointer_declarator "*path_00" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "size_t size;" primitive_type identifier ;) (expression_statement "iVar4 = 0x15;" (assignment_expression "iVar4 = 0x15" identifier = number_literal) ;) (expression_statement "pcVar1 = xstrdup(path);" (assignment_expression "pcVar1 = xstrdup(path)" identifier = (call_expression "xstrdup(path)" identifier (argument_list "(path)" ( identifier )))) ;) (labeled_statement "LAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" statement_identifier : (expression_statement "iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier )))) ;)) (expression_statement "size = iVar2 + 1;" (assignment_expression "size = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "path_00 = pcVar1;" (assignment_expression "path_00 = pcVar1" identifier = identifier) ;) (do_statement "do {\n    pcVar1 = xmalloc_readlink(path_00);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_bb_errno_0012a214 == 0x16) {\n        return path_00;\n      }\n      if (**(int **)PTR_bb_errno_0012a214 == 2) {\n        return path_00;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(path_00);\n      return (char *)0x0;\n    }\n    iVar4 = iVar4 + -1;\n    if (iVar4 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    size = size + iVar2;\n    path_00 = (char *)xrealloc(path_00,size);\n    pcVar3 = bb_get_last_path_component_strip(path_00);\n    (*(code *)PTR_strcpy_0012affc)(pcVar3,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );" do (compound_statement "{\n    pcVar1 = xmalloc_readlink(path_00);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_bb_errno_0012a214 == 0x16) {\n        return path_00;\n      }\n      if (**(int **)PTR_bb_errno_0012a214 == 2) {\n        return path_00;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(path_00);\n      return (char *)0x0;\n    }\n    iVar4 = iVar4 + -1;\n    if (iVar4 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    size = size + iVar2;\n    path_00 = (char *)xrealloc(path_00,size);\n    pcVar3 = bb_get_last_path_component_strip(path_00);\n    (*(code *)PTR_strcpy_0012affc)(pcVar3,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  }" { (expression_statement "pcVar1 = xmalloc_readlink(path_00);" (assignment_expression "pcVar1 = xmalloc_readlink(path_00)" identifier = (call_expression "xmalloc_readlink(path_00)" identifier (argument_list "(path_00)" ( identifier )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_bb_errno_0012a214 == 0x16) {\n        return path_00;\n      }\n      if (**(int **)PTR_bb_errno_0012a214 == 2) {\n        return path_00;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(path_00);\n      return (char *)0x0;\n    }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (**(int **)PTR_bb_errno_0012a214 == 0x16) {\n        return path_00;\n      }\n      if (**(int **)PTR_bb_errno_0012a214 == 2) {\n        return path_00;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(path_00);\n      return (char *)0x0;\n    }" { (if_statement "if (**(int **)PTR_bb_errno_0012a214 == 0x16) {\n        return path_00;\n      }" if (parenthesized_expression "(**(int **)PTR_bb_errno_0012a214 == 0x16)" ( (binary_expression "**(int **)PTR_bb_errno_0012a214 == 0x16" (pointer_expression "**(int **)PTR_bb_errno_0012a214" * (pointer_expression "*(int **)PTR_bb_errno_0012a214" * (cast_expression "(int **)PTR_bb_errno_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) (compound_statement "{\n        return path_00;\n      }" { (return_statement "return path_00;" return identifier ;) })) (if_statement "if (**(int **)PTR_bb_errno_0012a214 == 2) {\n        return path_00;\n      }" if (parenthesized_expression "(**(int **)PTR_bb_errno_0012a214 == 2)" ( (binary_expression "**(int **)PTR_bb_errno_0012a214 == 2" (pointer_expression "**(int **)PTR_bb_errno_0012a214" * (pointer_expression "*(int **)PTR_bb_errno_0012a214" * (cast_expression "(int **)PTR_bb_errno_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) (compound_statement "{\n        return path_00;\n      }" { (return_statement "return path_00;" return identifier ;) })) (labeled_statement "LAB_0001b684:\n      (*(code *)PTR_free_0012b168)(path_00);" statement_identifier : (expression_statement "(*(code *)PTR_free_0012b168)(path_00);" (call_expression "(*(code *)PTR_free_0012b168)(path_00)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path_00)" ( identifier ))) ;)) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar4 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }" { (expression_statement "(*(code *)PTR_free_0012b168)(pcVar1);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) (goto_statement "goto LAB_0001b684;" goto statement_identifier ;) })) (if_statement "if (*pcVar1 == '/') break;" if (parenthesized_expression "(*pcVar1 == '/')" ( (binary_expression "*pcVar1 == '/'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'/'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "size = size + iVar2;" (assignment_expression "size = size + iVar2" identifier = (binary_expression "size + iVar2" identifier + identifier)) ;) (expression_statement "path_00 = (char *)xrealloc(path_00,size);" (assignment_expression "path_00 = (char *)xrealloc(path_00,size)" identifier = (cast_expression "(char *)xrealloc(path_00,size)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(path_00,size)" identifier (argument_list "(path_00,size)" ( identifier , identifier ))))) ;) (expression_statement "pcVar3 = bb_get_last_path_component_strip(path_00);" (assignment_expression "pcVar3 = bb_get_last_path_component_strip(path_00)" identifier = (call_expression "bb_get_last_path_component_strip(path_00)" identifier (argument_list "(path_00)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_strcpy_0012affc)(pcVar3,pcVar1);" (call_expression "(*(code *)PTR_strcpy_0012affc)(pcVar3,pcVar1)" (parenthesized_expression "(*(code *)PTR_strcpy_0012affc)" ( (pointer_expression "*(code *)PTR_strcpy_0012affc" * (cast_expression "(code *)PTR_strcpy_0012affc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3,pcVar1)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_free_0012b168)(pcVar1);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (expression_statement "(*(code *)PTR_free_0012b168)(path_00);" (call_expression "(*(code *)PTR_free_0012b168)(path_00)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path_00)" ( identifier ))) ;) (goto_statement "goto LAB_0001b63c;" goto statement_identifier ;) })))
(translation_unit "char * FUN_0001b5e0(void)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar6 = 0x15;\n  pcVar1 = (char *)FUN_0001a2b4();\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  iVar2 = iVar2 + 1;\n  pcVar4 = pcVar1;\n  do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(pcVar4);\n  goto LAB_0001b63c;\n}\n\n" (function_definition "char * FUN_0001b5e0(void)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar6 = 0x15;\n  pcVar1 = (char *)FUN_0001a2b4();\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  iVar2 = iVar2 + 1;\n  pcVar4 = pcVar1;\n  do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(pcVar4);\n  goto LAB_0001b63c;\n}" primitive_type (pointer_declarator "* FUN_0001b5e0(void)" * (function_declarator "FUN_0001b5e0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar6 = 0x15;\n  pcVar1 = (char *)FUN_0001a2b4();\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  iVar2 = iVar2 + 1;\n  pcVar4 = pcVar1;\n  do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(pcVar4);\n  goto LAB_0001b63c;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar6 = 0x15;" (assignment_expression "iVar6 = 0x15" identifier = number_literal) ;) (expression_statement "pcVar1 = (char *)FUN_0001a2b4();" (assignment_expression "pcVar1 = (char *)FUN_0001a2b4()" identifier = (cast_expression "(char *)FUN_0001a2b4()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a2b4()" identifier (argument_list "()" ( ))))) ;) (labeled_statement "LAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" statement_identifier : (expression_statement "iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier )))) ;)) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = pcVar1;" (assignment_expression "pcVar4 = pcVar1" identifier = identifier) ;) (do_statement "do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );" do (compound_statement "{\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  }" { (expression_statement "pcVar1 = (char *)FUN_0001b500(pcVar4);" (assignment_expression "pcVar1 = (char *)FUN_0001b500(pcVar4)" identifier = (cast_expression "(char *)FUN_0001b500(pcVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001b500(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }" { (if_statement "if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }" if (parenthesized_expression "(**(int **)PTR_DAT_0012a214 == 0x16)" ( (binary_expression "**(int **)PTR_DAT_0012a214 == 0x16" (pointer_expression "**(int **)PTR_DAT_0012a214" * (pointer_expression "*(int **)PTR_DAT_0012a214" * (cast_expression "(int **)PTR_DAT_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) (compound_statement "{\n        return pcVar4;\n      }" { (return_statement "return pcVar4;" return identifier ;) })) (if_statement "if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }" if (parenthesized_expression "(**(int **)PTR_DAT_0012a214 == 2)" ( (binary_expression "**(int **)PTR_DAT_0012a214 == 2" (pointer_expression "**(int **)PTR_DAT_0012a214" * (pointer_expression "*(int **)PTR_DAT_0012a214" * (cast_expression "(int **)PTR_DAT_0012a214" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) == number_literal) )) (compound_statement "{\n        return pcVar4;\n      }" { (return_statement "return pcVar4;" return identifier ;) })) (labeled_statement "LAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);" statement_identifier : (expression_statement "(*(code *)PTR_free_0012b168)(pcVar4);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar4)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;)) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (if_statement "if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }" { (expression_statement "(*(code *)PTR_free_0012b168)(pcVar1);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) (goto_statement "goto LAB_0001b684;" goto statement_identifier ;) })) (if_statement "if (*pcVar1 == '/') break;" if (parenthesized_expression "(*pcVar1 == '/')" ( (binary_expression "*pcVar1 == '/'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'/'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1)" identifier = (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" ( (pointer_expression "*(code *)PTR_strlen_0012af3c" * (cast_expression "(code *)PTR_strlen_0012af3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (expression_statement "pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);" (assignment_expression "pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2)" identifier = (cast_expression "(char *)FUN_0001a210(pcVar4,iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a210(pcVar4,iVar2)" identifier (argument_list "(pcVar4,iVar2)" ( identifier , identifier ))))) ;) (expression_statement "uVar5 = FUN_0001890c(pcVar4);" (assignment_expression "uVar5 = FUN_0001890c(pcVar4)" identifier = (call_expression "FUN_0001890c(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);" (call_expression "(*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1)" (parenthesized_expression "(*(code *)PTR_strcpy_0012affc)" ( (pointer_expression "*(code *)PTR_strcpy_0012affc" * (cast_expression "(code *)PTR_strcpy_0012affc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,pcVar1)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_free_0012b168)(pcVar1);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (expression_statement "(*(code *)PTR_free_0012b168)(pcVar4);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar4)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (goto_statement "goto LAB_0001b63c;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (labeled_statement statement_identifier : (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 + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (break_statement break ;)) (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)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }) while (parenthesized_expression ( BOOL )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "char * FUN_0001b5e0(void)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar6 = 0x15;\n  pcVar1 = (char *)FUN_0001a2b4();\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  iVar2 = iVar2 + 1;\n  pcVar4 = pcVar1;\n  do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(pcVar4);\n  goto LAB_0001b63c;\n}" (primitive_type "char") (pointer_declarator "* FUN_0001b5e0(void)" (* "*") (function_declarator "FUN_0001b5e0(void)" (identifier "FUN_0001b5e0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  iVar6 = 0x15;\n  pcVar1 = (char *)FUN_0001a2b4();\nLAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n  iVar2 = iVar2 + 1;\n  pcVar4 = pcVar1;\n  do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );\n  (*(code *)PTR_free_0012b168)(pcVar4);\n  goto LAB_0001b63c;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar6 = 0x15;" (assignment_expression "iVar6 = 0x15" (identifier "iVar6") (= "=") (number_literal "0x15")) (; ";")) (expression_statement "pcVar1 = (char *)FUN_0001a2b4();" (assignment_expression "pcVar1 = (char *)FUN_0001a2b4()" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_0001a2b4()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001a2b4()" (identifier "FUN_0001a2b4") (argument_list "()" (( "(") () ")"))))) (; ";")) (labeled_statement "LAB_0001b63c:\n  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" (statement_identifier "LAB_0001b63c") (: ":") (expression_statement "iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0012af3c" (* "*") (cast_expression "(code *)PTR_strlen_0012af3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0012af3c"))) () ")")) (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";"))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar4 = pcVar1;" (assignment_expression "pcVar4 = pcVar1" (identifier "pcVar4") (= "=") (identifier "pcVar1")) (; ";")) (do_statement "do {\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  } while( true );" (do "do") (compound_statement "{\n    pcVar1 = (char *)FUN_0001b500(pcVar4);\n    if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }\n    iVar6 = iVar6 + -1;\n    if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }\n    if (*pcVar1 == '/') break;\n    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);\n    iVar2 = iVar2 + iVar3;\n    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);\n    uVar5 = FUN_0001890c(pcVar4);\n    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);\n    (*(code *)PTR_free_0012b168)(pcVar1);\n  }" ({ "{") (expression_statement "pcVar1 = (char *)FUN_0001b500(pcVar4);" (assignment_expression "pcVar1 = (char *)FUN_0001b500(pcVar4)" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_0001b500(pcVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001b500(pcVar4)" (identifier "FUN_0001b500") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")"))))) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) {\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }\n      if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }\nLAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);\n      return (char *)0x0;\n    }" ({ "{") (if_statement "if (**(int **)PTR_DAT_0012a214 == 0x16) {\n        return pcVar4;\n      }" (if "if") (parenthesized_expression "(**(int **)PTR_DAT_0012a214 == 0x16)" (( "(") (binary_expression "**(int **)PTR_DAT_0012a214 == 0x16" (pointer_expression "**(int **)PTR_DAT_0012a214" (* "*") (pointer_expression "*(int **)PTR_DAT_0012a214" (* "*") (cast_expression "(int **)PTR_DAT_0012a214" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_DAT_0012a214")))) (== "==") (number_literal "0x16")) () ")")) (compound_statement "{\n        return pcVar4;\n      }" ({ "{") (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}"))) (if_statement "if (**(int **)PTR_DAT_0012a214 == 2) {\n        return pcVar4;\n      }" (if "if") (parenthesized_expression "(**(int **)PTR_DAT_0012a214 == 2)" (( "(") (binary_expression "**(int **)PTR_DAT_0012a214 == 2" (pointer_expression "**(int **)PTR_DAT_0012a214" (* "*") (pointer_expression "*(int **)PTR_DAT_0012a214" (* "*") (cast_expression "(int **)PTR_DAT_0012a214" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_DAT_0012a214")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        return pcVar4;\n      }" ({ "{") (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}"))) (labeled_statement "LAB_0001b684:\n      (*(code *)PTR_free_0012b168)(pcVar4);" (statement_identifier "LAB_0001b684") (: ":") (expression_statement "(*(code *)PTR_free_0012b168)(pcVar4);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar4)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" (( "(") (pointer_expression "*(code *)PTR_free_0012b168" (* "*") (cast_expression "(code *)PTR_free_0012b168" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0012b168"))) () ")")) (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")"))) (; ";"))) (return_statement "return (char *)0x0;" (return "return") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar6 == 0) {\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_free_0012b168)(pcVar1);\n      goto LAB_0001b684;\n    }" ({ "{") (expression_statement "(*(code *)PTR_free_0012b168)(pcVar1);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" (( "(") (pointer_expression "*(code *)PTR_free_0012b168" (* "*") (cast_expression "(code *)PTR_free_0012b168" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0012b168"))) () ")")) (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")"))) (; ";")) (goto_statement "goto LAB_0001b684;" (goto "goto") (statement_identifier "LAB_0001b684") (; ";")) (} "}"))) (if_statement "if (*pcVar1 == '/') break;" (if "if") (parenthesized_expression "(*pcVar1 == '/')" (( "(") (binary_expression "*pcVar1 == '/'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_0012af3c)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_0012af3c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0012af3c" (* "*") (cast_expression "(code *)PTR_strlen_0012af3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0012af3c"))) () ")")) (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")")))) (; ";")) (expression_statement "iVar2 = iVar2 + iVar3;" (assignment_expression "iVar2 = iVar2 + iVar3" (identifier "iVar2") (= "=") (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);" (assignment_expression "pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2)" (identifier "pcVar4") (= "=") (cast_expression "(char *)FUN_0001a210(pcVar4,iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001a210(pcVar4,iVar2)" (identifier "FUN_0001a210") (argument_list "(pcVar4,iVar2)" (( "(") (identifier "pcVar4") (, ",") (identifier "iVar2") () ")"))))) (; ";")) (expression_statement "uVar5 = FUN_0001890c(pcVar4);" (assignment_expression "uVar5 = FUN_0001890c(pcVar4)" (identifier "uVar5") (= "=") (call_expression "FUN_0001890c(pcVar4)" (identifier "FUN_0001890c") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);" (call_expression "(*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1)" (parenthesized_expression "(*(code *)PTR_strcpy_0012affc)" (( "(") (pointer_expression "*(code *)PTR_strcpy_0012affc" (* "*") (cast_expression "(code *)PTR_strcpy_0012affc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_0012affc"))) () ")")) (argument_list "(uVar5,pcVar1)" (( "(") (identifier "uVar5") (, ",") (identifier "pcVar1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_0012b168)(pcVar1);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar1)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" (( "(") (pointer_expression "*(code *)PTR_free_0012b168" (* "*") (cast_expression "(code *)PTR_free_0012b168" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0012b168"))) () ")")) (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (expression_statement "(*(code *)PTR_free_0012b168)(pcVar4);" (call_expression "(*(code *)PTR_free_0012b168)(pcVar4)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" (( "(") (pointer_expression "*(code *)PTR_free_0012b168" (* "*") (cast_expression "(code *)PTR_free_0012b168" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0012b168"))) () ")")) (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")"))) (; ";")) (goto_statement "goto LAB_0001b63c;" (goto "goto") (statement_identifier "LAB_0001b63c") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (labeled_statement label: (statement_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)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (labeled_statement label: (statement_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 (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (break_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)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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) (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))))) condition: (parenthesized_expression (true))) (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)))) (goto_statement label: (statement_identifier)))))

char * MASKED(void)

{
  char *pcVar1;
  int iVar2;
  int iVar3;
  char *pcVar4;
  undefined4 uVar5;
  int iVar6;
  
  iVar6 = 0x15;
  pcVar1 = (char *)FUN_0001a2b4();
LAB_0001b63c:
  iVar2 = (*(code *)PTR_strlen_0012af3c)(pcVar1);
  iVar2 = iVar2 + 1;
  pcVar4 = pcVar1;
  do {
    pcVar1 = (char *)FUN_0001b500(pcVar4);
    if (pcVar1 == (char *)0x0) {
      if (**(int **)PTR_DAT_0012a214 == 0x16) {
        return pcVar4;
      }
      if (**(int **)PTR_DAT_0012a214 == 2) {
        return pcVar4;
      }
LAB_0001b684:
      (*(code *)PTR_free_0012b168)(pcVar4);
      return (char *)0x0;
    }
    iVar6 = iVar6 + -1;
    if (iVar6 == 0) {
      (*(code *)PTR_free_0012b168)(pcVar1);
      goto LAB_0001b684;
    }
    if (*pcVar1 == '/') break;
    iVar3 = (*(code *)PTR_strlen_0012af3c)(pcVar1);
    iVar2 = iVar2 + iVar3;
    pcVar4 = (char *)FUN_0001a210(pcVar4,iVar2);
    uVar5 = FUN_0001890c(pcVar4);
    (*(code *)PTR_strcpy_0012affc)(uVar5,pcVar1);
    (*(code *)PTR_free_0012b168)(pcVar1);
  } while( true );
  (*(code *)PTR_free_0012b168)(pcVar4);
  goto LAB_0001b63c;
}

