
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void remember_non_cloexec_fds(void)

{
  int iVar1;
  int iVar2;
  int fd;
  int iVar3;
  char *file;
  size_t sVar4;
  remember_fd_context *callback;
  void *in_a3;
  int *piVar5;
  undefined *puVar6;
  code *pcVar7;
  remember_fd_context cb_data;
  
  puVar6 = PTR___stack_chk_guard_00075be8;
  iVar1 = *(int *)PTR___stack_chk_guard_00075be8;
  iVar2 = get_proc_max_fd();
  if (iVar2 < 0) {
    iVar2 = get_max_fd();
  }
  cb_data.buf = (int *)0x0;
  cb_data.allocated = 0;
  cb_data.used = 0;
  if (iVar2 != 0x7fffffff) {
    iVar2 = iVar2 + 1;
  }
  callback = &cb_data;
  visit_open_fds(iVar2,(int)(PTR_LAB_00075668 + 0x7b8c),(_func_int_int_void_ptr *)callback,in_a3);
  iVar2 = *(int *)puVar6;
  *(int **)(PTR_DAT_000755a8 + 0x6438) = cb_data.buf;
  file = PTR_DAT_000755a8;
  *(size_t *)(PTR_DAT_000755a8 + 0x6434) = cb_data.used;
  if (iVar1 == iVar2) {
    return;
  }
  sVar4 = cb_data.used;
  puVar6 = PTR___stack_chk_fail_00075ba8;
  (*(code *)PTR___stack_chk_fail_00075ba8)();
  piVar5 = *(int **)(puVar6 + 0x4db84);
  iVar1 = *piVar5;
  if ((sVar4 & 0x100) == 0) {
    callback = (remember_fd_context *)0x0;
  }
  iVar2 = *(int *)(puVar6 + 0x4d544);
  if (*(char *)(iVar2 + 0x6431) == '\0') {
    fd = open_safer((char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8),0x80000);
    if (fd < 0) {
      *(undefined1 *)(iVar2 + 0x6431) = 1;
      *(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = 0;
    }
    else {
      iVar3 = rpl_fcntl(fd,1,callback);
      (**(code **)(puVar6 + 0x4d984))(fd);
      *(undefined1 *)(iVar2 + 0x6431) = 1;
      *(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1;
    }
  }
  iVar2 = open_safer(file,sVar4 | 0x80000);
  if ((-1 < iVar2) && (*(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430) == '\0')) {
    set_cloexec_flag(iVar2,true);
  }
  if (iVar1 != *piVar5) {
    pcVar7 = *(code **)(puVar6 + 0x4db44);
    (*pcVar7)();
    iVar1 = *(int *)(pcVar7 + 0x4d3d4);
    (**(code **)(pcVar7 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));
    *(undefined4 *)(iVar1 + 0x6438) = 0;
    *(undefined4 *)(*(int *)(pcVar7 + 0x4d3d4) + 0x6434) = 0;
    return;
  }
  return;
}



int remember_non_cloexec_fds(void)

{
  int iVar1;
  int iVar2;
  byte bVar3;
  undefined *puVar4;
  uint uVar5;
  undefined4 *puVar6;
  int *piVar7;
  int iVar8;
  undefined *puVar9;
  code *pcVar10;
  undefined4 local_18;
  uint local_14;
  undefined4 local_10;
  int local_c;
  
  puVar4 = PTR___stack_chk_guard_00075be8;
  local_c = *(int *)PTR___stack_chk_guard_00075be8;
  iVar1 = FUN_000279f0();
  if (iVar1 < 0) {
    iVar1 = FUN_00027d24();
  }
  local_18 = 0;
  local_10 = 0;
  local_14 = 0;
  if (iVar1 != 0x7fffffff) {
    iVar1 = iVar1 + 1;
  }
  puVar6 = &local_18;
  FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);
  iVar1 = *(int *)puVar4;
  *(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;
  puVar4 = PTR_DAT_000755a8;
  *(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;
  if (local_c == iVar1) {
    return iVar1;
  }
  uVar5 = local_14;
  puVar9 = PTR___stack_chk_fail_00075ba8;
  (*(code *)PTR___stack_chk_fail_00075ba8)();
  piVar7 = *(int **)(puVar9 + 0x4db84);
  iVar1 = *piVar7;
  if ((uVar5 & 0x100) == 0) {
    puVar6 = (undefined4 *)0x0;
  }
  iVar8 = *(int *)(puVar9 + 0x4d544);
  if (*(char *)(iVar8 + 0x6431) == '\0') {
    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);
    if (iVar2 < 0) {
      *(undefined1 *)(iVar8 + 0x6431) = 1;
      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;
    }
    else {
      bVar3 = rpl_fcntl(iVar2,1,puVar6);
      (**(code **)(puVar9 + 0x4d984))(iVar2);
      *(undefined1 *)(iVar8 + 0x6431) = 1;
      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;
    }
  }
  iVar8 = open_safer(puVar4,uVar5 | 0x80000);
  if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {
    set_cloexec_flag(iVar8,1);
  }
  if (iVar1 != *piVar7) {
    pcVar10 = *(code **)(puVar9 + 0x4db44);
    (*pcVar10)();
    iVar1 = *(int *)(pcVar10 + 0x4d3d4);
    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));
    *(undefined4 *)(iVar1 + 0x6438) = 0;
    iVar1 = *(int *)(pcVar10 + 0x4d3d4);
    *(undefined4 *)(iVar1 + 0x6434) = 0;
    return iVar1;
  }
  return iVar8;
}


lui gp,0x5
addiu gp,gp,0x55ec
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7f18(gp)
sw s0,0x28(sp)
addiu t9,t9,0x79f0
lw s0,-0x7998(gp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
lw v0,0x0(s0)
sw v0,0x24(sp)
bal 0x000279f0
_nop
bgez v0,0x00027fe8
_lw gp,0x10(sp)
lw t9,-0x7f18(gp)
addiu t9,t9,0x7d24
bal 0x00027d24
_nop
lw gp,0x10(sp)
lui v1,0x7fff
sw zero,0x18(sp)
sw zero,0x20(sp)
ori v1,v1,0xffff
beq v0,v1,0x00028004
_sw zero,0x1c(sp)
addiu v0,v0,0x1
lw a1,-0x7f18(gp)
addiu a2,sp,0x18
lw t9,-0x7f18(gp)
or a0,v0,zero
addiu t9,t9,0x7de4
bal 0x00027de4
_addiu a1,a1,0x7b8c
lw gp,0x10(sp)
lw a1,0x18(sp)
lw v1,0x24(sp)
lw v0,0x0(s0)
lw a0,-0x7fd8(gp)
sw a1,0x6438(a0)
lw a0,-0x7fd8(gp)
lw a1,0x1c(sp)
bne v1,v0,0x00028058
_sw a1,0x6434(a0)
lw ra,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x79d8(gp)
jalr t9
_nop
(translation_unit "int remember_non_cloexec_fds(void)\n\n{\n  int iVar1;\n  int iVar2;\n  byte bVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  undefined4 local_18;\n  uint local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00075be8;\n  local_c = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar1 = FUN_000279f0();\n  if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }\n  local_18 = 0;\n  local_10 = 0;\n  local_14 = 0;\n  if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }\n  puVar6 = &local_18;\n  FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);\n  iVar1 = *(int *)puVar4;\n  *(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;\n  puVar4 = PTR_DAT_000755a8;\n  *(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;\n  if (local_c == iVar1) {\n    return iVar1;\n  }\n  uVar5 = local_14;\n  puVar9 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar7 = *(int **)(puVar9 + 0x4db84);\n  iVar1 = *piVar7;\n  if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }\n  iVar8 = *(int *)(puVar9 + 0x4d544);\n  if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }\n  iVar8 = open_safer(puVar4,uVar5 | 0x80000);\n  if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }\n  if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }\n  return iVar8;\n}\n\n" (function_definition "int remember_non_cloexec_fds(void)\n\n{\n  int iVar1;\n  int iVar2;\n  byte bVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  undefined4 local_18;\n  uint local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00075be8;\n  local_c = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar1 = FUN_000279f0();\n  if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }\n  local_18 = 0;\n  local_10 = 0;\n  local_14 = 0;\n  if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }\n  puVar6 = &local_18;\n  FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);\n  iVar1 = *(int *)puVar4;\n  *(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;\n  puVar4 = PTR_DAT_000755a8;\n  *(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;\n  if (local_c == iVar1) {\n    return iVar1;\n  }\n  uVar5 = local_14;\n  puVar9 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar7 = *(int **)(puVar9 + 0x4db84);\n  iVar1 = *piVar7;\n  if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }\n  iVar8 = *(int *)(puVar9 + 0x4d544);\n  if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }\n  iVar8 = open_safer(puVar4,uVar5 | 0x80000);\n  if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }\n  if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }\n  return iVar8;\n}" primitive_type (function_declarator "remember_non_cloexec_fds(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  byte bVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  undefined4 local_18;\n  uint local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00075be8;\n  local_c = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar1 = FUN_000279f0();\n  if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }\n  local_18 = 0;\n  local_10 = 0;\n  local_14 = 0;\n  if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }\n  puVar6 = &local_18;\n  FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);\n  iVar1 = *(int *)puVar4;\n  *(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;\n  puVar4 = PTR_DAT_000755a8;\n  *(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;\n  if (local_c == iVar1) {\n    return iVar1;\n  }\n  uVar5 = local_14;\n  puVar9 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar7 = *(int **)(puVar9 + 0x4db84);\n  iVar1 = *piVar7;\n  if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }\n  iVar8 = *(int *)(puVar9 + 0x4d544);\n  if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }\n  iVar8 = open_safer(puVar4,uVar5 | 0x80000);\n  if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }\n  if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }\n  return iVar8;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "uint local_14;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar4 = PTR___stack_chk_guard_00075be8" identifier = identifier) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00075be8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" * (cast_expression "(int *)PTR___stack_chk_guard_00075be8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = FUN_000279f0();" (assignment_expression "iVar1 = FUN_000279f0()" identifier = (call_expression "FUN_000279f0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = FUN_00027d24();\n  }" { (expression_statement "iVar1 = FUN_00027d24();" (assignment_expression "iVar1 = FUN_00027d24()" identifier = (call_expression "FUN_00027d24()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" identifier = number_literal) ;) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }" if (parenthesized_expression "(iVar1 != 0x7fffffff)" ( (binary_expression "iVar1 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "puVar6 = &local_18;" (assignment_expression "puVar6 = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) (expression_statement "FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);" (call_expression "FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c)" identifier (argument_list "(iVar1,PTR_LAB_00075668 + 0x7b8c)" ( identifier , (binary_expression "PTR_LAB_00075668 + 0x7b8c" identifier + number_literal) ))) ;) (expression_statement "iVar1 = *(int *)puVar4;" (assignment_expression "iVar1 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;" (assignment_expression "*(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18" (pointer_expression "*(undefined4 *)(PTR_DAT_000755a8 + 0x6438)" * (cast_expression "(undefined4 *)(PTR_DAT_000755a8 + 0x6438)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000755a8 + 0x6438)" ( (binary_expression "PTR_DAT_000755a8 + 0x6438" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = PTR_DAT_000755a8;" (assignment_expression "puVar4 = PTR_DAT_000755a8" identifier = identifier) ;) (expression_statement "*(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;" (assignment_expression "*(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14" (pointer_expression "*(uint *)(PTR_DAT_000755a8 + 0x6434)" * (cast_expression "(uint *)(PTR_DAT_000755a8 + 0x6434)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000755a8 + 0x6434)" ( (binary_expression "PTR_DAT_000755a8 + 0x6434" identifier + number_literal) )))) = identifier) ;) (if_statement "if (local_c == iVar1) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_c == iVar1)" ( (binary_expression "local_c == iVar1" identifier == identifier) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "uVar5 = local_14;" (assignment_expression "uVar5 = local_14" identifier = identifier) ;) (expression_statement "puVar9 = PTR___stack_chk_fail_00075ba8;" (assignment_expression "puVar9 = PTR___stack_chk_fail_00075ba8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" * (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar7 = *(int **)(puVar9 + 0x4db84);" (assignment_expression "piVar7 = *(int **)(puVar9 + 0x4db84)" identifier = (pointer_expression "*(int **)(puVar9 + 0x4db84)" * (cast_expression "(int **)(puVar9 + 0x4db84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4db84)" ( (binary_expression "puVar9 + 0x4db84" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *piVar7;" (assignment_expression "iVar1 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }" if (parenthesized_expression "((uVar5 & 0x100) == 0)" ( (binary_expression "(uVar5 & 0x100) == 0" (parenthesized_expression "(uVar5 & 0x100)" ( (binary_expression "uVar5 & 0x100" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    puVar6 = (undefined4 *)0x0;\n  }" { (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "iVar8 = *(int *)(puVar9 + 0x4d544);" (assignment_expression "iVar8 = *(int *)(puVar9 + 0x4d544)" identifier = (pointer_expression "*(int *)(puVar9 + 0x4d544)" * (cast_expression "(int *)(puVar9 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0x4d544)" ( (binary_expression "puVar9 + 0x4d544" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }" if (parenthesized_expression "(*(char *)(iVar8 + 0x6431) == '\0')" ( (binary_expression "*(char *)(iVar8 + 0x6431) == '\0'" (pointer_expression "*(char *)(iVar8 + 0x6431)" * (cast_expression "(char *)(iVar8 + 0x6431)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x6431)" ( (binary_expression "iVar8 + 0x6431" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }" { (expression_statement "iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);" (assignment_expression "iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000)" identifier = (call_expression "open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000)" identifier (argument_list "(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000)" ( (binary_expression "*(int *)(puVar9 + 0x4d554) + 0x35d8" (pointer_expression "*(int *)(puVar9 + 0x4d554)" * (cast_expression "(int *)(puVar9 + 0x4d554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0x4d554)" ( (binary_expression "puVar9 + 0x4d554" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }" { (expression_statement "*(undefined1 *)(iVar8 + 0x6431) = 1;" (assignment_expression "*(undefined1 *)(iVar8 + 0x6431) = 1" (pointer_expression "*(undefined1 *)(iVar8 + 0x6431)" * (cast_expression "(undefined1 *)(iVar8 + 0x6431)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x6431)" ( (binary_expression "iVar8 + 0x6431" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;" (assignment_expression "*(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0" (pointer_expression "*(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" * (cast_expression "(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (binary_expression "*(int *)(puVar9 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar9 + 0x4d544)" * (cast_expression "(int *)(puVar9 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0x4d544)" ( (binary_expression "puVar9 + 0x4d544" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }" else (compound_statement "{\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }" { (expression_statement "bVar3 = rpl_fcntl(iVar2,1,puVar6);" (assignment_expression "bVar3 = rpl_fcntl(iVar2,1,puVar6)" identifier = (call_expression "rpl_fcntl(iVar2,1,puVar6)" identifier (argument_list "(iVar2,1,puVar6)" ( identifier , number_literal , identifier )))) ;) (expression_statement "(**(code **)(puVar9 + 0x4d984))(iVar2);" (call_expression "(**(code **)(puVar9 + 0x4d984))(iVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0x4d984))" ( (pointer_expression "**(code **)(puVar9 + 0x4d984)" * (pointer_expression "*(code **)(puVar9 + 0x4d984)" * (cast_expression "(code **)(puVar9 + 0x4d984)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4d984)" ( (binary_expression "puVar9 + 0x4d984" identifier + number_literal) ))))) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "*(undefined1 *)(iVar8 + 0x6431) = 1;" (assignment_expression "*(undefined1 *)(iVar8 + 0x6431) = 1" (pointer_expression "*(undefined1 *)(iVar8 + 0x6431)" * (cast_expression "(undefined1 *)(iVar8 + 0x6431)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x6431)" ( (binary_expression "iVar8 + 0x6431" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;" (assignment_expression "*(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1" (pointer_expression "*(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" * (cast_expression "(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (binary_expression "*(int *)(puVar9 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar9 + 0x4d544)" * (cast_expression "(int *)(puVar9 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0x4d544)" ( (binary_expression "puVar9 + 0x4d544" identifier + number_literal) )))) + number_literal) )))) = (binary_expression "bVar3 & 1" identifier & number_literal)) ;) }))) })) (expression_statement "iVar8 = open_safer(puVar4,uVar5 | 0x80000);" (assignment_expression "iVar8 = open_safer(puVar4,uVar5 | 0x80000)" identifier = (call_expression "open_safer(puVar4,uVar5 | 0x80000)" identifier (argument_list "(puVar4,uVar5 | 0x80000)" ( identifier , (binary_expression "uVar5 | 0x80000" identifier | number_literal) )))) ;) (if_statement "if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }" if (parenthesized_expression "((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0'))" ( (binary_expression "(-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')" (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) && (parenthesized_expression "(*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')" ( (binary_expression "*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0'" (pointer_expression "*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" * (cast_expression "(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (binary_expression "*(int *)(puVar9 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar9 + 0x4d544)" * (cast_expression "(int *)(puVar9 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0x4d544)" ( (binary_expression "puVar9 + 0x4d544" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    set_cloexec_flag(iVar8,1);\n  }" { (expression_statement "set_cloexec_flag(iVar8,1);" (call_expression "set_cloexec_flag(iVar8,1)" identifier (argument_list "(iVar8,1)" ( identifier , number_literal ))) ;) })) (if_statement "if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != *piVar7)" ( (binary_expression "iVar1 != *piVar7" identifier != (pointer_expression "*piVar7" * identifier)) )) (compound_statement "{\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }" { (expression_statement "pcVar10 = *(code **)(puVar9 + 0x4db44);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0x4db44)" identifier = (pointer_expression "*(code **)(puVar9 + 0x4db44)" * (cast_expression "(code **)(puVar9 + 0x4db44)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4db44)" ( (binary_expression "puVar9 + 0x4db44" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar10)();" (call_expression "(*pcVar10)()" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(pcVar10 + 0x4d3d4);" (assignment_expression "iVar1 = *(int *)(pcVar10 + 0x4d3d4)" identifier = (pointer_expression "*(int *)(pcVar10 + 0x4d3d4)" * (cast_expression "(int *)(pcVar10 + 0x4d3d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x4d3d4)" ( (binary_expression "pcVar10 + 0x4d3d4" identifier + number_literal) ))))) ;) (expression_statement "(**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));" (call_expression "(**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438))" (parenthesized_expression "(**(code **)(pcVar10 + 0x4da28))" ( (pointer_expression "**(code **)(pcVar10 + 0x4da28)" * (pointer_expression "*(code **)(pcVar10 + 0x4da28)" * (cast_expression "(code **)(pcVar10 + 0x4da28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0x4da28)" ( (binary_expression "pcVar10 + 0x4da28" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar1 + 0x6438))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x6438)" * (cast_expression "(undefined4 *)(iVar1 + 0x6438)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x6438)" ( (binary_expression "iVar1 + 0x6438" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x6438) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x6438) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x6438)" * (cast_expression "(undefined4 *)(iVar1 + 0x6438)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x6438)" ( (binary_expression "iVar1 + 0x6438" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = *(int *)(pcVar10 + 0x4d3d4);" (assignment_expression "iVar1 = *(int *)(pcVar10 + 0x4d3d4)" identifier = (pointer_expression "*(int *)(pcVar10 + 0x4d3d4)" * (cast_expression "(int *)(pcVar10 + 0x4d3d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x4d3d4)" ( (binary_expression "pcVar10 + 0x4d3d4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x6434) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x6434) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x6434)" * (cast_expression "(undefined4 *)(iVar1 + 0x6434)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x6434)" ( (binary_expression "iVar1 + 0x6434" identifier + number_literal) )))) = number_literal) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar8;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid remember_non_cloexec_fds(void)\n\n{\n  int iVar1;\n  int iVar2;\n  int fd;\n  int iVar3;\n  char *file;\n  size_t sVar4;\n  remember_fd_context *callback;\n  void *in_a3;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  remember_fd_context cb_data;\n  \n  puVar6 = PTR___stack_chk_guard_00075be8;\n  iVar1 = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar2 = get_proc_max_fd();\n  if (iVar2 < 0) {\n    iVar2 = get_max_fd();\n  }\n  cb_data.buf = (int *)0x0;\n  cb_data.allocated = 0;\n  cb_data.used = 0;\n  if (iVar2 != 0x7fffffff) {\n    iVar2 = iVar2 + 1;\n  }\n  callback = &cb_data;\n  visit_open_fds(iVar2,(int)(PTR_LAB_00075668 + 0x7b8c),(_func_int_int_void_ptr *)callback,in_a3);\n  iVar2 = *(int *)puVar6;\n  *(int **)(PTR_DAT_000755a8 + 0x6438) = cb_data.buf;\n  file = PTR_DAT_000755a8;\n  *(size_t *)(PTR_DAT_000755a8 + 0x6434) = cb_data.used;\n  if (iVar1 == iVar2) {\n    return;\n  }\n  sVar4 = cb_data.used;\n  puVar6 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar5 = *(int **)(puVar6 + 0x4db84);\n  iVar1 = *piVar5;\n  if ((sVar4 & 0x100) == 0) {\n    callback = (remember_fd_context *)0x0;\n  }\n  iVar2 = *(int *)(puVar6 + 0x4d544);\n  if (*(char *)(iVar2 + 0x6431) == '\0') {\n    fd = open_safer((char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8),0x80000);\n    if (fd < 0) {\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      iVar3 = rpl_fcntl(fd,1,callback);\n      (**(code **)(puVar6 + 0x4d984))(fd);\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1;\n    }\n  }\n  iVar2 = open_safer(file,sVar4 | 0x80000);\n  if ((-1 < iVar2) && (*(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar2,true);\n  }\n  if (iVar1 != *piVar5) {\n    pcVar7 = *(code **)(puVar6 + 0x4db44);\n    (*pcVar7)();\n    iVar1 = *(int *)(pcVar7 + 0x4d3d4);\n    (**(code **)(pcVar7 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    *(undefined4 *)(*(int *)(pcVar7 + 0x4d3d4) + 0x6434) = 0;\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void remember_non_cloexec_fds(void)\n\n{\n  int iVar1;\n  int iVar2;\n  int fd;\n  int iVar3;\n  char *file;\n  size_t sVar4;\n  remember_fd_context *callback;\n  void *in_a3;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  remember_fd_context cb_data;\n  \n  puVar6 = PTR___stack_chk_guard_00075be8;\n  iVar1 = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar2 = get_proc_max_fd();\n  if (iVar2 < 0) {\n    iVar2 = get_max_fd();\n  }\n  cb_data.buf = (int *)0x0;\n  cb_data.allocated = 0;\n  cb_data.used = 0;\n  if (iVar2 != 0x7fffffff) {\n    iVar2 = iVar2 + 1;\n  }\n  callback = &cb_data;\n  visit_open_fds(iVar2,(int)(PTR_LAB_00075668 + 0x7b8c),(_func_int_int_void_ptr *)callback,in_a3);\n  iVar2 = *(int *)puVar6;\n  *(int **)(PTR_DAT_000755a8 + 0x6438) = cb_data.buf;\n  file = PTR_DAT_000755a8;\n  *(size_t *)(PTR_DAT_000755a8 + 0x6434) = cb_data.used;\n  if (iVar1 == iVar2) {\n    return;\n  }\n  sVar4 = cb_data.used;\n  puVar6 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar5 = *(int **)(puVar6 + 0x4db84);\n  iVar1 = *piVar5;\n  if ((sVar4 & 0x100) == 0) {\n    callback = (remember_fd_context *)0x0;\n  }\n  iVar2 = *(int *)(puVar6 + 0x4d544);\n  if (*(char *)(iVar2 + 0x6431) == '\0') {\n    fd = open_safer((char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8),0x80000);\n    if (fd < 0) {\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      iVar3 = rpl_fcntl(fd,1,callback);\n      (**(code **)(puVar6 + 0x4d984))(fd);\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1;\n    }\n  }\n  iVar2 = open_safer(file,sVar4 | 0x80000);\n  if ((-1 < iVar2) && (*(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar2,true);\n  }\n  if (iVar1 != *piVar5) {\n    pcVar7 = *(code **)(puVar6 + 0x4db44);\n    (*pcVar7)();\n    iVar1 = *(int *)(pcVar7 + 0x4d3d4);\n    (**(code **)(pcVar7 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    *(undefined4 *)(*(int *)(pcVar7 + 0x4d3d4) + 0x6434) = 0;\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "remember_non_cloexec_fds(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int fd;\n  int iVar3;\n  char *file;\n  size_t sVar4;\n  remember_fd_context *callback;\n  void *in_a3;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  remember_fd_context cb_data;\n  \n  puVar6 = PTR___stack_chk_guard_00075be8;\n  iVar1 = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar2 = get_proc_max_fd();\n  if (iVar2 < 0) {\n    iVar2 = get_max_fd();\n  }\n  cb_data.buf = (int *)0x0;\n  cb_data.allocated = 0;\n  cb_data.used = 0;\n  if (iVar2 != 0x7fffffff) {\n    iVar2 = iVar2 + 1;\n  }\n  callback = &cb_data;\n  visit_open_fds(iVar2,(int)(PTR_LAB_00075668 + 0x7b8c),(_func_int_int_void_ptr *)callback,in_a3);\n  iVar2 = *(int *)puVar6;\n  *(int **)(PTR_DAT_000755a8 + 0x6438) = cb_data.buf;\n  file = PTR_DAT_000755a8;\n  *(size_t *)(PTR_DAT_000755a8 + 0x6434) = cb_data.used;\n  if (iVar1 == iVar2) {\n    return;\n  }\n  sVar4 = cb_data.used;\n  puVar6 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar5 = *(int **)(puVar6 + 0x4db84);\n  iVar1 = *piVar5;\n  if ((sVar4 & 0x100) == 0) {\n    callback = (remember_fd_context *)0x0;\n  }\n  iVar2 = *(int *)(puVar6 + 0x4d544);\n  if (*(char *)(iVar2 + 0x6431) == '\0') {\n    fd = open_safer((char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8),0x80000);\n    if (fd < 0) {\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      iVar3 = rpl_fcntl(fd,1,callback);\n      (**(code **)(puVar6 + 0x4d984))(fd);\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1;\n    }\n  }\n  iVar2 = open_safer(file,sVar4 | 0x80000);\n  if ((-1 < iVar2) && (*(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar2,true);\n  }\n  if (iVar1 != *piVar5) {\n    pcVar7 = *(code **)(puVar6 + 0x4db44);\n    (*pcVar7)();\n    iVar1 = *(int *)(pcVar7 + 0x4d3d4);\n    (**(code **)(pcVar7 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    *(undefined4 *)(*(int *)(pcVar7 + 0x4d3d4) + 0x6434) = 0;\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int fd;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *file;" primitive_type (pointer_declarator "*file" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "remember_fd_context *callback;" type_identifier (pointer_declarator "*callback" * identifier) ;) (declaration "void *in_a3;" primitive_type (pointer_declarator "*in_a3" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "remember_fd_context cb_data;" type_identifier identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar6 = PTR___stack_chk_guard_00075be8" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00075be8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" * (cast_expression "(int *)PTR___stack_chk_guard_00075be8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = get_proc_max_fd();" (assignment_expression "iVar2 = get_proc_max_fd()" identifier = (call_expression "get_proc_max_fd()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 < 0) {\n    iVar2 = get_max_fd();\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar2 = get_max_fd();\n  }" { (expression_statement "iVar2 = get_max_fd();" (assignment_expression "iVar2 = get_max_fd()" identifier = (call_expression "get_max_fd()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "cb_data.buf = (int *)0x0;" (assignment_expression "cb_data.buf = (int *)0x0" (field_expression "cb_data.buf" identifier . field_identifier) = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "cb_data.allocated = 0;" (assignment_expression "cb_data.allocated = 0" (field_expression "cb_data.allocated" identifier . field_identifier) = number_literal) ;) (expression_statement "cb_data.used = 0;" (assignment_expression "cb_data.used = 0" (field_expression "cb_data.used" identifier . field_identifier) = number_literal) ;) (if_statement "if (iVar2 != 0x7fffffff) {\n    iVar2 = iVar2 + 1;\n  }" if (parenthesized_expression "(iVar2 != 0x7fffffff)" ( (binary_expression "iVar2 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "callback = &cb_data;" (assignment_expression "callback = &cb_data" identifier = (pointer_expression "&cb_data" & identifier)) ;) (expression_statement "visit_open_fds(iVar2,(int)(PTR_LAB_00075668 + 0x7b8c),(_func_int_int_void_ptr *)callback,in_a3);" (call_expression "visit_open_fds(iVar2,(int)(PTR_LAB_00075668 + 0x7b8c),(_func_int_int_void_ptr *)callback,in_a3)" identifier (argument_list "(iVar2,(int)(PTR_LAB_00075668 + 0x7b8c),(_func_int_int_void_ptr *)callback,in_a3)" ( identifier , (cast_expression "(int)(PTR_LAB_00075668 + 0x7b8c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_LAB_00075668 + 0x7b8c)" ( (binary_expression "PTR_LAB_00075668 + 0x7b8c" identifier + number_literal) ))) , (cast_expression "(_func_int_int_void_ptr *)callback" ( (type_descriptor "_func_int_int_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "iVar2 = *(int *)puVar6;" (assignment_expression "iVar2 = *(int *)puVar6" identifier = (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int **)(PTR_DAT_000755a8 + 0x6438) = cb_data.buf;" (assignment_expression "*(int **)(PTR_DAT_000755a8 + 0x6438) = cb_data.buf" (pointer_expression "*(int **)(PTR_DAT_000755a8 + 0x6438)" * (cast_expression "(int **)(PTR_DAT_000755a8 + 0x6438)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000755a8 + 0x6438)" ( (binary_expression "PTR_DAT_000755a8 + 0x6438" identifier + number_literal) )))) = (field_expression "cb_data.buf" identifier . field_identifier)) ;) (expression_statement "file = PTR_DAT_000755a8;" (assignment_expression "file = PTR_DAT_000755a8" identifier = identifier) ;) (expression_statement "*(size_t *)(PTR_DAT_000755a8 + 0x6434) = cb_data.used;" (assignment_expression "*(size_t *)(PTR_DAT_000755a8 + 0x6434) = cb_data.used" (pointer_expression "*(size_t *)(PTR_DAT_000755a8 + 0x6434)" * (cast_expression "(size_t *)(PTR_DAT_000755a8 + 0x6434)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000755a8 + 0x6434)" ( (binary_expression "PTR_DAT_000755a8 + 0x6434" identifier + number_literal) )))) = (field_expression "cb_data.used" identifier . field_identifier)) ;) (if_statement "if (iVar1 == iVar2) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == iVar2)" ( (binary_expression "iVar1 == iVar2" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "sVar4 = cb_data.used;" (assignment_expression "sVar4 = cb_data.used" identifier = (field_expression "cb_data.used" identifier . field_identifier)) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_00075ba8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_00075ba8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" * (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar5 = *(int **)(puVar6 + 0x4db84);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x4db84)" identifier = (pointer_expression "*(int **)(puVar6 + 0x4db84)" * (cast_expression "(int **)(puVar6 + 0x4db84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x4db84)" ( (binary_expression "puVar6 + 0x4db84" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if ((sVar4 & 0x100) == 0) {\n    callback = (remember_fd_context *)0x0;\n  }" if (parenthesized_expression "((sVar4 & 0x100) == 0)" ( (binary_expression "(sVar4 & 0x100) == 0" (parenthesized_expression "(sVar4 & 0x100)" ( (binary_expression "sVar4 & 0x100" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    callback = (remember_fd_context *)0x0;\n  }" { (expression_statement "callback = (remember_fd_context *)0x0;" (assignment_expression "callback = (remember_fd_context *)0x0" identifier = (cast_expression "(remember_fd_context *)0x0" ( (type_descriptor "remember_fd_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "iVar2 = *(int *)(puVar6 + 0x4d544);" (assignment_expression "iVar2 = *(int *)(puVar6 + 0x4d544)" identifier = (pointer_expression "*(int *)(puVar6 + 0x4d544)" * (cast_expression "(int *)(puVar6 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4d544)" ( (binary_expression "puVar6 + 0x4d544" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(iVar2 + 0x6431) == '\0') {\n    fd = open_safer((char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8),0x80000);\n    if (fd < 0) {\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      iVar3 = rpl_fcntl(fd,1,callback);\n      (**(code **)(puVar6 + 0x4d984))(fd);\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1;\n    }\n  }" if (parenthesized_expression "(*(char *)(iVar2 + 0x6431) == '\0')" ( (binary_expression "*(char *)(iVar2 + 0x6431) == '\0'" (pointer_expression "*(char *)(iVar2 + 0x6431)" * (cast_expression "(char *)(iVar2 + 0x6431)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x6431)" ( (binary_expression "iVar2 + 0x6431" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fd = open_safer((char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8),0x80000);\n    if (fd < 0) {\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      iVar3 = rpl_fcntl(fd,1,callback);\n      (**(code **)(puVar6 + 0x4d984))(fd);\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1;\n    }\n  }" { (expression_statement "fd = open_safer((char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8),0x80000);" (assignment_expression "fd = open_safer((char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8),0x80000)" identifier = (call_expression "open_safer((char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8),0x80000)" identifier (argument_list "((char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8),0x80000)" ( (cast_expression "(char *)(*(int *)(puVar6 + 0x4d554) + 0x35d8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x4d554) + 0x35d8)" ( (binary_expression "*(int *)(puVar6 + 0x4d554) + 0x35d8" (pointer_expression "*(int *)(puVar6 + 0x4d554)" * (cast_expression "(int *)(puVar6 + 0x4d554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4d554)" ( (binary_expression "puVar6 + 0x4d554" identifier + number_literal) )))) + number_literal) ))) , number_literal )))) ;) (if_statement "if (fd < 0) {\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      iVar3 = rpl_fcntl(fd,1,callback);\n      (**(code **)(puVar6 + 0x4d984))(fd);\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1;\n    }" if (parenthesized_expression "(fd < 0)" ( (binary_expression "fd < 0" identifier < number_literal) )) (compound_statement "{\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = 0;\n    }" { (expression_statement "*(undefined1 *)(iVar2 + 0x6431) = 1;" (assignment_expression "*(undefined1 *)(iVar2 + 0x6431) = 1" (pointer_expression "*(undefined1 *)(iVar2 + 0x6431)" * (cast_expression "(undefined1 *)(iVar2 + 0x6431)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x6431)" ( (binary_expression "iVar2 + 0x6431" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = 0;" (assignment_expression "*(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = 0" (pointer_expression "*(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430)" * (cast_expression "(undefined1 *)(*(int *)(puVar6 + 0x4d544) + 0x6430)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x4d544) + 0x6430)" ( (binary_expression "*(int *)(puVar6 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar6 + 0x4d544)" * (cast_expression "(int *)(puVar6 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4d544)" ( (binary_expression "puVar6 + 0x4d544" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      iVar3 = rpl_fcntl(fd,1,callback);\n      (**(code **)(puVar6 + 0x4d984))(fd);\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1;\n    }" else (compound_statement "{\n      iVar3 = rpl_fcntl(fd,1,callback);\n      (**(code **)(puVar6 + 0x4d984))(fd);\n      *(undefined1 *)(iVar2 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1;\n    }" { (expression_statement "iVar3 = rpl_fcntl(fd,1,callback);" (assignment_expression "iVar3 = rpl_fcntl(fd,1,callback)" identifier = (call_expression "rpl_fcntl(fd,1,callback)" identifier (argument_list "(fd,1,callback)" ( identifier , number_literal , identifier )))) ;) (expression_statement "(**(code **)(puVar6 + 0x4d984))(fd);" (call_expression "(**(code **)(puVar6 + 0x4d984))(fd)" (parenthesized_expression "(**(code **)(puVar6 + 0x4d984))" ( (pointer_expression "**(code **)(puVar6 + 0x4d984)" * (pointer_expression "*(code **)(puVar6 + 0x4d984)" * (cast_expression "(code **)(puVar6 + 0x4d984)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x4d984)" ( (binary_expression "puVar6 + 0x4d984" identifier + number_literal) ))))) )) (argument_list "(fd)" ( identifier ))) ;) (expression_statement "*(undefined1 *)(iVar2 + 0x6431) = 1;" (assignment_expression "*(undefined1 *)(iVar2 + 0x6431) = 1" (pointer_expression "*(undefined1 *)(iVar2 + 0x6431)" * (cast_expression "(undefined1 *)(iVar2 + 0x6431)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x6431)" ( (binary_expression "iVar2 + 0x6431" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1;" (assignment_expression "*(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430) = (byte)iVar3 & 1" (pointer_expression "*(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430)" * (cast_expression "(byte *)(*(int *)(puVar6 + 0x4d544) + 0x6430)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x4d544) + 0x6430)" ( (binary_expression "*(int *)(puVar6 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar6 + 0x4d544)" * (cast_expression "(int *)(puVar6 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4d544)" ( (binary_expression "puVar6 + 0x4d544" identifier + number_literal) )))) + number_literal) )))) = (binary_expression "(byte)iVar3 & 1" (cast_expression "(byte)iVar3" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) }))) })) (expression_statement "iVar2 = open_safer(file,sVar4 | 0x80000);" (assignment_expression "iVar2 = open_safer(file,sVar4 | 0x80000)" identifier = (call_expression "open_safer(file,sVar4 | 0x80000)" identifier (argument_list "(file,sVar4 | 0x80000)" ( identifier , (binary_expression "sVar4 | 0x80000" identifier | number_literal) )))) ;) (if_statement "if ((-1 < iVar2) && (*(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar2,true);\n  }" if (parenthesized_expression "((-1 < iVar2) && (*(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430) == '\0'))" ( (binary_expression "(-1 < iVar2) && (*(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430) == '\0')" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) && (parenthesized_expression "(*(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430) == '\0')" ( (binary_expression "*(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430) == '\0'" (pointer_expression "*(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430)" * (cast_expression "(char *)(*(int *)(puVar6 + 0x4d544) + 0x6430)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x4d544) + 0x6430)" ( (binary_expression "*(int *)(puVar6 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar6 + 0x4d544)" * (cast_expression "(int *)(puVar6 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4d544)" ( (binary_expression "puVar6 + 0x4d544" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    set_cloexec_flag(iVar2,true);\n  }" { (expression_statement "set_cloexec_flag(iVar2,true);" (call_expression "set_cloexec_flag(iVar2,true)" identifier (argument_list "(iVar2,true)" ( identifier , true ))) ;) })) (if_statement "if (iVar1 != *piVar5) {\n    pcVar7 = *(code **)(puVar6 + 0x4db44);\n    (*pcVar7)();\n    iVar1 = *(int *)(pcVar7 + 0x4d3d4);\n    (**(code **)(pcVar7 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    *(undefined4 *)(*(int *)(pcVar7 + 0x4d3d4) + 0x6434) = 0;\n    return;\n  }" if (parenthesized_expression "(iVar1 != *piVar5)" ( (binary_expression "iVar1 != *piVar5" identifier != (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n    pcVar7 = *(code **)(puVar6 + 0x4db44);\n    (*pcVar7)();\n    iVar1 = *(int *)(pcVar7 + 0x4d3d4);\n    (**(code **)(pcVar7 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    *(undefined4 *)(*(int *)(pcVar7 + 0x4d3d4) + 0x6434) = 0;\n    return;\n  }" { (expression_statement "pcVar7 = *(code **)(puVar6 + 0x4db44);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x4db44)" identifier = (pointer_expression "*(code **)(puVar6 + 0x4db44)" * (cast_expression "(code **)(puVar6 + 0x4db44)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x4db44)" ( (binary_expression "puVar6 + 0x4db44" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar7)();" (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(pcVar7 + 0x4d3d4);" (assignment_expression "iVar1 = *(int *)(pcVar7 + 0x4d3d4)" identifier = (pointer_expression "*(int *)(pcVar7 + 0x4d3d4)" * (cast_expression "(int *)(pcVar7 + 0x4d3d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + 0x4d3d4)" ( (binary_expression "pcVar7 + 0x4d3d4" identifier + number_literal) ))))) ;) (expression_statement "(**(code **)(pcVar7 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));" (call_expression "(**(code **)(pcVar7 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438))" (parenthesized_expression "(**(code **)(pcVar7 + 0x4da28))" ( (pointer_expression "**(code **)(pcVar7 + 0x4da28)" * (pointer_expression "*(code **)(pcVar7 + 0x4da28)" * (cast_expression "(code **)(pcVar7 + 0x4da28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x4da28)" ( (binary_expression "pcVar7 + 0x4da28" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar1 + 0x6438))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x6438)" * (cast_expression "(undefined4 *)(iVar1 + 0x6438)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x6438)" ( (binary_expression "iVar1 + 0x6438" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x6438) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x6438) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x6438)" * (cast_expression "(undefined4 *)(iVar1 + 0x6438)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x6438)" ( (binary_expression "iVar1 + 0x6438" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(*(int *)(pcVar7 + 0x4d3d4) + 0x6434) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(pcVar7 + 0x4d3d4) + 0x6434) = 0" (pointer_expression "*(undefined4 *)(*(int *)(pcVar7 + 0x4d3d4) + 0x6434)" * (cast_expression "(undefined4 *)(*(int *)(pcVar7 + 0x4d3d4) + 0x6434)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar7 + 0x4d3d4) + 0x6434)" ( (binary_expression "*(int *)(pcVar7 + 0x4d3d4) + 0x6434" (pointer_expression "*(int *)(pcVar7 + 0x4d3d4)" * (cast_expression "(int *)(pcVar7 + 0x4d3d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar7 + 0x4d3d4)" ( (binary_expression "pcVar7 + 0x4d3d4" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "int remember_non_cloexec_fds(void)\n\n{\n  int iVar1;\n  int iVar2;\n  byte bVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  undefined4 local_18;\n  uint local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00075be8;\n  local_c = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar1 = FUN_000279f0();\n  if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }\n  local_18 = 0;\n  local_10 = 0;\n  local_14 = 0;\n  if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }\n  puVar6 = &local_18;\n  FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);\n  iVar1 = *(int *)puVar4;\n  *(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;\n  puVar4 = PTR_DAT_000755a8;\n  *(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;\n  if (local_c == iVar1) {\n    return iVar1;\n  }\n  uVar5 = local_14;\n  puVar9 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar7 = *(int **)(puVar9 + 0x4db84);\n  iVar1 = *piVar7;\n  if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }\n  iVar8 = *(int *)(puVar9 + 0x4d544);\n  if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }\n  iVar8 = open_safer(puVar4,uVar5 | 0x80000);\n  if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }\n  if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }\n  return iVar8;\n}\n\n" (function_definition "int remember_non_cloexec_fds(void)\n\n{\n  int iVar1;\n  int iVar2;\n  byte bVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  undefined4 local_18;\n  uint local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00075be8;\n  local_c = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar1 = FUN_000279f0();\n  if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }\n  local_18 = 0;\n  local_10 = 0;\n  local_14 = 0;\n  if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }\n  puVar6 = &local_18;\n  FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);\n  iVar1 = *(int *)puVar4;\n  *(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;\n  puVar4 = PTR_DAT_000755a8;\n  *(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;\n  if (local_c == iVar1) {\n    return iVar1;\n  }\n  uVar5 = local_14;\n  puVar9 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar7 = *(int **)(puVar9 + 0x4db84);\n  iVar1 = *piVar7;\n  if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }\n  iVar8 = *(int *)(puVar9 + 0x4d544);\n  if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }\n  iVar8 = open_safer(puVar4,uVar5 | 0x80000);\n  if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }\n  if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }\n  return iVar8;\n}" primitive_type (function_declarator "remember_non_cloexec_fds(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  byte bVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  undefined4 local_18;\n  uint local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00075be8;\n  local_c = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar1 = FUN_000279f0();\n  if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }\n  local_18 = 0;\n  local_10 = 0;\n  local_14 = 0;\n  if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }\n  puVar6 = &local_18;\n  FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);\n  iVar1 = *(int *)puVar4;\n  *(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;\n  puVar4 = PTR_DAT_000755a8;\n  *(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;\n  if (local_c == iVar1) {\n    return iVar1;\n  }\n  uVar5 = local_14;\n  puVar9 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar7 = *(int **)(puVar9 + 0x4db84);\n  iVar1 = *piVar7;\n  if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }\n  iVar8 = *(int *)(puVar9 + 0x4d544);\n  if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }\n  iVar8 = open_safer(puVar4,uVar5 | 0x80000);\n  if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }\n  if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }\n  return iVar8;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "uint local_14;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar4 = PTR___stack_chk_guard_00075be8" identifier = identifier) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00075be8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" * (cast_expression "(int *)PTR___stack_chk_guard_00075be8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = FUN_000279f0();" (assignment_expression "iVar1 = FUN_000279f0()" identifier = (call_expression "FUN_000279f0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = FUN_00027d24();\n  }" { (expression_statement "iVar1 = FUN_00027d24();" (assignment_expression "iVar1 = FUN_00027d24()" identifier = (call_expression "FUN_00027d24()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" identifier = number_literal) ;) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }" if (parenthesized_expression "(iVar1 != 0x7fffffff)" ( (binary_expression "iVar1 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "puVar6 = &local_18;" (assignment_expression "puVar6 = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) (expression_statement "FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);" (call_expression "FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c)" identifier (argument_list "(iVar1,PTR_LAB_00075668 + 0x7b8c)" ( identifier , (binary_expression "PTR_LAB_00075668 + 0x7b8c" identifier + number_literal) ))) ;) (expression_statement "iVar1 = *(int *)puVar4;" (assignment_expression "iVar1 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;" (assignment_expression "*(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18" (pointer_expression "*(undefined4 *)(PTR_DAT_000755a8 + 0x6438)" * (cast_expression "(undefined4 *)(PTR_DAT_000755a8 + 0x6438)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000755a8 + 0x6438)" ( (binary_expression "PTR_DAT_000755a8 + 0x6438" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = PTR_DAT_000755a8;" (assignment_expression "puVar4 = PTR_DAT_000755a8" identifier = identifier) ;) (expression_statement "*(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;" (assignment_expression "*(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14" (pointer_expression "*(uint *)(PTR_DAT_000755a8 + 0x6434)" * (cast_expression "(uint *)(PTR_DAT_000755a8 + 0x6434)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000755a8 + 0x6434)" ( (binary_expression "PTR_DAT_000755a8 + 0x6434" identifier + number_literal) )))) = identifier) ;) (if_statement "if (local_c == iVar1) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_c == iVar1)" ( (binary_expression "local_c == iVar1" identifier == identifier) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "uVar5 = local_14;" (assignment_expression "uVar5 = local_14" identifier = identifier) ;) (expression_statement "puVar9 = PTR___stack_chk_fail_00075ba8;" (assignment_expression "puVar9 = PTR___stack_chk_fail_00075ba8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" * (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar7 = *(int **)(puVar9 + 0x4db84);" (assignment_expression "piVar7 = *(int **)(puVar9 + 0x4db84)" identifier = (pointer_expression "*(int **)(puVar9 + 0x4db84)" * (cast_expression "(int **)(puVar9 + 0x4db84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4db84)" ( (binary_expression "puVar9 + 0x4db84" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *piVar7;" (assignment_expression "iVar1 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }" if (parenthesized_expression "((uVar5 & 0x100) == 0)" ( (binary_expression "(uVar5 & 0x100) == 0" (parenthesized_expression "(uVar5 & 0x100)" ( (binary_expression "uVar5 & 0x100" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    puVar6 = (undefined4 *)0x0;\n  }" { (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "iVar8 = *(int *)(puVar9 + 0x4d544);" (assignment_expression "iVar8 = *(int *)(puVar9 + 0x4d544)" identifier = (pointer_expression "*(int *)(puVar9 + 0x4d544)" * (cast_expression "(int *)(puVar9 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0x4d544)" ( (binary_expression "puVar9 + 0x4d544" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }" if (parenthesized_expression "(*(char *)(iVar8 + 0x6431) == '\0')" ( (binary_expression "*(char *)(iVar8 + 0x6431) == '\0'" (pointer_expression "*(char *)(iVar8 + 0x6431)" * (cast_expression "(char *)(iVar8 + 0x6431)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x6431)" ( (binary_expression "iVar8 + 0x6431" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }" { (expression_statement "iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);" (assignment_expression "iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000)" identifier = (call_expression "open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000)" identifier (argument_list "(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000)" ( (binary_expression "*(int *)(puVar9 + 0x4d554) + 0x35d8" (pointer_expression "*(int *)(puVar9 + 0x4d554)" * (cast_expression "(int *)(puVar9 + 0x4d554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0x4d554)" ( (binary_expression "puVar9 + 0x4d554" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }" { (expression_statement "*(undefined1 *)(iVar8 + 0x6431) = 1;" (assignment_expression "*(undefined1 *)(iVar8 + 0x6431) = 1" (pointer_expression "*(undefined1 *)(iVar8 + 0x6431)" * (cast_expression "(undefined1 *)(iVar8 + 0x6431)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x6431)" ( (binary_expression "iVar8 + 0x6431" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;" (assignment_expression "*(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0" (pointer_expression "*(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" * (cast_expression "(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (binary_expression "*(int *)(puVar9 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar9 + 0x4d544)" * (cast_expression "(int *)(puVar9 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0x4d544)" ( (binary_expression "puVar9 + 0x4d544" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }" else (compound_statement "{\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }" { (expression_statement "bVar3 = rpl_fcntl(iVar2,1,puVar6);" (assignment_expression "bVar3 = rpl_fcntl(iVar2,1,puVar6)" identifier = (call_expression "rpl_fcntl(iVar2,1,puVar6)" identifier (argument_list "(iVar2,1,puVar6)" ( identifier , number_literal , identifier )))) ;) (expression_statement "(**(code **)(puVar9 + 0x4d984))(iVar2);" (call_expression "(**(code **)(puVar9 + 0x4d984))(iVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0x4d984))" ( (pointer_expression "**(code **)(puVar9 + 0x4d984)" * (pointer_expression "*(code **)(puVar9 + 0x4d984)" * (cast_expression "(code **)(puVar9 + 0x4d984)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4d984)" ( (binary_expression "puVar9 + 0x4d984" identifier + number_literal) ))))) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "*(undefined1 *)(iVar8 + 0x6431) = 1;" (assignment_expression "*(undefined1 *)(iVar8 + 0x6431) = 1" (pointer_expression "*(undefined1 *)(iVar8 + 0x6431)" * (cast_expression "(undefined1 *)(iVar8 + 0x6431)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x6431)" ( (binary_expression "iVar8 + 0x6431" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;" (assignment_expression "*(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1" (pointer_expression "*(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" * (cast_expression "(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (binary_expression "*(int *)(puVar9 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar9 + 0x4d544)" * (cast_expression "(int *)(puVar9 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0x4d544)" ( (binary_expression "puVar9 + 0x4d544" identifier + number_literal) )))) + number_literal) )))) = (binary_expression "bVar3 & 1" identifier & number_literal)) ;) }))) })) (expression_statement "iVar8 = open_safer(puVar4,uVar5 | 0x80000);" (assignment_expression "iVar8 = open_safer(puVar4,uVar5 | 0x80000)" identifier = (call_expression "open_safer(puVar4,uVar5 | 0x80000)" identifier (argument_list "(puVar4,uVar5 | 0x80000)" ( identifier , (binary_expression "uVar5 | 0x80000" identifier | number_literal) )))) ;) (if_statement "if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }" if (parenthesized_expression "((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0'))" ( (binary_expression "(-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')" (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) && (parenthesized_expression "(*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')" ( (binary_expression "*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0'" (pointer_expression "*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" * (cast_expression "(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar9 + 0x4d544) + 0x6430)" ( (binary_expression "*(int *)(puVar9 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar9 + 0x4d544)" * (cast_expression "(int *)(puVar9 + 0x4d544)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0x4d544)" ( (binary_expression "puVar9 + 0x4d544" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    set_cloexec_flag(iVar8,1);\n  }" { (expression_statement "set_cloexec_flag(iVar8,1);" (call_expression "set_cloexec_flag(iVar8,1)" identifier (argument_list "(iVar8,1)" ( identifier , number_literal ))) ;) })) (if_statement "if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != *piVar7)" ( (binary_expression "iVar1 != *piVar7" identifier != (pointer_expression "*piVar7" * identifier)) )) (compound_statement "{\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }" { (expression_statement "pcVar10 = *(code **)(puVar9 + 0x4db44);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0x4db44)" identifier = (pointer_expression "*(code **)(puVar9 + 0x4db44)" * (cast_expression "(code **)(puVar9 + 0x4db44)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4db44)" ( (binary_expression "puVar9 + 0x4db44" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar10)();" (call_expression "(*pcVar10)()" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(pcVar10 + 0x4d3d4);" (assignment_expression "iVar1 = *(int *)(pcVar10 + 0x4d3d4)" identifier = (pointer_expression "*(int *)(pcVar10 + 0x4d3d4)" * (cast_expression "(int *)(pcVar10 + 0x4d3d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x4d3d4)" ( (binary_expression "pcVar10 + 0x4d3d4" identifier + number_literal) ))))) ;) (expression_statement "(**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));" (call_expression "(**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438))" (parenthesized_expression "(**(code **)(pcVar10 + 0x4da28))" ( (pointer_expression "**(code **)(pcVar10 + 0x4da28)" * (pointer_expression "*(code **)(pcVar10 + 0x4da28)" * (cast_expression "(code **)(pcVar10 + 0x4da28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0x4da28)" ( (binary_expression "pcVar10 + 0x4da28" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar1 + 0x6438))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x6438)" * (cast_expression "(undefined4 *)(iVar1 + 0x6438)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x6438)" ( (binary_expression "iVar1 + 0x6438" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x6438) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x6438) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x6438)" * (cast_expression "(undefined4 *)(iVar1 + 0x6438)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x6438)" ( (binary_expression "iVar1 + 0x6438" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = *(int *)(pcVar10 + 0x4d3d4);" (assignment_expression "iVar1 = *(int *)(pcVar10 + 0x4d3d4)" identifier = (pointer_expression "*(int *)(pcVar10 + 0x4d3d4)" * (cast_expression "(int *)(pcVar10 + 0x4d3d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar10 + 0x4d3d4)" ( (binary_expression "pcVar10 + 0x4d3d4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x6434) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x6434) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x6434)" * (cast_expression "(undefined4 *)(iVar1 + 0x6434)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x6434)" ( (binary_expression "iVar1 + 0x6434" identifier + number_literal) )))) = number_literal) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar8;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = (binary_expression IDENT & LIT)) ;) }))) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT | LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "int remember_non_cloexec_fds(void)\n\n{\n  int iVar1;\n  int iVar2;\n  byte bVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  undefined4 local_18;\n  uint local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00075be8;\n  local_c = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar1 = FUN_000279f0();\n  if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }\n  local_18 = 0;\n  local_10 = 0;\n  local_14 = 0;\n  if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }\n  puVar6 = &local_18;\n  FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);\n  iVar1 = *(int *)puVar4;\n  *(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;\n  puVar4 = PTR_DAT_000755a8;\n  *(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;\n  if (local_c == iVar1) {\n    return iVar1;\n  }\n  uVar5 = local_14;\n  puVar9 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar7 = *(int **)(puVar9 + 0x4db84);\n  iVar1 = *piVar7;\n  if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }\n  iVar8 = *(int *)(puVar9 + 0x4d544);\n  if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }\n  iVar8 = open_safer(puVar4,uVar5 | 0x80000);\n  if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }\n  if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }\n  return iVar8;\n}" (primitive_type "int") (function_declarator "remember_non_cloexec_fds(void)" (identifier "remember_non_cloexec_fds") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  byte bVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int iVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  undefined4 local_18;\n  uint local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_00075be8;\n  local_c = *(int *)PTR___stack_chk_guard_00075be8;\n  iVar1 = FUN_000279f0();\n  if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }\n  local_18 = 0;\n  local_10 = 0;\n  local_14 = 0;\n  if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }\n  puVar6 = &local_18;\n  FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);\n  iVar1 = *(int *)puVar4;\n  *(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;\n  puVar4 = PTR_DAT_000755a8;\n  *(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;\n  if (local_c == iVar1) {\n    return iVar1;\n  }\n  uVar5 = local_14;\n  puVar9 = PTR___stack_chk_fail_00075ba8;\n  (*(code *)PTR___stack_chk_fail_00075ba8)();\n  piVar7 = *(int **)(puVar9 + 0x4db84);\n  iVar1 = *piVar7;\n  if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }\n  iVar8 = *(int *)(puVar9 + 0x4d544);\n  if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }\n  iVar8 = open_safer(puVar4,uVar5 | 0x80000);\n  if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }\n  if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }\n  return iVar8;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "code *pcVar10;" (type_identifier "code") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "uint local_14;" (type_identifier "uint") (identifier "local_14") (; ";")) (declaration "undefined4 local_10;" (type_identifier "undefined4") (identifier "local_10") (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "puVar4 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar4 = PTR___stack_chk_guard_00075be8" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_guard_00075be8")) (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00075be8" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00075be8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00075be8")))) (; ";")) (expression_statement "iVar1 = FUN_000279f0();" (assignment_expression "iVar1 = FUN_000279f0()" (identifier "iVar1") (= "=") (call_expression "FUN_000279f0()" (identifier "FUN_000279f0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n    iVar1 = FUN_00027d24();\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_00027d24();\n  }" ({ "{") (expression_statement "iVar1 = FUN_00027d24();" (assignment_expression "iVar1 = FUN_00027d24()" (identifier "iVar1") (= "=") (call_expression "FUN_00027d24()" (identifier "FUN_00027d24") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" (identifier "local_18") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_10 = 0;" (assignment_expression "local_10 = 0" (identifier "local_10") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" (identifier "local_14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 != 0x7fffffff) {\n    iVar1 = iVar1 + 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0x7fffffff)" (( "(") (binary_expression "iVar1 != 0x7fffffff" (identifier "iVar1") (!= "!=") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n    iVar1 = iVar1 + 1;\n  }" ({ "{") (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "puVar6 = &local_18;" (assignment_expression "puVar6 = &local_18" (identifier "puVar6") (= "=") (pointer_expression "&local_18" (& "&") (identifier "local_18"))) (; ";")) (expression_statement "FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);" (call_expression "FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c)" (identifier "FUN_00027de4") (argument_list "(iVar1,PTR_LAB_00075668 + 0x7b8c)" (( "(") (identifier "iVar1") (, ",") (binary_expression "PTR_LAB_00075668 + 0x7b8c" (identifier "PTR_LAB_00075668") (+ "+") (number_literal "0x7b8c")) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)puVar4;" (assignment_expression "iVar1 = *(int *)puVar4" (identifier "iVar1") (= "=") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;" (assignment_expression "*(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18" (pointer_expression "*(undefined4 *)(PTR_DAT_000755a8 + 0x6438)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000755a8 + 0x6438)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000755a8 + 0x6438)" (( "(") (binary_expression "PTR_DAT_000755a8 + 0x6438" (identifier "PTR_DAT_000755a8") (+ "+") (number_literal "0x6438")) () ")")))) (= "=") (identifier "local_18")) (; ";")) (expression_statement "puVar4 = PTR_DAT_000755a8;" (assignment_expression "puVar4 = PTR_DAT_000755a8" (identifier "puVar4") (= "=") (identifier "PTR_DAT_000755a8")) (; ";")) (expression_statement "*(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;" (assignment_expression "*(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14" (pointer_expression "*(uint *)(PTR_DAT_000755a8 + 0x6434)" (* "*") (cast_expression "(uint *)(PTR_DAT_000755a8 + 0x6434)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000755a8 + 0x6434)" (( "(") (binary_expression "PTR_DAT_000755a8 + 0x6434" (identifier "PTR_DAT_000755a8") (+ "+") (number_literal "0x6434")) () ")")))) (= "=") (identifier "local_14")) (; ";")) (if_statement "if (local_c == iVar1) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_c == iVar1)" (( "(") (binary_expression "local_c == iVar1" (identifier "local_c") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "uVar5 = local_14;" (assignment_expression "uVar5 = local_14" (identifier "uVar5") (= "=") (identifier "local_14")) (; ";")) (expression_statement "puVar9 = PTR___stack_chk_fail_00075ba8;" (assignment_expression "puVar9 = PTR___stack_chk_fail_00075ba8" (identifier "puVar9") (= "=") (identifier "PTR___stack_chk_fail_00075ba8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00075ba8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar7 = *(int **)(puVar9 + 0x4db84);" (assignment_expression "piVar7 = *(int **)(puVar9 + 0x4db84)" (identifier "piVar7") (= "=") (pointer_expression "*(int **)(puVar9 + 0x4db84)" (* "*") (cast_expression "(int **)(puVar9 + 0x4db84)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x4db84)" (( "(") (binary_expression "puVar9 + 0x4db84" (identifier "puVar9") (+ "+") (number_literal "0x4db84")) () ")"))))) (; ";")) (expression_statement "iVar1 = *piVar7;" (assignment_expression "iVar1 = *piVar7" (identifier "iVar1") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (if_statement "if ((uVar5 & 0x100) == 0) {\n    puVar6 = (undefined4 *)0x0;\n  }" (if "if") (parenthesized_expression "((uVar5 & 0x100) == 0)" (( "(") (binary_expression "(uVar5 & 0x100) == 0" (parenthesized_expression "(uVar5 & 0x100)" (( "(") (binary_expression "uVar5 & 0x100" (identifier "uVar5") (& "&") (number_literal "0x100")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar6 = (undefined4 *)0x0;\n  }" ({ "{") (expression_statement "puVar6 = (undefined4 *)0x0;" (assignment_expression "puVar6 = (undefined4 *)0x0" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (expression_statement "iVar8 = *(int *)(puVar9 + 0x4d544);" (assignment_expression "iVar8 = *(int *)(puVar9 + 0x4d544)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(puVar9 + 0x4d544)" (* "*") (cast_expression "(int *)(puVar9 + 0x4d544)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 0x4d544)" (( "(") (binary_expression "puVar9 + 0x4d544" (identifier "puVar9") (+ "+") (number_literal "0x4d544")) () ")"))))) (; ";")) (if_statement "if (*(char *)(iVar8 + 0x6431) == '\0') {\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar8 + 0x6431) == '\0')" (( "(") (binary_expression "*(char *)(iVar8 + 0x6431) == '\0'" (pointer_expression "*(char *)(iVar8 + 0x6431)" (* "*") (cast_expression "(char *)(iVar8 + 0x6431)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x6431)" (( "(") (binary_expression "iVar8 + 0x6431" (identifier "iVar8") (+ "+") (number_literal "0x6431")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);\n    if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }\n  }" ({ "{") (expression_statement "iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);" (assignment_expression "iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000)" (identifier "iVar2") (= "=") (call_expression "open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000)" (identifier "open_safer") (argument_list "(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000)" (( "(") (binary_expression "*(int *)(puVar9 + 0x4d554) + 0x35d8" (pointer_expression "*(int *)(puVar9 + 0x4d554)" (* "*") (cast_expression "(int *)(puVar9 + 0x4d554)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 0x4d554)" (( "(") (binary_expression "puVar9 + 0x4d554" (identifier "puVar9") (+ "+") (number_literal "0x4d554")) () ")")))) (+ "+") (number_literal "0x35d8")) (, ",") (number_literal "0x80000") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }\n    else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;\n    }" ({ "{") (expression_statement "*(undefined1 *)(iVar8 + 0x6431) = 1;" (assignment_expression "*(undefined1 *)(iVar8 + 0x6431) = 1" (pointer_expression "*(undefined1 *)(iVar8 + 0x6431)" (* "*") (cast_expression "(undefined1 *)(iVar8 + 0x6431)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x6431)" (( "(") (binary_expression "iVar8 + 0x6431" (identifier "iVar8") (+ "+") (number_literal "0x6431")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;" (assignment_expression "*(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0" (pointer_expression "*(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" (* "*") (cast_expression "(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar9 + 0x4d544) + 0x6430)" (( "(") (binary_expression "*(int *)(puVar9 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar9 + 0x4d544)" (* "*") (cast_expression "(int *)(puVar9 + 0x4d544)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 0x4d544)" (( "(") (binary_expression "puVar9 + 0x4d544" (identifier "puVar9") (+ "+") (number_literal "0x4d544")) () ")")))) (+ "+") (number_literal "0x6430")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }" (else "else") (compound_statement "{\n      bVar3 = rpl_fcntl(iVar2,1,puVar6);\n      (**(code **)(puVar9 + 0x4d984))(iVar2);\n      *(undefined1 *)(iVar8 + 0x6431) = 1;\n      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;\n    }" ({ "{") (expression_statement "bVar3 = rpl_fcntl(iVar2,1,puVar6);" (assignment_expression "bVar3 = rpl_fcntl(iVar2,1,puVar6)" (identifier "bVar3") (= "=") (call_expression "rpl_fcntl(iVar2,1,puVar6)" (identifier "rpl_fcntl") (argument_list "(iVar2,1,puVar6)" (( "(") (identifier "iVar2") (, ",") (number_literal "1") (, ",") (identifier "puVar6") () ")")))) (; ";")) (expression_statement "(**(code **)(puVar9 + 0x4d984))(iVar2);" (call_expression "(**(code **)(puVar9 + 0x4d984))(iVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0x4d984))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x4d984)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x4d984)" (* "*") (cast_expression "(code **)(puVar9 + 0x4d984)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x4d984)" (( "(") (binary_expression "puVar9 + 0x4d984" (identifier "puVar9") (+ "+") (number_literal "0x4d984")) () ")"))))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(iVar8 + 0x6431) = 1;" (assignment_expression "*(undefined1 *)(iVar8 + 0x6431) = 1" (pointer_expression "*(undefined1 *)(iVar8 + 0x6431)" (* "*") (cast_expression "(undefined1 *)(iVar8 + 0x6431)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x6431)" (( "(") (binary_expression "iVar8 + 0x6431" (identifier "iVar8") (+ "+") (number_literal "0x6431")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;" (assignment_expression "*(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1" (pointer_expression "*(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" (* "*") (cast_expression "(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar9 + 0x4d544) + 0x6430)" (( "(") (binary_expression "*(int *)(puVar9 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar9 + 0x4d544)" (* "*") (cast_expression "(int *)(puVar9 + 0x4d544)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 0x4d544)" (( "(") (binary_expression "puVar9 + 0x4d544" (identifier "puVar9") (+ "+") (number_literal "0x4d544")) () ")")))) (+ "+") (number_literal "0x6430")) () ")")))) (= "=") (binary_expression "bVar3 & 1" (identifier "bVar3") (& "&") (number_literal "1"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar8 = open_safer(puVar4,uVar5 | 0x80000);" (assignment_expression "iVar8 = open_safer(puVar4,uVar5 | 0x80000)" (identifier "iVar8") (= "=") (call_expression "open_safer(puVar4,uVar5 | 0x80000)" (identifier "open_safer") (argument_list "(puVar4,uVar5 | 0x80000)" (( "(") (identifier "puVar4") (, ",") (binary_expression "uVar5 | 0x80000" (identifier "uVar5") (| "|") (number_literal "0x80000")) () ")")))) (; ";")) (if_statement "if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {\n    set_cloexec_flag(iVar8,1);\n  }" (if "if") (parenthesized_expression "((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0'))" (( "(") (binary_expression "(-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')" (parenthesized_expression "(-1 < iVar8)" (( "(") (binary_expression "-1 < iVar8" (number_literal "-1") (< "<") (identifier "iVar8")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0'" (pointer_expression "*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" (* "*") (cast_expression "(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar9 + 0x4d544) + 0x6430)" (( "(") (binary_expression "*(int *)(puVar9 + 0x4d544) + 0x6430" (pointer_expression "*(int *)(puVar9 + 0x4d544)" (* "*") (cast_expression "(int *)(puVar9 + 0x4d544)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 0x4d544)" (( "(") (binary_expression "puVar9 + 0x4d544" (identifier "puVar9") (+ "+") (number_literal "0x4d544")) () ")")))) (+ "+") (number_literal "0x6430")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    set_cloexec_flag(iVar8,1);\n  }" ({ "{") (expression_statement "set_cloexec_flag(iVar8,1);" (call_expression "set_cloexec_flag(iVar8,1)" (identifier "set_cloexec_flag") (argument_list "(iVar8,1)" (( "(") (identifier "iVar8") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar1 != *piVar7) {\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(iVar1 != *piVar7)" (( "(") (binary_expression "iVar1 != *piVar7" (identifier "iVar1") (!= "!=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) () ")")) (compound_statement "{\n    pcVar10 = *(code **)(puVar9 + 0x4db44);\n    (*pcVar10)();\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));\n    *(undefined4 *)(iVar1 + 0x6438) = 0;\n    iVar1 = *(int *)(pcVar10 + 0x4d3d4);\n    *(undefined4 *)(iVar1 + 0x6434) = 0;\n    return iVar1;\n  }" ({ "{") (expression_statement "pcVar10 = *(code **)(puVar9 + 0x4db44);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0x4db44)" (identifier "pcVar10") (= "=") (pointer_expression "*(code **)(puVar9 + 0x4db44)" (* "*") (cast_expression "(code **)(puVar9 + 0x4db44)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x4db44)" (( "(") (binary_expression "puVar9 + 0x4db44" (identifier "puVar9") (+ "+") (number_literal "0x4db44")) () ")"))))) (; ";")) (expression_statement "(*pcVar10)();" (call_expression "(*pcVar10)()" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(pcVar10 + 0x4d3d4);" (assignment_expression "iVar1 = *(int *)(pcVar10 + 0x4d3d4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(pcVar10 + 0x4d3d4)" (* "*") (cast_expression "(int *)(pcVar10 + 0x4d3d4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x4d3d4)" (( "(") (binary_expression "pcVar10 + 0x4d3d4" (identifier "pcVar10") (+ "+") (number_literal "0x4d3d4")) () ")"))))) (; ";")) (expression_statement "(**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));" (call_expression "(**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438))" (parenthesized_expression "(**(code **)(pcVar10 + 0x4da28))" (( "(") (pointer_expression "**(code **)(pcVar10 + 0x4da28)" (* "*") (pointer_expression "*(code **)(pcVar10 + 0x4da28)" (* "*") (cast_expression "(code **)(pcVar10 + 0x4da28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar10 + 0x4da28)" (( "(") (binary_expression "pcVar10 + 0x4da28" (identifier "pcVar10") (+ "+") (number_literal "0x4da28")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar1 + 0x6438))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 0x6438)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x6438)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x6438)" (( "(") (binary_expression "iVar1 + 0x6438" (identifier "iVar1") (+ "+") (number_literal "0x6438")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x6438) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x6438) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x6438)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x6438)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x6438)" (( "(") (binary_expression "iVar1 + 0x6438" (identifier "iVar1") (+ "+") (number_literal "0x6438")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *(int *)(pcVar10 + 0x4d3d4);" (assignment_expression "iVar1 = *(int *)(pcVar10 + 0x4d3d4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(pcVar10 + 0x4d3d4)" (* "*") (cast_expression "(int *)(pcVar10 + 0x4d3d4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar10 + 0x4d3d4)" (( "(") (binary_expression "pcVar10 + 0x4d3d4" (identifier "pcVar10") (+ "+") (number_literal "0x4d3d4")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x6434) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x6434) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x6434)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x6434)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x6434)" (( "(") (binary_expression "iVar1 + 0x6434" (identifier "iVar1") (+ "+") (number_literal "0x6434")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return iVar8;" (return "return") (identifier "iVar8") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  int var_7;
  int var_2;
  int var_11;
  int iVar3;
  char *file;
  size_t var_9;
  type_1 *callback;
  void *in_a3;
  int *piVar5;
  type_2 *var_8;
  type_3 *var_14;
  type_1 cb_data;
  
  var_8 = PTR___stack_chk_guard_00075be8;
  var_7 = *(int *)PTR___stack_chk_guard_00075be8;
  var_2 = var_1();
  if (var_2 < 0) {
    var_2 = var_3();
  }
  cb_data.buf = (int *)0x0;
  cb_data.allocated = 0;
  cb_data.used = 0;
  if (var_2 != 0x7fffffff) {
    var_2 = var_2 + 1;
  }
  callback = &cb_data;
  var_4(var_2,(int)(var_5 + 0x7b8c),(type_4 *)callback,in_a3);
  var_2 = *(int *)var_8;
  *(int **)(var_6 + 0x6438) = cb_data.buf;
  file = var_6;
  *(size_t *)(var_6 + 0x6434) = cb_data.used;
  if (var_7 == var_2) {
    return;
  }
  var_9 = cb_data.used;
  var_8 = PTR___stack_chk_fail_00075ba8;
  (*(type_3 *)PTR___stack_chk_fail_00075ba8)();
  piVar5 = *(int **)(var_8 + 0x4db84);
  var_7 = *piVar5;
  if ((var_9 & 0x100) == 0) {
    callback = (type_1 *)0x0;
  }
  var_2 = *(int *)(var_8 + 0x4d544);
  if (*(char *)(var_2 + 0x6431) == '\0') {
    var_11 = var_10((char *)(*(int *)(var_8 + 0x4d554) + 0x35d8),0x80000);
    if (var_11 < 0) {
      *(type_5 *)(var_2 + 0x6431) = 1;
      *(type_5 *)(*(int *)(var_8 + 0x4d544) + 0x6430) = 0;
    }
    else {
      iVar3 = var_12(var_11,1,callback);
      (**(type_3 **)(var_8 + 0x4d984))(var_11);
      *(type_5 *)(var_2 + 0x6431) = 1;
      *(type_6 *)(*(int *)(var_8 + 0x4d544) + 0x6430) = (type_6)iVar3 & 1;
    }
  }
  var_2 = var_10(file,var_9 | 0x80000);
  if ((-1 < var_2) && (*(char *)(*(int *)(var_8 + 0x4d544) + 0x6430) == '\0')) {
    var_13(var_2,true);
  }
  if (var_7 != *piVar5) {
    var_14 = *(type_3 **)(var_8 + 0x4db44);
    (*var_14)();
    var_7 = *(int *)(var_14 + 0x4d3d4);
    (**(type_3 **)(var_14 + 0x4da28))(*(type_7 *)(var_7 + 0x6438));
    *(type_7 *)(var_7 + 0x6438) = 0;
    *(type_7 *)(*(int *)(var_14 + 0x4d3d4) + 0x6434) = 0;
    return;
  }
  return;
}


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

int MASKED(void)

{
  int iVar1;
  int iVar2;
  byte bVar3;
  undefined *puVar4;
  uint uVar5;
  undefined4 *puVar6;
  int *piVar7;
  int iVar8;
  undefined *puVar9;
  code *pcVar10;
  undefined4 local_18;
  uint local_14;
  undefined4 local_10;
  int local_c;
  
  puVar4 = PTR___stack_chk_guard_00075be8;
  local_c = *(int *)PTR___stack_chk_guard_00075be8;
  iVar1 = FUN_000279f0();
  if (iVar1 < 0) {
    iVar1 = FUN_00027d24();
  }
  local_18 = 0;
  local_10 = 0;
  local_14 = 0;
  if (iVar1 != 0x7fffffff) {
    iVar1 = iVar1 + 1;
  }
  puVar6 = &local_18;
  FUN_00027de4(iVar1,PTR_LAB_00075668 + 0x7b8c);
  iVar1 = *(int *)puVar4;
  *(undefined4 *)(PTR_DAT_000755a8 + 0x6438) = local_18;
  puVar4 = PTR_DAT_000755a8;
  *(uint *)(PTR_DAT_000755a8 + 0x6434) = local_14;
  if (local_c == iVar1) {
    return iVar1;
  }
  uVar5 = local_14;
  puVar9 = PTR___stack_chk_fail_00075ba8;
  (*(code *)PTR___stack_chk_fail_00075ba8)();
  piVar7 = *(int **)(puVar9 + 0x4db84);
  iVar1 = *piVar7;
  if ((uVar5 & 0x100) == 0) {
    puVar6 = (undefined4 *)0x0;
  }
  iVar8 = *(int *)(puVar9 + 0x4d544);
  if (*(char *)(iVar8 + 0x6431) == '\0') {
    iVar2 = open_safer(*(int *)(puVar9 + 0x4d554) + 0x35d8,0x80000);
    if (iVar2 < 0) {
      *(undefined1 *)(iVar8 + 0x6431) = 1;
      *(undefined1 *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = 0;
    }
    else {
      bVar3 = rpl_fcntl(iVar2,1,puVar6);
      (**(code **)(puVar9 + 0x4d984))(iVar2);
      *(undefined1 *)(iVar8 + 0x6431) = 1;
      *(byte *)(*(int *)(puVar9 + 0x4d544) + 0x6430) = bVar3 & 1;
    }
  }
  iVar8 = open_safer(puVar4,uVar5 | 0x80000);
  if ((-1 < iVar8) && (*(char *)(*(int *)(puVar9 + 0x4d544) + 0x6430) == '\0')) {
    set_cloexec_flag(iVar8,1);
  }
  if (iVar1 != *piVar7) {
    pcVar10 = *(code **)(puVar9 + 0x4db44);
    (*pcVar10)();
    iVar1 = *(int *)(pcVar10 + 0x4d3d4);
    (**(code **)(pcVar10 + 0x4da28))(*(undefined4 *)(iVar1 + 0x6438));
    *(undefined4 *)(iVar1 + 0x6438) = 0;
    iVar1 = *(int *)(pcVar10 + 0x4d3d4);
    *(undefined4 *)(iVar1 + 0x6434) = 0;
    return iVar1;
  }
  return iVar8;
}

