
void check_extension(char *file,size_t filelen,char e)

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  char *pcVar4;
  size_t sVar5;
  int *piVar6;
  uint uVar7;
  char cVar8;
  char *name;
  char *pcVar9;
  undefined *puVar10;
  char tmp [2];
  
  puVar2 = PTR___stack_chk_guard_000466a0;
  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;
  pcVar4 = last_component(file);
  name = pcVar4;
  sVar5 = base_len(pcVar4);
  puVar10 = PTR___errno_location_0004656c;
  if (0xe < sVar5) {
    cVar8 = pcVar4[1];
    cVar1 = *pcVar4;
    *pcVar4 = '.';
    pcVar4[1] = '\0';
    piVar6 = (int *)(*(code *)puVar10)();
    *piVar6 = 0;
    name = file;
    uVar7 = (*(code *)PTR_pathconf_000466f4)(file,3);
    if (((int)uVar7 < 0) && (*piVar6 != 0)) {
      uVar7 = 0xff;
    }
    *pcVar4 = cVar1;
    pcVar4[1] = cVar8;
    if (uVar7 < sVar5) {
      pcVar9 = file + filelen;
      name = (char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7);
      if (name == (char *)0x0) {
        pcVar9 = pcVar4 + (uVar7 - 1);
      }
      else {
        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;
      }
      *pcVar9 = '~';
      pcVar4[uVar7] = '\0';
    }
  }
  if (iVar3 == *(int *)puVar2) {
    return;
  }
  puVar10 = PTR___stack_chk_fail_00046664;
  (*(code *)PTR___stack_chk_fail_00046664)();
  if (name == (char *)0x0) {
    name = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);
    if (name == (char *)0x0) goto LAB_0001e5fc;
    cVar8 = *name;
  }
  else {
    cVar8 = *name;
  }
  if ((cVar8 != '\0') && (pcVar4 = last_component(name), name == pcVar4)) {
    **(undefined4 **)(puVar10 + 0x27ca8) = name;
    return;
  }
LAB_0001e5fc:
  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;
  return;
}



void FUN_0001e470(char *param_1,int param_2)

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  char *pcVar4;
  uint uVar5;
  int *piVar6;
  uint uVar7;
  char cVar9;
  char *pcVar8;
  undefined *puVar10;
  
  puVar2 = PTR___stack_chk_guard_000466a0;
  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;
  pcVar4 = (char *)last_component();
  pcVar8 = pcVar4;
  uVar5 = base_len();
  puVar10 = PTR___errno_location_0004656c;
  if (0xe < uVar5) {
    cVar9 = pcVar4[1];
    cVar1 = *pcVar4;
    *pcVar4 = '.';
    pcVar4[1] = '\0';
    piVar6 = (int *)(*(code *)puVar10)();
    *piVar6 = 0;
    pcVar8 = param_1;
    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);
    if (((int)uVar7 < 0) && (*piVar6 != 0)) {
      uVar7 = 0xff;
    }
    *pcVar4 = cVar1;
    pcVar4[1] = cVar9;
    if (uVar7 < uVar5) {
      param_1 = param_1 + param_2;
      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);
      if (pcVar8 == (char *)0x0) {
        param_1 = pcVar4 + (uVar7 - 1);
      }
      else {
        uVar7 = ((int)param_1 - (int)pcVar4) + 1;
      }
      *param_1 = '~';
      pcVar4[uVar7] = '\0';
    }
  }
  if (iVar3 == *(int *)puVar2) {
    return;
  }
  puVar10 = PTR___stack_chk_fail_00046664;
  (*(code *)PTR___stack_chk_fail_00046664)();
  if (pcVar8 == (char *)0x0) {
    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);
    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;
    cVar9 = *pcVar8;
  }
  else {
    cVar9 = *pcVar8;
  }
  if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {
    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;
    return;
  }
LAB_0001e5fc:
  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;
  return;
}


lui gp,0x3
addiu gp,gp,-0x360
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x7fac(gp)
sw s3,0x30(sp)
lw s3,-0x7a70(gp)
sw gp,0x10(sp)
sw ra,0x3c(sp)
sw s4,0x34(sp)
or s4,a1,zero
sw s2,0x2c(sp)
sw s1,0x28(sp)
or s1,a0,zero
sw s0,0x24(sp)
sw s5,0x38(sp)
lw v0,0x0(s3)
sw v0,0x1c(sp)
bal 0x0001fbe0
_nop
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x7e48(gp)
bal 0x0001fc58
_or s0,v0,zero
or s2,v0,zero
sltiu v0,v0,0xf
beq v0,zero,0x0001e514
_lw gp,0x10(sp)
lw v1,0x1c(sp)
lw v0,0x0(s3)
bne v1,v0,0x0001e5c0
_lw ra,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
lbu v0,0x1(s0)
lbu v1,0x0(s0)
lw t9,-0x7ba4(gp)
sb v0,0x19(sp)
li v0,0x2e
sb v1,0x18(sp)
sb v0,0x0(s0)
jalr t9
_sb zero,0x1(s0)
li a1,0x3
lw gp,0x10(sp)
or a0,s1,zero
sw zero,0x0(v0)
lw t9,-0x7a1c(gp)
jalr t9
_or s5,v0,zero
bltz v0,0x0001e5ac
_lw gp,0x10(sp)
lbu v1,0x18(sp)
sltu s2,v0,s2
sb v1,0x0(s0)
lbu v1,0x19(sp)
beq s2,zero,0x0001e4e4
_sb v1,0x1(s0)
addu s1,s1,s4
subu v1,s1,s0
sltu a0,v1,v0
beq a0,zero,0x0001e5a0
_nop
addiu v0,v1,0x1
addu s0,s0,v0
li v0,0x7e
sb v0,0x0(s1)
b 0x0001e4e4
_sb zero,0x0(s0)
addiu s1,v0,-0x1
b 0x0001e58c
_addu s1,s0,s1
lw v1,0x0(s5)
beq v1,zero,0x0001e560
_lbu v1,0x18(sp)
b 0x0001e560
_li v0,0xff
lw t9,-0x7aac(gp)
jalr t9
_nop
(translation_unit "void FUN_0001e470(char *param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar9;\n  char *pcVar8;\n  undefined *puVar10;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = (char *)last_component();\n  pcVar8 = pcVar4;\n  uVar5 = base_len();\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }\n  if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}\n\n" (function_definition "void FUN_0001e470(char *param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar9;\n  char *pcVar8;\n  undefined *puVar10;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = (char *)last_component();\n  pcVar8 = pcVar4;\n  uVar5 = base_len();\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }\n  if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}" primitive_type (function_declarator "FUN_0001e470(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar9;\n  char *pcVar8;\n  undefined *puVar10;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = (char *)last_component();\n  pcVar8 = pcVar4;\n  uVar5 = base_len();\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }\n  if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "char cVar9;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000466a0" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_000466a0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000466a0" * (cast_expression "(int *)PTR___stack_chk_guard_000466a0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar4 = (char *)last_component();" (assignment_expression "pcVar4 = (char *)last_component()" identifier = (cast_expression "(char *)last_component()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "last_component()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pcVar8 = pcVar4;" (assignment_expression "pcVar8 = pcVar4" identifier = identifier) ;) (expression_statement "uVar5 = base_len();" (assignment_expression "uVar5 = base_len()" identifier = (call_expression "base_len()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar10 = PTR___errno_location_0004656c;" (assignment_expression "puVar10 = PTR___errno_location_0004656c" identifier = identifier) ;) (if_statement "if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }" if (parenthesized_expression "(0xe < uVar5)" ( (binary_expression "0xe < uVar5" number_literal < identifier) )) (compound_statement "{\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }" { (expression_statement "cVar9 = pcVar4[1];" (assignment_expression "cVar9 = pcVar4[1]" identifier = (subscript_expression "pcVar4[1]" identifier [ number_literal ])) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "*pcVar4 = '.';" (assignment_expression "*pcVar4 = '.'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'.'" ' character ')) ;) (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "piVar6 = (int *)(*(code *)puVar10)();" (assignment_expression "piVar6 = (int *)(*(code *)puVar10)()" identifier = (cast_expression "(int *)(*(code *)puVar10)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar10)()" (parenthesized_expression "(*(code *)puVar10)" ( (pointer_expression "*(code *)puVar10" * (cast_expression "(code *)puVar10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "pcVar8 = param_1;" (assignment_expression "pcVar8 = param_1" identifier = identifier) ;) (expression_statement "uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);" (assignment_expression "uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3)" identifier = (call_expression "(*(code *)PTR_pathconf_000466f4)(param_1,3)" (parenthesized_expression "(*(code *)PTR_pathconf_000466f4)" ( (pointer_expression "*(code *)PTR_pathconf_000466f4" * (cast_expression "(code *)PTR_pathconf_000466f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,3)" ( identifier , number_literal )))) ;) (if_statement "if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }" if (parenthesized_expression "(((int)uVar7 < 0) && (*piVar6 != 0))" ( (binary_expression "((int)uVar7 < 0) && (*piVar6 != 0)" (parenthesized_expression "((int)uVar7 < 0)" ( (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) && (parenthesized_expression "(*piVar6 != 0)" ( (binary_expression "*piVar6 != 0" (pointer_expression "*piVar6" * identifier) != number_literal) ))) )) (compound_statement "{\n      uVar7 = 0xff;\n    }" { (expression_statement "uVar7 = 0xff;" (assignment_expression "uVar7 = 0xff" identifier = number_literal) ;) })) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "pcVar4[1] = cVar9;" (assignment_expression "pcVar4[1] = cVar9" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }" if (parenthesized_expression "(uVar7 < uVar5)" ( (binary_expression "uVar7 < uVar5" identifier < identifier) )) (compound_statement "{\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }" { (expression_statement "param_1 = param_1 + param_2;" (assignment_expression "param_1 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (expression_statement "pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);" (assignment_expression "pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7)" identifier = (cast_expression "(char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)((int)param_1 - (int)pcVar4) < uVar7)" ( (binary_expression "(uint)((int)param_1 - (int)pcVar4) < uVar7" (call_expression "(uint)((int)param_1 - (int)pcVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_1 - (int)pcVar4)" ( (binary_expression "(int)param_1 - (int)pcVar4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < identifier) ))))) ;) (if_statement "if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_1 = pcVar4 + (uVar7 - 1);\n      }" { (expression_statement "param_1 = pcVar4 + (uVar7 - 1);" (assignment_expression "param_1 = pcVar4 + (uVar7 - 1)" identifier = (binary_expression "pcVar4 + (uVar7 - 1)" identifier + (parenthesized_expression "(uVar7 - 1)" ( (binary_expression "uVar7 - 1" identifier - number_literal) )))) ;) }) (else_clause "else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }" else (compound_statement "{\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }" { (expression_statement "uVar7 = ((int)param_1 - (int)pcVar4) + 1;" (assignment_expression "uVar7 = ((int)param_1 - (int)pcVar4) + 1" identifier = (binary_expression "((int)param_1 - (int)pcVar4) + 1" (parenthesized_expression "((int)param_1 - (int)pcVar4)" ( (binary_expression "(int)param_1 - (int)pcVar4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal)) ;) }))) (expression_statement "*param_1 = '~';" (assignment_expression "*param_1 = '~'" (pointer_expression "*param_1" * identifier) = (char_literal "'~'" ' character ')) ;) (expression_statement "pcVar4[uVar7] = '\0';" (assignment_expression "pcVar4[uVar7] = '\0'" (subscript_expression "pcVar4[uVar7]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) })) (if_statement "if (iVar3 == *(int *)puVar2) {\n    return;\n  }" if (parenthesized_expression "(iVar3 == *(int *)puVar2)" ( (binary_expression "iVar3 == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar10 = PTR___stack_chk_fail_00046664;" (assignment_expression "puVar10 = PTR___stack_chk_fail_00046664" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00046664)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046664)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046664)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00046664" * (cast_expression "(code *)PTR___stack_chk_fail_00046664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }" { (expression_statement "pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);" (assignment_expression "pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" identifier = (cast_expression "(char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" (parenthesized_expression "(**(code **)(puVar10 + 0x28030))" ( (pointer_expression "**(code **)(puVar10 + 0x28030)" * (pointer_expression "*(code **)(puVar10 + 0x28030)" * (cast_expression "(code **)(puVar10 + 0x28030)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x28030)" ( (binary_expression "puVar10 + 0x28030" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" ( (binary_expression "*(int *)(puVar10 + 0x27b7c) + 0x3d08" (pointer_expression "*(int *)(puVar10 + 0x27b7c)" * (cast_expression "(int *)(puVar10 + 0x27b7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x27b7c)" ( (binary_expression "puVar10 + 0x27b7c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001e5fc;" goto statement_identifier ;)) (expression_statement "cVar9 = *pcVar8;" (assignment_expression "cVar9 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) }) (else_clause "else {\n    cVar9 = *pcVar8;\n  }" else (compound_statement "{\n    cVar9 = *pcVar8;\n  }" { (expression_statement "cVar9 = *pcVar8;" (assignment_expression "cVar9 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) }))) (if_statement "if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }" if (parenthesized_expression "((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4))" ( (binary_expression "(cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)" (parenthesized_expression "(cVar9 != '\0')" ( (binary_expression "cVar9 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)" ( (comma_expression "pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4" (assignment_expression "pcVar4 = (char *)last_component(pcVar8)" identifier = (cast_expression "(char *)last_component(pcVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "last_component(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))))) , (binary_expression "pcVar8 == pcVar4" identifier == identifier)) ))) )) (compound_statement "{\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }" { (expression_statement "**(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;" (assignment_expression "**(undefined4 **)(puVar10 + 0x27ca8) = pcVar8" (pointer_expression "**(undefined4 **)(puVar10 + 0x27ca8)" * (pointer_expression "*(undefined4 **)(puVar10 + 0x27ca8)" * (cast_expression "(undefined4 **)(puVar10 + 0x27ca8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x27ca8)" ( (binary_expression "puVar10 + 0x27ca8" identifier + number_literal) ))))) = identifier) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;" statement_identifier : (expression_statement "**(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;" (assignment_expression "**(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04" (pointer_expression "**(int **)(puVar10 + 0x27ca8)" * (pointer_expression "*(int **)(puVar10 + 0x27ca8)" * (cast_expression "(int **)(puVar10 + 0x27ca8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x27ca8)" ( (binary_expression "puVar10 + 0x27ca8" identifier + number_literal) ))))) = (binary_expression "*(int *)(puVar10 + 0x27b7c) + 0x3d04" (pointer_expression "*(int *)(puVar10 + 0x27b7c)" * (cast_expression "(int *)(puVar10 + 0x27b7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x27b7c)" ( (binary_expression "puVar10 + 0x27b7c" identifier + number_literal) )))) + number_literal)) ;)) (return_statement "return;" return ;) })))
(translation_unit "void check_extension(char *file,size_t filelen,char e)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar8;\n  char *name;\n  char *pcVar9;\n  undefined *puVar10;\n  char tmp [2];\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = last_component(file);\n  name = pcVar4;\n  sVar5 = base_len(pcVar4);\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < sVar5) {\n    cVar8 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    name = file;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(file,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar8;\n    if (uVar7 < sVar5) {\n      pcVar9 = file + filelen;\n      name = (char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7);\n      if (name == (char *)0x0) {\n        pcVar9 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;\n      }\n      *pcVar9 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (name == (char *)0x0) {\n    name = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (name == (char *)0x0) goto LAB_0001e5fc;\n    cVar8 = *name;\n  }\n  else {\n    cVar8 = *name;\n  }\n  if ((cVar8 != '\0') && (pcVar4 = last_component(name), name == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = name;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}\n\n" (function_definition "void check_extension(char *file,size_t filelen,char e)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar8;\n  char *name;\n  char *pcVar9;\n  undefined *puVar10;\n  char tmp [2];\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = last_component(file);\n  name = pcVar4;\n  sVar5 = base_len(pcVar4);\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < sVar5) {\n    cVar8 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    name = file;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(file,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar8;\n    if (uVar7 < sVar5) {\n      pcVar9 = file + filelen;\n      name = (char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7);\n      if (name == (char *)0x0) {\n        pcVar9 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;\n      }\n      *pcVar9 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (name == (char *)0x0) {\n    name = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (name == (char *)0x0) goto LAB_0001e5fc;\n    cVar8 = *name;\n  }\n  else {\n    cVar8 = *name;\n  }\n  if ((cVar8 != '\0') && (pcVar4 = last_component(name), name == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = name;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}" primitive_type (function_declarator "check_extension(char *file,size_t filelen,char e)" identifier (parameter_list "(char *file,size_t filelen,char e)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "size_t filelen" primitive_type identifier) , (parameter_declaration "char e" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar8;\n  char *name;\n  char *pcVar9;\n  undefined *puVar10;\n  char tmp [2];\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = last_component(file);\n  name = pcVar4;\n  sVar5 = base_len(pcVar4);\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < sVar5) {\n    cVar8 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    name = file;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(file,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar8;\n    if (uVar7 < sVar5) {\n      pcVar9 = file + filelen;\n      name = (char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7);\n      if (name == (char *)0x0) {\n        pcVar9 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;\n      }\n      *pcVar9 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (name == (char *)0x0) {\n    name = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (name == (char *)0x0) goto LAB_0001e5fc;\n    cVar8 = *name;\n  }\n  else {\n    cVar8 = *name;\n  }\n  if ((cVar8 != '\0') && (pcVar4 = last_component(name), name == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = name;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "char cVar8;" primitive_type identifier ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "char tmp [2];" primitive_type (array_declarator "tmp [2]" identifier [ number_literal ]) ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000466a0" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_000466a0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000466a0" * (cast_expression "(int *)PTR___stack_chk_guard_000466a0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar4 = last_component(file);" (assignment_expression "pcVar4 = last_component(file)" identifier = (call_expression "last_component(file)" identifier (argument_list "(file)" ( identifier )))) ;) (expression_statement "name = pcVar4;" (assignment_expression "name = pcVar4" identifier = identifier) ;) (expression_statement "sVar5 = base_len(pcVar4);" (assignment_expression "sVar5 = base_len(pcVar4)" identifier = (call_expression "base_len(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "puVar10 = PTR___errno_location_0004656c;" (assignment_expression "puVar10 = PTR___errno_location_0004656c" identifier = identifier) ;) (if_statement "if (0xe < sVar5) {\n    cVar8 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    name = file;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(file,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar8;\n    if (uVar7 < sVar5) {\n      pcVar9 = file + filelen;\n      name = (char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7);\n      if (name == (char *)0x0) {\n        pcVar9 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;\n      }\n      *pcVar9 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }" if (parenthesized_expression "(0xe < sVar5)" ( (binary_expression "0xe < sVar5" number_literal < identifier) )) (compound_statement "{\n    cVar8 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    name = file;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(file,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar8;\n    if (uVar7 < sVar5) {\n      pcVar9 = file + filelen;\n      name = (char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7);\n      if (name == (char *)0x0) {\n        pcVar9 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;\n      }\n      *pcVar9 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }" { (expression_statement "cVar8 = pcVar4[1];" (assignment_expression "cVar8 = pcVar4[1]" identifier = (subscript_expression "pcVar4[1]" identifier [ number_literal ])) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "*pcVar4 = '.';" (assignment_expression "*pcVar4 = '.'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'.'" ' character ')) ;) (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "piVar6 = (int *)(*(code *)puVar10)();" (assignment_expression "piVar6 = (int *)(*(code *)puVar10)()" identifier = (cast_expression "(int *)(*(code *)puVar10)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar10)()" (parenthesized_expression "(*(code *)puVar10)" ( (pointer_expression "*(code *)puVar10" * (cast_expression "(code *)puVar10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "name = file;" (assignment_expression "name = file" identifier = identifier) ;) (expression_statement "uVar7 = (*(code *)PTR_pathconf_000466f4)(file,3);" (assignment_expression "uVar7 = (*(code *)PTR_pathconf_000466f4)(file,3)" identifier = (call_expression "(*(code *)PTR_pathconf_000466f4)(file,3)" (parenthesized_expression "(*(code *)PTR_pathconf_000466f4)" ( (pointer_expression "*(code *)PTR_pathconf_000466f4" * (cast_expression "(code *)PTR_pathconf_000466f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(file,3)" ( identifier , number_literal )))) ;) (if_statement "if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }" if (parenthesized_expression "(((int)uVar7 < 0) && (*piVar6 != 0))" ( (binary_expression "((int)uVar7 < 0) && (*piVar6 != 0)" (parenthesized_expression "((int)uVar7 < 0)" ( (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) && (parenthesized_expression "(*piVar6 != 0)" ( (binary_expression "*piVar6 != 0" (pointer_expression "*piVar6" * identifier) != number_literal) ))) )) (compound_statement "{\n      uVar7 = 0xff;\n    }" { (expression_statement "uVar7 = 0xff;" (assignment_expression "uVar7 = 0xff" identifier = number_literal) ;) })) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "pcVar4[1] = cVar8;" (assignment_expression "pcVar4[1] = cVar8" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar7 < sVar5) {\n      pcVar9 = file + filelen;\n      name = (char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7);\n      if (name == (char *)0x0) {\n        pcVar9 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;\n      }\n      *pcVar9 = '~';\n      pcVar4[uVar7] = '\0';\n    }" if (parenthesized_expression "(uVar7 < sVar5)" ( (binary_expression "uVar7 < sVar5" identifier < identifier) )) (compound_statement "{\n      pcVar9 = file + filelen;\n      name = (char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7);\n      if (name == (char *)0x0) {\n        pcVar9 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;\n      }\n      *pcVar9 = '~';\n      pcVar4[uVar7] = '\0';\n    }" { (expression_statement "pcVar9 = file + filelen;" (assignment_expression "pcVar9 = file + filelen" identifier = (binary_expression "file + filelen" identifier + identifier)) ;) (expression_statement "name = (char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7);" (assignment_expression "name = (char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7)" identifier = (cast_expression "(char *)(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)((uint)((int)pcVar9 - (int)pcVar4) < uVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)((int)pcVar9 - (int)pcVar4) < uVar7)" ( (binary_expression "(uint)((int)pcVar9 - (int)pcVar4) < uVar7" (call_expression "(uint)((int)pcVar9 - (int)pcVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar9 - (int)pcVar4)" ( (binary_expression "(int)pcVar9 - (int)pcVar4" (cast_expression "(int)pcVar9" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < identifier) ))))) ;) (if_statement "if (name == (char *)0x0) {\n        pcVar9 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;\n      }" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar9 = pcVar4 + (uVar7 - 1);\n      }" { (expression_statement "pcVar9 = pcVar4 + (uVar7 - 1);" (assignment_expression "pcVar9 = pcVar4 + (uVar7 - 1)" identifier = (binary_expression "pcVar4 + (uVar7 - 1)" identifier + (parenthesized_expression "(uVar7 - 1)" ( (binary_expression "uVar7 - 1" identifier - number_literal) )))) ;) }) (else_clause "else {\n        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;\n      }" else (compound_statement "{\n        uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;\n      }" { (expression_statement "uVar7 = ((int)pcVar9 - (int)pcVar4) + 1;" (assignment_expression "uVar7 = ((int)pcVar9 - (int)pcVar4) + 1" identifier = (binary_expression "((int)pcVar9 - (int)pcVar4) + 1" (parenthesized_expression "((int)pcVar9 - (int)pcVar4)" ( (binary_expression "(int)pcVar9 - (int)pcVar4" (cast_expression "(int)pcVar9" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal)) ;) }))) (expression_statement "*pcVar9 = '~';" (assignment_expression "*pcVar9 = '~'" (pointer_expression "*pcVar9" * identifier) = (char_literal "'~'" ' character ')) ;) (expression_statement "pcVar4[uVar7] = '\0';" (assignment_expression "pcVar4[uVar7] = '\0'" (subscript_expression "pcVar4[uVar7]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) })) (if_statement "if (iVar3 == *(int *)puVar2) {\n    return;\n  }" if (parenthesized_expression "(iVar3 == *(int *)puVar2)" ( (binary_expression "iVar3 == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar10 = PTR___stack_chk_fail_00046664;" (assignment_expression "puVar10 = PTR___stack_chk_fail_00046664" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00046664)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046664)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046664)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00046664" * (cast_expression "(code *)PTR___stack_chk_fail_00046664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (name == (char *)0x0) {\n    name = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (name == (char *)0x0) goto LAB_0001e5fc;\n    cVar8 = *name;\n  }\n  else {\n    cVar8 = *name;\n  }" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    name = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (name == (char *)0x0) goto LAB_0001e5fc;\n    cVar8 = *name;\n  }" { (expression_statement "name = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);" (assignment_expression "name = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" identifier = (cast_expression "(char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" (parenthesized_expression "(**(code **)(puVar10 + 0x28030))" ( (pointer_expression "**(code **)(puVar10 + 0x28030)" * (pointer_expression "*(code **)(puVar10 + 0x28030)" * (cast_expression "(code **)(puVar10 + 0x28030)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x28030)" ( (binary_expression "puVar10 + 0x28030" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" ( (binary_expression "*(int *)(puVar10 + 0x27b7c) + 0x3d08" (pointer_expression "*(int *)(puVar10 + 0x27b7c)" * (cast_expression "(int *)(puVar10 + 0x27b7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x27b7c)" ( (binary_expression "puVar10 + 0x27b7c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (name == (char *)0x0) goto LAB_0001e5fc;" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001e5fc;" goto statement_identifier ;)) (expression_statement "cVar8 = *name;" (assignment_expression "cVar8 = *name" identifier = (pointer_expression "*name" * identifier)) ;) }) (else_clause "else {\n    cVar8 = *name;\n  }" else (compound_statement "{\n    cVar8 = *name;\n  }" { (expression_statement "cVar8 = *name;" (assignment_expression "cVar8 = *name" identifier = (pointer_expression "*name" * identifier)) ;) }))) (if_statement "if ((cVar8 != '\0') && (pcVar4 = last_component(name), name == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = name;\n    return;\n  }" if (parenthesized_expression "((cVar8 != '\0') && (pcVar4 = last_component(name), name == pcVar4))" ( (binary_expression "(cVar8 != '\0') && (pcVar4 = last_component(name), name == pcVar4)" (parenthesized_expression "(cVar8 != '\0')" ( (binary_expression "cVar8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(pcVar4 = last_component(name), name == pcVar4)" ( (comma_expression "pcVar4 = last_component(name), name == pcVar4" (assignment_expression "pcVar4 = last_component(name)" identifier = (call_expression "last_component(name)" identifier (argument_list "(name)" ( identifier )))) , (binary_expression "name == pcVar4" identifier == identifier)) ))) )) (compound_statement "{\n    **(undefined4 **)(puVar10 + 0x27ca8) = name;\n    return;\n  }" { (expression_statement "**(undefined4 **)(puVar10 + 0x27ca8) = name;" (assignment_expression "**(undefined4 **)(puVar10 + 0x27ca8) = name" (pointer_expression "**(undefined4 **)(puVar10 + 0x27ca8)" * (pointer_expression "*(undefined4 **)(puVar10 + 0x27ca8)" * (cast_expression "(undefined4 **)(puVar10 + 0x27ca8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x27ca8)" ( (binary_expression "puVar10 + 0x27ca8" identifier + number_literal) ))))) = identifier) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;" statement_identifier : (expression_statement "**(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;" (assignment_expression "**(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04" (pointer_expression "**(int **)(puVar10 + 0x27ca8)" * (pointer_expression "*(int **)(puVar10 + 0x27ca8)" * (cast_expression "(int **)(puVar10 + 0x27ca8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x27ca8)" ( (binary_expression "puVar10 + 0x27ca8" identifier + number_literal) ))))) = (binary_expression "*(int *)(puVar10 + 0x27b7c) + 0x3d04" (pointer_expression "*(int *)(puVar10 + 0x27b7c)" * (cast_expression "(int *)(puVar10 + 0x27b7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x27b7c)" ( (binary_expression "puVar10 + 0x27b7c" identifier + number_literal) )))) + number_literal)) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001e470(char *param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar9;\n  char *pcVar8;\n  undefined *puVar10;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = (char *)last_component();\n  pcVar8 = pcVar4;\n  uVar5 = base_len();\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }\n  if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}\n\n" (function_definition "void FUN_0001e470(char *param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar9;\n  char *pcVar8;\n  undefined *puVar10;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = (char *)last_component();\n  pcVar8 = pcVar4;\n  uVar5 = base_len();\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }\n  if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}" primitive_type (function_declarator "FUN_0001e470(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar9;\n  char *pcVar8;\n  undefined *puVar10;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = (char *)last_component();\n  pcVar8 = pcVar4;\n  uVar5 = base_len();\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }\n  if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "char cVar9;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000466a0" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_000466a0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000466a0" * (cast_expression "(int *)PTR___stack_chk_guard_000466a0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar4 = (char *)last_component();" (assignment_expression "pcVar4 = (char *)last_component()" identifier = (cast_expression "(char *)last_component()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "last_component()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pcVar8 = pcVar4;" (assignment_expression "pcVar8 = pcVar4" identifier = identifier) ;) (expression_statement "uVar5 = base_len();" (assignment_expression "uVar5 = base_len()" identifier = (call_expression "base_len()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar10 = PTR___errno_location_0004656c;" (assignment_expression "puVar10 = PTR___errno_location_0004656c" identifier = identifier) ;) (if_statement "if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }" if (parenthesized_expression "(0xe < uVar5)" ( (binary_expression "0xe < uVar5" number_literal < identifier) )) (compound_statement "{\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }" { (expression_statement "cVar9 = pcVar4[1];" (assignment_expression "cVar9 = pcVar4[1]" identifier = (subscript_expression "pcVar4[1]" identifier [ number_literal ])) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "*pcVar4 = '.';" (assignment_expression "*pcVar4 = '.'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'.'" ' character ')) ;) (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "piVar6 = (int *)(*(code *)puVar10)();" (assignment_expression "piVar6 = (int *)(*(code *)puVar10)()" identifier = (cast_expression "(int *)(*(code *)puVar10)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar10)()" (parenthesized_expression "(*(code *)puVar10)" ( (pointer_expression "*(code *)puVar10" * (cast_expression "(code *)puVar10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "pcVar8 = param_1;" (assignment_expression "pcVar8 = param_1" identifier = identifier) ;) (expression_statement "uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);" (assignment_expression "uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3)" identifier = (call_expression "(*(code *)PTR_pathconf_000466f4)(param_1,3)" (parenthesized_expression "(*(code *)PTR_pathconf_000466f4)" ( (pointer_expression "*(code *)PTR_pathconf_000466f4" * (cast_expression "(code *)PTR_pathconf_000466f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,3)" ( identifier , number_literal )))) ;) (if_statement "if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }" if (parenthesized_expression "(((int)uVar7 < 0) && (*piVar6 != 0))" ( (binary_expression "((int)uVar7 < 0) && (*piVar6 != 0)" (parenthesized_expression "((int)uVar7 < 0)" ( (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) && (parenthesized_expression "(*piVar6 != 0)" ( (binary_expression "*piVar6 != 0" (pointer_expression "*piVar6" * identifier) != number_literal) ))) )) (compound_statement "{\n      uVar7 = 0xff;\n    }" { (expression_statement "uVar7 = 0xff;" (assignment_expression "uVar7 = 0xff" identifier = number_literal) ;) })) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "pcVar4[1] = cVar9;" (assignment_expression "pcVar4[1] = cVar9" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }" if (parenthesized_expression "(uVar7 < uVar5)" ( (binary_expression "uVar7 < uVar5" identifier < identifier) )) (compound_statement "{\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }" { (expression_statement "param_1 = param_1 + param_2;" (assignment_expression "param_1 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (expression_statement "pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);" (assignment_expression "pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7)" identifier = (cast_expression "(char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)((int)param_1 - (int)pcVar4) < uVar7)" ( (binary_expression "(uint)((int)param_1 - (int)pcVar4) < uVar7" (call_expression "(uint)((int)param_1 - (int)pcVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_1 - (int)pcVar4)" ( (binary_expression "(int)param_1 - (int)pcVar4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < identifier) ))))) ;) (if_statement "if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_1 = pcVar4 + (uVar7 - 1);\n      }" { (expression_statement "param_1 = pcVar4 + (uVar7 - 1);" (assignment_expression "param_1 = pcVar4 + (uVar7 - 1)" identifier = (binary_expression "pcVar4 + (uVar7 - 1)" identifier + (parenthesized_expression "(uVar7 - 1)" ( (binary_expression "uVar7 - 1" identifier - number_literal) )))) ;) }) (else_clause "else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }" else (compound_statement "{\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }" { (expression_statement "uVar7 = ((int)param_1 - (int)pcVar4) + 1;" (assignment_expression "uVar7 = ((int)param_1 - (int)pcVar4) + 1" identifier = (binary_expression "((int)param_1 - (int)pcVar4) + 1" (parenthesized_expression "((int)param_1 - (int)pcVar4)" ( (binary_expression "(int)param_1 - (int)pcVar4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal)) ;) }))) (expression_statement "*param_1 = '~';" (assignment_expression "*param_1 = '~'" (pointer_expression "*param_1" * identifier) = (char_literal "'~'" ' character ')) ;) (expression_statement "pcVar4[uVar7] = '\0';" (assignment_expression "pcVar4[uVar7] = '\0'" (subscript_expression "pcVar4[uVar7]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) })) (if_statement "if (iVar3 == *(int *)puVar2) {\n    return;\n  }" if (parenthesized_expression "(iVar3 == *(int *)puVar2)" ( (binary_expression "iVar3 == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar10 = PTR___stack_chk_fail_00046664;" (assignment_expression "puVar10 = PTR___stack_chk_fail_00046664" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00046664)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046664)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046664)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00046664" * (cast_expression "(code *)PTR___stack_chk_fail_00046664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }" { (expression_statement "pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);" (assignment_expression "pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" identifier = (cast_expression "(char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" (parenthesized_expression "(**(code **)(puVar10 + 0x28030))" ( (pointer_expression "**(code **)(puVar10 + 0x28030)" * (pointer_expression "*(code **)(puVar10 + 0x28030)" * (cast_expression "(code **)(puVar10 + 0x28030)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x28030)" ( (binary_expression "puVar10 + 0x28030" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" ( (binary_expression "*(int *)(puVar10 + 0x27b7c) + 0x3d08" (pointer_expression "*(int *)(puVar10 + 0x27b7c)" * (cast_expression "(int *)(puVar10 + 0x27b7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x27b7c)" ( (binary_expression "puVar10 + 0x27b7c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001e5fc;" goto statement_identifier ;)) (expression_statement "cVar9 = *pcVar8;" (assignment_expression "cVar9 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) }) (else_clause "else {\n    cVar9 = *pcVar8;\n  }" else (compound_statement "{\n    cVar9 = *pcVar8;\n  }" { (expression_statement "cVar9 = *pcVar8;" (assignment_expression "cVar9 = *pcVar8" identifier = (pointer_expression "*pcVar8" * identifier)) ;) }))) (if_statement "if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }" if (parenthesized_expression "((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4))" ( (binary_expression "(cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)" (parenthesized_expression "(cVar9 != '\0')" ( (binary_expression "cVar9 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)" ( (comma_expression "pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4" (assignment_expression "pcVar4 = (char *)last_component(pcVar8)" identifier = (cast_expression "(char *)last_component(pcVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "last_component(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))))) , (binary_expression "pcVar8 == pcVar4" identifier == identifier)) ))) )) (compound_statement "{\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }" { (expression_statement "**(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;" (assignment_expression "**(undefined4 **)(puVar10 + 0x27ca8) = pcVar8" (pointer_expression "**(undefined4 **)(puVar10 + 0x27ca8)" * (pointer_expression "*(undefined4 **)(puVar10 + 0x27ca8)" * (cast_expression "(undefined4 **)(puVar10 + 0x27ca8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x27ca8)" ( (binary_expression "puVar10 + 0x27ca8" identifier + number_literal) ))))) = identifier) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;" statement_identifier : (expression_statement "**(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;" (assignment_expression "**(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04" (pointer_expression "**(int **)(puVar10 + 0x27ca8)" * (pointer_expression "*(int **)(puVar10 + 0x27ca8)" * (cast_expression "(int **)(puVar10 + 0x27ca8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x27ca8)" ( (binary_expression "puVar10 + 0x27ca8" identifier + number_literal) ))))) = (binary_expression "*(int *)(puVar10 + 0x27b7c) + 0x3d04" (pointer_expression "*(int *)(puVar10 + 0x27b7c)" * (cast_expression "(int *)(puVar10 + 0x27b7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x27b7c)" ( (binary_expression "puVar10 + 0x27b7c" identifier + number_literal) )))) + number_literal)) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) < IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) + LIT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (char_literal ' escape_sequence ')) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) , (binary_expression IDENT == IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = IDENT) ;) (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;)) (return_statement return ;) })))
(function_definition "void FUN_0001e470(char *param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar9;\n  char *pcVar8;\n  undefined *puVar10;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = (char *)last_component();\n  pcVar8 = pcVar4;\n  uVar5 = base_len();\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }\n  if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001e470(char *param_1,int param_2)" (identifier "FUN_0001e470") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  int *piVar6;\n  uint uVar7;\n  char cVar9;\n  char *pcVar8;\n  undefined *puVar10;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;\n  pcVar4 = (char *)last_component();\n  pcVar8 = pcVar4;\n  uVar5 = base_len();\n  puVar10 = PTR___errno_location_0004656c;\n  if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }\n  if (iVar3 == *(int *)puVar2) {\n    return;\n  }\n  puVar10 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }\n  if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }\nLAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "char cVar9;" (primitive_type "char") (identifier "cVar9") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000466a0" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_000466a0")) (; ";")) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_000466a0" (identifier "iVar3") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000466a0" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000466a0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000466a0")))) (; ";")) (expression_statement "pcVar4 = (char *)last_component();" (assignment_expression "pcVar4 = (char *)last_component()" (identifier "pcVar4") (= "=") (cast_expression "(char *)last_component()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "last_component()" (identifier "last_component") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "pcVar8 = pcVar4;" (assignment_expression "pcVar8 = pcVar4" (identifier "pcVar8") (= "=") (identifier "pcVar4")) (; ";")) (expression_statement "uVar5 = base_len();" (assignment_expression "uVar5 = base_len()" (identifier "uVar5") (= "=") (call_expression "base_len()" (identifier "base_len") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar10 = PTR___errno_location_0004656c;" (assignment_expression "puVar10 = PTR___errno_location_0004656c" (identifier "puVar10") (= "=") (identifier "PTR___errno_location_0004656c")) (; ";")) (if_statement "if (0xe < uVar5) {\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }" (if "if") (parenthesized_expression "(0xe < uVar5)" (( "(") (binary_expression "0xe < uVar5" (number_literal "0xe") (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n    cVar9 = pcVar4[1];\n    cVar1 = *pcVar4;\n    *pcVar4 = '.';\n    pcVar4[1] = '\0';\n    piVar6 = (int *)(*(code *)puVar10)();\n    *piVar6 = 0;\n    pcVar8 = param_1;\n    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);\n    if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }\n    *pcVar4 = cVar1;\n    pcVar4[1] = cVar9;\n    if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }\n  }" ({ "{") (expression_statement "cVar9 = pcVar4[1];" (assignment_expression "cVar9 = pcVar4[1]" (identifier "cVar9") (= "=") (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" (identifier "cVar1") (= "=") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4"))) (; ";")) (expression_statement "*pcVar4 = '.';" (assignment_expression "*pcVar4 = '.'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (char_literal "'.'" (' "'") (character ".") (' "'"))) (; ";")) (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "piVar6 = (int *)(*(code *)puVar10)();" (assignment_expression "piVar6 = (int *)(*(code *)puVar10)()" (identifier "piVar6") (= "=") (cast_expression "(int *)(*(code *)puVar10)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)puVar10)()" (parenthesized_expression "(*(code *)puVar10)" (( "(") (pointer_expression "*(code *)puVar10" (* "*") (cast_expression "(code *)puVar10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar10"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar8 = param_1;" (assignment_expression "pcVar8 = param_1" (identifier "pcVar8") (= "=") (identifier "param_1")) (; ";")) (expression_statement "uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);" (assignment_expression "uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_pathconf_000466f4)(param_1,3)" (parenthesized_expression "(*(code *)PTR_pathconf_000466f4)" (( "(") (pointer_expression "*(code *)PTR_pathconf_000466f4" (* "*") (cast_expression "(code *)PTR_pathconf_000466f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pathconf_000466f4"))) () ")")) (argument_list "(param_1,3)" (( "(") (identifier "param_1") (, ",") (number_literal "3") () ")")))) (; ";")) (if_statement "if (((int)uVar7 < 0) && (*piVar6 != 0)) {\n      uVar7 = 0xff;\n    }" (if "if") (parenthesized_expression "(((int)uVar7 < 0) && (*piVar6 != 0))" (( "(") (binary_expression "((int)uVar7 < 0) && (*piVar6 != 0)" (parenthesized_expression "((int)uVar7 < 0)" (( "(") (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (< "<") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*piVar6 != 0)" (( "(") (binary_expression "*piVar6 != 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar7 = 0xff;\n    }" ({ "{") (expression_statement "uVar7 = 0xff;" (assignment_expression "uVar7 = 0xff" (identifier "uVar7") (= "=") (number_literal "0xff")) (; ";")) (} "}"))) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (identifier "cVar1")) (; ";")) (expression_statement "pcVar4[1] = cVar9;" (assignment_expression "pcVar4[1] = cVar9" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "cVar9")) (; ";")) (if_statement "if (uVar7 < uVar5) {\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }" (if "if") (parenthesized_expression "(uVar7 < uVar5)" (( "(") (binary_expression "uVar7 < uVar5" (identifier "uVar7") (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n      param_1 = param_1 + param_2;\n      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);\n      if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }\n      *param_1 = '~';\n      pcVar4[uVar7] = '\0';\n    }" ({ "{") (expression_statement "param_1 = param_1 + param_2;" (assignment_expression "param_1 = param_1 + param_2" (identifier "param_1") (= "=") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2"))) (; ";")) (expression_statement "pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);" (assignment_expression "pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7)" (identifier "pcVar8") (= "=") (cast_expression "(char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((uint)((int)param_1 - (int)pcVar4) < uVar7)" (( "(") (binary_expression "(uint)((int)param_1 - (int)pcVar4) < uVar7" (call_expression "(uint)((int)param_1 - (int)pcVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)param_1 - (int)pcVar4)" (( "(") (binary_expression "(int)param_1 - (int)pcVar4" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (- "-") (cast_expression "(int)pcVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar4"))) () ")"))) (< "<") (identifier "uVar7")) () ")"))))) (; ";")) (if_statement "if (pcVar8 == (char *)0x0) {\n        param_1 = pcVar4 + (uVar7 - 1);\n      }\n      else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }" (if "if") (parenthesized_expression "(pcVar8 == (char *)0x0)" (( "(") (binary_expression "pcVar8 == (char *)0x0" (identifier "pcVar8") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        param_1 = pcVar4 + (uVar7 - 1);\n      }" ({ "{") (expression_statement "param_1 = pcVar4 + (uVar7 - 1);" (assignment_expression "param_1 = pcVar4 + (uVar7 - 1)" (identifier "param_1") (= "=") (binary_expression "pcVar4 + (uVar7 - 1)" (identifier "pcVar4") (+ "+") (parenthesized_expression "(uVar7 - 1)" (( "(") (binary_expression "uVar7 - 1" (identifier "uVar7") (- "-") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }" (else "else") (compound_statement "{\n        uVar7 = ((int)param_1 - (int)pcVar4) + 1;\n      }" ({ "{") (expression_statement "uVar7 = ((int)param_1 - (int)pcVar4) + 1;" (assignment_expression "uVar7 = ((int)param_1 - (int)pcVar4) + 1" (identifier "uVar7") (= "=") (binary_expression "((int)param_1 - (int)pcVar4) + 1" (parenthesized_expression "((int)param_1 - (int)pcVar4)" (( "(") (binary_expression "(int)param_1 - (int)pcVar4" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (- "-") (cast_expression "(int)pcVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar4"))) () ")")) (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "*param_1 = '~';" (assignment_expression "*param_1 = '~'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'~'" (' "'") (character "~") (' "'"))) (; ";")) (expression_statement "pcVar4[uVar7] = '\0';" (assignment_expression "pcVar4[uVar7] = '\0'" (subscript_expression "pcVar4[uVar7]" (identifier "pcVar4") ([ "[") (identifier "uVar7") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar3 == *(int *)puVar2) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar3 == *(int *)puVar2)" (( "(") (binary_expression "iVar3 == *(int *)puVar2" (identifier "iVar3") (== "==") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar10 = PTR___stack_chk_fail_00046664;" (assignment_expression "puVar10 = PTR___stack_chk_fail_00046664" (identifier "puVar10") (= "=") (identifier "PTR___stack_chk_fail_00046664")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00046664)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046664)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046664)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00046664" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00046664" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00046664"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (pcVar8 == (char *)0x0) {\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }\n  else {\n    cVar9 = *pcVar8;\n  }" (if "if") (parenthesized_expression "(pcVar8 == (char *)0x0)" (( "(") (binary_expression "pcVar8 == (char *)0x0" (identifier "pcVar8") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);\n    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;\n    cVar9 = *pcVar8;\n  }" ({ "{") (expression_statement "pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);" (assignment_expression "pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" (identifier "pcVar8") (= "=") (cast_expression "(char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" (parenthesized_expression "(**(code **)(puVar10 + 0x28030))" (( "(") (pointer_expression "**(code **)(puVar10 + 0x28030)" (* "*") (pointer_expression "*(code **)(puVar10 + 0x28030)" (* "*") (cast_expression "(code **)(puVar10 + 0x28030)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x28030)" (( "(") (binary_expression "puVar10 + 0x28030" (identifier "puVar10") (+ "+") (number_literal "0x28030")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar10 + 0x27b7c) + 0x3d08)" (( "(") (binary_expression "*(int *)(puVar10 + 0x27b7c) + 0x3d08" (pointer_expression "*(int *)(puVar10 + 0x27b7c)" (* "*") (cast_expression "(int *)(puVar10 + 0x27b7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 0x27b7c)" (( "(") (binary_expression "puVar10 + 0x27b7c" (identifier "puVar10") (+ "+") (number_literal "0x27b7c")) () ")")))) (+ "+") (number_literal "0x3d08")) () ")"))))) (; ";")) (if_statement "if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;" (if "if") (parenthesized_expression "(pcVar8 == (char *)0x0)" (( "(") (binary_expression "pcVar8 == (char *)0x0" (identifier "pcVar8") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0001e5fc;" (goto "goto") (statement_identifier "LAB_0001e5fc") (; ";"))) (expression_statement "cVar9 = *pcVar8;" (assignment_expression "cVar9 = *pcVar8" (identifier "cVar9") (= "=") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8"))) (; ";")) (} "}")) (else_clause "else {\n    cVar9 = *pcVar8;\n  }" (else "else") (compound_statement "{\n    cVar9 = *pcVar8;\n  }" ({ "{") (expression_statement "cVar9 = *pcVar8;" (assignment_expression "cVar9 = *pcVar8" (identifier "cVar9") (= "=") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8"))) (; ";")) (} "}")))) (if_statement "if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }" (if "if") (parenthesized_expression "((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4))" (( "(") (binary_expression "(cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)" (parenthesized_expression "(cVar9 != '\0')" (( "(") (binary_expression "cVar9 != '\0'" (identifier "cVar9") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)" (( "(") (comma_expression "pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4" (assignment_expression "pcVar4 = (char *)last_component(pcVar8)" (identifier "pcVar4") (= "=") (cast_expression "(char *)last_component(pcVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "last_component(pcVar8)" (identifier "last_component") (argument_list "(pcVar8)" (( "(") (identifier "pcVar8") () ")"))))) (, ",") (binary_expression "pcVar8 == pcVar4" (identifier "pcVar8") (== "==") (identifier "pcVar4"))) () ")"))) () ")")) (compound_statement "{\n    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;\n    return;\n  }" ({ "{") (expression_statement "**(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;" (assignment_expression "**(undefined4 **)(puVar10 + 0x27ca8) = pcVar8" (pointer_expression "**(undefined4 **)(puVar10 + 0x27ca8)" (* "*") (pointer_expression "*(undefined4 **)(puVar10 + 0x27ca8)" (* "*") (cast_expression "(undefined4 **)(puVar10 + 0x27ca8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x27ca8)" (( "(") (binary_expression "puVar10 + 0x27ca8" (identifier "puVar10") (+ "+") (number_literal "0x27ca8")) () ")"))))) (= "=") (identifier "pcVar8")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_0001e5fc:\n  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;" (statement_identifier "LAB_0001e5fc") (: ":") (expression_statement "**(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;" (assignment_expression "**(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04" (pointer_expression "**(int **)(puVar10 + 0x27ca8)" (* "*") (pointer_expression "*(int **)(puVar10 + 0x27ca8)" (* "*") (cast_expression "(int **)(puVar10 + 0x27ca8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0x27ca8)" (( "(") (binary_expression "puVar10 + 0x27ca8" (identifier "puVar10") (+ "+") (number_literal "0x27ca8")) () ")"))))) (= "=") (binary_expression "*(int *)(puVar10 + 0x27b7c) + 0x3d04" (pointer_expression "*(int *)(puVar10 + 0x27b7c)" (* "*") (cast_expression "(int *)(puVar10 + 0x27b7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 0x27b7c)" (( "(") (binary_expression "puVar10 + 0x27b7c" (identifier "puVar10") (+ "+") (number_literal "0x27b7c")) () ")")))) (+ "+") (number_literal "0x3d04"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *var_5,size_t var_6,char e)

{
  char cVar1;
  type_1 *puVar2;
  int var_9;
  char *var_8;
  size_t var_3;
  int *piVar6;
  type_2 var_4;
  char var_11;
  char *var_7;
  char *pcVar9;
  type_1 *var_10;
  char tmp [2];
  
  puVar2 = PTR___stack_chk_guard_000466a0;
  var_9 = *(int *)PTR___stack_chk_guard_000466a0;
  var_8 = var_1(var_5);
  var_7 = var_8;
  var_3 = var_2(var_8);
  var_10 = PTR___errno_location_0004656c;
  if (0xe < var_3) {
    var_11 = var_8[1];
    cVar1 = *var_8;
    *var_8 = '.';
    var_8[1] = '\0';
    piVar6 = (int *)(*(type_3 *)var_10)();
    *piVar6 = 0;
    var_7 = var_5;
    var_4 = (*(type_3 *)PTR_pathconf_000466f4)(var_5,3);
    if (((int)var_4 < 0) && (*piVar6 != 0)) {
      var_4 = 0xff;
    }
    *var_8 = cVar1;
    var_8[1] = var_11;
    if (var_4 < var_3) {
      pcVar9 = var_5 + var_6;
      var_7 = (char *)(type_2)((type_2)((int)pcVar9 - (int)var_8) < var_4);
      if (var_7 == (char *)0x0) {
        pcVar9 = var_8 + (var_4 - 1);
      }
      else {
        var_4 = ((int)pcVar9 - (int)var_8) + 1;
      }
      *pcVar9 = '~';
      var_8[var_4] = '\0';
    }
  }
  if (var_9 == *(int *)puVar2) {
    return;
  }
  var_10 = PTR___stack_chk_fail_00046664;
  (*(type_3 *)PTR___stack_chk_fail_00046664)();
  if (var_7 == (char *)0x0) {
    var_7 = (char *)(**(type_3 **)(var_10 + 0x28030))(*(int *)(var_10 + 0x27b7c) + 0x3d08);
    if (var_7 == (char *)0x0) goto LAB_0001e5fc;
    var_11 = *var_7;
  }
  else {
    var_11 = *var_7;
  }
  if ((var_11 != '\0') && (var_8 = var_1(var_7), var_7 == var_8)) {
    **(type_4 **)(var_10 + 0x27ca8) = var_7;
    return;
  }
LAB_0001e5fc:
  **(int **)(var_10 + 0x27ca8) = *(int *)(var_10 + 0x27b7c) + 0x3d04;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (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: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) right: (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 (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (escape_sequence)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (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))) (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 (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (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: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (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))))) right: (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (return_statement))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (return_statement))))

void MASKED(char *param_1,int param_2)

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  char *pcVar4;
  uint uVar5;
  int *piVar6;
  uint uVar7;
  char cVar9;
  char *pcVar8;
  undefined *puVar10;
  
  puVar2 = PTR___stack_chk_guard_000466a0;
  iVar3 = *(int *)PTR___stack_chk_guard_000466a0;
  pcVar4 = (char *)last_component();
  pcVar8 = pcVar4;
  uVar5 = base_len();
  puVar10 = PTR___errno_location_0004656c;
  if (0xe < uVar5) {
    cVar9 = pcVar4[1];
    cVar1 = *pcVar4;
    *pcVar4 = '.';
    pcVar4[1] = '\0';
    piVar6 = (int *)(*(code *)puVar10)();
    *piVar6 = 0;
    pcVar8 = param_1;
    uVar7 = (*(code *)PTR_pathconf_000466f4)(param_1,3);
    if (((int)uVar7 < 0) && (*piVar6 != 0)) {
      uVar7 = 0xff;
    }
    *pcVar4 = cVar1;
    pcVar4[1] = cVar9;
    if (uVar7 < uVar5) {
      param_1 = param_1 + param_2;
      pcVar8 = (char *)(uint)((uint)((int)param_1 - (int)pcVar4) < uVar7);
      if (pcVar8 == (char *)0x0) {
        param_1 = pcVar4 + (uVar7 - 1);
      }
      else {
        uVar7 = ((int)param_1 - (int)pcVar4) + 1;
      }
      *param_1 = '~';
      pcVar4[uVar7] = '\0';
    }
  }
  if (iVar3 == *(int *)puVar2) {
    return;
  }
  puVar10 = PTR___stack_chk_fail_00046664;
  (*(code *)PTR___stack_chk_fail_00046664)();
  if (pcVar8 == (char *)0x0) {
    pcVar8 = (char *)(**(code **)(puVar10 + 0x28030))(*(int *)(puVar10 + 0x27b7c) + 0x3d08);
    if (pcVar8 == (char *)0x0) goto LAB_0001e5fc;
    cVar9 = *pcVar8;
  }
  else {
    cVar9 = *pcVar8;
  }
  if ((cVar9 != '\0') && (pcVar4 = (char *)last_component(pcVar8), pcVar8 == pcVar4)) {
    **(undefined4 **)(puVar10 + 0x27ca8) = pcVar8;
    return;
  }
LAB_0001e5fc:
  **(int **)(puVar10 + 0x27ca8) = *(int *)(puVar10 + 0x27b7c) + 0x3d04;
  return;
}

