
int set_pt_file_handle(sg_pt_base *vp,int dev_fd,int verbose)

{
  undefined *puVar1;
  _Bool _Var3;
  undefined4 *puVar2;
  undefined1 uVar4;
  int iVar5;
  int iVar6;
  stat *dev_statp;
  undefined *puVar7;
  code *pcVar8;
  stat a_stat;
  
  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;
  puVar7 = PTR___stack_chk_guard_00054a4c;
  iVar6 = *(int *)PTR___stack_chk_guard_00054a4c;
  dev_statp = (stat *)dev_fd;
  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {
    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;
    (*(code *)puVar1)(verbose);
  }
  (vp->impl).dev_fd = dev_fd;
  if (dev_fd < 0) {
    iVar5 = 0;
    (vp->impl).is_sg = false;
    (vp->impl).is_bsg = false;
    (vp->impl).is_nvme = false;
    (vp->impl).nvme_direct = false;
    (vp->impl).nvme_nsid = 0;
    (vp->impl).os_err = 0;
  }
  else {
    dev_statp = &a_stat;
    _Var3 = check_file_type(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,
                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose);
    iVar5 = (vp->impl).os_err;
    (vp->impl).is_sg = _Var3;
  }
  if (iVar6 != *(int *)puVar7) {
    puVar7 = PTR___stack_chk_fail_00054a1c;
    (*(code *)PTR___stack_chk_fail_00054a1c)();
    puVar2 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);
    if (puVar2 == (undefined4 *)0x0) {
      if (dev_statp != (stat *)0x0) {
        (**(code **)(puVar7 + 0x266c0))
                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);
        return 0;
      }
    }
    else {
      iVar5 = *(int *)(puVar7 + 0x26600);
      (**(code **)(puVar7 + 0x26840))(puVar2 + 0x31);
      if (*(char *)(iVar5 + 0x4b3a) == '\0') {
        uVar4 = (**(code **)(puVar7 + 0x2677c))();
        *(undefined1 *)(iVar5 + 0x4b3a) = 1;
        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;
      }
      else {
        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);
      }
      pcVar8 = *(code **)(puVar7 + 0x26720);
      *(undefined1 *)(puVar2 + 0x31) = uVar4;
      iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp);
      if ((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')) {
        puVar2[1] = 0;
        puVar2[2] = 0;
        *puVar2 = 0x51;
      }
    }
    return (int)puVar2;
  }
  return iVar5;
}



undefined4 * set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)

{
  undefined *puVar1;
  int iVar2;
  undefined1 uVar3;
  undefined4 *puVar4;
  undefined1 *puVar5;
  int iVar6;
  undefined *puVar7;
  code *pcVar8;
  undefined1 auStack_b8 [164];
  int local_14;
  
  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;
  puVar7 = PTR___stack_chk_guard_00054a4c;
  local_14 = *(int *)PTR___stack_chk_guard_00054a4c;
  puVar5 = param_2;
  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {
    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;
    (*(code *)puVar1)(param_3);
  }
  *(undefined1 **)(param_1 + 0xa8) = param_2;
  if ((int)param_2 < 0) {
    puVar4 = (undefined4 *)0x0;
    *(undefined4 *)(param_1 + 0xa0) = 0;
    *(undefined4 *)(param_1 + 0xb4) = 0;
    *(undefined4 *)(param_1 + 0xb0) = 0;
  }
  else {
    puVar5 = auStack_b8;
    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,
                         param_3);
    puVar4 = *(undefined4 **)(param_1 + 0xb0);
    *(undefined1 *)(param_1 + 0xa0) = uVar3;
  }
  if (local_14 != *(int *)puVar7) {
    iVar2 = local_14;
    puVar7 = PTR___stack_chk_fail_00054a1c;
    (*(code *)PTR___stack_chk_fail_00054a1c)();
    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);
    if (puVar4 == (undefined4 *)0x0) {
      if (puVar5 != (undefined1 *)0x0) {
        (**(code **)(puVar7 + 0x266c0))
                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);
        return (undefined4 *)0x0;
      }
    }
    else {
      iVar6 = *(int *)(puVar7 + 0x26600);
      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);
      if (*(char *)(iVar6 + 0x4b3a) == '\0') {
        uVar3 = (**(code **)(puVar7 + 0x2677c))();
        *(undefined1 *)(iVar6 + 0x4b3a) = 1;
        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;
      }
      else {
        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);
      }
      pcVar8 = *(code **)(puVar7 + 0x26720);
      *(undefined1 *)(puVar4 + 0x31) = uVar3;
      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);
      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {
        puVar4[1] = 0;
        puVar4[2] = 0;
        *puVar4 = 0x51;
      }
    }
    return puVar4;
  }
  return puVar4;
}


lui gp,0x3
addiu gp,gp,-0x1928
addu gp,gp,t9
addiu sp,sp,-0xe0
lw v0,-0x7fbc(gp)
sw s2,0xd8(sp)
sw s0,0xd0(sp)
or s0,a0,zero
lw s2,-0x7dc4(gp)
lbu v1,0x0(v0)
sw gp,0x20(sp)
sw s1,0xd4(sp)
or s1,a1,zero
sw ra,0xdc(sp)
lw a0,0x0(s2)
sw a0,0xcc(sp)
beq v1,zero,0x0002e200
_lw t9,-0x7d98(gp)
bgez s1,0x0002e1c0
_sw s1,0xa8(s0)
or v1,zero,zero
sw zero,0xa0(s0)
sw zero,0xb4(s0)
sw zero,0xb0(s0)
lw a0,0xcc(sp)
or v0,v1,zero
lw v1,0x0(s2)
bne a0,v1,0x0002e220
_lw ra,0xdc(sp)
lw s2,0xd8(sp)
lw s1,0xd4(sp)
lw s0,0xd0(sp)
jr ra
_addiu sp,sp,0xe0
lw t9,-0x7fd4(gp)
addiu v1,s0,0xb0
addiu v0,s0,0xb4
sw a2,0x18(sp)
addiu a3,s0,0xa2
sw v1,0x14(sp)
addiu a2,s0,0xa1
sw v0,0x10(sp)
addiu a1,sp,0x28
addiu t9,t9,-0x2d80
bal 0x0002d280
_or a0,s1,zero
lw gp,0x20(sp)
lw v1,0xb0(s0)
b 0x0002e198
_sb v0,0xa0(s0)
li v1,0x1
or a0,a2,zero
sw a2,0xe8(sp)
jalr t9
_sb v1,0x0(v0)
lw gp,0x20(sp)
b 0x0002e180
_lw a2,0xe8(sp)
lw t9,-0x7df4(gp)
jalr t9
_nop
(translation_unit "undefined4 * set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 uVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  undefined1 auStack_b8 [164];\n  int local_14;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  local_14 = *(int *)PTR___stack_chk_guard_00054a4c;\n  puVar5 = param_2;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }\n  *(undefined1 **)(param_1 + 0xa8) = param_2;\n  if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }\n  if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }\n  return puVar4;\n}\n\n" (function_definition "undefined4 * set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 uVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  undefined1 auStack_b8 [164];\n  int local_14;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  local_14 = *(int *)PTR___stack_chk_guard_00054a4c;\n  puVar5 = param_2;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }\n  *(undefined1 **)(param_1 + 0xa8) = param_2;\n  if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }\n  if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }\n  return puVar4;\n}" type_identifier (pointer_declarator "* set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)" * (function_declarator "set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined1 *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 uVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  undefined1 auStack_b8 [164];\n  int local_14;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  local_14 = *(int *)PTR___stack_chk_guard_00054a4c;\n  puVar5 = param_2;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }\n  *(undefined1 **)(param_1 + 0xa8) = param_2;\n  if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }\n  if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }\n  return puVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined1 auStack_b8 [164];" type_identifier (array_declarator "auStack_b8 [164]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;" (assignment_expression "puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_guard_00054a4c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_00054a4c" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00054a4c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00054a4c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00054a4c" * (cast_expression "(int *)PTR___stack_chk_guard_00054a4c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" identifier = identifier) ;) (if_statement "if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }" if (parenthesized_expression "(*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0')" ( (binary_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0'" (pointer_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }" { (expression_statement "*PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;" (assignment_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854 = 1" (pointer_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854" * identifier) = number_literal) ;) (expression_statement "(*(code *)puVar1)(param_3);" (call_expression "(*(code *)puVar1)(param_3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;) })) (expression_statement "*(undefined1 **)(param_1 + 0xa8) = param_2;" (assignment_expression "*(undefined1 **)(param_1 + 0xa8) = param_2" (pointer_expression "*(undefined1 **)(param_1 + 0xa8)" * (cast_expression "(undefined1 **)(param_1 + 0xa8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xa8)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }" if (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }" { (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0xa0) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xa0) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xa0)" * (cast_expression "(undefined4 *)(param_1 + 0xa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xb4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xb4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xb4)" * (cast_expression "(undefined4 *)(param_1 + 0xb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xb0) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xb0) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xb0)" * (cast_expression "(undefined4 *)(param_1 + 0xb0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }" else (compound_statement "{\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }" { (expression_statement "puVar5 = auStack_b8;" (assignment_expression "puVar5 = auStack_b8" identifier = identifier) ;) (expression_statement "uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);" (assignment_expression "uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3)" identifier = (call_expression "FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3)" identifier (argument_list "(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3)" ( identifier , identifier , (binary_expression "param_1 + 0xa1" identifier + number_literal) , (binary_expression "param_1 + 0xa2" identifier + number_literal) , (binary_expression "param_1 + 0xb4" identifier + number_literal) , (binary_expression "param_1 + 0xb0" identifier + number_literal) , identifier )))) ;) (expression_statement "puVar4 = *(undefined4 **)(param_1 + 0xb0);" (assignment_expression "puVar4 = *(undefined4 **)(param_1 + 0xb0)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xb0)" * (cast_expression "(undefined4 **)(param_1 + 0xb0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_1 + 0xa0) = uVar3;" (assignment_expression "*(undefined1 *)(param_1 + 0xa0) = uVar3" (pointer_expression "*(undefined1 *)(param_1 + 0xa0)" * (cast_expression "(undefined1 *)(param_1 + 0xa0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = identifier) ;) }))) (if_statement "if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar7)" ( (binary_expression "local_14 != *(int *)puVar7" identifier != (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }" { (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_fail_00054a1c;" (assignment_expression "puVar7 = PTR___stack_chk_fail_00054a1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00054a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00054a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00054a1c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00054a1c" * (cast_expression "(code *)PTR___stack_chk_fail_00054a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);" (assignment_expression "puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0)" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar7 + 0x26638))(1,0xe0)" (parenthesized_expression "(**(code **)(puVar7 + 0x26638))" ( (pointer_expression "**(code **)(puVar7 + 0x26638)" * (pointer_expression "*(code **)(puVar7 + 0x26638)" * (cast_expression "(code **)(puVar7 + 0x26638)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x26638)" ( (binary_expression "puVar7 + 0x26638" identifier + number_literal) ))))) )) (argument_list "(1,0xe0)" ( number_literal , number_literal ))))) ;) (if_statement "if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }" if (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" ( (binary_expression "puVar4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }" { (if_statement "if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }" if (parenthesized_expression "(puVar5 != (undefined1 *)0x0)" ( (binary_expression "puVar5 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }" { (expression_statement "(**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);" (call_expression "(**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c)" (parenthesized_expression "(**(code **)(puVar7 + 0x266c0))" ( (pointer_expression "**(code **)(puVar7 + 0x266c0)" * (pointer_expression "*(code **)(puVar7 + 0x266c0)" * (cast_expression "(code **)(puVar7 + 0x266c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x266c0)" ( (binary_expression "puVar7 + 0x266c0" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c)" ( (binary_expression "*(int *)(puVar7 + 0x26614) + -0xab8" (pointer_expression "*(int *)(puVar7 + 0x26614)" * (cast_expression "(int *)(puVar7 + 0x26614)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26614)" ( (binary_expression "puVar7 + 0x26614" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar7 + 0x26614) + -0x75c" (pointer_expression "*(int *)(puVar7 + 0x26614)" * (cast_expression "(int *)(puVar7 + 0x26614)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26614)" ( (binary_expression "puVar7 + 0x26614" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) (else_clause "else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }" else (compound_statement "{\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }" { (expression_statement "iVar6 = *(int *)(puVar7 + 0x26600);" (assignment_expression "iVar6 = *(int *)(puVar7 + 0x26600)" identifier = (pointer_expression "*(int *)(puVar7 + 0x26600)" * (cast_expression "(int *)(puVar7 + 0x26600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26600)" ( (binary_expression "puVar7 + 0x26600" identifier + number_literal) ))))) ;) (expression_statement "(**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);" (call_expression "(**(code **)(puVar7 + 0x26840))(puVar4 + 0x31)" (parenthesized_expression "(**(code **)(puVar7 + 0x26840))" ( (pointer_expression "**(code **)(puVar7 + 0x26840)" * (pointer_expression "*(code **)(puVar7 + 0x26840)" * (cast_expression "(code **)(puVar7 + 0x26840)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x26840)" ( (binary_expression "puVar7 + 0x26840" identifier + number_literal) ))))) )) (argument_list "(puVar4 + 0x31)" ( (binary_expression "puVar4 + 0x31" identifier + number_literal) ))) ;) (if_statement "if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" if (parenthesized_expression "(*(char *)(iVar6 + 0x4b3a) == '\0')" ( (binary_expression "*(char *)(iVar6 + 0x4b3a) == '\0'" (pointer_expression "*(char *)(iVar6 + 0x4b3a)" * (cast_expression "(char *)(iVar6 + 0x4b3a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x4b3a)" ( (binary_expression "iVar6 + 0x4b3a" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }" { (expression_statement "uVar3 = (**(code **)(puVar7 + 0x2677c))();" (assignment_expression "uVar3 = (**(code **)(puVar7 + 0x2677c))()" identifier = (call_expression "(**(code **)(puVar7 + 0x2677c))()" (parenthesized_expression "(**(code **)(puVar7 + 0x2677c))" ( (pointer_expression "**(code **)(puVar7 + 0x2677c)" * (pointer_expression "*(code **)(puVar7 + 0x2677c)" * (cast_expression "(code **)(puVar7 + 0x2677c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x2677c)" ( (binary_expression "puVar7 + 0x2677c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined1 *)(iVar6 + 0x4b3a) = 1;" (assignment_expression "*(undefined1 *)(iVar6 + 0x4b3a) = 1" (pointer_expression "*(undefined1 *)(iVar6 + 0x4b3a)" * (cast_expression "(undefined1 *)(iVar6 + 0x4b3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x4b3a)" ( (binary_expression "iVar6 + 0x4b3a" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;" (assignment_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3" (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" * (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (binary_expression "*(int *)(puVar7 + 0x26600) + 0x4b39" (pointer_expression "*(int *)(puVar7 + 0x26600)" * (cast_expression "(int *)(puVar7 + 0x26600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26600)" ( (binary_expression "puVar7 + 0x26600" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" else (compound_statement "{\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" { (expression_statement "uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);" (assignment_expression "uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" identifier = (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" * (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (binary_expression "*(int *)(puVar7 + 0x26600) + 0x4b39" (pointer_expression "*(int *)(puVar7 + 0x26600)" * (cast_expression "(int *)(puVar7 + 0x26600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26600)" ( (binary_expression "puVar7 + 0x26600" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (expression_statement "pcVar8 = *(code **)(puVar7 + 0x26720);" (assignment_expression "pcVar8 = *(code **)(puVar7 + 0x26720)" identifier = (pointer_expression "*(code **)(puVar7 + 0x26720)" * (cast_expression "(code **)(puVar7 + 0x26720)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x26720)" ( (binary_expression "puVar7 + 0x26720" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(puVar4 + 0x31) = uVar3;" (assignment_expression "*(undefined1 *)(puVar4 + 0x31) = uVar3" (pointer_expression "*(undefined1 *)(puVar4 + 0x31)" * (cast_expression "(undefined1 *)(puVar4 + 0x31)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x31)" ( (binary_expression "puVar4 + 0x31" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);" (assignment_expression "iVar2 = (*pcVar8)(puVar4,iVar2,puVar5)" identifier = (call_expression "(*pcVar8)(puVar4,iVar2,puVar5)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(puVar4,iVar2,puVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }" if (parenthesized_expression "((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0'))" ( (binary_expression "(iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)((int)puVar4 + 0xa2) == '\0')" ( (binary_expression "*(char *)((int)puVar4 + 0xa2) == '\0'" (pointer_expression "*(char *)((int)puVar4 + 0xa2)" * (cast_expression "(char *)((int)puVar4 + 0xa2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 0xa2)" ( (binary_expression "(int)puVar4 + 0xa2" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }" { (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar4 = 0x51;" (assignment_expression "*puVar4 = 0x51" (pointer_expression "*puVar4" * identifier) = number_literal) ;) })) }))) (return_statement "return puVar4;" return identifier ;) })) (return_statement "return puVar4;" return identifier ;) })))
(translation_unit "int set_pt_file_handle(sg_pt_base *vp,int dev_fd,int verbose)\n\n{\n  undefined *puVar1;\n  _Bool _Var3;\n  undefined4 *puVar2;\n  undefined1 uVar4;\n  int iVar5;\n  int iVar6;\n  stat *dev_statp;\n  undefined *puVar7;\n  code *pcVar8;\n  stat a_stat;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  iVar6 = *(int *)PTR___stack_chk_guard_00054a4c;\n  dev_statp = (stat *)dev_fd;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(verbose);\n  }\n  (vp->impl).dev_fd = dev_fd;\n  if (dev_fd < 0) {\n    iVar5 = 0;\n    (vp->impl).is_sg = false;\n    (vp->impl).is_bsg = false;\n    (vp->impl).is_nvme = false;\n    (vp->impl).nvme_direct = false;\n    (vp->impl).nvme_nsid = 0;\n    (vp->impl).os_err = 0;\n  }\n  else {\n    dev_statp = &a_stat;\n    _Var3 = check_file_type(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,\n                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose);\n    iVar5 = (vp->impl).os_err;\n    (vp->impl).is_sg = _Var3;\n  }\n  if (iVar6 != *(int *)puVar7) {\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar2 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar2 == (undefined4 *)0x0) {\n      if (dev_statp != (stat *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return 0;\n      }\n    }\n    else {\n      iVar5 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar2 + 0x31);\n      if (*(char *)(iVar5 + 0x4b3a) == '\0') {\n        uVar4 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar5 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;\n      }\n      else {\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar2 + 0x31) = uVar4;\n      iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp);\n      if ((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')) {\n        puVar2[1] = 0;\n        puVar2[2] = 0;\n        *puVar2 = 0x51;\n      }\n    }\n    return (int)puVar2;\n  }\n  return iVar5;\n}\n\n" (function_definition "int set_pt_file_handle(sg_pt_base *vp,int dev_fd,int verbose)\n\n{\n  undefined *puVar1;\n  _Bool _Var3;\n  undefined4 *puVar2;\n  undefined1 uVar4;\n  int iVar5;\n  int iVar6;\n  stat *dev_statp;\n  undefined *puVar7;\n  code *pcVar8;\n  stat a_stat;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  iVar6 = *(int *)PTR___stack_chk_guard_00054a4c;\n  dev_statp = (stat *)dev_fd;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(verbose);\n  }\n  (vp->impl).dev_fd = dev_fd;\n  if (dev_fd < 0) {\n    iVar5 = 0;\n    (vp->impl).is_sg = false;\n    (vp->impl).is_bsg = false;\n    (vp->impl).is_nvme = false;\n    (vp->impl).nvme_direct = false;\n    (vp->impl).nvme_nsid = 0;\n    (vp->impl).os_err = 0;\n  }\n  else {\n    dev_statp = &a_stat;\n    _Var3 = check_file_type(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,\n                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose);\n    iVar5 = (vp->impl).os_err;\n    (vp->impl).is_sg = _Var3;\n  }\n  if (iVar6 != *(int *)puVar7) {\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar2 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar2 == (undefined4 *)0x0) {\n      if (dev_statp != (stat *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return 0;\n      }\n    }\n    else {\n      iVar5 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar2 + 0x31);\n      if (*(char *)(iVar5 + 0x4b3a) == '\0') {\n        uVar4 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar5 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;\n      }\n      else {\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar2 + 0x31) = uVar4;\n      iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp);\n      if ((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')) {\n        puVar2[1] = 0;\n        puVar2[2] = 0;\n        *puVar2 = 0x51;\n      }\n    }\n    return (int)puVar2;\n  }\n  return iVar5;\n}" primitive_type (function_declarator "set_pt_file_handle(sg_pt_base *vp,int dev_fd,int verbose)" identifier (parameter_list "(sg_pt_base *vp,int dev_fd,int verbose)" ( (parameter_declaration "sg_pt_base *vp" type_identifier (pointer_declarator "*vp" * identifier)) , (parameter_declaration "int dev_fd" primitive_type identifier) , (parameter_declaration "int verbose" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  _Bool _Var3;\n  undefined4 *puVar2;\n  undefined1 uVar4;\n  int iVar5;\n  int iVar6;\n  stat *dev_statp;\n  undefined *puVar7;\n  code *pcVar8;\n  stat a_stat;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  iVar6 = *(int *)PTR___stack_chk_guard_00054a4c;\n  dev_statp = (stat *)dev_fd;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(verbose);\n  }\n  (vp->impl).dev_fd = dev_fd;\n  if (dev_fd < 0) {\n    iVar5 = 0;\n    (vp->impl).is_sg = false;\n    (vp->impl).is_bsg = false;\n    (vp->impl).is_nvme = false;\n    (vp->impl).nvme_direct = false;\n    (vp->impl).nvme_nsid = 0;\n    (vp->impl).os_err = 0;\n  }\n  else {\n    dev_statp = &a_stat;\n    _Var3 = check_file_type(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,\n                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose);\n    iVar5 = (vp->impl).os_err;\n    (vp->impl).is_sg = _Var3;\n  }\n  if (iVar6 != *(int *)puVar7) {\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar2 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar2 == (undefined4 *)0x0) {\n      if (dev_statp != (stat *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return 0;\n      }\n    }\n    else {\n      iVar5 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar2 + 0x31);\n      if (*(char *)(iVar5 + 0x4b3a) == '\0') {\n        uVar4 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar5 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;\n      }\n      else {\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar2 + 0x31) = uVar4;\n      iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp);\n      if ((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')) {\n        puVar2[1] = 0;\n        puVar2[2] = 0;\n        *puVar2 = 0x51;\n      }\n    }\n    return (int)puVar2;\n  }\n  return iVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "_Bool _Var3;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "stat *dev_statp;" type_identifier (pointer_declarator "*dev_statp" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "stat a_stat;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;" (assignment_expression "puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_guard_00054a4c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_00054a4c" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)PTR___stack_chk_guard_00054a4c;" (assignment_expression "iVar6 = *(int *)PTR___stack_chk_guard_00054a4c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00054a4c" * (cast_expression "(int *)PTR___stack_chk_guard_00054a4c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "dev_statp = (stat *)dev_fd;" (assignment_expression "dev_statp = (stat *)dev_fd" identifier = (cast_expression "(stat *)dev_fd" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(verbose);\n  }" if (parenthesized_expression "(*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0')" ( (binary_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0'" (pointer_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(verbose);\n  }" { (expression_statement "*PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;" (assignment_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854 = 1" (pointer_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854" * identifier) = number_literal) ;) (expression_statement "(*(code *)puVar1)(verbose);" (call_expression "(*(code *)puVar1)(verbose)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(verbose)" ( identifier ))) ;) })) (expression_statement "(vp->impl).dev_fd = dev_fd;" (assignment_expression "(vp->impl).dev_fd = dev_fd" (field_expression "(vp->impl).dev_fd" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (dev_fd < 0) {\n    iVar5 = 0;\n    (vp->impl).is_sg = false;\n    (vp->impl).is_bsg = false;\n    (vp->impl).is_nvme = false;\n    (vp->impl).nvme_direct = false;\n    (vp->impl).nvme_nsid = 0;\n    (vp->impl).os_err = 0;\n  }\n  else {\n    dev_statp = &a_stat;\n    _Var3 = check_file_type(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,\n                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose);\n    iVar5 = (vp->impl).os_err;\n    (vp->impl).is_sg = _Var3;\n  }" if (parenthesized_expression "(dev_fd < 0)" ( (binary_expression "dev_fd < 0" identifier < number_literal) )) (compound_statement "{\n    iVar5 = 0;\n    (vp->impl).is_sg = false;\n    (vp->impl).is_bsg = false;\n    (vp->impl).is_nvme = false;\n    (vp->impl).nvme_direct = false;\n    (vp->impl).nvme_nsid = 0;\n    (vp->impl).os_err = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "(vp->impl).is_sg = false;" (assignment_expression "(vp->impl).is_sg = false" (field_expression "(vp->impl).is_sg" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) = false) ;) (expression_statement "(vp->impl).is_bsg = false;" (assignment_expression "(vp->impl).is_bsg = false" (field_expression "(vp->impl).is_bsg" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) = false) ;) (expression_statement "(vp->impl).is_nvme = false;" (assignment_expression "(vp->impl).is_nvme = false" (field_expression "(vp->impl).is_nvme" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) = false) ;) (expression_statement "(vp->impl).nvme_direct = false;" (assignment_expression "(vp->impl).nvme_direct = false" (field_expression "(vp->impl).nvme_direct" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) = false) ;) (expression_statement "(vp->impl).nvme_nsid = 0;" (assignment_expression "(vp->impl).nvme_nsid = 0" (field_expression "(vp->impl).nvme_nsid" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(vp->impl).os_err = 0;" (assignment_expression "(vp->impl).os_err = 0" (field_expression "(vp->impl).os_err" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) }) (else_clause "else {\n    dev_statp = &a_stat;\n    _Var3 = check_file_type(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,\n                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose);\n    iVar5 = (vp->impl).os_err;\n    (vp->impl).is_sg = _Var3;\n  }" else (compound_statement "{\n    dev_statp = &a_stat;\n    _Var3 = check_file_type(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,\n                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose);\n    iVar5 = (vp->impl).os_err;\n    (vp->impl).is_sg = _Var3;\n  }" { (expression_statement "dev_statp = &a_stat;" (assignment_expression "dev_statp = &a_stat" identifier = (pointer_expression "&a_stat" & identifier)) ;) (expression_statement "_Var3 = check_file_type(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,\n                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose);" (assignment_expression "_Var3 = check_file_type(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,\n                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose)" identifier = (call_expression "check_file_type(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,\n                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose)" identifier (argument_list "(dev_fd,dev_statp,&(vp->impl).is_bsg,&(vp->impl).is_nvme,\n                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose)" ( identifier , identifier , (pointer_expression "&(vp->impl).is_bsg" & (field_expression "(vp->impl).is_bsg" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier)) , (pointer_expression "&(vp->impl).is_nvme" & (field_expression "(vp->impl).is_nvme" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier)) , (pointer_expression "&(vp->impl).nvme_nsid" & (field_expression "(vp->impl).nvme_nsid" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier)) , (pointer_expression "&(vp->impl).os_err" & (field_expression "(vp->impl).os_err" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier)) , identifier )))) ;) (expression_statement "iVar5 = (vp->impl).os_err;" (assignment_expression "iVar5 = (vp->impl).os_err" identifier = (field_expression "(vp->impl).os_err" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(vp->impl).is_sg = _Var3;" (assignment_expression "(vp->impl).is_sg = _Var3" (field_expression "(vp->impl).is_sg" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }))) (if_statement "if (iVar6 != *(int *)puVar7) {\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar2 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar2 == (undefined4 *)0x0) {\n      if (dev_statp != (stat *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return 0;\n      }\n    }\n    else {\n      iVar5 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar2 + 0x31);\n      if (*(char *)(iVar5 + 0x4b3a) == '\0') {\n        uVar4 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar5 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;\n      }\n      else {\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar2 + 0x31) = uVar4;\n      iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp);\n      if ((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')) {\n        puVar2[1] = 0;\n        puVar2[2] = 0;\n        *puVar2 = 0x51;\n      }\n    }\n    return (int)puVar2;\n  }" if (parenthesized_expression "(iVar6 != *(int *)puVar7)" ( (binary_expression "iVar6 != *(int *)puVar7" identifier != (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar2 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar2 == (undefined4 *)0x0) {\n      if (dev_statp != (stat *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return 0;\n      }\n    }\n    else {\n      iVar5 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar2 + 0x31);\n      if (*(char *)(iVar5 + 0x4b3a) == '\0') {\n        uVar4 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar5 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;\n      }\n      else {\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar2 + 0x31) = uVar4;\n      iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp);\n      if ((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')) {\n        puVar2[1] = 0;\n        puVar2[2] = 0;\n        *puVar2 = 0x51;\n      }\n    }\n    return (int)puVar2;\n  }" { (expression_statement "puVar7 = PTR___stack_chk_fail_00054a1c;" (assignment_expression "puVar7 = PTR___stack_chk_fail_00054a1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00054a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00054a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00054a1c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00054a1c" * (cast_expression "(code *)PTR___stack_chk_fail_00054a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);" (assignment_expression "puVar2 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0)" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar7 + 0x26638))(1,0xe0)" (parenthesized_expression "(**(code **)(puVar7 + 0x26638))" ( (pointer_expression "**(code **)(puVar7 + 0x26638)" * (pointer_expression "*(code **)(puVar7 + 0x26638)" * (cast_expression "(code **)(puVar7 + 0x26638)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x26638)" ( (binary_expression "puVar7 + 0x26638" identifier + number_literal) ))))) )) (argument_list "(1,0xe0)" ( number_literal , number_literal ))))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      if (dev_statp != (stat *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return 0;\n      }\n    }\n    else {\n      iVar5 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar2 + 0x31);\n      if (*(char *)(iVar5 + 0x4b3a) == '\0') {\n        uVar4 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar5 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;\n      }\n      else {\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar2 + 0x31) = uVar4;\n      iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp);\n      if ((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')) {\n        puVar2[1] = 0;\n        puVar2[2] = 0;\n        *puVar2 = 0x51;\n      }\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (dev_statp != (stat *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return 0;\n      }\n    }" { (if_statement "if (dev_statp != (stat *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return 0;\n      }" if (parenthesized_expression "(dev_statp != (stat *)0x0)" ( (binary_expression "dev_statp != (stat *)0x0" identifier != (cast_expression "(stat *)0x0" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return 0;\n      }" { (expression_statement "(**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);" (call_expression "(**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c)" (parenthesized_expression "(**(code **)(puVar7 + 0x266c0))" ( (pointer_expression "**(code **)(puVar7 + 0x266c0)" * (pointer_expression "*(code **)(puVar7 + 0x266c0)" * (cast_expression "(code **)(puVar7 + 0x266c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x266c0)" ( (binary_expression "puVar7 + 0x266c0" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c)" ( (binary_expression "*(int *)(puVar7 + 0x26614) + -0xab8" (pointer_expression "*(int *)(puVar7 + 0x26614)" * (cast_expression "(int *)(puVar7 + 0x26614)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26614)" ( (binary_expression "puVar7 + 0x26614" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar7 + 0x26614) + -0x75c" (pointer_expression "*(int *)(puVar7 + 0x26614)" * (cast_expression "(int *)(puVar7 + 0x26614)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26614)" ( (binary_expression "puVar7 + 0x26614" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n      iVar5 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar2 + 0x31);\n      if (*(char *)(iVar5 + 0x4b3a) == '\0') {\n        uVar4 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar5 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;\n      }\n      else {\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar2 + 0x31) = uVar4;\n      iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp);\n      if ((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')) {\n        puVar2[1] = 0;\n        puVar2[2] = 0;\n        *puVar2 = 0x51;\n      }\n    }" else (compound_statement "{\n      iVar5 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar2 + 0x31);\n      if (*(char *)(iVar5 + 0x4b3a) == '\0') {\n        uVar4 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar5 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;\n      }\n      else {\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar2 + 0x31) = uVar4;\n      iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp);\n      if ((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')) {\n        puVar2[1] = 0;\n        puVar2[2] = 0;\n        *puVar2 = 0x51;\n      }\n    }" { (expression_statement "iVar5 = *(int *)(puVar7 + 0x26600);" (assignment_expression "iVar5 = *(int *)(puVar7 + 0x26600)" identifier = (pointer_expression "*(int *)(puVar7 + 0x26600)" * (cast_expression "(int *)(puVar7 + 0x26600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26600)" ( (binary_expression "puVar7 + 0x26600" identifier + number_literal) ))))) ;) (expression_statement "(**(code **)(puVar7 + 0x26840))(puVar2 + 0x31);" (call_expression "(**(code **)(puVar7 + 0x26840))(puVar2 + 0x31)" (parenthesized_expression "(**(code **)(puVar7 + 0x26840))" ( (pointer_expression "**(code **)(puVar7 + 0x26840)" * (pointer_expression "*(code **)(puVar7 + 0x26840)" * (cast_expression "(code **)(puVar7 + 0x26840)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x26840)" ( (binary_expression "puVar7 + 0x26840" identifier + number_literal) ))))) )) (argument_list "(puVar2 + 0x31)" ( (binary_expression "puVar2 + 0x31" identifier + number_literal) ))) ;) (if_statement "if (*(char *)(iVar5 + 0x4b3a) == '\0') {\n        uVar4 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar5 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;\n      }\n      else {\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" if (parenthesized_expression "(*(char *)(iVar5 + 0x4b3a) == '\0')" ( (binary_expression "*(char *)(iVar5 + 0x4b3a) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x4b3a)" * (cast_expression "(char *)(iVar5 + 0x4b3a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x4b3a)" ( (binary_expression "iVar5 + 0x4b3a" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        uVar4 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar5 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;\n      }" { (expression_statement "uVar4 = (**(code **)(puVar7 + 0x2677c))();" (assignment_expression "uVar4 = (**(code **)(puVar7 + 0x2677c))()" identifier = (call_expression "(**(code **)(puVar7 + 0x2677c))()" (parenthesized_expression "(**(code **)(puVar7 + 0x2677c))" ( (pointer_expression "**(code **)(puVar7 + 0x2677c)" * (pointer_expression "*(code **)(puVar7 + 0x2677c)" * (cast_expression "(code **)(puVar7 + 0x2677c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x2677c)" ( (binary_expression "puVar7 + 0x2677c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined1 *)(iVar5 + 0x4b3a) = 1;" (assignment_expression "*(undefined1 *)(iVar5 + 0x4b3a) = 1" (pointer_expression "*(undefined1 *)(iVar5 + 0x4b3a)" * (cast_expression "(undefined1 *)(iVar5 + 0x4b3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x4b3a)" ( (binary_expression "iVar5 + 0x4b3a" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4;" (assignment_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar4" (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" * (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (binary_expression "*(int *)(puVar7 + 0x26600) + 0x4b39" (pointer_expression "*(int *)(puVar7 + 0x26600)" * (cast_expression "(int *)(puVar7 + 0x26600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26600)" ( (binary_expression "puVar7 + 0x26600" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" else (compound_statement "{\n        uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" { (expression_statement "uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);" (assignment_expression "uVar4 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" identifier = (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" * (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (binary_expression "*(int *)(puVar7 + 0x26600) + 0x4b39" (pointer_expression "*(int *)(puVar7 + 0x26600)" * (cast_expression "(int *)(puVar7 + 0x26600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26600)" ( (binary_expression "puVar7 + 0x26600" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (expression_statement "pcVar8 = *(code **)(puVar7 + 0x26720);" (assignment_expression "pcVar8 = *(code **)(puVar7 + 0x26720)" identifier = (pointer_expression "*(code **)(puVar7 + 0x26720)" * (cast_expression "(code **)(puVar7 + 0x26720)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x26720)" ( (binary_expression "puVar7 + 0x26720" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(puVar2 + 0x31) = uVar4;" (assignment_expression "*(undefined1 *)(puVar2 + 0x31) = uVar4" (pointer_expression "*(undefined1 *)(puVar2 + 0x31)" * (cast_expression "(undefined1 *)(puVar2 + 0x31)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x31)" ( (binary_expression "puVar2 + 0x31" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp);" (assignment_expression "iVar6 = (*pcVar8)(puVar2,iVar6,dev_statp)" identifier = (call_expression "(*pcVar8)(puVar2,iVar6,dev_statp)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(puVar2,iVar6,dev_statp)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')) {\n        puVar2[1] = 0;\n        puVar2[2] = 0;\n        *puVar2 = 0x51;\n      }" if (parenthesized_expression "((iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0'))" ( (binary_expression "(iVar6 == 0) && (*(char *)((int)puVar2 + 0xa2) == '\0')" (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)((int)puVar2 + 0xa2) == '\0')" ( (binary_expression "*(char *)((int)puVar2 + 0xa2) == '\0'" (pointer_expression "*(char *)((int)puVar2 + 0xa2)" * (cast_expression "(char *)((int)puVar2 + 0xa2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 0xa2)" ( (binary_expression "(int)puVar2 + 0xa2" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        puVar2[1] = 0;\n        puVar2[2] = 0;\n        *puVar2 = 0x51;\n      }" { (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 0x51;" (assignment_expression "*puVar2 = 0x51" (pointer_expression "*puVar2" * identifier) = number_literal) ;) })) }))) (return_statement "return (int)puVar2;" return (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) ;) })) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "undefined4 * set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 uVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  undefined1 auStack_b8 [164];\n  int local_14;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  local_14 = *(int *)PTR___stack_chk_guard_00054a4c;\n  puVar5 = param_2;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }\n  *(undefined1 **)(param_1 + 0xa8) = param_2;\n  if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }\n  if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }\n  return puVar4;\n}\n\n" (function_definition "undefined4 * set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 uVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  undefined1 auStack_b8 [164];\n  int local_14;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  local_14 = *(int *)PTR___stack_chk_guard_00054a4c;\n  puVar5 = param_2;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }\n  *(undefined1 **)(param_1 + 0xa8) = param_2;\n  if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }\n  if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }\n  return puVar4;\n}" type_identifier (pointer_declarator "* set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)" * (function_declarator "set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined1 *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 uVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  undefined1 auStack_b8 [164];\n  int local_14;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  local_14 = *(int *)PTR___stack_chk_guard_00054a4c;\n  puVar5 = param_2;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }\n  *(undefined1 **)(param_1 + 0xa8) = param_2;\n  if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }\n  if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }\n  return puVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined1 auStack_b8 [164];" type_identifier (array_declarator "auStack_b8 [164]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;" (assignment_expression "puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_guard_00054a4c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_00054a4c" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00054a4c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00054a4c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00054a4c" * (cast_expression "(int *)PTR___stack_chk_guard_00054a4c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" identifier = identifier) ;) (if_statement "if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }" if (parenthesized_expression "(*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0')" ( (binary_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0'" (pointer_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }" { (expression_statement "*PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;" (assignment_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854 = 1" (pointer_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854" * identifier) = number_literal) ;) (expression_statement "(*(code *)puVar1)(param_3);" (call_expression "(*(code *)puVar1)(param_3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;) })) (expression_statement "*(undefined1 **)(param_1 + 0xa8) = param_2;" (assignment_expression "*(undefined1 **)(param_1 + 0xa8) = param_2" (pointer_expression "*(undefined1 **)(param_1 + 0xa8)" * (cast_expression "(undefined1 **)(param_1 + 0xa8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xa8)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }" if (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }" { (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0xa0) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xa0) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xa0)" * (cast_expression "(undefined4 *)(param_1 + 0xa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xb4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xb4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xb4)" * (cast_expression "(undefined4 *)(param_1 + 0xb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xb0) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xb0) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xb0)" * (cast_expression "(undefined4 *)(param_1 + 0xb0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }" else (compound_statement "{\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }" { (expression_statement "puVar5 = auStack_b8;" (assignment_expression "puVar5 = auStack_b8" identifier = identifier) ;) (expression_statement "uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);" (assignment_expression "uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3)" identifier = (call_expression "FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3)" identifier (argument_list "(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3)" ( identifier , identifier , (binary_expression "param_1 + 0xa1" identifier + number_literal) , (binary_expression "param_1 + 0xa2" identifier + number_literal) , (binary_expression "param_1 + 0xb4" identifier + number_literal) , (binary_expression "param_1 + 0xb0" identifier + number_literal) , identifier )))) ;) (expression_statement "puVar4 = *(undefined4 **)(param_1 + 0xb0);" (assignment_expression "puVar4 = *(undefined4 **)(param_1 + 0xb0)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xb0)" * (cast_expression "(undefined4 **)(param_1 + 0xb0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_1 + 0xa0) = uVar3;" (assignment_expression "*(undefined1 *)(param_1 + 0xa0) = uVar3" (pointer_expression "*(undefined1 *)(param_1 + 0xa0)" * (cast_expression "(undefined1 *)(param_1 + 0xa0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = identifier) ;) }))) (if_statement "if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar7)" ( (binary_expression "local_14 != *(int *)puVar7" identifier != (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }" { (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_fail_00054a1c;" (assignment_expression "puVar7 = PTR___stack_chk_fail_00054a1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00054a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00054a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00054a1c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00054a1c" * (cast_expression "(code *)PTR___stack_chk_fail_00054a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);" (assignment_expression "puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0)" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar7 + 0x26638))(1,0xe0)" (parenthesized_expression "(**(code **)(puVar7 + 0x26638))" ( (pointer_expression "**(code **)(puVar7 + 0x26638)" * (pointer_expression "*(code **)(puVar7 + 0x26638)" * (cast_expression "(code **)(puVar7 + 0x26638)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x26638)" ( (binary_expression "puVar7 + 0x26638" identifier + number_literal) ))))) )) (argument_list "(1,0xe0)" ( number_literal , number_literal ))))) ;) (if_statement "if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }" if (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" ( (binary_expression "puVar4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }" { (if_statement "if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }" if (parenthesized_expression "(puVar5 != (undefined1 *)0x0)" ( (binary_expression "puVar5 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }" { (expression_statement "(**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);" (call_expression "(**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c)" (parenthesized_expression "(**(code **)(puVar7 + 0x266c0))" ( (pointer_expression "**(code **)(puVar7 + 0x266c0)" * (pointer_expression "*(code **)(puVar7 + 0x266c0)" * (cast_expression "(code **)(puVar7 + 0x266c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x266c0)" ( (binary_expression "puVar7 + 0x266c0" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c)" ( (binary_expression "*(int *)(puVar7 + 0x26614) + -0xab8" (pointer_expression "*(int *)(puVar7 + 0x26614)" * (cast_expression "(int *)(puVar7 + 0x26614)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26614)" ( (binary_expression "puVar7 + 0x26614" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar7 + 0x26614) + -0x75c" (pointer_expression "*(int *)(puVar7 + 0x26614)" * (cast_expression "(int *)(puVar7 + 0x26614)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26614)" ( (binary_expression "puVar7 + 0x26614" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) (else_clause "else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }" else (compound_statement "{\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }" { (expression_statement "iVar6 = *(int *)(puVar7 + 0x26600);" (assignment_expression "iVar6 = *(int *)(puVar7 + 0x26600)" identifier = (pointer_expression "*(int *)(puVar7 + 0x26600)" * (cast_expression "(int *)(puVar7 + 0x26600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26600)" ( (binary_expression "puVar7 + 0x26600" identifier + number_literal) ))))) ;) (expression_statement "(**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);" (call_expression "(**(code **)(puVar7 + 0x26840))(puVar4 + 0x31)" (parenthesized_expression "(**(code **)(puVar7 + 0x26840))" ( (pointer_expression "**(code **)(puVar7 + 0x26840)" * (pointer_expression "*(code **)(puVar7 + 0x26840)" * (cast_expression "(code **)(puVar7 + 0x26840)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x26840)" ( (binary_expression "puVar7 + 0x26840" identifier + number_literal) ))))) )) (argument_list "(puVar4 + 0x31)" ( (binary_expression "puVar4 + 0x31" identifier + number_literal) ))) ;) (if_statement "if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" if (parenthesized_expression "(*(char *)(iVar6 + 0x4b3a) == '\0')" ( (binary_expression "*(char *)(iVar6 + 0x4b3a) == '\0'" (pointer_expression "*(char *)(iVar6 + 0x4b3a)" * (cast_expression "(char *)(iVar6 + 0x4b3a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x4b3a)" ( (binary_expression "iVar6 + 0x4b3a" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }" { (expression_statement "uVar3 = (**(code **)(puVar7 + 0x2677c))();" (assignment_expression "uVar3 = (**(code **)(puVar7 + 0x2677c))()" identifier = (call_expression "(**(code **)(puVar7 + 0x2677c))()" (parenthesized_expression "(**(code **)(puVar7 + 0x2677c))" ( (pointer_expression "**(code **)(puVar7 + 0x2677c)" * (pointer_expression "*(code **)(puVar7 + 0x2677c)" * (cast_expression "(code **)(puVar7 + 0x2677c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x2677c)" ( (binary_expression "puVar7 + 0x2677c" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined1 *)(iVar6 + 0x4b3a) = 1;" (assignment_expression "*(undefined1 *)(iVar6 + 0x4b3a) = 1" (pointer_expression "*(undefined1 *)(iVar6 + 0x4b3a)" * (cast_expression "(undefined1 *)(iVar6 + 0x4b3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x4b3a)" ( (binary_expression "iVar6 + 0x4b3a" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;" (assignment_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3" (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" * (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (binary_expression "*(int *)(puVar7 + 0x26600) + 0x4b39" (pointer_expression "*(int *)(puVar7 + 0x26600)" * (cast_expression "(int *)(puVar7 + 0x26600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26600)" ( (binary_expression "puVar7 + 0x26600" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" else (compound_statement "{\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" { (expression_statement "uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);" (assignment_expression "uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" identifier = (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" * (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x26600) + 0x4b39)" ( (binary_expression "*(int *)(puVar7 + 0x26600) + 0x4b39" (pointer_expression "*(int *)(puVar7 + 0x26600)" * (cast_expression "(int *)(puVar7 + 0x26600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x26600)" ( (binary_expression "puVar7 + 0x26600" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (expression_statement "pcVar8 = *(code **)(puVar7 + 0x26720);" (assignment_expression "pcVar8 = *(code **)(puVar7 + 0x26720)" identifier = (pointer_expression "*(code **)(puVar7 + 0x26720)" * (cast_expression "(code **)(puVar7 + 0x26720)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x26720)" ( (binary_expression "puVar7 + 0x26720" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(puVar4 + 0x31) = uVar3;" (assignment_expression "*(undefined1 *)(puVar4 + 0x31) = uVar3" (pointer_expression "*(undefined1 *)(puVar4 + 0x31)" * (cast_expression "(undefined1 *)(puVar4 + 0x31)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x31)" ( (binary_expression "puVar4 + 0x31" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);" (assignment_expression "iVar2 = (*pcVar8)(puVar4,iVar2,puVar5)" identifier = (call_expression "(*pcVar8)(puVar4,iVar2,puVar5)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(puVar4,iVar2,puVar5)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }" if (parenthesized_expression "((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0'))" ( (binary_expression "(iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)((int)puVar4 + 0xa2) == '\0')" ( (binary_expression "*(char *)((int)puVar4 + 0xa2) == '\0'" (pointer_expression "*(char *)((int)puVar4 + 0xa2)" * (cast_expression "(char *)((int)puVar4 + 0xa2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 0xa2)" ( (binary_expression "(int)puVar4 + 0xa2" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }" { (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar4 = 0x51;" (assignment_expression "*puVar4 = 0x51" (pointer_expression "*puVar4" * identifier) = number_literal) ;) })) }))) (return_statement "return puVar4;" return identifier ;) })) (return_statement "return puVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_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 (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (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 != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) }))) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 uVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  undefined1 auStack_b8 [164];\n  int local_14;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  local_14 = *(int *)PTR___stack_chk_guard_00054a4c;\n  puVar5 = param_2;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }\n  *(undefined1 **)(param_1 + 0xa8) = param_2;\n  if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }\n  if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }\n  return puVar4;\n}" (type_identifier "undefined4") (pointer_declarator "* set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)" (* "*") (function_declarator "set_pt_file_handle(int param_1,undefined1 *param_2,undefined4 param_3)" (identifier "set_pt_file_handle") (parameter_list "(int param_1,undefined1 *param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 uVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  code *pcVar8;\n  undefined1 auStack_b8 [164];\n  int local_14;\n  \n  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;\n  puVar7 = PTR___stack_chk_guard_00054a4c;\n  local_14 = *(int *)PTR___stack_chk_guard_00054a4c;\n  puVar5 = param_2;\n  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }\n  *(undefined1 **)(param_1 + 0xa8) = param_2;\n  if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }\n  if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }\n  return puVar4;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 uVar3;" (type_identifier "undefined1") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "code *pcVar8;" (type_identifier "code") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "undefined1 auStack_b8 [164];" (type_identifier "undefined1") (array_declarator "auStack_b8 [164]" (identifier "auStack_b8") ([ "[") (number_literal "164") (] "]")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;" (assignment_expression "puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78" (identifier "puVar1") (= "=") (identifier "PTR_sg_find_bsg_nvme_char_major_00054a78")) (; ";")) (expression_statement "puVar7 = PTR___stack_chk_guard_00054a4c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_00054a4c" (identifier "puVar7") (= "=") (identifier "PTR___stack_chk_guard_00054a4c")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00054a4c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00054a4c" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00054a4c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00054a4c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00054a4c")))) (; ";")) (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" (identifier "puVar5") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }" (if "if") (parenthesized_expression "(*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0')" (( "(") (binary_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0'" (pointer_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854" (* "*") (identifier "PTR_sg_bsg_nvme_char_major_checked_00054854")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;\n    (*(code *)puVar1)(param_3);\n  }" ({ "{") (expression_statement "*PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;" (assignment_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854 = 1" (pointer_expression "*PTR_sg_bsg_nvme_char_major_checked_00054854" (* "*") (identifier "PTR_sg_bsg_nvme_char_major_checked_00054854")) (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)puVar1)(param_3);" (call_expression "(*(code *)puVar1)(param_3)" (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 "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined1 **)(param_1 + 0xa8) = param_2;" (assignment_expression "*(undefined1 **)(param_1 + 0xa8) = param_2" (pointer_expression "*(undefined1 **)(param_1 + 0xa8)" (* "*") (cast_expression "(undefined1 **)(param_1 + 0xa8)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xa8)" (( "(") (binary_expression "param_1 + 0xa8" (identifier "param_1") (+ "+") (number_literal "0xa8")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((int)param_2 < 0) {\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }\n  else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }" (if "if") (parenthesized_expression "((int)param_2 < 0)" (( "(") (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    puVar4 = (undefined4 *)0x0;\n    *(undefined4 *)(param_1 + 0xa0) = 0;\n    *(undefined4 *)(param_1 + 0xb4) = 0;\n    *(undefined4 *)(param_1 + 0xb0) = 0;\n  }" ({ "{") (expression_statement "puVar4 = (undefined4 *)0x0;" (assignment_expression "puVar4 = (undefined4 *)0x0" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xa0) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xa0) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xb4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xb4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xb4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xb4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb4)" (( "(") (binary_expression "param_1 + 0xb4" (identifier "param_1") (+ "+") (number_literal "0xb4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xb0) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xb0) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xb0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xb0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb0)" (( "(") (binary_expression "param_1 + 0xb0" (identifier "param_1") (+ "+") (number_literal "0xb0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }" (else "else") (compound_statement "{\n    puVar5 = auStack_b8;\n    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);\n    puVar4 = *(undefined4 **)(param_1 + 0xb0);\n    *(undefined1 *)(param_1 + 0xa0) = uVar3;\n  }" ({ "{") (expression_statement "puVar5 = auStack_b8;" (assignment_expression "puVar5 = auStack_b8" (identifier "puVar5") (= "=") (identifier "auStack_b8")) (; ";")) (expression_statement "uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3);" (assignment_expression "uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3)" (identifier "uVar3") (= "=") (call_expression "FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3)" (identifier "FUN_0002d280") (argument_list "(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,\n                         param_3)" (( "(") (identifier "param_2") (, ",") (identifier "puVar5") (, ",") (binary_expression "param_1 + 0xa1" (identifier "param_1") (+ "+") (number_literal "0xa1")) (, ",") (binary_expression "param_1 + 0xa2" (identifier "param_1") (+ "+") (number_literal "0xa2")) (, ",") (binary_expression "param_1 + 0xb4" (identifier "param_1") (+ "+") (number_literal "0xb4")) (, ",") (binary_expression "param_1 + 0xb0" (identifier "param_1") (+ "+") (number_literal "0xb0")) (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "puVar4 = *(undefined4 **)(param_1 + 0xb0);" (assignment_expression "puVar4 = *(undefined4 **)(param_1 + 0xb0)" (identifier "puVar4") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0xb0)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xb0)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xb0)" (( "(") (binary_expression "param_1 + 0xb0" (identifier "param_1") (+ "+") (number_literal "0xb0")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0xa0) = uVar3;" (assignment_expression "*(undefined1 *)(param_1 + 0xa0) = uVar3" (pointer_expression "*(undefined1 *)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")))) (if_statement "if (local_14 != *(int *)puVar7) {\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }" (if "if") (parenthesized_expression "(local_14 != *(int *)puVar7)" (( "(") (binary_expression "local_14 != *(int *)puVar7" (identifier "local_14") (!= "!=") (pointer_expression "*(int *)puVar7" (* "*") (cast_expression "(int *)puVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar7")))) () ")")) (compound_statement "{\n    iVar2 = local_14;\n    puVar7 = PTR___stack_chk_fail_00054a1c;\n    (*(code *)PTR___stack_chk_fail_00054a1c)();\n    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);\n    if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }\n    return puVar4;\n  }" ({ "{") (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" (identifier "iVar2") (= "=") (identifier "local_14")) (; ";")) (expression_statement "puVar7 = PTR___stack_chk_fail_00054a1c;" (assignment_expression "puVar7 = PTR___stack_chk_fail_00054a1c" (identifier "puVar7") (= "=") (identifier "PTR___stack_chk_fail_00054a1c")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00054a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00054a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00054a1c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00054a1c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00054a1c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00054a1c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);" (assignment_expression "puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar7 + 0x26638))(1,0xe0)" (parenthesized_expression "(**(code **)(puVar7 + 0x26638))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x26638)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x26638)" (* "*") (cast_expression "(code **)(puVar7 + 0x26638)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x26638)" (( "(") (binary_expression "puVar7 + 0x26638" (identifier "puVar7") (+ "+") (number_literal "0x26638")) () ")"))))) () ")")) (argument_list "(1,0xe0)" (( "(") (number_literal "1") (, ",") (number_literal "0xe0") () ")"))))) (; ";")) (if_statement "if (puVar4 == (undefined4 *)0x0) {\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }\n    else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }" (if "if") (parenthesized_expression "(puVar4 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar4 == (undefined4 *)0x0" (identifier "puVar4") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }\n    }" ({ "{") (if_statement "if (puVar5 != (undefined1 *)0x0) {\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }" (if "if") (parenthesized_expression "(puVar5 != (undefined1 *)0x0)" (( "(") (binary_expression "puVar5 != (undefined1 *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        (**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);\n        return (undefined4 *)0x0;\n      }" ({ "{") (expression_statement "(**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);" (call_expression "(**(code **)(puVar7 + 0x266c0))\n                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c)" (parenthesized_expression "(**(code **)(puVar7 + 0x266c0))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x266c0)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x266c0)" (* "*") (cast_expression "(code **)(puVar7 + 0x266c0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x266c0)" (( "(") (binary_expression "puVar7 + 0x266c0" (identifier "puVar7") (+ "+") (number_literal "0x266c0")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c)" (( "(") (binary_expression "*(int *)(puVar7 + 0x26614) + -0xab8" (pointer_expression "*(int *)(puVar7 + 0x26614)" (* "*") (cast_expression "(int *)(puVar7 + 0x26614)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x26614)" (( "(") (binary_expression "puVar7 + 0x26614" (identifier "puVar7") (+ "+") (number_literal "0x26614")) () ")")))) (+ "+") (number_literal "-0xab8")) (, ",") (binary_expression "*(int *)(puVar7 + 0x26614) + -0x75c" (pointer_expression "*(int *)(puVar7 + 0x26614)" (* "*") (cast_expression "(int *)(puVar7 + 0x26614)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x26614)" (( "(") (binary_expression "puVar7 + 0x26614" (identifier "puVar7") (+ "+") (number_literal "0x26614")) () ")")))) (+ "+") (number_literal "-0x75c")) () ")"))) (; ";")) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }" (else "else") (compound_statement "{\n      iVar6 = *(int *)(puVar7 + 0x26600);\n      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);\n      if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }\n      pcVar8 = *(code **)(puVar7 + 0x26720);\n      *(undefined1 *)(puVar4 + 0x31) = uVar3;\n      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);\n      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }\n    }" ({ "{") (expression_statement "iVar6 = *(int *)(puVar7 + 0x26600);" (assignment_expression "iVar6 = *(int *)(puVar7 + 0x26600)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(puVar7 + 0x26600)" (* "*") (cast_expression "(int *)(puVar7 + 0x26600)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x26600)" (( "(") (binary_expression "puVar7 + 0x26600" (identifier "puVar7") (+ "+") (number_literal "0x26600")) () ")"))))) (; ";")) (expression_statement "(**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);" (call_expression "(**(code **)(puVar7 + 0x26840))(puVar4 + 0x31)" (parenthesized_expression "(**(code **)(puVar7 + 0x26840))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x26840)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x26840)" (* "*") (cast_expression "(code **)(puVar7 + 0x26840)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x26840)" (( "(") (binary_expression "puVar7 + 0x26840" (identifier "puVar7") (+ "+") (number_literal "0x26840")) () ")"))))) () ")")) (argument_list "(puVar4 + 0x31)" (( "(") (binary_expression "puVar4 + 0x31" (identifier "puVar4") (+ "+") (number_literal "0x31")) () ")"))) (; ";")) (if_statement "if (*(char *)(iVar6 + 0x4b3a) == '\0') {\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }\n      else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" (if "if") (parenthesized_expression "(*(char *)(iVar6 + 0x4b3a) == '\0')" (( "(") (binary_expression "*(char *)(iVar6 + 0x4b3a) == '\0'" (pointer_expression "*(char *)(iVar6 + 0x4b3a)" (* "*") (cast_expression "(char *)(iVar6 + 0x4b3a)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x4b3a)" (( "(") (binary_expression "iVar6 + 0x4b3a" (identifier "iVar6") (+ "+") (number_literal "0x4b3a")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        uVar3 = (**(code **)(puVar7 + 0x2677c))();\n        *(undefined1 *)(iVar6 + 0x4b3a) = 1;\n        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;\n      }" ({ "{") (expression_statement "uVar3 = (**(code **)(puVar7 + 0x2677c))();" (assignment_expression "uVar3 = (**(code **)(puVar7 + 0x2677c))()" (identifier "uVar3") (= "=") (call_expression "(**(code **)(puVar7 + 0x2677c))()" (parenthesized_expression "(**(code **)(puVar7 + 0x2677c))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x2677c)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x2677c)" (* "*") (cast_expression "(code **)(puVar7 + 0x2677c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x2677c)" (( "(") (binary_expression "puVar7 + 0x2677c" (identifier "puVar7") (+ "+") (number_literal "0x2677c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(iVar6 + 0x4b3a) = 1;" (assignment_expression "*(undefined1 *)(iVar6 + 0x4b3a) = 1" (pointer_expression "*(undefined1 *)(iVar6 + 0x4b3a)" (* "*") (cast_expression "(undefined1 *)(iVar6 + 0x4b3a)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x4b3a)" (( "(") (binary_expression "iVar6 + 0x4b3a" (identifier "iVar6") (+ "+") (number_literal "0x4b3a")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;" (assignment_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3" (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" (* "*") (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar7 + 0x26600) + 0x4b39)" (( "(") (binary_expression "*(int *)(puVar7 + 0x26600) + 0x4b39" (pointer_expression "*(int *)(puVar7 + 0x26600)" (* "*") (cast_expression "(int *)(puVar7 + 0x26600)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x26600)" (( "(") (binary_expression "puVar7 + 0x26600" (identifier "puVar7") (+ "+") (number_literal "0x26600")) () ")")))) (+ "+") (number_literal "0x4b39")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (else_clause "else {\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" (else "else") (compound_statement "{\n        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);\n      }" ({ "{") (expression_statement "uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);" (assignment_expression "uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" (* "*") (cast_expression "(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar7 + 0x26600) + 0x4b39)" (( "(") (binary_expression "*(int *)(puVar7 + 0x26600) + 0x4b39" (pointer_expression "*(int *)(puVar7 + 0x26600)" (* "*") (cast_expression "(int *)(puVar7 + 0x26600)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x26600)" (( "(") (binary_expression "puVar7 + 0x26600" (identifier "puVar7") (+ "+") (number_literal "0x26600")) () ")")))) (+ "+") (number_literal "0x4b39")) () ")"))))) (; ";")) (} "}")))) (expression_statement "pcVar8 = *(code **)(puVar7 + 0x26720);" (assignment_expression "pcVar8 = *(code **)(puVar7 + 0x26720)" (identifier "pcVar8") (= "=") (pointer_expression "*(code **)(puVar7 + 0x26720)" (* "*") (cast_expression "(code **)(puVar7 + 0x26720)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x26720)" (( "(") (binary_expression "puVar7 + 0x26720" (identifier "puVar7") (+ "+") (number_literal "0x26720")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(puVar4 + 0x31) = uVar3;" (assignment_expression "*(undefined1 *)(puVar4 + 0x31) = uVar3" (pointer_expression "*(undefined1 *)(puVar4 + 0x31)" (* "*") (cast_expression "(undefined1 *)(puVar4 + 0x31)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x31)" (( "(") (binary_expression "puVar4 + 0x31" (identifier "puVar4") (+ "+") (number_literal "0x31")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);" (assignment_expression "iVar2 = (*pcVar8)(puVar4,iVar2,puVar5)" (identifier "iVar2") (= "=") (call_expression "(*pcVar8)(puVar4,iVar2,puVar5)" (parenthesized_expression "(*pcVar8)" (( "(") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) () ")")) (argument_list "(puVar4,iVar2,puVar5)" (( "(") (identifier "puVar4") (, ",") (identifier "iVar2") (, ",") (identifier "puVar5") () ")")))) (; ";")) (if_statement "if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }" (if "if") (parenthesized_expression "((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0'))" (( "(") (binary_expression "(iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)((int)puVar4 + 0xa2) == '\0')" (( "(") (binary_expression "*(char *)((int)puVar4 + 0xa2) == '\0'" (pointer_expression "*(char *)((int)puVar4 + 0xa2)" (* "*") (cast_expression "(char *)((int)puVar4 + 0xa2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + 0xa2)" (( "(") (binary_expression "(int)puVar4 + 0xa2" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "0xa2")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        puVar4[1] = 0;\n        puVar4[2] = 0;\n        *puVar4 = 0x51;\n      }" ({ "{") (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4[2] = 0;" (assignment_expression "puVar4[2] = 0" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar4 = 0x51;" (assignment_expression "*puVar4 = 0x51" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0x51")) (; ";")) (} "}"))) (} "}")))) (return_statement "return puVar4;" (return "return") (identifier "puVar4") (; ";")) (} "}"))) (return_statement "return puVar4;" (return "return") (identifier "puVar4") (; ";")) (} "}")))

int function_1(type_1 *vp,int var_1,int verbose)

{
  type_2 *puVar1;
  type_3 _Var3;
  type_4 *var_5;
  type_5 uVar4;
  int var_7;
  int var_3;
  type_6 *var_6;
  type_2 *var_4;
  type_7 *pcVar8;
  type_6 a_stat;
  
  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;
  var_4 = PTR___stack_chk_guard_00054a4c;
  var_3 = *(int *)PTR___stack_chk_guard_00054a4c;
  var_6 = (type_6 *)var_1;
  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {
    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;
    (*(type_7 *)puVar1)(verbose);
  }
  (vp->impl).var_1 = var_1;
  if (var_1 < 0) {
    var_7 = 0;
    (vp->impl).is_sg = false;
    (vp->impl).is_bsg = false;
    (vp->impl).is_nvme = false;
    (vp->impl).nvme_direct = false;
    (vp->impl).nvme_nsid = 0;
    (vp->impl).os_err = 0;
  }
  else {
    var_6 = &a_stat;
    _Var3 = var_2(var_1,var_6,&(vp->impl).is_bsg,&(vp->impl).is_nvme,
                            &(vp->impl).nvme_nsid,&(vp->impl).os_err,verbose);
    var_7 = (vp->impl).os_err;
    (vp->impl).is_sg = _Var3;
  }
  if (var_3 != *(int *)var_4) {
    var_4 = PTR___stack_chk_fail_00054a1c;
    (*(type_7 *)PTR___stack_chk_fail_00054a1c)();
    var_5 = (type_4 *)(**(type_7 **)(var_4 + 0x26638))(1,0xe0);
    if (var_5 == (type_4 *)0x0) {
      if (var_6 != (type_6 *)0x0) {
        (**(type_7 **)(var_4 + 0x266c0))
                  (*(int *)(var_4 + 0x26614) + -0xab8,*(int *)(var_4 + 0x26614) + -0x75c);
        return 0;
      }
    }
    else {
      var_7 = *(int *)(var_4 + 0x26600);
      (**(type_7 **)(var_4 + 0x26840))(var_5 + 0x31);
      if (*(char *)(var_7 + 0x4b3a) == '\0') {
        uVar4 = (**(type_7 **)(var_4 + 0x2677c))();
        *(type_5 *)(var_7 + 0x4b3a) = 1;
        *(type_5 *)(*(int *)(var_4 + 0x26600) + 0x4b39) = uVar4;
      }
      else {
        uVar4 = *(type_5 *)(*(int *)(var_4 + 0x26600) + 0x4b39);
      }
      pcVar8 = *(type_7 **)(var_4 + 0x26720);
      *(type_5 *)(var_5 + 0x31) = uVar4;
      var_3 = (*pcVar8)(var_5,var_3,var_6);
      if ((var_3 == 0) && (*(char *)((int)var_5 + 0xa2) == '\0')) {
        var_5[1] = 0;
        var_5[2] = 0;
        *var_5 = 0x51;
      }
    }
    return (int)var_5;
  }
  return var_7;
}


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

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

{
  undefined *puVar1;
  int iVar2;
  undefined1 uVar3;
  undefined4 *puVar4;
  undefined1 *puVar5;
  int iVar6;
  undefined *puVar7;
  code *pcVar8;
  undefined1 auStack_b8 [164];
  int local_14;
  
  puVar1 = PTR_sg_find_bsg_nvme_char_major_00054a78;
  puVar7 = PTR___stack_chk_guard_00054a4c;
  local_14 = *(int *)PTR___stack_chk_guard_00054a4c;
  puVar5 = param_2;
  if (*PTR_sg_bsg_nvme_char_major_checked_00054854 == '\0') {
    *PTR_sg_bsg_nvme_char_major_checked_00054854 = 1;
    (*(code *)puVar1)(param_3);
  }
  *(undefined1 **)(param_1 + 0xa8) = param_2;
  if ((int)param_2 < 0) {
    puVar4 = (undefined4 *)0x0;
    *(undefined4 *)(param_1 + 0xa0) = 0;
    *(undefined4 *)(param_1 + 0xb4) = 0;
    *(undefined4 *)(param_1 + 0xb0) = 0;
  }
  else {
    puVar5 = auStack_b8;
    uVar3 = FUN_0002d280(param_2,puVar5,param_1 + 0xa1,param_1 + 0xa2,param_1 + 0xb4,param_1 + 0xb0,
                         param_3);
    puVar4 = *(undefined4 **)(param_1 + 0xb0);
    *(undefined1 *)(param_1 + 0xa0) = uVar3;
  }
  if (local_14 != *(int *)puVar7) {
    iVar2 = local_14;
    puVar7 = PTR___stack_chk_fail_00054a1c;
    (*(code *)PTR___stack_chk_fail_00054a1c)();
    puVar4 = (undefined4 *)(**(code **)(puVar7 + 0x26638))(1,0xe0);
    if (puVar4 == (undefined4 *)0x0) {
      if (puVar5 != (undefined1 *)0x0) {
        (**(code **)(puVar7 + 0x266c0))
                  (*(int *)(puVar7 + 0x26614) + -0xab8,*(int *)(puVar7 + 0x26614) + -0x75c);
        return (undefined4 *)0x0;
      }
    }
    else {
      iVar6 = *(int *)(puVar7 + 0x26600);
      (**(code **)(puVar7 + 0x26840))(puVar4 + 0x31);
      if (*(char *)(iVar6 + 0x4b3a) == '\0') {
        uVar3 = (**(code **)(puVar7 + 0x2677c))();
        *(undefined1 *)(iVar6 + 0x4b3a) = 1;
        *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39) = uVar3;
      }
      else {
        uVar3 = *(undefined1 *)(*(int *)(puVar7 + 0x26600) + 0x4b39);
      }
      pcVar8 = *(code **)(puVar7 + 0x26720);
      *(undefined1 *)(puVar4 + 0x31) = uVar3;
      iVar2 = (*pcVar8)(puVar4,iVar2,puVar5);
      if ((iVar2 == 0) && (*(char *)((int)puVar4 + 0xa2) == '\0')) {
        puVar4[1] = 0;
        puVar4[2] = 0;
        *puVar4 = 0x51;
      }
    }
    return puVar4;
  }
  return puVar4;
}

