
/* WARNING: Unknown calling convention */

_Bool yesno(void)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  undefined4 *puVar4;
  int *piVar5;
  undefined1 uVar6;
  FILE *fp;
  size_t *whence;
  undefined4 uVar7;
  int *piVar8;
  bool bVar9;
  int iVar10;
  undefined *puVar11;
  code *pcVar12;
  undefined4 in_stack_ffffff7c;
  char *response;
  size_t response_size;
  int local_14;
  
  puVar11 = PTR___stack_chk_guard_000466a0;
  uVar7 = 10;
  whence = &response_size;
  response = (char *)0x0;
  response_size = 0;
  local_14 = *(int *)PTR___stack_chk_guard_000466a0;
  iVar1 = (*(code *)PTR___getdelim_0004663c)(&response);
  if (iVar1 < 1) {
    bVar9 = false;
  }
  else {
    whence = (size_t *)(int)response[iVar1 + -1];
    if (whence == (size_t *)0xa) {
      response[iVar1 + -1] = '\0';
    }
    iVar1 = (*(code *)PTR_rpmatch_0004653c)(response);
    bVar9 = 0 < iVar1;
  }
  (*(code *)PTR_free_000466a8)(response);
  if (local_14 == *(int *)puVar11) {
    return bVar9;
  }
  iVar1 = local_14;
  puVar11 = PTR___stack_chk_fail_00046664;
  (*(code *)PTR___stack_chk_fail_00046664)();
  piVar8 = *(int **)(puVar11 + 0x1d190);
  fp = (FILE *)*piVar8;
  iVar10 = *(int *)(puVar11 + 0x1cc50);
  if (whence != (size_t *)0x406) {
    iVar2 = (**(code **)(puVar11 + 0x1d034))();
    goto LAB_00029598;
  }
  if (*(int *)(iVar10 + -0x72f0) < 0) {
    whence = (size_t *)0x0;
    iVar2 = rpl_fcntl(iVar1,0);
    if ((iVar2 < 0) || (iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;
LAB_000295f4:
    whence = (size_t *)0x1;
    uVar3 = (**(code **)(puVar11 + 0x1d034))(iVar1);
    if (-1 < (int)uVar3) {
      whence = (size_t *)0x2;
      iVar10 = (**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1);
      iVar2 = iVar1;
      if (iVar10 != -1) goto LAB_00029598;
    }
    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();
    uVar7 = *puVar4;
    iVar2 = -1;
    (**(code **)(puVar11 + 0x1cf70))(iVar1);
    *puVar4 = uVar7;
  }
  else {
    iVar2 = (**(code **)(puVar11 + 0x1d034))();
    if (iVar2 < 0) {
      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();
      if (*piVar5 == 0x16) {
        whence = (size_t *)0x0;
        iVar2 = rpl_fcntl(iVar1,0,uVar7);
        if (iVar2 < 0) goto LAB_00029598;
        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;
        iVar1 = iVar2;
        goto LAB_000295f4;
      }
    }
    *(undefined4 *)(iVar10 + -0x72f0) = 1;
  }
LAB_00029598:
  if (fp == (FILE *)*piVar8) {
    return SUB41(iVar2,0);
  }
  pcVar12 = *(code **)(puVar11 + 0x1d154);
  (*pcVar12)();
  if (fp != (FILE *)0x0) {
    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();
    if ((iVar1 != 0) && ((fp->_flags & 0x100U) != 0)) {
      rpl_fseeko(fp,CONCAT44(1,in_stack_ffffff7c),(int)whence);
                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);
      return (_Bool)uVar6;
    }
  }
                    /* WARNING: Could not recover jumptable at 0x00029728. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);
  return (_Bool)uVar6;
}



/* WARNING: Type propagation algorithm not settling */

uint yesno(void)

{
  int iVar1;
  char *pcVar2;
  undefined4 *puVar3;
  uint *puVar4;
  int *piVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  undefined *puVar11;
  code *pcVar12;
  int local_1c [4];
  
  puVar11 = PTR___stack_chk_guard_000466a0;
  uVar6 = 10;
  piVar5 = local_1c + 1;
  local_1c[0] = 0;
  local_1c[1] = 0;
  local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;
  iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);
  if (iVar1 < 1) {
    uVar8 = 0;
  }
  else {
    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);
    piVar5 = (int *)(int)*pcVar2;
    if (piVar5 == (int *)0xa) {
      *pcVar2 = '\0';
    }
    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);
    uVar8 = (uint)(0 < iVar1);
  }
  (*(code *)PTR_free_000466a8)(local_1c[0]);
  if (local_1c[2] == *(int *)puVar11) {
    return uVar8;
  }
  iVar1 = local_1c[2];
  puVar11 = PTR___stack_chk_fail_00046664;
  (*(code *)PTR___stack_chk_fail_00046664)();
  puVar7 = *(undefined4 **)(puVar11 + 0x1d190);
  puVar4 = (uint *)*puVar7;
  iVar10 = *(int *)(puVar11 + 0x1cc50);
  if (piVar5 != (int *)0x406) {
    uVar8 = (**(code **)(puVar11 + 0x1d034))();
    goto LAB_00029598;
  }
  if (*(int *)(iVar10 + -0x72f0) < 0) {
    uVar8 = rpl_fcntl();
    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;
LAB_000295f4:
    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);
    if (-1 < (int)uVar8) {
      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);
      uVar8 = uVar9;
      if (iVar1 != -1) goto LAB_00029598;
    }
    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();
    uVar6 = *puVar3;
    uVar8 = 0xffffffff;
    (**(code **)(puVar11 + 0x1cf70))(uVar9);
    *puVar3 = uVar6;
  }
  else {
    uVar8 = (**(code **)(puVar11 + 0x1d034))();
    if ((int)uVar8 < 0) {
      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();
      if (*piVar5 == 0x16) {
        uVar8 = rpl_fcntl(iVar1,0,uVar6);
        if ((int)uVar8 < 0) goto LAB_00029598;
        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;
        uVar9 = uVar8;
        goto LAB_000295f4;
      }
    }
    *(undefined4 *)(iVar10 + -0x72f0) = 1;
  }
LAB_00029598:
  if (puVar4 == (uint *)*puVar7) {
    return uVar8;
  }
  pcVar12 = *(code **)(puVar11 + 0x1d154);
  (*pcVar12)();
  if (puVar4 != (uint *)0x0) {
    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();
    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {
      rpl_fseeko(puVar4);
                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);
      return uVar8;
    }
  }
                    /* WARNING: Could not recover jumptable at 0x00029728. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);
  return uVar8;
}


lui gp,0x2
addiu gp,gp,0x4ce0
addu gp,gp,t9
addiu sp,sp,-0x38
lw v1,-0x7b80(gp)
lw t9,-0x7ad4(gp)
li a2,0xa
addiu a1,sp,0x20
sw s0,0x2c(sp)
addiu a0,sp,0x1c
lw s0,-0x7a70(gp)
lw a3,0x0(v1)
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s1,0x30(sp)
sw zero,0x1c(sp)
sw zero,0x20(sp)
lw v0,0x0(s0)
sw v0,0x24(sp)
jalr t9
_nop
blez v0,0x000294fc
_lw gp,0x10(sp)
lw a0,0x1c(sp)
addiu v0,v0,-0x1
li v1,0xa
addu v0,a0,v0
lb a1,0x0(v0)
beq a1,v1,0x000294f0
_nop
lw t9,-0x7bd4(gp)
jalr t9
_nop
lw gp,0x10(sp)
slt s1,zero,v0
lw t9,-0x7a68(gp)
jalr t9
_lw a0,0x1c(sp)
or v0,s1,zero
lw a0,0x24(sp)
lw v1,0x0(s0)
bne a0,v1,0x00029504
_lw gp,0x10(sp)
lw ra,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x38
sb zero,0x0(v0)
b 0x000294a8
_lw a0,0x1c(sp)
b 0x000294bc
_or s1,zero,zero
lw t9,-0x7aac(gp)
jalr t9
_nop
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n\nuint yesno(void)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int local_1c [4];\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar6 = 10;\n  piVar5 = local_1c + 1;\n  local_1c[0] = 0;\n  local_1c[1] = 0;\n  local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);\n  if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }\n  (*(code *)PTR_free_000466a8)(local_1c[0]);\n  if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }\n  iVar1 = local_1c[2];\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  puVar7 = *(undefined4 **)(puVar11 + 0x1d190);\n  puVar4 = (uint *)*puVar7;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x00029728. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n  return uVar8;\n}\n\n" comment (function_definition "uint yesno(void)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int local_1c [4];\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar6 = 10;\n  piVar5 = local_1c + 1;\n  local_1c[0] = 0;\n  local_1c[1] = 0;\n  local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);\n  if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }\n  (*(code *)PTR_free_000466a8)(local_1c[0]);\n  if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }\n  iVar1 = local_1c[2];\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  puVar7 = *(undefined4 **)(puVar11 + 0x1d190);\n  puVar4 = (uint *)*puVar7;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x00029728. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n  return uVar8;\n}" type_identifier (function_declarator "yesno(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int local_1c [4];\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar6 = 10;\n  piVar5 = local_1c + 1;\n  local_1c[0] = 0;\n  local_1c[1] = 0;\n  local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);\n  if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }\n  (*(code *)PTR_free_000466a8)(local_1c[0]);\n  if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }\n  iVar1 = local_1c[2];\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  puVar7 = *(undefined4 **)(puVar11 + 0x1d190);\n  puVar4 = (uint *)*puVar7;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x00029728. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n  return uVar8;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "int local_1c [4];" primitive_type (array_declarator "local_1c [4]" identifier [ number_literal ]) ;) (expression_statement "puVar11 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar11 = PTR___stack_chk_guard_000466a0" identifier = identifier) ;) (expression_statement "uVar6 = 10;" (assignment_expression "uVar6 = 10" identifier = number_literal) ;) (expression_statement "piVar5 = local_1c + 1;" (assignment_expression "piVar5 = local_1c + 1" identifier = (binary_expression "local_1c + 1" identifier + number_literal)) ;) (expression_statement "local_1c[0] = 0;" (assignment_expression "local_1c[0] = 0" (subscript_expression "local_1c[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_1c[1] = 0;" (assignment_expression "local_1c[1] = 0" (subscript_expression "local_1c[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0" (subscript_expression "local_1c[2]" identifier [ number_literal ]) = (pointer_expression "*(int *)PTR___stack_chk_guard_000466a0" * (cast_expression "(int *)PTR___stack_chk_guard_000466a0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);" (assignment_expression "iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c)" identifier = (call_expression "(*(code *)PTR___getdelim_0004663c)(local_1c)" (parenthesized_expression "(*(code *)PTR___getdelim_0004663c)" ( (pointer_expression "*(code *)PTR___getdelim_0004663c" * (cast_expression "(code *)PTR___getdelim_0004663c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_1c)" ( identifier )))) ;) (if_statement "if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n    uVar8 = 0;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }" else (compound_statement "{\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }" { (expression_statement "pcVar2 = (char *)(local_1c[0] + iVar1 + -1);" (assignment_expression "pcVar2 = (char *)(local_1c[0] + iVar1 + -1)" identifier = (cast_expression "(char *)(local_1c[0] + iVar1 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1c[0] + iVar1 + -1)" ( (binary_expression "local_1c[0] + iVar1 + -1" (binary_expression "local_1c[0] + iVar1" (subscript_expression "local_1c[0]" identifier [ number_literal ]) + identifier) + number_literal) )))) ;) (expression_statement "piVar5 = (int *)(int)*pcVar2;" (assignment_expression "piVar5 = (int *)(int)*pcVar2" identifier = (cast_expression "(int *)(int)*pcVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier)))) ;) (if_statement "if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }" if (parenthesized_expression "(piVar5 == (int *)0xa)" ( (binary_expression "piVar5 == (int *)0xa" identifier == (cast_expression "(int *)0xa" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *pcVar2 = '\0';\n    }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);" (assignment_expression "iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0])" identifier = (call_expression "(*(code *)PTR_rpmatch_0004653c)(local_1c[0])" (parenthesized_expression "(*(code *)PTR_rpmatch_0004653c)" ( (pointer_expression "*(code *)PTR_rpmatch_0004653c" * (cast_expression "(code *)PTR_rpmatch_0004653c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_1c[0])" ( (subscript_expression "local_1c[0]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar8 = (uint)(0 < iVar1);" (assignment_expression "uVar8 = (uint)(0 < iVar1)" identifier = (call_expression "(uint)(0 < iVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )))) ;) }))) (expression_statement "(*(code *)PTR_free_000466a8)(local_1c[0]);" (call_expression "(*(code *)PTR_free_000466a8)(local_1c[0])" (parenthesized_expression "(*(code *)PTR_free_000466a8)" ( (pointer_expression "*(code *)PTR_free_000466a8" * (cast_expression "(code *)PTR_free_000466a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_1c[0])" ( (subscript_expression "local_1c[0]" identifier [ number_literal ]) ))) ;) (if_statement "if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }" if (parenthesized_expression "(local_1c[2] == *(int *)puVar11)" ( (binary_expression "local_1c[2] == *(int *)puVar11" (subscript_expression "local_1c[2]" identifier [ number_literal ]) == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar8;\n  }" { (return_statement "return uVar8;" return identifier ;) })) (expression_statement "iVar1 = local_1c[2];" (assignment_expression "iVar1 = local_1c[2]" identifier = (subscript_expression "local_1c[2]" identifier [ number_literal ])) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_00046664;" (assignment_expression "puVar11 = PTR___stack_chk_fail_00046664" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00046664)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046664)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046664)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00046664" * (cast_expression "(code *)PTR___stack_chk_fail_00046664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar7 = *(undefined4 **)(puVar11 + 0x1d190);" (assignment_expression "puVar7 = *(undefined4 **)(puVar11 + 0x1d190)" identifier = (pointer_expression "*(undefined4 **)(puVar11 + 0x1d190)" * (cast_expression "(undefined4 **)(puVar11 + 0x1d190)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d190)" ( (binary_expression "puVar11 + 0x1d190" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = (uint *)*puVar7;" (assignment_expression "puVar4 = (uint *)*puVar7" identifier = (cast_expression "(uint *)*puVar7" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) ;) (expression_statement "iVar10 = *(int *)(puVar11 + 0x1cc50);" (assignment_expression "iVar10 = *(int *)(puVar11 + 0x1cc50)" identifier = (pointer_expression "*(int *)(puVar11 + 0x1cc50)" * (cast_expression "(int *)(puVar11 + 0x1cc50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x1cc50)" ( (binary_expression "puVar11 + 0x1cc50" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }" if (parenthesized_expression "(piVar5 != (int *)0x406)" ( (binary_expression "piVar5 != (int *)0x406" identifier != (cast_expression "(int *)0x406" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }" { (expression_statement "uVar8 = (**(code **)(puVar11 + 0x1d034))();" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x1d034))()" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (goto_statement "goto LAB_00029598;" goto statement_identifier ;) })) (if_statement "if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" if (parenthesized_expression "(*(int *)(iVar10 + -0x72f0) < 0)" ( (binary_expression "*(int *)(iVar10 + -0x72f0) < 0" (pointer_expression "*(int *)(iVar10 + -0x72f0)" * (cast_expression "(int *)(iVar10 + -0x72f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }" { (expression_statement "uVar8 = rpl_fcntl();" (assignment_expression "uVar8 = rpl_fcntl()" identifier = (call_expression "rpl_fcntl()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;" if (parenthesized_expression "(((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1))" ( (binary_expression "((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)" (parenthesized_expression "((int)uVar8 < 0)" ( (binary_expression "(int)uVar8 < 0" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)" ( (comma_expression "uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1" (assignment_expression "uVar9 = uVar8" identifier = identifier) , (binary_expression "*(int *)(iVar10 + -0x72f0) != -1" (pointer_expression "*(int *)(iVar10 + -0x72f0)" * (cast_expression "(int *)(iVar10 + -0x72f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) != number_literal)) ))) )) (goto_statement "goto LAB_00029598;" goto statement_identifier ;)) (labeled_statement "LAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);" statement_identifier : (expression_statement "uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1)" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))(uVar9,1)" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "(uVar9,1)" ( identifier , number_literal )))) ;)) (if_statement "if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }" if (parenthesized_expression "(-1 < (int)uVar8)" ( (binary_expression "-1 < (int)uVar8" number_literal < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }" { (expression_statement "iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);" (assignment_expression "iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1)" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1)" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "(uVar9,2,uVar8 | 1)" ( identifier , number_literal , (binary_expression "uVar8 | 1" identifier | number_literal) )))) ;) (expression_statement "uVar8 = uVar9;" (assignment_expression "uVar8 = uVar9" identifier = identifier) ;) (if_statement "if (iVar1 != -1) goto LAB_00029598;" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (goto_statement "goto LAB_00029598;" goto statement_identifier ;)) })) (expression_statement "puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();" (assignment_expression "puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar11 + 0x1d05c))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x1d05c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d05c))" ( (pointer_expression "**(code **)(puVar11 + 0x1d05c)" * (pointer_expression "*(code **)(puVar11 + 0x1d05c)" * (cast_expression "(code **)(puVar11 + 0x1d05c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d05c)" ( (binary_expression "puVar11 + 0x1d05c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar6 = *puVar3;" (assignment_expression "uVar6 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar11 + 0x1cf70))(uVar9);" (call_expression "(**(code **)(puVar11 + 0x1cf70))(uVar9)" (parenthesized_expression "(**(code **)(puVar11 + 0x1cf70))" ( (pointer_expression "**(code **)(puVar11 + 0x1cf70)" * (pointer_expression "*(code **)(puVar11 + 0x1cf70)" * (cast_expression "(code **)(puVar11 + 0x1cf70)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1cf70)" ( (binary_expression "puVar11 + 0x1cf70" identifier + number_literal) ))))) )) (argument_list "(uVar9)" ( identifier ))) ;) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" * identifier) = identifier) ;) }) (else_clause "else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" else (compound_statement "{\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" { (expression_statement "uVar8 = (**(code **)(puVar11 + 0x1d034))();" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x1d034))()" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }" if (parenthesized_expression "((int)uVar8 < 0)" ( (binary_expression "(int)uVar8 < 0" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }" { (expression_statement "piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();" (assignment_expression "piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))()" identifier = (cast_expression "(int *)(**(code **)(puVar11 + 0x1d05c))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x1d05c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d05c))" ( (pointer_expression "**(code **)(puVar11 + 0x1d05c)" * (pointer_expression "*(code **)(puVar11 + 0x1d05c)" * (cast_expression "(code **)(puVar11 + 0x1d05c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d05c)" ( (binary_expression "puVar11 + 0x1d05c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }" if (parenthesized_expression "(*piVar5 == 0x16)" ( (binary_expression "*piVar5 == 0x16" (pointer_expression "*piVar5" * identifier) == number_literal) )) (compound_statement "{\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }" { (expression_statement "uVar8 = rpl_fcntl(iVar1,0,uVar6);" (assignment_expression "uVar8 = rpl_fcntl(iVar1,0,uVar6)" identifier = (call_expression "rpl_fcntl(iVar1,0,uVar6)" identifier (argument_list "(iVar1,0,uVar6)" ( identifier , number_literal , identifier )))) ;) (if_statement "if ((int)uVar8 < 0) goto LAB_00029598;" if (parenthesized_expression "((int)uVar8 < 0)" ( (binary_expression "(int)uVar8 < 0" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_00029598;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar10 + -0x72f0)" * (cast_expression "(undefined4 *)(iVar10 + -0x72f0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar9 = uVar8;" (assignment_expression "uVar9 = uVar8" identifier = identifier) ;) (goto_statement "goto LAB_000295f4;" goto statement_identifier ;) })) })) (expression_statement "*(undefined4 *)(iVar10 + -0x72f0) = 1;" (assignment_expression "*(undefined4 *)(iVar10 + -0x72f0) = 1" (pointer_expression "*(undefined4 *)(iVar10 + -0x72f0)" * (cast_expression "(undefined4 *)(iVar10 + -0x72f0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) = number_literal) ;) }))) (labeled_statement "LAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }" statement_identifier : (if_statement "if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }" if (parenthesized_expression "(puVar4 == (uint *)*puVar7)" ( (binary_expression "puVar4 == (uint *)*puVar7" identifier == (cast_expression "(uint *)*puVar7" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) )) (compound_statement "{\n    return uVar8;\n  }" { (return_statement "return uVar8;" return identifier ;) }))) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x1d154);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x1d154)" identifier = (pointer_expression "*(code **)(puVar11 + 0x1d154)" * (cast_expression "(code **)(puVar11 + 0x1d154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d154)" ( (binary_expression "puVar11 + 0x1d154" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar12)();" (call_expression "(*pcVar12)()" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }" if (parenthesized_expression "(puVar4 != (uint *)0x0)" ( (binary_expression "puVar4 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(pcVar12 + 0x1cf10))();" (assignment_expression "iVar1 = (**(code **)(pcVar12 + 0x1cf10))()" identifier = (call_expression "(**(code **)(pcVar12 + 0x1cf10))()" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cf10))" ( (pointer_expression "**(code **)(pcVar12 + 0x1cf10)" * (pointer_expression "*(code **)(pcVar12 + 0x1cf10)" * (cast_expression "(code **)(pcVar12 + 0x1cf10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x1cf10)" ( (binary_expression "pcVar12 + 0x1cf10" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }" if (parenthesized_expression "((iVar1 != 0) && ((*puVar4 & 0x100) != 0))" ( (binary_expression "(iVar1 != 0) && ((*puVar4 & 0x100) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((*puVar4 & 0x100) != 0)" ( (binary_expression "(*puVar4 & 0x100) != 0" (parenthesized_expression "(*puVar4 & 0x100)" ( (binary_expression "*puVar4 & 0x100" (pointer_expression "*puVar4" * identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      rpl_fseeko(puVar4);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }" { (expression_statement "rpl_fseeko(puVar4);" (call_expression "rpl_fseeko(puVar4)" identifier (argument_list "(puVar4)" ( identifier ))) ;) comment comment (expression_statement "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);" (assignment_expression "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4)" identifier = (call_expression "(**(code **)(pcVar12 + 0x1cffc))(puVar4)" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cffc))" ( (pointer_expression "**(code **)(pcVar12 + 0x1cffc)" * (pointer_expression "*(code **)(pcVar12 + 0x1cffc)" * (cast_expression "(code **)(pcVar12 + 0x1cffc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x1cffc)" ( (binary_expression "pcVar12 + 0x1cffc" identifier + number_literal) ))))) )) (argument_list "(puVar4)" ( identifier )))) ;) (return_statement "return uVar8;" return identifier ;) })) })) comment comment (expression_statement "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);" (assignment_expression "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4)" identifier = (call_expression "(**(code **)(pcVar12 + 0x1cffc))(puVar4)" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cffc))" ( (pointer_expression "**(code **)(pcVar12 + 0x1cffc)" * (pointer_expression "*(code **)(pcVar12 + 0x1cffc)" * (cast_expression "(code **)(pcVar12 + 0x1cffc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x1cffc)" ( (binary_expression "pcVar12 + 0x1cffc" identifier + number_literal) ))))) )) (argument_list "(puVar4)" ( identifier )))) ;) (return_statement "return uVar8;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\n_Bool yesno(void)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined1 uVar6;\n  FILE *fp;\n  size_t *whence;\n  undefined4 uVar7;\n  int *piVar8;\n  bool bVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 in_stack_ffffff7c;\n  char *response;\n  size_t response_size;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar7 = 10;\n  whence = &response_size;\n  response = (char *)0x0;\n  response_size = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(&response);\n  if (iVar1 < 1) {\n    bVar9 = false;\n  }\n  else {\n    whence = (size_t *)(int)response[iVar1 + -1];\n    if (whence == (size_t *)0xa) {\n      response[iVar1 + -1] = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(response);\n    bVar9 = 0 < iVar1;\n  }\n  (*(code *)PTR_free_000466a8)(response);\n  if (local_14 == *(int *)puVar11) {\n    return bVar9;\n  }\n  iVar1 = local_14;\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  piVar8 = *(int **)(puVar11 + 0x1d190);\n  fp = (FILE *)*piVar8;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (whence != (size_t *)0x406) {\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    whence = (size_t *)0x0;\n    iVar2 = rpl_fcntl(iVar1,0);\n    if ((iVar2 < 0) || (iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    whence = (size_t *)0x1;\n    uVar3 = (**(code **)(puVar11 + 0x1d034))(iVar1);\n    if (-1 < (int)uVar3) {\n      whence = (size_t *)0x2;\n      iVar10 = (**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1);\n      iVar2 = iVar1;\n      if (iVar10 != -1) goto LAB_00029598;\n    }\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar7 = *puVar4;\n    iVar2 = -1;\n    (**(code **)(puVar11 + 0x1cf70))(iVar1);\n    *puVar4 = uVar7;\n  }\n  else {\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    if (iVar2 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        whence = (size_t *)0x0;\n        iVar2 = rpl_fcntl(iVar1,0,uVar7);\n        if (iVar2 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        iVar1 = iVar2;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (fp == (FILE *)*piVar8) {\n    return SUB41(iVar2,0);\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (fp != (FILE *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((fp->_flags & 0x100U) != 0)) {\n      rpl_fseeko(fp,CONCAT44(1,in_stack_ffffff7c),(int)whence);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);\n      return (_Bool)uVar6;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x00029728. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);\n  return (_Bool)uVar6;\n}\n\n" comment (function_definition "_Bool yesno(void)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined1 uVar6;\n  FILE *fp;\n  size_t *whence;\n  undefined4 uVar7;\n  int *piVar8;\n  bool bVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 in_stack_ffffff7c;\n  char *response;\n  size_t response_size;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar7 = 10;\n  whence = &response_size;\n  response = (char *)0x0;\n  response_size = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(&response);\n  if (iVar1 < 1) {\n    bVar9 = false;\n  }\n  else {\n    whence = (size_t *)(int)response[iVar1 + -1];\n    if (whence == (size_t *)0xa) {\n      response[iVar1 + -1] = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(response);\n    bVar9 = 0 < iVar1;\n  }\n  (*(code *)PTR_free_000466a8)(response);\n  if (local_14 == *(int *)puVar11) {\n    return bVar9;\n  }\n  iVar1 = local_14;\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  piVar8 = *(int **)(puVar11 + 0x1d190);\n  fp = (FILE *)*piVar8;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (whence != (size_t *)0x406) {\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    whence = (size_t *)0x0;\n    iVar2 = rpl_fcntl(iVar1,0);\n    if ((iVar2 < 0) || (iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    whence = (size_t *)0x1;\n    uVar3 = (**(code **)(puVar11 + 0x1d034))(iVar1);\n    if (-1 < (int)uVar3) {\n      whence = (size_t *)0x2;\n      iVar10 = (**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1);\n      iVar2 = iVar1;\n      if (iVar10 != -1) goto LAB_00029598;\n    }\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar7 = *puVar4;\n    iVar2 = -1;\n    (**(code **)(puVar11 + 0x1cf70))(iVar1);\n    *puVar4 = uVar7;\n  }\n  else {\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    if (iVar2 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        whence = (size_t *)0x0;\n        iVar2 = rpl_fcntl(iVar1,0,uVar7);\n        if (iVar2 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        iVar1 = iVar2;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (fp == (FILE *)*piVar8) {\n    return SUB41(iVar2,0);\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (fp != (FILE *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((fp->_flags & 0x100U) != 0)) {\n      rpl_fseeko(fp,CONCAT44(1,in_stack_ffffff7c),(int)whence);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);\n      return (_Bool)uVar6;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x00029728. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);\n  return (_Bool)uVar6;\n}" type_identifier (function_declarator "yesno(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined1 uVar6;\n  FILE *fp;\n  size_t *whence;\n  undefined4 uVar7;\n  int *piVar8;\n  bool bVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  undefined4 in_stack_ffffff7c;\n  char *response;\n  size_t response_size;\n  int local_14;\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar7 = 10;\n  whence = &response_size;\n  response = (char *)0x0;\n  response_size = 0;\n  local_14 = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(&response);\n  if (iVar1 < 1) {\n    bVar9 = false;\n  }\n  else {\n    whence = (size_t *)(int)response[iVar1 + -1];\n    if (whence == (size_t *)0xa) {\n      response[iVar1 + -1] = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(response);\n    bVar9 = 0 < iVar1;\n  }\n  (*(code *)PTR_free_000466a8)(response);\n  if (local_14 == *(int *)puVar11) {\n    return bVar9;\n  }\n  iVar1 = local_14;\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  piVar8 = *(int **)(puVar11 + 0x1d190);\n  fp = (FILE *)*piVar8;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (whence != (size_t *)0x406) {\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    whence = (size_t *)0x0;\n    iVar2 = rpl_fcntl(iVar1,0);\n    if ((iVar2 < 0) || (iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    whence = (size_t *)0x1;\n    uVar3 = (**(code **)(puVar11 + 0x1d034))(iVar1);\n    if (-1 < (int)uVar3) {\n      whence = (size_t *)0x2;\n      iVar10 = (**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1);\n      iVar2 = iVar1;\n      if (iVar10 != -1) goto LAB_00029598;\n    }\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar7 = *puVar4;\n    iVar2 = -1;\n    (**(code **)(puVar11 + 0x1cf70))(iVar1);\n    *puVar4 = uVar7;\n  }\n  else {\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    if (iVar2 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        whence = (size_t *)0x0;\n        iVar2 = rpl_fcntl(iVar1,0,uVar7);\n        if (iVar2 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        iVar1 = iVar2;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (fp == (FILE *)*piVar8) {\n    return SUB41(iVar2,0);\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (fp != (FILE *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((fp->_flags & 0x100U) != 0)) {\n      rpl_fseeko(fp,CONCAT44(1,in_stack_ffffff7c),(int)whence);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);\n      return (_Bool)uVar6;\n    }\n  }\n                    /* WARNING: Could not recover jumptable at 0x00029728. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);\n  return (_Bool)uVar6;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined1 uVar6;" type_identifier identifier ;) (declaration "FILE *fp;" type_identifier (pointer_declarator "*fp" * identifier) ;) (declaration "size_t *whence;" primitive_type (pointer_declarator "*whence" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "undefined4 in_stack_ffffff7c;" type_identifier identifier ;) (declaration "char *response;" primitive_type (pointer_declarator "*response" * identifier) ;) (declaration "size_t response_size;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar11 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar11 = PTR___stack_chk_guard_000466a0" identifier = identifier) ;) (expression_statement "uVar7 = 10;" (assignment_expression "uVar7 = 10" identifier = number_literal) ;) (expression_statement "whence = &response_size;" (assignment_expression "whence = &response_size" identifier = (pointer_expression "&response_size" & identifier)) ;) (expression_statement "response = (char *)0x0;" (assignment_expression "response = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "response_size = 0;" (assignment_expression "response_size = 0" identifier = number_literal) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000466a0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000466a0" * (cast_expression "(int *)PTR___stack_chk_guard_000466a0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = (*(code *)PTR___getdelim_0004663c)(&response);" (assignment_expression "iVar1 = (*(code *)PTR___getdelim_0004663c)(&response)" identifier = (call_expression "(*(code *)PTR___getdelim_0004663c)(&response)" (parenthesized_expression "(*(code *)PTR___getdelim_0004663c)" ( (pointer_expression "*(code *)PTR___getdelim_0004663c" * (cast_expression "(code *)PTR___getdelim_0004663c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&response)" ( (pointer_expression "&response" & identifier) )))) ;) (if_statement "if (iVar1 < 1) {\n    bVar9 = false;\n  }\n  else {\n    whence = (size_t *)(int)response[iVar1 + -1];\n    if (whence == (size_t *)0xa) {\n      response[iVar1 + -1] = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(response);\n    bVar9 = 0 < iVar1;\n  }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n    bVar9 = false;\n  }" { (expression_statement "bVar9 = false;" (assignment_expression "bVar9 = false" identifier = false) ;) }) (else_clause "else {\n    whence = (size_t *)(int)response[iVar1 + -1];\n    if (whence == (size_t *)0xa) {\n      response[iVar1 + -1] = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(response);\n    bVar9 = 0 < iVar1;\n  }" else (compound_statement "{\n    whence = (size_t *)(int)response[iVar1 + -1];\n    if (whence == (size_t *)0xa) {\n      response[iVar1 + -1] = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(response);\n    bVar9 = 0 < iVar1;\n  }" { (expression_statement "whence = (size_t *)(int)response[iVar1 + -1];" (assignment_expression "whence = (size_t *)(int)response[iVar1 + -1]" identifier = (cast_expression "(size_t *)(int)response[iVar1 + -1]" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)response[iVar1 + -1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "response[iVar1 + -1]" identifier [ (binary_expression "iVar1 + -1" identifier + number_literal) ])))) ;) (if_statement "if (whence == (size_t *)0xa) {\n      response[iVar1 + -1] = '\0';\n    }" if (parenthesized_expression "(whence == (size_t *)0xa)" ( (binary_expression "whence == (size_t *)0xa" identifier == (cast_expression "(size_t *)0xa" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      response[iVar1 + -1] = '\0';\n    }" { (expression_statement "response[iVar1 + -1] = '\0';" (assignment_expression "response[iVar1 + -1] = '\0'" (subscript_expression "response[iVar1 + -1]" identifier [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "iVar1 = (*(code *)PTR_rpmatch_0004653c)(response);" (assignment_expression "iVar1 = (*(code *)PTR_rpmatch_0004653c)(response)" identifier = (call_expression "(*(code *)PTR_rpmatch_0004653c)(response)" (parenthesized_expression "(*(code *)PTR_rpmatch_0004653c)" ( (pointer_expression "*(code *)PTR_rpmatch_0004653c" * (cast_expression "(code *)PTR_rpmatch_0004653c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(response)" ( identifier )))) ;) (expression_statement "bVar9 = 0 < iVar1;" (assignment_expression "bVar9 = 0 < iVar1" identifier = (binary_expression "0 < iVar1" number_literal < identifier)) ;) }))) (expression_statement "(*(code *)PTR_free_000466a8)(response);" (call_expression "(*(code *)PTR_free_000466a8)(response)" (parenthesized_expression "(*(code *)PTR_free_000466a8)" ( (pointer_expression "*(code *)PTR_free_000466a8" * (cast_expression "(code *)PTR_free_000466a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(response)" ( identifier ))) ;) (if_statement "if (local_14 == *(int *)puVar11) {\n    return bVar9;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar11)" ( (binary_expression "local_14 == *(int *)puVar11" identifier == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return bVar9;\n  }" { (return_statement "return bVar9;" return identifier ;) })) (expression_statement "iVar1 = local_14;" (assignment_expression "iVar1 = local_14" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_00046664;" (assignment_expression "puVar11 = PTR___stack_chk_fail_00046664" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00046664)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046664)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046664)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00046664" * (cast_expression "(code *)PTR___stack_chk_fail_00046664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar8 = *(int **)(puVar11 + 0x1d190);" (assignment_expression "piVar8 = *(int **)(puVar11 + 0x1d190)" identifier = (pointer_expression "*(int **)(puVar11 + 0x1d190)" * (cast_expression "(int **)(puVar11 + 0x1d190)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d190)" ( (binary_expression "puVar11 + 0x1d190" identifier + number_literal) ))))) ;) (expression_statement "fp = (FILE *)*piVar8;" (assignment_expression "fp = (FILE *)*piVar8" identifier = (cast_expression "(FILE *)*piVar8" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar8" * identifier))) ;) (expression_statement "iVar10 = *(int *)(puVar11 + 0x1cc50);" (assignment_expression "iVar10 = *(int *)(puVar11 + 0x1cc50)" identifier = (pointer_expression "*(int *)(puVar11 + 0x1cc50)" * (cast_expression "(int *)(puVar11 + 0x1cc50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x1cc50)" ( (binary_expression "puVar11 + 0x1cc50" identifier + number_literal) ))))) ;) (if_statement "if (whence != (size_t *)0x406) {\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }" if (parenthesized_expression "(whence != (size_t *)0x406)" ( (binary_expression "whence != (size_t *)0x406" identifier != (cast_expression "(size_t *)0x406" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }" { (expression_statement "iVar2 = (**(code **)(puVar11 + 0x1d034))();" (assignment_expression "iVar2 = (**(code **)(puVar11 + 0x1d034))()" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (goto_statement "goto LAB_00029598;" goto statement_identifier ;) })) (if_statement "if (*(int *)(iVar10 + -0x72f0) < 0) {\n    whence = (size_t *)0x0;\n    iVar2 = rpl_fcntl(iVar1,0);\n    if ((iVar2 < 0) || (iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    whence = (size_t *)0x1;\n    uVar3 = (**(code **)(puVar11 + 0x1d034))(iVar1);\n    if (-1 < (int)uVar3) {\n      whence = (size_t *)0x2;\n      iVar10 = (**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1);\n      iVar2 = iVar1;\n      if (iVar10 != -1) goto LAB_00029598;\n    }\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar7 = *puVar4;\n    iVar2 = -1;\n    (**(code **)(puVar11 + 0x1cf70))(iVar1);\n    *puVar4 = uVar7;\n  }\n  else {\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    if (iVar2 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        whence = (size_t *)0x0;\n        iVar2 = rpl_fcntl(iVar1,0,uVar7);\n        if (iVar2 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        iVar1 = iVar2;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" if (parenthesized_expression "(*(int *)(iVar10 + -0x72f0) < 0)" ( (binary_expression "*(int *)(iVar10 + -0x72f0) < 0" (pointer_expression "*(int *)(iVar10 + -0x72f0)" * (cast_expression "(int *)(iVar10 + -0x72f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    whence = (size_t *)0x0;\n    iVar2 = rpl_fcntl(iVar1,0);\n    if ((iVar2 < 0) || (iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    whence = (size_t *)0x1;\n    uVar3 = (**(code **)(puVar11 + 0x1d034))(iVar1);\n    if (-1 < (int)uVar3) {\n      whence = (size_t *)0x2;\n      iVar10 = (**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1);\n      iVar2 = iVar1;\n      if (iVar10 != -1) goto LAB_00029598;\n    }\n    puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar7 = *puVar4;\n    iVar2 = -1;\n    (**(code **)(puVar11 + 0x1cf70))(iVar1);\n    *puVar4 = uVar7;\n  }" { (expression_statement "whence = (size_t *)0x0;" (assignment_expression "whence = (size_t *)0x0" identifier = (cast_expression "(size_t *)0x0" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar2 = rpl_fcntl(iVar1,0);" (assignment_expression "iVar2 = rpl_fcntl(iVar1,0)" identifier = (call_expression "rpl_fcntl(iVar1,0)" identifier (argument_list "(iVar1,0)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar2 < 0) || (iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;" if (parenthesized_expression "((iVar2 < 0) || (iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1))" ( (binary_expression "(iVar2 < 0) || (iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1)" (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) || (parenthesized_expression "(iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1)" ( (comma_expression "iVar1 = iVar2, *(int *)(iVar10 + -0x72f0) != -1" (assignment_expression "iVar1 = iVar2" identifier = identifier) , (binary_expression "*(int *)(iVar10 + -0x72f0) != -1" (pointer_expression "*(int *)(iVar10 + -0x72f0)" * (cast_expression "(int *)(iVar10 + -0x72f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) != number_literal)) ))) )) (goto_statement "goto LAB_00029598;" goto statement_identifier ;)) (labeled_statement "LAB_000295f4:\n    whence = (size_t *)0x1;" statement_identifier : (expression_statement "whence = (size_t *)0x1;" (assignment_expression "whence = (size_t *)0x1" identifier = (cast_expression "(size_t *)0x1" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "uVar3 = (**(code **)(puVar11 + 0x1d034))(iVar1);" (assignment_expression "uVar3 = (**(code **)(puVar11 + 0x1d034))(iVar1)" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))(iVar1)" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (-1 < (int)uVar3) {\n      whence = (size_t *)0x2;\n      iVar10 = (**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1);\n      iVar2 = iVar1;\n      if (iVar10 != -1) goto LAB_00029598;\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      whence = (size_t *)0x2;\n      iVar10 = (**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1);\n      iVar2 = iVar1;\n      if (iVar10 != -1) goto LAB_00029598;\n    }" { (expression_statement "whence = (size_t *)0x2;" (assignment_expression "whence = (size_t *)0x2" identifier = (cast_expression "(size_t *)0x2" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar10 = (**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1);" (assignment_expression "iVar10 = (**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1)" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))(iVar1,2,uVar3 | 1)" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "(iVar1,2,uVar3 | 1)" ( identifier , number_literal , (binary_expression "uVar3 | 1" identifier | number_literal) )))) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (if_statement "if (iVar10 != -1) goto LAB_00029598;" if (parenthesized_expression "(iVar10 != -1)" ( (binary_expression "iVar10 != -1" identifier != number_literal) )) (goto_statement "goto LAB_00029598;" goto statement_identifier ;)) })) (expression_statement "puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();" (assignment_expression "puVar4 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar11 + 0x1d05c))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x1d05c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d05c))" ( (pointer_expression "**(code **)(puVar11 + 0x1d05c)" * (pointer_expression "*(code **)(puVar11 + 0x1d05c)" * (cast_expression "(code **)(puVar11 + 0x1d05c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d05c)" ( (binary_expression "puVar11 + 0x1d05c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar7 = *puVar4;" (assignment_expression "uVar7 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar11 + 0x1cf70))(iVar1);" (call_expression "(**(code **)(puVar11 + 0x1cf70))(iVar1)" (parenthesized_expression "(**(code **)(puVar11 + 0x1cf70))" ( (pointer_expression "**(code **)(puVar11 + 0x1cf70)" * (pointer_expression "*(code **)(puVar11 + 0x1cf70)" * (cast_expression "(code **)(puVar11 + 0x1cf70)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1cf70)" ( (binary_expression "puVar11 + 0x1cf70" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "*puVar4 = uVar7;" (assignment_expression "*puVar4 = uVar7" (pointer_expression "*puVar4" * identifier) = identifier) ;) }) (else_clause "else {\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    if (iVar2 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        whence = (size_t *)0x0;\n        iVar2 = rpl_fcntl(iVar1,0,uVar7);\n        if (iVar2 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        iVar1 = iVar2;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" else (compound_statement "{\n    iVar2 = (**(code **)(puVar11 + 0x1d034))();\n    if (iVar2 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        whence = (size_t *)0x0;\n        iVar2 = rpl_fcntl(iVar1,0,uVar7);\n        if (iVar2 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        iVar1 = iVar2;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" { (expression_statement "iVar2 = (**(code **)(puVar11 + 0x1d034))();" (assignment_expression "iVar2 = (**(code **)(puVar11 + 0x1d034))()" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        whence = (size_t *)0x0;\n        iVar2 = rpl_fcntl(iVar1,0,uVar7);\n        if (iVar2 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        iVar1 = iVar2;\n        goto LAB_000295f4;\n      }\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        whence = (size_t *)0x0;\n        iVar2 = rpl_fcntl(iVar1,0,uVar7);\n        if (iVar2 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        iVar1 = iVar2;\n        goto LAB_000295f4;\n      }\n    }" { (expression_statement "piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();" (assignment_expression "piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))()" identifier = (cast_expression "(int *)(**(code **)(puVar11 + 0x1d05c))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x1d05c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d05c))" ( (pointer_expression "**(code **)(puVar11 + 0x1d05c)" * (pointer_expression "*(code **)(puVar11 + 0x1d05c)" * (cast_expression "(code **)(puVar11 + 0x1d05c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d05c)" ( (binary_expression "puVar11 + 0x1d05c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar5 == 0x16) {\n        whence = (size_t *)0x0;\n        iVar2 = rpl_fcntl(iVar1,0,uVar7);\n        if (iVar2 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        iVar1 = iVar2;\n        goto LAB_000295f4;\n      }" if (parenthesized_expression "(*piVar5 == 0x16)" ( (binary_expression "*piVar5 == 0x16" (pointer_expression "*piVar5" * identifier) == number_literal) )) (compound_statement "{\n        whence = (size_t *)0x0;\n        iVar2 = rpl_fcntl(iVar1,0,uVar7);\n        if (iVar2 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        iVar1 = iVar2;\n        goto LAB_000295f4;\n      }" { (expression_statement "whence = (size_t *)0x0;" (assignment_expression "whence = (size_t *)0x0" identifier = (cast_expression "(size_t *)0x0" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar2 = rpl_fcntl(iVar1,0,uVar7);" (assignment_expression "iVar2 = rpl_fcntl(iVar1,0,uVar7)" identifier = (call_expression "rpl_fcntl(iVar1,0,uVar7)" identifier (argument_list "(iVar1,0,uVar7)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 < 0) goto LAB_00029598;" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00029598;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar10 + -0x72f0)" * (cast_expression "(undefined4 *)(iVar10 + -0x72f0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" identifier = identifier) ;) (goto_statement "goto LAB_000295f4;" goto statement_identifier ;) })) })) (expression_statement "*(undefined4 *)(iVar10 + -0x72f0) = 1;" (assignment_expression "*(undefined4 *)(iVar10 + -0x72f0) = 1" (pointer_expression "*(undefined4 *)(iVar10 + -0x72f0)" * (cast_expression "(undefined4 *)(iVar10 + -0x72f0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) = number_literal) ;) }))) (labeled_statement "LAB_00029598:\n  if (fp == (FILE *)*piVar8) {\n    return SUB41(iVar2,0);\n  }" statement_identifier : (if_statement "if (fp == (FILE *)*piVar8) {\n    return SUB41(iVar2,0);\n  }" if (parenthesized_expression "(fp == (FILE *)*piVar8)" ( (binary_expression "fp == (FILE *)*piVar8" identifier == (cast_expression "(FILE *)*piVar8" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar8" * identifier))) )) (compound_statement "{\n    return SUB41(iVar2,0);\n  }" { (return_statement "return SUB41(iVar2,0);" return (call_expression "SUB41(iVar2,0)" identifier (argument_list "(iVar2,0)" ( identifier , number_literal ))) ;) }))) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x1d154);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x1d154)" identifier = (pointer_expression "*(code **)(puVar11 + 0x1d154)" * (cast_expression "(code **)(puVar11 + 0x1d154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d154)" ( (binary_expression "puVar11 + 0x1d154" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar12)();" (call_expression "(*pcVar12)()" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (fp != (FILE *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((fp->_flags & 0x100U) != 0)) {\n      rpl_fseeko(fp,CONCAT44(1,in_stack_ffffff7c),(int)whence);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);\n      return (_Bool)uVar6;\n    }\n  }" if (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)) )) (compound_statement "{\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((fp->_flags & 0x100U) != 0)) {\n      rpl_fseeko(fp,CONCAT44(1,in_stack_ffffff7c),(int)whence);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);\n      return (_Bool)uVar6;\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(pcVar12 + 0x1cf10))();" (assignment_expression "iVar1 = (**(code **)(pcVar12 + 0x1cf10))()" identifier = (call_expression "(**(code **)(pcVar12 + 0x1cf10))()" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cf10))" ( (pointer_expression "**(code **)(pcVar12 + 0x1cf10)" * (pointer_expression "*(code **)(pcVar12 + 0x1cf10)" * (cast_expression "(code **)(pcVar12 + 0x1cf10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x1cf10)" ( (binary_expression "pcVar12 + 0x1cf10" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && ((fp->_flags & 0x100U) != 0)) {\n      rpl_fseeko(fp,CONCAT44(1,in_stack_ffffff7c),(int)whence);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);\n      return (_Bool)uVar6;\n    }" if (parenthesized_expression "((iVar1 != 0) && ((fp->_flags & 0x100U) != 0))" ( (binary_expression "(iVar1 != 0) && ((fp->_flags & 0x100U) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (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_ffffff7c),(int)whence);\n                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);\n      return (_Bool)uVar6;\n    }" { (expression_statement "rpl_fseeko(fp,CONCAT44(1,in_stack_ffffff7c),(int)whence);" (call_expression "rpl_fseeko(fp,CONCAT44(1,in_stack_ffffff7c),(int)whence)" identifier (argument_list "(fp,CONCAT44(1,in_stack_ffffff7c),(int)whence)" ( identifier , (call_expression "CONCAT44(1,in_stack_ffffff7c)" identifier (argument_list "(1,in_stack_ffffff7c)" ( number_literal , identifier ))) , (cast_expression "(int)whence" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) comment comment (expression_statement "uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);" (assignment_expression "uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp)" identifier = (call_expression "(**(code **)(pcVar12 + 0x1cffc))(fp)" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cffc))" ( (pointer_expression "**(code **)(pcVar12 + 0x1cffc)" * (pointer_expression "*(code **)(pcVar12 + 0x1cffc)" * (cast_expression "(code **)(pcVar12 + 0x1cffc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x1cffc)" ( (binary_expression "pcVar12 + 0x1cffc" identifier + number_literal) ))))) )) (argument_list "(fp)" ( identifier )))) ;) (return_statement "return (_Bool)uVar6;" return (cast_expression "(_Bool)uVar6" ( (type_descriptor "_Bool" type_identifier) ) identifier) ;) })) })) comment comment (expression_statement "uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp);" (assignment_expression "uVar6 = (**(code **)(pcVar12 + 0x1cffc))(fp)" identifier = (call_expression "(**(code **)(pcVar12 + 0x1cffc))(fp)" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cffc))" ( (pointer_expression "**(code **)(pcVar12 + 0x1cffc)" * (pointer_expression "*(code **)(pcVar12 + 0x1cffc)" * (cast_expression "(code **)(pcVar12 + 0x1cffc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x1cffc)" ( (binary_expression "pcVar12 + 0x1cffc" identifier + number_literal) ))))) )) (argument_list "(fp)" ( identifier )))) ;) (return_statement "return (_Bool)uVar6;" return (cast_expression "(_Bool)uVar6" ( (type_descriptor "_Bool" type_identifier) ) identifier) ;) })))
(translation_unit "uint yesno(void)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int local_1c [4];\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar6 = 10;\n  piVar5 = local_1c + 1;\n  local_1c[0] = 0;\n  local_1c[1] = 0;\n  local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);\n  if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }\n  (*(code *)PTR_free_000466a8)(local_1c[0]);\n  if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }\n  iVar1 = local_1c[2];\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  puVar7 = *(undefined4 **)(puVar11 + 0x1d190);\n  puVar4 = (uint *)*puVar7;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }\n                    \n                    \n  uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n  return uVar8;\n}\n\n" (function_definition "uint yesno(void)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int local_1c [4];\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar6 = 10;\n  piVar5 = local_1c + 1;\n  local_1c[0] = 0;\n  local_1c[1] = 0;\n  local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);\n  if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }\n  (*(code *)PTR_free_000466a8)(local_1c[0]);\n  if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }\n  iVar1 = local_1c[2];\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  puVar7 = *(undefined4 **)(puVar11 + 0x1d190);\n  puVar4 = (uint *)*puVar7;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }\n                    \n                    \n  uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n  return uVar8;\n}" type_identifier (function_declarator "yesno(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int local_1c [4];\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar6 = 10;\n  piVar5 = local_1c + 1;\n  local_1c[0] = 0;\n  local_1c[1] = 0;\n  local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);\n  if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }\n  (*(code *)PTR_free_000466a8)(local_1c[0]);\n  if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }\n  iVar1 = local_1c[2];\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  puVar7 = *(undefined4 **)(puVar11 + 0x1d190);\n  puVar4 = (uint *)*puVar7;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }\n                    \n                    \n  uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n  return uVar8;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "int local_1c [4];" primitive_type (array_declarator "local_1c [4]" identifier [ number_literal ]) ;) (expression_statement "puVar11 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar11 = PTR___stack_chk_guard_000466a0" identifier = identifier) ;) (expression_statement "uVar6 = 10;" (assignment_expression "uVar6 = 10" identifier = number_literal) ;) (expression_statement "piVar5 = local_1c + 1;" (assignment_expression "piVar5 = local_1c + 1" identifier = (binary_expression "local_1c + 1" identifier + number_literal)) ;) (expression_statement "local_1c[0] = 0;" (assignment_expression "local_1c[0] = 0" (subscript_expression "local_1c[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_1c[1] = 0;" (assignment_expression "local_1c[1] = 0" (subscript_expression "local_1c[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0" (subscript_expression "local_1c[2]" identifier [ number_literal ]) = (pointer_expression "*(int *)PTR___stack_chk_guard_000466a0" * (cast_expression "(int *)PTR___stack_chk_guard_000466a0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);" (assignment_expression "iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c)" identifier = (call_expression "(*(code *)PTR___getdelim_0004663c)(local_1c)" (parenthesized_expression "(*(code *)PTR___getdelim_0004663c)" ( (pointer_expression "*(code *)PTR___getdelim_0004663c" * (cast_expression "(code *)PTR___getdelim_0004663c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_1c)" ( identifier )))) ;) (if_statement "if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n    uVar8 = 0;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }" else (compound_statement "{\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }" { (expression_statement "pcVar2 = (char *)(local_1c[0] + iVar1 + -1);" (assignment_expression "pcVar2 = (char *)(local_1c[0] + iVar1 + -1)" identifier = (cast_expression "(char *)(local_1c[0] + iVar1 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_1c[0] + iVar1 + -1)" ( (binary_expression "local_1c[0] + iVar1 + -1" (binary_expression "local_1c[0] + iVar1" (subscript_expression "local_1c[0]" identifier [ number_literal ]) + identifier) + number_literal) )))) ;) (expression_statement "piVar5 = (int *)(int)*pcVar2;" (assignment_expression "piVar5 = (int *)(int)*pcVar2" identifier = (cast_expression "(int *)(int)*pcVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier)))) ;) (if_statement "if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }" if (parenthesized_expression "(piVar5 == (int *)0xa)" ( (binary_expression "piVar5 == (int *)0xa" identifier == (cast_expression "(int *)0xa" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *pcVar2 = '\0';\n    }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);" (assignment_expression "iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0])" identifier = (call_expression "(*(code *)PTR_rpmatch_0004653c)(local_1c[0])" (parenthesized_expression "(*(code *)PTR_rpmatch_0004653c)" ( (pointer_expression "*(code *)PTR_rpmatch_0004653c" * (cast_expression "(code *)PTR_rpmatch_0004653c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_1c[0])" ( (subscript_expression "local_1c[0]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar8 = (uint)(0 < iVar1);" (assignment_expression "uVar8 = (uint)(0 < iVar1)" identifier = (call_expression "(uint)(0 < iVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )))) ;) }))) (expression_statement "(*(code *)PTR_free_000466a8)(local_1c[0]);" (call_expression "(*(code *)PTR_free_000466a8)(local_1c[0])" (parenthesized_expression "(*(code *)PTR_free_000466a8)" ( (pointer_expression "*(code *)PTR_free_000466a8" * (cast_expression "(code *)PTR_free_000466a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_1c[0])" ( (subscript_expression "local_1c[0]" identifier [ number_literal ]) ))) ;) (if_statement "if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }" if (parenthesized_expression "(local_1c[2] == *(int *)puVar11)" ( (binary_expression "local_1c[2] == *(int *)puVar11" (subscript_expression "local_1c[2]" identifier [ number_literal ]) == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar8;\n  }" { (return_statement "return uVar8;" return identifier ;) })) (expression_statement "iVar1 = local_1c[2];" (assignment_expression "iVar1 = local_1c[2]" identifier = (subscript_expression "local_1c[2]" identifier [ number_literal ])) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_00046664;" (assignment_expression "puVar11 = PTR___stack_chk_fail_00046664" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00046664)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046664)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046664)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00046664" * (cast_expression "(code *)PTR___stack_chk_fail_00046664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar7 = *(undefined4 **)(puVar11 + 0x1d190);" (assignment_expression "puVar7 = *(undefined4 **)(puVar11 + 0x1d190)" identifier = (pointer_expression "*(undefined4 **)(puVar11 + 0x1d190)" * (cast_expression "(undefined4 **)(puVar11 + 0x1d190)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d190)" ( (binary_expression "puVar11 + 0x1d190" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = (uint *)*puVar7;" (assignment_expression "puVar4 = (uint *)*puVar7" identifier = (cast_expression "(uint *)*puVar7" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) ;) (expression_statement "iVar10 = *(int *)(puVar11 + 0x1cc50);" (assignment_expression "iVar10 = *(int *)(puVar11 + 0x1cc50)" identifier = (pointer_expression "*(int *)(puVar11 + 0x1cc50)" * (cast_expression "(int *)(puVar11 + 0x1cc50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x1cc50)" ( (binary_expression "puVar11 + 0x1cc50" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }" if (parenthesized_expression "(piVar5 != (int *)0x406)" ( (binary_expression "piVar5 != (int *)0x406" identifier != (cast_expression "(int *)0x406" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }" { (expression_statement "uVar8 = (**(code **)(puVar11 + 0x1d034))();" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x1d034))()" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (goto_statement "goto LAB_00029598;" goto statement_identifier ;) })) (if_statement "if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" if (parenthesized_expression "(*(int *)(iVar10 + -0x72f0) < 0)" ( (binary_expression "*(int *)(iVar10 + -0x72f0) < 0" (pointer_expression "*(int *)(iVar10 + -0x72f0)" * (cast_expression "(int *)(iVar10 + -0x72f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }" { (expression_statement "uVar8 = rpl_fcntl();" (assignment_expression "uVar8 = rpl_fcntl()" identifier = (call_expression "rpl_fcntl()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;" if (parenthesized_expression "(((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1))" ( (binary_expression "((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)" (parenthesized_expression "((int)uVar8 < 0)" ( (binary_expression "(int)uVar8 < 0" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)" ( (comma_expression "uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1" (assignment_expression "uVar9 = uVar8" identifier = identifier) , (binary_expression "*(int *)(iVar10 + -0x72f0) != -1" (pointer_expression "*(int *)(iVar10 + -0x72f0)" * (cast_expression "(int *)(iVar10 + -0x72f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) != number_literal)) ))) )) (goto_statement "goto LAB_00029598;" goto statement_identifier ;)) (labeled_statement "LAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);" statement_identifier : (expression_statement "uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1)" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))(uVar9,1)" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "(uVar9,1)" ( identifier , number_literal )))) ;)) (if_statement "if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }" if (parenthesized_expression "(-1 < (int)uVar8)" ( (binary_expression "-1 < (int)uVar8" number_literal < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }" { (expression_statement "iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);" (assignment_expression "iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1)" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1)" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "(uVar9,2,uVar8 | 1)" ( identifier , number_literal , (binary_expression "uVar8 | 1" identifier | number_literal) )))) ;) (expression_statement "uVar8 = uVar9;" (assignment_expression "uVar8 = uVar9" identifier = identifier) ;) (if_statement "if (iVar1 != -1) goto LAB_00029598;" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (goto_statement "goto LAB_00029598;" goto statement_identifier ;)) })) (expression_statement "puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();" (assignment_expression "puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar11 + 0x1d05c))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x1d05c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d05c))" ( (pointer_expression "**(code **)(puVar11 + 0x1d05c)" * (pointer_expression "*(code **)(puVar11 + 0x1d05c)" * (cast_expression "(code **)(puVar11 + 0x1d05c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d05c)" ( (binary_expression "puVar11 + 0x1d05c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar6 = *puVar3;" (assignment_expression "uVar6 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar11 + 0x1cf70))(uVar9);" (call_expression "(**(code **)(puVar11 + 0x1cf70))(uVar9)" (parenthesized_expression "(**(code **)(puVar11 + 0x1cf70))" ( (pointer_expression "**(code **)(puVar11 + 0x1cf70)" * (pointer_expression "*(code **)(puVar11 + 0x1cf70)" * (cast_expression "(code **)(puVar11 + 0x1cf70)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1cf70)" ( (binary_expression "puVar11 + 0x1cf70" identifier + number_literal) ))))) )) (argument_list "(uVar9)" ( identifier ))) ;) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" * identifier) = identifier) ;) }) (else_clause "else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" else (compound_statement "{\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" { (expression_statement "uVar8 = (**(code **)(puVar11 + 0x1d034))();" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x1d034))()" identifier = (call_expression "(**(code **)(puVar11 + 0x1d034))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" ( (pointer_expression "**(code **)(puVar11 + 0x1d034)" * (pointer_expression "*(code **)(puVar11 + 0x1d034)" * (cast_expression "(code **)(puVar11 + 0x1d034)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d034)" ( (binary_expression "puVar11 + 0x1d034" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }" if (parenthesized_expression "((int)uVar8 < 0)" ( (binary_expression "(int)uVar8 < 0" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }" { (expression_statement "piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();" (assignment_expression "piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))()" identifier = (cast_expression "(int *)(**(code **)(puVar11 + 0x1d05c))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0x1d05c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d05c))" ( (pointer_expression "**(code **)(puVar11 + 0x1d05c)" * (pointer_expression "*(code **)(puVar11 + 0x1d05c)" * (cast_expression "(code **)(puVar11 + 0x1d05c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d05c)" ( (binary_expression "puVar11 + 0x1d05c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }" if (parenthesized_expression "(*piVar5 == 0x16)" ( (binary_expression "*piVar5 == 0x16" (pointer_expression "*piVar5" * identifier) == number_literal) )) (compound_statement "{\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }" { (expression_statement "uVar8 = rpl_fcntl(iVar1,0,uVar6);" (assignment_expression "uVar8 = rpl_fcntl(iVar1,0,uVar6)" identifier = (call_expression "rpl_fcntl(iVar1,0,uVar6)" identifier (argument_list "(iVar1,0,uVar6)" ( identifier , number_literal , identifier )))) ;) (if_statement "if ((int)uVar8 < 0) goto LAB_00029598;" if (parenthesized_expression "((int)uVar8 < 0)" ( (binary_expression "(int)uVar8 < 0" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_00029598;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar10 + -0x72f0)" * (cast_expression "(undefined4 *)(iVar10 + -0x72f0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar9 = uVar8;" (assignment_expression "uVar9 = uVar8" identifier = identifier) ;) (goto_statement "goto LAB_000295f4;" goto statement_identifier ;) })) })) (expression_statement "*(undefined4 *)(iVar10 + -0x72f0) = 1;" (assignment_expression "*(undefined4 *)(iVar10 + -0x72f0) = 1" (pointer_expression "*(undefined4 *)(iVar10 + -0x72f0)" * (cast_expression "(undefined4 *)(iVar10 + -0x72f0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + -0x72f0)" ( (binary_expression "iVar10 + -0x72f0" identifier + number_literal) )))) = number_literal) ;) }))) (labeled_statement "LAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }" statement_identifier : (if_statement "if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }" if (parenthesized_expression "(puVar4 == (uint *)*puVar7)" ( (binary_expression "puVar4 == (uint *)*puVar7" identifier == (cast_expression "(uint *)*puVar7" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) )) (compound_statement "{\n    return uVar8;\n  }" { (return_statement "return uVar8;" return identifier ;) }))) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x1d154);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x1d154)" identifier = (pointer_expression "*(code **)(puVar11 + 0x1d154)" * (cast_expression "(code **)(puVar11 + 0x1d154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x1d154)" ( (binary_expression "puVar11 + 0x1d154" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar12)();" (call_expression "(*pcVar12)()" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "()" ( ))) ;) (if_statement "if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }" if (parenthesized_expression "(puVar4 != (uint *)0x0)" ( (binary_expression "puVar4 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(pcVar12 + 0x1cf10))();" (assignment_expression "iVar1 = (**(code **)(pcVar12 + 0x1cf10))()" identifier = (call_expression "(**(code **)(pcVar12 + 0x1cf10))()" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cf10))" ( (pointer_expression "**(code **)(pcVar12 + 0x1cf10)" * (pointer_expression "*(code **)(pcVar12 + 0x1cf10)" * (cast_expression "(code **)(pcVar12 + 0x1cf10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x1cf10)" ( (binary_expression "pcVar12 + 0x1cf10" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }" if (parenthesized_expression "((iVar1 != 0) && ((*puVar4 & 0x100) != 0))" ( (binary_expression "(iVar1 != 0) && ((*puVar4 & 0x100) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((*puVar4 & 0x100) != 0)" ( (binary_expression "(*puVar4 & 0x100) != 0" (parenthesized_expression "(*puVar4 & 0x100)" ( (binary_expression "*puVar4 & 0x100" (pointer_expression "*puVar4" * identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }" { (expression_statement "rpl_fseeko(puVar4);" (call_expression "rpl_fseeko(puVar4)" identifier (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);" (assignment_expression "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4)" identifier = (call_expression "(**(code **)(pcVar12 + 0x1cffc))(puVar4)" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cffc))" ( (pointer_expression "**(code **)(pcVar12 + 0x1cffc)" * (pointer_expression "*(code **)(pcVar12 + 0x1cffc)" * (cast_expression "(code **)(pcVar12 + 0x1cffc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x1cffc)" ( (binary_expression "pcVar12 + 0x1cffc" identifier + number_literal) ))))) )) (argument_list "(puVar4)" ( identifier )))) ;) (return_statement "return uVar8;" return identifier ;) })) })) (expression_statement "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);" (assignment_expression "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4)" identifier = (call_expression "(**(code **)(pcVar12 + 0x1cffc))(puVar4)" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cffc))" ( (pointer_expression "**(code **)(pcVar12 + 0x1cffc)" * (pointer_expression "*(code **)(pcVar12 + 0x1cffc)" * (cast_expression "(code **)(pcVar12 + 0x1cffc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar12 + 0x1cffc)" ( (binary_expression "pcVar12 + 0x1cffc" identifier + number_literal) ))))) )) (argument_list "(puVar4)" ( identifier )))) ;) (return_statement "return uVar8;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) )))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 ( )))) ;) (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 ( )))) ;) (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 = IDENT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (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 , LIT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (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 , LIT , (binary_expression IDENT | LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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 = IDENT) ;) (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) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (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 ;) })) })) (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 ;) })))
(function_definition "uint yesno(void)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int local_1c [4];\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar6 = 10;\n  piVar5 = local_1c + 1;\n  local_1c[0] = 0;\n  local_1c[1] = 0;\n  local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);\n  if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }\n  (*(code *)PTR_free_000466a8)(local_1c[0]);\n  if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }\n  iVar1 = local_1c[2];\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  puVar7 = *(undefined4 **)(puVar11 + 0x1d190);\n  puVar4 = (uint *)*puVar7;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }\n                    \n                    \n  uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n  return uVar8;\n}" (type_identifier "uint") (function_declarator "yesno(void)" (identifier "yesno") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  int local_1c [4];\n  \n  puVar11 = PTR___stack_chk_guard_000466a0;\n  uVar6 = 10;\n  piVar5 = local_1c + 1;\n  local_1c[0] = 0;\n  local_1c[1] = 0;\n  local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;\n  iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);\n  if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }\n  (*(code *)PTR_free_000466a8)(local_1c[0]);\n  if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }\n  iVar1 = local_1c[2];\n  puVar11 = PTR___stack_chk_fail_00046664;\n  (*(code *)PTR___stack_chk_fail_00046664)();\n  puVar7 = *(undefined4 **)(puVar11 + 0x1d190);\n  puVar4 = (uint *)*puVar7;\n  iVar10 = *(int *)(puVar11 + 0x1cc50);\n  if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }\n  if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }\nLAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }\n  pcVar12 = *(code **)(puVar11 + 0x1d154);\n  (*pcVar12)();\n  if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }\n                    \n                    \n  uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n  return uVar8;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "undefined *puVar11;" (type_identifier "undefined") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "code *pcVar12;" (type_identifier "code") (pointer_declarator "*pcVar12" (* "*") (identifier "pcVar12")) (; ";")) (declaration "int local_1c [4];" (primitive_type "int") (array_declarator "local_1c [4]" (identifier "local_1c") ([ "[") (number_literal "4") (] "]")) (; ";")) (expression_statement "puVar11 = PTR___stack_chk_guard_000466a0;" (assignment_expression "puVar11 = PTR___stack_chk_guard_000466a0" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_guard_000466a0")) (; ";")) (expression_statement "uVar6 = 10;" (assignment_expression "uVar6 = 10" (identifier "uVar6") (= "=") (number_literal "10")) (; ";")) (expression_statement "piVar5 = local_1c + 1;" (assignment_expression "piVar5 = local_1c + 1" (identifier "piVar5") (= "=") (binary_expression "local_1c + 1" (identifier "local_1c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_1c[0] = 0;" (assignment_expression "local_1c[0] = 0" (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_1c[1] = 0;" (assignment_expression "local_1c[1] = 0" (subscript_expression "local_1c[1]" (identifier "local_1c") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;" (assignment_expression "local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0" (subscript_expression "local_1c[2]" (identifier "local_1c") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000466a0" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000466a0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000466a0")))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);" (assignment_expression "iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR___getdelim_0004663c)(local_1c)" (parenthesized_expression "(*(code *)PTR___getdelim_0004663c)" (( "(") (pointer_expression "*(code *)PTR___getdelim_0004663c" (* "*") (cast_expression "(code *)PTR___getdelim_0004663c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___getdelim_0004663c"))) () ")")) (argument_list "(local_1c)" (( "(") (identifier "local_1c") () ")")))) (; ";")) (if_statement "if (iVar1 < 1) {\n    uVar8 = 0;\n  }\n  else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    uVar8 = 0;\n  }" ({ "{") (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }" (else "else") (compound_statement "{\n    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);\n    piVar5 = (int *)(int)*pcVar2;\n    if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }\n    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);\n    uVar8 = (uint)(0 < iVar1);\n  }" ({ "{") (expression_statement "pcVar2 = (char *)(local_1c[0] + iVar1 + -1);" (assignment_expression "pcVar2 = (char *)(local_1c[0] + iVar1 + -1)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(local_1c[0] + iVar1 + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_1c[0] + iVar1 + -1)" (( "(") (binary_expression "local_1c[0] + iVar1 + -1" (binary_expression "local_1c[0] + iVar1" (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]")) (+ "+") (identifier "iVar1")) (+ "+") (number_literal "-1")) () ")")))) (; ";")) (expression_statement "piVar5 = (int *)(int)*pcVar2;" (assignment_expression "piVar5 = (int *)(int)*pcVar2" (identifier "piVar5") (= "=") (cast_expression "(int *)(int)*pcVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(int)*pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))))) (; ";")) (if_statement "if (piVar5 == (int *)0xa) {\n      *pcVar2 = '\0';\n    }" (if "if") (parenthesized_expression "(piVar5 == (int *)0xa)" (( "(") (binary_expression "piVar5 == (int *)0xa" (identifier "piVar5") (== "==") (cast_expression "(int *)0xa" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xa"))) () ")")) (compound_statement "{\n      *pcVar2 = '\0';\n    }" ({ "{") (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);" (assignment_expression "iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0])" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_rpmatch_0004653c)(local_1c[0])" (parenthesized_expression "(*(code *)PTR_rpmatch_0004653c)" (( "(") (pointer_expression "*(code *)PTR_rpmatch_0004653c" (* "*") (cast_expression "(code *)PTR_rpmatch_0004653c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rpmatch_0004653c"))) () ")")) (argument_list "(local_1c[0])" (( "(") (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]")) () ")")))) (; ";")) (expression_statement "uVar8 = (uint)(0 < iVar1);" (assignment_expression "uVar8 = (uint)(0 < iVar1)" (identifier "uVar8") (= "=") (call_expression "(uint)(0 < iVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_free_000466a8)(local_1c[0]);" (call_expression "(*(code *)PTR_free_000466a8)(local_1c[0])" (parenthesized_expression "(*(code *)PTR_free_000466a8)" (( "(") (pointer_expression "*(code *)PTR_free_000466a8" (* "*") (cast_expression "(code *)PTR_free_000466a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_000466a8"))) () ")")) (argument_list "(local_1c[0])" (( "(") (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (if_statement "if (local_1c[2] == *(int *)puVar11) {\n    return uVar8;\n  }" (if "if") (parenthesized_expression "(local_1c[2] == *(int *)puVar11)" (( "(") (binary_expression "local_1c[2] == *(int *)puVar11" (subscript_expression "local_1c[2]" (identifier "local_1c") ([ "[") (number_literal "2") (] "]")) (== "==") (pointer_expression "*(int *)puVar11" (* "*") (cast_expression "(int *)puVar11" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar11")))) () ")")) (compound_statement "{\n    return uVar8;\n  }" ({ "{") (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}"))) (expression_statement "iVar1 = local_1c[2];" (assignment_expression "iVar1 = local_1c[2]" (identifier "iVar1") (= "=") (subscript_expression "local_1c[2]" (identifier "local_1c") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "puVar11 = PTR___stack_chk_fail_00046664;" (assignment_expression "puVar11 = PTR___stack_chk_fail_00046664" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_fail_00046664")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00046664)();" (call_expression "(*(code *)PTR___stack_chk_fail_00046664)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00046664)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00046664" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00046664" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00046664"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar7 = *(undefined4 **)(puVar11 + 0x1d190);" (assignment_expression "puVar7 = *(undefined4 **)(puVar11 + 0x1d190)" (identifier "puVar7") (= "=") (pointer_expression "*(undefined4 **)(puVar11 + 0x1d190)" (* "*") (cast_expression "(undefined4 **)(puVar11 + 0x1d190)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1d190)" (( "(") (binary_expression "puVar11 + 0x1d190" (identifier "puVar11") (+ "+") (number_literal "0x1d190")) () ")"))))) (; ";")) (expression_statement "puVar4 = (uint *)*puVar7;" (assignment_expression "puVar4 = (uint *)*puVar7" (identifier "puVar4") (= "=") (cast_expression "(uint *)*puVar7" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar7" (* "*") (identifier "puVar7")))) (; ";")) (expression_statement "iVar10 = *(int *)(puVar11 + 0x1cc50);" (assignment_expression "iVar10 = *(int *)(puVar11 + 0x1cc50)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(puVar11 + 0x1cc50)" (* "*") (cast_expression "(int *)(puVar11 + 0x1cc50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar11 + 0x1cc50)" (( "(") (binary_expression "puVar11 + 0x1cc50" (identifier "puVar11") (+ "+") (number_literal "0x1cc50")) () ")"))))) (; ";")) (if_statement "if (piVar5 != (int *)0x406) {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }" (if "if") (parenthesized_expression "(piVar5 != (int *)0x406)" (( "(") (binary_expression "piVar5 != (int *)0x406" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x406" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x406"))) () ")")) (compound_statement "{\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    goto LAB_00029598;\n  }" ({ "{") (expression_statement "uVar8 = (**(code **)(puVar11 + 0x1d034))();" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x1d034))()" (identifier "uVar8") (= "=") (call_expression "(**(code **)(puVar11 + 0x1d034))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x1d034)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x1d034)" (* "*") (cast_expression "(code **)(puVar11 + 0x1d034)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1d034)" (( "(") (binary_expression "puVar11 + 0x1d034" (identifier "puVar11") (+ "+") (number_literal "0x1d034")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (goto_statement "goto LAB_00029598;" (goto "goto") (statement_identifier "LAB_00029598") (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar10 + -0x72f0) < 0) {\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }\n  else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar10 + -0x72f0) < 0)" (( "(") (binary_expression "*(int *)(iVar10 + -0x72f0) < 0" (pointer_expression "*(int *)(iVar10 + -0x72f0)" (* "*") (cast_expression "(int *)(iVar10 + -0x72f0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + -0x72f0)" (( "(") (binary_expression "iVar10 + -0x72f0" (identifier "iVar10") (+ "+") (number_literal "-0x72f0")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar8 = rpl_fcntl();\n    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;\nLAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);\n    if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }\n    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();\n    uVar6 = *puVar3;\n    uVar8 = 0xffffffff;\n    (**(code **)(puVar11 + 0x1cf70))(uVar9);\n    *puVar3 = uVar6;\n  }" ({ "{") (expression_statement "uVar8 = rpl_fcntl();" (assignment_expression "uVar8 = rpl_fcntl()" (identifier "uVar8") (= "=") (call_expression "rpl_fcntl()" (identifier "rpl_fcntl") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;" (if "if") (parenthesized_expression "(((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1))" (( "(") (binary_expression "((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)" (parenthesized_expression "((int)uVar8 < 0)" (( "(") (binary_expression "(int)uVar8 < 0" (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8")) (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)" (( "(") (comma_expression "uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1" (assignment_expression "uVar9 = uVar8" (identifier "uVar9") (= "=") (identifier "uVar8")) (, ",") (binary_expression "*(int *)(iVar10 + -0x72f0) != -1" (pointer_expression "*(int *)(iVar10 + -0x72f0)" (* "*") (cast_expression "(int *)(iVar10 + -0x72f0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + -0x72f0)" (( "(") (binary_expression "iVar10 + -0x72f0" (identifier "iVar10") (+ "+") (number_literal "-0x72f0")) () ")")))) (!= "!=") (number_literal "-1"))) () ")"))) () ")")) (goto_statement "goto LAB_00029598;" (goto "goto") (statement_identifier "LAB_00029598") (; ";"))) (labeled_statement "LAB_000295f4:\n    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);" (statement_identifier "LAB_000295f4") (: ":") (expression_statement "uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1)" (identifier "uVar8") (= "=") (call_expression "(**(code **)(puVar11 + 0x1d034))(uVar9,1)" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x1d034)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x1d034)" (* "*") (cast_expression "(code **)(puVar11 + 0x1d034)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1d034)" (( "(") (binary_expression "puVar11 + 0x1d034" (identifier "puVar11") (+ "+") (number_literal "0x1d034")) () ")"))))) () ")")) (argument_list "(uVar9,1)" (( "(") (identifier "uVar9") (, ",") (number_literal "1") () ")")))) (; ";"))) (if_statement "if (-1 < (int)uVar8) {\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }" (if "if") (parenthesized_expression "(-1 < (int)uVar8)" (( "(") (binary_expression "-1 < (int)uVar8" (number_literal "-1") (< "<") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (compound_statement "{\n      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);\n      uVar8 = uVar9;\n      if (iVar1 != -1) goto LAB_00029598;\n    }" ({ "{") (expression_statement "iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);" (assignment_expression "iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1)" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x1d034)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x1d034)" (* "*") (cast_expression "(code **)(puVar11 + 0x1d034)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1d034)" (( "(") (binary_expression "puVar11 + 0x1d034" (identifier "puVar11") (+ "+") (number_literal "0x1d034")) () ")"))))) () ")")) (argument_list "(uVar9,2,uVar8 | 1)" (( "(") (identifier "uVar9") (, ",") (number_literal "2") (, ",") (binary_expression "uVar8 | 1" (identifier "uVar8") (| "|") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar8 = uVar9;" (assignment_expression "uVar8 = uVar9" (identifier "uVar8") (= "=") (identifier "uVar9")) (; ";")) (if_statement "if (iVar1 != -1) goto LAB_00029598;" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00029598;" (goto "goto") (statement_identifier "LAB_00029598") (; ";"))) (} "}"))) (expression_statement "puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();" (assignment_expression "puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(**(code **)(puVar11 + 0x1d05c))()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar11 + 0x1d05c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d05c))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x1d05c)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x1d05c)" (* "*") (cast_expression "(code **)(puVar11 + 0x1d05c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1d05c)" (( "(") (binary_expression "puVar11 + 0x1d05c" (identifier "puVar11") (+ "+") (number_literal "0x1d05c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar6 = *puVar3;" (assignment_expression "uVar6 = *puVar3" (identifier "uVar6") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" (identifier "uVar8") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "(**(code **)(puVar11 + 0x1cf70))(uVar9);" (call_expression "(**(code **)(puVar11 + 0x1cf70))(uVar9)" (parenthesized_expression "(**(code **)(puVar11 + 0x1cf70))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x1cf70)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x1cf70)" (* "*") (cast_expression "(code **)(puVar11 + 0x1cf70)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1cf70)" (( "(") (binary_expression "puVar11 + 0x1cf70" (identifier "puVar11") (+ "+") (number_literal "0x1cf70")) () ")"))))) () ")")) (argument_list "(uVar9)" (( "(") (identifier "uVar9") () ")"))) (; ";")) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar6")) (; ";")) (} "}")) (else_clause "else {\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" (else "else") (compound_statement "{\n    uVar8 = (**(code **)(puVar11 + 0x1d034))();\n    if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }\n    *(undefined4 *)(iVar10 + -0x72f0) = 1;\n  }" ({ "{") (expression_statement "uVar8 = (**(code **)(puVar11 + 0x1d034))();" (assignment_expression "uVar8 = (**(code **)(puVar11 + 0x1d034))()" (identifier "uVar8") (= "=") (call_expression "(**(code **)(puVar11 + 0x1d034))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d034))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x1d034)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x1d034)" (* "*") (cast_expression "(code **)(puVar11 + 0x1d034)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1d034)" (( "(") (binary_expression "puVar11 + 0x1d034" (identifier "puVar11") (+ "+") (number_literal "0x1d034")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((int)uVar8 < 0) {\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }" (if "if") (parenthesized_expression "((int)uVar8 < 0)" (( "(") (binary_expression "(int)uVar8 < 0" (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();\n      if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }\n    }" ({ "{") (expression_statement "piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();" (assignment_expression "piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))()" (identifier "piVar5") (= "=") (cast_expression "(int *)(**(code **)(puVar11 + 0x1d05c))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar11 + 0x1d05c))()" (parenthesized_expression "(**(code **)(puVar11 + 0x1d05c))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x1d05c)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x1d05c)" (* "*") (cast_expression "(code **)(puVar11 + 0x1d05c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1d05c)" (( "(") (binary_expression "puVar11 + 0x1d05c" (identifier "puVar11") (+ "+") (number_literal "0x1d05c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (*piVar5 == 0x16) {\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }" (if "if") (parenthesized_expression "(*piVar5 == 0x16)" (( "(") (binary_expression "*piVar5 == 0x16" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (== "==") (number_literal "0x16")) () ")")) (compound_statement "{\n        uVar8 = rpl_fcntl(iVar1,0,uVar6);\n        if ((int)uVar8 < 0) goto LAB_00029598;\n        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;\n        uVar9 = uVar8;\n        goto LAB_000295f4;\n      }" ({ "{") (expression_statement "uVar8 = rpl_fcntl(iVar1,0,uVar6);" (assignment_expression "uVar8 = rpl_fcntl(iVar1,0,uVar6)" (identifier "uVar8") (= "=") (call_expression "rpl_fcntl(iVar1,0,uVar6)" (identifier "rpl_fcntl") (argument_list "(iVar1,0,uVar6)" (( "(") (identifier "iVar1") (, ",") (number_literal "0") (, ",") (identifier "uVar6") () ")")))) (; ";")) (if_statement "if ((int)uVar8 < 0) goto LAB_00029598;" (if "if") (parenthesized_expression "((int)uVar8 < 0)" (( "(") (binary_expression "(int)uVar8 < 0" (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8")) (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00029598;" (goto "goto") (statement_identifier "LAB_00029598") (; ";"))) (expression_statement "*(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar10 + -0x72f0)" (* "*") (cast_expression "(undefined4 *)(iVar10 + -0x72f0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + -0x72f0)" (( "(") (binary_expression "iVar10 + -0x72f0" (identifier "iVar10") (+ "+") (number_literal "-0x72f0")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "uVar9 = uVar8;" (assignment_expression "uVar9 = uVar8" (identifier "uVar9") (= "=") (identifier "uVar8")) (; ";")) (goto_statement "goto LAB_000295f4;" (goto "goto") (statement_identifier "LAB_000295f4") (; ";")) (} "}"))) (} "}"))) (expression_statement "*(undefined4 *)(iVar10 + -0x72f0) = 1;" (assignment_expression "*(undefined4 *)(iVar10 + -0x72f0) = 1" (pointer_expression "*(undefined4 *)(iVar10 + -0x72f0)" (* "*") (cast_expression "(undefined4 *)(iVar10 + -0x72f0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + -0x72f0)" (( "(") (binary_expression "iVar10 + -0x72f0" (identifier "iVar10") (+ "+") (number_literal "-0x72f0")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")))) (labeled_statement "LAB_00029598:\n  if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }" (statement_identifier "LAB_00029598") (: ":") (if_statement "if (puVar4 == (uint *)*puVar7) {\n    return uVar8;\n  }" (if "if") (parenthesized_expression "(puVar4 == (uint *)*puVar7)" (( "(") (binary_expression "puVar4 == (uint *)*puVar7" (identifier "puVar4") (== "==") (cast_expression "(uint *)*puVar7" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar7" (* "*") (identifier "puVar7")))) () ")")) (compound_statement "{\n    return uVar8;\n  }" ({ "{") (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}")))) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x1d154);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x1d154)" (identifier "pcVar12") (= "=") (pointer_expression "*(code **)(puVar11 + 0x1d154)" (* "*") (cast_expression "(code **)(puVar11 + 0x1d154)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x1d154)" (( "(") (binary_expression "puVar11 + 0x1d154" (identifier "puVar11") (+ "+") (number_literal "0x1d154")) () ")"))))) (; ";")) (expression_statement "(*pcVar12)();" (call_expression "(*pcVar12)()" (parenthesized_expression "(*pcVar12)" (( "(") (pointer_expression "*pcVar12" (* "*") (identifier "pcVar12")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (puVar4 != (uint *)0x0) {\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }" (if "if") (parenthesized_expression "(puVar4 != (uint *)0x0)" (( "(") (binary_expression "puVar4 != (uint *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();\n    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(pcVar12 + 0x1cf10))();" (assignment_expression "iVar1 = (**(code **)(pcVar12 + 0x1cf10))()" (identifier "iVar1") (= "=") (call_expression "(**(code **)(pcVar12 + 0x1cf10))()" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cf10))" (( "(") (pointer_expression "**(code **)(pcVar12 + 0x1cf10)" (* "*") (pointer_expression "*(code **)(pcVar12 + 0x1cf10)" (* "*") (cast_expression "(code **)(pcVar12 + 0x1cf10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar12 + 0x1cf10)" (( "(") (binary_expression "pcVar12 + 0x1cf10" (identifier "pcVar12") (+ "+") (number_literal "0x1cf10")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) && ((*puVar4 & 0x100) != 0))" (( "(") (binary_expression "(iVar1 != 0) && ((*puVar4 & 0x100) != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*puVar4 & 0x100) != 0)" (( "(") (binary_expression "(*puVar4 & 0x100) != 0" (parenthesized_expression "(*puVar4 & 0x100)" (( "(") (binary_expression "*puVar4 & 0x100" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (& "&") (number_literal "0x100")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      rpl_fseeko(puVar4);\n                    \n                    \n      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);\n      return uVar8;\n    }" ({ "{") (expression_statement "rpl_fseeko(puVar4);" (call_expression "rpl_fseeko(puVar4)" (identifier "rpl_fseeko") (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")"))) (; ";")) (expression_statement "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);" (assignment_expression "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4)" (identifier "uVar8") (= "=") (call_expression "(**(code **)(pcVar12 + 0x1cffc))(puVar4)" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cffc))" (( "(") (pointer_expression "**(code **)(pcVar12 + 0x1cffc)" (* "*") (pointer_expression "*(code **)(pcVar12 + 0x1cffc)" (* "*") (cast_expression "(code **)(pcVar12 + 0x1cffc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar12 + 0x1cffc)" (( "(") (binary_expression "pcVar12 + 0x1cffc" (identifier "pcVar12") (+ "+") (number_literal "0x1cffc")) () ")"))))) () ")")) (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")")))) (; ";")) (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);" (assignment_expression "uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4)" (identifier "uVar8") (= "=") (call_expression "(**(code **)(pcVar12 + 0x1cffc))(puVar4)" (parenthesized_expression "(**(code **)(pcVar12 + 0x1cffc))" (( "(") (pointer_expression "**(code **)(pcVar12 + 0x1cffc)" (* "*") (pointer_expression "*(code **)(pcVar12 + 0x1cffc)" (* "*") (cast_expression "(code **)(pcVar12 + 0x1cffc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar12 + 0x1cffc)" (( "(") (binary_expression "pcVar12 + 0x1cffc" (identifier "pcVar12") (+ "+") (number_literal "0x1cffc")) () ")"))))) () ")")) (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")")))) (; ";")) (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(void)

{
  int var_1;
  int var_7;
  type_2 var_8;
  type_3 *puVar4;
  int *piVar5;
  type_4 uVar6;
  type_5 *var_9;
  size_t *var_2;
  type_3 uVar7;
  int *piVar8;
  bool bVar9;
  int var_5;
  type_6 *var_4;
  type_7 *var_11;
  type_3 in_stack_ffffff7c;
  char *response;
  size_t response_size;
  int var_3;
  
  var_4 = PTR___stack_chk_guard_000466a0;
  uVar7 = 10;
  var_2 = &response_size;
  response = (char *)0x0;
  response_size = 0;
  var_3 = *(int *)PTR___stack_chk_guard_000466a0;
  var_1 = (*(type_7 *)PTR___getdelim_0004663c)(&response);
  if (var_1 < 1) {
    bVar9 = false;
  }
  else {
    var_2 = (size_t *)(int)response[var_1 + -1];
    if (var_2 == (size_t *)0xa) {
      response[var_1 + -1] = '\0';
    }
    var_1 = (*(type_7 *)PTR_rpmatch_0004653c)(response);
    bVar9 = 0 < var_1;
  }
  (*(type_7 *)PTR_free_000466a8)(response);
  if (var_3 == *(int *)var_4) {
    return bVar9;
  }
  var_1 = var_3;
  var_4 = PTR___stack_chk_fail_00046664;
  (*(type_7 *)PTR___stack_chk_fail_00046664)();
  piVar8 = *(int **)(var_4 + 0x1d190);
  var_9 = (type_5 *)*piVar8;
  var_5 = *(int *)(var_4 + 0x1cc50);
  if (var_2 != (size_t *)0x406) {
    var_7 = (**(type_7 **)(var_4 + 0x1d034))();
    goto LAB_00029598;
  }
  if (*(int *)(var_5 + -0x72f0) < 0) {
    var_2 = (size_t *)0x0;
    var_7 = var_6(var_1,0);
    if ((var_7 < 0) || (var_1 = var_7, *(int *)(var_5 + -0x72f0) != -1)) goto LAB_00029598;
LAB_000295f4:
    var_2 = (size_t *)0x1;
    var_8 = (**(type_7 **)(var_4 + 0x1d034))(var_1);
    if (-1 < (int)var_8) {
      var_2 = (size_t *)0x2;
      var_5 = (**(type_7 **)(var_4 + 0x1d034))(var_1,2,var_8 | 1);
      var_7 = var_1;
      if (var_5 != -1) goto LAB_00029598;
    }
    puVar4 = (type_3 *)(**(type_7 **)(var_4 + 0x1d05c))();
    uVar7 = *puVar4;
    var_7 = -1;
    (**(type_7 **)(var_4 + 0x1cf70))(var_1);
    *puVar4 = uVar7;
  }
  else {
    var_7 = (**(type_7 **)(var_4 + 0x1d034))();
    if (var_7 < 0) {
      piVar5 = (int *)(**(type_7 **)(var_4 + 0x1d05c))();
      if (*piVar5 == 0x16) {
        var_2 = (size_t *)0x0;
        var_7 = var_6(var_1,0,uVar7);
        if (var_7 < 0) goto LAB_00029598;
        *(type_3 *)(var_5 + -0x72f0) = 0xffffffff;
        var_1 = var_7;
        goto LAB_000295f4;
      }
    }
    *(type_3 *)(var_5 + -0x72f0) = 1;
  }
LAB_00029598:
  if (var_9 == (type_5 *)*piVar8) {
    return var_10(var_7,0);
  }
  var_11 = *(type_7 **)(var_4 + 0x1d154);
  (*var_11)();
  if (var_9 != (type_5 *)0x0) {
    var_1 = (**(type_7 **)(var_11 + 0x1cf10))();
    if ((var_1 != 0) && ((var_9->_flags & 0x100U) != 0)) {
      var_12(var_9,var_13(1,in_stack_ffffff7c),(int)var_2);
                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar6 = (**(type_7 **)(var_11 + 0x1cffc))(var_9);
      return (type_1)uVar6;
    }
  }
                    /* WARNING: Could not recover jumptable at 0x00029728. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar6 = (**(type_7 **)(var_11 + 0x1cffc))(var_9);
  return (type_1)uVar6;
}


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

/* WARNING: Type propagation algorithm not settling */

uint MASKED(void)

{
  int iVar1;
  char *pcVar2;
  undefined4 *puVar3;
  uint *puVar4;
  int *piVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  undefined *puVar11;
  code *pcVar12;
  int local_1c [4];
  
  puVar11 = PTR___stack_chk_guard_000466a0;
  uVar6 = 10;
  piVar5 = local_1c + 1;
  local_1c[0] = 0;
  local_1c[1] = 0;
  local_1c[2] = *(int *)PTR___stack_chk_guard_000466a0;
  iVar1 = (*(code *)PTR___getdelim_0004663c)(local_1c);
  if (iVar1 < 1) {
    uVar8 = 0;
  }
  else {
    pcVar2 = (char *)(local_1c[0] + iVar1 + -1);
    piVar5 = (int *)(int)*pcVar2;
    if (piVar5 == (int *)0xa) {
      *pcVar2 = '\0';
    }
    iVar1 = (*(code *)PTR_rpmatch_0004653c)(local_1c[0]);
    uVar8 = (uint)(0 < iVar1);
  }
  (*(code *)PTR_free_000466a8)(local_1c[0]);
  if (local_1c[2] == *(int *)puVar11) {
    return uVar8;
  }
  iVar1 = local_1c[2];
  puVar11 = PTR___stack_chk_fail_00046664;
  (*(code *)PTR___stack_chk_fail_00046664)();
  puVar7 = *(undefined4 **)(puVar11 + 0x1d190);
  puVar4 = (uint *)*puVar7;
  iVar10 = *(int *)(puVar11 + 0x1cc50);
  if (piVar5 != (int *)0x406) {
    uVar8 = (**(code **)(puVar11 + 0x1d034))();
    goto LAB_00029598;
  }
  if (*(int *)(iVar10 + -0x72f0) < 0) {
    uVar8 = rpl_fcntl();
    if (((int)uVar8 < 0) || (uVar9 = uVar8, *(int *)(iVar10 + -0x72f0) != -1)) goto LAB_00029598;
LAB_000295f4:
    uVar8 = (**(code **)(puVar11 + 0x1d034))(uVar9,1);
    if (-1 < (int)uVar8) {
      iVar1 = (**(code **)(puVar11 + 0x1d034))(uVar9,2,uVar8 | 1);
      uVar8 = uVar9;
      if (iVar1 != -1) goto LAB_00029598;
    }
    puVar3 = (undefined4 *)(**(code **)(puVar11 + 0x1d05c))();
    uVar6 = *puVar3;
    uVar8 = 0xffffffff;
    (**(code **)(puVar11 + 0x1cf70))(uVar9);
    *puVar3 = uVar6;
  }
  else {
    uVar8 = (**(code **)(puVar11 + 0x1d034))();
    if ((int)uVar8 < 0) {
      piVar5 = (int *)(**(code **)(puVar11 + 0x1d05c))();
      if (*piVar5 == 0x16) {
        uVar8 = rpl_fcntl(iVar1,0,uVar6);
        if ((int)uVar8 < 0) goto LAB_00029598;
        *(undefined4 *)(iVar10 + -0x72f0) = 0xffffffff;
        uVar9 = uVar8;
        goto LAB_000295f4;
      }
    }
    *(undefined4 *)(iVar10 + -0x72f0) = 1;
  }
LAB_00029598:
  if (puVar4 == (uint *)*puVar7) {
    return uVar8;
  }
  pcVar12 = *(code **)(puVar11 + 0x1d154);
  (*pcVar12)();
  if (puVar4 != (uint *)0x0) {
    iVar1 = (**(code **)(pcVar12 + 0x1cf10))();
    if ((iVar1 != 0) && ((*puVar4 & 0x100) != 0)) {
      rpl_fseeko(puVar4);
                    /* WARNING: Could not recover jumptable at 0x0002975c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);
      return uVar8;
    }
  }
                    /* WARNING: Could not recover jumptable at 0x00029728. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar8 = (**(code **)(pcVar12 + 0x1cffc))(puVar4);
  return uVar8;
}

