
/* WARNING: Restarted to delay deadcode elimination for space: stack */

int rpl_fcntl(int fd,int action,...)

{
  FILE *fp;
  int iVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  undefined4 *puVar5;
  undefined4 in_a2;
  int target;
  undefined4 uVar6;
  undefined *puVar7;
  undefined4 in_stack_ffffffbc;
  va_list arg;
  
  fp = *(FILE **)PTR___stack_chk_guard_000382f4;
  if (action != 0x406) {
    iVar1 = (*(code *)PTR_fcntl64_0003826c)(fd,action,in_a2);
    goto LAB_00023ee0;
  }
  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {
    action = 0;
    iVar1 = rpl_fcntl(fd,0);
    if ((iVar1 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;
  }
  else {
    action = 0x406;
    iVar1 = (*(code *)PTR_fcntl64_0003826c)();
    if ((-1 < iVar1) ||
       (piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16)) {
      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;
      goto LAB_00023ee0;
    }
    action = 0;
    iVar1 = rpl_fcntl(fd,0,in_a2);
    if (iVar1 < 0) goto LAB_00023ee0;
    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;
  }
  action = 1;
  uVar3 = (*(code *)PTR_fcntl64_0003826c)(iVar1);
  if (-1 < (int)uVar3) {
    action = 2;
    iVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar1,2,uVar3 | 1);
    if (iVar4 != -1) goto LAB_00023ee0;
  }
  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();
  uVar6 = *puVar5;
  (*(code *)PTR_close_00038220)(iVar1);
  *puVar5 = uVar6;
  iVar1 = -1;
LAB_00023ee0:
  if (fp != *(FILE **)PTR___stack_chk_guard_000382f4) {
    puVar7 = PTR___stack_chk_fail_000382e0;
    (*(code *)PTR___stack_chk_fail_000382e0)();
    if ((fp == (FILE *)0x0) || (iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0)) {
      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);
    }
    else {
      if ((fp->_flags & 0x100U) != 0) {
        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);
      }
      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);
    }
    return iVar1;
  }
  return iVar1;
}



/* WARNING: Restarted to delay deadcode elimination for space: stack */

int rpl_fcntl(undefined4 param_1,int param_2,undefined4 param_3)

{
  uint *puVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  undefined *puVar8;
  
  puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;
  if (param_2 != 0x406) {
    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);
    goto LAB_00023ee0;
  }
  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {
    iVar2 = rpl_fcntl(param_1,0);
    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;
  }
  else {
    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);
    if ((-1 < iVar2) ||
       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {
      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;
      goto LAB_00023ee0;
    }
    iVar2 = rpl_fcntl(param_1,0,param_3);
    if (iVar2 < 0) goto LAB_00023ee0;
    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;
  }
  uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);
  if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))
  {
    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();
    uVar7 = *puVar6;
    (*(code *)PTR_close_00038220)(iVar2);
    *puVar6 = uVar7;
    iVar2 = -1;
  }
LAB_00023ee0:
  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {
    puVar8 = PTR___stack_chk_fail_000382e0;
    (*(code *)PTR___stack_chk_fail_000382e0)();
    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {
      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);
    }
    else {
      if ((*puVar1 & 0x100) != 0) {
        rpl_fseeko(puVar1);
      }
      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);
    }
    return iVar2;
  }
  return iVar2;
}


lui gp,0x2
addiu gp,gp,-0x3c50
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x10(sp)
or s1,a0,zero
sw a2,0x38(sp)
sw a3,0x3c(sp)
lw v0,-0x7ddc(gp)
lw v0,0x0(v0)
sw v0,0x1c(sp)
addiu v0,sp,0x38
sw v0,0x18(sp)
li v0,0x406
bne a1,v0,0x00023ebc
_lw v0,0x18(sp)
addiu v1,v0,0x4
sw v1,0x18(sp)
lw v0,-0x7fd8(gp)
lw v0,-0x7b50(v0)
bltz v0,0x00023e0c
_or s2,a2,zero
li a1,0x406
lw t9,-0x7e64(gp)
jalr t9
_nop
lw gp,0x10(sp)
bltz v0,0x00023db4
_or s0,v0,zero
lw v0,-0x7fd8(gp)
li v1,0x1
b 0x00023edc
_sw v1,-0x7b50(v0)
lw t9,-0x7e50(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x0(v0)
li v0,0x16
bne v1,v0,0x00023da8
_lw v0,-0x7fd8(gp)
or a2,s2,zero
or a1,zero,zero
or a0,s1,zero
lw t9,-0x7fc4(gp)
addiu t9,t9,0x3d20
bal 0x00023d20
_nop
lw gp,0x10(sp)
bltz v0,0x00023edc
_or s0,v0,zero
lw v0,-0x7fd8(gp)
li v1,-0x1
b 0x00023e40
_sw v1,-0x7b50(v0)
or a1,zero,zero
lw t9,-0x7fc4(gp)
addiu t9,t9,0x3d20
bal 0x00023d20
_nop
lw gp,0x10(sp)
bltz v0,0x00023edc
_or s0,v0,zero
lw v0,-0x7fd8(gp)
lw v1,-0x7b50(v0)
li v0,-0x1
bne v1,v0,0x00023ee0
_or v0,s0,zero
li a1,0x1
or a0,s0,zero
lw t9,-0x7e64(gp)
jalr t9
_nop
lw gp,0x10(sp)
bltz v0,0x00023e84
_ori a2,v0,0x1
li a1,0x2
or a0,s0,zero
lw t9,-0x7e64(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v1,-0x1
bne v0,v1,0x00023ee0
_or v0,s0,zero
lw t9,-0x7e50(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s1,v0,zero
lw s2,0x0(v0)
or a0,s0,zero
lw t9,-0x7eb0(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw s2,0x0(s1)
b 0x00023edc
_li s0,-0x1
addiu v1,v0,0x4
sw v1,0x18(sp)
lw a2,0x0(v0)
lw t9,-0x7e64(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
or v0,s0,zero
lw a0,0x1c(sp)
lw v1,-0x7ddc(gp)
lw v1,0x0(v1)
bne a0,v1,0x00023f08
_lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7df0(gp)
jalr t9
_nop
nop
nop
nop
(translation_unit "/* WARNING: Restarted to delay deadcode elimination for space: stack */\n\nint rpl_fcntl(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;\n  if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);\n  if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }\nLAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int rpl_fcntl(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;\n  if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);\n  if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }\nLAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "rpl_fcntl(undefined4 param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;\n  if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);\n  if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }\nLAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }\n  return iVar2;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (expression_statement "puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;" (assignment_expression "puVar1 = *(uint **)PTR___stack_chk_guard_000382f4" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_000382f4" * (cast_expression "(uint **)PTR___stack_chk_guard_000382f4" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }" if (parenthesized_expression "(param_2 != 0x406)" ( (binary_expression "param_2 != 0x406" identifier != number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }" { (expression_statement "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;) })) (if_statement "if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0)" ( (binary_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0" (pointer_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(int *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }" { (expression_statement "iVar2 = rpl_fcntl(param_1,0);" (assignment_expression "iVar2 = rpl_fcntl(param_1,0)" identifier = (call_expression "rpl_fcntl(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;" if (parenthesized_expression "((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1))" ( (binary_expression "(iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)" (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)" ( (binary_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1" (pointer_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(int *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) != number_literal) ))) )) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" else (compound_statement "{\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" { (expression_statement "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(param_1,0x406)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x406)" ( identifier , number_literal )))) ;) (if_statement "if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }" if (parenthesized_expression "((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16))" ( (binary_expression "(-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) || (parenthesized_expression "(piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)" ( (comma_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00038280)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00038280)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00038280)()" (parenthesized_expression "(*(code *)PTR___errno_location_00038280)" ( (pointer_expression "*(code *)PTR___errno_location_00038280" * (cast_expression "(code *)PTR___errno_location_00038280" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar3 != 0x16" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) (compound_statement "{\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }" { (expression_statement "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;" (assignment_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1" (pointer_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;) })) (expression_statement "iVar2 = rpl_fcntl(param_1,0,param_3);" (assignment_expression "iVar2 = rpl_fcntl(param_1,0,param_3)" identifier = (call_expression "rpl_fcntl(param_1,0,param_3)" identifier (argument_list "(param_1,0,param_3)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 < 0) goto LAB_00023ee0;" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);" (assignment_expression "uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(iVar2,1)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,1)" ( identifier , number_literal )))) ;) (if_statement "if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }" if (parenthesized_expression "(((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))" ( (binary_expression "((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1)" (parenthesized_expression "((int)uVar4 < 0)" ( (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1)" ( (comma_expression "iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1" (assignment_expression "iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,2,uVar4 | 1)" ( identifier , number_literal , (binary_expression "uVar4 | 1" identifier | number_literal) )))) , (binary_expression "iVar5 == -1" identifier == number_literal)) ))) )) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00038280)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00038280)()" (parenthesized_expression "(*(code *)PTR___errno_location_00038280)" ( (pointer_expression "*(code *)PTR___errno_location_00038280" * (cast_expression "(code *)PTR___errno_location_00038280" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar7 = *puVar6;" (assignment_expression "uVar7 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "(*(code *)PTR_close_00038220)(iVar2);" (call_expression "(*(code *)PTR_close_00038220)(iVar2)" (parenthesized_expression "(*(code *)PTR_close_00038220)" ( (pointer_expression "*(code *)PTR_close_00038220" * (cast_expression "(code *)PTR_close_00038220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "*puVar6 = uVar7;" (assignment_expression "*puVar6 = uVar7" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) })) (labeled_statement "LAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }" statement_identifier : (if_statement "if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }" if (parenthesized_expression "(puVar1 != *(uint **)PTR___stack_chk_guard_000382f4)" ( (binary_expression "puVar1 != *(uint **)PTR___stack_chk_guard_000382f4" identifier != (pointer_expression "*(uint **)PTR___stack_chk_guard_000382f4" * (cast_expression "(uint **)PTR___stack_chk_guard_000382f4" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }" { (expression_statement "puVar8 = PTR___stack_chk_fail_000382e0;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000382e0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000382e0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000382e0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000382e0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000382e0" * (cast_expression "(code *)PTR___stack_chk_fail_000382e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" if (parenthesized_expression "((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0))" ( (binary_expression "(puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)" (parenthesized_expression "(puVar1 == (uint *)0x0)" ( (binary_expression "puVar1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)" ( (comma_expression "iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0" (assignment_expression "iVar2 = (**(code **)(puVar8 + 0x1438c))()" identifier = (call_expression "(**(code **)(puVar8 + 0x1438c))()" (parenthesized_expression "(**(code **)(puVar8 + 0x1438c))" ( (pointer_expression "**(code **)(puVar8 + 0x1438c)" * (pointer_expression "*(code **)(puVar8 + 0x1438c)" * (cast_expression "(code **)(puVar8 + 0x1438c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x1438c)" ( (binary_expression "puVar8 + 0x1438c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" { (expression_statement "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);" (assignment_expression "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1)" identifier = (call_expression "(**(code **)(puVar8 + 0x143e8))(puVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x143e8))" ( (pointer_expression "**(code **)(puVar8 + 0x143e8)" * (pointer_expression "*(code **)(puVar8 + 0x143e8)" * (cast_expression "(code **)(puVar8 + 0x143e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x143e8)" ( (binary_expression "puVar8 + 0x143e8" identifier + number_literal) ))))) )) (argument_list "(puVar1)" ( identifier )))) ;) }) (else_clause "else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" else (compound_statement "{\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" { (if_statement "if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }" if (parenthesized_expression "((*puVar1 & 0x100) != 0)" ( (binary_expression "(*puVar1 & 0x100) != 0" (parenthesized_expression "(*puVar1 & 0x100)" ( (binary_expression "*puVar1 & 0x100" (pointer_expression "*puVar1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n        rpl_fseeko(puVar1);\n      }" { (expression_statement "rpl_fseeko(puVar1);" (call_expression "rpl_fseeko(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) })) (expression_statement "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);" (assignment_expression "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1)" identifier = (call_expression "(**(code **)(puVar8 + 0x143e8))(puVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x143e8))" ( (pointer_expression "**(code **)(puVar8 + 0x143e8)" * (pointer_expression "*(code **)(puVar8 + 0x143e8)" * (cast_expression "(code **)(puVar8 + 0x143e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x143e8)" ( (binary_expression "puVar8 + 0x143e8" identifier + number_literal) ))))) )) (argument_list "(puVar1)" ( identifier )))) ;) }))) (return_statement "return iVar2;" return identifier ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Restarted to delay deadcode elimination for space: stack */\n\nint rpl_fcntl(int fd,int action,...)\n\n{\n  FILE *fp;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 in_a2;\n  int target;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 in_stack_ffffffbc;\n  va_list arg;\n  \n  fp = *(FILE **)PTR___stack_chk_guard_000382f4;\n  if (action != 0x406) {\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)(fd,action,in_a2);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0);\n    if ((iVar1 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    action = 0x406;\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)();\n    if ((-1 < iVar1) ||\n       (piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0,in_a2);\n    if (iVar1 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  action = 1;\n  uVar3 = (*(code *)PTR_fcntl64_0003826c)(iVar1);\n  if (-1 < (int)uVar3) {\n    action = 2;\n    iVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar1,2,uVar3 | 1);\n    if (iVar4 != -1) goto LAB_00023ee0;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n  uVar6 = *puVar5;\n  (*(code *)PTR_close_00038220)(iVar1);\n  *puVar5 = uVar6;\n  iVar1 = -1;\nLAB_00023ee0:\n  if (fp != *(FILE **)PTR___stack_chk_guard_000382f4) {\n    puVar7 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((fp == (FILE *)0x0) || (iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0)) {\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    else {\n      if ((fp->_flags & 0x100U) != 0) {\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int rpl_fcntl(int fd,int action,...)\n\n{\n  FILE *fp;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 in_a2;\n  int target;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 in_stack_ffffffbc;\n  va_list arg;\n  \n  fp = *(FILE **)PTR___stack_chk_guard_000382f4;\n  if (action != 0x406) {\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)(fd,action,in_a2);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0);\n    if ((iVar1 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    action = 0x406;\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)();\n    if ((-1 < iVar1) ||\n       (piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0,in_a2);\n    if (iVar1 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  action = 1;\n  uVar3 = (*(code *)PTR_fcntl64_0003826c)(iVar1);\n  if (-1 < (int)uVar3) {\n    action = 2;\n    iVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar1,2,uVar3 | 1);\n    if (iVar4 != -1) goto LAB_00023ee0;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n  uVar6 = *puVar5;\n  (*(code *)PTR_close_00038220)(iVar1);\n  *puVar5 = uVar6;\n  iVar1 = -1;\nLAB_00023ee0:\n  if (fp != *(FILE **)PTR___stack_chk_guard_000382f4) {\n    puVar7 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((fp == (FILE *)0x0) || (iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0)) {\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    else {\n      if ((fp->_flags & 0x100U) != 0) {\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "rpl_fcntl(int fd,int action,...)" identifier (parameter_list "(int fd,int action,...)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "int action" primitive_type identifier) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  FILE *fp;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 in_a2;\n  int target;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 in_stack_ffffffbc;\n  va_list arg;\n  \n  fp = *(FILE **)PTR___stack_chk_guard_000382f4;\n  if (action != 0x406) {\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)(fd,action,in_a2);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0);\n    if ((iVar1 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    action = 0x406;\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)();\n    if ((-1 < iVar1) ||\n       (piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0,in_a2);\n    if (iVar1 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  action = 1;\n  uVar3 = (*(code *)PTR_fcntl64_0003826c)(iVar1);\n  if (-1 < (int)uVar3) {\n    action = 2;\n    iVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar1,2,uVar3 | 1);\n    if (iVar4 != -1) goto LAB_00023ee0;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n  uVar6 = *puVar5;\n  (*(code *)PTR_close_00038220)(iVar1);\n  *puVar5 = uVar6;\n  iVar1 = -1;\nLAB_00023ee0:\n  if (fp != *(FILE **)PTR___stack_chk_guard_000382f4) {\n    puVar7 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((fp == (FILE *)0x0) || (iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0)) {\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    else {\n      if ((fp->_flags & 0x100U) != 0) {\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" { (declaration "FILE *fp;" type_identifier (pointer_declarator "*fp" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "int target;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 in_stack_ffffffbc;" type_identifier identifier ;) (declaration "va_list arg;" type_identifier identifier ;) (expression_statement "fp = *(FILE **)PTR___stack_chk_guard_000382f4;" (assignment_expression "fp = *(FILE **)PTR___stack_chk_guard_000382f4" identifier = (pointer_expression "*(FILE **)PTR___stack_chk_guard_000382f4" * (cast_expression "(FILE **)PTR___stack_chk_guard_000382f4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (action != 0x406) {\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)(fd,action,in_a2);\n    goto LAB_00023ee0;\n  }" if (parenthesized_expression "(action != 0x406)" ( (binary_expression "action != 0x406" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)(fd,action,in_a2);\n    goto LAB_00023ee0;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_fcntl64_0003826c)(fd,action,in_a2);" (assignment_expression "iVar1 = (*(code *)PTR_fcntl64_0003826c)(fd,action,in_a2)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(fd,action,in_a2)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,action,in_a2)" ( identifier , identifier , identifier )))) ;) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;) })) (if_statement "if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0);\n    if ((iVar1 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    action = 0x406;\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)();\n    if ((-1 < iVar1) ||\n       (piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0,in_a2);\n    if (iVar1 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0)" ( (binary_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0" (pointer_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(int *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0);\n    if ((iVar1 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }" { (expression_statement "action = 0;" (assignment_expression "action = 0" identifier = number_literal) ;) (expression_statement "iVar1 = rpl_fcntl(fd,0);" (assignment_expression "iVar1 = rpl_fcntl(fd,0)" identifier = (call_expression "rpl_fcntl(fd,0)" identifier (argument_list "(fd,0)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar1 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;" if (parenthesized_expression "((iVar1 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1))" ( (binary_expression "(iVar1 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)" (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)" ( (binary_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1" (pointer_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(int *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) != number_literal) ))) )) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;)) }) (else_clause "else {\n    action = 0x406;\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)();\n    if ((-1 < iVar1) ||\n       (piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0,in_a2);\n    if (iVar1 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" else (compound_statement "{\n    action = 0x406;\n    iVar1 = (*(code *)PTR_fcntl64_0003826c)();\n    if ((-1 < iVar1) ||\n       (piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    action = 0;\n    iVar1 = rpl_fcntl(fd,0,in_a2);\n    if (iVar1 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" { (expression_statement "action = 0x406;" (assignment_expression "action = 0x406" identifier = number_literal) ;) (expression_statement "iVar1 = (*(code *)PTR_fcntl64_0003826c)();" (assignment_expression "iVar1 = (*(code *)PTR_fcntl64_0003826c)()" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)()" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((-1 < iVar1) ||\n       (piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }" if (parenthesized_expression "((-1 < iVar1) ||\n       (piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16))" ( (binary_expression "(-1 < iVar1) ||\n       (piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16)" (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) || (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar2 != 0x16" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00038280)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00038280)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00038280)()" (parenthesized_expression "(*(code *)PTR___errno_location_00038280)" ( (pointer_expression "*(code *)PTR___errno_location_00038280" * (cast_expression "(code *)PTR___errno_location_00038280" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar2 != 0x16" (pointer_expression "*piVar2" * identifier) != number_literal)) ))) )) (compound_statement "{\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }" { (expression_statement "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;" (assignment_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1" (pointer_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;) })) (expression_statement "action = 0;" (assignment_expression "action = 0" identifier = number_literal) ;) (expression_statement "iVar1 = rpl_fcntl(fd,0,in_a2);" (assignment_expression "iVar1 = rpl_fcntl(fd,0,in_a2)" identifier = (call_expression "rpl_fcntl(fd,0,in_a2)" identifier (argument_list "(fd,0,in_a2)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 < 0) goto LAB_00023ee0;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "action = 1;" (assignment_expression "action = 1" identifier = number_literal) ;) (expression_statement "uVar3 = (*(code *)PTR_fcntl64_0003826c)(iVar1);" (assignment_expression "uVar3 = (*(code *)PTR_fcntl64_0003826c)(iVar1)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(iVar1)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (-1 < (int)uVar3) {\n    action = 2;\n    iVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar1,2,uVar3 | 1);\n    if (iVar4 != -1) goto LAB_00023ee0;\n  }" if (parenthesized_expression "(-1 < (int)uVar3)" ( (binary_expression "-1 < (int)uVar3" number_literal < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    action = 2;\n    iVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar1,2,uVar3 | 1);\n    if (iVar4 != -1) goto LAB_00023ee0;\n  }" { (expression_statement "action = 2;" (assignment_expression "action = 2" identifier = number_literal) ;) (expression_statement "iVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar1,2,uVar3 | 1);" (assignment_expression "iVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar1,2,uVar3 | 1)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(iVar1,2,uVar3 | 1)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,2,uVar3 | 1)" ( identifier , number_literal , (binary_expression "uVar3 | 1" identifier | number_literal) )))) ;) (if_statement "if (iVar4 != -1) goto LAB_00023ee0;" if (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;)) })) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_00038280)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00038280)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00038280)()" (parenthesized_expression "(*(code *)PTR___errno_location_00038280)" ( (pointer_expression "*(code *)PTR___errno_location_00038280" * (cast_expression "(code *)PTR___errno_location_00038280" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar6 = *puVar5;" (assignment_expression "uVar6 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "(*(code *)PTR_close_00038220)(iVar1);" (call_expression "(*(code *)PTR_close_00038220)(iVar1)" (parenthesized_expression "(*(code *)PTR_close_00038220)" ( (pointer_expression "*(code *)PTR_close_00038220" * (cast_expression "(code *)PTR_close_00038220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "*puVar5 = uVar6;" (assignment_expression "*puVar5 = uVar6" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (labeled_statement "LAB_00023ee0:\n  if (fp != *(FILE **)PTR___stack_chk_guard_000382f4) {\n    puVar7 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((fp == (FILE *)0x0) || (iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0)) {\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    else {\n      if ((fp->_flags & 0x100U) != 0) {\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    return iVar1;\n  }" statement_identifier : (if_statement "if (fp != *(FILE **)PTR___stack_chk_guard_000382f4) {\n    puVar7 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((fp == (FILE *)0x0) || (iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0)) {\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    else {\n      if ((fp->_flags & 0x100U) != 0) {\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(fp != *(FILE **)PTR___stack_chk_guard_000382f4)" ( (binary_expression "fp != *(FILE **)PTR___stack_chk_guard_000382f4" identifier != (pointer_expression "*(FILE **)PTR___stack_chk_guard_000382f4" * (cast_expression "(FILE **)PTR___stack_chk_guard_000382f4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    puVar7 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((fp == (FILE *)0x0) || (iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0)) {\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    else {\n      if ((fp->_flags & 0x100U) != 0) {\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    return iVar1;\n  }" { (expression_statement "puVar7 = PTR___stack_chk_fail_000382e0;" (assignment_expression "puVar7 = PTR___stack_chk_fail_000382e0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000382e0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000382e0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000382e0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000382e0" * (cast_expression "(code *)PTR___stack_chk_fail_000382e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if ((fp == (FILE *)0x0) || (iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0)) {\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }\n    else {\n      if ((fp->_flags & 0x100U) != 0) {\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }" if (parenthesized_expression "((fp == (FILE *)0x0) || (iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0))" ( (binary_expression "(fp == (FILE *)0x0) || (iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0)" (parenthesized_expression "(fp == (FILE *)0x0)" ( (binary_expression "fp == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0)" ( (comma_expression "iVar1 = (**(code **)(puVar7 + 0x1438c))(), iVar1 == 0" (assignment_expression "iVar1 = (**(code **)(puVar7 + 0x1438c))()" identifier = (call_expression "(**(code **)(puVar7 + 0x1438c))()" (parenthesized_expression "(**(code **)(puVar7 + 0x1438c))" ( (pointer_expression "**(code **)(puVar7 + 0x1438c)" * (pointer_expression "*(code **)(puVar7 + 0x1438c)" * (cast_expression "(code **)(puVar7 + 0x1438c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x1438c)" ( (binary_expression "puVar7 + 0x1438c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }" { (expression_statement "iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);" (assignment_expression "iVar1 = (**(code **)(puVar7 + 0x143e8))(fp)" identifier = (call_expression "(**(code **)(puVar7 + 0x143e8))(fp)" (parenthesized_expression "(**(code **)(puVar7 + 0x143e8))" ( (pointer_expression "**(code **)(puVar7 + 0x143e8)" * (pointer_expression "*(code **)(puVar7 + 0x143e8)" * (cast_expression "(code **)(puVar7 + 0x143e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x143e8)" ( (binary_expression "puVar7 + 0x143e8" identifier + number_literal) ))))) )) (argument_list "(fp)" ( identifier )))) ;) }) (else_clause "else {\n      if ((fp->_flags & 0x100U) != 0) {\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }" else (compound_statement "{\n      if ((fp->_flags & 0x100U) != 0) {\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }\n      iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);\n    }" { (if_statement "if ((fp->_flags & 0x100U) != 0) {\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }" if (parenthesized_expression "((fp->_flags & 0x100U) != 0)" ( (binary_expression "(fp->_flags & 0x100U) != 0" (parenthesized_expression "(fp->_flags & 0x100U)" ( (binary_expression "fp->_flags & 0x100U" (field_expression "fp->_flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n        rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);\n      }" { (expression_statement "rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action);" (call_expression "rpl_fseeko(fp,CONCAT44(1,in_stack_ffffffbc),action)" identifier (argument_list "(fp,CONCAT44(1,in_stack_ffffffbc),action)" ( identifier , (call_expression "CONCAT44(1,in_stack_ffffffbc)" identifier (argument_list "(1,in_stack_ffffffbc)" ( number_literal , identifier ))) , identifier ))) ;) })) (expression_statement "iVar1 = (**(code **)(puVar7 + 0x143e8))(fp);" (assignment_expression "iVar1 = (**(code **)(puVar7 + 0x143e8))(fp)" identifier = (call_expression "(**(code **)(puVar7 + 0x143e8))(fp)" (parenthesized_expression "(**(code **)(puVar7 + 0x143e8))" ( (pointer_expression "**(code **)(puVar7 + 0x143e8)" * (pointer_expression "*(code **)(puVar7 + 0x143e8)" * (cast_expression "(code **)(puVar7 + 0x143e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x143e8)" ( (binary_expression "puVar7 + 0x143e8" identifier + number_literal) ))))) )) (argument_list "(fp)" ( identifier )))) ;) }))) (return_statement "return iVar1;" return identifier ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int rpl_fcntl(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;\n  if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);\n  if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }\nLAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }\n  return iVar2;\n}\n\n" (function_definition "int rpl_fcntl(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;\n  if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);\n  if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }\nLAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "rpl_fcntl(undefined4 param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;\n  if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);\n  if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }\nLAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }\n  return iVar2;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (expression_statement "puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;" (assignment_expression "puVar1 = *(uint **)PTR___stack_chk_guard_000382f4" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_000382f4" * (cast_expression "(uint **)PTR___stack_chk_guard_000382f4" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }" if (parenthesized_expression "(param_2 != 0x406)" ( (binary_expression "param_2 != 0x406" identifier != number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }" { (expression_statement "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;) })) (if_statement "if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0)" ( (binary_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0" (pointer_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(int *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }" { (expression_statement "iVar2 = rpl_fcntl(param_1,0);" (assignment_expression "iVar2 = rpl_fcntl(param_1,0)" identifier = (call_expression "rpl_fcntl(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;" if (parenthesized_expression "((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1))" ( (binary_expression "(iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)" (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)" ( (binary_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1" (pointer_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(int *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) != number_literal) ))) )) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" else (compound_statement "{\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" { (expression_statement "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(param_1,0x406)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x406)" ( identifier , number_literal )))) ;) (if_statement "if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }" if (parenthesized_expression "((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16))" ( (binary_expression "(-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) || (parenthesized_expression "(piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)" ( (comma_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00038280)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00038280)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00038280)()" (parenthesized_expression "(*(code *)PTR___errno_location_00038280)" ( (pointer_expression "*(code *)PTR___errno_location_00038280" * (cast_expression "(code *)PTR___errno_location_00038280" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar3 != 0x16" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) (compound_statement "{\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }" { (expression_statement "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;" (assignment_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1" (pointer_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;) })) (expression_statement "iVar2 = rpl_fcntl(param_1,0,param_3);" (assignment_expression "iVar2 = rpl_fcntl(param_1,0,param_3)" identifier = (call_expression "rpl_fcntl(param_1,0,param_3)" identifier (argument_list "(param_1,0,param_3)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 < 0) goto LAB_00023ee0;" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00023ee0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" * (cast_expression "(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" ( (binary_expression "PTR_DAT_000380f8 + -0x7b50" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);" (assignment_expression "uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(iVar2,1)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,1)" ( identifier , number_literal )))) ;) (if_statement "if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }" if (parenthesized_expression "(((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))" ( (binary_expression "((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1)" (parenthesized_expression "((int)uVar4 < 0)" ( (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1)" ( (comma_expression "iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1" (assignment_expression "iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1)" identifier = (call_expression "(*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" ( (pointer_expression "*(code *)PTR_fcntl64_0003826c" * (cast_expression "(code *)PTR_fcntl64_0003826c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,2,uVar4 | 1)" ( identifier , number_literal , (binary_expression "uVar4 | 1" identifier | number_literal) )))) , (binary_expression "iVar5 == -1" identifier == number_literal)) ))) )) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }" { (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00038280)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00038280)()" (parenthesized_expression "(*(code *)PTR___errno_location_00038280)" ( (pointer_expression "*(code *)PTR___errno_location_00038280" * (cast_expression "(code *)PTR___errno_location_00038280" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar7 = *puVar6;" (assignment_expression "uVar7 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "(*(code *)PTR_close_00038220)(iVar2);" (call_expression "(*(code *)PTR_close_00038220)(iVar2)" (parenthesized_expression "(*(code *)PTR_close_00038220)" ( (pointer_expression "*(code *)PTR_close_00038220" * (cast_expression "(code *)PTR_close_00038220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "*puVar6 = uVar7;" (assignment_expression "*puVar6 = uVar7" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) })) (labeled_statement "LAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }" statement_identifier : (if_statement "if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }" if (parenthesized_expression "(puVar1 != *(uint **)PTR___stack_chk_guard_000382f4)" ( (binary_expression "puVar1 != *(uint **)PTR___stack_chk_guard_000382f4" identifier != (pointer_expression "*(uint **)PTR___stack_chk_guard_000382f4" * (cast_expression "(uint **)PTR___stack_chk_guard_000382f4" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }" { (expression_statement "puVar8 = PTR___stack_chk_fail_000382e0;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000382e0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000382e0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000382e0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000382e0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000382e0" * (cast_expression "(code *)PTR___stack_chk_fail_000382e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" if (parenthesized_expression "((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0))" ( (binary_expression "(puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)" (parenthesized_expression "(puVar1 == (uint *)0x0)" ( (binary_expression "puVar1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)" ( (comma_expression "iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0" (assignment_expression "iVar2 = (**(code **)(puVar8 + 0x1438c))()" identifier = (call_expression "(**(code **)(puVar8 + 0x1438c))()" (parenthesized_expression "(**(code **)(puVar8 + 0x1438c))" ( (pointer_expression "**(code **)(puVar8 + 0x1438c)" * (pointer_expression "*(code **)(puVar8 + 0x1438c)" * (cast_expression "(code **)(puVar8 + 0x1438c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x1438c)" ( (binary_expression "puVar8 + 0x1438c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" { (expression_statement "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);" (assignment_expression "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1)" identifier = (call_expression "(**(code **)(puVar8 + 0x143e8))(puVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x143e8))" ( (pointer_expression "**(code **)(puVar8 + 0x143e8)" * (pointer_expression "*(code **)(puVar8 + 0x143e8)" * (cast_expression "(code **)(puVar8 + 0x143e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x143e8)" ( (binary_expression "puVar8 + 0x143e8" identifier + number_literal) ))))) )) (argument_list "(puVar1)" ( identifier )))) ;) }) (else_clause "else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" else (compound_statement "{\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" { (if_statement "if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }" if (parenthesized_expression "((*puVar1 & 0x100) != 0)" ( (binary_expression "(*puVar1 & 0x100) != 0" (parenthesized_expression "(*puVar1 & 0x100)" ( (binary_expression "*puVar1 & 0x100" (pointer_expression "*puVar1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n        rpl_fseeko(puVar1);\n      }" { (expression_statement "rpl_fseeko(puVar1);" (call_expression "rpl_fseeko(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) })) (expression_statement "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);" (assignment_expression "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1)" identifier = (call_expression "(**(code **)(puVar8 + 0x143e8))(puVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x143e8))" ( (pointer_expression "**(code **)(puVar8 + 0x143e8)" * (pointer_expression "*(code **)(puVar8 + 0x143e8)" * (cast_expression "(code **)(puVar8 + 0x143e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x143e8)" ( (binary_expression "puVar8 + 0x143e8" identifier + number_literal) ))))) )) (argument_list "(puVar1)" ( identifier )))) ;) }))) (return_statement "return iVar2;" return identifier ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) , (binary_expression (pointer_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) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression IDENT | LIT) )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 )))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (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 )))) ;) }))) (return_statement return IDENT ;) }))) (return_statement return IDENT ;) })))
(function_definition "int rpl_fcntl(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;\n  if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);\n  if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }\nLAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "rpl_fcntl(undefined4 param_1,int param_2,undefined4 param_3)" (identifier "rpl_fcntl") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 uVar7;\n  undefined *puVar8;\n  \n  puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;\n  if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }\n  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }\n  uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);\n  if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }\nLAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }\n  return iVar2;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (expression_statement "puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;" (assignment_expression "puVar1 = *(uint **)PTR___stack_chk_guard_000382f4" (identifier "puVar1") (= "=") (pointer_expression "*(uint **)PTR___stack_chk_guard_000382f4" (* "*") (cast_expression "(uint **)PTR___stack_chk_guard_000382f4" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_000382f4")))) (; ";")) (if_statement "if (param_2 != 0x406) {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }" (if "if") (parenthesized_expression "(param_2 != 0x406)" (( "(") (binary_expression "param_2 != 0x406" (identifier "param_2") (!= "!=") (number_literal "0x406")) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);\n    goto LAB_00023ee0;\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" (( "(") (pointer_expression "*(code *)PTR_fcntl64_0003826c" (* "*") (cast_expression "(code *)PTR_fcntl64_0003826c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fcntl64_0003826c"))) () ")")) (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (goto_statement "goto LAB_00023ee0;" (goto "goto") (statement_identifier "LAB_00023ee0") (; ";")) (} "}"))) (if_statement "if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }\n  else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0)" (( "(") (binary_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0" (pointer_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50)" (* "*") (cast_expression "(int *)(PTR_DAT_000380f8 + -0x7b50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" (( "(") (binary_expression "PTR_DAT_000380f8 + -0x7b50" (identifier "PTR_DAT_000380f8") (+ "+") (number_literal "-0x7b50")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = rpl_fcntl(param_1,0);\n    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;\n  }" ({ "{") (expression_statement "iVar2 = rpl_fcntl(param_1,0);" (assignment_expression "iVar2 = rpl_fcntl(param_1,0)" (identifier "iVar2") (= "=") (call_expression "rpl_fcntl(param_1,0)" (identifier "rpl_fcntl") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;" (if "if") (parenthesized_expression "((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1))" (( "(") (binary_expression "(iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)" (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)" (( "(") (binary_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1" (pointer_expression "*(int *)(PTR_DAT_000380f8 + -0x7b50)" (* "*") (cast_expression "(int *)(PTR_DAT_000380f8 + -0x7b50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" (( "(") (binary_expression "PTR_DAT_000380f8 + -0x7b50" (identifier "PTR_DAT_000380f8") (+ "+") (number_literal "-0x7b50")) () ")")))) (!= "!=") (number_literal "-1")) () ")"))) () ")")) (goto_statement "goto LAB_00023ee0;" (goto "goto") (statement_identifier "LAB_00023ee0") (; ";"))) (} "}")) (else_clause "else {\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" (else "else") (compound_statement "{\n    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);\n    if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }\n    iVar2 = rpl_fcntl(param_1,0,param_3);\n    if (iVar2 < 0) goto LAB_00023ee0;\n    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);" (assignment_expression "iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_fcntl64_0003826c)(param_1,0x406)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" (( "(") (pointer_expression "*(code *)PTR_fcntl64_0003826c" (* "*") (cast_expression "(code *)PTR_fcntl64_0003826c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fcntl64_0003826c"))) () ")")) (argument_list "(param_1,0x406)" (( "(") (identifier "param_1") (, ",") (number_literal "0x406") () ")")))) (; ";")) (if_statement "if ((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }" (if "if") (parenthesized_expression "((-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16))" (( "(") (binary_expression "(-1 < iVar2) ||\n       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)" (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (|| "||") (parenthesized_expression "(piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)" (( "(") (comma_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_00038280)()" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00038280)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00038280)()" (parenthesized_expression "(*(code *)PTR___errno_location_00038280)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00038280" (* "*") (cast_expression "(code *)PTR___errno_location_00038280" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00038280"))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "*piVar3 != 0x16" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0x16"))) () ")"))) () ")")) (compound_statement "{\n      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;\n      goto LAB_00023ee0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;" (assignment_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1" (pointer_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" (( "(") (binary_expression "PTR_DAT_000380f8 + -0x7b50" (identifier "PTR_DAT_000380f8") (+ "+") (number_literal "-0x7b50")) () ")")))) (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00023ee0;" (goto "goto") (statement_identifier "LAB_00023ee0") (; ";")) (} "}"))) (expression_statement "iVar2 = rpl_fcntl(param_1,0,param_3);" (assignment_expression "iVar2 = rpl_fcntl(param_1,0,param_3)" (identifier "iVar2") (= "=") (call_expression "rpl_fcntl(param_1,0,param_3)" (identifier "rpl_fcntl") (argument_list "(param_1,0,param_3)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) goto LAB_00023ee0;" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00023ee0;" (goto "goto") (statement_identifier "LAB_00023ee0") (; ";"))) (expression_statement "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;" (assignment_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff" (pointer_expression "*(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000380f8 + -0x7b50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000380f8 + -0x7b50)" (( "(") (binary_expression "PTR_DAT_000380f8 + -0x7b50" (identifier "PTR_DAT_000380f8") (+ "+") (number_literal "-0x7b50")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")))) (expression_statement "uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);" (assignment_expression "uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_fcntl64_0003826c)(iVar2,1)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" (( "(") (pointer_expression "*(code *)PTR_fcntl64_0003826c" (* "*") (cast_expression "(code *)PTR_fcntl64_0003826c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fcntl64_0003826c"))) () ")")) (argument_list "(iVar2,1)" (( "(") (identifier "iVar2") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))\n  {\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }" (if "if") (parenthesized_expression "(((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))" (( "(") (binary_expression "((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1)" (parenthesized_expression "((int)uVar4 < 0)" (( "(") (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1)" (( "(") (comma_expression "iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1" (assignment_expression "iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1)" (parenthesized_expression "(*(code *)PTR_fcntl64_0003826c)" (( "(") (pointer_expression "*(code *)PTR_fcntl64_0003826c" (* "*") (cast_expression "(code *)PTR_fcntl64_0003826c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fcntl64_0003826c"))) () ")")) (argument_list "(iVar2,2,uVar4 | 1)" (( "(") (identifier "iVar2") (, ",") (number_literal "2") (, ",") (binary_expression "uVar4 | 1" (identifier "uVar4") (| "|") (number_literal "1")) () ")")))) (, ",") (binary_expression "iVar5 == -1" (identifier "iVar5") (== "==") (number_literal "-1"))) () ")"))) () ")")) (compound_statement "{\n    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();\n    uVar7 = *puVar6;\n    (*(code *)PTR_close_00038220)(iVar2);\n    *puVar6 = uVar7;\n    iVar2 = -1;\n  }" ({ "{") (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)()" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00038280)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00038280)()" (parenthesized_expression "(*(code *)PTR___errno_location_00038280)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00038280" (* "*") (cast_expression "(code *)PTR___errno_location_00038280" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00038280"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar7 = *puVar6;" (assignment_expression "uVar7 = *puVar6" (identifier "uVar7") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "(*(code *)PTR_close_00038220)(iVar2);" (call_expression "(*(code *)PTR_close_00038220)(iVar2)" (parenthesized_expression "(*(code *)PTR_close_00038220)" (( "(") (pointer_expression "*(code *)PTR_close_00038220" (* "*") (cast_expression "(code *)PTR_close_00038220" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_00038220"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "*puVar6 = uVar7;" (assignment_expression "*puVar6 = uVar7" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (labeled_statement "LAB_00023ee0:\n  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }" (statement_identifier "LAB_00023ee0") (: ":") (if_statement "if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(puVar1 != *(uint **)PTR___stack_chk_guard_000382f4)" (( "(") (binary_expression "puVar1 != *(uint **)PTR___stack_chk_guard_000382f4" (identifier "puVar1") (!= "!=") (pointer_expression "*(uint **)PTR___stack_chk_guard_000382f4" (* "*") (cast_expression "(uint **)PTR___stack_chk_guard_000382f4" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_000382f4")))) () ")")) (compound_statement "{\n    puVar8 = PTR___stack_chk_fail_000382e0;\n    (*(code *)PTR___stack_chk_fail_000382e0)();\n    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    return iVar2;\n  }" ({ "{") (expression_statement "puVar8 = PTR___stack_chk_fail_000382e0;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000382e0" (identifier "puVar8") (= "=") (identifier "PTR___stack_chk_fail_000382e0")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000382e0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000382e0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000382e0)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000382e0" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000382e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000382e0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }\n    else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" (if "if") (parenthesized_expression "((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0))" (( "(") (binary_expression "(puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)" (parenthesized_expression "(puVar1 == (uint *)0x0)" (( "(") (binary_expression "puVar1 == (uint *)0x0" (identifier "puVar1") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)" (( "(") (comma_expression "iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0" (assignment_expression "iVar2 = (**(code **)(puVar8 + 0x1438c))()" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar8 + 0x1438c))()" (parenthesized_expression "(**(code **)(puVar8 + 0x1438c))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x1438c)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x1438c)" (* "*") (cast_expression "(code **)(puVar8 + 0x1438c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x1438c)" (( "(") (binary_expression "puVar8 + 0x1438c" (identifier "puVar8") (+ "+") (number_literal "0x1438c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" ({ "{") (expression_statement "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);" (assignment_expression "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar8 + 0x143e8))(puVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x143e8))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x143e8)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x143e8)" (* "*") (cast_expression "(code **)(puVar8 + 0x143e8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x143e8)" (( "(") (binary_expression "puVar8 + 0x143e8" (identifier "puVar8") (+ "+") (number_literal "0x143e8")) () ")"))))) () ")")) (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" (else "else") (compound_statement "{\n      if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }\n      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);\n    }" ({ "{") (if_statement "if ((*puVar1 & 0x100) != 0) {\n        rpl_fseeko(puVar1);\n      }" (if "if") (parenthesized_expression "((*puVar1 & 0x100) != 0)" (( "(") (binary_expression "(*puVar1 & 0x100) != 0" (parenthesized_expression "(*puVar1 & 0x100)" (( "(") (binary_expression "*puVar1 & 0x100" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (& "&") (number_literal "0x100")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        rpl_fseeko(puVar1);\n      }" ({ "{") (expression_statement "rpl_fseeko(puVar1);" (call_expression "rpl_fseeko(puVar1)" (identifier "rpl_fseeko") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);" (assignment_expression "iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar8 + 0x143e8))(puVar1)" (parenthesized_expression "(**(code **)(puVar8 + 0x143e8))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x143e8)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x143e8)" (* "*") (cast_expression "(code **)(puVar8 + 0x143e8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x143e8)" (( "(") (binary_expression "puVar8 + 0x143e8" (identifier "puVar8") (+ "+") (number_literal "0x143e8")) () ")"))))) () ")")) (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")")))) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

/* WARNING: Restarted to delay deadcode elimination for space: stack */

int function_1(int fd,int var_1,...)

{
  type_1 *var_6;
  int var_3;
  int *piVar2;
  type_2 var_4;
  int var_5;
  type_3 *puVar5;
  type_3 in_a2;
  int target;
  type_3 uVar6;
  type_4 *var_7;
  type_3 in_stack_ffffffbc;
  type_5 arg;
  
  var_6 = *(type_1 **)PTR___stack_chk_guard_000382f4;
  if (var_1 != 0x406) {
    var_3 = (*(type_6 *)PTR_fcntl64_0003826c)(fd,var_1,in_a2);
    goto LAB_00023ee0;
  }
  if (*(int *)(var_2 + -0x7b50) < 0) {
    var_1 = 0;
    var_3 = function_1(fd,0);
    if ((var_3 < 0) || (*(int *)(var_2 + -0x7b50) != -1)) goto LAB_00023ee0;
  }
  else {
    var_1 = 0x406;
    var_3 = (*(type_6 *)PTR_fcntl64_0003826c)();
    if ((-1 < var_3) ||
       (piVar2 = (int *)(*(type_6 *)PTR___errno_location_00038280)(), *piVar2 != 0x16)) {
      *(type_3 *)(var_2 + -0x7b50) = 1;
      goto LAB_00023ee0;
    }
    var_1 = 0;
    var_3 = function_1(fd,0,in_a2);
    if (var_3 < 0) goto LAB_00023ee0;
    *(type_3 *)(var_2 + -0x7b50) = 0xffffffff;
  }
  var_1 = 1;
  var_4 = (*(type_6 *)PTR_fcntl64_0003826c)(var_3);
  if (-1 < (int)var_4) {
    var_1 = 2;
    var_5 = (*(type_6 *)PTR_fcntl64_0003826c)(var_3,2,var_4 | 1);
    if (var_5 != -1) goto LAB_00023ee0;
  }
  puVar5 = (type_3 *)(*(type_6 *)PTR___errno_location_00038280)();
  uVar6 = *puVar5;
  (*(type_6 *)PTR_close_00038220)(var_3);
  *puVar5 = uVar6;
  var_3 = -1;
LAB_00023ee0:
  if (var_6 != *(type_1 **)PTR___stack_chk_guard_000382f4) {
    var_7 = PTR___stack_chk_fail_000382e0;
    (*(type_6 *)PTR___stack_chk_fail_000382e0)();
    if ((var_6 == (type_1 *)0x0) || (var_3 = (**(type_6 **)(var_7 + 0x1438c))(), var_3 == 0)) {
      var_3 = (**(type_6 **)(var_7 + 0x143e8))(var_6);
    }
    else {
      if ((var_6->_flags & 0x100U) != 0) {
        var_8(var_6,var_9(1,in_stack_ffffffbc),var_1);
      }
      var_3 = (**(type_6 **)(var_7 + 0x143e8))(var_6);
    }
    return var_3;
  }
  return var_3;
}


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

/* WARNING: Restarted to delay deadcode elimination for space: stack */

int MASKED(undefined4 param_1,int param_2,undefined4 param_3)

{
  uint *puVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 uVar7;
  undefined *puVar8;
  
  puVar1 = *(uint **)PTR___stack_chk_guard_000382f4;
  if (param_2 != 0x406) {
    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,param_2,param_3);
    goto LAB_00023ee0;
  }
  if (*(int *)(PTR_DAT_000380f8 + -0x7b50) < 0) {
    iVar2 = MASKED(param_1,0);
    if ((iVar2 < 0) || (*(int *)(PTR_DAT_000380f8 + -0x7b50) != -1)) goto LAB_00023ee0;
  }
  else {
    iVar2 = (*(code *)PTR_fcntl64_0003826c)(param_1,0x406);
    if ((-1 < iVar2) ||
       (piVar3 = (int *)(*(code *)PTR___errno_location_00038280)(), *piVar3 != 0x16)) {
      *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 1;
      goto LAB_00023ee0;
    }
    iVar2 = MASKED(param_1,0,param_3);
    if (iVar2 < 0) goto LAB_00023ee0;
    *(undefined4 *)(PTR_DAT_000380f8 + -0x7b50) = 0xffffffff;
  }
  uVar4 = (*(code *)PTR_fcntl64_0003826c)(iVar2,1);
  if (((int)uVar4 < 0) || (iVar5 = (*(code *)PTR_fcntl64_0003826c)(iVar2,2,uVar4 | 1), iVar5 == -1))
  {
    puVar6 = (undefined4 *)(*(code *)PTR___errno_location_00038280)();
    uVar7 = *puVar6;
    (*(code *)PTR_close_00038220)(iVar2);
    *puVar6 = uVar7;
    iVar2 = -1;
  }
LAB_00023ee0:
  if (puVar1 != *(uint **)PTR___stack_chk_guard_000382f4) {
    puVar8 = PTR___stack_chk_fail_000382e0;
    (*(code *)PTR___stack_chk_fail_000382e0)();
    if ((puVar1 == (uint *)0x0) || (iVar2 = (**(code **)(puVar8 + 0x1438c))(), iVar2 == 0)) {
      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);
    }
    else {
      if ((*puVar1 & 0x100) != 0) {
        rpl_fseeko(puVar1);
      }
      iVar2 = (**(code **)(puVar8 + 0x143e8))(puVar1);
    }
    return iVar2;
  }
  return iVar2;
}

