
/* WARNING: Removing unreachable block (ram,0x000309ec) */

void allow_sigwinch(_Bool allow)

{
  int iVar1;
  uint uVar2;
  char *pcVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined3 in_register_00000010;
  uint flag;
  uint *puVar6;
  undefined *puVar7;
  sigset_t winch;
  
  puVar7 = PTR___stack_chk_guard_000780f8;
  iVar1 = *(int *)PTR___stack_chk_guard_000780f8;
  (*(code *)PTR_sigemptyset_00077f5c)(&winch);
  (*(code *)PTR_sigaddset_00077fd8)(&winch,0x14);
  flag = 2;
  if (CONCAT31(in_register_00000010,allow) == 0) {
    flag = 1;
  }
  (*(code *)PTR_sigprocmask_0007811c)(flag,&winch,0);
  if (iVar1 == *(int *)puVar7) {
    return;
  }
  puVar7 = PTR___stack_chk_fail_000780c0;
  (*(code *)PTR___stack_chk_fail_000780c0)();
  if (flag == 4) {
    puVar6 = *(uint **)(puVar7 + 0x46d88);
    if ((int)(*puVar6 << 8) < 0) {
      show_restricted_warning();
      return;
    }
    *puVar6 = *puVar6 ^ 0x10;
    signal_init();
    uVar2 = *puVar6 >> 4 & 1;
LAB_000308d8:
    if (flag != 0x14) goto LAB_000308e8;
  }
  else {
    puVar6 = (uint *)(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4);
    uVar2 = 1 << (flag & 0x1f) ^ *puVar6;
    *puVar6 = uVar2;
    if (flag - 3 < 0x1f) {
                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))
                ();
      return;
    }
    uVar2 = uVar2 >> (flag & 0x1f) & 1;
    if (flag != 5) goto LAB_000308d8;
  }
  uVar2 = uVar2 ^ 1;
LAB_000308e8:
  pcVar3 = flagtostr(flag);
  uVar4 = (**(code **)(puVar7 + 0x478b8))(0,pcVar3,5);
  if (uVar2 != 0) {
    uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3968,5);
    statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);
    return;
  }
  uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3970);
  statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);
  return;
}



/* WARNING: Removing unreachable block (ram,0x000309ec) */

void allow_sigwinch(int param_1)

{
  uint uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  uint uVar4;
  uint *puVar5;
  undefined *puVar6;
  undefined1 auStack_94 [128];
  int local_14;
  
  puVar6 = PTR___stack_chk_guard_000780f8;
  local_14 = *(int *)PTR___stack_chk_guard_000780f8;
  (*(code *)PTR_sigemptyset_00077f5c)(auStack_94);
  (*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);
  uVar4 = 2;
  if (param_1 == 0) {
    uVar4 = 1;
  }
  (*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);
  if (local_14 == *(int *)puVar6) {
    return;
  }
  puVar6 = PTR___stack_chk_fail_000780c0;
  (*(code *)PTR___stack_chk_fail_000780c0)();
  if (uVar4 == 4) {
    puVar5 = *(uint **)(puVar6 + 0x46d88);
    if ((int)(*puVar5 << 8) < 0) {
      show_restricted_warning();
      return;
    }
    *puVar5 = *puVar5 ^ 0x10;
    signal_init();
    uVar1 = *puVar5 >> 4 & 1;
LAB_000308d8:
    if (uVar4 != 0x14) goto LAB_000308e8;
  }
  else {
    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);
    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;
    *puVar5 = uVar1;
    if (uVar4 - 3 < 0x1f) {
                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)
      )();
      return;
    }
    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;
    if (uVar4 != 5) goto LAB_000308d8;
  }
  uVar1 = uVar1 ^ 1;
LAB_000308e8:
  uVar2 = flagtostr(uVar4);
  uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);
  if (uVar1 != 0) {
    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);
    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);
    return;
  }
  uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);
  statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);
  return;
}


lui gp,0x5
addiu gp,gp,-0x1244
addu gp,gp,t9
addiu sp,sp,-0xb0
lw t9,-0x75c4(gp)
sw s1,0xa4(sp)
lw s1,-0x7428(gp)
sw s0,0xa0(sp)
addiu s0,sp,0x1c
sw ra,0xac(sp)
sw gp,0x10(sp)
sw s2,0xa8(sp)
or s2,a0,zero
lw v0,0x0(s1)
or a0,s0,zero
sw v0,0x9c(sp)
jalr t9
_nop
li a1,0x14
lw gp,0x10(sp)
lw t9,-0x7548(gp)
jalr t9
_or a0,s0,zero
li v0,0x1
lw gp,0x10(sp)
li a0,0x2
or a2,zero,zero
movz a0,v0,s2
lw t9,-0x7404(gp)
jalr t9
_or a1,s0,zero
lw v1,0x9c(sp)
lw v0,0x0(s1)
bne v1,v0,0x00030808
_lw gp,0x10(sp)
lw ra,0xac(sp)
lw s2,0xa8(sp)
lw s1,0xa4(sp)
lw s0,0xa0(sp)
jr ra
_addiu sp,sp,0xb0
lw t9,-0x7460(gp)
jalr t9
_nop
(translation_unit "/* WARNING: Removing unreachable block (ram,0x000309ec) */\n\nvoid allow_sigwinch(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint *puVar5;\n  undefined *puVar6;\n  undefined1 auStack_94 [128];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000780f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(auStack_94);\n  (*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);\n  uVar4 = 2;\n  if (param_1 == 0) {\n    uVar4 = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }\n  uVar1 = uVar1 ^ 1;\nLAB_000308e8:\n  uVar2 = flagtostr(uVar4);\n  uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);\n  if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }\n  uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);\n  statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n  return;\n}\n\n" comment (function_definition "void allow_sigwinch(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint *puVar5;\n  undefined *puVar6;\n  undefined1 auStack_94 [128];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000780f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(auStack_94);\n  (*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);\n  uVar4 = 2;\n  if (param_1 == 0) {\n    uVar4 = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }\n  uVar1 = uVar1 ^ 1;\nLAB_000308e8:\n  uVar2 = flagtostr(uVar4);\n  uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);\n  if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }\n  uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);\n  statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n  return;\n}" primitive_type (function_declarator "allow_sigwinch(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint *puVar5;\n  undefined *puVar6;\n  undefined1 auStack_94 [128];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000780f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(auStack_94);\n  (*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);\n  uVar4 = 2;\n  if (param_1 == 0) {\n    uVar4 = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }\n  uVar1 = uVar1 ^ 1;\nLAB_000308e8:\n  uVar2 = flagtostr(uVar4);\n  uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);\n  if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }\n  uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);\n  statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 auStack_94 [128];" type_identifier (array_declarator "auStack_94 [128]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000780f8;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000780f8" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000780f8;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000780f8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000780f8" * (cast_expression "(int *)PTR___stack_chk_guard_000780f8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_sigemptyset_00077f5c)(auStack_94);" (call_expression "(*(code *)PTR_sigemptyset_00077f5c)(auStack_94)" (parenthesized_expression "(*(code *)PTR_sigemptyset_00077f5c)" ( (pointer_expression "*(code *)PTR_sigemptyset_00077f5c" * (cast_expression "(code *)PTR_sigemptyset_00077f5c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_94)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);" (call_expression "(*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14)" (parenthesized_expression "(*(code *)PTR_sigaddset_00077fd8)" ( (pointer_expression "*(code *)PTR_sigaddset_00077fd8" * (cast_expression "(code *)PTR_sigaddset_00077fd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_94,0x14)" ( identifier , number_literal ))) ;) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (if_statement "if (param_1 == 0) {\n    uVar4 = 1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar4 = 1;\n  }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);" (call_expression "(*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0007811c)" ( (pointer_expression "*(code *)PTR_sigprocmask_0007811c" * (cast_expression "(code *)PTR_sigprocmask_0007811c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,auStack_94,0)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_14 == *(int *)puVar6) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar6)" ( (binary_expression "local_14 == *(int *)puVar6" identifier == (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar6 = PTR___stack_chk_fail_000780c0;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000780c0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000780c0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000780c0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000780c0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000780c0" * (cast_expression "(code *)PTR___stack_chk_fail_000780c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }" if (parenthesized_expression "(uVar4 == 4)" ( (binary_expression "uVar4 == 4" identifier == number_literal) )) (compound_statement "{\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }" { (expression_statement "puVar5 = *(uint **)(puVar6 + 0x46d88);" (assignment_expression "puVar5 = *(uint **)(puVar6 + 0x46d88)" identifier = (pointer_expression "*(uint **)(puVar6 + 0x46d88)" * (cast_expression "(uint **)(puVar6 + 0x46d88)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x46d88)" ( (binary_expression "puVar6 + 0x46d88" identifier + number_literal) ))))) ;) (if_statement "if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }" if (parenthesized_expression "((int)(*puVar5 << 8) < 0)" ( (binary_expression "(int)(*puVar5 << 8) < 0" (cast_expression "(int)(*puVar5 << 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*puVar5 << 8)" ( (binary_expression "*puVar5 << 8" (pointer_expression "*puVar5" * identifier) << number_literal) ))) < number_literal) )) (compound_statement "{\n      show_restricted_warning();\n      return;\n    }" { (expression_statement "show_restricted_warning();" (call_expression "show_restricted_warning()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "*puVar5 = *puVar5 ^ 0x10;" (assignment_expression "*puVar5 = *puVar5 ^ 0x10" (pointer_expression "*puVar5" * identifier) = (binary_expression "*puVar5 ^ 0x10" (pointer_expression "*puVar5" * identifier) ^ number_literal)) ;) (expression_statement "signal_init();" (call_expression "signal_init()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *puVar5 >> 4 & 1;" (assignment_expression "uVar1 = *puVar5 >> 4 & 1" identifier = (binary_expression "*puVar5 >> 4 & 1" (binary_expression "*puVar5 >> 4" (pointer_expression "*puVar5" * identifier) >> number_literal) & number_literal)) ;) (labeled_statement "LAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;" statement_identifier : (if_statement "if (uVar4 != 0x14) goto LAB_000308e8;" if (parenthesized_expression "(uVar4 != 0x14)" ( (binary_expression "uVar4 != 0x14" identifier != number_literal) )) (goto_statement "goto LAB_000308e8;" goto statement_identifier ;))) }) (else_clause "else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }" else (compound_statement "{\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }" { (expression_statement "puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);" (assignment_expression "puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4)" identifier = (cast_expression "(uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4)" ( (binary_expression "*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4" (pointer_expression "*(int *)(puVar6 + 0x46d88)" * (cast_expression "(int *)(puVar6 + 0x46d88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d88)" ( (binary_expression "puVar6 + 0x46d88" identifier + number_literal) )))) + (binary_expression "(uVar4 >> 5) * 4" (parenthesized_expression "(uVar4 >> 5)" ( (binary_expression "uVar4 >> 5" identifier >> number_literal) )) * number_literal)) )))) ;) (expression_statement "uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;" (assignment_expression "uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5" identifier = (binary_expression "1 << (uVar4 & 0x1f) ^ *puVar5" (binary_expression "1 << (uVar4 & 0x1f)" number_literal << (parenthesized_expression "(uVar4 & 0x1f)" ( (binary_expression "uVar4 & 0x1f" identifier & number_literal) ))) ^ (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (if_statement "if (uVar4 - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }" if (parenthesized_expression "(uVar4 - 3 < 0x1f)" ( (binary_expression "uVar4 - 3 < 0x1f" (binary_expression "uVar4 - 3" identifier - number_literal) < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }" { comment comment (expression_statement "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();" (call_expression "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )()" (parenthesized_expression "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )" ( (pointer_expression "*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)" * (cast_expression "(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)" ( (binary_expression "puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c" (binary_expression "puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" * (cast_expression "(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" ( (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4" (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3ea0" (pointer_expression "*(int *)(puVar6 + 0x46d48)" * (cast_expression "(int *)(puVar6 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d48)" ( (binary_expression "puVar6 + 0x46d48" identifier + number_literal) )))) + number_literal) + (binary_expression "(uVar4 - 3) * 4" (parenthesized_expression "(uVar4 - 3)" ( (binary_expression "uVar4 - 3" identifier - number_literal) )) * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;" (assignment_expression "uVar1 = uVar1 >> (uVar4 & 0x1f) & 1" identifier = (binary_expression "uVar1 >> (uVar4 & 0x1f) & 1" (binary_expression "uVar1 >> (uVar4 & 0x1f)" identifier >> (parenthesized_expression "(uVar4 & 0x1f)" ( (binary_expression "uVar4 & 0x1f" identifier & number_literal) ))) & number_literal)) ;) (if_statement "if (uVar4 != 5) goto LAB_000308d8;" if (parenthesized_expression "(uVar4 != 5)" ( (binary_expression "uVar4 != 5" identifier != number_literal) )) (goto_statement "goto LAB_000308d8;" goto statement_identifier ;)) }))) (expression_statement "uVar1 = uVar1 ^ 1;" (assignment_expression "uVar1 = uVar1 ^ 1" identifier = (binary_expression "uVar1 ^ 1" identifier ^ number_literal)) ;) (labeled_statement "LAB_000308e8:\n  uVar2 = flagtostr(uVar4);" statement_identifier : (expression_statement "uVar2 = flagtostr(uVar4);" (assignment_expression "uVar2 = flagtostr(uVar4)" identifier = (call_expression "flagtostr(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;)) (expression_statement "uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);" (assignment_expression "uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5)" identifier = (call_expression "(**(code **)(puVar6 + 0x478b8))(0,uVar2,5)" (parenthesized_expression "(**(code **)(puVar6 + 0x478b8))" ( (pointer_expression "**(code **)(puVar6 + 0x478b8)" * (pointer_expression "*(code **)(puVar6 + 0x478b8)" * (cast_expression "(code **)(puVar6 + 0x478b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x478b8)" ( (binary_expression "puVar6 + 0x478b8" identifier + number_literal) ))))) )) (argument_list "(0,uVar2,5)" ( number_literal , identifier , number_literal )))) ;) (if_statement "if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }" { (expression_statement "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);" (assignment_expression "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5)" identifier = (call_expression "(**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5)" (parenthesized_expression "(**(code **)(puVar6 + 0x478b8))" ( (pointer_expression "**(code **)(puVar6 + 0x478b8)" * (pointer_expression "*(code **)(puVar6 + 0x478b8)" * (cast_expression "(code **)(puVar6 + 0x478b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x478b8)" ( (binary_expression "puVar6 + 0x478b8" identifier + number_literal) ))))) )) (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3968" (pointer_expression "*(int *)(puVar6 + 0x46d48)" * (cast_expression "(int *)(puVar6 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d48)" ( (binary_expression "puVar6 + 0x46d48" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (expression_statement "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);" (call_expression "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" identifier (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x397c" (pointer_expression "*(int *)(puVar6 + 0x46d48)" * (cast_expression "(int *)(puVar6 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d48)" ( (binary_expression "puVar6 + 0x46d48" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);" (assignment_expression "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970)" identifier = (call_expression "(**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970)" (parenthesized_expression "(**(code **)(puVar6 + 0x478b8))" ( (pointer_expression "**(code **)(puVar6 + 0x478b8)" * (pointer_expression "*(code **)(puVar6 + 0x478b8)" * (cast_expression "(code **)(puVar6 + 0x478b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x478b8)" ( (binary_expression "puVar6 + 0x478b8" identifier + number_literal) ))))) )) (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x3970)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3970" (pointer_expression "*(int *)(puVar6 + 0x46d48)" * (cast_expression "(int *)(puVar6 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d48)" ( (binary_expression "puVar6 + 0x46d48" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);" (call_expression "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" identifier (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x397c" (pointer_expression "*(int *)(puVar6 + 0x46d48)" * (cast_expression "(int *)(puVar6 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d48)" ( (binary_expression "puVar6 + 0x46d48" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Removing unreachable block (ram,0x000309ec) */\n\nvoid allow_sigwinch(_Bool allow)\n\n{\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined3 in_register_00000010;\n  uint flag;\n  uint *puVar6;\n  undefined *puVar7;\n  sigset_t winch;\n  \n  puVar7 = PTR___stack_chk_guard_000780f8;\n  iVar1 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(&winch);\n  (*(code *)PTR_sigaddset_00077fd8)(&winch,0x14);\n  flag = 2;\n  if (CONCAT31(in_register_00000010,allow) == 0) {\n    flag = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(flag,&winch,0);\n  if (iVar1 == *(int *)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (flag == 4) {\n    puVar6 = *(uint **)(puVar7 + 0x46d88);\n    if ((int)(*puVar6 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar6 = *puVar6 ^ 0x10;\n    signal_init();\n    uVar2 = *puVar6 >> 4 & 1;\nLAB_000308d8:\n    if (flag != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar6 = (uint *)(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4);\n    uVar2 = 1 << (flag & 0x1f) ^ *puVar6;\n    *puVar6 = uVar2;\n    if (flag - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))\n                ();\n      return;\n    }\n    uVar2 = uVar2 >> (flag & 0x1f) & 1;\n    if (flag != 5) goto LAB_000308d8;\n  }\n  uVar2 = uVar2 ^ 1;\nLAB_000308e8:\n  pcVar3 = flagtostr(flag);\n  uVar4 = (**(code **)(puVar7 + 0x478b8))(0,pcVar3,5);\n  if (uVar2 != 0) {\n    uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3968,5);\n    statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);\n    return;\n  }\n  uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3970);\n  statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);\n  return;\n}\n\n" comment (function_definition "void allow_sigwinch(_Bool allow)\n\n{\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined3 in_register_00000010;\n  uint flag;\n  uint *puVar6;\n  undefined *puVar7;\n  sigset_t winch;\n  \n  puVar7 = PTR___stack_chk_guard_000780f8;\n  iVar1 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(&winch);\n  (*(code *)PTR_sigaddset_00077fd8)(&winch,0x14);\n  flag = 2;\n  if (CONCAT31(in_register_00000010,allow) == 0) {\n    flag = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(flag,&winch,0);\n  if (iVar1 == *(int *)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (flag == 4) {\n    puVar6 = *(uint **)(puVar7 + 0x46d88);\n    if ((int)(*puVar6 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar6 = *puVar6 ^ 0x10;\n    signal_init();\n    uVar2 = *puVar6 >> 4 & 1;\nLAB_000308d8:\n    if (flag != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar6 = (uint *)(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4);\n    uVar2 = 1 << (flag & 0x1f) ^ *puVar6;\n    *puVar6 = uVar2;\n    if (flag - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))\n                ();\n      return;\n    }\n    uVar2 = uVar2 >> (flag & 0x1f) & 1;\n    if (flag != 5) goto LAB_000308d8;\n  }\n  uVar2 = uVar2 ^ 1;\nLAB_000308e8:\n  pcVar3 = flagtostr(flag);\n  uVar4 = (**(code **)(puVar7 + 0x478b8))(0,pcVar3,5);\n  if (uVar2 != 0) {\n    uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3968,5);\n    statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);\n    return;\n  }\n  uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3970);\n  statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);\n  return;\n}" primitive_type (function_declarator "allow_sigwinch(_Bool allow)" identifier (parameter_list "(_Bool allow)" ( (parameter_declaration "_Bool allow" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined3 in_register_00000010;\n  uint flag;\n  uint *puVar6;\n  undefined *puVar7;\n  sigset_t winch;\n  \n  puVar7 = PTR___stack_chk_guard_000780f8;\n  iVar1 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(&winch);\n  (*(code *)PTR_sigaddset_00077fd8)(&winch,0x14);\n  flag = 2;\n  if (CONCAT31(in_register_00000010,allow) == 0) {\n    flag = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(flag,&winch,0);\n  if (iVar1 == *(int *)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (flag == 4) {\n    puVar6 = *(uint **)(puVar7 + 0x46d88);\n    if ((int)(*puVar6 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar6 = *puVar6 ^ 0x10;\n    signal_init();\n    uVar2 = *puVar6 >> 4 & 1;\nLAB_000308d8:\n    if (flag != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar6 = (uint *)(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4);\n    uVar2 = 1 << (flag & 0x1f) ^ *puVar6;\n    *puVar6 = uVar2;\n    if (flag - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))\n                ();\n      return;\n    }\n    uVar2 = uVar2 >> (flag & 0x1f) & 1;\n    if (flag != 5) goto LAB_000308d8;\n  }\n  uVar2 = uVar2 ^ 1;\nLAB_000308e8:\n  pcVar3 = flagtostr(flag);\n  uVar4 = (**(code **)(puVar7 + 0x478b8))(0,pcVar3,5);\n  if (uVar2 != 0) {\n    uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3968,5);\n    statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);\n    return;\n  }\n  uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3970);\n  statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined3 in_register_00000010;" type_identifier identifier ;) (declaration "uint flag;" type_identifier identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "sigset_t winch;" type_identifier identifier ;) (expression_statement "puVar7 = PTR___stack_chk_guard_000780f8;" (assignment_expression "puVar7 = PTR___stack_chk_guard_000780f8" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_000780f8;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_000780f8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000780f8" * (cast_expression "(int *)PTR___stack_chk_guard_000780f8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_sigemptyset_00077f5c)(&winch);" (call_expression "(*(code *)PTR_sigemptyset_00077f5c)(&winch)" (parenthesized_expression "(*(code *)PTR_sigemptyset_00077f5c)" ( (pointer_expression "*(code *)PTR_sigemptyset_00077f5c" * (cast_expression "(code *)PTR_sigemptyset_00077f5c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&winch)" ( (pointer_expression "&winch" & identifier) ))) ;) (expression_statement "(*(code *)PTR_sigaddset_00077fd8)(&winch,0x14);" (call_expression "(*(code *)PTR_sigaddset_00077fd8)(&winch,0x14)" (parenthesized_expression "(*(code *)PTR_sigaddset_00077fd8)" ( (pointer_expression "*(code *)PTR_sigaddset_00077fd8" * (cast_expression "(code *)PTR_sigaddset_00077fd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&winch,0x14)" ( (pointer_expression "&winch" & identifier) , number_literal ))) ;) (expression_statement "flag = 2;" (assignment_expression "flag = 2" identifier = number_literal) ;) (if_statement "if (CONCAT31(in_register_00000010,allow) == 0) {\n    flag = 1;\n  }" if (parenthesized_expression "(CONCAT31(in_register_00000010,allow) == 0)" ( (binary_expression "CONCAT31(in_register_00000010,allow) == 0" (call_expression "CONCAT31(in_register_00000010,allow)" identifier (argument_list "(in_register_00000010,allow)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n    flag = 1;\n  }" { (expression_statement "flag = 1;" (assignment_expression "flag = 1" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_sigprocmask_0007811c)(flag,&winch,0);" (call_expression "(*(code *)PTR_sigprocmask_0007811c)(flag,&winch,0)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0007811c)" ( (pointer_expression "*(code *)PTR_sigprocmask_0007811c" * (cast_expression "(code *)PTR_sigprocmask_0007811c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(flag,&winch,0)" ( identifier , (pointer_expression "&winch" & identifier) , number_literal ))) ;) (if_statement "if (iVar1 == *(int *)puVar7) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar7)" ( (binary_expression "iVar1 == *(int *)puVar7" identifier == (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar7 = PTR___stack_chk_fail_000780c0;" (assignment_expression "puVar7 = PTR___stack_chk_fail_000780c0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000780c0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000780c0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000780c0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000780c0" * (cast_expression "(code *)PTR___stack_chk_fail_000780c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (flag == 4) {\n    puVar6 = *(uint **)(puVar7 + 0x46d88);\n    if ((int)(*puVar6 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar6 = *puVar6 ^ 0x10;\n    signal_init();\n    uVar2 = *puVar6 >> 4 & 1;\nLAB_000308d8:\n    if (flag != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar6 = (uint *)(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4);\n    uVar2 = 1 << (flag & 0x1f) ^ *puVar6;\n    *puVar6 = uVar2;\n    if (flag - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))\n                ();\n      return;\n    }\n    uVar2 = uVar2 >> (flag & 0x1f) & 1;\n    if (flag != 5) goto LAB_000308d8;\n  }" if (parenthesized_expression "(flag == 4)" ( (binary_expression "flag == 4" identifier == number_literal) )) (compound_statement "{\n    puVar6 = *(uint **)(puVar7 + 0x46d88);\n    if ((int)(*puVar6 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar6 = *puVar6 ^ 0x10;\n    signal_init();\n    uVar2 = *puVar6 >> 4 & 1;\nLAB_000308d8:\n    if (flag != 0x14) goto LAB_000308e8;\n  }" { (expression_statement "puVar6 = *(uint **)(puVar7 + 0x46d88);" (assignment_expression "puVar6 = *(uint **)(puVar7 + 0x46d88)" identifier = (pointer_expression "*(uint **)(puVar7 + 0x46d88)" * (cast_expression "(uint **)(puVar7 + 0x46d88)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x46d88)" ( (binary_expression "puVar7 + 0x46d88" identifier + number_literal) ))))) ;) (if_statement "if ((int)(*puVar6 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }" if (parenthesized_expression "((int)(*puVar6 << 8) < 0)" ( (binary_expression "(int)(*puVar6 << 8) < 0" (cast_expression "(int)(*puVar6 << 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*puVar6 << 8)" ( (binary_expression "*puVar6 << 8" (pointer_expression "*puVar6" * identifier) << number_literal) ))) < number_literal) )) (compound_statement "{\n      show_restricted_warning();\n      return;\n    }" { (expression_statement "show_restricted_warning();" (call_expression "show_restricted_warning()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "*puVar6 = *puVar6 ^ 0x10;" (assignment_expression "*puVar6 = *puVar6 ^ 0x10" (pointer_expression "*puVar6" * identifier) = (binary_expression "*puVar6 ^ 0x10" (pointer_expression "*puVar6" * identifier) ^ number_literal)) ;) (expression_statement "signal_init();" (call_expression "signal_init()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = *puVar6 >> 4 & 1;" (assignment_expression "uVar2 = *puVar6 >> 4 & 1" identifier = (binary_expression "*puVar6 >> 4 & 1" (binary_expression "*puVar6 >> 4" (pointer_expression "*puVar6" * identifier) >> number_literal) & number_literal)) ;) (labeled_statement "LAB_000308d8:\n    if (flag != 0x14) goto LAB_000308e8;" statement_identifier : (if_statement "if (flag != 0x14) goto LAB_000308e8;" if (parenthesized_expression "(flag != 0x14)" ( (binary_expression "flag != 0x14" identifier != number_literal) )) (goto_statement "goto LAB_000308e8;" goto statement_identifier ;))) }) (else_clause "else {\n    puVar6 = (uint *)(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4);\n    uVar2 = 1 << (flag & 0x1f) ^ *puVar6;\n    *puVar6 = uVar2;\n    if (flag - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))\n                ();\n      return;\n    }\n    uVar2 = uVar2 >> (flag & 0x1f) & 1;\n    if (flag != 5) goto LAB_000308d8;\n  }" else (compound_statement "{\n    puVar6 = (uint *)(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4);\n    uVar2 = 1 << (flag & 0x1f) ^ *puVar6;\n    *puVar6 = uVar2;\n    if (flag - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))\n                ();\n      return;\n    }\n    uVar2 = uVar2 >> (flag & 0x1f) & 1;\n    if (flag != 5) goto LAB_000308d8;\n  }" { (expression_statement "puVar6 = (uint *)(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4);" (assignment_expression "puVar6 = (uint *)(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4)" identifier = (cast_expression "(uint *)(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4)" ( (binary_expression "*(int *)(puVar7 + 0x46d88) + (flag >> 5) * 4" (pointer_expression "*(int *)(puVar7 + 0x46d88)" * (cast_expression "(int *)(puVar7 + 0x46d88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x46d88)" ( (binary_expression "puVar7 + 0x46d88" identifier + number_literal) )))) + (binary_expression "(flag >> 5) * 4" (parenthesized_expression "(flag >> 5)" ( (binary_expression "flag >> 5" identifier >> number_literal) )) * number_literal)) )))) ;) (expression_statement "uVar2 = 1 << (flag & 0x1f) ^ *puVar6;" (assignment_expression "uVar2 = 1 << (flag & 0x1f) ^ *puVar6" identifier = (binary_expression "1 << (flag & 0x1f) ^ *puVar6" (binary_expression "1 << (flag & 0x1f)" number_literal << (parenthesized_expression "(flag & 0x1f)" ( (binary_expression "flag & 0x1f" identifier & number_literal) ))) ^ (pointer_expression "*puVar6" * identifier))) ;) (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" * identifier) = identifier) ;) (if_statement "if (flag - 3 < 0x1f) {\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))\n                ();\n      return;\n    }" if (parenthesized_expression "(flag - 3 < 0x1f)" ( (binary_expression "flag - 3 < 0x1f" (binary_expression "flag - 3" identifier - number_literal) < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))\n                ();\n      return;\n    }" { comment comment (expression_statement "(*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))\n                ();" (call_expression "(*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))\n                ()" (parenthesized_expression "(*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c))" ( (pointer_expression "*(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c)" * (cast_expression "(code *)(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c)" ( (binary_expression "puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4) + 0x4ed0c" (binary_expression "puVar7 + *(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4)" * (cast_expression "(int *)(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4)" ( (binary_expression "*(int *)(puVar7 + 0x46d48) + 0x3ea0 + (flag - 3) * 4" (binary_expression "*(int *)(puVar7 + 0x46d48) + 0x3ea0" (pointer_expression "*(int *)(puVar7 + 0x46d48)" * (cast_expression "(int *)(puVar7 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x46d48)" ( (binary_expression "puVar7 + 0x46d48" identifier + number_literal) )))) + number_literal) + (binary_expression "(flag - 3) * 4" (parenthesized_expression "(flag - 3)" ( (binary_expression "flag - 3" identifier - number_literal) )) * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = uVar2 >> (flag & 0x1f) & 1;" (assignment_expression "uVar2 = uVar2 >> (flag & 0x1f) & 1" identifier = (binary_expression "uVar2 >> (flag & 0x1f) & 1" (binary_expression "uVar2 >> (flag & 0x1f)" identifier >> (parenthesized_expression "(flag & 0x1f)" ( (binary_expression "flag & 0x1f" identifier & number_literal) ))) & number_literal)) ;) (if_statement "if (flag != 5) goto LAB_000308d8;" if (parenthesized_expression "(flag != 5)" ( (binary_expression "flag != 5" identifier != number_literal) )) (goto_statement "goto LAB_000308d8;" goto statement_identifier ;)) }))) (expression_statement "uVar2 = uVar2 ^ 1;" (assignment_expression "uVar2 = uVar2 ^ 1" identifier = (binary_expression "uVar2 ^ 1" identifier ^ number_literal)) ;) (labeled_statement "LAB_000308e8:\n  pcVar3 = flagtostr(flag);" statement_identifier : (expression_statement "pcVar3 = flagtostr(flag);" (assignment_expression "pcVar3 = flagtostr(flag)" identifier = (call_expression "flagtostr(flag)" identifier (argument_list "(flag)" ( identifier )))) ;)) (expression_statement "uVar4 = (**(code **)(puVar7 + 0x478b8))(0,pcVar3,5);" (assignment_expression "uVar4 = (**(code **)(puVar7 + 0x478b8))(0,pcVar3,5)" identifier = (call_expression "(**(code **)(puVar7 + 0x478b8))(0,pcVar3,5)" (parenthesized_expression "(**(code **)(puVar7 + 0x478b8))" ( (pointer_expression "**(code **)(puVar7 + 0x478b8)" * (pointer_expression "*(code **)(puVar7 + 0x478b8)" * (cast_expression "(code **)(puVar7 + 0x478b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x478b8)" ( (binary_expression "puVar7 + 0x478b8" identifier + number_literal) ))))) )) (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (if_statement "if (uVar2 != 0) {\n    uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3968,5);\n    statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);\n    return;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3968,5);\n    statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);\n    return;\n  }" { (expression_statement "uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3968,5);" (assignment_expression "uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3968,5)" identifier = (call_expression "(**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3968,5)" (parenthesized_expression "(**(code **)(puVar7 + 0x478b8))" ( (pointer_expression "**(code **)(puVar7 + 0x478b8)" * (pointer_expression "*(code **)(puVar7 + 0x478b8)" * (cast_expression "(code **)(puVar7 + 0x478b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x478b8)" ( (binary_expression "puVar7 + 0x478b8" identifier + number_literal) ))))) )) (argument_list "(0,*(int *)(puVar7 + 0x46d48) + 0x3968,5)" ( number_literal , (binary_expression "*(int *)(puVar7 + 0x46d48) + 0x3968" (pointer_expression "*(int *)(puVar7 + 0x46d48)" * (cast_expression "(int *)(puVar7 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x46d48)" ( (binary_expression "puVar7 + 0x46d48" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (expression_statement "statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);" (call_expression "statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5)" identifier (argument_list "(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5)" ( identifier , (cast_expression "(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x46d48) + 0x397c)" ( (binary_expression "*(int *)(puVar7 + 0x46d48) + 0x397c" (pointer_expression "*(int *)(puVar7 + 0x46d48)" * (cast_expression "(int *)(puVar7 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x46d48)" ( (binary_expression "puVar7 + 0x46d48" identifier + number_literal) )))) + number_literal) ))) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3970);" (assignment_expression "uVar5 = (**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3970)" identifier = (call_expression "(**(code **)(puVar7 + 0x478b8))(0,*(int *)(puVar7 + 0x46d48) + 0x3970)" (parenthesized_expression "(**(code **)(puVar7 + 0x478b8))" ( (pointer_expression "**(code **)(puVar7 + 0x478b8)" * (pointer_expression "*(code **)(puVar7 + 0x478b8)" * (cast_expression "(code **)(puVar7 + 0x478b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x478b8)" ( (binary_expression "puVar7 + 0x478b8" identifier + number_literal) ))))) )) (argument_list "(0,*(int *)(puVar7 + 0x46d48) + 0x3970)" ( number_literal , (binary_expression "*(int *)(puVar7 + 0x46d48) + 0x3970" (pointer_expression "*(int *)(puVar7 + 0x46d48)" * (cast_expression "(int *)(puVar7 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x46d48)" ( (binary_expression "puVar7 + 0x46d48" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5);" (call_expression "statusline(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5)" identifier (argument_list "(HUSH,(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c),uVar4,uVar5)" ( identifier , (cast_expression "(char *)(*(int *)(puVar7 + 0x46d48) + 0x397c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0x46d48) + 0x397c)" ( (binary_expression "*(int *)(puVar7 + 0x46d48) + 0x397c" (pointer_expression "*(int *)(puVar7 + 0x46d48)" * (cast_expression "(int *)(puVar7 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x46d48)" ( (binary_expression "puVar7 + 0x46d48" identifier + number_literal) )))) + number_literal) ))) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void allow_sigwinch(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint *puVar5;\n  undefined *puVar6;\n  undefined1 auStack_94 [128];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000780f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(auStack_94);\n  (*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);\n  uVar4 = 2;\n  if (param_1 == 0) {\n    uVar4 = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }\n  uVar1 = uVar1 ^ 1;\nLAB_000308e8:\n  uVar2 = flagtostr(uVar4);\n  uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);\n  if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }\n  uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);\n  statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n  return;\n}\n\n" (function_definition "void allow_sigwinch(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint *puVar5;\n  undefined *puVar6;\n  undefined1 auStack_94 [128];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000780f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(auStack_94);\n  (*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);\n  uVar4 = 2;\n  if (param_1 == 0) {\n    uVar4 = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }\n  uVar1 = uVar1 ^ 1;\nLAB_000308e8:\n  uVar2 = flagtostr(uVar4);\n  uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);\n  if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }\n  uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);\n  statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n  return;\n}" primitive_type (function_declarator "allow_sigwinch(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint *puVar5;\n  undefined *puVar6;\n  undefined1 auStack_94 [128];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000780f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(auStack_94);\n  (*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);\n  uVar4 = 2;\n  if (param_1 == 0) {\n    uVar4 = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }\n  uVar1 = uVar1 ^ 1;\nLAB_000308e8:\n  uVar2 = flagtostr(uVar4);\n  uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);\n  if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }\n  uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);\n  statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 auStack_94 [128];" type_identifier (array_declarator "auStack_94 [128]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000780f8;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000780f8" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000780f8;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000780f8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000780f8" * (cast_expression "(int *)PTR___stack_chk_guard_000780f8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_sigemptyset_00077f5c)(auStack_94);" (call_expression "(*(code *)PTR_sigemptyset_00077f5c)(auStack_94)" (parenthesized_expression "(*(code *)PTR_sigemptyset_00077f5c)" ( (pointer_expression "*(code *)PTR_sigemptyset_00077f5c" * (cast_expression "(code *)PTR_sigemptyset_00077f5c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_94)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);" (call_expression "(*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14)" (parenthesized_expression "(*(code *)PTR_sigaddset_00077fd8)" ( (pointer_expression "*(code *)PTR_sigaddset_00077fd8" * (cast_expression "(code *)PTR_sigaddset_00077fd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_94,0x14)" ( identifier , number_literal ))) ;) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (if_statement "if (param_1 == 0) {\n    uVar4 = 1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar4 = 1;\n  }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);" (call_expression "(*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0007811c)" ( (pointer_expression "*(code *)PTR_sigprocmask_0007811c" * (cast_expression "(code *)PTR_sigprocmask_0007811c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,auStack_94,0)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_14 == *(int *)puVar6) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar6)" ( (binary_expression "local_14 == *(int *)puVar6" identifier == (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar6 = PTR___stack_chk_fail_000780c0;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000780c0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000780c0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000780c0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000780c0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000780c0" * (cast_expression "(code *)PTR___stack_chk_fail_000780c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }" if (parenthesized_expression "(uVar4 == 4)" ( (binary_expression "uVar4 == 4" identifier == number_literal) )) (compound_statement "{\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }" { (expression_statement "puVar5 = *(uint **)(puVar6 + 0x46d88);" (assignment_expression "puVar5 = *(uint **)(puVar6 + 0x46d88)" identifier = (pointer_expression "*(uint **)(puVar6 + 0x46d88)" * (cast_expression "(uint **)(puVar6 + 0x46d88)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x46d88)" ( (binary_expression "puVar6 + 0x46d88" identifier + number_literal) ))))) ;) (if_statement "if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }" if (parenthesized_expression "((int)(*puVar5 << 8) < 0)" ( (binary_expression "(int)(*puVar5 << 8) < 0" (cast_expression "(int)(*puVar5 << 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*puVar5 << 8)" ( (binary_expression "*puVar5 << 8" (pointer_expression "*puVar5" * identifier) << number_literal) ))) < number_literal) )) (compound_statement "{\n      show_restricted_warning();\n      return;\n    }" { (expression_statement "show_restricted_warning();" (call_expression "show_restricted_warning()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "*puVar5 = *puVar5 ^ 0x10;" (assignment_expression "*puVar5 = *puVar5 ^ 0x10" (pointer_expression "*puVar5" * identifier) = (binary_expression "*puVar5 ^ 0x10" (pointer_expression "*puVar5" * identifier) ^ number_literal)) ;) (expression_statement "signal_init();" (call_expression "signal_init()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *puVar5 >> 4 & 1;" (assignment_expression "uVar1 = *puVar5 >> 4 & 1" identifier = (binary_expression "*puVar5 >> 4 & 1" (binary_expression "*puVar5 >> 4" (pointer_expression "*puVar5" * identifier) >> number_literal) & number_literal)) ;) (labeled_statement "LAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;" statement_identifier : (if_statement "if (uVar4 != 0x14) goto LAB_000308e8;" if (parenthesized_expression "(uVar4 != 0x14)" ( (binary_expression "uVar4 != 0x14" identifier != number_literal) )) (goto_statement "goto LAB_000308e8;" goto statement_identifier ;))) }) (else_clause "else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }" else (compound_statement "{\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }" { (expression_statement "puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);" (assignment_expression "puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4)" identifier = (cast_expression "(uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4)" ( (binary_expression "*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4" (pointer_expression "*(int *)(puVar6 + 0x46d88)" * (cast_expression "(int *)(puVar6 + 0x46d88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d88)" ( (binary_expression "puVar6 + 0x46d88" identifier + number_literal) )))) + (binary_expression "(uVar4 >> 5) * 4" (parenthesized_expression "(uVar4 >> 5)" ( (binary_expression "uVar4 >> 5" identifier >> number_literal) )) * number_literal)) )))) ;) (expression_statement "uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;" (assignment_expression "uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5" identifier = (binary_expression "1 << (uVar4 & 0x1f) ^ *puVar5" (binary_expression "1 << (uVar4 & 0x1f)" number_literal << (parenthesized_expression "(uVar4 & 0x1f)" ( (binary_expression "uVar4 & 0x1f" identifier & number_literal) ))) ^ (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (if_statement "if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }" if (parenthesized_expression "(uVar4 - 3 < 0x1f)" ( (binary_expression "uVar4 - 3 < 0x1f" (binary_expression "uVar4 - 3" identifier - number_literal) < number_literal) )) (compound_statement "{\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }" { (expression_statement "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();" (call_expression "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )()" (parenthesized_expression "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )" ( (pointer_expression "*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)" * (cast_expression "(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)" ( (binary_expression "puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c" (binary_expression "puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" * (cast_expression "(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" ( (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4" (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3ea0" (pointer_expression "*(int *)(puVar6 + 0x46d48)" * (cast_expression "(int *)(puVar6 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d48)" ( (binary_expression "puVar6 + 0x46d48" identifier + number_literal) )))) + number_literal) + (binary_expression "(uVar4 - 3) * 4" (parenthesized_expression "(uVar4 - 3)" ( (binary_expression "uVar4 - 3" identifier - number_literal) )) * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;" (assignment_expression "uVar1 = uVar1 >> (uVar4 & 0x1f) & 1" identifier = (binary_expression "uVar1 >> (uVar4 & 0x1f) & 1" (binary_expression "uVar1 >> (uVar4 & 0x1f)" identifier >> (parenthesized_expression "(uVar4 & 0x1f)" ( (binary_expression "uVar4 & 0x1f" identifier & number_literal) ))) & number_literal)) ;) (if_statement "if (uVar4 != 5) goto LAB_000308d8;" if (parenthesized_expression "(uVar4 != 5)" ( (binary_expression "uVar4 != 5" identifier != number_literal) )) (goto_statement "goto LAB_000308d8;" goto statement_identifier ;)) }))) (expression_statement "uVar1 = uVar1 ^ 1;" (assignment_expression "uVar1 = uVar1 ^ 1" identifier = (binary_expression "uVar1 ^ 1" identifier ^ number_literal)) ;) (labeled_statement "LAB_000308e8:\n  uVar2 = flagtostr(uVar4);" statement_identifier : (expression_statement "uVar2 = flagtostr(uVar4);" (assignment_expression "uVar2 = flagtostr(uVar4)" identifier = (call_expression "flagtostr(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;)) (expression_statement "uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);" (assignment_expression "uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5)" identifier = (call_expression "(**(code **)(puVar6 + 0x478b8))(0,uVar2,5)" (parenthesized_expression "(**(code **)(puVar6 + 0x478b8))" ( (pointer_expression "**(code **)(puVar6 + 0x478b8)" * (pointer_expression "*(code **)(puVar6 + 0x478b8)" * (cast_expression "(code **)(puVar6 + 0x478b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x478b8)" ( (binary_expression "puVar6 + 0x478b8" identifier + number_literal) ))))) )) (argument_list "(0,uVar2,5)" ( number_literal , identifier , number_literal )))) ;) (if_statement "if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }" { (expression_statement "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);" (assignment_expression "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5)" identifier = (call_expression "(**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5)" (parenthesized_expression "(**(code **)(puVar6 + 0x478b8))" ( (pointer_expression "**(code **)(puVar6 + 0x478b8)" * (pointer_expression "*(code **)(puVar6 + 0x478b8)" * (cast_expression "(code **)(puVar6 + 0x478b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x478b8)" ( (binary_expression "puVar6 + 0x478b8" identifier + number_literal) ))))) )) (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3968" (pointer_expression "*(int *)(puVar6 + 0x46d48)" * (cast_expression "(int *)(puVar6 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d48)" ( (binary_expression "puVar6 + 0x46d48" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (expression_statement "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);" (call_expression "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" identifier (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x397c" (pointer_expression "*(int *)(puVar6 + 0x46d48)" * (cast_expression "(int *)(puVar6 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d48)" ( (binary_expression "puVar6 + 0x46d48" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);" (assignment_expression "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970)" identifier = (call_expression "(**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970)" (parenthesized_expression "(**(code **)(puVar6 + 0x478b8))" ( (pointer_expression "**(code **)(puVar6 + 0x478b8)" * (pointer_expression "*(code **)(puVar6 + 0x478b8)" * (cast_expression "(code **)(puVar6 + 0x478b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x478b8)" ( (binary_expression "puVar6 + 0x478b8" identifier + number_literal) ))))) )) (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x3970)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3970" (pointer_expression "*(int *)(puVar6 + 0x46d48)" * (cast_expression "(int *)(puVar6 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d48)" ( (binary_expression "puVar6 + 0x46d48" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);" (call_expression "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" identifier (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" ( number_literal , (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x397c" (pointer_expression "*(int *)(puVar6 + 0x46d48)" * (cast_expression "(int *)(puVar6 + 0x46d48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x46d48)" ( (binary_expression "puVar6 + 0x46d48" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT ))) ;) (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 ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) << LIT) ))) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) ^ LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) >> LIT) & LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) ^ (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) * LIT)) ))))) + LIT) )))) )) (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void allow_sigwinch(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint *puVar5;\n  undefined *puVar6;\n  undefined1 auStack_94 [128];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000780f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(auStack_94);\n  (*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);\n  uVar4 = 2;\n  if (param_1 == 0) {\n    uVar4 = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }\n  uVar1 = uVar1 ^ 1;\nLAB_000308e8:\n  uVar2 = flagtostr(uVar4);\n  uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);\n  if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }\n  uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);\n  statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n  return;\n}" (primitive_type "void") (function_declarator "allow_sigwinch(int param_1)" (identifier "allow_sigwinch") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint *puVar5;\n  undefined *puVar6;\n  undefined1 auStack_94 [128];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000780f8;\n  local_14 = *(int *)PTR___stack_chk_guard_000780f8;\n  (*(code *)PTR_sigemptyset_00077f5c)(auStack_94);\n  (*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);\n  uVar4 = 2;\n  if (param_1 == 0) {\n    uVar4 = 1;\n  }\n  (*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  puVar6 = PTR___stack_chk_fail_000780c0;\n  (*(code *)PTR___stack_chk_fail_000780c0)();\n  if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }\n  uVar1 = uVar1 ^ 1;\nLAB_000308e8:\n  uVar2 = flagtostr(uVar4);\n  uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);\n  if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }\n  uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);\n  statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined1 auStack_94 [128];" (type_identifier "undefined1") (array_declarator "auStack_94 [128]" (identifier "auStack_94") ([ "[") (number_literal "128") (] "]")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar6 = PTR___stack_chk_guard_000780f8;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000780f8" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_guard_000780f8")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000780f8;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000780f8" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000780f8" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000780f8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000780f8")))) (; ";")) (expression_statement "(*(code *)PTR_sigemptyset_00077f5c)(auStack_94);" (call_expression "(*(code *)PTR_sigemptyset_00077f5c)(auStack_94)" (parenthesized_expression "(*(code *)PTR_sigemptyset_00077f5c)" (( "(") (pointer_expression "*(code *)PTR_sigemptyset_00077f5c" (* "*") (cast_expression "(code *)PTR_sigemptyset_00077f5c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sigemptyset_00077f5c"))) () ")")) (argument_list "(auStack_94)" (( "(") (identifier "auStack_94") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);" (call_expression "(*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14)" (parenthesized_expression "(*(code *)PTR_sigaddset_00077fd8)" (( "(") (pointer_expression "*(code *)PTR_sigaddset_00077fd8" (* "*") (cast_expression "(code *)PTR_sigaddset_00077fd8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sigaddset_00077fd8"))) () ")")) (argument_list "(auStack_94,0x14)" (( "(") (identifier "auStack_94") (, ",") (number_literal "0x14") () ")"))) (; ";")) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" (identifier "uVar4") (= "=") (number_literal "2")) (; ";")) (if_statement "if (param_1 == 0) {\n    uVar4 = 1;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = 1;\n  }" ({ "{") (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);" (call_expression "(*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0)" (parenthesized_expression "(*(code *)PTR_sigprocmask_0007811c)" (( "(") (pointer_expression "*(code *)PTR_sigprocmask_0007811c" (* "*") (cast_expression "(code *)PTR_sigprocmask_0007811c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sigprocmask_0007811c"))) () ")")) (argument_list "(uVar4,auStack_94,0)" (( "(") (identifier "uVar4") (, ",") (identifier "auStack_94") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (local_14 == *(int *)puVar6) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar6)" (( "(") (binary_expression "local_14 == *(int *)puVar6" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar6" (* "*") (cast_expression "(int *)puVar6" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar6 = PTR___stack_chk_fail_000780c0;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000780c0" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_fail_000780c0")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000780c0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000780c0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000780c0)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000780c0" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000780c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000780c0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (uVar4 == 4) {\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }\n  else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }" (if "if") (parenthesized_expression "(uVar4 == 4)" (( "(") (binary_expression "uVar4 == 4" (identifier "uVar4") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n    puVar5 = *(uint **)(puVar6 + 0x46d88);\n    if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }\n    *puVar5 = *puVar5 ^ 0x10;\n    signal_init();\n    uVar1 = *puVar5 >> 4 & 1;\nLAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;\n  }" ({ "{") (expression_statement "puVar5 = *(uint **)(puVar6 + 0x46d88);" (assignment_expression "puVar5 = *(uint **)(puVar6 + 0x46d88)" (identifier "puVar5") (= "=") (pointer_expression "*(uint **)(puVar6 + 0x46d88)" (* "*") (cast_expression "(uint **)(puVar6 + 0x46d88)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x46d88)" (( "(") (binary_expression "puVar6 + 0x46d88" (identifier "puVar6") (+ "+") (number_literal "0x46d88")) () ")"))))) (; ";")) (if_statement "if ((int)(*puVar5 << 8) < 0) {\n      show_restricted_warning();\n      return;\n    }" (if "if") (parenthesized_expression "((int)(*puVar5 << 8) < 0)" (( "(") (binary_expression "(int)(*puVar5 << 8) < 0" (cast_expression "(int)(*puVar5 << 8)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(*puVar5 << 8)" (( "(") (binary_expression "*puVar5 << 8" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (<< "<<") (number_literal "8")) () ")"))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      show_restricted_warning();\n      return;\n    }" ({ "{") (expression_statement "show_restricted_warning();" (call_expression "show_restricted_warning()" (identifier "show_restricted_warning") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*puVar5 = *puVar5 ^ 0x10;" (assignment_expression "*puVar5 = *puVar5 ^ 0x10" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (binary_expression "*puVar5 ^ 0x10" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (^ "^") (number_literal "0x10"))) (; ";")) (expression_statement "signal_init();" (call_expression "signal_init()" (identifier "signal_init") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = *puVar5 >> 4 & 1;" (assignment_expression "uVar1 = *puVar5 >> 4 & 1" (identifier "uVar1") (= "=") (binary_expression "*puVar5 >> 4 & 1" (binary_expression "*puVar5 >> 4" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (>> ">>") (number_literal "4")) (& "&") (number_literal "1"))) (; ";")) (labeled_statement "LAB_000308d8:\n    if (uVar4 != 0x14) goto LAB_000308e8;" (statement_identifier "LAB_000308d8") (: ":") (if_statement "if (uVar4 != 0x14) goto LAB_000308e8;" (if "if") (parenthesized_expression "(uVar4 != 0x14)" (( "(") (binary_expression "uVar4 != 0x14" (identifier "uVar4") (!= "!=") (number_literal "0x14")) () ")")) (goto_statement "goto LAB_000308e8;" (goto "goto") (statement_identifier "LAB_000308e8") (; ";")))) (} "}")) (else_clause "else {\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }" (else "else") (compound_statement "{\n    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);\n    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;\n    *puVar5 = uVar1;\n    if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }\n    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;\n    if (uVar4 != 5) goto LAB_000308d8;\n  }" ({ "{") (expression_statement "puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);" (assignment_expression "puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4)" (identifier "puVar5") (= "=") (cast_expression "(uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4)" (( "(") (binary_expression "*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4" (pointer_expression "*(int *)(puVar6 + 0x46d88)" (* "*") (cast_expression "(int *)(puVar6 + 0x46d88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0x46d88)" (( "(") (binary_expression "puVar6 + 0x46d88" (identifier "puVar6") (+ "+") (number_literal "0x46d88")) () ")")))) (+ "+") (binary_expression "(uVar4 >> 5) * 4" (parenthesized_expression "(uVar4 >> 5)" (( "(") (binary_expression "uVar4 >> 5" (identifier "uVar4") (>> ">>") (number_literal "5")) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;" (assignment_expression "uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5" (identifier "uVar1") (= "=") (binary_expression "1 << (uVar4 & 0x1f) ^ *puVar5" (binary_expression "1 << (uVar4 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(uVar4 & 0x1f)" (( "(") (binary_expression "uVar4 & 0x1f" (identifier "uVar4") (& "&") (number_literal "0x1f")) () ")"))) (^ "^") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (uVar4 - 3 < 0x1f) {\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }" (if "if") (parenthesized_expression "(uVar4 - 3 < 0x1f)" (( "(") (binary_expression "uVar4 - 3 < 0x1f" (binary_expression "uVar4 - 3" (identifier "uVar4") (- "-") (number_literal "3")) (< "<") (number_literal "0x1f")) () ")")) (compound_statement "{\n                    \n                    \n      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();\n      return;\n    }" ({ "{") (expression_statement "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )();" (call_expression "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )()" (parenthesized_expression "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)\n      )" (( "(") (pointer_expression "*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)" (* "*") (cast_expression "(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)" (( "(") (binary_expression "puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c" (binary_expression "puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" (identifier "puVar6") (+ "+") (pointer_expression "*(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" (* "*") (cast_expression "(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4)" (( "(") (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4" (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3ea0" (pointer_expression "*(int *)(puVar6 + 0x46d48)" (* "*") (cast_expression "(int *)(puVar6 + 0x46d48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0x46d48)" (( "(") (binary_expression "puVar6 + 0x46d48" (identifier "puVar6") (+ "+") (number_literal "0x46d48")) () ")")))) (+ "+") (number_literal "0x3ea0")) (+ "+") (binary_expression "(uVar4 - 3) * 4" (parenthesized_expression "(uVar4 - 3)" (( "(") (binary_expression "uVar4 - 3" (identifier "uVar4") (- "-") (number_literal "3")) () ")")) (* "*") (number_literal "4"))) () ")"))))) (+ "+") (number_literal "0x4ed0c")) () ")")))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;" (assignment_expression "uVar1 = uVar1 >> (uVar4 & 0x1f) & 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 >> (uVar4 & 0x1f) & 1" (binary_expression "uVar1 >> (uVar4 & 0x1f)" (identifier "uVar1") (>> ">>") (parenthesized_expression "(uVar4 & 0x1f)" (( "(") (binary_expression "uVar4 & 0x1f" (identifier "uVar4") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1"))) (; ";")) (if_statement "if (uVar4 != 5) goto LAB_000308d8;" (if "if") (parenthesized_expression "(uVar4 != 5)" (( "(") (binary_expression "uVar4 != 5" (identifier "uVar4") (!= "!=") (number_literal "5")) () ")")) (goto_statement "goto LAB_000308d8;" (goto "goto") (statement_identifier "LAB_000308d8") (; ";"))) (} "}")))) (expression_statement "uVar1 = uVar1 ^ 1;" (assignment_expression "uVar1 = uVar1 ^ 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 ^ 1" (identifier "uVar1") (^ "^") (number_literal "1"))) (; ";")) (labeled_statement "LAB_000308e8:\n  uVar2 = flagtostr(uVar4);" (statement_identifier "LAB_000308e8") (: ":") (expression_statement "uVar2 = flagtostr(uVar4);" (assignment_expression "uVar2 = flagtostr(uVar4)" (identifier "uVar2") (= "=") (call_expression "flagtostr(uVar4)" (identifier "flagtostr") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";"))) (expression_statement "uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);" (assignment_expression "uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(puVar6 + 0x478b8))(0,uVar2,5)" (parenthesized_expression "(**(code **)(puVar6 + 0x478b8))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x478b8)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x478b8)" (* "*") (cast_expression "(code **)(puVar6 + 0x478b8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x478b8)" (( "(") (binary_expression "puVar6 + 0x478b8" (identifier "puVar6") (+ "+") (number_literal "0x478b8")) () ")"))))) () ")")) (argument_list "(0,uVar2,5)" (( "(") (number_literal "0") (, ",") (identifier "uVar2") (, ",") (number_literal "5") () ")")))) (; ";")) (if_statement "if (uVar1 != 0) {\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);\n    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);\n    return;\n  }" ({ "{") (expression_statement "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);" (assignment_expression "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5)" (parenthesized_expression "(**(code **)(puVar6 + 0x478b8))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x478b8)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x478b8)" (* "*") (cast_expression "(code **)(puVar6 + 0x478b8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x478b8)" (( "(") (binary_expression "puVar6 + 0x478b8" (identifier "puVar6") (+ "+") (number_literal "0x478b8")) () ")"))))) () ")")) (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5)" (( "(") (number_literal "0") (, ",") (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3968" (pointer_expression "*(int *)(puVar6 + 0x46d48)" (* "*") (cast_expression "(int *)(puVar6 + 0x46d48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0x46d48)" (( "(") (binary_expression "puVar6 + 0x46d48" (identifier "puVar6") (+ "+") (number_literal "0x46d48")) () ")")))) (+ "+") (number_literal "0x3968")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);" (call_expression "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" (identifier "statusline") (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" (( "(") (number_literal "0") (, ",") (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x397c" (pointer_expression "*(int *)(puVar6 + 0x46d48)" (* "*") (cast_expression "(int *)(puVar6 + 0x46d48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0x46d48)" (( "(") (binary_expression "puVar6 + 0x46d48" (identifier "puVar6") (+ "+") (number_literal "0x46d48")) () ")")))) (+ "+") (number_literal "0x397c")) (, ",") (identifier "uVar2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);" (assignment_expression "uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970)" (parenthesized_expression "(**(code **)(puVar6 + 0x478b8))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x478b8)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x478b8)" (* "*") (cast_expression "(code **)(puVar6 + 0x478b8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x478b8)" (( "(") (binary_expression "puVar6 + 0x478b8" (identifier "puVar6") (+ "+") (number_literal "0x478b8")) () ")"))))) () ")")) (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x3970)" (( "(") (number_literal "0") (, ",") (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x3970" (pointer_expression "*(int *)(puVar6 + 0x46d48)" (* "*") (cast_expression "(int *)(puVar6 + 0x46d48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0x46d48)" (( "(") (binary_expression "puVar6 + 0x46d48" (identifier "puVar6") (+ "+") (number_literal "0x46d48")) () ")")))) (+ "+") (number_literal "0x3970")) () ")")))) (; ";")) (expression_statement "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);" (call_expression "statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" (identifier "statusline") (argument_list "(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3)" (( "(") (number_literal "0") (, ",") (binary_expression "*(int *)(puVar6 + 0x46d48) + 0x397c" (pointer_expression "*(int *)(puVar6 + 0x46d48)" (* "*") (cast_expression "(int *)(puVar6 + 0x46d48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0x46d48)" (( "(") (binary_expression "puVar6 + 0x46d48" (identifier "puVar6") (+ "+") (number_literal "0x46d48")) () ")")))) (+ "+") (number_literal "0x397c")) (, ",") (identifier "uVar2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Removing unreachable block (ram,0x000309ec) */

void function_1(type_1 allow)

{
  int var_2;
  type_2 var_7;
  char *pcVar3;
  type_3 uVar4;
  type_3 uVar5;
  type_4 in_register_00000010;
  type_2 var_3;
  type_2 *puVar6;
  type_5 *var_4;
  type_6 winch;
  
  var_4 = PTR___stack_chk_guard_000780f8;
  var_2 = *(int *)PTR___stack_chk_guard_000780f8;
  (*(type_7 *)PTR_sigemptyset_00077f5c)(&winch);
  (*(type_7 *)PTR_sigaddset_00077fd8)(&winch,0x14);
  var_3 = 2;
  if (var_1(in_register_00000010,allow) == 0) {
    var_3 = 1;
  }
  (*(type_7 *)PTR_sigprocmask_0007811c)(var_3,&winch,0);
  if (var_2 == *(int *)var_4) {
    return;
  }
  var_4 = PTR___stack_chk_fail_000780c0;
  (*(type_7 *)PTR___stack_chk_fail_000780c0)();
  if (var_3 == 4) {
    puVar6 = *(type_2 **)(var_4 + 0x46d88);
    if ((int)(*puVar6 << 8) < 0) {
      var_5();
      return;
    }
    *puVar6 = *puVar6 ^ 0x10;
    var_6();
    var_7 = *puVar6 >> 4 & 1;
LAB_000308d8:
    if (var_3 != 0x14) goto LAB_000308e8;
  }
  else {
    puVar6 = (type_2 *)(*(int *)(var_4 + 0x46d88) + (var_3 >> 5) * 4);
    var_7 = 1 << (var_3 & 0x1f) ^ *puVar6;
    *puVar6 = var_7;
    if (var_3 - 3 < 0x1f) {
                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(type_7 *)(var_4 + *(int *)(*(int *)(var_4 + 0x46d48) + 0x3ea0 + (var_3 - 3) * 4) + 0x4ed0c))
                ();
      return;
    }
    var_7 = var_7 >> (var_3 & 0x1f) & 1;
    if (var_3 != 5) goto LAB_000308d8;
  }
  var_7 = var_7 ^ 1;
LAB_000308e8:
  pcVar3 = var_8(var_3);
  uVar4 = (**(type_7 **)(var_4 + 0x478b8))(0,pcVar3,5);
  if (var_7 != 0) {
    uVar5 = (**(type_7 **)(var_4 + 0x478b8))(0,*(int *)(var_4 + 0x46d48) + 0x3968,5);
    var_9(HUSH,(char *)(*(int *)(var_4 + 0x46d48) + 0x397c),uVar4,uVar5);
    return;
  }
  uVar5 = (**(type_7 **)(var_4 + 0x478b8))(0,*(int *)(var_4 + 0x46d48) + 0x3970);
  var_9(HUSH,(char *)(*(int *)(var_4 + 0x46d48) + 0x397c),uVar4,uVar5);
  return;
}


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

/* WARNING: Removing unreachable block (ram,0x000309ec) */

void MASKED(int param_1)

{
  uint uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  uint uVar4;
  uint *puVar5;
  undefined *puVar6;
  undefined1 auStack_94 [128];
  int local_14;
  
  puVar6 = PTR___stack_chk_guard_000780f8;
  local_14 = *(int *)PTR___stack_chk_guard_000780f8;
  (*(code *)PTR_sigemptyset_00077f5c)(auStack_94);
  (*(code *)PTR_sigaddset_00077fd8)(auStack_94,0x14);
  uVar4 = 2;
  if (param_1 == 0) {
    uVar4 = 1;
  }
  (*(code *)PTR_sigprocmask_0007811c)(uVar4,auStack_94,0);
  if (local_14 == *(int *)puVar6) {
    return;
  }
  puVar6 = PTR___stack_chk_fail_000780c0;
  (*(code *)PTR___stack_chk_fail_000780c0)();
  if (uVar4 == 4) {
    puVar5 = *(uint **)(puVar6 + 0x46d88);
    if ((int)(*puVar5 << 8) < 0) {
      show_restricted_warning();
      return;
    }
    *puVar5 = *puVar5 ^ 0x10;
    signal_init();
    uVar1 = *puVar5 >> 4 & 1;
LAB_000308d8:
    if (uVar4 != 0x14) goto LAB_000308e8;
  }
  else {
    puVar5 = (uint *)(*(int *)(puVar6 + 0x46d88) + (uVar4 >> 5) * 4);
    uVar1 = 1 << (uVar4 & 0x1f) ^ *puVar5;
    *puVar5 = uVar1;
    if (uVar4 - 3 < 0x1f) {
                    /* WARNING: Could not recover jumptable at 0x00030894. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x46d48) + 0x3ea0 + (uVar4 - 3) * 4) + 0x4ed0c)
      )();
      return;
    }
    uVar1 = uVar1 >> (uVar4 & 0x1f) & 1;
    if (uVar4 != 5) goto LAB_000308d8;
  }
  uVar1 = uVar1 ^ 1;
LAB_000308e8:
  uVar2 = flagtostr(uVar4);
  uVar2 = (**(code **)(puVar6 + 0x478b8))(0,uVar2,5);
  if (uVar1 != 0) {
    uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3968,5);
    statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);
    return;
  }
  uVar3 = (**(code **)(puVar6 + 0x478b8))(0,*(int *)(puVar6 + 0x46d48) + 0x3970);
  statusline(0,*(int *)(puVar6 + 0x46d48) + 0x397c,uVar2,uVar3);
  return;
}

