
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void ssh2_setup_x11(ssh_channel *c,Packet *pktin,void *ctx)

{
  int *ctx_00;
  Packet *pPVar1;
  Ssh_conflict psVar2;
  undefined *puVar3;
  undefined1 uStack_1d;
  int iStack_1c;
  
  puVar3 = PTR___stack_chk_guard_000b0c9c;
  iStack_1c = *(int *)PTR___stack_chk_guard_000b0c9c;
  psVar2 = c->ssh;
  if (ctx == (void *)0x0) {
    ctx = (void *)(*(code *)PTR_safemalloc_000b01e8)(1,4);
    *(undefined4 *)ctx = 0;
  }
  else {
                    /* WARNING: Load size is inaccurate */
    if (*ctx != 0) {
      ctx_00 = (int *)ctx;
      if ((*ctx == 0x235f) && (pktin != (Packet *)0x0)) {
        if (pktin->type == 99) {
          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);
          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);
          psVar2->X11_fwd_enabled = 1;
        }
        else {
          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);
          (*(code *)PTR_logevent_000b020c)();
        }
      }
      (*(code *)PTR_safefree_000b01b0)();
      if (iStack_1c == *(int *)puVar3) {
        return;
      }
      puVar3 = PTR___stack_chk_fail_000b0c70;
      (*(code *)PTR___stack_chk_fail_000b0c70)();
                    /* WARNING: Load size is inaccurate */
      psVar2 = *ctx;
      if (ctx_00 == (int *)0x0) {
        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);
        *ctx_00 = 0;
      }
      else if (*ctx_00 != 0) {
        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {
          if (pktin->type == 99) {
            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);
            psVar2->agentfwd_enabled = 1;
          }
          else {
            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);
          }
        }
                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
        (**(code **)(puVar3 + 0x69a68))(ctx_00);
        return;
      }
      (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4);
      pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),
                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00);
      ssh2_pkt_send(psVar2,pPVar1);
      *ctx_00 = 0x237f;
      return;
    }
  }
  (*(code *)PTR_logevent_000b020c)(psVar2->frontend,PTR_s_Present_000b0188 + 0x4280);
  pPVar1 = ssh2_chanreq_init(psVar2->mainchan,PTR_s_Present_000b0188 + 0x429c,
                             (cchandler_fn_t)(PTR_LAB_000b0644 + 0x656c),ctx);
  uStack_1d = 0;
                    /* WARNING: Subroutine does not return */
  ssh_pkt_adddata(pPVar1,&uStack_1d,1);
}



void FUN_0004656c(undefined4 *param_1,undefined *param_2,int *param_3)

{
  int *piVar1;
  undefined4 uVar2;
  int *piVar3;
  int iVar4;
  undefined *puVar5;
  undefined1 local_1d;
  int local_1c;
  
  puVar5 = PTR___stack_chk_guard_000b0c9c;
  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;
  piVar3 = (int *)*param_1;
  if (param_3 == (int *)0x0) {
    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);
    *param_3 = 0;
  }
  else if (*param_3 != 0) {
    piVar1 = param_3;
    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {
      if (*(int *)(param_2 + 8) == 99) {
        param_2 = PTR_s_Present_000b0188 + 0x42a4;
        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);
        piVar3[0x13] = 1;
      }
      else {
        param_2 = PTR_s_Present_000b0188 + 0x42bc;
        (*(code *)PTR_logevent_000b020c)();
      }
    }
    (*(code *)PTR_safefree_000b01b0)();
    piVar3 = param_3;
    goto LAB_000465d8;
  }
  (*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);
  param_2 = (undefined *)
            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,
                         param_3);
  piVar1 = (int *)0x1;
  local_1d = 0;
  FUN_0003a494(param_2,&local_1d);
  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));
  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));
  FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));
  FUN_00045998();
  *param_3 = 0x235f;
LAB_000465d8:
  if (local_1c == *(int *)puVar5) {
    return;
  }
  puVar5 = PTR___stack_chk_fail_000b0c70;
  (*(code *)PTR___stack_chk_fail_000b0c70)();
  iVar4 = *piVar3;
  if (piVar1 == (int *)0x0) {
    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);
    *piVar1 = 0;
  }
  else if (*piVar1 != 0) {
    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {
      if (*(int *)(param_2 + 8) == 99) {
        (**(code **)(puVar5 + 0x69ac4))
                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);
        *(undefined4 *)(iVar4 + 0x48) = 1;
      }
      else {
        (**(code **)(puVar5 + 0x69ac4))
                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);
      }
    }
                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(puVar5 + 0x69a68))(piVar1);
    return;
  }
  (**(code **)(puVar5 + 0x69ac4))
            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);
  uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,
                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);
  FUN_00045998(iVar4,uVar2);
  *piVar1 = 0x237f;
  return;
}


lui gp,0x7
addiu gp,gp,0x1be4
addu gp,gp,t9
addiu sp,sp,-0x38
sw s2,0x28(sp)
lw s2,-0x74b4(gp)
sw gp,0x10(sp)
sw s1,0x24(sp)
sw ra,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s0,0x20(sp)
lw v0,0x0(s2)
lw s1,0x0(a0)
sw v0,0x1c(sp)
beq a2,zero,0x00046630
_lw t9,-0x7f68(gp)
lw v0,0x0(a2)
beq v0,zero,0x00046648
_or s0,a2,zero
li v1,0x235f
beq v0,v1,0x00046604
_nop
lw t9,-0x7fa0(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw v1,0x1c(sp)
lw v0,0x0(s2)
bne v1,v0,0x0004673c
_lw ra,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
beq a1,zero,0x000465c8
_li v0,0x63
lw v1,0x8(a1)
lw a0,0x110(s1)
beq v1,v0,0x00046720
_lw t9,-0x7f44(gp)
lw a1,-0x7fc8(gp)
jalr t9
_addiu a1,a1,0x42bc
b 0x000465c8
_lw gp,0x10(sp)
li a1,0x4
jalr t9
_li a0,0x1
lw gp,0x10(sp)
or s0,v0,zero
sw zero,0x0(v0)
lw a1,-0x7fc8(gp)
lw t9,-0x7f44(gp)
lw a0,0x110(s1)
jalr t9
_addiu a1,a1,0x4280
or a3,s0,zero
lw gp,0x10(sp)
lw a0,0x128(s1)
lw a2,-0x7b0c(gp)
lw a1,-0x7fc8(gp)
lw t9,-0x7b0c(gp)
addiu a2,a2,0x656c
addiu t9,t9,-0x46e0
bal 0x0003b920
_addiu a1,a1,0x429c
li a2,0x1
lw gp,0x10(sp)
addiu a1,sp,0x1b
or a0,v0,zero
sb zero,0x1b(sp)
lw t9,-0x7b0c(gp)
addiu t9,t9,-0x5b6c
bal 0x0003a494
_or s3,v0,zero
or a0,s3,zero
lw gp,0x10(sp)
lw v0,0x190(s1)
lw s4,-0x7b0c(gp)
addiu s4,s4,-0x5824
or t9,s4,zero
bal 0x0003a7dc
_lw a1,0xc(v0)
or a0,s3,zero
lw v0,0x190(s1)
or t9,s4,zero
bal 0x0003a7dc
_lw a1,0x10(v0)
or a0,s3,zero
lw gp,0x10(sp)
lw v0,0x18c(s1)
lw t9,-0x7b0c(gp)
addiu t9,t9,-0x5894
bal 0x0003a76c
_lw a1,0xc(v0)
or a1,s3,zero
lw gp,0x10(sp)
lw t9,-0x7b0c(gp)
addiu t9,t9,0x5998
bal 0x00045998
_or a0,s1,zero
li v0,0x235f
lw gp,0x10(sp)
b 0x000465d8
_sw v0,0x0(s0)
lw a1,-0x7fc8(gp)
jalr t9
_addiu a1,a1,0x42a4
li v0,0x1
lw gp,0x10(sp)
b 0x000465c8
_sw v0,0x4c(s1)
lw t9,-0x74e0(gp)
jalr t9
_nop
(translation_unit "void FUN_0004656c(undefined4 *param_1,undefined *param_2,int *param_3)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  piVar3 = (int *)*param_1;\n  if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }\n  (*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);\n  param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);\n  piVar1 = (int *)0x1;\n  local_1d = 0;\n  FUN_0003a494(param_2,&local_1d);\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));\n  FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));\n  FUN_00045998();\n  *param_3 = 0x235f;\nLAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }\n  puVar5 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  iVar4 = *piVar3;\n  if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }\n  (**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);\n  uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);\n  FUN_00045998(iVar4,uVar2);\n  *piVar1 = 0x237f;\n  return;\n}\n\n" (function_definition "void FUN_0004656c(undefined4 *param_1,undefined *param_2,int *param_3)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  piVar3 = (int *)*param_1;\n  if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }\n  (*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);\n  param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);\n  piVar1 = (int *)0x1;\n  local_1d = 0;\n  FUN_0003a494(param_2,&local_1d);\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));\n  FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));\n  FUN_00045998();\n  *param_3 = 0x235f;\nLAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }\n  puVar5 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  iVar4 = *piVar3;\n  if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }\n  (**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);\n  uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);\n  FUN_00045998(iVar4,uVar2);\n  *piVar1 = 0x237f;\n  return;\n}" primitive_type (function_declarator "FUN_0004656c(undefined4 *param_1,undefined *param_2,int *param_3)" identifier (parameter_list "(undefined4 *param_1,undefined *param_2,int *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  piVar3 = (int *)*param_1;\n  if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }\n  (*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);\n  param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);\n  piVar1 = (int *)0x1;\n  local_1d = 0;\n  FUN_0003a494(param_2,&local_1d);\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));\n  FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));\n  FUN_00045998();\n  *param_3 = 0x235f;\nLAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }\n  puVar5 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  iVar4 = *piVar3;\n  if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }\n  (**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);\n  uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);\n  FUN_00045998(iVar4,uVar2);\n  *piVar1 = 0x237f;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined1 local_1d;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar3 = (int *)*param_1;" (assignment_expression "piVar3 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" if (parenthesized_expression "(param_3 == (int *)0x0)" ( (binary_expression "param_3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }" { (expression_statement "param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);" (assignment_expression "param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4)" identifier = (cast_expression "(int *)(*(code *)PTR_safemalloc_000b01e8)(1,4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b01e8)(1,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,4)" ( number_literal , number_literal ))))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) }) (else_clause "else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" else (if_statement "if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" if (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) )) (compound_statement "{\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" { (expression_statement "piVar1 = param_3;" (assignment_expression "piVar1 = param_3" identifier = identifier) ;) (if_statement "if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }" if (parenthesized_expression "((*param_3 == 0x235f) && (param_2 != (undefined *)0x0))" ( (binary_expression "(*param_3 == 0x235f) && (param_2 != (undefined *)0x0)" (parenthesized_expression "(*param_3 == 0x235f)" ( (binary_expression "*param_3 == 0x235f" (pointer_expression "*param_3" * identifier) == number_literal) )) && (parenthesized_expression "(param_2 != (undefined *)0x0)" ( (binary_expression "param_2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }" { (if_statement "if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 99)" ( (binary_expression "*(int *)(param_2 + 8) == 99" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }" { (expression_statement "param_2 = PTR_s_Present_000b0188 + 0x42a4;" (assignment_expression "param_2 = PTR_s_Present_000b0188 + 0x42a4" identifier = (binary_expression "PTR_s_Present_000b0188 + 0x42a4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_logevent_000b020c)(piVar3[0x44]);" (call_expression "(*(code *)PTR_logevent_000b020c)(piVar3[0x44])" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" ( (pointer_expression "*(code *)PTR_logevent_000b020c" * (cast_expression "(code *)PTR_logevent_000b020c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3[0x44])" ( (subscript_expression "piVar3[0x44]" identifier [ number_literal ]) ))) ;) (expression_statement "piVar3[0x13] = 1;" (assignment_expression "piVar3[0x13] = 1" (subscript_expression "piVar3[0x13]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }" else (compound_statement "{\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }" { (expression_statement "param_2 = PTR_s_Present_000b0188 + 0x42bc;" (assignment_expression "param_2 = PTR_s_Present_000b0188 + 0x42bc" identifier = (binary_expression "PTR_s_Present_000b0188 + 0x42bc" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_logevent_000b020c)();" (call_expression "(*(code *)PTR_logevent_000b020c)()" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" ( (pointer_expression "*(code *)PTR_logevent_000b020c" * (cast_expression "(code *)PTR_logevent_000b020c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) })) (expression_statement "(*(code *)PTR_safefree_000b01b0)();" (call_expression "(*(code *)PTR_safefree_000b01b0)()" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar3 = param_3;" (assignment_expression "piVar3 = param_3" identifier = identifier) ;) (goto_statement "goto LAB_000465d8;" goto statement_identifier ;) })))) (expression_statement "(*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);" (call_expression "(*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280)" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" ( (pointer_expression "*(code *)PTR_logevent_000b020c" * (cast_expression "(code *)PTR_logevent_000b020c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280)" ( (subscript_expression "piVar3[0x44]" identifier [ number_literal ]) , (binary_expression "PTR_s_Present_000b0188 + 0x4280" identifier + number_literal) ))) ;) (expression_statement "param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);" (assignment_expression "param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" identifier = (cast_expression "(undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" identifier (argument_list "(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" ( (subscript_expression "piVar3[0x4a]" identifier [ number_literal ]) , (binary_expression "PTR_s_Present_000b0188 + 0x429c" identifier + number_literal) , (binary_expression "PTR_LAB_000b0644 + 0x656c" identifier + number_literal) , identifier ))))) ;) (expression_statement "piVar1 = (int *)0x1;" (assignment_expression "piVar1 = (int *)0x1" identifier = (cast_expression "(int *)0x1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_1d = 0;" (assignment_expression "local_1d = 0" identifier = number_literal) ;) (expression_statement "FUN_0003a494(param_2,&local_1d);" (call_expression "FUN_0003a494(param_2,&local_1d)" identifier (argument_list "(param_2,&local_1d)" ( identifier , (pointer_expression "&local_1d" & identifier) ))) ;) (expression_statement "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));" (call_expression "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc))" identifier (argument_list "(param_2,*(undefined4 *)(piVar3[100] + 0xc))" ( identifier , (pointer_expression "*(undefined4 *)(piVar3[100] + 0xc)" * (cast_expression "(undefined4 *)(piVar3[100] + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3[100] + 0xc)" ( (binary_expression "piVar3[100] + 0xc" (subscript_expression "piVar3[100]" identifier [ number_literal ]) + number_literal) )))) ))) ;) (expression_statement "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));" (call_expression "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10))" identifier (argument_list "(param_2,*(undefined4 *)(piVar3[100] + 0x10))" ( identifier , (pointer_expression "*(undefined4 *)(piVar3[100] + 0x10)" * (cast_expression "(undefined4 *)(piVar3[100] + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3[100] + 0x10)" ( (binary_expression "piVar3[100] + 0x10" (subscript_expression "piVar3[100]" identifier [ number_literal ]) + number_literal) )))) ))) ;) (expression_statement "FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));" (call_expression "FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc))" identifier (argument_list "(param_2,*(undefined4 *)(piVar3[99] + 0xc))" ( identifier , (pointer_expression "*(undefined4 *)(piVar3[99] + 0xc)" * (cast_expression "(undefined4 *)(piVar3[99] + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3[99] + 0xc)" ( (binary_expression "piVar3[99] + 0xc" (subscript_expression "piVar3[99]" identifier [ number_literal ]) + number_literal) )))) ))) ;) (expression_statement "FUN_00045998();" (call_expression "FUN_00045998()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_3 = 0x235f;" (assignment_expression "*param_3 = 0x235f" (pointer_expression "*param_3" * identifier) = number_literal) ;) (labeled_statement "LAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }" statement_identifier : (if_statement "if (local_1c == *(int *)puVar5) {\n    return;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar5)" ( (binary_expression "local_1c == *(int *)puVar5" identifier == (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "puVar5 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000b0c70" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }" { (expression_statement "piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);" (assignment_expression "piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4)" identifier = (cast_expression "(int *)(**(code **)(puVar5 + 0x69aa0))(1,4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar5 + 0x69aa0))(1,4)" (parenthesized_expression "(**(code **)(puVar5 + 0x69aa0))" ( (pointer_expression "**(code **)(puVar5 + 0x69aa0)" * (pointer_expression "*(code **)(puVar5 + 0x69aa0)" * (cast_expression "(code **)(puVar5 + 0x69aa0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x69aa0)" ( (binary_expression "puVar5 + 0x69aa0" identifier + number_literal) ))))) )) (argument_list "(1,4)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) }) (else_clause "else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" else (if_statement "if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" { (if_statement "if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }" if (parenthesized_expression "((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0))" ( (binary_expression "(*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)" (parenthesized_expression "(*piVar1 == 0x237f)" ( (binary_expression "*piVar1 == 0x237f" (pointer_expression "*piVar1" * identifier) == number_literal) )) && (parenthesized_expression "(param_2 != (undefined *)0x0)" ( (binary_expression "param_2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }" { (if_statement "if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 99)" ( (binary_expression "*(int *)(param_2 + 8) == 99" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }" { (expression_statement "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);" (call_expression "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c)" (parenthesized_expression "(**(code **)(puVar5 + 0x69ac4))" ( (pointer_expression "**(code **)(puVar5 + 0x69ac4)" * (pointer_expression "*(code **)(puVar5 + 0x69ac4)" * (cast_expression "(code **)(puVar5 + 0x69ac4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x69ac4)" ( (binary_expression "puVar5 + 0x69ac4" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c)" ( (pointer_expression "*(undefined4 *)(iVar4 + 0x110)" * (cast_expression "(undefined4 *)(iVar4 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x110)" ( (binary_expression "iVar4 + 0x110" identifier + number_literal) )))) , (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x431c" (pointer_expression "*(int *)(puVar5 + 0x69a40)" * (cast_expression "(int *)(puVar5 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x69a40)" ( (binary_expression "puVar5 + 0x69a40" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x48) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 0x48) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 0x48)" * (cast_expression "(undefined4 *)(iVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x48)" ( (binary_expression "iVar4 + 0x48" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }" else (compound_statement "{\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }" { (expression_statement "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);" (call_expression "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338)" (parenthesized_expression "(**(code **)(puVar5 + 0x69ac4))" ( (pointer_expression "**(code **)(puVar5 + 0x69ac4)" * (pointer_expression "*(code **)(puVar5 + 0x69ac4)" * (cast_expression "(code **)(puVar5 + 0x69ac4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x69ac4)" ( (binary_expression "puVar5 + 0x69ac4" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338)" ( (pointer_expression "*(undefined4 *)(iVar4 + 0x110)" * (cast_expression "(undefined4 *)(iVar4 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x110)" ( (binary_expression "iVar4 + 0x110" identifier + number_literal) )))) , (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x4338" (pointer_expression "*(int *)(puVar5 + 0x69a40)" * (cast_expression "(int *)(puVar5 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x69a40)" ( (binary_expression "puVar5 + 0x69a40" identifier + number_literal) )))) + number_literal) ))) ;) }))) })) comment comment (expression_statement "(**(code **)(puVar5 + 0x69a68))(piVar1);" (call_expression "(**(code **)(puVar5 + 0x69a68))(piVar1)" (parenthesized_expression "(**(code **)(puVar5 + 0x69a68))" ( (pointer_expression "**(code **)(puVar5 + 0x69a68)" * (pointer_expression "*(code **)(puVar5 + 0x69a68)" * (cast_expression "(code **)(puVar5 + 0x69a68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x69a68)" ( (binary_expression "puVar5 + 0x69a68" identifier + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))) (expression_statement "(**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);" (call_expression "(**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4)" (parenthesized_expression "(**(code **)(puVar5 + 0x69ac4))" ( (pointer_expression "**(code **)(puVar5 + 0x69ac4)" * (pointer_expression "*(code **)(puVar5 + 0x69ac4)" * (cast_expression "(code **)(puVar5 + 0x69ac4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x69ac4)" ( (binary_expression "puVar5 + 0x69ac4" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4)" ( (pointer_expression "*(undefined4 *)(iVar4 + 0x110)" * (cast_expression "(undefined4 *)(iVar4 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x110)" ( (binary_expression "iVar4 + 0x110" identifier + number_literal) )))) , (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x42d4" (pointer_expression "*(int *)(puVar5 + 0x69a40)" * (cast_expression "(int *)(puVar5 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x69a40)" ( (binary_expression "puVar5 + 0x69a40" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);" (assignment_expression "uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1)" identifier = (call_expression "FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1)" identifier (argument_list "(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1)" ( (pointer_expression "*(undefined4 *)(iVar4 + 0x128)" * (cast_expression "(undefined4 *)(iVar4 + 0x128)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x128)" ( (binary_expression "iVar4 + 0x128" identifier + number_literal) )))) , (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x4300" (pointer_expression "*(int *)(puVar5 + 0x69a40)" * (cast_expression "(int *)(puVar5 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x69a40)" ( (binary_expression "puVar5 + 0x69a40" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar5 + 0x69efc) + 0x6748" (pointer_expression "*(int *)(puVar5 + 0x69efc)" * (cast_expression "(int *)(puVar5 + 0x69efc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x69efc)" ( (binary_expression "puVar5 + 0x69efc" identifier + number_literal) )))) + number_literal) , identifier )))) ;) (expression_statement "FUN_00045998(iVar4,uVar2);" (call_expression "FUN_00045998(iVar4,uVar2)" identifier (argument_list "(iVar4,uVar2)" ( identifier , identifier ))) ;) (expression_statement "*piVar1 = 0x237f;" (assignment_expression "*piVar1 = 0x237f" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh2_setup_x11(ssh_channel *c,Packet *pktin,void *ctx)\n\n{\n  int *ctx_00;\n  Packet *pPVar1;\n  Ssh_conflict psVar2;\n  undefined *puVar3;\n  undefined1 uStack_1d;\n  int iStack_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  iStack_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  psVar2 = c->ssh;\n  if (ctx == (void *)0x0) {\n    ctx = (void *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *(undefined4 *)ctx = 0;\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    if (*ctx != 0) {\n      ctx_00 = (int *)ctx;\n      if ((*ctx == 0x235f) && (pktin != (Packet *)0x0)) {\n        if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }\n      }\n      (*(code *)PTR_safefree_000b01b0)();\n      if (iStack_1c == *(int *)puVar3) {\n        return;\n      }\n      puVar3 = PTR___stack_chk_fail_000b0c70;\n      (*(code *)PTR___stack_chk_fail_000b0c70)();\n                    /* WARNING: Load size is inaccurate */\n      psVar2 = *ctx;\n      if (ctx_00 == (int *)0x0) {\n        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);\n        *ctx_00 = 0;\n      }\n      else if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }\n      (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4);\n      pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00);\n      ssh2_pkt_send(psVar2,pPVar1);\n      *ctx_00 = 0x237f;\n      return;\n    }\n  }\n  (*(code *)PTR_logevent_000b020c)(psVar2->frontend,PTR_s_Present_000b0188 + 0x4280);\n  pPVar1 = ssh2_chanreq_init(psVar2->mainchan,PTR_s_Present_000b0188 + 0x429c,\n                             (cchandler_fn_t)(PTR_LAB_000b0644 + 0x656c),ctx);\n  uStack_1d = 0;\n                    /* WARNING: Subroutine does not return */\n  ssh_pkt_adddata(pPVar1,&uStack_1d,1);\n}\n\n" comment (function_definition "void ssh2_setup_x11(ssh_channel *c,Packet *pktin,void *ctx)\n\n{\n  int *ctx_00;\n  Packet *pPVar1;\n  Ssh_conflict psVar2;\n  undefined *puVar3;\n  undefined1 uStack_1d;\n  int iStack_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  iStack_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  psVar2 = c->ssh;\n  if (ctx == (void *)0x0) {\n    ctx = (void *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *(undefined4 *)ctx = 0;\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    if (*ctx != 0) {\n      ctx_00 = (int *)ctx;\n      if ((*ctx == 0x235f) && (pktin != (Packet *)0x0)) {\n        if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }\n      }\n      (*(code *)PTR_safefree_000b01b0)();\n      if (iStack_1c == *(int *)puVar3) {\n        return;\n      }\n      puVar3 = PTR___stack_chk_fail_000b0c70;\n      (*(code *)PTR___stack_chk_fail_000b0c70)();\n                    /* WARNING: Load size is inaccurate */\n      psVar2 = *ctx;\n      if (ctx_00 == (int *)0x0) {\n        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);\n        *ctx_00 = 0;\n      }\n      else if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }\n      (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4);\n      pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00);\n      ssh2_pkt_send(psVar2,pPVar1);\n      *ctx_00 = 0x237f;\n      return;\n    }\n  }\n  (*(code *)PTR_logevent_000b020c)(psVar2->frontend,PTR_s_Present_000b0188 + 0x4280);\n  pPVar1 = ssh2_chanreq_init(psVar2->mainchan,PTR_s_Present_000b0188 + 0x429c,\n                             (cchandler_fn_t)(PTR_LAB_000b0644 + 0x656c),ctx);\n  uStack_1d = 0;\n                    /* WARNING: Subroutine does not return */\n  ssh_pkt_adddata(pPVar1,&uStack_1d,1);\n}" primitive_type (function_declarator "ssh2_setup_x11(ssh_channel *c,Packet *pktin,void *ctx)" identifier (parameter_list "(ssh_channel *c,Packet *pktin,void *ctx)" ( (parameter_declaration "ssh_channel *c" type_identifier (pointer_declarator "*c" * identifier)) , (parameter_declaration "Packet *pktin" type_identifier (pointer_declarator "*pktin" * identifier)) , (parameter_declaration "void *ctx" primitive_type (pointer_declarator "*ctx" * identifier)) ))) (compound_statement "{\n  int *ctx_00;\n  Packet *pPVar1;\n  Ssh_conflict psVar2;\n  undefined *puVar3;\n  undefined1 uStack_1d;\n  int iStack_1c;\n  \n  puVar3 = PTR___stack_chk_guard_000b0c9c;\n  iStack_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  psVar2 = c->ssh;\n  if (ctx == (void *)0x0) {\n    ctx = (void *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *(undefined4 *)ctx = 0;\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    if (*ctx != 0) {\n      ctx_00 = (int *)ctx;\n      if ((*ctx == 0x235f) && (pktin != (Packet *)0x0)) {\n        if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }\n      }\n      (*(code *)PTR_safefree_000b01b0)();\n      if (iStack_1c == *(int *)puVar3) {\n        return;\n      }\n      puVar3 = PTR___stack_chk_fail_000b0c70;\n      (*(code *)PTR___stack_chk_fail_000b0c70)();\n                    /* WARNING: Load size is inaccurate */\n      psVar2 = *ctx;\n      if (ctx_00 == (int *)0x0) {\n        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);\n        *ctx_00 = 0;\n      }\n      else if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }\n      (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4);\n      pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00);\n      ssh2_pkt_send(psVar2,pPVar1);\n      *ctx_00 = 0x237f;\n      return;\n    }\n  }\n  (*(code *)PTR_logevent_000b020c)(psVar2->frontend,PTR_s_Present_000b0188 + 0x4280);\n  pPVar1 = ssh2_chanreq_init(psVar2->mainchan,PTR_s_Present_000b0188 + 0x429c,\n                             (cchandler_fn_t)(PTR_LAB_000b0644 + 0x656c),ctx);\n  uStack_1d = 0;\n                    /* WARNING: Subroutine does not return */\n  ssh_pkt_adddata(pPVar1,&uStack_1d,1);\n}" { (declaration "int *ctx_00;" primitive_type (pointer_declarator "*ctx_00" * identifier) ;) (declaration "Packet *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "Ssh_conflict psVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 uStack_1d;" type_identifier identifier ;) (declaration "int iStack_1c;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "iStack_1c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "iStack_1c = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "psVar2 = c->ssh;" (assignment_expression "psVar2 = c->ssh" identifier = (field_expression "c->ssh" identifier -> field_identifier)) ;) (if_statement "if (ctx == (void *)0x0) {\n    ctx = (void *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *(undefined4 *)ctx = 0;\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    if (*ctx != 0) {\n      ctx_00 = (int *)ctx;\n      if ((*ctx == 0x235f) && (pktin != (Packet *)0x0)) {\n        if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }\n      }\n      (*(code *)PTR_safefree_000b01b0)();\n      if (iStack_1c == *(int *)puVar3) {\n        return;\n      }\n      puVar3 = PTR___stack_chk_fail_000b0c70;\n      (*(code *)PTR___stack_chk_fail_000b0c70)();\n                    /* WARNING: Load size is inaccurate */\n      psVar2 = *ctx;\n      if (ctx_00 == (int *)0x0) {\n        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);\n        *ctx_00 = 0;\n      }\n      else if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }\n      (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4);\n      pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00);\n      ssh2_pkt_send(psVar2,pPVar1);\n      *ctx_00 = 0x237f;\n      return;\n    }\n  }" if (parenthesized_expression "(ctx == (void *)0x0)" ( (binary_expression "ctx == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ctx = (void *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *(undefined4 *)ctx = 0;\n  }" { (expression_statement "ctx = (void *)(*(code *)PTR_safemalloc_000b01e8)(1,4);" (assignment_expression "ctx = (void *)(*(code *)PTR_safemalloc_000b01e8)(1,4)" identifier = (cast_expression "(void *)(*(code *)PTR_safemalloc_000b01e8)(1,4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b01e8)(1,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,4)" ( number_literal , number_literal ))))) ;) (expression_statement "*(undefined4 *)ctx = 0;" (assignment_expression "*(undefined4 *)ctx = 0" (pointer_expression "*(undefined4 *)ctx" * (cast_expression "(undefined4 *)ctx" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) }) (else_clause "else {\n                    /* WARNING: Load size is inaccurate */\n    if (*ctx != 0) {\n      ctx_00 = (int *)ctx;\n      if ((*ctx == 0x235f) && (pktin != (Packet *)0x0)) {\n        if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }\n      }\n      (*(code *)PTR_safefree_000b01b0)();\n      if (iStack_1c == *(int *)puVar3) {\n        return;\n      }\n      puVar3 = PTR___stack_chk_fail_000b0c70;\n      (*(code *)PTR___stack_chk_fail_000b0c70)();\n                    /* WARNING: Load size is inaccurate */\n      psVar2 = *ctx;\n      if (ctx_00 == (int *)0x0) {\n        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);\n        *ctx_00 = 0;\n      }\n      else if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }\n      (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4);\n      pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00);\n      ssh2_pkt_send(psVar2,pPVar1);\n      *ctx_00 = 0x237f;\n      return;\n    }\n  }" else (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    if (*ctx != 0) {\n      ctx_00 = (int *)ctx;\n      if ((*ctx == 0x235f) && (pktin != (Packet *)0x0)) {\n        if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }\n      }\n      (*(code *)PTR_safefree_000b01b0)();\n      if (iStack_1c == *(int *)puVar3) {\n        return;\n      }\n      puVar3 = PTR___stack_chk_fail_000b0c70;\n      (*(code *)PTR___stack_chk_fail_000b0c70)();\n                    /* WARNING: Load size is inaccurate */\n      psVar2 = *ctx;\n      if (ctx_00 == (int *)0x0) {\n        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);\n        *ctx_00 = 0;\n      }\n      else if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }\n      (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4);\n      pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00);\n      ssh2_pkt_send(psVar2,pPVar1);\n      *ctx_00 = 0x237f;\n      return;\n    }\n  }" { comment (if_statement "if (*ctx != 0) {\n      ctx_00 = (int *)ctx;\n      if ((*ctx == 0x235f) && (pktin != (Packet *)0x0)) {\n        if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }\n      }\n      (*(code *)PTR_safefree_000b01b0)();\n      if (iStack_1c == *(int *)puVar3) {\n        return;\n      }\n      puVar3 = PTR___stack_chk_fail_000b0c70;\n      (*(code *)PTR___stack_chk_fail_000b0c70)();\n                    /* WARNING: Load size is inaccurate */\n      psVar2 = *ctx;\n      if (ctx_00 == (int *)0x0) {\n        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);\n        *ctx_00 = 0;\n      }\n      else if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }\n      (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4);\n      pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00);\n      ssh2_pkt_send(psVar2,pPVar1);\n      *ctx_00 = 0x237f;\n      return;\n    }" if (parenthesized_expression "(*ctx != 0)" ( (binary_expression "*ctx != 0" (pointer_expression "*ctx" * identifier) != number_literal) )) (compound_statement "{\n      ctx_00 = (int *)ctx;\n      if ((*ctx == 0x235f) && (pktin != (Packet *)0x0)) {\n        if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }\n      }\n      (*(code *)PTR_safefree_000b01b0)();\n      if (iStack_1c == *(int *)puVar3) {\n        return;\n      }\n      puVar3 = PTR___stack_chk_fail_000b0c70;\n      (*(code *)PTR___stack_chk_fail_000b0c70)();\n                    /* WARNING: Load size is inaccurate */\n      psVar2 = *ctx;\n      if (ctx_00 == (int *)0x0) {\n        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);\n        *ctx_00 = 0;\n      }\n      else if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }\n      (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4);\n      pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00);\n      ssh2_pkt_send(psVar2,pPVar1);\n      *ctx_00 = 0x237f;\n      return;\n    }" { (expression_statement "ctx_00 = (int *)ctx;" (assignment_expression "ctx_00 = (int *)ctx" identifier = (cast_expression "(int *)ctx" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if ((*ctx == 0x235f) && (pktin != (Packet *)0x0)) {\n        if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }\n      }" if (parenthesized_expression "((*ctx == 0x235f) && (pktin != (Packet *)0x0))" ( (binary_expression "(*ctx == 0x235f) && (pktin != (Packet *)0x0)" (parenthesized_expression "(*ctx == 0x235f)" ( (binary_expression "*ctx == 0x235f" (pointer_expression "*ctx" * identifier) == number_literal) )) && (parenthesized_expression "(pktin != (Packet *)0x0)" ( (binary_expression "pktin != (Packet *)0x0" identifier != (cast_expression "(Packet *)0x0" ( (type_descriptor "Packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }\n      }" { (if_statement "if (pktin->type == 99) {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }\n        else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }" if (parenthesized_expression "(pktin->type == 99)" ( (binary_expression "pktin->type == 99" (field_expression "pktin->type" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);\n          (*(code *)PTR_logevent_000b020c)(psVar2->frontend);\n          psVar2->X11_fwd_enabled = 1;\n        }" { (expression_statement "pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4);" (assignment_expression "pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42a4)" identifier = (cast_expression "(Packet *)(PTR_s_Present_000b0188 + 0x42a4)" ( (type_descriptor "Packet *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_Present_000b0188 + 0x42a4)" ( (binary_expression "PTR_s_Present_000b0188 + 0x42a4" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_logevent_000b020c)(psVar2->frontend);" (call_expression "(*(code *)PTR_logevent_000b020c)(psVar2->frontend)" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" ( (pointer_expression "*(code *)PTR_logevent_000b020c" * (cast_expression "(code *)PTR_logevent_000b020c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(psVar2->frontend)" ( (field_expression "psVar2->frontend" identifier -> field_identifier) ))) ;) (expression_statement "psVar2->X11_fwd_enabled = 1;" (assignment_expression "psVar2->X11_fwd_enabled = 1" (field_expression "psVar2->X11_fwd_enabled" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }" else (compound_statement "{\n          pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);\n          (*(code *)PTR_logevent_000b020c)();\n        }" { (expression_statement "pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc);" (assignment_expression "pktin = (Packet *)(PTR_s_Present_000b0188 + 0x42bc)" identifier = (cast_expression "(Packet *)(PTR_s_Present_000b0188 + 0x42bc)" ( (type_descriptor "Packet *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_Present_000b0188 + 0x42bc)" ( (binary_expression "PTR_s_Present_000b0188 + 0x42bc" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_logevent_000b020c)();" (call_expression "(*(code *)PTR_logevent_000b020c)()" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" ( (pointer_expression "*(code *)PTR_logevent_000b020c" * (cast_expression "(code *)PTR_logevent_000b020c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) })) (expression_statement "(*(code *)PTR_safefree_000b01b0)();" (call_expression "(*(code *)PTR_safefree_000b01b0)()" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iStack_1c == *(int *)puVar3) {\n        return;\n      }" if (parenthesized_expression "(iStack_1c == *(int *)puVar3)" ( (binary_expression "iStack_1c == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar3 = PTR___stack_chk_fail_000b0c70" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment (expression_statement "psVar2 = *ctx;" (assignment_expression "psVar2 = *ctx" identifier = (pointer_expression "*ctx" * identifier)) ;) (if_statement "if (ctx_00 == (int *)0x0) {\n        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);\n        *ctx_00 = 0;\n      }\n      else if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }" if (parenthesized_expression "(ctx_00 == (int *)0x0)" ( (binary_expression "ctx_00 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);\n        *ctx_00 = 0;\n      }" { (expression_statement "ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4);" (assignment_expression "ctx_00 = (int *)(**(code **)(puVar3 + 0x69aa0))(1,4)" identifier = (cast_expression "(int *)(**(code **)(puVar3 + 0x69aa0))(1,4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar3 + 0x69aa0))(1,4)" (parenthesized_expression "(**(code **)(puVar3 + 0x69aa0))" ( (pointer_expression "**(code **)(puVar3 + 0x69aa0)" * (pointer_expression "*(code **)(puVar3 + 0x69aa0)" * (cast_expression "(code **)(puVar3 + 0x69aa0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x69aa0)" ( (binary_expression "puVar3 + 0x69aa0" identifier + number_literal) ))))) )) (argument_list "(1,4)" ( number_literal , number_literal ))))) ;) (expression_statement "*ctx_00 = 0;" (assignment_expression "*ctx_00 = 0" (pointer_expression "*ctx_00" * identifier) = number_literal) ;) }) (else_clause "else if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }" else (if_statement "if (*ctx_00 != 0) {\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }" if (parenthesized_expression "(*ctx_00 != 0)" ( (binary_expression "*ctx_00 != 0" (pointer_expression "*ctx_00" * identifier) != number_literal) )) (compound_statement "{\n        if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }\n                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        (**(code **)(puVar3 + 0x69a68))(ctx_00);\n        return;\n      }" { (if_statement "if ((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)) {\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }" if (parenthesized_expression "((*ctx_00 == 0x237f) && (pktin != (Packet *)0x0))" ( (binary_expression "(*ctx_00 == 0x237f) && (pktin != (Packet *)0x0)" (parenthesized_expression "(*ctx_00 == 0x237f)" ( (binary_expression "*ctx_00 == 0x237f" (pointer_expression "*ctx_00" * identifier) == number_literal) )) && (parenthesized_expression "(pktin != (Packet *)0x0)" ( (binary_expression "pktin != (Packet *)0x0" identifier != (cast_expression "(Packet *)0x0" ( (type_descriptor "Packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }\n        }" { (if_statement "if (pktin->type == 99) {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }\n          else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }" if (parenthesized_expression "(pktin->type == 99)" ( (binary_expression "pktin->type == 99" (field_expression "pktin->type" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);\n            psVar2->agentfwd_enabled = 1;\n          }" { (expression_statement "(**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c);" (call_expression "(**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c)" (parenthesized_expression "(**(code **)(puVar3 + 0x69ac4))" ( (pointer_expression "**(code **)(puVar3 + 0x69ac4)" * (pointer_expression "*(code **)(puVar3 + 0x69ac4)" * (cast_expression "(code **)(puVar3 + 0x69ac4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x69ac4)" ( (binary_expression "puVar3 + 0x69ac4" identifier + number_literal) ))))) )) (argument_list "(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x431c)" ( (field_expression "psVar2->frontend" identifier -> field_identifier) , (binary_expression "*(int *)(puVar3 + 0x69a40) + 0x431c" (pointer_expression "*(int *)(puVar3 + 0x69a40)" * (cast_expression "(int *)(puVar3 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x69a40)" ( (binary_expression "puVar3 + 0x69a40" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "psVar2->agentfwd_enabled = 1;" (assignment_expression "psVar2->agentfwd_enabled = 1" (field_expression "psVar2->agentfwd_enabled" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }" else (compound_statement "{\n            (**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);\n          }" { (expression_statement "(**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338);" (call_expression "(**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338)" (parenthesized_expression "(**(code **)(puVar3 + 0x69ac4))" ( (pointer_expression "**(code **)(puVar3 + 0x69ac4)" * (pointer_expression "*(code **)(puVar3 + 0x69ac4)" * (cast_expression "(code **)(puVar3 + 0x69ac4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x69ac4)" ( (binary_expression "puVar3 + 0x69ac4" identifier + number_literal) ))))) )) (argument_list "(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x4338)" ( (field_expression "psVar2->frontend" identifier -> field_identifier) , (binary_expression "*(int *)(puVar3 + 0x69a40) + 0x4338" (pointer_expression "*(int *)(puVar3 + 0x69a40)" * (cast_expression "(int *)(puVar3 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x69a40)" ( (binary_expression "puVar3 + 0x69a40" identifier + number_literal) )))) + number_literal) ))) ;) }))) })) comment comment (expression_statement "(**(code **)(puVar3 + 0x69a68))(ctx_00);" (call_expression "(**(code **)(puVar3 + 0x69a68))(ctx_00)" (parenthesized_expression "(**(code **)(puVar3 + 0x69a68))" ( (pointer_expression "**(code **)(puVar3 + 0x69a68)" * (pointer_expression "*(code **)(puVar3 + 0x69a68)" * (cast_expression "(code **)(puVar3 + 0x69a68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x69a68)" ( (binary_expression "puVar3 + 0x69a68" identifier + number_literal) ))))) )) (argument_list "(ctx_00)" ( identifier ))) ;) (return_statement "return;" return ;) })))) (expression_statement "(**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4);" (call_expression "(**(code **)(puVar3 + 0x69ac4))(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4)" (parenthesized_expression "(**(code **)(puVar3 + 0x69ac4))" ( (pointer_expression "**(code **)(puVar3 + 0x69ac4)" * (pointer_expression "*(code **)(puVar3 + 0x69ac4)" * (cast_expression "(code **)(puVar3 + 0x69ac4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x69ac4)" ( (binary_expression "puVar3 + 0x69ac4" identifier + number_literal) ))))) )) (argument_list "(psVar2->frontend,*(int *)(puVar3 + 0x69a40) + 0x42d4)" ( (field_expression "psVar2->frontend" identifier -> field_identifier) , (binary_expression "*(int *)(puVar3 + 0x69a40) + 0x42d4" (pointer_expression "*(int *)(puVar3 + 0x69a40)" * (cast_expression "(int *)(puVar3 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x69a40)" ( (binary_expression "puVar3 + 0x69a40" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00);" (assignment_expression "pPVar1 = ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00)" identifier = (call_expression "ssh2_chanreq_init(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00)" identifier (argument_list "(psVar2->mainchan,(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300),\n                                 (cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748),ctx_00)" ( (field_expression "psVar2->mainchan" identifier -> field_identifier) , (cast_expression "(char *)(*(int *)(puVar3 + 0x69a40) + 0x4300)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar3 + 0x69a40) + 0x4300)" ( (binary_expression "*(int *)(puVar3 + 0x69a40) + 0x4300" (pointer_expression "*(int *)(puVar3 + 0x69a40)" * (cast_expression "(int *)(puVar3 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x69a40)" ( (binary_expression "puVar3 + 0x69a40" identifier + number_literal) )))) + number_literal) ))) , (call_expression "(cchandler_fn_t)(*(int *)(puVar3 + 0x69efc) + 0x6748)" (parenthesized_expression "(cchandler_fn_t)" ( identifier )) (argument_list "(*(int *)(puVar3 + 0x69efc) + 0x6748)" ( (binary_expression "*(int *)(puVar3 + 0x69efc) + 0x6748" (pointer_expression "*(int *)(puVar3 + 0x69efc)" * (cast_expression "(int *)(puVar3 + 0x69efc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x69efc)" ( (binary_expression "puVar3 + 0x69efc" identifier + number_literal) )))) + number_literal) ))) , identifier )))) ;) (expression_statement "ssh2_pkt_send(psVar2,pPVar1);" (call_expression "ssh2_pkt_send(psVar2,pPVar1)" identifier (argument_list "(psVar2,pPVar1)" ( identifier , identifier ))) ;) (expression_statement "*ctx_00 = 0x237f;" (assignment_expression "*ctx_00 = 0x237f" (pointer_expression "*ctx_00" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) }))) (expression_statement "(*(code *)PTR_logevent_000b020c)(psVar2->frontend,PTR_s_Present_000b0188 + 0x4280);" (call_expression "(*(code *)PTR_logevent_000b020c)(psVar2->frontend,PTR_s_Present_000b0188 + 0x4280)" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" ( (pointer_expression "*(code *)PTR_logevent_000b020c" * (cast_expression "(code *)PTR_logevent_000b020c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(psVar2->frontend,PTR_s_Present_000b0188 + 0x4280)" ( (field_expression "psVar2->frontend" identifier -> field_identifier) , (binary_expression "PTR_s_Present_000b0188 + 0x4280" identifier + number_literal) ))) ;) (expression_statement "pPVar1 = ssh2_chanreq_init(psVar2->mainchan,PTR_s_Present_000b0188 + 0x429c,\n                             (cchandler_fn_t)(PTR_LAB_000b0644 + 0x656c),ctx);" (assignment_expression "pPVar1 = ssh2_chanreq_init(psVar2->mainchan,PTR_s_Present_000b0188 + 0x429c,\n                             (cchandler_fn_t)(PTR_LAB_000b0644 + 0x656c),ctx)" identifier = (call_expression "ssh2_chanreq_init(psVar2->mainchan,PTR_s_Present_000b0188 + 0x429c,\n                             (cchandler_fn_t)(PTR_LAB_000b0644 + 0x656c),ctx)" identifier (argument_list "(psVar2->mainchan,PTR_s_Present_000b0188 + 0x429c,\n                             (cchandler_fn_t)(PTR_LAB_000b0644 + 0x656c),ctx)" ( (field_expression "psVar2->mainchan" identifier -> field_identifier) , (binary_expression "PTR_s_Present_000b0188 + 0x429c" identifier + number_literal) , (call_expression "(cchandler_fn_t)(PTR_LAB_000b0644 + 0x656c)" (parenthesized_expression "(cchandler_fn_t)" ( identifier )) (argument_list "(PTR_LAB_000b0644 + 0x656c)" ( (binary_expression "PTR_LAB_000b0644 + 0x656c" identifier + number_literal) ))) , identifier )))) ;) (expression_statement "uStack_1d = 0;" (assignment_expression "uStack_1d = 0" identifier = number_literal) ;) comment (expression_statement "ssh_pkt_adddata(pPVar1,&uStack_1d,1);" (call_expression "ssh_pkt_adddata(pPVar1,&uStack_1d,1)" identifier (argument_list "(pPVar1,&uStack_1d,1)" ( identifier , (pointer_expression "&uStack_1d" & identifier) , number_literal ))) ;) })))
(translation_unit "void FUN_0004656c(undefined4 *param_1,undefined *param_2,int *param_3)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  piVar3 = (int *)*param_1;\n  if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }\n  (*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);\n  param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);\n  piVar1 = (int *)0x1;\n  local_1d = 0;\n  FUN_0003a494(param_2,&local_1d);\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));\n  FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));\n  FUN_00045998();\n  *param_3 = 0x235f;\nLAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }\n  puVar5 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  iVar4 = *piVar3;\n  if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }\n  (**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);\n  uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);\n  FUN_00045998(iVar4,uVar2);\n  *piVar1 = 0x237f;\n  return;\n}\n\n" (function_definition "void FUN_0004656c(undefined4 *param_1,undefined *param_2,int *param_3)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  piVar3 = (int *)*param_1;\n  if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }\n  (*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);\n  param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);\n  piVar1 = (int *)0x1;\n  local_1d = 0;\n  FUN_0003a494(param_2,&local_1d);\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));\n  FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));\n  FUN_00045998();\n  *param_3 = 0x235f;\nLAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }\n  puVar5 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  iVar4 = *piVar3;\n  if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }\n  (**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);\n  uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);\n  FUN_00045998(iVar4,uVar2);\n  *piVar1 = 0x237f;\n  return;\n}" primitive_type (function_declarator "FUN_0004656c(undefined4 *param_1,undefined *param_2,int *param_3)" identifier (parameter_list "(undefined4 *param_1,undefined *param_2,int *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  piVar3 = (int *)*param_1;\n  if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }\n  (*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);\n  param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);\n  piVar1 = (int *)0x1;\n  local_1d = 0;\n  FUN_0003a494(param_2,&local_1d);\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));\n  FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));\n  FUN_00045998();\n  *param_3 = 0x235f;\nLAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }\n  puVar5 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  iVar4 = *piVar3;\n  if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }\n  (**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);\n  uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);\n  FUN_00045998(iVar4,uVar2);\n  *piVar1 = 0x237f;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined1 local_1d;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar3 = (int *)*param_1;" (assignment_expression "piVar3 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" if (parenthesized_expression "(param_3 == (int *)0x0)" ( (binary_expression "param_3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }" { (expression_statement "param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);" (assignment_expression "param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4)" identifier = (cast_expression "(int *)(*(code *)PTR_safemalloc_000b01e8)(1,4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b01e8)(1,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,4)" ( number_literal , number_literal ))))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) }) (else_clause "else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" else (if_statement "if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" if (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) )) (compound_statement "{\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" { (expression_statement "piVar1 = param_3;" (assignment_expression "piVar1 = param_3" identifier = identifier) ;) (if_statement "if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }" if (parenthesized_expression "((*param_3 == 0x235f) && (param_2 != (undefined *)0x0))" ( (binary_expression "(*param_3 == 0x235f) && (param_2 != (undefined *)0x0)" (parenthesized_expression "(*param_3 == 0x235f)" ( (binary_expression "*param_3 == 0x235f" (pointer_expression "*param_3" * identifier) == number_literal) )) && (parenthesized_expression "(param_2 != (undefined *)0x0)" ( (binary_expression "param_2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }" { (if_statement "if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 99)" ( (binary_expression "*(int *)(param_2 + 8) == 99" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }" { (expression_statement "param_2 = PTR_s_Present_000b0188 + 0x42a4;" (assignment_expression "param_2 = PTR_s_Present_000b0188 + 0x42a4" identifier = (binary_expression "PTR_s_Present_000b0188 + 0x42a4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_logevent_000b020c)(piVar3[0x44]);" (call_expression "(*(code *)PTR_logevent_000b020c)(piVar3[0x44])" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" ( (pointer_expression "*(code *)PTR_logevent_000b020c" * (cast_expression "(code *)PTR_logevent_000b020c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3[0x44])" ( (subscript_expression "piVar3[0x44]" identifier [ number_literal ]) ))) ;) (expression_statement "piVar3[0x13] = 1;" (assignment_expression "piVar3[0x13] = 1" (subscript_expression "piVar3[0x13]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }" else (compound_statement "{\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }" { (expression_statement "param_2 = PTR_s_Present_000b0188 + 0x42bc;" (assignment_expression "param_2 = PTR_s_Present_000b0188 + 0x42bc" identifier = (binary_expression "PTR_s_Present_000b0188 + 0x42bc" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_logevent_000b020c)();" (call_expression "(*(code *)PTR_logevent_000b020c)()" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" ( (pointer_expression "*(code *)PTR_logevent_000b020c" * (cast_expression "(code *)PTR_logevent_000b020c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }))) })) (expression_statement "(*(code *)PTR_safefree_000b01b0)();" (call_expression "(*(code *)PTR_safefree_000b01b0)()" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar3 = param_3;" (assignment_expression "piVar3 = param_3" identifier = identifier) ;) (goto_statement "goto LAB_000465d8;" goto statement_identifier ;) })))) (expression_statement "(*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);" (call_expression "(*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280)" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" ( (pointer_expression "*(code *)PTR_logevent_000b020c" * (cast_expression "(code *)PTR_logevent_000b020c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280)" ( (subscript_expression "piVar3[0x44]" identifier [ number_literal ]) , (binary_expression "PTR_s_Present_000b0188 + 0x4280" identifier + number_literal) ))) ;) (expression_statement "param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);" (assignment_expression "param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" identifier = (cast_expression "(undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" identifier (argument_list "(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" ( (subscript_expression "piVar3[0x4a]" identifier [ number_literal ]) , (binary_expression "PTR_s_Present_000b0188 + 0x429c" identifier + number_literal) , (binary_expression "PTR_LAB_000b0644 + 0x656c" identifier + number_literal) , identifier ))))) ;) (expression_statement "piVar1 = (int *)0x1;" (assignment_expression "piVar1 = (int *)0x1" identifier = (cast_expression "(int *)0x1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_1d = 0;" (assignment_expression "local_1d = 0" identifier = number_literal) ;) (expression_statement "FUN_0003a494(param_2,&local_1d);" (call_expression "FUN_0003a494(param_2,&local_1d)" identifier (argument_list "(param_2,&local_1d)" ( identifier , (pointer_expression "&local_1d" & identifier) ))) ;) (expression_statement "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));" (call_expression "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc))" identifier (argument_list "(param_2,*(undefined4 *)(piVar3[100] + 0xc))" ( identifier , (pointer_expression "*(undefined4 *)(piVar3[100] + 0xc)" * (cast_expression "(undefined4 *)(piVar3[100] + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3[100] + 0xc)" ( (binary_expression "piVar3[100] + 0xc" (subscript_expression "piVar3[100]" identifier [ number_literal ]) + number_literal) )))) ))) ;) (expression_statement "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));" (call_expression "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10))" identifier (argument_list "(param_2,*(undefined4 *)(piVar3[100] + 0x10))" ( identifier , (pointer_expression "*(undefined4 *)(piVar3[100] + 0x10)" * (cast_expression "(undefined4 *)(piVar3[100] + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3[100] + 0x10)" ( (binary_expression "piVar3[100] + 0x10" (subscript_expression "piVar3[100]" identifier [ number_literal ]) + number_literal) )))) ))) ;) (expression_statement "FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));" (call_expression "FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc))" identifier (argument_list "(param_2,*(undefined4 *)(piVar3[99] + 0xc))" ( identifier , (pointer_expression "*(undefined4 *)(piVar3[99] + 0xc)" * (cast_expression "(undefined4 *)(piVar3[99] + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3[99] + 0xc)" ( (binary_expression "piVar3[99] + 0xc" (subscript_expression "piVar3[99]" identifier [ number_literal ]) + number_literal) )))) ))) ;) (expression_statement "FUN_00045998();" (call_expression "FUN_00045998()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_3 = 0x235f;" (assignment_expression "*param_3 = 0x235f" (pointer_expression "*param_3" * identifier) = number_literal) ;) (labeled_statement "LAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }" statement_identifier : (if_statement "if (local_1c == *(int *)puVar5) {\n    return;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar5)" ( (binary_expression "local_1c == *(int *)puVar5" identifier == (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "puVar5 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000b0c70" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }" { (expression_statement "piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);" (assignment_expression "piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4)" identifier = (cast_expression "(int *)(**(code **)(puVar5 + 0x69aa0))(1,4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar5 + 0x69aa0))(1,4)" (parenthesized_expression "(**(code **)(puVar5 + 0x69aa0))" ( (pointer_expression "**(code **)(puVar5 + 0x69aa0)" * (pointer_expression "*(code **)(puVar5 + 0x69aa0)" * (cast_expression "(code **)(puVar5 + 0x69aa0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x69aa0)" ( (binary_expression "puVar5 + 0x69aa0" identifier + number_literal) ))))) )) (argument_list "(1,4)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) }) (else_clause "else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" else (if_statement "if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" { (if_statement "if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }" if (parenthesized_expression "((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0))" ( (binary_expression "(*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)" (parenthesized_expression "(*piVar1 == 0x237f)" ( (binary_expression "*piVar1 == 0x237f" (pointer_expression "*piVar1" * identifier) == number_literal) )) && (parenthesized_expression "(param_2 != (undefined *)0x0)" ( (binary_expression "param_2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }" { (if_statement "if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 99)" ( (binary_expression "*(int *)(param_2 + 8) == 99" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }" { (expression_statement "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);" (call_expression "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c)" (parenthesized_expression "(**(code **)(puVar5 + 0x69ac4))" ( (pointer_expression "**(code **)(puVar5 + 0x69ac4)" * (pointer_expression "*(code **)(puVar5 + 0x69ac4)" * (cast_expression "(code **)(puVar5 + 0x69ac4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x69ac4)" ( (binary_expression "puVar5 + 0x69ac4" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c)" ( (pointer_expression "*(undefined4 *)(iVar4 + 0x110)" * (cast_expression "(undefined4 *)(iVar4 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x110)" ( (binary_expression "iVar4 + 0x110" identifier + number_literal) )))) , (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x431c" (pointer_expression "*(int *)(puVar5 + 0x69a40)" * (cast_expression "(int *)(puVar5 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x69a40)" ( (binary_expression "puVar5 + 0x69a40" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "*(undefined4 *)(iVar4 + 0x48) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 0x48) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 0x48)" * (cast_expression "(undefined4 *)(iVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x48)" ( (binary_expression "iVar4 + 0x48" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }" else (compound_statement "{\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }" { (expression_statement "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);" (call_expression "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338)" (parenthesized_expression "(**(code **)(puVar5 + 0x69ac4))" ( (pointer_expression "**(code **)(puVar5 + 0x69ac4)" * (pointer_expression "*(code **)(puVar5 + 0x69ac4)" * (cast_expression "(code **)(puVar5 + 0x69ac4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x69ac4)" ( (binary_expression "puVar5 + 0x69ac4" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338)" ( (pointer_expression "*(undefined4 *)(iVar4 + 0x110)" * (cast_expression "(undefined4 *)(iVar4 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x110)" ( (binary_expression "iVar4 + 0x110" identifier + number_literal) )))) , (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x4338" (pointer_expression "*(int *)(puVar5 + 0x69a40)" * (cast_expression "(int *)(puVar5 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x69a40)" ( (binary_expression "puVar5 + 0x69a40" identifier + number_literal) )))) + number_literal) ))) ;) }))) })) (expression_statement "(**(code **)(puVar5 + 0x69a68))(piVar1);" (call_expression "(**(code **)(puVar5 + 0x69a68))(piVar1)" (parenthesized_expression "(**(code **)(puVar5 + 0x69a68))" ( (pointer_expression "**(code **)(puVar5 + 0x69a68)" * (pointer_expression "*(code **)(puVar5 + 0x69a68)" * (cast_expression "(code **)(puVar5 + 0x69a68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x69a68)" ( (binary_expression "puVar5 + 0x69a68" identifier + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))) (expression_statement "(**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);" (call_expression "(**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4)" (parenthesized_expression "(**(code **)(puVar5 + 0x69ac4))" ( (pointer_expression "**(code **)(puVar5 + 0x69ac4)" * (pointer_expression "*(code **)(puVar5 + 0x69ac4)" * (cast_expression "(code **)(puVar5 + 0x69ac4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x69ac4)" ( (binary_expression "puVar5 + 0x69ac4" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4)" ( (pointer_expression "*(undefined4 *)(iVar4 + 0x110)" * (cast_expression "(undefined4 *)(iVar4 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x110)" ( (binary_expression "iVar4 + 0x110" identifier + number_literal) )))) , (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x42d4" (pointer_expression "*(int *)(puVar5 + 0x69a40)" * (cast_expression "(int *)(puVar5 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x69a40)" ( (binary_expression "puVar5 + 0x69a40" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);" (assignment_expression "uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1)" identifier = (call_expression "FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1)" identifier (argument_list "(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1)" ( (pointer_expression "*(undefined4 *)(iVar4 + 0x128)" * (cast_expression "(undefined4 *)(iVar4 + 0x128)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x128)" ( (binary_expression "iVar4 + 0x128" identifier + number_literal) )))) , (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x4300" (pointer_expression "*(int *)(puVar5 + 0x69a40)" * (cast_expression "(int *)(puVar5 + 0x69a40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x69a40)" ( (binary_expression "puVar5 + 0x69a40" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar5 + 0x69efc) + 0x6748" (pointer_expression "*(int *)(puVar5 + 0x69efc)" * (cast_expression "(int *)(puVar5 + 0x69efc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x69efc)" ( (binary_expression "puVar5 + 0x69efc" identifier + number_literal) )))) + number_literal) , identifier )))) ;) (expression_statement "FUN_00045998(iVar4,uVar2);" (call_expression "FUN_00045998(iVar4,uVar2)" identifier (argument_list "(iVar4,uVar2)" ( identifier , identifier ))) ;) (expression_statement "*piVar1 = 0x237f;" (assignment_expression "*piVar1 = 0x237f" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) }))) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_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 (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) }))) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (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) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_0004656c(undefined4 *param_1,undefined *param_2,int *param_3)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  piVar3 = (int *)*param_1;\n  if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }\n  (*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);\n  param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);\n  piVar1 = (int *)0x1;\n  local_1d = 0;\n  FUN_0003a494(param_2,&local_1d);\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));\n  FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));\n  FUN_00045998();\n  *param_3 = 0x235f;\nLAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }\n  puVar5 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  iVar4 = *piVar3;\n  if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }\n  (**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);\n  uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);\n  FUN_00045998(iVar4,uVar2);\n  *piVar1 = 0x237f;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004656c(undefined4 *param_1,undefined *param_2,int *param_3)" (identifier "FUN_0004656c") (parameter_list "(undefined4 *param_1,undefined *param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined *param_2" (type_identifier "undefined") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar5 = PTR___stack_chk_guard_000b0c9c;\n  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  piVar3 = (int *)*param_1;\n  if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }\n  (*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);\n  param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);\n  piVar1 = (int *)0x1;\n  local_1d = 0;\n  FUN_0003a494(param_2,&local_1d);\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));\n  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));\n  FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));\n  FUN_00045998();\n  *param_3 = 0x235f;\nLAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }\n  puVar5 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  iVar4 = *piVar3;\n  if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }\n  (**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);\n  uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);\n  FUN_00045998(iVar4,uVar2);\n  *piVar1 = 0x237f;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined1 local_1d;" (type_identifier "undefined1") (identifier "local_1d") (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar5 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000b0c9c" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_guard_000b0c9c")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000b0c9c" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b0c9c")))) (; ";")) (expression_statement "piVar3 = (int *)*param_1;" (assignment_expression "piVar3 = (int *)*param_1" (identifier "piVar3") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (param_3 == (int *)0x0) {\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }\n  else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" (if "if") (parenthesized_expression "(param_3 == (int *)0x0)" (( "(") (binary_expression "param_3 == (int *)0x0" (identifier "param_3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);\n    *param_3 = 0;\n  }" ({ "{") (expression_statement "param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);" (assignment_expression "param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4)" (identifier "param_3") (= "=") (cast_expression "(int *)(*(code *)PTR_safemalloc_000b01e8)(1,4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_000b01e8)(1,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000b01e8" (* "*") (cast_expression "(code *)PTR_safemalloc_000b01e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000b01e8"))) () ")")) (argument_list "(1,4)" (( "(") (number_literal "1") (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" (else "else") (if_statement "if (*param_3 != 0) {\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" (if "if") (parenthesized_expression "(*param_3 != 0)" (( "(") (binary_expression "*param_3 != 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar1 = param_3;\n    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }\n    (*(code *)PTR_safefree_000b01b0)();\n    piVar3 = param_3;\n    goto LAB_000465d8;\n  }" ({ "{") (expression_statement "piVar1 = param_3;" (assignment_expression "piVar1 = param_3" (identifier "piVar1") (= "=") (identifier "param_3")) (; ";")) (if_statement "if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }" (if "if") (parenthesized_expression "((*param_3 == 0x235f) && (param_2 != (undefined *)0x0))" (( "(") (binary_expression "(*param_3 == 0x235f) && (param_2 != (undefined *)0x0)" (parenthesized_expression "(*param_3 == 0x235f)" (( "(") (binary_expression "*param_3 == 0x235f" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (number_literal "0x235f")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != (undefined *)0x0)" (( "(") (binary_expression "param_2 != (undefined *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n      if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }\n    }" ({ "{") (if_statement "if (*(int *)(param_2 + 8) == 99) {\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }\n      else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 8) == 99)" (( "(") (binary_expression "*(int *)(param_2 + 8) == 99" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "99")) () ")")) (compound_statement "{\n        param_2 = PTR_s_Present_000b0188 + 0x42a4;\n        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);\n        piVar3[0x13] = 1;\n      }" ({ "{") (expression_statement "param_2 = PTR_s_Present_000b0188 + 0x42a4;" (assignment_expression "param_2 = PTR_s_Present_000b0188 + 0x42a4" (identifier "param_2") (= "=") (binary_expression "PTR_s_Present_000b0188 + 0x42a4" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "0x42a4"))) (; ";")) (expression_statement "(*(code *)PTR_logevent_000b020c)(piVar3[0x44]);" (call_expression "(*(code *)PTR_logevent_000b020c)(piVar3[0x44])" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" (( "(") (pointer_expression "*(code *)PTR_logevent_000b020c" (* "*") (cast_expression "(code *)PTR_logevent_000b020c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_logevent_000b020c"))) () ")")) (argument_list "(piVar3[0x44])" (( "(") (subscript_expression "piVar3[0x44]" (identifier "piVar3") ([ "[") (number_literal "0x44") (] "]")) () ")"))) (; ";")) (expression_statement "piVar3[0x13] = 1;" (assignment_expression "piVar3[0x13] = 1" (subscript_expression "piVar3[0x13]" (identifier "piVar3") ([ "[") (number_literal "0x13") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }" (else "else") (compound_statement "{\n        param_2 = PTR_s_Present_000b0188 + 0x42bc;\n        (*(code *)PTR_logevent_000b020c)();\n      }" ({ "{") (expression_statement "param_2 = PTR_s_Present_000b0188 + 0x42bc;" (assignment_expression "param_2 = PTR_s_Present_000b0188 + 0x42bc" (identifier "param_2") (= "=") (binary_expression "PTR_s_Present_000b0188 + 0x42bc" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "0x42bc"))) (; ";")) (expression_statement "(*(code *)PTR_logevent_000b020c)();" (call_expression "(*(code *)PTR_logevent_000b020c)()" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" (( "(") (pointer_expression "*(code *)PTR_logevent_000b020c" (* "*") (cast_expression "(code *)PTR_logevent_000b020c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_logevent_000b020c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "(*(code *)PTR_safefree_000b01b0)();" (call_expression "(*(code *)PTR_safefree_000b01b0)()" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b01b0" (* "*") (cast_expression "(code *)PTR_safefree_000b01b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b01b0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar3 = param_3;" (assignment_expression "piVar3 = param_3" (identifier "piVar3") (= "=") (identifier "param_3")) (; ";")) (goto_statement "goto LAB_000465d8;" (goto "goto") (statement_identifier "LAB_000465d8") (; ";")) (} "}"))))) (expression_statement "(*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);" (call_expression "(*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280)" (parenthesized_expression "(*(code *)PTR_logevent_000b020c)" (( "(") (pointer_expression "*(code *)PTR_logevent_000b020c" (* "*") (cast_expression "(code *)PTR_logevent_000b020c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_logevent_000b020c"))) () ")")) (argument_list "(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280)" (( "(") (subscript_expression "piVar3[0x44]" (identifier "piVar3") ([ "[") (number_literal "0x44") (] "]")) (, ",") (binary_expression "PTR_s_Present_000b0188 + 0x4280" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "0x4280")) () ")"))) (; ";")) (expression_statement "param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3);" (assignment_expression "param_2 = (undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" (identifier "param_2") (= "=") (cast_expression "(undefined *)\n            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" (identifier "FUN_0003b920") (argument_list "(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,\n                         param_3)" (( "(") (subscript_expression "piVar3[0x4a]" (identifier "piVar3") ([ "[") (number_literal "0x4a") (] "]")) (, ",") (binary_expression "PTR_s_Present_000b0188 + 0x429c" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "0x429c")) (, ",") (binary_expression "PTR_LAB_000b0644 + 0x656c" (identifier "PTR_LAB_000b0644") (+ "+") (number_literal "0x656c")) (, ",") (identifier "param_3") () ")"))))) (; ";")) (expression_statement "piVar1 = (int *)0x1;" (assignment_expression "piVar1 = (int *)0x1" (identifier "piVar1") (= "=") (cast_expression "(int *)0x1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1"))) (; ";")) (expression_statement "local_1d = 0;" (assignment_expression "local_1d = 0" (identifier "local_1d") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0003a494(param_2,&local_1d);" (call_expression "FUN_0003a494(param_2,&local_1d)" (identifier "FUN_0003a494") (argument_list "(param_2,&local_1d)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&local_1d" (& "&") (identifier "local_1d")) () ")"))) (; ";")) (expression_statement "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));" (call_expression "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc))" (identifier "FUN_0003a7dc") (argument_list "(param_2,*(undefined4 *)(piVar3[100] + 0xc))" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(piVar3[100] + 0xc)" (* "*") (cast_expression "(undefined4 *)(piVar3[100] + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3[100] + 0xc)" (( "(") (binary_expression "piVar3[100] + 0xc" (subscript_expression "piVar3[100]" (identifier "piVar3") ([ "[") (number_literal "100") (] "]")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));" (call_expression "FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10))" (identifier "FUN_0003a7dc") (argument_list "(param_2,*(undefined4 *)(piVar3[100] + 0x10))" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(piVar3[100] + 0x10)" (* "*") (cast_expression "(undefined4 *)(piVar3[100] + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3[100] + 0x10)" (( "(") (binary_expression "piVar3[100] + 0x10" (subscript_expression "piVar3[100]" (identifier "piVar3") ([ "[") (number_literal "100") (] "]")) (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));" (call_expression "FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc))" (identifier "FUN_0003a76c") (argument_list "(param_2,*(undefined4 *)(piVar3[99] + 0xc))" (( "(") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(piVar3[99] + 0xc)" (* "*") (cast_expression "(undefined4 *)(piVar3[99] + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3[99] + 0xc)" (( "(") (binary_expression "piVar3[99] + 0xc" (subscript_expression "piVar3[99]" (identifier "piVar3") ([ "[") (number_literal "99") (] "]")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00045998();" (call_expression "FUN_00045998()" (identifier "FUN_00045998") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*param_3 = 0x235f;" (assignment_expression "*param_3 = 0x235f" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0x235f")) (; ";")) (labeled_statement "LAB_000465d8:\n  if (local_1c == *(int *)puVar5) {\n    return;\n  }" (statement_identifier "LAB_000465d8") (: ":") (if_statement "if (local_1c == *(int *)puVar5) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_1c == *(int *)puVar5)" (( "(") (binary_expression "local_1c == *(int *)puVar5" (identifier "local_1c") (== "==") (pointer_expression "*(int *)puVar5" (* "*") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (expression_statement "puVar5 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000b0c70" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_fail_000b0c70")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b0c70"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" (identifier "iVar4") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }\n  else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);\n    *piVar1 = 0;\n  }" ({ "{") (expression_statement "piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);" (assignment_expression "piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(**(code **)(puVar5 + 0x69aa0))(1,4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar5 + 0x69aa0))(1,4)" (parenthesized_expression "(**(code **)(puVar5 + 0x69aa0))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x69aa0)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x69aa0)" (* "*") (cast_expression "(code **)(puVar5 + 0x69aa0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x69aa0)" (( "(") (binary_expression "puVar5 + 0x69aa0" (identifier "puVar5") (+ "+") (number_literal "0x69aa0")) () ")"))))) () ")")) (argument_list "(1,4)" (( "(") (number_literal "1") (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" (else "else") (if_statement "if (*piVar1 != 0) {\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }\n                    \n                    \n    (**(code **)(puVar5 + 0x69a68))(piVar1);\n    return;\n  }" ({ "{") (if_statement "if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }" (if "if") (parenthesized_expression "((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0))" (( "(") (binary_expression "(*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)" (parenthesized_expression "(*piVar1 == 0x237f)" (( "(") (binary_expression "*piVar1 == 0x237f" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0x237f")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != (undefined *)0x0)" (( "(") (binary_expression "param_2 != (undefined *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n      if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }\n    }" ({ "{") (if_statement "if (*(int *)(param_2 + 8) == 99) {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }\n      else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 8) == 99)" (( "(") (binary_expression "*(int *)(param_2 + 8) == 99" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "99")) () ")")) (compound_statement "{\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);\n        *(undefined4 *)(iVar4 + 0x48) = 1;\n      }" ({ "{") (expression_statement "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);" (call_expression "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c)" (parenthesized_expression "(**(code **)(puVar5 + 0x69ac4))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x69ac4)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x69ac4)" (* "*") (cast_expression "(code **)(puVar5 + 0x69ac4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x69ac4)" (( "(") (binary_expression "puVar5 + 0x69ac4" (identifier "puVar5") (+ "+") (number_literal "0x69ac4")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c)" (( "(") (pointer_expression "*(undefined4 *)(iVar4 + 0x110)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x110)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x110)" (( "(") (binary_expression "iVar4 + 0x110" (identifier "iVar4") (+ "+") (number_literal "0x110")) () ")")))) (, ",") (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x431c" (pointer_expression "*(int *)(puVar5 + 0x69a40)" (* "*") (cast_expression "(int *)(puVar5 + 0x69a40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x69a40)" (( "(") (binary_expression "puVar5 + 0x69a40" (identifier "puVar5") (+ "+") (number_literal "0x69a40")) () ")")))) (+ "+") (number_literal "0x431c")) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 0x48) = 1;" (assignment_expression "*(undefined4 *)(iVar4 + 0x48) = 1" (pointer_expression "*(undefined4 *)(iVar4 + 0x48)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x48)" (( "(") (binary_expression "iVar4 + 0x48" (identifier "iVar4") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }" (else "else") (compound_statement "{\n        (**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);\n      }" ({ "{") (expression_statement "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);" (call_expression "(**(code **)(puVar5 + 0x69ac4))\n                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338)" (parenthesized_expression "(**(code **)(puVar5 + 0x69ac4))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x69ac4)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x69ac4)" (* "*") (cast_expression "(code **)(puVar5 + 0x69ac4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x69ac4)" (( "(") (binary_expression "puVar5 + 0x69ac4" (identifier "puVar5") (+ "+") (number_literal "0x69ac4")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338)" (( "(") (pointer_expression "*(undefined4 *)(iVar4 + 0x110)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x110)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x110)" (( "(") (binary_expression "iVar4 + 0x110" (identifier "iVar4") (+ "+") (number_literal "0x110")) () ")")))) (, ",") (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x4338" (pointer_expression "*(int *)(puVar5 + 0x69a40)" (* "*") (cast_expression "(int *)(puVar5 + 0x69a40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x69a40)" (( "(") (binary_expression "puVar5 + 0x69a40" (identifier "puVar5") (+ "+") (number_literal "0x69a40")) () ")")))) (+ "+") (number_literal "0x4338")) () ")"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "(**(code **)(puVar5 + 0x69a68))(piVar1);" (call_expression "(**(code **)(puVar5 + 0x69a68))(piVar1)" (parenthesized_expression "(**(code **)(puVar5 + 0x69a68))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x69a68)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x69a68)" (* "*") (cast_expression "(code **)(puVar5 + 0x69a68)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x69a68)" (( "(") (binary_expression "puVar5 + 0x69a68" (identifier "puVar5") (+ "+") (number_literal "0x69a68")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))))) (expression_statement "(**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);" (call_expression "(**(code **)(puVar5 + 0x69ac4))\n            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4)" (parenthesized_expression "(**(code **)(puVar5 + 0x69ac4))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x69ac4)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x69ac4)" (* "*") (cast_expression "(code **)(puVar5 + 0x69ac4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x69ac4)" (( "(") (binary_expression "puVar5 + 0x69ac4" (identifier "puVar5") (+ "+") (number_literal "0x69ac4")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4)" (( "(") (pointer_expression "*(undefined4 *)(iVar4 + 0x110)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x110)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x110)" (( "(") (binary_expression "iVar4 + 0x110" (identifier "iVar4") (+ "+") (number_literal "0x110")) () ")")))) (, ",") (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x42d4" (pointer_expression "*(int *)(puVar5 + 0x69a40)" (* "*") (cast_expression "(int *)(puVar5 + 0x69a40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x69a40)" (( "(") (binary_expression "puVar5 + 0x69a40" (identifier "puVar5") (+ "+") (number_literal "0x69a40")) () ")")))) (+ "+") (number_literal "0x42d4")) () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);" (assignment_expression "uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1)" (identifier "uVar2") (= "=") (call_expression "FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1)" (identifier "FUN_0003b920") (argument_list "(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,\n                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1)" (( "(") (pointer_expression "*(undefined4 *)(iVar4 + 0x128)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x128)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x128)" (( "(") (binary_expression "iVar4 + 0x128" (identifier "iVar4") (+ "+") (number_literal "0x128")) () ")")))) (, ",") (binary_expression "*(int *)(puVar5 + 0x69a40) + 0x4300" (pointer_expression "*(int *)(puVar5 + 0x69a40)" (* "*") (cast_expression "(int *)(puVar5 + 0x69a40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x69a40)" (( "(") (binary_expression "puVar5 + 0x69a40" (identifier "puVar5") (+ "+") (number_literal "0x69a40")) () ")")))) (+ "+") (number_literal "0x4300")) (, ",") (binary_expression "*(int *)(puVar5 + 0x69efc) + 0x6748" (pointer_expression "*(int *)(puVar5 + 0x69efc)" (* "*") (cast_expression "(int *)(puVar5 + 0x69efc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x69efc)" (( "(") (binary_expression "puVar5 + 0x69efc" (identifier "puVar5") (+ "+") (number_literal "0x69efc")) () ")")))) (+ "+") (number_literal "0x6748")) (, ",") (identifier "piVar1") () ")")))) (; ";")) (expression_statement "FUN_00045998(iVar4,uVar2);" (call_expression "FUN_00045998(iVar4,uVar2)" (identifier "FUN_00045998") (argument_list "(iVar4,uVar2)" (( "(") (identifier "iVar4") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "*piVar1 = 0x237f;" (assignment_expression "*piVar1 = 0x237f" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (number_literal "0x237f")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *c,type_2 *var_2,void *var_1)

{
  int *var_5;
  type_2 *pPVar1;
  type_3 psVar2;
  type_4 *var_6;
  type_5 uStack_1d;
  int var_4;
  
  var_6 = PTR___stack_chk_guard_000b0c9c;
  var_4 = *(int *)PTR___stack_chk_guard_000b0c9c;
  psVar2 = c->ssh;
  if (var_1 == (void *)0x0) {
    var_1 = (void *)(*(type_6 *)PTR_safemalloc_000b01e8)(1,4);
    *(type_7 *)var_1 = 0;
  }
  else {
                    /* WARNING: Load size is inaccurate */
    if (*var_1 != 0) {
      var_5 = (int *)var_1;
      if ((*var_1 == 0x235f) && (var_2 != (type_2 *)0x0)) {
        if (var_2->type == 99) {
          var_2 = (type_2 *)(var_3 + 0x42a4);
          (*(type_6 *)PTR_logevent_000b020c)(psVar2->frontend);
          psVar2->X11_fwd_enabled = 1;
        }
        else {
          var_2 = (type_2 *)(var_3 + 0x42bc);
          (*(type_6 *)PTR_logevent_000b020c)();
        }
      }
      (*(type_6 *)PTR_safefree_000b01b0)();
      if (var_4 == *(int *)var_6) {
        return;
      }
      var_6 = PTR___stack_chk_fail_000b0c70;
      (*(type_6 *)PTR___stack_chk_fail_000b0c70)();
                    /* WARNING: Load size is inaccurate */
      psVar2 = *var_1;
      if (var_5 == (int *)0x0) {
        var_5 = (int *)(**(type_6 **)(var_6 + 0x69aa0))(1,4);
        *var_5 = 0;
      }
      else if (*var_5 != 0) {
        if ((*var_5 == 0x237f) && (var_2 != (type_2 *)0x0)) {
          if (var_2->type == 99) {
            (**(type_6 **)(var_6 + 0x69ac4))(psVar2->frontend,*(int *)(var_6 + 0x69a40) + 0x431c);
            psVar2->agentfwd_enabled = 1;
          }
          else {
            (**(type_6 **)(var_6 + 0x69ac4))(psVar2->frontend,*(int *)(var_6 + 0x69a40) + 0x4338);
          }
        }
                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
        (**(type_6 **)(var_6 + 0x69a68))(var_5);
        return;
      }
      (**(type_6 **)(var_6 + 0x69ac4))(psVar2->frontend,*(int *)(var_6 + 0x69a40) + 0x42d4);
      pPVar1 = var_7(psVar2->mainchan,(char *)(*(int *)(var_6 + 0x69a40) + 0x4300),
                                 (cchandler_fn_t)(*(int *)(var_6 + 0x69efc) + 0x6748),var_5);
      var_8(psVar2,pPVar1);
      *var_5 = 0x237f;
      return;
    }
  }
  (*(type_6 *)PTR_logevent_000b020c)(psVar2->frontend,var_3 + 0x4280);
  pPVar1 = var_7(psVar2->mainchan,var_3 + 0x429c,
                             (cchandler_fn_t)(var_9 + 0x656c),var_1);
  uStack_1d = 0;
                    /* WARNING: Subroutine does not return */
  var_10(pPVar1,&uStack_1d,1);
}


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

void MASKED(undefined4 *param_1,undefined *param_2,int *param_3)

{
  int *piVar1;
  undefined4 uVar2;
  int *piVar3;
  int iVar4;
  undefined *puVar5;
  undefined1 local_1d;
  int local_1c;
  
  puVar5 = PTR___stack_chk_guard_000b0c9c;
  local_1c = *(int *)PTR___stack_chk_guard_000b0c9c;
  piVar3 = (int *)*param_1;
  if (param_3 == (int *)0x0) {
    param_3 = (int *)(*(code *)PTR_safemalloc_000b01e8)(1,4);
    *param_3 = 0;
  }
  else if (*param_3 != 0) {
    piVar1 = param_3;
    if ((*param_3 == 0x235f) && (param_2 != (undefined *)0x0)) {
      if (*(int *)(param_2 + 8) == 99) {
        param_2 = PTR_s_Present_000b0188 + 0x42a4;
        (*(code *)PTR_logevent_000b020c)(piVar3[0x44]);
        piVar3[0x13] = 1;
      }
      else {
        param_2 = PTR_s_Present_000b0188 + 0x42bc;
        (*(code *)PTR_logevent_000b020c)();
      }
    }
    (*(code *)PTR_safefree_000b01b0)();
    piVar3 = param_3;
    goto LAB_000465d8;
  }
  (*(code *)PTR_logevent_000b020c)(piVar3[0x44],PTR_s_Present_000b0188 + 0x4280);
  param_2 = (undefined *)
            FUN_0003b920(piVar3[0x4a],PTR_s_Present_000b0188 + 0x429c,PTR_LAB_000b0644 + 0x656c,
                         param_3);
  piVar1 = (int *)0x1;
  local_1d = 0;
  FUN_0003a494(param_2,&local_1d);
  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0xc));
  FUN_0003a7dc(param_2,*(undefined4 *)(piVar3[100] + 0x10));
  FUN_0003a76c(param_2,*(undefined4 *)(piVar3[99] + 0xc));
  FUN_00045998();
  *param_3 = 0x235f;
LAB_000465d8:
  if (local_1c == *(int *)puVar5) {
    return;
  }
  puVar5 = PTR___stack_chk_fail_000b0c70;
  (*(code *)PTR___stack_chk_fail_000b0c70)();
  iVar4 = *piVar3;
  if (piVar1 == (int *)0x0) {
    piVar1 = (int *)(**(code **)(puVar5 + 0x69aa0))(1,4);
    *piVar1 = 0;
  }
  else if (*piVar1 != 0) {
    if ((*piVar1 == 0x237f) && (param_2 != (undefined *)0x0)) {
      if (*(int *)(param_2 + 8) == 99) {
        (**(code **)(puVar5 + 0x69ac4))
                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x431c);
        *(undefined4 *)(iVar4 + 0x48) = 1;
      }
      else {
        (**(code **)(puVar5 + 0x69ac4))
                  (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x4338);
      }
    }
                    /* WARNING: Could not recover jumptable at 0x000467c4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(puVar5 + 0x69a68))(piVar1);
    return;
  }
  (**(code **)(puVar5 + 0x69ac4))
            (*(undefined4 *)(iVar4 + 0x110),*(int *)(puVar5 + 0x69a40) + 0x42d4);
  uVar2 = FUN_0003b920(*(undefined4 *)(iVar4 + 0x128),*(int *)(puVar5 + 0x69a40) + 0x4300,
                       *(int *)(puVar5 + 0x69efc) + 0x6748,piVar1);
  FUN_00045998(iVar4,uVar2);
  *piVar1 = 0x237f;
  return;
}

