
_Bool copy_attr(char *src_path,int src_fd,char *dst_path,int dst_fd,cp_options *x)

{
  bool bVar1;
  undefined *puVar2;
  int iVar3;
  undefined *puVar4;
  error_context *peVar5;
  char cVar6;
  int iVar7;
  error_context ctx;
  
  puVar2 = PTR___stack_chk_guard_000466a0;
  iVar7 = *(int *)PTR___stack_chk_guard_000466a0;
  peVar5 = (error_context *)(uint)x->preserve_security_context;
  if ((x->data_copy_required == false) || (x->require_preserve_xattr != false)) {
    cVar6 = '\x01';
    if (peVar5 == (error_context *)0x0) {
      cVar6 = x->set_security_context;
    }
    peVar5 = (error_context *)0x1;
    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x69dc);
LAB_0001680c:
    if ((src_fd < 0) || (dst_fd < 0)) goto LAB_00016870;
    if (cVar6 == '\0') {
      puVar4 = (undefined *)0x0;
      goto LAB_00016840;
    }
  }
  else {
    if (x->reduce_diagnostics == false) {
      bVar1 = peVar5 == (error_context *)0x0;
      peVar5 = (error_context *)0x1;
      if (bVar1) goto LAB_000168f0;
      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);
      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);
      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);
      if (src_fd < 0) goto LAB_0001687c;
      peVar5 = (error_context *)0x1;
    }
    else {
      if (peVar5 == (error_context *)0x0) {
LAB_000168f0:
        cVar6 = x->set_security_context;
        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);
        goto LAB_0001680c;
      }
      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);
      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);
      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);
      if (src_fd < 0) goto LAB_0001687c;
      peVar5 = (error_context *)0x0;
    }
    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);
    if (dst_fd < 0) {
LAB_00016870:
      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);
      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);
      goto LAB_0001687c;
    }
  }
  puVar4 = PTR_00046144 + 0x6f00;
LAB_00016840:
  ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);
  ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);
  if (peVar5 != (error_context *)0x0) {
    peVar5 = &ctx;
  }
  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(src_path,src_fd,dst_path,dst_fd,puVar4,peVar5);
  while (iVar7 != *(int *)puVar2) {
    (*(code *)PTR___stack_chk_fail_00046664)();
LAB_0001687c:
    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();
  }
  return iVar3 == 0;
}



bool FUN_00016764(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)

{
  bool bVar1;
  undefined *puVar2;
  int iVar3;
  undefined *puVar4;
  undefined **ppuVar5;
  char cVar6;
  undefined *local_18;
  undefined *local_14;
  undefined *local_10;
  int local_c;
  
  puVar2 = PTR___stack_chk_guard_000466a0;
  local_c = *(int *)PTR___stack_chk_guard_000466a0;
  ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);
  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {
    cVar6 = '\x01';
    if (ppuVar5 == (undefined **)0x0) {
      cVar6 = *(char *)(param_5 + 0x21);
    }
    ppuVar5 = (undefined **)0x1;
    local_18 = PTR_00046144 + 0x69dc;
LAB_0001680c:
    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;
    if (cVar6 == '\0') {
      puVar4 = (undefined *)0x0;
      goto LAB_00016840;
    }
  }
  else {
    if (*(char *)(param_5 + 0x29) == '\0') {
      bVar1 = ppuVar5 == (undefined **)0x0;
      ppuVar5 = (undefined **)0x1;
      if (bVar1) goto LAB_000168f0;
      local_18 = PTR_00046144 + 0x6938;
      local_14 = PTR_00046144 + 0x6548;
      local_10 = PTR_00046144 + 0x6540;
      if (param_2 < 0) goto LAB_0001687c;
      ppuVar5 = (undefined **)0x1;
    }
    else {
      if (ppuVar5 == (undefined **)0x0) {
LAB_000168f0:
        cVar6 = *(char *)(param_5 + 0x21);
        local_18 = PTR_00046144 + 0x6938;
        goto LAB_0001680c;
      }
      local_18 = PTR_00046144 + 0x6938;
      local_14 = PTR_00046144 + 0x6548;
      local_10 = PTR_00046144 + 0x6540;
      if (param_2 < 0) goto LAB_0001687c;
      ppuVar5 = (undefined **)0x0;
    }
    local_18 = PTR_00046144 + 0x6938;
    if (param_4 < 0) {
LAB_00016870:
      local_10 = PTR_00046144 + 0x6540;
      local_14 = PTR_00046144 + 0x6548;
      goto LAB_0001687c;
    }
  }
  puVar4 = PTR_00046144 + 0x6f00;
LAB_00016840:
  local_10 = PTR_00046144 + 0x6540;
  local_14 = PTR_00046144 + 0x6548;
  if (ppuVar5 != (undefined **)0x0) {
    ppuVar5 = &local_18;
  }
  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);
  while (local_c != *(int *)puVar2) {
    (*(code *)PTR___stack_chk_fail_00046664)();
LAB_0001687c:
    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();
  }
  return iVar3 == 0;
}


lui gp,0x3
addiu gp,gp,0x79ac
addu gp,gp,t9
addiu sp,sp,-0x38
or t1,a2,zero
lw v0,0x48(sp)
sw s0,0x30(sp)
lw s0,-0x7a70(gp)
sw gp,0x18(sp)
sw ra,0x34(sp)
lbu a2,0x23(v0)
lw t0,0x0(s0)
lbu v1,0x25(v0)
sw t0,0x2c(sp)
beq a2,zero,0x000167f4
_nop
lbu a2,0x28(v0)
bne a2,zero,0x000167f4
_nop
lbu a2,0x29(v0)
beq a2,zero,0x000168ac
_nop
beq v1,zero,0x000168f0
_nop
lw v0,-0x7fcc(gp)
addiu v0,v0,0x6938
sw v0,0x20(sp)
lw v0,-0x7fcc(gp)
addiu v0,v0,0x6548
sw v0,0x24(sp)
lw v0,-0x7fcc(gp)
addiu v0,v0,0x6540
bltz a1,0x00016928
_sw v0,0x28(sp)
b 0x000168e0
_or v1,zero,zero
bne v1,zero,0x00016800
_li a2,0x1
lbu a2,0x21(v0)
lw v0,-0x7fcc(gp)
li v1,0x1
addiu v0,v0,0x69dc
sw v0,0x20(sp)
lw v0,-0x7fcc(gp)
addiu v0,v0,0x6548
sw v0,0x24(sp)
lw v0,-0x7fcc(gp)
addiu v0,v0,0x6540
bltz a1,0x00016868
_sw v0,0x28(sp)
bltz a3,0x00016868
_nop
bne a2,zero,0x000168e8
_lw v0,-0x7fcc(gp)
or v0,zero,zero
beq v1,zero,0x0001684c
_nop
addiu v1,sp,0x20
lw t9,-0x7bb0(gp)
or a2,t1,zero
sw v1,0x14(sp)
jalr t9
_sw v0,0x10(sp)
b 0x0001688c
_lw gp,0x18(sp)
bne a2,zero,0x00016900
_nop
bne v1,zero,0x0001687c
_addiu a3,sp,0x20
or a3,zero,zero
lw t9,-0x7bd0(gp)
jalr t9
_or a1,t1,zero
lw gp,0x18(sp)
lw a0,0x2c(sp)
sltiu v0,v0,0x1
lw v1,0x0(s0)
bne a0,v1,0x0001691c
_lw ra,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x38
beq v1,zero,0x000168f0
_li v1,0x1
lw v0,-0x7fcc(gp)
addiu v0,v0,0x6938
sw v0,0x20(sp)
lw v0,-0x7fcc(gp)
addiu v0,v0,0x6548
sw v0,0x24(sp)
lw v0,-0x7fcc(gp)
addiu v0,v0,0x6540
bltz a1,0x0001690c
_sw v0,0x28(sp)
li v1,0x1
bltz a3,0x00016900
_lw v0,-0x7fcc(gp)
b 0x00016840
_addiu v0,v0,0x6f00
lbu a2,0x21(v0)
lw v0,-0x7fcc(gp)
b 0x0001680c
_addiu v0,v0,0x6938
lw a2,-0x7fcc(gp)
b 0x00016870
_addiu a2,a2,0x6f00
lw a2,-0x7fcc(gp)
addiu a3,sp,0x20
b 0x0001687c
_addiu a2,a2,0x6f00
lw t9,-0x7aac(gp)
jalr t9
_nop
lw a2,-0x7fcc(gp)
or a3,zero,zero
b 0x0001687c
_addiu a2,a2,0x6f00
(translation_unit "bool FUN_00016764(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined **ppuVar5;\n  char cVar6;\n  undefined *local_18;\n  undefined *local_14;\n  undefined *local_10;\n  int local_c;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  local_c = *(int *)PTR___stack_chk_guard_000466a0;\n  ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;\n  local_14 = PTR_00046144 + 0x6548;\n  if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);\n  while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}\n\n" (function_definition "bool FUN_00016764(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined **ppuVar5;\n  char cVar6;\n  undefined *local_18;\n  undefined *local_14;\n  undefined *local_10;\n  int local_c;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  local_c = *(int *)PTR___stack_chk_guard_000466a0;\n  ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;\n  local_14 = PTR_00046144 + 0x6548;\n  if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);\n  while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}" primitive_type (function_declarator "FUN_00016764(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined **ppuVar5;\n  char cVar6;\n  undefined *local_18;\n  undefined *local_14;\n  undefined *local_10;\n  int local_c;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  local_c = *(int *)PTR___stack_chk_guard_000466a0;\n  ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;\n  local_14 = PTR_00046144 + 0x6548;\n  if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);\n  while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "undefined *local_18;" type_identifier (pointer_declarator "*local_18" * identifier) ;) (declaration "undefined *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (declaration "undefined *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000466a0" identifier = identifier) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "local_c = *(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 "ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);" (assignment_expression "ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25)" identifier = (binary_expression "(undefined **)(uint)*(byte *)(param_5 + 0x25)" (cast_expression "(undefined **)(uint)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(param_5 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x25)" ( (binary_expression "param_5 + 0x25" identifier + number_literal) ))))) ;) (if_statement "if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }" if (parenthesized_expression "((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0'))" ( (binary_expression "(*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')" (parenthesized_expression "(*(char *)(param_5 + 0x23) == '\0')" ( (binary_expression "*(char *)(param_5 + 0x23) == '\0'" (pointer_expression "*(char *)(param_5 + 0x23)" * (cast_expression "(char *)(param_5 + 0x23)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x23)" ( (binary_expression "param_5 + 0x23" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*(char *)(param_5 + 0x28) != '\0')" ( (binary_expression "*(char *)(param_5 + 0x28) != '\0'" (pointer_expression "*(char *)(param_5 + 0x28)" * (cast_expression "(char *)(param_5 + 0x28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x28)" ( (binary_expression "param_5 + 0x28" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }" { (expression_statement "cVar6 = '\x01';" (assignment_expression "cVar6 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) (if_statement "if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }" if (parenthesized_expression "(ppuVar5 == (undefined **)0x0)" ( (binary_expression "ppuVar5 == (undefined **)0x0" identifier == (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      cVar6 = *(char *)(param_5 + 0x21);\n    }" { (expression_statement "cVar6 = *(char *)(param_5 + 0x21);" (assignment_expression "cVar6 = *(char *)(param_5 + 0x21)" identifier = (pointer_expression "*(char *)(param_5 + 0x21)" * (cast_expression "(char *)(param_5 + 0x21)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x21)" ( (binary_expression "param_5 + 0x21" identifier + number_literal) ))))) ;) })) (expression_statement "ppuVar5 = (undefined **)0x1;" (assignment_expression "ppuVar5 = (undefined **)0x1" identifier = (cast_expression "(undefined **)0x1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "local_18 = PTR_00046144 + 0x69dc;" (assignment_expression "local_18 = PTR_00046144 + 0x69dc" identifier = (binary_expression "PTR_00046144 + 0x69dc" identifier + number_literal)) ;) (labeled_statement "LAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;" statement_identifier : (if_statement "if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;" if (parenthesized_expression "((param_2 < 0) || (param_4 < 0))" ( (binary_expression "(param_2 < 0) || (param_4 < 0)" (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) || (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) ))) )) (goto_statement "goto LAB_00016870;" goto statement_identifier ;))) (if_statement "if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }" if (parenthesized_expression "(cVar6 == '\0')" ( (binary_expression "cVar6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }" { (expression_statement "puVar4 = (undefined *)0x0;" (assignment_expression "puVar4 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00016840;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }" else (compound_statement "{\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }" { (if_statement "if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }" if (parenthesized_expression "(*(char *)(param_5 + 0x29) == '\0')" ( (binary_expression "*(char *)(param_5 + 0x29) == '\0'" (pointer_expression "*(char *)(param_5 + 0x29)" * (cast_expression "(char *)(param_5 + 0x29)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x29)" ( (binary_expression "param_5 + 0x29" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }" { (expression_statement "bVar1 = ppuVar5 == (undefined **)0x0;" (assignment_expression "bVar1 = ppuVar5 == (undefined **)0x0" identifier = (binary_expression "ppuVar5 == (undefined **)0x0" identifier == (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal))) ;) (expression_statement "ppuVar5 = (undefined **)0x1;" (assignment_expression "ppuVar5 = (undefined **)0x1" identifier = (cast_expression "(undefined **)0x1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (if_statement "if (bVar1) goto LAB_000168f0;" if (parenthesized_expression "(bVar1)" ( identifier )) (goto_statement "goto LAB_000168f0;" goto statement_identifier ;)) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" identifier = (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal)) ;) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" identifier = (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal)) ;) (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" identifier = (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal)) ;) (if_statement "if (param_2 < 0) goto LAB_0001687c;" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001687c;" goto statement_identifier ;)) (expression_statement "ppuVar5 = (undefined **)0x1;" (assignment_expression "ppuVar5 = (undefined **)0x1" identifier = (cast_expression "(undefined **)0x1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }) (else_clause "else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }" else (compound_statement "{\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }" { (if_statement "if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }" if (parenthesized_expression "(ppuVar5 == (undefined **)0x0)" ( (binary_expression "ppuVar5 == (undefined **)0x0" identifier == (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }" { (labeled_statement "LAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);" statement_identifier : (expression_statement "cVar6 = *(char *)(param_5 + 0x21);" (assignment_expression "cVar6 = *(char *)(param_5 + 0x21)" identifier = (pointer_expression "*(char *)(param_5 + 0x21)" * (cast_expression "(char *)(param_5 + 0x21)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x21)" ( (binary_expression "param_5 + 0x21" identifier + number_literal) ))))) ;)) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" identifier = (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal)) ;) (goto_statement "goto LAB_0001680c;" goto statement_identifier ;) })) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" identifier = (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal)) ;) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" identifier = (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal)) ;) (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" identifier = (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal)) ;) (if_statement "if (param_2 < 0) goto LAB_0001687c;" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001687c;" goto statement_identifier ;)) (expression_statement "ppuVar5 = (undefined **)0x0;" (assignment_expression "ppuVar5 = (undefined **)0x0" identifier = (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }))) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" identifier = (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal)) ;) (if_statement "if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }" if (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }" { (labeled_statement "LAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;" statement_identifier : (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" identifier = (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal)) ;)) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" identifier = (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal)) ;) (goto_statement "goto LAB_0001687c;" goto statement_identifier ;) })) }))) (expression_statement "puVar4 = PTR_00046144 + 0x6f00;" (assignment_expression "puVar4 = PTR_00046144 + 0x6f00" identifier = (binary_expression "PTR_00046144 + 0x6f00" identifier + number_literal)) ;) (labeled_statement "LAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;" statement_identifier : (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" identifier = (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal)) ;)) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" identifier = (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal)) ;) (if_statement "if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }" if (parenthesized_expression "(ppuVar5 != (undefined **)0x0)" ( (binary_expression "ppuVar5 != (undefined **)0x0" identifier != (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    ppuVar5 = &local_18;\n  }" { (expression_statement "ppuVar5 = &local_18;" (assignment_expression "ppuVar5 = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) })) (expression_statement "iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);" (assignment_expression "iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5)" identifier = (call_expression "(*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5)" (parenthesized_expression "(*(code *)PTR_attr_copy_fd_00046560)" ( (pointer_expression "*(code *)PTR_attr_copy_fd_00046560" * (cast_expression "(code *)PTR_attr_copy_fd_00046560" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3,param_4,puVar4,ppuVar5)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (while_statement "while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }" while (parenthesized_expression "(local_c != *(int *)puVar2)" ( (binary_expression "local_c != *(int *)puVar2" identifier != (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }" { (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 "()" ( ))) ;) (labeled_statement "LAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();" statement_identifier : (expression_statement "iVar3 = (*(code *)PTR_attr_copy_file_00046540)();" (assignment_expression "iVar3 = (*(code *)PTR_attr_copy_file_00046540)()" identifier = (call_expression "(*(code *)PTR_attr_copy_file_00046540)()" (parenthesized_expression "(*(code *)PTR_attr_copy_file_00046540)" ( (pointer_expression "*(code *)PTR_attr_copy_file_00046540" * (cast_expression "(code *)PTR_attr_copy_file_00046540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;)) })) (return_statement "return iVar3 == 0;" return (binary_expression "iVar3 == 0" identifier == number_literal) ;) })))
(translation_unit "_Bool copy_attr(char *src_path,int src_fd,char *dst_path,int dst_fd,cp_options *x)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  error_context *peVar5;\n  char cVar6;\n  int iVar7;\n  error_context ctx;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000466a0;\n  peVar5 = (error_context *)(uint)x->preserve_security_context;\n  if ((x->data_copy_required == false) || (x->require_preserve_xattr != false)) {\n    cVar6 = '\x01';\n    if (peVar5 == (error_context *)0x0) {\n      cVar6 = x->set_security_context;\n    }\n    peVar5 = (error_context *)0x1;\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x69dc);\nLAB_0001680c:\n    if ((src_fd < 0) || (dst_fd < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (x->reduce_diagnostics == false) {\n      bVar1 = peVar5 == (error_context *)0x0;\n      peVar5 = (error_context *)0x1;\n      if (bVar1) goto LAB_000168f0;\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x1;\n    }\n    else {\n      if (peVar5 == (error_context *)0x0) {\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x0;\n    }\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n    if (dst_fd < 0) {\nLAB_00016870:\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n  ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n  if (peVar5 != (error_context *)0x0) {\n    peVar5 = &ctx;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(src_path,src_fd,dst_path,dst_fd,puVar4,peVar5);\n  while (iVar7 != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}\n\n" (function_definition "_Bool copy_attr(char *src_path,int src_fd,char *dst_path,int dst_fd,cp_options *x)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  error_context *peVar5;\n  char cVar6;\n  int iVar7;\n  error_context ctx;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000466a0;\n  peVar5 = (error_context *)(uint)x->preserve_security_context;\n  if ((x->data_copy_required == false) || (x->require_preserve_xattr != false)) {\n    cVar6 = '\x01';\n    if (peVar5 == (error_context *)0x0) {\n      cVar6 = x->set_security_context;\n    }\n    peVar5 = (error_context *)0x1;\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x69dc);\nLAB_0001680c:\n    if ((src_fd < 0) || (dst_fd < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (x->reduce_diagnostics == false) {\n      bVar1 = peVar5 == (error_context *)0x0;\n      peVar5 = (error_context *)0x1;\n      if (bVar1) goto LAB_000168f0;\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x1;\n    }\n    else {\n      if (peVar5 == (error_context *)0x0) {\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x0;\n    }\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n    if (dst_fd < 0) {\nLAB_00016870:\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n  ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n  if (peVar5 != (error_context *)0x0) {\n    peVar5 = &ctx;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(src_path,src_fd,dst_path,dst_fd,puVar4,peVar5);\n  while (iVar7 != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}" type_identifier (function_declarator "copy_attr(char *src_path,int src_fd,char *dst_path,int dst_fd,cp_options *x)" identifier (parameter_list "(char *src_path,int src_fd,char *dst_path,int dst_fd,cp_options *x)" ( (parameter_declaration "char *src_path" primitive_type (pointer_declarator "*src_path" * identifier)) , (parameter_declaration "int src_fd" primitive_type identifier) , (parameter_declaration "char *dst_path" primitive_type (pointer_declarator "*dst_path" * identifier)) , (parameter_declaration "int dst_fd" primitive_type identifier) , (parameter_declaration "cp_options *x" type_identifier (pointer_declarator "*x" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  error_context *peVar5;\n  char cVar6;\n  int iVar7;\n  error_context ctx;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000466a0;\n  peVar5 = (error_context *)(uint)x->preserve_security_context;\n  if ((x->data_copy_required == false) || (x->require_preserve_xattr != false)) {\n    cVar6 = '\x01';\n    if (peVar5 == (error_context *)0x0) {\n      cVar6 = x->set_security_context;\n    }\n    peVar5 = (error_context *)0x1;\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x69dc);\nLAB_0001680c:\n    if ((src_fd < 0) || (dst_fd < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (x->reduce_diagnostics == false) {\n      bVar1 = peVar5 == (error_context *)0x0;\n      peVar5 = (error_context *)0x1;\n      if (bVar1) goto LAB_000168f0;\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x1;\n    }\n    else {\n      if (peVar5 == (error_context *)0x0) {\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x0;\n    }\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n    if (dst_fd < 0) {\nLAB_00016870:\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n  ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n  if (peVar5 != (error_context *)0x0) {\n    peVar5 = &ctx;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(src_path,src_fd,dst_path,dst_fd,puVar4,peVar5);\n  while (iVar7 != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "error_context *peVar5;" type_identifier (pointer_declarator "*peVar5" * identifier) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "error_context ctx;" type_identifier identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000466a0" identifier = identifier) ;) (expression_statement "iVar7 = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "iVar7 = *(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 "peVar5 = (error_context *)(uint)x->preserve_security_context;" (assignment_expression "peVar5 = (error_context *)(uint)x->preserve_security_context" identifier = (cast_expression "(error_context *)(uint)x->preserve_security_context" ( (type_descriptor "error_context *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)x->preserve_security_context" ( (type_descriptor "uint" type_identifier) ) (field_expression "x->preserve_security_context" identifier -> field_identifier)))) ;) (if_statement "if ((x->data_copy_required == false) || (x->require_preserve_xattr != false)) {\n    cVar6 = '\x01';\n    if (peVar5 == (error_context *)0x0) {\n      cVar6 = x->set_security_context;\n    }\n    peVar5 = (error_context *)0x1;\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x69dc);\nLAB_0001680c:\n    if ((src_fd < 0) || (dst_fd < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (x->reduce_diagnostics == false) {\n      bVar1 = peVar5 == (error_context *)0x0;\n      peVar5 = (error_context *)0x1;\n      if (bVar1) goto LAB_000168f0;\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x1;\n    }\n    else {\n      if (peVar5 == (error_context *)0x0) {\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x0;\n    }\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n    if (dst_fd < 0) {\nLAB_00016870:\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      goto LAB_0001687c;\n    }\n  }" if (parenthesized_expression "((x->data_copy_required == false) || (x->require_preserve_xattr != false))" ( (binary_expression "(x->data_copy_required == false) || (x->require_preserve_xattr != false)" (parenthesized_expression "(x->data_copy_required == false)" ( (binary_expression "x->data_copy_required == false" (field_expression "x->data_copy_required" identifier -> field_identifier) == false) )) || (parenthesized_expression "(x->require_preserve_xattr != false)" ( (binary_expression "x->require_preserve_xattr != false" (field_expression "x->require_preserve_xattr" identifier -> field_identifier) != false) ))) )) (compound_statement "{\n    cVar6 = '\x01';\n    if (peVar5 == (error_context *)0x0) {\n      cVar6 = x->set_security_context;\n    }\n    peVar5 = (error_context *)0x1;\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x69dc);\nLAB_0001680c:\n    if ((src_fd < 0) || (dst_fd < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }" { (expression_statement "cVar6 = '\x01';" (assignment_expression "cVar6 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) (if_statement "if (peVar5 == (error_context *)0x0) {\n      cVar6 = x->set_security_context;\n    }" if (parenthesized_expression "(peVar5 == (error_context *)0x0)" ( (binary_expression "peVar5 == (error_context *)0x0" identifier == (cast_expression "(error_context *)0x0" ( (type_descriptor "error_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      cVar6 = x->set_security_context;\n    }" { (expression_statement "cVar6 = x->set_security_context;" (assignment_expression "cVar6 = x->set_security_context" identifier = (field_expression "x->set_security_context" identifier -> field_identifier)) ;) })) (expression_statement "peVar5 = (error_context *)0x1;" (assignment_expression "peVar5 = (error_context *)0x1" identifier = (cast_expression "(error_context *)0x1" ( (type_descriptor "error_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x69dc);" (assignment_expression "ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x69dc)" (field_expression "ctx.error" identifier . field_identifier) = (cast_expression "(_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x69dc)" ( (type_descriptor "_func_void_error_context_ptr_char_ptr_varargs *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x69dc)" ( (binary_expression "PTR_00046144 + 0x69dc" identifier + number_literal) )))) ;) (labeled_statement "LAB_0001680c:\n    if ((src_fd < 0) || (dst_fd < 0)) goto LAB_00016870;" statement_identifier : (if_statement "if ((src_fd < 0) || (dst_fd < 0)) goto LAB_00016870;" if (parenthesized_expression "((src_fd < 0) || (dst_fd < 0))" ( (binary_expression "(src_fd < 0) || (dst_fd < 0)" (parenthesized_expression "(src_fd < 0)" ( (binary_expression "src_fd < 0" identifier < number_literal) )) || (parenthesized_expression "(dst_fd < 0)" ( (binary_expression "dst_fd < 0" identifier < number_literal) ))) )) (goto_statement "goto LAB_00016870;" goto statement_identifier ;))) (if_statement "if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }" if (parenthesized_expression "(cVar6 == '\0')" ( (binary_expression "cVar6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }" { (expression_statement "puVar4 = (undefined *)0x0;" (assignment_expression "puVar4 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00016840;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (x->reduce_diagnostics == false) {\n      bVar1 = peVar5 == (error_context *)0x0;\n      peVar5 = (error_context *)0x1;\n      if (bVar1) goto LAB_000168f0;\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x1;\n    }\n    else {\n      if (peVar5 == (error_context *)0x0) {\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x0;\n    }\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n    if (dst_fd < 0) {\nLAB_00016870:\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      goto LAB_0001687c;\n    }\n  }" else (compound_statement "{\n    if (x->reduce_diagnostics == false) {\n      bVar1 = peVar5 == (error_context *)0x0;\n      peVar5 = (error_context *)0x1;\n      if (bVar1) goto LAB_000168f0;\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x1;\n    }\n    else {\n      if (peVar5 == (error_context *)0x0) {\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x0;\n    }\n    ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n    if (dst_fd < 0) {\nLAB_00016870:\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      goto LAB_0001687c;\n    }\n  }" { (if_statement "if (x->reduce_diagnostics == false) {\n      bVar1 = peVar5 == (error_context *)0x0;\n      peVar5 = (error_context *)0x1;\n      if (bVar1) goto LAB_000168f0;\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x1;\n    }\n    else {\n      if (peVar5 == (error_context *)0x0) {\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x0;\n    }" if (parenthesized_expression "(x->reduce_diagnostics == false)" ( (binary_expression "x->reduce_diagnostics == false" (field_expression "x->reduce_diagnostics" identifier -> field_identifier) == false) )) (compound_statement "{\n      bVar1 = peVar5 == (error_context *)0x0;\n      peVar5 = (error_context *)0x1;\n      if (bVar1) goto LAB_000168f0;\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x1;\n    }" { (expression_statement "bVar1 = peVar5 == (error_context *)0x0;" (assignment_expression "bVar1 = peVar5 == (error_context *)0x0" identifier = (binary_expression "peVar5 == (error_context *)0x0" identifier == (cast_expression "(error_context *)0x0" ( (type_descriptor "error_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "peVar5 = (error_context *)0x1;" (assignment_expression "peVar5 = (error_context *)0x1" identifier = (cast_expression "(error_context *)0x1" ( (type_descriptor "error_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (bVar1) goto LAB_000168f0;" if (parenthesized_expression "(bVar1)" ( identifier )) (goto_statement "goto LAB_000168f0;" goto statement_identifier ;)) (expression_statement "ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);" (assignment_expression "ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938)" (field_expression "ctx.error" identifier . field_identifier) = (cast_expression "(_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938)" ( (type_descriptor "_func_void_error_context_ptr_char_ptr_varargs *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6938)" ( (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal) )))) ;) (expression_statement "ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);" (assignment_expression "ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548)" (field_expression "ctx.quote" identifier . field_identifier) = (cast_expression "(_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548)" ( (type_descriptor "_func_char_ptr_error_context_ptr_char_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6548)" ( (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal) )))) ;) (expression_statement "ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);" (assignment_expression "ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540)" (field_expression "ctx.quote_free" identifier . field_identifier) = (cast_expression "(_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540)" ( (type_descriptor "_func_void_error_context_ptr_char_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6540)" ( (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal) )))) ;) (if_statement "if (src_fd < 0) goto LAB_0001687c;" if (parenthesized_expression "(src_fd < 0)" ( (binary_expression "src_fd < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001687c;" goto statement_identifier ;)) (expression_statement "peVar5 = (error_context *)0x1;" (assignment_expression "peVar5 = (error_context *)0x1" identifier = (cast_expression "(error_context *)0x1" ( (type_descriptor "error_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      if (peVar5 == (error_context *)0x0) {\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x0;\n    }" else (compound_statement "{\n      if (peVar5 == (error_context *)0x0) {\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }\n      ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      if (src_fd < 0) goto LAB_0001687c;\n      peVar5 = (error_context *)0x0;\n    }" { (if_statement "if (peVar5 == (error_context *)0x0) {\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }" if (parenthesized_expression "(peVar5 == (error_context *)0x0)" ( (binary_expression "peVar5 == (error_context *)0x0" identifier == (cast_expression "(error_context *)0x0" ( (type_descriptor "error_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000168f0:\n        cVar6 = x->set_security_context;\n        ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);\n        goto LAB_0001680c;\n      }" { (labeled_statement "LAB_000168f0:\n        cVar6 = x->set_security_context;" statement_identifier : (expression_statement "cVar6 = x->set_security_context;" (assignment_expression "cVar6 = x->set_security_context" identifier = (field_expression "x->set_security_context" identifier -> field_identifier)) ;)) (expression_statement "ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);" (assignment_expression "ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938)" (field_expression "ctx.error" identifier . field_identifier) = (cast_expression "(_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938)" ( (type_descriptor "_func_void_error_context_ptr_char_ptr_varargs *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6938)" ( (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal) )))) ;) (goto_statement "goto LAB_0001680c;" goto statement_identifier ;) })) (expression_statement "ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);" (assignment_expression "ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938)" (field_expression "ctx.error" identifier . field_identifier) = (cast_expression "(_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938)" ( (type_descriptor "_func_void_error_context_ptr_char_ptr_varargs *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6938)" ( (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal) )))) ;) (expression_statement "ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);" (assignment_expression "ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548)" (field_expression "ctx.quote" identifier . field_identifier) = (cast_expression "(_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548)" ( (type_descriptor "_func_char_ptr_error_context_ptr_char_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6548)" ( (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal) )))) ;) (expression_statement "ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);" (assignment_expression "ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540)" (field_expression "ctx.quote_free" identifier . field_identifier) = (cast_expression "(_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540)" ( (type_descriptor "_func_void_error_context_ptr_char_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6540)" ( (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal) )))) ;) (if_statement "if (src_fd < 0) goto LAB_0001687c;" if (parenthesized_expression "(src_fd < 0)" ( (binary_expression "src_fd < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001687c;" goto statement_identifier ;)) (expression_statement "peVar5 = (error_context *)0x0;" (assignment_expression "peVar5 = (error_context *)0x0" identifier = (cast_expression "(error_context *)0x0" ( (type_descriptor "error_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938);" (assignment_expression "ctx.error = (_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938)" (field_expression "ctx.error" identifier . field_identifier) = (cast_expression "(_func_void_error_context_ptr_char_ptr_varargs *)(PTR_00046144 + 0x6938)" ( (type_descriptor "_func_void_error_context_ptr_char_ptr_varargs *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6938)" ( (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal) )))) ;) (if_statement "if (dst_fd < 0) {\nLAB_00016870:\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      goto LAB_0001687c;\n    }" if (parenthesized_expression "(dst_fd < 0)" ( (binary_expression "dst_fd < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00016870:\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);\n      ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);\n      goto LAB_0001687c;\n    }" { (labeled_statement "LAB_00016870:\n      ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);" statement_identifier : (expression_statement "ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);" (assignment_expression "ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540)" (field_expression "ctx.quote_free" identifier . field_identifier) = (cast_expression "(_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540)" ( (type_descriptor "_func_void_error_context_ptr_char_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6540)" ( (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal) )))) ;)) (expression_statement "ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);" (assignment_expression "ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548)" (field_expression "ctx.quote" identifier . field_identifier) = (cast_expression "(_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548)" ( (type_descriptor "_func_char_ptr_error_context_ptr_char_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6548)" ( (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal) )))) ;) (goto_statement "goto LAB_0001687c;" goto statement_identifier ;) })) }))) (expression_statement "puVar4 = PTR_00046144 + 0x6f00;" (assignment_expression "puVar4 = PTR_00046144 + 0x6f00" identifier = (binary_expression "PTR_00046144 + 0x6f00" identifier + number_literal)) ;) (labeled_statement "LAB_00016840:\n  ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);" statement_identifier : (expression_statement "ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540);" (assignment_expression "ctx.quote_free = (_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540)" (field_expression "ctx.quote_free" identifier . field_identifier) = (cast_expression "(_func_void_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6540)" ( (type_descriptor "_func_void_error_context_ptr_char_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6540)" ( (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal) )))) ;)) (expression_statement "ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548);" (assignment_expression "ctx.quote = (_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548)" (field_expression "ctx.quote" identifier . field_identifier) = (cast_expression "(_func_char_ptr_error_context_ptr_char_ptr *)(PTR_00046144 + 0x6548)" ( (type_descriptor "_func_char_ptr_error_context_ptr_char_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00046144 + 0x6548)" ( (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal) )))) ;) (if_statement "if (peVar5 != (error_context *)0x0) {\n    peVar5 = &ctx;\n  }" if (parenthesized_expression "(peVar5 != (error_context *)0x0)" ( (binary_expression "peVar5 != (error_context *)0x0" identifier != (cast_expression "(error_context *)0x0" ( (type_descriptor "error_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    peVar5 = &ctx;\n  }" { (expression_statement "peVar5 = &ctx;" (assignment_expression "peVar5 = &ctx" identifier = (pointer_expression "&ctx" & identifier)) ;) })) (expression_statement "iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(src_path,src_fd,dst_path,dst_fd,puVar4,peVar5);" (assignment_expression "iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(src_path,src_fd,dst_path,dst_fd,puVar4,peVar5)" identifier = (call_expression "(*(code *)PTR_attr_copy_fd_00046560)(src_path,src_fd,dst_path,dst_fd,puVar4,peVar5)" (parenthesized_expression "(*(code *)PTR_attr_copy_fd_00046560)" ( (pointer_expression "*(code *)PTR_attr_copy_fd_00046560" * (cast_expression "(code *)PTR_attr_copy_fd_00046560" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(src_path,src_fd,dst_path,dst_fd,puVar4,peVar5)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (while_statement "while (iVar7 != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }" while (parenthesized_expression "(iVar7 != *(int *)puVar2)" ( (binary_expression "iVar7 != *(int *)puVar2" identifier != (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }" { (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 "()" ( ))) ;) (labeled_statement "LAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();" statement_identifier : (expression_statement "iVar3 = (*(code *)PTR_attr_copy_file_00046540)();" (assignment_expression "iVar3 = (*(code *)PTR_attr_copy_file_00046540)()" identifier = (call_expression "(*(code *)PTR_attr_copy_file_00046540)()" (parenthesized_expression "(*(code *)PTR_attr_copy_file_00046540)" ( (pointer_expression "*(code *)PTR_attr_copy_file_00046540" * (cast_expression "(code *)PTR_attr_copy_file_00046540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;)) })) (return_statement "return iVar3 == 0;" return (binary_expression "iVar3 == 0" identifier == number_literal) ;) })))
(translation_unit "bool FUN_00016764(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined **ppuVar5;\n  char cVar6;\n  undefined *local_18;\n  undefined *local_14;\n  undefined *local_10;\n  int local_c;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  local_c = *(int *)PTR___stack_chk_guard_000466a0;\n  ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;\n  local_14 = PTR_00046144 + 0x6548;\n  if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);\n  while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}\n\n" (function_definition "bool FUN_00016764(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined **ppuVar5;\n  char cVar6;\n  undefined *local_18;\n  undefined *local_14;\n  undefined *local_10;\n  int local_c;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  local_c = *(int *)PTR___stack_chk_guard_000466a0;\n  ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;\n  local_14 = PTR_00046144 + 0x6548;\n  if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);\n  while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}" primitive_type (function_declarator "FUN_00016764(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined **ppuVar5;\n  char cVar6;\n  undefined *local_18;\n  undefined *local_14;\n  undefined *local_10;\n  int local_c;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  local_c = *(int *)PTR___stack_chk_guard_000466a0;\n  ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;\n  local_14 = PTR_00046144 + 0x6548;\n  if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);\n  while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "undefined *local_18;" type_identifier (pointer_declarator "*local_18" * identifier) ;) (declaration "undefined *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (declaration "undefined *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000466a0" identifier = identifier) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "local_c = *(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 "ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);" (assignment_expression "ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25)" identifier = (binary_expression "(undefined **)(uint)*(byte *)(param_5 + 0x25)" (cast_expression "(undefined **)(uint)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(param_5 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x25)" ( (binary_expression "param_5 + 0x25" identifier + number_literal) ))))) ;) (if_statement "if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }" if (parenthesized_expression "((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0'))" ( (binary_expression "(*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')" (parenthesized_expression "(*(char *)(param_5 + 0x23) == '\0')" ( (binary_expression "*(char *)(param_5 + 0x23) == '\0'" (pointer_expression "*(char *)(param_5 + 0x23)" * (cast_expression "(char *)(param_5 + 0x23)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x23)" ( (binary_expression "param_5 + 0x23" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*(char *)(param_5 + 0x28) != '\0')" ( (binary_expression "*(char *)(param_5 + 0x28) != '\0'" (pointer_expression "*(char *)(param_5 + 0x28)" * (cast_expression "(char *)(param_5 + 0x28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x28)" ( (binary_expression "param_5 + 0x28" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }" { (expression_statement "cVar6 = '\x01';" (assignment_expression "cVar6 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) (if_statement "if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }" if (parenthesized_expression "(ppuVar5 == (undefined **)0x0)" ( (binary_expression "ppuVar5 == (undefined **)0x0" identifier == (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      cVar6 = *(char *)(param_5 + 0x21);\n    }" { (expression_statement "cVar6 = *(char *)(param_5 + 0x21);" (assignment_expression "cVar6 = *(char *)(param_5 + 0x21)" identifier = (pointer_expression "*(char *)(param_5 + 0x21)" * (cast_expression "(char *)(param_5 + 0x21)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x21)" ( (binary_expression "param_5 + 0x21" identifier + number_literal) ))))) ;) })) (expression_statement "ppuVar5 = (undefined **)0x1;" (assignment_expression "ppuVar5 = (undefined **)0x1" identifier = (cast_expression "(undefined **)0x1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "local_18 = PTR_00046144 + 0x69dc;" (assignment_expression "local_18 = PTR_00046144 + 0x69dc" identifier = (binary_expression "PTR_00046144 + 0x69dc" identifier + number_literal)) ;) (labeled_statement "LAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;" statement_identifier : (if_statement "if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;" if (parenthesized_expression "((param_2 < 0) || (param_4 < 0))" ( (binary_expression "(param_2 < 0) || (param_4 < 0)" (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) || (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) ))) )) (goto_statement "goto LAB_00016870;" goto statement_identifier ;))) (if_statement "if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }" if (parenthesized_expression "(cVar6 == '\0')" ( (binary_expression "cVar6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }" { (expression_statement "puVar4 = (undefined *)0x0;" (assignment_expression "puVar4 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00016840;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }" else (compound_statement "{\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }" { (if_statement "if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }" if (parenthesized_expression "(*(char *)(param_5 + 0x29) == '\0')" ( (binary_expression "*(char *)(param_5 + 0x29) == '\0'" (pointer_expression "*(char *)(param_5 + 0x29)" * (cast_expression "(char *)(param_5 + 0x29)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x29)" ( (binary_expression "param_5 + 0x29" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }" { (expression_statement "bVar1 = ppuVar5 == (undefined **)0x0;" (assignment_expression "bVar1 = ppuVar5 == (undefined **)0x0" identifier = (binary_expression "ppuVar5 == (undefined **)0x0" identifier == (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal))) ;) (expression_statement "ppuVar5 = (undefined **)0x1;" (assignment_expression "ppuVar5 = (undefined **)0x1" identifier = (cast_expression "(undefined **)0x1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (if_statement "if (bVar1) goto LAB_000168f0;" if (parenthesized_expression "(bVar1)" ( identifier )) (goto_statement "goto LAB_000168f0;" goto statement_identifier ;)) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" identifier = (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal)) ;) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" identifier = (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal)) ;) (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" identifier = (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal)) ;) (if_statement "if (param_2 < 0) goto LAB_0001687c;" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001687c;" goto statement_identifier ;)) (expression_statement "ppuVar5 = (undefined **)0x1;" (assignment_expression "ppuVar5 = (undefined **)0x1" identifier = (cast_expression "(undefined **)0x1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }) (else_clause "else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }" else (compound_statement "{\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }" { (if_statement "if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }" if (parenthesized_expression "(ppuVar5 == (undefined **)0x0)" ( (binary_expression "ppuVar5 == (undefined **)0x0" identifier == (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }" { (labeled_statement "LAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);" statement_identifier : (expression_statement "cVar6 = *(char *)(param_5 + 0x21);" (assignment_expression "cVar6 = *(char *)(param_5 + 0x21)" identifier = (pointer_expression "*(char *)(param_5 + 0x21)" * (cast_expression "(char *)(param_5 + 0x21)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x21)" ( (binary_expression "param_5 + 0x21" identifier + number_literal) ))))) ;)) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" identifier = (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal)) ;) (goto_statement "goto LAB_0001680c;" goto statement_identifier ;) })) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" identifier = (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal)) ;) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" identifier = (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal)) ;) (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" identifier = (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal)) ;) (if_statement "if (param_2 < 0) goto LAB_0001687c;" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0001687c;" goto statement_identifier ;)) (expression_statement "ppuVar5 = (undefined **)0x0;" (assignment_expression "ppuVar5 = (undefined **)0x0" identifier = (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }))) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" identifier = (binary_expression "PTR_00046144 + 0x6938" identifier + number_literal)) ;) (if_statement "if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }" if (parenthesized_expression "(param_4 < 0)" ( (binary_expression "param_4 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }" { (labeled_statement "LAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;" statement_identifier : (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" identifier = (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal)) ;)) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" identifier = (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal)) ;) (goto_statement "goto LAB_0001687c;" goto statement_identifier ;) })) }))) (expression_statement "puVar4 = PTR_00046144 + 0x6f00;" (assignment_expression "puVar4 = PTR_00046144 + 0x6f00" identifier = (binary_expression "PTR_00046144 + 0x6f00" identifier + number_literal)) ;) (labeled_statement "LAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;" statement_identifier : (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" identifier = (binary_expression "PTR_00046144 + 0x6540" identifier + number_literal)) ;)) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" identifier = (binary_expression "PTR_00046144 + 0x6548" identifier + number_literal)) ;) (if_statement "if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }" if (parenthesized_expression "(ppuVar5 != (undefined **)0x0)" ( (binary_expression "ppuVar5 != (undefined **)0x0" identifier != (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    ppuVar5 = &local_18;\n  }" { (expression_statement "ppuVar5 = &local_18;" (assignment_expression "ppuVar5 = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) })) (expression_statement "iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);" (assignment_expression "iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5)" identifier = (call_expression "(*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5)" (parenthesized_expression "(*(code *)PTR_attr_copy_fd_00046560)" ( (pointer_expression "*(code *)PTR_attr_copy_fd_00046560" * (cast_expression "(code *)PTR_attr_copy_fd_00046560" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3,param_4,puVar4,ppuVar5)" ( identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (while_statement "while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }" while (parenthesized_expression "(local_c != *(int *)puVar2)" ( (binary_expression "local_c != *(int *)puVar2" identifier != (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }" { (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 "()" ( ))) ;) (labeled_statement "LAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();" statement_identifier : (expression_statement "iVar3 = (*(code *)PTR_attr_copy_file_00046540)();" (assignment_expression "iVar3 = (*(code *)PTR_attr_copy_file_00046540)()" identifier = (call_expression "(*(code *)PTR_attr_copy_file_00046540)()" (parenthesized_expression "(*(code *)PTR_attr_copy_file_00046540)" ( (pointer_expression "*(code *)PTR_attr_copy_file_00046540" * (cast_expression "(code *)PTR_attr_copy_file_00046540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;)) })) (return_statement "return iVar3 == 0;" return (binary_expression "iVar3 == 0" identifier == number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE 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 (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (goto_statement goto statement_identifier ;))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;)) })) (return_statement return (binary_expression IDENT == LIT) ;) })))
(function_definition "bool FUN_00016764(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined **ppuVar5;\n  char cVar6;\n  undefined *local_18;\n  undefined *local_14;\n  undefined *local_10;\n  int local_c;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  local_c = *(int *)PTR___stack_chk_guard_000466a0;\n  ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;\n  local_14 = PTR_00046144 + 0x6548;\n  if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);\n  while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}" (primitive_type "bool") (function_declarator "FUN_00016764(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)" (identifier "FUN_00016764") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined **ppuVar5;\n  char cVar6;\n  undefined *local_18;\n  undefined *local_14;\n  undefined *local_10;\n  int local_c;\n  \n  puVar2 = PTR___stack_chk_guard_000466a0;\n  local_c = *(int *)PTR___stack_chk_guard_000466a0;\n  ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }\n  puVar4 = PTR_00046144 + 0x6f00;\nLAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;\n  local_14 = PTR_00046144 + 0x6548;\n  if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }\n  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);\n  while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }\n  return iVar3 == 0;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined **ppuVar5;" (type_identifier "undefined") (pointer_declarator "**ppuVar5" (* "*") (pointer_declarator "*ppuVar5" (* "*") (identifier "ppuVar5"))) (; ";")) (declaration "char cVar6;" (primitive_type "char") (identifier "cVar6") (; ";")) (declaration "undefined *local_18;" (type_identifier "undefined") (pointer_declarator "*local_18" (* "*") (identifier "local_18")) (; ";")) (declaration "undefined *local_14;" (type_identifier "undefined") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (declaration "undefined *local_10;" (type_identifier "undefined") (pointer_declarator "*local_10" (* "*") (identifier "local_10")) (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (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 "local_c = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000466a0" (identifier "local_c") (= "=") (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 "ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);" (assignment_expression "ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25)" (identifier "ppuVar5") (= "=") (binary_expression "(undefined **)(uint)*(byte *)(param_5 + 0x25)" (cast_expression "(undefined **)(uint)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(byte *)(param_5 + 0x25)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x25)" (( "(") (binary_expression "param_5 + 0x25" (identifier "param_5") (+ "+") (number_literal "0x25")) () ")"))))) (; ";")) (if_statement "if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }" (if "if") (parenthesized_expression "((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0'))" (( "(") (binary_expression "(*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')" (parenthesized_expression "(*(char *)(param_5 + 0x23) == '\0')" (( "(") (binary_expression "*(char *)(param_5 + 0x23) == '\0'" (pointer_expression "*(char *)(param_5 + 0x23)" (* "*") (cast_expression "(char *)(param_5 + 0x23)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x23)" (( "(") (binary_expression "param_5 + 0x23" (identifier "param_5") (+ "+") (number_literal "0x23")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(*(char *)(param_5 + 0x28) != '\0')" (( "(") (binary_expression "*(char *)(param_5 + 0x28) != '\0'" (pointer_expression "*(char *)(param_5 + 0x28)" (* "*") (cast_expression "(char *)(param_5 + 0x28)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x28)" (( "(") (binary_expression "param_5 + 0x28" (identifier "param_5") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    cVar6 = '\x01';\n    if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }\n    ppuVar5 = (undefined **)0x1;\n    local_18 = PTR_00046144 + 0x69dc;\nLAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;\n    if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }\n  }" ({ "{") (expression_statement "cVar6 = '\x01';" (assignment_expression "cVar6 = '\x01'" (identifier "cVar6") (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (if_statement "if (ppuVar5 == (undefined **)0x0) {\n      cVar6 = *(char *)(param_5 + 0x21);\n    }" (if "if") (parenthesized_expression "(ppuVar5 == (undefined **)0x0)" (( "(") (binary_expression "ppuVar5 == (undefined **)0x0" (identifier "ppuVar5") (== "==") (cast_expression "(undefined **)0x0" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      cVar6 = *(char *)(param_5 + 0x21);\n    }" ({ "{") (expression_statement "cVar6 = *(char *)(param_5 + 0x21);" (assignment_expression "cVar6 = *(char *)(param_5 + 0x21)" (identifier "cVar6") (= "=") (pointer_expression "*(char *)(param_5 + 0x21)" (* "*") (cast_expression "(char *)(param_5 + 0x21)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x21)" (( "(") (binary_expression "param_5 + 0x21" (identifier "param_5") (+ "+") (number_literal "0x21")) () ")"))))) (; ";")) (} "}"))) (expression_statement "ppuVar5 = (undefined **)0x1;" (assignment_expression "ppuVar5 = (undefined **)0x1" (identifier "ppuVar5") (= "=") (cast_expression "(undefined **)0x1" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x1"))) (; ";")) (expression_statement "local_18 = PTR_00046144 + 0x69dc;" (assignment_expression "local_18 = PTR_00046144 + 0x69dc" (identifier "local_18") (= "=") (binary_expression "PTR_00046144 + 0x69dc" (identifier "PTR_00046144") (+ "+") (number_literal "0x69dc"))) (; ";")) (labeled_statement "LAB_0001680c:\n    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;" (statement_identifier "LAB_0001680c") (: ":") (if_statement "if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;" (if "if") (parenthesized_expression "((param_2 < 0) || (param_4 < 0))" (( "(") (binary_expression "(param_2 < 0) || (param_4 < 0)" (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_4 < 0)" (( "(") (binary_expression "param_4 < 0" (identifier "param_4") (< "<") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_00016870;" (goto "goto") (statement_identifier "LAB_00016870") (; ";")))) (if_statement "if (cVar6 == '\0') {\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }" (if "if") (parenthesized_expression "(cVar6 == '\0')" (( "(") (binary_expression "cVar6 == '\0'" (identifier "cVar6") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      puVar4 = (undefined *)0x0;\n      goto LAB_00016840;\n    }" ({ "{") (expression_statement "puVar4 = (undefined *)0x0;" (assignment_expression "puVar4 = (undefined *)0x0" (identifier "puVar4") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (goto_statement "goto LAB_00016840;" (goto "goto") (statement_identifier "LAB_00016840") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }" (else "else") (compound_statement "{\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }\n    local_18 = PTR_00046144 + 0x6938;\n    if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }\n  }" ({ "{") (if_statement "if (*(char *)(param_5 + 0x29) == '\0') {\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }\n    else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_5 + 0x29) == '\0')" (( "(") (binary_expression "*(char *)(param_5 + 0x29) == '\0'" (pointer_expression "*(char *)(param_5 + 0x29)" (* "*") (cast_expression "(char *)(param_5 + 0x29)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x29)" (( "(") (binary_expression "param_5 + 0x29" (identifier "param_5") (+ "+") (number_literal "0x29")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      bVar1 = ppuVar5 == (undefined **)0x0;\n      ppuVar5 = (undefined **)0x1;\n      if (bVar1) goto LAB_000168f0;\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x1;\n    }" ({ "{") (expression_statement "bVar1 = ppuVar5 == (undefined **)0x0;" (assignment_expression "bVar1 = ppuVar5 == (undefined **)0x0" (identifier "bVar1") (= "=") (binary_expression "ppuVar5 == (undefined **)0x0" (identifier "ppuVar5") (== "==") (cast_expression "(undefined **)0x0" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0")))) (; ";")) (expression_statement "ppuVar5 = (undefined **)0x1;" (assignment_expression "ppuVar5 = (undefined **)0x1" (identifier "ppuVar5") (= "=") (cast_expression "(undefined **)0x1" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x1"))) (; ";")) (if_statement "if (bVar1) goto LAB_000168f0;" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (goto_statement "goto LAB_000168f0;" (goto "goto") (statement_identifier "LAB_000168f0") (; ";"))) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" (identifier "local_18") (= "=") (binary_expression "PTR_00046144 + 0x6938" (identifier "PTR_00046144") (+ "+") (number_literal "0x6938"))) (; ";")) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" (identifier "local_14") (= "=") (binary_expression "PTR_00046144 + 0x6548" (identifier "PTR_00046144") (+ "+") (number_literal "0x6548"))) (; ";")) (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" (identifier "local_10") (= "=") (binary_expression "PTR_00046144 + 0x6540" (identifier "PTR_00046144") (+ "+") (number_literal "0x6540"))) (; ";")) (if_statement "if (param_2 < 0) goto LAB_0001687c;" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001687c;" (goto "goto") (statement_identifier "LAB_0001687c") (; ";"))) (expression_statement "ppuVar5 = (undefined **)0x1;" (assignment_expression "ppuVar5 = (undefined **)0x1" (identifier "ppuVar5") (= "=") (cast_expression "(undefined **)0x1" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x1"))) (; ";")) (} "}")) (else_clause "else {\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }" (else "else") (compound_statement "{\n      if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }\n      local_18 = PTR_00046144 + 0x6938;\n      local_14 = PTR_00046144 + 0x6548;\n      local_10 = PTR_00046144 + 0x6540;\n      if (param_2 < 0) goto LAB_0001687c;\n      ppuVar5 = (undefined **)0x0;\n    }" ({ "{") (if_statement "if (ppuVar5 == (undefined **)0x0) {\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }" (if "if") (parenthesized_expression "(ppuVar5 == (undefined **)0x0)" (( "(") (binary_expression "ppuVar5 == (undefined **)0x0" (identifier "ppuVar5") (== "==") (cast_expression "(undefined **)0x0" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);\n        local_18 = PTR_00046144 + 0x6938;\n        goto LAB_0001680c;\n      }" ({ "{") (labeled_statement "LAB_000168f0:\n        cVar6 = *(char *)(param_5 + 0x21);" (statement_identifier "LAB_000168f0") (: ":") (expression_statement "cVar6 = *(char *)(param_5 + 0x21);" (assignment_expression "cVar6 = *(char *)(param_5 + 0x21)" (identifier "cVar6") (= "=") (pointer_expression "*(char *)(param_5 + 0x21)" (* "*") (cast_expression "(char *)(param_5 + 0x21)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x21)" (( "(") (binary_expression "param_5 + 0x21" (identifier "param_5") (+ "+") (number_literal "0x21")) () ")"))))) (; ";"))) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" (identifier "local_18") (= "=") (binary_expression "PTR_00046144 + 0x6938" (identifier "PTR_00046144") (+ "+") (number_literal "0x6938"))) (; ";")) (goto_statement "goto LAB_0001680c;" (goto "goto") (statement_identifier "LAB_0001680c") (; ";")) (} "}"))) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" (identifier "local_18") (= "=") (binary_expression "PTR_00046144 + 0x6938" (identifier "PTR_00046144") (+ "+") (number_literal "0x6938"))) (; ";")) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" (identifier "local_14") (= "=") (binary_expression "PTR_00046144 + 0x6548" (identifier "PTR_00046144") (+ "+") (number_literal "0x6548"))) (; ";")) (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" (identifier "local_10") (= "=") (binary_expression "PTR_00046144 + 0x6540" (identifier "PTR_00046144") (+ "+") (number_literal "0x6540"))) (; ";")) (if_statement "if (param_2 < 0) goto LAB_0001687c;" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001687c;" (goto "goto") (statement_identifier "LAB_0001687c") (; ";"))) (expression_statement "ppuVar5 = (undefined **)0x0;" (assignment_expression "ppuVar5 = (undefined **)0x0" (identifier "ppuVar5") (= "=") (cast_expression "(undefined **)0x0" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0"))) (; ";")) (} "}")))) (expression_statement "local_18 = PTR_00046144 + 0x6938;" (assignment_expression "local_18 = PTR_00046144 + 0x6938" (identifier "local_18") (= "=") (binary_expression "PTR_00046144 + 0x6938" (identifier "PTR_00046144") (+ "+") (number_literal "0x6938"))) (; ";")) (if_statement "if (param_4 < 0) {\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }" (if "if") (parenthesized_expression "(param_4 < 0)" (( "(") (binary_expression "param_4 < 0" (identifier "param_4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;\n      local_14 = PTR_00046144 + 0x6548;\n      goto LAB_0001687c;\n    }" ({ "{") (labeled_statement "LAB_00016870:\n      local_10 = PTR_00046144 + 0x6540;" (statement_identifier "LAB_00016870") (: ":") (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" (identifier "local_10") (= "=") (binary_expression "PTR_00046144 + 0x6540" (identifier "PTR_00046144") (+ "+") (number_literal "0x6540"))) (; ";"))) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" (identifier "local_14") (= "=") (binary_expression "PTR_00046144 + 0x6548" (identifier "PTR_00046144") (+ "+") (number_literal "0x6548"))) (; ";")) (goto_statement "goto LAB_0001687c;" (goto "goto") (statement_identifier "LAB_0001687c") (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar4 = PTR_00046144 + 0x6f00;" (assignment_expression "puVar4 = PTR_00046144 + 0x6f00" (identifier "puVar4") (= "=") (binary_expression "PTR_00046144 + 0x6f00" (identifier "PTR_00046144") (+ "+") (number_literal "0x6f00"))) (; ";")) (labeled_statement "LAB_00016840:\n  local_10 = PTR_00046144 + 0x6540;" (statement_identifier "LAB_00016840") (: ":") (expression_statement "local_10 = PTR_00046144 + 0x6540;" (assignment_expression "local_10 = PTR_00046144 + 0x6540" (identifier "local_10") (= "=") (binary_expression "PTR_00046144 + 0x6540" (identifier "PTR_00046144") (+ "+") (number_literal "0x6540"))) (; ";"))) (expression_statement "local_14 = PTR_00046144 + 0x6548;" (assignment_expression "local_14 = PTR_00046144 + 0x6548" (identifier "local_14") (= "=") (binary_expression "PTR_00046144 + 0x6548" (identifier "PTR_00046144") (+ "+") (number_literal "0x6548"))) (; ";")) (if_statement "if (ppuVar5 != (undefined **)0x0) {\n    ppuVar5 = &local_18;\n  }" (if "if") (parenthesized_expression "(ppuVar5 != (undefined **)0x0)" (( "(") (binary_expression "ppuVar5 != (undefined **)0x0" (identifier "ppuVar5") (!= "!=") (cast_expression "(undefined **)0x0" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    ppuVar5 = &local_18;\n  }" ({ "{") (expression_statement "ppuVar5 = &local_18;" (assignment_expression "ppuVar5 = &local_18" (identifier "ppuVar5") (= "=") (pointer_expression "&local_18" (& "&") (identifier "local_18"))) (; ";")) (} "}"))) (expression_statement "iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);" (assignment_expression "iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5)" (parenthesized_expression "(*(code *)PTR_attr_copy_fd_00046560)" (( "(") (pointer_expression "*(code *)PTR_attr_copy_fd_00046560" (* "*") (cast_expression "(code *)PTR_attr_copy_fd_00046560" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_attr_copy_fd_00046560"))) () ")")) (argument_list "(param_1,param_2,param_3,param_4,puVar4,ppuVar5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "puVar4") (, ",") (identifier "ppuVar5") () ")")))) (; ";")) (while_statement "while (local_c != *(int *)puVar2) {\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }" (while "while") (parenthesized_expression "(local_c != *(int *)puVar2)" (( "(") (binary_expression "local_c != *(int *)puVar2" (identifier "local_c") (!= "!=") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00046664)();\nLAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();\n  }" ({ "{") (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 "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0001687c:\n    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();" (statement_identifier "LAB_0001687c") (: ":") (expression_statement "iVar3 = (*(code *)PTR_attr_copy_file_00046540)();" (assignment_expression "iVar3 = (*(code *)PTR_attr_copy_file_00046540)()" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_attr_copy_file_00046540)()" (parenthesized_expression "(*(code *)PTR_attr_copy_file_00046540)" (( "(") (pointer_expression "*(code *)PTR_attr_copy_file_00046540" (* "*") (cast_expression "(code *)PTR_attr_copy_file_00046540" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_attr_copy_file_00046540"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";"))) (} "}"))) (return_statement "return iVar3 == 0;" (return "return") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) (; ";")) (} "}")))

type_1 function_1(char *src_path,int var_3,char *dst_path,int var_4,type_2 *x)

{
  bool bVar1;
  type_3 *puVar2;
  int var_7;
  type_3 *puVar4;
  type_4 *var_1;
  char var_5;
  int var_6;
  type_4 ctx;
  
  puVar2 = PTR___stack_chk_guard_000466a0;
  var_6 = *(int *)PTR___stack_chk_guard_000466a0;
  var_1 = (type_4 *)(type_5)x->preserve_security_context;
  if ((x->data_copy_required == false) || (x->require_preserve_xattr != false)) {
    var_5 = '\x01';
    if (var_1 == (type_4 *)0x0) {
      var_5 = x->set_security_context;
    }
    var_1 = (type_4 *)0x1;
    ctx.error = (type_6 *)(var_2 + 0x69dc);
LAB_0001680c:
    if ((var_3 < 0) || (var_4 < 0)) goto LAB_00016870;
    if (var_5 == '\0') {
      puVar4 = (type_3 *)0x0;
      goto LAB_00016840;
    }
  }
  else {
    if (x->reduce_diagnostics == false) {
      bVar1 = var_1 == (type_4 *)0x0;
      var_1 = (type_4 *)0x1;
      if (bVar1) goto LAB_000168f0;
      ctx.error = (type_6 *)(var_2 + 0x6938);
      ctx.quote = (type_7 *)(var_2 + 0x6548);
      ctx.quote_free = (type_8 *)(var_2 + 0x6540);
      if (var_3 < 0) goto LAB_0001687c;
      var_1 = (type_4 *)0x1;
    }
    else {
      if (var_1 == (type_4 *)0x0) {
LAB_000168f0:
        var_5 = x->set_security_context;
        ctx.error = (type_6 *)(var_2 + 0x6938);
        goto LAB_0001680c;
      }
      ctx.error = (type_6 *)(var_2 + 0x6938);
      ctx.quote = (type_7 *)(var_2 + 0x6548);
      ctx.quote_free = (type_8 *)(var_2 + 0x6540);
      if (var_3 < 0) goto LAB_0001687c;
      var_1 = (type_4 *)0x0;
    }
    ctx.error = (type_6 *)(var_2 + 0x6938);
    if (var_4 < 0) {
LAB_00016870:
      ctx.quote_free = (type_8 *)(var_2 + 0x6540);
      ctx.quote = (type_7 *)(var_2 + 0x6548);
      goto LAB_0001687c;
    }
  }
  puVar4 = var_2 + 0x6f00;
LAB_00016840:
  ctx.quote_free = (type_8 *)(var_2 + 0x6540);
  ctx.quote = (type_7 *)(var_2 + 0x6548);
  if (var_1 != (type_4 *)0x0) {
    var_1 = &ctx;
  }
  var_7 = (*(type_9 *)PTR_attr_copy_fd_00046560)(src_path,var_3,dst_path,var_4,puVar4,var_1);
  while (var_6 != *(int *)puVar2) {
    (*(type_9 *)PTR___stack_chk_fail_00046664)();
LAB_0001687c:
    var_7 = (*(type_9 *)PTR_attr_copy_file_00046540)();
  }
  return var_7 == 0;
}


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

bool MASKED(undefined4 param_1,int param_2,undefined4 param_3,int param_4,int param_5)

{
  bool bVar1;
  undefined *puVar2;
  int iVar3;
  undefined *puVar4;
  undefined **ppuVar5;
  char cVar6;
  undefined *local_18;
  undefined *local_14;
  undefined *local_10;
  int local_c;
  
  puVar2 = PTR___stack_chk_guard_000466a0;
  local_c = *(int *)PTR___stack_chk_guard_000466a0;
  ppuVar5 = (undefined **)(uint)*(byte *)(param_5 + 0x25);
  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x28) != '\0')) {
    cVar6 = '\x01';
    if (ppuVar5 == (undefined **)0x0) {
      cVar6 = *(char *)(param_5 + 0x21);
    }
    ppuVar5 = (undefined **)0x1;
    local_18 = PTR_00046144 + 0x69dc;
LAB_0001680c:
    if ((param_2 < 0) || (param_4 < 0)) goto LAB_00016870;
    if (cVar6 == '\0') {
      puVar4 = (undefined *)0x0;
      goto LAB_00016840;
    }
  }
  else {
    if (*(char *)(param_5 + 0x29) == '\0') {
      bVar1 = ppuVar5 == (undefined **)0x0;
      ppuVar5 = (undefined **)0x1;
      if (bVar1) goto LAB_000168f0;
      local_18 = PTR_00046144 + 0x6938;
      local_14 = PTR_00046144 + 0x6548;
      local_10 = PTR_00046144 + 0x6540;
      if (param_2 < 0) goto LAB_0001687c;
      ppuVar5 = (undefined **)0x1;
    }
    else {
      if (ppuVar5 == (undefined **)0x0) {
LAB_000168f0:
        cVar6 = *(char *)(param_5 + 0x21);
        local_18 = PTR_00046144 + 0x6938;
        goto LAB_0001680c;
      }
      local_18 = PTR_00046144 + 0x6938;
      local_14 = PTR_00046144 + 0x6548;
      local_10 = PTR_00046144 + 0x6540;
      if (param_2 < 0) goto LAB_0001687c;
      ppuVar5 = (undefined **)0x0;
    }
    local_18 = PTR_00046144 + 0x6938;
    if (param_4 < 0) {
LAB_00016870:
      local_10 = PTR_00046144 + 0x6540;
      local_14 = PTR_00046144 + 0x6548;
      goto LAB_0001687c;
    }
  }
  puVar4 = PTR_00046144 + 0x6f00;
LAB_00016840:
  local_10 = PTR_00046144 + 0x6540;
  local_14 = PTR_00046144 + 0x6548;
  if (ppuVar5 != (undefined **)0x0) {
    ppuVar5 = &local_18;
  }
  iVar3 = (*(code *)PTR_attr_copy_fd_00046560)(param_1,param_2,param_3,param_4,puVar4,ppuVar5);
  while (local_c != *(int *)puVar2) {
    (*(code *)PTR___stack_chk_fail_00046664)();
LAB_0001687c:
    iVar3 = (*(code *)PTR_attr_copy_file_00046540)();
  }
  return iVar3 == 0;
}

