
void pty_open_master(Pty pty)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  undefined *puVar4;
  
  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);
  pty->master_fd = iVar2;
  if (iVar2 < 0) {
    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;
  }
  else {
    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);
    if (iVar2 < 0) {
      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;
    }
    else {
      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);
      puVar4 = PTR_DAT_000a70bc;
      if (-1 < iVar2) {
        cloexec(pty->master_fd);
        puVar1 = PTR_ptsname_000a7ae0;
        iVar2 = pty->master_fd;
        pty->name[0xfff] = '\0';
        uVar3 = (*(code *)puVar1)(iVar2);
        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);
        nonblock(pty->master_fd);
        iVar2 = *(int *)(puVar4 + -0x7d64);
        if (iVar2 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
          (*(code *)PTR_add234_000a71d8)(iVar2,pty);
          return;
        }
        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);
        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;
                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */
                    /* WARNING: Treating indirect jump as call */
        (*(code *)PTR_add234_000a71d8)(uVar3,pty);
        return;
      }
      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;
    }
  }
  (*(code *)PTR_perror_000a79dc)(puVar4);
  (*(code *)PTR_exit_000a7a50)(1);
  return;
}



void FUN_0006cb7c(int param_1)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  undefined *puVar4;
  
  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);
  *(int *)(param_1 + 4) = iVar2;
  if (iVar2 < 0) {
    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;
  }
  else {
    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);
    if (iVar2 < 0) {
      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;
    }
    else {
      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));
      puVar4 = PTR_DAT_000a70bc;
      if (-1 < iVar2) {
        cloexec(*(undefined4 *)(param_1 + 4));
        puVar1 = PTR_ptsname_000a7ae0;
        *(undefined1 *)(param_1 + 0x100f) = 0;
        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));
        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);
        nonblock(*(undefined4 *)(param_1 + 4));
        iVar2 = *(int *)(puVar4 + -0x7d64);
        if (iVar2 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);
          return;
        }
        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);
        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;
                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */
                    /* WARNING: Treating indirect jump as call */
        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);
        return;
      }
      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;
    }
  }
  (*(code *)PTR_perror_000a79dc)(puVar4);
  (*(code *)PTR_exit_000a7a50)(1);
  return;
}


lui gp,0x4
addiu gp,gp,0x2514
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7494(gp)
sw s0,0x1c(sp)
or s0,a0,zero
li a0,0x802
sw gp,0x10(sp)
sw ra,0x24(sp)
jalr t9
_sw s1,0x20(sp)
lw gp,0x10(sp)
bltz v0,0x0006cc8c
_sw v0,0x4(s0)
lw t9,-0x7554(gp)
jalr t9
_or a0,v0,zero
bltz v0,0x0006ccc0
_lw gp,0x10(sp)
lw t9,-0x7484(gp)
jalr t9
_lw a0,0x4(s0)
bltz v0,0x0006ccb0
_lw gp,0x10(sp)
lw t9,-0x7918(gp)
lw s1,-0x7fd4(gp)
bal 0x0006beb0
_lw a0,0x4(s0)
lw gp,0x10(sp)
lw a0,0x4(s0)
lw t9,-0x75b0(gp)
jalr t9
_sb zero,0x100f(s0)
li a2,0xfff
lw gp,0x10(sp)
addiu a0,s0,0x10
lw t9,-0x7394(gp)
jalr t9
_or a1,v0,zero
lw gp,0x10(sp)
lw t9,-0x7914(gp)
bal 0x0006c0bc
_lw a0,0x4(s0)
lw a0,-0x7d64(s1)
beq a0,zero,0x0006cc54
_lw gp,0x10(sp)
lw ra,0x24(sp)
or a1,s0,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7eb8(gp)
jr t9
_addiu sp,sp,0x28
lw a0,-0x7fc4(gp)
lw t9,-0x7eb0(gp)
jalr t9
_addiu a0,a0,-0x3590
or a1,s0,zero
lw gp,0x10(sp)
or a0,v0,zero
lw ra,0x24(sp)
lw s0,0x1c(sp)
sw v0,-0x7d64(s1)
lw t9,-0x7eb8(gp)
lw s1,0x20(sp)
jr t9
_addiu sp,sp,0x28
lw a0,-0x7fb8(gp)
lw t9,-0x76b4(gp)
addiu a0,a0,0x1400
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7640(gp)
jalr t9
_li a0,0x1
lw a0,-0x7fb8(gp)
lw t9,-0x76b4(gp)
b 0x0006cc98
_addiu a0,a0,0x1418
lw a0,-0x7fb8(gp)
lw t9,-0x76b4(gp)
b 0x0006cc98
_addiu a0,a0,0x1410
(translation_unit "void FUN_0006cb7c(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  *(int *)(param_1 + 4) = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}\n\n" (function_definition "void FUN_0006cb7c(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  *(int *)(param_1 + 4) = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}" primitive_type (function_declarator "FUN_0006cb7c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  *(int *)(param_1 + 4) = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);" (assignment_expression "iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802)" identifier = (call_expression "(*(code *)PTR_posix_openpt_000a7bfc)(0x802)" (parenthesized_expression "(*(code *)PTR_posix_openpt_000a7bfc)" ( (pointer_expression "*(code *)PTR_posix_openpt_000a7bfc" * (cast_expression "(code *)PTR_posix_openpt_000a7bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x802)" ( number_literal )))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar2;" (assignment_expression "*(int *)(param_1 + 4) = iVar2" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }" { (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400" identifier = (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" else (compound_statement "{\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);" (assignment_expression "iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2)" identifier = (call_expression "(*(code *)PTR_grantpt_000a7b3c)(iVar2)" (parenthesized_expression "(*(code *)PTR_grantpt_000a7b3c)" ( (pointer_expression "*(code *)PTR_grantpt_000a7b3c" * (cast_expression "(code *)PTR_grantpt_000a7b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }" { (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410" identifier = (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410" identifier + number_literal)) ;) }) (else_clause "else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" else (compound_statement "{\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "(*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4))" (parenthesized_expression "(*(code *)PTR_unlockpt_000a7c0c)" ( (pointer_expression "*(code *)PTR_unlockpt_000a7c0c" * (cast_expression "(code *)PTR_unlockpt_000a7c0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "puVar4 = PTR_DAT_000a70bc;" (assignment_expression "puVar4 = PTR_DAT_000a70bc" identifier = identifier) ;) (if_statement "if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }" { (expression_statement "cloexec(*(undefined4 *)(param_1 + 4));" (call_expression "cloexec(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "puVar1 = PTR_ptsname_000a7ae0;" (assignment_expression "puVar1 = PTR_ptsname_000a7ae0" identifier = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x100f) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x100f) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x100f)" * (cast_expression "(undefined1 *)(param_1 + 0x100f)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100f)" ( (binary_expression "param_1 + 0x100f" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "(*(code *)puVar1)(*(undefined4 *)(param_1 + 4))" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "(*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);" (call_expression "(*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff)" (parenthesized_expression "(*(code *)PTR_strncpy_000a7cfc)" ( (pointer_expression "*(code *)PTR_strncpy_000a7cfc" * (cast_expression "(code *)PTR_strncpy_000a7cfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x10,uVar3,0xfff)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) , identifier , number_literal ))) ;) (expression_statement "nonblock(*(undefined4 *)(param_1 + 4));" (call_expression "nonblock(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = *(int *)(puVar4 + -0x7d64);" (assignment_expression "iVar2 = *(int *)(puVar4 + -0x7d64)" identifier = (pointer_expression "*(int *)(puVar4 + -0x7d64)" * (cast_expression "(int *)(puVar4 + -0x7d64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x7d64)" ( (binary_expression "puVar4 + -0x7d64" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }" { comment comment (expression_statement "(*(code *)PTR_add234_000a71d8)(iVar2,param_1);" (call_expression "(*(code *)PTR_add234_000a71d8)(iVar2,param_1)" (parenthesized_expression "(*(code *)PTR_add234_000a71d8)" ( (pointer_expression "*(code *)PTR_add234_000a71d8" * (cast_expression "(code *)PTR_add234_000a71d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,param_1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);" (assignment_expression "uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590)" identifier = (call_expression "(*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590)" (parenthesized_expression "(*(code *)PTR_newtree234_000a71e0)" ( (pointer_expression "*(code *)PTR_newtree234_000a71e0" * (cast_expression "(code *)PTR_newtree234_000a71e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_000a70cc + -0x3590)" ( (binary_expression "PTR_LAB_000a70cc + -0x3590" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(puVar4 + -0x7d64) = uVar3;" (assignment_expression "*(undefined4 *)(puVar4 + -0x7d64) = uVar3" (pointer_expression "*(undefined4 *)(puVar4 + -0x7d64)" * (cast_expression "(undefined4 *)(puVar4 + -0x7d64)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x7d64)" ( (binary_expression "puVar4 + -0x7d64" identifier + number_literal) )))) = identifier) ;) comment comment (expression_statement "(*(code *)PTR_add234_000a71d8)(uVar3,param_1);" (call_expression "(*(code *)PTR_add234_000a71d8)(uVar3,param_1)" (parenthesized_expression "(*(code *)PTR_add234_000a71d8)" ( (pointer_expression "*(code *)PTR_add234_000a71d8" * (cast_expression "(code *)PTR_add234_000a71d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,param_1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418" identifier = (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418" identifier + number_literal)) ;) }))) }))) (expression_statement "(*(code *)PTR_perror_000a79dc)(puVar4);" (call_expression "(*(code *)PTR_perror_000a79dc)(puVar4)" (parenthesized_expression "(*(code *)PTR_perror_000a79dc)" ( (pointer_expression "*(code *)PTR_perror_000a79dc" * (cast_expression "(code *)PTR_perror_000a79dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_exit_000a7a50)(1);" (call_expression "(*(code *)PTR_exit_000a7a50)(1)" (parenthesized_expression "(*(code *)PTR_exit_000a7a50)" ( (pointer_expression "*(code *)PTR_exit_000a7a50" * (cast_expression "(code *)PTR_exit_000a7a50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void pty_open_master(Pty pty)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  pty->master_fd = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}\n\n" (function_definition "void pty_open_master(Pty pty)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  pty->master_fd = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}" primitive_type (function_declarator "pty_open_master(Pty pty)" identifier (parameter_list "(Pty pty)" ( (parameter_declaration "Pty pty" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  pty->master_fd = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);" (assignment_expression "iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802)" identifier = (call_expression "(*(code *)PTR_posix_openpt_000a7bfc)(0x802)" (parenthesized_expression "(*(code *)PTR_posix_openpt_000a7bfc)" ( (pointer_expression "*(code *)PTR_posix_openpt_000a7bfc" * (cast_expression "(code *)PTR_posix_openpt_000a7bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x802)" ( number_literal )))) ;) (expression_statement "pty->master_fd = iVar2;" (assignment_expression "pty->master_fd = iVar2" (field_expression "pty->master_fd" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }" { (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400" identifier = (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" else (compound_statement "{\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);" (assignment_expression "iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2)" identifier = (call_expression "(*(code *)PTR_grantpt_000a7b3c)(iVar2)" (parenthesized_expression "(*(code *)PTR_grantpt_000a7b3c)" ( (pointer_expression "*(code *)PTR_grantpt_000a7b3c" * (cast_expression "(code *)PTR_grantpt_000a7b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }" { (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410" identifier = (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410" identifier + number_literal)) ;) }) (else_clause "else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" else (compound_statement "{\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd);" (assignment_expression "iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd)" identifier = (call_expression "(*(code *)PTR_unlockpt_000a7c0c)(pty->master_fd)" (parenthesized_expression "(*(code *)PTR_unlockpt_000a7c0c)" ( (pointer_expression "*(code *)PTR_unlockpt_000a7c0c" * (cast_expression "(code *)PTR_unlockpt_000a7c0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pty->master_fd)" ( (field_expression "pty->master_fd" identifier -> field_identifier) )))) ;) (expression_statement "puVar4 = PTR_DAT_000a70bc;" (assignment_expression "puVar4 = PTR_DAT_000a70bc" identifier = identifier) ;) (if_statement "if (-1 < iVar2) {\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        cloexec(pty->master_fd);\n        puVar1 = PTR_ptsname_000a7ae0;\n        iVar2 = pty->master_fd;\n        pty->name[0xfff] = '\0';\n        uVar3 = (*(code *)puVar1)(iVar2);\n        (*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);\n        nonblock(pty->master_fd);\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (*(code *)PTR_add234_000a71d8)(uVar3,pty);\n        return;\n      }" { (expression_statement "cloexec(pty->master_fd);" (call_expression "cloexec(pty->master_fd)" identifier (argument_list "(pty->master_fd)" ( (field_expression "pty->master_fd" identifier -> field_identifier) ))) ;) (expression_statement "puVar1 = PTR_ptsname_000a7ae0;" (assignment_expression "puVar1 = PTR_ptsname_000a7ae0" identifier = identifier) ;) (expression_statement "iVar2 = pty->master_fd;" (assignment_expression "iVar2 = pty->master_fd" identifier = (field_expression "pty->master_fd" identifier -> field_identifier)) ;) (expression_statement "pty->name[0xfff] = '\0';" (assignment_expression "pty->name[0xfff] = '\0'" (subscript_expression "pty->name[0xfff]" (field_expression "pty->name" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "uVar3 = (*(code *)puVar1)(iVar2);" (assignment_expression "uVar3 = (*(code *)puVar1)(iVar2)" identifier = (call_expression "(*(code *)puVar1)(iVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);" (call_expression "(*(code *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff)" (parenthesized_expression "(*(code *)PTR_strncpy_000a7cfc)" ( (pointer_expression "*(code *)PTR_strncpy_000a7cfc" * (cast_expression "(code *)PTR_strncpy_000a7cfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pty->name,uVar3,0xfff)" ( (field_expression "pty->name" identifier -> field_identifier) , identifier , number_literal ))) ;) (expression_statement "nonblock(pty->master_fd);" (call_expression "nonblock(pty->master_fd)" identifier (argument_list "(pty->master_fd)" ( (field_expression "pty->master_fd" identifier -> field_identifier) ))) ;) (expression_statement "iVar2 = *(int *)(puVar4 + -0x7d64);" (assignment_expression "iVar2 = *(int *)(puVar4 + -0x7d64)" identifier = (pointer_expression "*(int *)(puVar4 + -0x7d64)" * (cast_expression "(int *)(puVar4 + -0x7d64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x7d64)" ( (binary_expression "puVar4 + -0x7d64" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          (*(code *)PTR_add234_000a71d8)(iVar2,pty);\n          return;\n        }" { comment comment (expression_statement "(*(code *)PTR_add234_000a71d8)(iVar2,pty);" (call_expression "(*(code *)PTR_add234_000a71d8)(iVar2,pty)" (parenthesized_expression "(*(code *)PTR_add234_000a71d8)" ( (pointer_expression "*(code *)PTR_add234_000a71d8" * (cast_expression "(code *)PTR_add234_000a71d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,pty)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);" (assignment_expression "uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590)" identifier = (call_expression "(*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590)" (parenthesized_expression "(*(code *)PTR_newtree234_000a71e0)" ( (pointer_expression "*(code *)PTR_newtree234_000a71e0" * (cast_expression "(code *)PTR_newtree234_000a71e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_000a70cc + -0x3590)" ( (binary_expression "PTR_LAB_000a70cc + -0x3590" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(puVar4 + -0x7d64) = uVar3;" (assignment_expression "*(undefined4 *)(puVar4 + -0x7d64) = uVar3" (pointer_expression "*(undefined4 *)(puVar4 + -0x7d64)" * (cast_expression "(undefined4 *)(puVar4 + -0x7d64)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x7d64)" ( (binary_expression "puVar4 + -0x7d64" identifier + number_literal) )))) = identifier) ;) comment comment (expression_statement "(*(code *)PTR_add234_000a71d8)(uVar3,pty);" (call_expression "(*(code *)PTR_add234_000a71d8)(uVar3,pty)" (parenthesized_expression "(*(code *)PTR_add234_000a71d8)" ( (pointer_expression "*(code *)PTR_add234_000a71d8" * (cast_expression "(code *)PTR_add234_000a71d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,pty)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418" identifier = (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418" identifier + number_literal)) ;) }))) }))) (expression_statement "(*(code *)PTR_perror_000a79dc)(puVar4);" (call_expression "(*(code *)PTR_perror_000a79dc)(puVar4)" (parenthesized_expression "(*(code *)PTR_perror_000a79dc)" ( (pointer_expression "*(code *)PTR_perror_000a79dc" * (cast_expression "(code *)PTR_perror_000a79dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_exit_000a7a50)(1);" (call_expression "(*(code *)PTR_exit_000a7a50)(1)" (parenthesized_expression "(*(code *)PTR_exit_000a7a50)" ( (pointer_expression "*(code *)PTR_exit_000a7a50" * (cast_expression "(code *)PTR_exit_000a7a50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0006cb7c(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  *(int *)(param_1 + 4) = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}\n\n" (function_definition "void FUN_0006cb7c(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  *(int *)(param_1 + 4) = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}" primitive_type (function_declarator "FUN_0006cb7c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  *(int *)(param_1 + 4) = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);" (assignment_expression "iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802)" identifier = (call_expression "(*(code *)PTR_posix_openpt_000a7bfc)(0x802)" (parenthesized_expression "(*(code *)PTR_posix_openpt_000a7bfc)" ( (pointer_expression "*(code *)PTR_posix_openpt_000a7bfc" * (cast_expression "(code *)PTR_posix_openpt_000a7bfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x802)" ( number_literal )))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar2;" (assignment_expression "*(int *)(param_1 + 4) = iVar2" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }" { (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400" identifier = (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400" identifier + number_literal)) ;) }) (else_clause "else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" else (compound_statement "{\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);" (assignment_expression "iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2)" identifier = (call_expression "(*(code *)PTR_grantpt_000a7b3c)(iVar2)" (parenthesized_expression "(*(code *)PTR_grantpt_000a7b3c)" ( (pointer_expression "*(code *)PTR_grantpt_000a7b3c" * (cast_expression "(code *)PTR_grantpt_000a7b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }" { (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410" identifier = (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410" identifier + number_literal)) ;) }) (else_clause "else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" else (compound_statement "{\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "(*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4))" (parenthesized_expression "(*(code *)PTR_unlockpt_000a7c0c)" ( (pointer_expression "*(code *)PTR_unlockpt_000a7c0c" * (cast_expression "(code *)PTR_unlockpt_000a7c0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "puVar4 = PTR_DAT_000a70bc;" (assignment_expression "puVar4 = PTR_DAT_000a70bc" identifier = identifier) ;) (if_statement "if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }" { (expression_statement "cloexec(*(undefined4 *)(param_1 + 4));" (call_expression "cloexec(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "puVar1 = PTR_ptsname_000a7ae0;" (assignment_expression "puVar1 = PTR_ptsname_000a7ae0" identifier = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x100f) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x100f) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x100f)" * (cast_expression "(undefined1 *)(param_1 + 0x100f)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100f)" ( (binary_expression "param_1 + 0x100f" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "(*(code *)puVar1)(*(undefined4 *)(param_1 + 4))" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "(*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);" (call_expression "(*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff)" (parenthesized_expression "(*(code *)PTR_strncpy_000a7cfc)" ( (pointer_expression "*(code *)PTR_strncpy_000a7cfc" * (cast_expression "(code *)PTR_strncpy_000a7cfc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x10,uVar3,0xfff)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) , identifier , number_literal ))) ;) (expression_statement "nonblock(*(undefined4 *)(param_1 + 4));" (call_expression "nonblock(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = *(int *)(puVar4 + -0x7d64);" (assignment_expression "iVar2 = *(int *)(puVar4 + -0x7d64)" identifier = (pointer_expression "*(int *)(puVar4 + -0x7d64)" * (cast_expression "(int *)(puVar4 + -0x7d64)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x7d64)" ( (binary_expression "puVar4 + -0x7d64" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }" { (expression_statement "(*(code *)PTR_add234_000a71d8)(iVar2,param_1);" (call_expression "(*(code *)PTR_add234_000a71d8)(iVar2,param_1)" (parenthesized_expression "(*(code *)PTR_add234_000a71d8)" ( (pointer_expression "*(code *)PTR_add234_000a71d8" * (cast_expression "(code *)PTR_add234_000a71d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,param_1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);" (assignment_expression "uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590)" identifier = (call_expression "(*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590)" (parenthesized_expression "(*(code *)PTR_newtree234_000a71e0)" ( (pointer_expression "*(code *)PTR_newtree234_000a71e0" * (cast_expression "(code *)PTR_newtree234_000a71e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_000a70cc + -0x3590)" ( (binary_expression "PTR_LAB_000a70cc + -0x3590" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(puVar4 + -0x7d64) = uVar3;" (assignment_expression "*(undefined4 *)(puVar4 + -0x7d64) = uVar3" (pointer_expression "*(undefined4 *)(puVar4 + -0x7d64)" * (cast_expression "(undefined4 *)(puVar4 + -0x7d64)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x7d64)" ( (binary_expression "puVar4 + -0x7d64" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)PTR_add234_000a71d8)(uVar3,param_1);" (call_expression "(*(code *)PTR_add234_000a71d8)(uVar3,param_1)" (parenthesized_expression "(*(code *)PTR_add234_000a71d8)" ( (pointer_expression "*(code *)PTR_add234_000a71d8" * (cast_expression "(code *)PTR_add234_000a71d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,param_1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418" identifier = (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418" identifier + number_literal)) ;) }))) }))) (expression_statement "(*(code *)PTR_perror_000a79dc)(puVar4);" (call_expression "(*(code *)PTR_perror_000a79dc)(puVar4)" (parenthesized_expression "(*(code *)PTR_perror_000a79dc)" ( (pointer_expression "*(code *)PTR_perror_000a79dc" * (cast_expression "(code *)PTR_perror_000a79dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_exit_000a7a50)(1);" (call_expression "(*(code *)PTR_exit_000a7a50)(1)" (parenthesized_expression "(*(code *)PTR_exit_000a7a50)" ( (pointer_expression "*(code *)PTR_exit_000a7a50" * (cast_expression "(code *)PTR_exit_000a7a50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (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 ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0006cb7c(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  *(int *)(param_1 + 4) = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0006cb7c(int param_1)" (identifier "FUN_0006cb7c") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined *puVar4;\n  \n  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);\n  *(int *)(param_1 + 4) = iVar2;\n  if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }\n  (*(code *)PTR_perror_000a79dc)(puVar4);\n  (*(code *)PTR_exit_000a7a50)(1);\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);" (assignment_expression "iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_posix_openpt_000a7bfc)(0x802)" (parenthesized_expression "(*(code *)PTR_posix_openpt_000a7bfc)" (( "(") (pointer_expression "*(code *)PTR_posix_openpt_000a7bfc" (* "*") (cast_expression "(code *)PTR_posix_openpt_000a7bfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_posix_openpt_000a7bfc"))) () ")")) (argument_list "(0x802)" (( "(") (number_literal "0x802") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 4) = iVar2;" (assignment_expression "*(int *)(param_1 + 4) = iVar2" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 < 0) {\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }\n  else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;\n  }" ({ "{") (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400" (identifier "puVar4") (= "=") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "0x1400"))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);\n    if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);" (assignment_expression "iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_grantpt_000a7b3c)(iVar2)" (parenthesized_expression "(*(code *)PTR_grantpt_000a7b3c)" (( "(") (pointer_expression "*(code *)PTR_grantpt_000a7b3c" (* "*") (cast_expression "(code *)PTR_grantpt_000a7b3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_grantpt_000a7b3c"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }\n    else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;\n    }" ({ "{") (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410" (identifier "puVar4") (= "=") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "0x1410"))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" (else "else") (compound_statement "{\n      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));\n      puVar4 = PTR_DAT_000a70bc;\n      if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }\n      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4))" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4))" (parenthesized_expression "(*(code *)PTR_unlockpt_000a7c0c)" (( "(") (pointer_expression "*(code *)PTR_unlockpt_000a7c0c" (* "*") (cast_expression "(code *)PTR_unlockpt_000a7c0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_unlockpt_000a7c0c"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "puVar4 = PTR_DAT_000a70bc;" (assignment_expression "puVar4 = PTR_DAT_000a70bc" (identifier "puVar4") (= "=") (identifier "PTR_DAT_000a70bc")) (; ";")) (if_statement "if (-1 < iVar2) {\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n        cloexec(*(undefined4 *)(param_1 + 4));\n        puVar1 = PTR_ptsname_000a7ae0;\n        *(undefined1 *)(param_1 + 0x100f) = 0;\n        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));\n        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);\n        nonblock(*(undefined4 *)(param_1 + 4));\n        iVar2 = *(int *)(puVar4 + -0x7d64);\n        if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }\n        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);\n        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;\n                    \n                    \n        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);\n        return;\n      }" ({ "{") (expression_statement "cloexec(*(undefined4 *)(param_1 + 4));" (call_expression "cloexec(*(undefined4 *)(param_1 + 4))" (identifier "cloexec") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "puVar1 = PTR_ptsname_000a7ae0;" (assignment_expression "puVar1 = PTR_ptsname_000a7ae0" (identifier "puVar1") (= "=") (identifier "PTR_ptsname_000a7ae0")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x100f) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x100f) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x100f)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x100f)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100f)" (( "(") (binary_expression "param_1 + 0x100f" (identifier "param_1") (+ "+") (number_literal "0x100f")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4))" (identifier "uVar3") (= "=") (call_expression "(*(code *)puVar1)(*(undefined4 *)(param_1 + 4))" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);" (call_expression "(*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff)" (parenthesized_expression "(*(code *)PTR_strncpy_000a7cfc)" (( "(") (pointer_expression "*(code *)PTR_strncpy_000a7cfc" (* "*") (cast_expression "(code *)PTR_strncpy_000a7cfc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncpy_000a7cfc"))) () ")")) (argument_list "(param_1 + 0x10,uVar3,0xfff)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) (, ",") (identifier "uVar3") (, ",") (number_literal "0xfff") () ")"))) (; ";")) (expression_statement "nonblock(*(undefined4 *)(param_1 + 4));" (call_expression "nonblock(*(undefined4 *)(param_1 + 4))" (identifier "nonblock") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(puVar4 + -0x7d64);" (assignment_expression "iVar2 = *(int *)(puVar4 + -0x7d64)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(puVar4 + -0x7d64)" (* "*") (cast_expression "(int *)(puVar4 + -0x7d64)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x7d64)" (( "(") (binary_expression "puVar4 + -0x7d64" (identifier "puVar4") (+ "+") (number_literal "-0x7d64")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);\n          return;\n        }" ({ "{") (expression_statement "(*(code *)PTR_add234_000a71d8)(iVar2,param_1);" (call_expression "(*(code *)PTR_add234_000a71d8)(iVar2,param_1)" (parenthesized_expression "(*(code *)PTR_add234_000a71d8)" (( "(") (pointer_expression "*(code *)PTR_add234_000a71d8" (* "*") (cast_expression "(code *)PTR_add234_000a71d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_add234_000a71d8"))) () ")")) (argument_list "(iVar2,param_1)" (( "(") (identifier "iVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);" (assignment_expression "uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590)" (parenthesized_expression "(*(code *)PTR_newtree234_000a71e0)" (( "(") (pointer_expression "*(code *)PTR_newtree234_000a71e0" (* "*") (cast_expression "(code *)PTR_newtree234_000a71e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_newtree234_000a71e0"))) () ")")) (argument_list "(PTR_LAB_000a70cc + -0x3590)" (( "(") (binary_expression "PTR_LAB_000a70cc + -0x3590" (identifier "PTR_LAB_000a70cc") (+ "+") (number_literal "-0x3590")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar4 + -0x7d64) = uVar3;" (assignment_expression "*(undefined4 *)(puVar4 + -0x7d64) = uVar3" (pointer_expression "*(undefined4 *)(puVar4 + -0x7d64)" (* "*") (cast_expression "(undefined4 *)(puVar4 + -0x7d64)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x7d64)" (( "(") (binary_expression "puVar4 + -0x7d64" (identifier "puVar4") (+ "+") (number_literal "-0x7d64")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "(*(code *)PTR_add234_000a71d8)(uVar3,param_1);" (call_expression "(*(code *)PTR_add234_000a71d8)(uVar3,param_1)" (parenthesized_expression "(*(code *)PTR_add234_000a71d8)" (( "(") (pointer_expression "*(code *)PTR_add234_000a71d8" (* "*") (cast_expression "(code *)PTR_add234_000a71d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_add234_000a71d8"))) () ")")) (argument_list "(uVar3,param_1)" (( "(") (identifier "uVar3") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;" (assignment_expression "puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418" (identifier "puVar4") (= "=") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "0x1418"))) (; ";")) (} "}")))) (} "}")))) (expression_statement "(*(code *)PTR_perror_000a79dc)(puVar4);" (call_expression "(*(code *)PTR_perror_000a79dc)(puVar4)" (parenthesized_expression "(*(code *)PTR_perror_000a79dc)" (( "(") (pointer_expression "*(code *)PTR_perror_000a79dc" (* "*") (cast_expression "(code *)PTR_perror_000a79dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_perror_000a79dc"))) () ")")) (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_exit_000a7a50)(1);" (call_expression "(*(code *)PTR_exit_000a7a50)(1)" (parenthesized_expression "(*(code *)PTR_exit_000a7a50)" (( "(") (pointer_expression "*(code *)PTR_exit_000a7a50" (* "*") (cast_expression "(code *)PTR_exit_000a7a50" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_exit_000a7a50"))) () ")")) (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 pty)

{
  type_2 *puVar1;
  int var_1;
  type_3 uVar3;
  type_2 *var_5;
  
  var_1 = (*(type_4 *)PTR_posix_openpt_000a7bfc)(0x802);
  pty->master_fd = var_1;
  if (var_1 < 0) {
    var_5 = var_2 + 0x1400;
  }
  else {
    var_1 = (*(type_4 *)PTR_grantpt_000a7b3c)(var_1);
    if (var_1 < 0) {
      var_5 = var_2 + 0x1410;
    }
    else {
      var_1 = (*(type_4 *)PTR_unlockpt_000a7c0c)(pty->master_fd);
      var_5 = PTR_DAT_000a70bc;
      if (-1 < var_1) {
        var_3(pty->master_fd);
        puVar1 = PTR_ptsname_000a7ae0;
        var_1 = pty->master_fd;
        pty->name[0xfff] = '\0';
        uVar3 = (*(type_4 *)puVar1)(var_1);
        (*(type_4 *)PTR_strncpy_000a7cfc)(pty->name,uVar3,0xfff);
        var_4(pty->master_fd);
        var_1 = *(int *)(var_5 + -0x7d64);
        if (var_1 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
          (*(type_4 *)PTR_add234_000a71d8)(var_1,pty);
          return;
        }
        uVar3 = (*(type_4 *)PTR_newtree234_000a71e0)(var_6 + -0x3590);
        *(type_3 *)(var_5 + -0x7d64) = uVar3;
                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */
                    /* WARNING: Treating indirect jump as call */
        (*(type_4 *)PTR_add234_000a71d8)(uVar3,pty);
        return;
      }
      var_5 = var_2 + 0x1418;
    }
  }
  (*(type_4 *)PTR_perror_000a79dc)(var_5);
  (*(type_4 *)PTR_exit_000a7a50)(1);
  return;
}


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

void MASKED(int param_1)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  undefined *puVar4;
  
  iVar2 = (*(code *)PTR_posix_openpt_000a7bfc)(0x802);
  *(int *)(param_1 + 4) = iVar2;
  if (iVar2 < 0) {
    puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1400;
  }
  else {
    iVar2 = (*(code *)PTR_grantpt_000a7b3c)(iVar2);
    if (iVar2 < 0) {
      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1410;
    }
    else {
      iVar2 = (*(code *)PTR_unlockpt_000a7c0c)(*(undefined4 *)(param_1 + 4));
      puVar4 = PTR_DAT_000a70bc;
      if (-1 < iVar2) {
        cloexec(*(undefined4 *)(param_1 + 4));
        puVar1 = PTR_ptsname_000a7ae0;
        *(undefined1 *)(param_1 + 0x100f) = 0;
        uVar3 = (*(code *)puVar1)(*(undefined4 *)(param_1 + 4));
        (*(code *)PTR_strncpy_000a7cfc)(param_1 + 0x10,uVar3,0xfff);
        nonblock(*(undefined4 *)(param_1 + 4));
        iVar2 = *(int *)(puVar4 + -0x7d64);
        if (iVar2 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0006cc4c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
          (*(code *)PTR_add234_000a71d8)(iVar2,param_1);
          return;
        }
        uVar3 = (*(code *)PTR_newtree234_000a71e0)(PTR_LAB_000a70cc + -0x3590);
        *(undefined4 *)(puVar4 + -0x7d64) = uVar3;
                    /* WARNING: Could not recover jumptable at 0x0006cc84. Too many branches */
                    /* WARNING: Treating indirect jump as call */
        (*(code *)PTR_add234_000a71d8)(uVar3,param_1);
        return;
      }
      puVar4 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + 0x1418;
    }
  }
  (*(code *)PTR_perror_000a79dc)(puVar4);
  (*(code *)PTR_exit_000a7a50)(1);
  return;
}

