
void create_or_remember_link(llist_t **link_placeholders,char *target,char *linkname,int hard_link)

{
  undefined4 uVar1;
  int iVar2;
  
  if ((hard_link == 0) && (*target != '/')) {
    iVar2 = (*(code *)PTR_strstr_0012b1d4)
                      (target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x521c);
    if (iVar2 == 0) {
      iVar2 = (*(code *)PTR_symlink_0012ad84)(target,linkname);
      if (iVar2 != 0) {
        (*(code *)PTR_bb_perror_msg_and_die_0012a1ec)
                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,
                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x520c,linkname,target);
      }
      return;
    }
  }
  uVar1 = (*(code *)PTR_xasprintf_0012a22c)
                    (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5218,hard_link,linkname,0
                     ,target);
                    /* WARNING: Could not recover jumptable at 0x000afdb0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_llist_add_to_end_0012a46c)(link_placeholders,uVar1);
  return;
}



void FUN_000afd30(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)

{
  undefined4 uVar1;
  int iVar2;
  
  if ((param_4 == 0) && (*param_2 != '/')) {
    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);
    if (iVar2 == 0) {
      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);
      if (iVar2 != 0) {
        (*(code *)PTR_FUN_0012a1ec)
                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);
        return;
      }
      return;
    }
  }
  uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);
                    /* WARNING: Could not recover jumptable at 0x000afdb0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_FUN_0012a46c)(param_1,uVar1);
  return;
}


lui gp,0x8
addiu gp,gp,0x2420
addu gp,gp,t9
addiu sp,sp,-0x38
sw gp,0x18(sp)
sw s3,0x30(sp)
or s3,a0,zero
sw s2,0x2c(sp)
or s2,a3,zero
sw s1,0x28(sp)
or s1,a2,zero
sw s0,0x24(sp)
or s0,a1,zero
beq a3,zero,0x000afdb8
_sw ra,0x34(sp)
lw a0,-0x7fa8(gp)
or a3,zero,zero
lw t9,-0x7f24(gp)
or a1,s2,zero
sw s0,0x10(sp)
or a2,s1,zero
jalr t9
_addiu a0,a0,-0x5218
or a0,s3,zero
lw gp,0x18(sp)
or a1,v0,zero
lw ra,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
lw t9,-0x7ce4(gp)
jr t9
_addiu sp,sp,0x38
lbu v1,0x0(a1)
li v0,0x2f
beq v1,v0,0x000afd6c
_lw t9,-0x6f7c(gp)
or a0,a1,zero
lw a1,-0x7fa8(gp)
jalr t9
_addiu a1,a1,-0x521c
bne v0,zero,0x000afd6c
_lw gp,0x18(sp)
lw t9,-0x73cc(gp)
or a1,s1,zero
jalr t9
_or a0,s0,zero
beq v0,zero,0x000afe18
_lw gp,0x18(sp)
lw a1,-0x7fa8(gp)
or a3,s0,zero
lw a0,-0x7fa8(gp)
or a2,s1,zero
lw t9,-0x7f64(gp)
addiu a1,a1,-0x520c
jalr t9
_addiu a0,a0,-0x5208
lw ra,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "void FUN_000afd30(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);\n                    /* WARNING: Could not recover jumptable at 0x000afdb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_FUN_0012a46c)(param_1,uVar1);\n  return;\n}\n\n" (function_definition "void FUN_000afd30(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);\n                    /* WARNING: Could not recover jumptable at 0x000afdb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_FUN_0012a46c)(param_1,uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_000afd30(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);\n                    /* WARNING: Could not recover jumptable at 0x000afdb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_FUN_0012a46c)(param_1,uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }" if (parenthesized_expression "((param_4 == 0) && (*param_2 != '/'))" ( (binary_expression "(param_4 == 0) && (*param_2 != '/')" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) && (parenthesized_expression "(*param_2 != '/')" ( (binary_expression "*param_2 != '/'" (pointer_expression "*param_2" * identifier) != (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);" (assignment_expression "iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c)" identifier = (call_expression "(*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c)" (parenthesized_expression "(*(code *)PTR_strstr_0012b1d4)" ( (pointer_expression "*(code *)PTR_strstr_0012b1d4" * (cast_expression "(code *)PTR_strstr_0012b1d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,PTR_FUN_0012a1a8 + -0x521c)" ( identifier , (binary_expression "PTR_FUN_0012a1a8 + -0x521c" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);" (assignment_expression "iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3)" identifier = (call_expression "(*(code *)PTR_symlink_0012ad84)(param_2,param_3)" (parenthesized_expression "(*(code *)PTR_symlink_0012ad84)" ( (pointer_expression "*(code *)PTR_symlink_0012ad84" * (cast_expression "(code *)PTR_symlink_0012ad84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }" { (expression_statement "(*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);" (call_expression "(*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1ec)" ( (pointer_expression "*(code *)PTR_FUN_0012a1ec" * (cast_expression "(code *)PTR_FUN_0012a1ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2)" ( (binary_expression "PTR_FUN_0012a1a8 + -21000" identifier + number_literal) , (binary_expression "PTR_FUN_0012a1a8 + -0x520c" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })) })) (expression_statement "uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);" (assignment_expression "uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2)" identifier = (call_expression "(*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a22c)" ( (pointer_expression "*(code *)PTR_FUN_0012a22c" * (cast_expression "(code *)PTR_FUN_0012a22c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x5218" identifier + number_literal) , identifier , identifier , number_literal , identifier )))) ;) comment comment (expression_statement "(*(code *)PTR_FUN_0012a46c)(param_1,uVar1);" (call_expression "(*(code *)PTR_FUN_0012a46c)(param_1,uVar1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a46c)" ( (pointer_expression "*(code *)PTR_FUN_0012a46c" * (cast_expression "(code *)PTR_FUN_0012a46c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void create_or_remember_link(llist_t **link_placeholders,char *target,char *linkname,int hard_link)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((hard_link == 0) && (*target != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)\n                      (target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(target,linkname);\n      if (iVar2 != 0) {\n        (*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x520c,linkname,target);\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_xasprintf_0012a22c)\n                    (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5218,hard_link,linkname,0\n                     ,target);\n                    /* WARNING: Could not recover jumptable at 0x000afdb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_llist_add_to_end_0012a46c)(link_placeholders,uVar1);\n  return;\n}\n\n" (function_definition "void create_or_remember_link(llist_t **link_placeholders,char *target,char *linkname,int hard_link)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((hard_link == 0) && (*target != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)\n                      (target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(target,linkname);\n      if (iVar2 != 0) {\n        (*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x520c,linkname,target);\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_xasprintf_0012a22c)\n                    (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5218,hard_link,linkname,0\n                     ,target);\n                    /* WARNING: Could not recover jumptable at 0x000afdb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_llist_add_to_end_0012a46c)(link_placeholders,uVar1);\n  return;\n}" primitive_type (function_declarator "create_or_remember_link(llist_t **link_placeholders,char *target,char *linkname,int hard_link)" identifier (parameter_list "(llist_t **link_placeholders,char *target,char *linkname,int hard_link)" ( (parameter_declaration "llist_t **link_placeholders" type_identifier (pointer_declarator "**link_placeholders" * (pointer_declarator "*link_placeholders" * identifier))) , (parameter_declaration "char *target" primitive_type (pointer_declarator "*target" * identifier)) , (parameter_declaration "char *linkname" primitive_type (pointer_declarator "*linkname" * identifier)) , (parameter_declaration "int hard_link" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((hard_link == 0) && (*target != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)\n                      (target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(target,linkname);\n      if (iVar2 != 0) {\n        (*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x520c,linkname,target);\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_xasprintf_0012a22c)\n                    (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5218,hard_link,linkname,0\n                     ,target);\n                    /* WARNING: Could not recover jumptable at 0x000afdb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_llist_add_to_end_0012a46c)(link_placeholders,uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((hard_link == 0) && (*target != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)\n                      (target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(target,linkname);\n      if (iVar2 != 0) {\n        (*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x520c,linkname,target);\n      }\n      return;\n    }\n  }" if (parenthesized_expression "((hard_link == 0) && (*target != '/'))" ( (binary_expression "(hard_link == 0) && (*target != '/')" (parenthesized_expression "(hard_link == 0)" ( (binary_expression "hard_link == 0" identifier == number_literal) )) && (parenthesized_expression "(*target != '/')" ( (binary_expression "*target != '/'" (pointer_expression "*target" * identifier) != (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)\n                      (target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(target,linkname);\n      if (iVar2 != 0) {\n        (*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x520c,linkname,target);\n      }\n      return;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strstr_0012b1d4)\n                      (target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x521c);" (assignment_expression "iVar2 = (*(code *)PTR_strstr_0012b1d4)\n                      (target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x521c" identifier = (binary_expression "(*(code *)PTR_strstr_0012b1d4)\n                      (target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x521c" (call_expression "(*(code *)PTR_strstr_0012b1d4)\n                      (target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR_strstr_0012b1d4)" ( (pointer_expression "*(code *)PTR_strstr_0012b1d4" * (cast_expression "(code *)PTR_strstr_0012b1d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(target,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( identifier , (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal)) (ERROR ")" )) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(target,linkname);\n      if (iVar2 != 0) {\n        (*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x520c,linkname,target);\n      }\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(target,linkname);\n      if (iVar2 != 0) {\n        (*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x520c,linkname,target);\n      }\n      return;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_symlink_0012ad84)(target,linkname);" (assignment_expression "iVar2 = (*(code *)PTR_symlink_0012ad84)(target,linkname)" identifier = (call_expression "(*(code *)PTR_symlink_0012ad84)(target,linkname)" (parenthesized_expression "(*(code *)PTR_symlink_0012ad84)" ( (pointer_expression "*(code *)PTR_symlink_0012ad84" * (cast_expression "(code *)PTR_symlink_0012ad84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(target,linkname)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        (*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x520c,linkname,target);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        (*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x520c,linkname,target);\n      }" { (ERROR "(*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9" (comma_expression "(*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000,\n                   PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "(*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -21000" (call_expression "(*(code *)PTR_bb_perror_msg_and_die_0012a1ec)\n                  (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR_bb_perror_msg_and_die_0012a1ec)" ( (pointer_expression "*(code *)PTR_bb_perror_msg_and_die_0012a1ec" * (cast_expression "(code *)PTR_bb_perror_msg_and_die_0012a1ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier)) ) number_literal) (expression_statement "__f_l_0012a1a8 + -0x520c,linkname,target);" (comma_expression "__f_l_0012a1a8 + -0x520c,linkname,target" (binary_expression "__f_l_0012a1a8 + -0x520c" identifier + number_literal) , (comma_expression "linkname,target" identifier , identifier)) (ERROR ")" )) ;) })) (return_statement "return;" return ;) })) })) (expression_statement "uVar1 = (*(code *)PTR_xasprintf_0012a22c)\n                    (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5218,hard_link,linkname,0\n                     ,target);" (comma_expression "uVar1 = (*(code *)PTR_xasprintf_0012a22c)\n                    (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5218,hard_link,linkname,0\n                     ,target" (assignment_expression "uVar1 = (*(code *)PTR_xasprintf_0012a22c)\n                    (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5218" identifier = (binary_expression "(*(code *)PTR_xasprintf_0012a22c)\n                    (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5218" (call_expression "(*(code *)PTR_xasprintf_0012a22c)\n                    (PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR_xasprintf_0012a22c)" ( (pointer_expression "*(code *)PTR_xasprintf_0012a22c" * (cast_expression "(code *)PTR_xasprintf_0012a22c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal)) , (comma_expression "hard_link,linkname,0\n                     ,target" identifier , (comma_expression "linkname,0\n                     ,target" identifier , (comma_expression "0\n                     ,target" number_literal , identifier)))) (ERROR ")" )) ;) comment comment (expression_statement "(*(code *)PTR_llist_add_to_end_0012a46c)(link_placeholders,uVar1);" (call_expression "(*(code *)PTR_llist_add_to_end_0012a46c)(link_placeholders,uVar1)" (parenthesized_expression "(*(code *)PTR_llist_add_to_end_0012a46c)" ( (pointer_expression "*(code *)PTR_llist_add_to_end_0012a46c" * (cast_expression "(code *)PTR_llist_add_to_end_0012a46c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(link_placeholders,uVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000afd30(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);\n                    \n                    \n  (*(code *)PTR_FUN_0012a46c)(param_1,uVar1);\n  return;\n}\n\n" (function_definition "void FUN_000afd30(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);\n                    \n                    \n  (*(code *)PTR_FUN_0012a46c)(param_1,uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_000afd30(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);\n                    \n                    \n  (*(code *)PTR_FUN_0012a46c)(param_1,uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }" if (parenthesized_expression "((param_4 == 0) && (*param_2 != '/'))" ( (binary_expression "(param_4 == 0) && (*param_2 != '/')" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) && (parenthesized_expression "(*param_2 != '/')" ( (binary_expression "*param_2 != '/'" (pointer_expression "*param_2" * identifier) != (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);" (assignment_expression "iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c)" identifier = (call_expression "(*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c)" (parenthesized_expression "(*(code *)PTR_strstr_0012b1d4)" ( (pointer_expression "*(code *)PTR_strstr_0012b1d4" * (cast_expression "(code *)PTR_strstr_0012b1d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,PTR_FUN_0012a1a8 + -0x521c)" ( identifier , (binary_expression "PTR_FUN_0012a1a8 + -0x521c" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);" (assignment_expression "iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3)" identifier = (call_expression "(*(code *)PTR_symlink_0012ad84)(param_2,param_3)" (parenthesized_expression "(*(code *)PTR_symlink_0012ad84)" ( (pointer_expression "*(code *)PTR_symlink_0012ad84" * (cast_expression "(code *)PTR_symlink_0012ad84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }" { (expression_statement "(*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);" (call_expression "(*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1ec)" ( (pointer_expression "*(code *)PTR_FUN_0012a1ec" * (cast_expression "(code *)PTR_FUN_0012a1ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2)" ( (binary_expression "PTR_FUN_0012a1a8 + -21000" identifier + number_literal) , (binary_expression "PTR_FUN_0012a1a8 + -0x520c" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })) })) (expression_statement "uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);" (assignment_expression "uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2)" identifier = (call_expression "(*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a22c)" ( (pointer_expression "*(code *)PTR_FUN_0012a22c" * (cast_expression "(code *)PTR_FUN_0012a22c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x5218" identifier + number_literal) , identifier , identifier , number_literal , identifier )))) ;) (expression_statement "(*(code *)PTR_FUN_0012a46c)(param_1,uVar1);" (call_expression "(*(code *)PTR_FUN_0012a46c)(param_1,uVar1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a46c)" ( (pointer_expression "*(code *)PTR_FUN_0012a46c" * (cast_expression "(code *)PTR_FUN_0012a46c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) ))) )) (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 , (binary_expression 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 , IDENT )))) ;) (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 ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , LIT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000afd30(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);\n                    \n                    \n  (*(code *)PTR_FUN_0012a46c)(param_1,uVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000afd30(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)" (identifier "FUN_000afd30") (parameter_list "(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }\n  uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);\n                    \n                    \n  (*(code *)PTR_FUN_0012a46c)(param_1,uVar1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if ((param_4 == 0) && (*param_2 != '/')) {\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((param_4 == 0) && (*param_2 != '/'))" (( "(") (binary_expression "(param_4 == 0) && (*param_2 != '/')" (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*param_2 != '/')" (( "(") (binary_expression "*param_2 != '/'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);" (assignment_expression "iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c)" (parenthesized_expression "(*(code *)PTR_strstr_0012b1d4)" (( "(") (pointer_expression "*(code *)PTR_strstr_0012b1d4" (* "*") (cast_expression "(code *)PTR_strstr_0012b1d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strstr_0012b1d4"))) () ")")) (argument_list "(param_2,PTR_FUN_0012a1a8 + -0x521c)" (( "(") (identifier "param_2") (, ",") (binary_expression "PTR_FUN_0012a1a8 + -0x521c" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x521c")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);\n      if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }\n      return;\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);" (assignment_expression "iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_symlink_0012ad84)(param_2,param_3)" (parenthesized_expression "(*(code *)PTR_symlink_0012ad84)" (( "(") (pointer_expression "*(code *)PTR_symlink_0012ad84" (* "*") (cast_expression "(code *)PTR_symlink_0012ad84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_symlink_0012ad84"))) () ")")) (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);\n        return;\n      }" ({ "{") (expression_statement "(*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);" (call_expression "(*(code *)PTR_FUN_0012a1ec)\n                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1ec)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a1ec" (* "*") (cast_expression "(code *)PTR_FUN_0012a1ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a1ec"))) () ")")) (argument_list "(PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2)" (( "(") (binary_expression "PTR_FUN_0012a1a8 + -21000" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-21000")) (, ",") (binary_expression "PTR_FUN_0012a1a8 + -0x520c" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x520c")) (, ",") (identifier "param_3") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);" (assignment_expression "uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a22c)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a22c" (* "*") (cast_expression "(code *)PTR_FUN_0012a22c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a22c"))) () ")")) (argument_list "(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2)" (( "(") (binary_expression "PTR_FUN_0012a1a8 + -0x5218" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x5218")) (, ",") (identifier "param_4") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a46c)(param_1,uVar1);" (call_expression "(*(code *)PTR_FUN_0012a46c)(param_1,uVar1)" (parenthesized_expression "(*(code *)PTR_FUN_0012a46c)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a46c" (* "*") (cast_expression "(code *)PTR_FUN_0012a46c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a46c"))) () ")")) (argument_list "(param_1,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))))) 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) (binary_expression left: (identifier) right: (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) (identifier))))) (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 (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (return_statement))) (return_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 (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (number_literal) (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)))) (return_statement))))

void MASKED(undefined4 param_1,char *param_2,undefined4 param_3,int param_4)

{
  undefined4 uVar1;
  int iVar2;
  
  if ((param_4 == 0) && (*param_2 != '/')) {
    iVar2 = (*(code *)PTR_strstr_0012b1d4)(param_2,PTR_FUN_0012a1a8 + -0x521c);
    if (iVar2 == 0) {
      iVar2 = (*(code *)PTR_symlink_0012ad84)(param_2,param_3);
      if (iVar2 != 0) {
        (*(code *)PTR_FUN_0012a1ec)
                  (PTR_FUN_0012a1a8 + -21000,PTR_FUN_0012a1a8 + -0x520c,param_3,param_2);
        return;
      }
      return;
    }
  }
  uVar1 = (*(code *)PTR_FUN_0012a22c)(PTR_FUN_0012a1a8 + -0x5218,param_4,param_3,0,param_2);
                    /* WARNING: Could not recover jumptable at 0x000afdb0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_FUN_0012a46c)(param_1,uVar1);
  return;
}

