
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void ttymodes_handler(control *ctrl,void *dlg,void *data,int event)

{
  char cVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  uint uVar5;
  char *pcVar6;
  char *value;
  char *pcVar7;
  int in_GS_OFFSET;
  char *key;
  char types [3];
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  piVar3 = *(int **)((int)ctrl + 0x14);
  if (event == 0) {
    if ((control *)piVar3[3] == ctrl) {
      dlg_update_start(ctrl,dlg);
      dlg_listbox_clear(ctrl,dlg);
      pcVar7 = conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key);
      if (pcVar7 != (char *)0x0) {
        do {
          pcVar6 = "(auto)";
          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {
            pcVar6 = "(don\'t send)";
          }
          pcVar7 = dupprintf("%s\t%s",key,pcVar6);
          dlg_listbox_add(ctrl,dlg,pcVar7);
          safefree(pcVar7);
          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);
        } while (pcVar7 != (char *)0x0);
      }
      dlg_update_done(ctrl,dlg);
    }
    else if ((control *)*piVar3 == ctrl) {
      dlg_radiobutton_set(ctrl,dlg,0);
    }
  }
  else if (event == 3) {
    if (((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)) {
      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);
      pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);
      if (pcVar7 == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");
      }
      dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);
      iVar4 = 0;
      if (*pcVar7 != 'A') {
        iVar4 = (*pcVar7 != 'N') + 1;
      }
      dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);
    }
  }
  else if (event == 2) {
    if ((control *)piVar3[1] == ctrl) {
      dlg_radiobutton_set((control *)*piVar3,dlg,2);
    }
  }
  else if ((event == 1) && ((control *)piVar3[2] == ctrl)) {
    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);
    types[2] = 'V';
    types[0] = 'A';
    types[1] = 'N';
    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);
    if (2 < uVar5) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");
    }
    cVar1 = types[uVar5];
    if (iVar4 < 0) {
      dlg_beep(dlg);
    }
    else {
      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);
      if (cVar1 == 'V') {
        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);
      }
      else {
        pcVar6 = dupstr("");
      }
      value = dupprintf("%c%s",(int)cVar1,pcVar6);
      safefree(pcVar6);
      conf_set_str_str((Conf *)data,0x32,pcVar7,value);
      safefree(value);
      dlg_refresh((control *)piVar3[3],dlg);
      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);
    }
  }
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_0001ee60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  int *piVar1;
  char cVar2;
  int iVar3;
  uint uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  char *pcVar7;
  undefined4 uVar8;
  char *pcVar9;
  int in_GS_OFFSET;
  undefined4 local_28;
  char local_23 [3];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1ee69;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar1 = *(int **)(param_1 + 0x14);
  if (param_4 == 0) {
    if (piVar1[3] == param_1) {
      FUN_00045530(param_1,param_2);
      FUN_000445d0(param_1,param_2);
      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);
      if (pcVar7 != (char *)0x0) {
        do {
          pcVar9 = "(auto)";
          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {
            pcVar9 = "(don\'t send)";
          }
          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);
          FUN_00044940(param_1,param_2,uVar8);
          FUN_0002c6a0(uVar8);
          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);
        } while (pcVar7 != (char *)0x0);
      }
      FUN_00045540(param_1,param_2);
    }
    else if (*piVar1 == param_1) {
      FUN_00044170(param_1,param_2,0);
    }
  }
  else if (param_4 == 3) {
    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {
      uVar8 = FUN_0001db10(param_3,0x32,iVar3);
      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);
      if (pcVar7 == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");
      }
      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);
      cVar2 = '\0';
      if (*pcVar7 != 'A') {
        cVar2 = (*pcVar7 != 'N') + '\x01';
      }
      FUN_00044170(*piVar1,param_2,cVar2);
    }
  }
  else if (param_4 == 2) {
    if (piVar1[1] == param_1) {
      FUN_00044170(*piVar1,param_2,2);
    }
  }
  else if ((param_4 == 1) && (piVar1[2] == param_1)) {
    iVar3 = FUN_00044a90(piVar1[3],param_2);
    local_23[2] = 0x56;
    local_23[0] = 'A';
    local_23[1] = 'N';
    uVar4 = FUN_00044220(*piVar1,param_2);
    if (2 < uVar4) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");
    }
    cVar2 = local_23[uVar4];
    if (iVar3 < 0) {
      FUN_00045690(param_2);
    }
    else {
      uVar8 = FUN_0001db10(param_3,0x32,iVar3);
      if (cVar2 == 'V') {
        uVar5 = FUN_000444f0(piVar1[1],param_2);
      }
      else {
        uVar5 = FUN_0002bf20(&DAT_00079ab0);
      }
      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);
      FUN_0002c6a0(uVar5);
      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);
      FUN_0002c6a0(uVar6);
      FUN_00045760(piVar1[3],param_2);
      FUN_00044f60(piVar1[3],param_2,iVar3);
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0005c430();
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x8297b
SUB ESP,0x3c
MOV EBP,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [ESP + 0x5c]
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x2c],ECX
XOR ECX,ECX
MOV ESI,dword ptr [ESP + 0x54]
MOV EDI,dword ptr [ESP + 0x58]
MOV EDX,dword ptr [EBP + 0x14]
TEST EAX,EAX
JNZ 0x0001eec0
CMP dword ptr [EDX + 0xc],EBP
JZ 0x0001efe8
CMP dword ptr [EDX],EBP
JZ 0x0001f160
MOV EAX,dword ptr [ESP + 0x2c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0001f1a3
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EAX,0x3
JZ 0x0001f0b0
CMP EAX,0x2
JZ 0x0001f140
CMP EAX,0x1
JNZ 0x0001eea7
CMP dword ptr [EDX + 0x8],EBP
JNZ 0x0001eea7
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EDX + 0xc]
MOV dword ptr [ESP + 0x20],EDX
CALL 0x00044a90
MOV ECX,0x4e41
MOV byte ptr [ESP + 0x3b],0x56
MOV dword ptr [ESP + 0x1c],EAX
MOV word ptr [ESP + 0x39],CX
POP EBP
POP EAX
PUSH ESI
MOV EDX,dword ptr [ESP + 0x1c]
PUSH dword ptr [EDX]
MOV dword ptr [ESP + 0x20],EDX
CALL 0x00044220
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x10]
CMP EAX,0x2
JA 0x0001f1a8
MOVZX EBP,byte ptr [ESP + EAX*0x1 + 0x29]
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x10],EDX
TEST EAX,EAX
JS 0x0001f174
SUB ESP,0x4
PUSH EAX
PUSH 0x32
PUSH EDI
CALL 0x0001db10
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,EBP
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x10]
CMP AL,0x56
JZ 0x0001f185
MOV dword ptr [ESP + 0x10],EDX
LEA EAX,[EBX + 0xfffd82cc]
SUB ESP,0xc
PUSH EAX
CALL 0x0002bf20
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,EAX
MOV dword ptr [ESP + 0x18],EDX
SUB ESP,0x4
MOV EAX,EBP
PUSH ECX
MOVSX EBP,AL
LEA EAX,[EBX + 0xfffce152]
MOV dword ptr [ESP + 0x18],ECX
PUSH EBP
PUSH EAX
CALL 0x0002c480
MOV ECX,dword ptr [ESP + 0x20]
MOV EBP,EAX
MOV dword ptr [ESP],ECX
CALL 0x0002c6a0
PUSH EBP
PUSH dword ptr [ESP + 0x28]
PUSH 0x32
PUSH EDI
CALL 0x0001dfa0
ADD ESP,0x14
PUSH EBP
CALL 0x0002c6a0
POP EAX
POP EDX
PUSH ESI
MOV EDX,dword ptr [ESP + 0x24]
PUSH dword ptr [EDX + 0xc]
MOV dword ptr [ESP + 0x20],EDX
CALL 0x00045760
ADD ESP,0xc
PUSH dword ptr [ESP + 0x10]
PUSH ESI
MOV EDX,dword ptr [ESP + 0x1c]
PUSH dword ptr [EDX + 0xc]
CALL 0x00044f60
ADD ESP,0x10
JMP 0x0001eea7
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x00045530
POP EAX
POP EDX
PUSH ESI
PUSH EBP
CALL 0x000445d0
LEA EAX,[ESP + 0x34]
MOV dword ptr [ESP + 0x1c],EAX
PUSH EAX
PUSH 0x0
PUSH 0x32
PUSH EDI
CALL 0x0001da20
ADD ESP,0x20
TEST EAX,EAX
JZ 0x0001f099
LEA ECX,[EBX + 0xfffce140]
MOV dword ptr [ESP + 0x18],EDI
MOV dword ptr [ESP + 0x10],ECX
LEA ECX,[EBX + 0xfffce12c]
MOV dword ptr [ESP + 0x14],ECX
LEA ECX,[EBX + 0xfffce133]
MOV dword ptr [ESP + 0x1c],ECX
LEA ESI,[ESI]
NOP
MOVZX EDX,byte ptr [EAX]
MOV ECX,dword ptr [ESP + 0x14]
CMP DL,0x41
JZ 0x0001f059
ADD EAX,0x1
CMP DL,0x4e
CMOVZ EAX,dword ptr [ESP + 0x1c]
MOV ECX,EAX
SUB ESP,0x4
PUSH ECX
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x1c]
CALL 0x0002c480
ADD ESP,0xc
PUSH EAX
MOV EDI,EAX
PUSH ESI
PUSH EBP
CALL 0x00044940
MOV dword ptr [ESP],EDI
CALL 0x0002c6a0
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x38]
PUSH 0x32
PUSH dword ptr [ESP + 0x34]
CALL 0x0001da20
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x0001f040
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x00045540
ADD ESP,0x10
JMP 0x0001eea7
CMP dword ptr [EDX + 0xc],EBP
JNZ 0x0001eea7
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x00044a90
ADD ESP,0x10
TEST EAX,EAX
JS 0x0001eea7
SUB ESP,0x4
PUSH EAX
PUSH 0x32
PUSH EDI
CALL 0x0001db10
ADD ESP,0xc
PUSH EAX
PUSH 0x32
PUSH EDI
CALL 0x0001d9d0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
MOV EDI,EAX
JZ 0x0001f1c7
SUB ESP,0x4
LEA EAX,[EAX + 0x1]
PUSH EAX
PUSH ESI
PUSH dword ptr [EDX + 0x4]
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x00044410
MOVZX ECX,byte ptr [EDI]
ADD ESP,0x10
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0xc]
CMP CL,0x41
JZ 0x0001f12b
XOR EAX,EAX
CMP CL,0x4e
SETNZ AL
ADD EAX,0x1
SUB ESP,0x4
PUSH EAX
PUSH ESI
PUSH dword ptr [EDX]
CALL 0x00044170
ADD ESP,0x10
JMP 0x0001eea7
CMP dword ptr [EDX + 0x4],EBP
JNZ 0x0001eea7
SUB ESP,0x4
PUSH 0x2
PUSH ESI
PUSH dword ptr [EDX]
CALL 0x00044170
ADD ESP,0x10
JMP 0x0001eea7
SUB ESP,0x4
PUSH 0x0
PUSH ESI
PUSH EBP
CALL 0x00044170
ADD ESP,0x10
JMP 0x0001eea7
SUB ESP,0xc
PUSH ESI
CALL 0x00045690
ADD ESP,0x10
JMP 0x0001eea7
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EDX + 0x4]
MOV dword ptr [ESP + 0x20],EDX
CALL 0x000444f0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,EAX
JMP 0x0001ef73
CALL 0x0005c430
LEA EAX,[EBX + 0xfffd0930]
PUSH EAX
LEA EAX,[EBX + 0xfffce0ff]
PUSH 0x3f2
PUSH EAX
LEA EAX,[EBX + 0xfffcf188]
PUSH EAX
CALL 0x00019e90
LEA EAX,[EBX + 0xfffd0930]
PUSH EAX
LEA EAX,[EBX + 0xfffce0ff]
PUSH 0x3dc
PUSH EAX
LEA EAX,[EBX + 0xfffce146]
PUSH EAX
CALL 0x00019e90
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001ee60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  char local_23 [3];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee69;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x14);\n  if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005c430();\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0001ee60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  char local_23 [3];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee69;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x14);\n  if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005c430();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001ee60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  char local_23 [3];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee69;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x14);\n  if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005c430();\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "char local_23 [3];" primitive_type (array_declarator "local_23 [3]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1ee69;" (assignment_expression "uStack_14 = 0x1ee69" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }" { (if_statement "if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }" if (parenthesized_expression "(piVar1[3] == param_1)" ( (binary_expression "piVar1[3] == param_1" (subscript_expression "piVar1[3]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }" { (expression_statement "FUN_00045530(param_1,param_2);" (call_expression "FUN_00045530(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "FUN_000445d0(param_1,param_2);" (call_expression "FUN_000445d0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);" (assignment_expression "pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28)" identifier = (cast_expression "(char *)FUN_0001da20(param_3,0x32,0,&local_28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001da20(param_3,0x32,0,&local_28)" identifier (argument_list "(param_3,0x32,0,&local_28)" ( identifier , number_literal , number_literal , (pointer_expression "&local_28" & identifier) ))))) ;) (if_statement "if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }" { (do_statement "do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);" do (compound_statement "{\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        }" { (expression_statement "pcVar9 = "(auto)";" (assignment_expression "pcVar9 = "(auto)"" identifier = (string_literal ""(auto)"" " string_content ")) ;) (if_statement "if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }" if (parenthesized_expression "((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N'))" ( (binary_expression "(*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')" (parenthesized_expression "(*pcVar7 != 'A')" ( (binary_expression "*pcVar7 != 'A'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'A'" ' character ')) )) && (parenthesized_expression "(pcVar9 = pcVar7 + 1, *pcVar7 == 'N')" ( (comma_expression "pcVar9 = pcVar7 + 1, *pcVar7 == 'N'" (assignment_expression "pcVar9 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) , (binary_expression "*pcVar7 == 'N'" (pointer_expression "*pcVar7" * identifier) == (char_literal "'N'" ' character '))) ))) )) (compound_statement "{\n            pcVar9 = "(don\'t send)";\n          }" { (expression_statement "pcVar9 = "(don\'t send)";" (assignment_expression "pcVar9 = "(don\'t send)"" identifier = (string_literal ""(don\'t send)"" " string_content escape_sequence string_content ")) ;) })) (expression_statement "uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);" (assignment_expression "uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9)" identifier = (call_expression "FUN_0002c480(&DAT_0006f924,local_28,pcVar9)" identifier (argument_list "(&DAT_0006f924,local_28,pcVar9)" ( (pointer_expression "&DAT_0006f924" & identifier) , identifier , identifier )))) ;) (expression_statement "FUN_00044940(param_1,param_2,uVar8);" (call_expression "FUN_00044940(param_1,param_2,uVar8)" identifier (argument_list "(param_1,param_2,uVar8)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0002c6a0(uVar8);" (call_expression "FUN_0002c6a0(uVar8)" identifier (argument_list "(uVar8)" ( identifier ))) ;) (expression_statement "pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);" (assignment_expression "pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28)" identifier = (cast_expression "(char *)FUN_0001da20(param_3,0x32,local_28,&local_28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001da20(param_3,0x32,local_28,&local_28)" identifier (argument_list "(param_3,0x32,local_28,&local_28)" ( identifier , number_literal , identifier , (pointer_expression "&local_28" & identifier) ))))) ;) }) while (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "FUN_00045540(param_1,param_2);" (call_expression "FUN_00045540(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) }) (else_clause "else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }" else (if_statement "if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }" if (parenthesized_expression "(*piVar1 == param_1)" ( (binary_expression "*piVar1 == param_1" (pointer_expression "*piVar1" * identifier) == identifier) )) (compound_statement "{\n      FUN_00044170(param_1,param_2,0);\n    }" { (expression_statement "FUN_00044170(param_1,param_2,0);" (call_expression "FUN_00044170(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))) ;) })))) }) (else_clause "else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" else (if_statement "if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" if (parenthesized_expression "(param_4 == 3)" ( (binary_expression "param_4 == 3" identifier == number_literal) )) (compound_statement "{\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }" { (if_statement "if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }" if (parenthesized_expression "((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3))" ( (binary_expression "(piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)" (parenthesized_expression "(piVar1[3] == param_1)" ( (binary_expression "piVar1[3] == param_1" (subscript_expression "piVar1[3]" identifier [ number_literal ]) == identifier) )) && (parenthesized_expression "(iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)" ( (comma_expression "iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3" (assignment_expression "iVar3 = FUN_00044a90(param_1,param_2)" identifier = (call_expression "FUN_00044a90(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) , (binary_expression "-1 < iVar3" number_literal < identifier)) ))) )) (compound_statement "{\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }" { (expression_statement "uVar8 = FUN_0001db10(param_3,0x32,iVar3);" (assignment_expression "uVar8 = FUN_0001db10(param_3,0x32,iVar3)" identifier = (call_expression "FUN_0001db10(param_3,0x32,iVar3)" identifier (argument_list "(param_3,0x32,iVar3)" ( identifier , number_literal , identifier )))) ;) (expression_statement "pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);" (assignment_expression "pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8)" identifier = (cast_expression "(char *)FUN_0001d9d0(param_3,0x32,uVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001d9d0(param_3,0x32,uVar8)" identifier (argument_list "(param_3,0x32,uVar8)" ( identifier , number_literal , identifier ))))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }" { comment (expression_statement "__assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");" (call_expression "__assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler")" identifier (argument_list "("val != NULL","config.c",0x3dc,"ttymodes_handler")" ( (string_literal ""val != NULL"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""ttymodes_handler"" " string_content ") ))) ;) })) (expression_statement "FUN_00044410(piVar1[1],param_2,pcVar7 + 1);" (call_expression "FUN_00044410(piVar1[1],param_2,pcVar7 + 1)" identifier (argument_list "(piVar1[1],param_2,pcVar7 + 1)" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) , identifier , (binary_expression "pcVar7 + 1" identifier + number_literal) ))) ;) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }" if (parenthesized_expression "(*pcVar7 != 'A')" ( (binary_expression "*pcVar7 != 'A'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'A'" ' character ')) )) (compound_statement "{\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }" { (expression_statement "cVar2 = (*pcVar7 != 'N') + '\x01';" (assignment_expression "cVar2 = (*pcVar7 != 'N') + '\x01'" identifier = (binary_expression "(*pcVar7 != 'N') + '\x01'" (parenthesized_expression "(*pcVar7 != 'N')" ( (binary_expression "*pcVar7 != 'N'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'N'" ' character ')) )) + (char_literal "'\x01'" ' escape_sequence '))) ;) })) (expression_statement "FUN_00044170(*piVar1,param_2,cVar2);" (call_expression "FUN_00044170(*piVar1,param_2,cVar2)" identifier (argument_list "(*piVar1,param_2,cVar2)" ( (pointer_expression "*piVar1" * identifier) , identifier , identifier ))) ;) })) }) (else_clause "else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" else (if_statement "if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" if (parenthesized_expression "(param_4 == 2)" ( (binary_expression "param_4 == 2" identifier == number_literal) )) (compound_statement "{\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }" { (if_statement "if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }" if (parenthesized_expression "(piVar1[1] == param_1)" ( (binary_expression "piVar1[1] == param_1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      FUN_00044170(*piVar1,param_2,2);\n    }" { (expression_statement "FUN_00044170(*piVar1,param_2,2);" (call_expression "FUN_00044170(*piVar1,param_2,2)" identifier (argument_list "(*piVar1,param_2,2)" ( (pointer_expression "*piVar1" * identifier) , identifier , number_literal ))) ;) })) }) (else_clause "else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" else (if_statement "if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" if (parenthesized_expression "((param_4 == 1) && (piVar1[2] == param_1))" ( (binary_expression "(param_4 == 1) && (piVar1[2] == param_1)" (parenthesized_expression "(param_4 == 1)" ( (binary_expression "param_4 == 1" identifier == number_literal) )) && (parenthesized_expression "(piVar1[2] == param_1)" ( (binary_expression "piVar1[2] == param_1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) == identifier) ))) )) (compound_statement "{\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" { (expression_statement "iVar3 = FUN_00044a90(piVar1[3],param_2);" (assignment_expression "iVar3 = FUN_00044a90(piVar1[3],param_2)" identifier = (call_expression "FUN_00044a90(piVar1[3],param_2)" identifier (argument_list "(piVar1[3],param_2)" ( (subscript_expression "piVar1[3]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "local_23[2] = 0x56;" (assignment_expression "local_23[2] = 0x56" (subscript_expression "local_23[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_23[0] = 'A';" (assignment_expression "local_23[0] = 'A'" (subscript_expression "local_23[0]" identifier [ number_literal ]) = (char_literal "'A'" ' character ')) ;) (expression_statement "local_23[1] = 'N';" (assignment_expression "local_23[1] = 'N'" (subscript_expression "local_23[1]" identifier [ number_literal ]) = (char_literal "'N'" ' character ')) ;) (expression_statement "uVar4 = FUN_00044220(*piVar1,param_2);" (assignment_expression "uVar4 = FUN_00044220(*piVar1,param_2)" identifier = (call_expression "FUN_00044220(*piVar1,param_2)" identifier (argument_list "(*piVar1,param_2)" ( (pointer_expression "*piVar1" * identifier) , identifier )))) ;) (if_statement "if (2 < uVar4) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }" if (parenthesized_expression "(2 < uVar4)" ( (binary_expression "2 < uVar4" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }" { comment (expression_statement "__assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");" (call_expression "__assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler")" identifier (argument_list "("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler")" ( (string_literal ""button >= 0 && button < lenof(types)"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""ttymodes_handler"" " string_content ") ))) ;) })) (expression_statement "cVar2 = local_23[uVar4];" (assignment_expression "cVar2 = local_23[uVar4]" identifier = (subscript_expression "local_23[uVar4]" identifier [ identifier ])) ;) (if_statement "if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      FUN_00045690(param_2);\n    }" { (expression_statement "FUN_00045690(param_2);" (call_expression "FUN_00045690(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }" else (compound_statement "{\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }" { (expression_statement "uVar8 = FUN_0001db10(param_3,0x32,iVar3);" (assignment_expression "uVar8 = FUN_0001db10(param_3,0x32,iVar3)" identifier = (call_expression "FUN_0001db10(param_3,0x32,iVar3)" identifier (argument_list "(param_3,0x32,iVar3)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }" if (parenthesized_expression "(cVar2 == 'V')" ( (binary_expression "cVar2 == 'V'" identifier == (char_literal "'V'" ' character ')) )) (compound_statement "{\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }" { (expression_statement "uVar5 = FUN_000444f0(piVar1[1],param_2);" (assignment_expression "uVar5 = FUN_000444f0(piVar1[1],param_2)" identifier = (call_expression "FUN_000444f0(piVar1[1],param_2)" identifier (argument_list "(piVar1[1],param_2)" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) , identifier )))) ;) }) (else_clause "else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }" else (compound_statement "{\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }" { (expression_statement "uVar5 = FUN_0002bf20(&DAT_00079ab0);" (assignment_expression "uVar5 = FUN_0002bf20(&DAT_00079ab0)" identifier = (call_expression "FUN_0002bf20(&DAT_00079ab0)" identifier (argument_list "(&DAT_00079ab0)" ( (pointer_expression "&DAT_00079ab0" & identifier) )))) ;) }))) (expression_statement "uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);" (assignment_expression "uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5)" identifier = (call_expression "FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5)" identifier (argument_list "(&DAT_0006f936,(int)cVar2,uVar5)" ( (pointer_expression "&DAT_0006f936" & identifier) , (cast_expression "(int)cVar2" ( (type_descriptor "int" primitive_type) ) identifier) , identifier )))) ;) (expression_statement "FUN_0002c6a0(uVar5);" (call_expression "FUN_0002c6a0(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "FUN_0001dfa0(param_3,0x32,uVar8,uVar6);" (call_expression "FUN_0001dfa0(param_3,0x32,uVar8,uVar6)" identifier (argument_list "(param_3,0x32,uVar8,uVar6)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_0002c6a0(uVar6);" (call_expression "FUN_0002c6a0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (expression_statement "FUN_00045760(piVar1[3],param_2);" (call_expression "FUN_00045760(piVar1[3],param_2)" identifier (argument_list "(piVar1[3],param_2)" ( (subscript_expression "piVar1[3]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "FUN_00044f60(piVar1[3],param_2,iVar3);" (call_expression "FUN_00044f60(piVar1[3],param_2,iVar3)" identifier (argument_list "(piVar1[3],param_2,iVar3)" ( (subscript_expression "piVar1[3]" identifier [ number_literal ]) , identifier , identifier ))) ;) }))) })))))))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005c430();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0005c430();\n  }" { comment (expression_statement "FUN_0005c430();" (call_expression "FUN_0005c430()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid ttymodes_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  uint uVar5;\n  char *pcVar6;\n  char *value;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  char *key;\n  char types [3];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar3 = *(int **)((int)ctrl + 0x14);\n  if (event == 0) {\n    if ((control *)piVar3[3] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar7 = conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        } while (pcVar7 != (char *)0x0);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n    else if ((control *)*piVar3 == ctrl) {\n      dlg_radiobutton_set(ctrl,dlg,0);\n    }\n  }\n  else if (event == 3) {\n    if (((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)) {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);\n      iVar4 = 0;\n      if (*pcVar7 != 'A') {\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }\n      dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);\n    }\n  }\n  else if (event == 2) {\n    if ((control *)piVar3[1] == ctrl) {\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }\n  }\n  else if ((event == 1) && ((control *)piVar3[2] == ctrl)) {\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment comment (function_definition "void ttymodes_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  uint uVar5;\n  char *pcVar6;\n  char *value;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  char *key;\n  char types [3];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar3 = *(int **)((int)ctrl + 0x14);\n  if (event == 0) {\n    if ((control *)piVar3[3] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar7 = conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        } while (pcVar7 != (char *)0x0);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n    else if ((control *)*piVar3 == ctrl) {\n      dlg_radiobutton_set(ctrl,dlg,0);\n    }\n  }\n  else if (event == 3) {\n    if (((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)) {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);\n      iVar4 = 0;\n      if (*pcVar7 != 'A') {\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }\n      dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);\n    }\n  }\n  else if (event == 2) {\n    if ((control *)piVar3[1] == ctrl) {\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }\n  }\n  else if ((event == 1) && ((control *)piVar3[2] == ctrl)) {\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (function_declarator "ttymodes_handler(control *ctrl,void *dlg,void *data,int event)" identifier (parameter_list "(control *ctrl,void *dlg,void *data,int event)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int event" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  uint uVar5;\n  char *pcVar6;\n  char *value;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  char *key;\n  char types [3];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar3 = *(int **)((int)ctrl + 0x14);\n  if (event == 0) {\n    if ((control *)piVar3[3] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar7 = conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        } while (pcVar7 != (char *)0x0);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n    else if ((control *)*piVar3 == ctrl) {\n      dlg_radiobutton_set(ctrl,dlg,0);\n    }\n  }\n  else if (event == 3) {\n    if (((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)) {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);\n      iVar4 = 0;\n      if (*pcVar7 != 'A') {\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }\n      dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);\n    }\n  }\n  else if (event == 2) {\n    if ((control *)piVar3[1] == ctrl) {\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }\n  }\n  else if ((event == 1) && ((control *)piVar3[2] == ctrl)) {\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *value;" primitive_type (pointer_declarator "*value" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *key;" primitive_type (pointer_declarator "*key" * identifier) ;) (declaration "char types [3];" primitive_type (array_declarator "types [3]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar3 = *(int **)((int)ctrl + 0x14);" (assignment_expression "piVar3 = *(int **)((int)ctrl + 0x14)" identifier = (pointer_expression "*(int **)((int)ctrl + 0x14)" * (cast_expression "(int **)((int)ctrl + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ctrl + 0x14)" ( (binary_expression "(int)ctrl + 0x14" (cast_expression "(int)ctrl" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (event == 0) {\n    if ((control *)piVar3[3] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar7 = conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        } while (pcVar7 != (char *)0x0);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n    else if ((control *)*piVar3 == ctrl) {\n      dlg_radiobutton_set(ctrl,dlg,0);\n    }\n  }\n  else if (event == 3) {\n    if (((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)) {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);\n      iVar4 = 0;\n      if (*pcVar7 != 'A') {\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }\n      dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);\n    }\n  }\n  else if (event == 2) {\n    if ((control *)piVar3[1] == ctrl) {\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }\n  }\n  else if ((event == 1) && ((control *)piVar3[2] == ctrl)) {\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }" if (parenthesized_expression "(event == 0)" ( (binary_expression "event == 0" identifier == number_literal) )) (compound_statement "{\n    if ((control *)piVar3[3] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar7 = conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        } while (pcVar7 != (char *)0x0);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n    else if ((control *)*piVar3 == ctrl) {\n      dlg_radiobutton_set(ctrl,dlg,0);\n    }\n  }" { (if_statement "if ((control *)piVar3[3] == ctrl) {\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar7 = conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        } while (pcVar7 != (char *)0x0);\n      }\n      dlg_update_done(ctrl,dlg);\n    }\n    else if ((control *)*piVar3 == ctrl) {\n      dlg_radiobutton_set(ctrl,dlg,0);\n    }" if (parenthesized_expression "((control *)piVar3[3] == ctrl)" ( (binary_expression "(control *)piVar3[3] == ctrl" (cast_expression "(control *)piVar3[3]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n      dlg_update_start(ctrl,dlg);\n      dlg_listbox_clear(ctrl,dlg);\n      pcVar7 = conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        } while (pcVar7 != (char *)0x0);\n      }\n      dlg_update_done(ctrl,dlg);\n    }" { (expression_statement "dlg_update_start(ctrl,dlg);" (call_expression "dlg_update_start(ctrl,dlg)" identifier (argument_list "(ctrl,dlg)" ( identifier , identifier ))) ;) (expression_statement "dlg_listbox_clear(ctrl,dlg);" (call_expression "dlg_listbox_clear(ctrl,dlg)" identifier (argument_list "(ctrl,dlg)" ( identifier , identifier ))) ;) (expression_statement "pcVar7 = conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key);" (assignment_expression "pcVar7 = conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key)" identifier = (call_expression "conf_get_str_strs((Conf *)data,0x32,(char *)0x0,&key)" identifier (argument_list "((Conf *)data,0x32,(char *)0x0,&key)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (pointer_expression "&key" & identifier) )))) ;) (if_statement "if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        } while (pcVar7 != (char *)0x0);\n      }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        } while (pcVar7 != (char *)0x0);\n      }" { (do_statement "do {\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        } while (pcVar7 != (char *)0x0);" do (compound_statement "{\n          pcVar6 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }\n          pcVar7 = dupprintf("%s\t%s",key,pcVar6);\n          dlg_listbox_add(ctrl,dlg,pcVar7);\n          safefree(pcVar7);\n          pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);\n        }" { (expression_statement "pcVar6 = "(auto)";" (assignment_expression "pcVar6 = "(auto)"" identifier = (string_literal ""(auto)"" " string_content ")) ;) (if_statement "if ((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar6 = "(don\'t send)";\n          }" if (parenthesized_expression "((*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N'))" ( (binary_expression "(*pcVar7 != 'A') && (pcVar6 = pcVar7 + 1, *pcVar7 == 'N')" (parenthesized_expression "(*pcVar7 != 'A')" ( (binary_expression "*pcVar7 != 'A'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'A'" ' character ')) )) && (parenthesized_expression "(pcVar6 = pcVar7 + 1, *pcVar7 == 'N')" ( (comma_expression "pcVar6 = pcVar7 + 1, *pcVar7 == 'N'" (assignment_expression "pcVar6 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) , (binary_expression "*pcVar7 == 'N'" (pointer_expression "*pcVar7" * identifier) == (char_literal "'N'" ' character '))) ))) )) (compound_statement "{\n            pcVar6 = "(don\'t send)";\n          }" { (expression_statement "pcVar6 = "(don\'t send)";" (assignment_expression "pcVar6 = "(don\'t send)"" identifier = (string_literal ""(don\'t send)"" " string_content escape_sequence string_content ")) ;) })) (expression_statement "pcVar7 = dupprintf("%s\t%s",key,pcVar6);" (assignment_expression "pcVar7 = dupprintf("%s\t%s",key,pcVar6)" identifier = (call_expression "dupprintf("%s\t%s",key,pcVar6)" identifier (argument_list "("%s\t%s",key,pcVar6)" ( (string_literal ""%s\t%s"" " string_content escape_sequence string_content ") , identifier , identifier )))) ;) (expression_statement "dlg_listbox_add(ctrl,dlg,pcVar7);" (call_expression "dlg_listbox_add(ctrl,dlg,pcVar7)" identifier (argument_list "(ctrl,dlg,pcVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "safefree(pcVar7);" (call_expression "safefree(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key);" (assignment_expression "pcVar7 = conf_get_str_strs((Conf *)data,0x32,key,&key)" identifier = (call_expression "conf_get_str_strs((Conf *)data,0x32,key,&key)" identifier (argument_list "((Conf *)data,0x32,key,&key)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , (pointer_expression "&key" & identifier) )))) ;) }) while (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "dlg_update_done(ctrl,dlg);" (call_expression "dlg_update_done(ctrl,dlg)" identifier (argument_list "(ctrl,dlg)" ( identifier , identifier ))) ;) }) (else_clause "else if ((control *)*piVar3 == ctrl) {\n      dlg_radiobutton_set(ctrl,dlg,0);\n    }" else (if_statement "if ((control *)*piVar3 == ctrl) {\n      dlg_radiobutton_set(ctrl,dlg,0);\n    }" if (parenthesized_expression "((control *)*piVar3 == ctrl)" ( (binary_expression "(control *)*piVar3 == ctrl" (cast_expression "(control *)*piVar3" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier)) == identifier) )) (compound_statement "{\n      dlg_radiobutton_set(ctrl,dlg,0);\n    }" { (expression_statement "dlg_radiobutton_set(ctrl,dlg,0);" (call_expression "dlg_radiobutton_set(ctrl,dlg,0)" identifier (argument_list "(ctrl,dlg,0)" ( identifier , identifier , number_literal ))) ;) })))) }) (else_clause "else if (event == 3) {\n    if (((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)) {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);\n      iVar4 = 0;\n      if (*pcVar7 != 'A') {\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }\n      dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);\n    }\n  }\n  else if (event == 2) {\n    if ((control *)piVar3[1] == ctrl) {\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }\n  }\n  else if ((event == 1) && ((control *)piVar3[2] == ctrl)) {\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }" else (if_statement "if (event == 3) {\n    if (((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)) {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);\n      iVar4 = 0;\n      if (*pcVar7 != 'A') {\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }\n      dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);\n    }\n  }\n  else if (event == 2) {\n    if ((control *)piVar3[1] == ctrl) {\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }\n  }\n  else if ((event == 1) && ((control *)piVar3[2] == ctrl)) {\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }" if (parenthesized_expression "(event == 3)" ( (binary_expression "event == 3" identifier == number_literal) )) (compound_statement "{\n    if (((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)) {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);\n      iVar4 = 0;\n      if (*pcVar7 != 'A') {\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }\n      dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);\n    }\n  }" { (if_statement "if (((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)) {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);\n      iVar4 = 0;\n      if (*pcVar7 != 'A') {\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }\n      dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);\n    }" if (parenthesized_expression "(((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4))" ( (binary_expression "((control *)piVar3[3] == ctrl) && (iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)" (parenthesized_expression "((control *)piVar3[3] == ctrl)" ( (binary_expression "(control *)piVar3[3] == ctrl" (cast_expression "(control *)piVar3[3]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ])) == identifier) )) && (parenthesized_expression "(iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4)" ( (comma_expression "iVar4 = dlg_listbox_index(ctrl,dlg), -1 < iVar4" (assignment_expression "iVar4 = dlg_listbox_index(ctrl,dlg)" identifier = (call_expression "dlg_listbox_index(ctrl,dlg)" identifier (argument_list "(ctrl,dlg)" ( identifier , identifier )))) , (binary_expression "-1 < iVar4" number_literal < identifier)) ))) )) (compound_statement "{\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);\n      if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);\n      iVar4 = 0;\n      if (*pcVar7 != 'A') {\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }\n      dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);\n    }" { (expression_statement "pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);" (assignment_expression "pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4)" identifier = (call_expression "conf_get_str_nthstrkey((Conf *)data,0x32,iVar4)" identifier (argument_list "((Conf *)data,0x32,iVar4)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier )))) ;) (expression_statement "pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7);" (assignment_expression "pcVar7 = conf_get_str_str((Conf *)data,0x32,pcVar7)" identifier = (call_expression "conf_get_str_str((Conf *)data,0x32,pcVar7)" identifier (argument_list "((Conf *)data,0x32,pcVar7)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier )))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }" { comment (expression_statement "__assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");" (call_expression "__assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler")" identifier (argument_list "("val != NULL","config.c",0x3dc,"ttymodes_handler")" ( (string_literal ""val != NULL"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""ttymodes_handler"" " string_content ") ))) ;) })) (expression_statement "dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1);" (call_expression "dlg_editbox_set((control *)piVar3[1],dlg,pcVar7 + 1)" identifier (argument_list "((control *)piVar3[1],dlg,pcVar7 + 1)" ( (cast_expression "(control *)piVar3[1]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ])) , identifier , (binary_expression "pcVar7 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (*pcVar7 != 'A') {\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }" if (parenthesized_expression "(*pcVar7 != 'A')" ( (binary_expression "*pcVar7 != 'A'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'A'" ' character ')) )) (compound_statement "{\n        iVar4 = (*pcVar7 != 'N') + 1;\n      }" { (expression_statement "iVar4 = (*pcVar7 != 'N') + 1;" (assignment_expression "iVar4 = (*pcVar7 != 'N') + 1" identifier = (binary_expression "(*pcVar7 != 'N') + 1" (parenthesized_expression "(*pcVar7 != 'N')" ( (binary_expression "*pcVar7 != 'N'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'N'" ' character ')) )) + number_literal)) ;) })) (expression_statement "dlg_radiobutton_set((control *)*piVar3,dlg,iVar4);" (call_expression "dlg_radiobutton_set((control *)*piVar3,dlg,iVar4)" identifier (argument_list "((control *)*piVar3,dlg,iVar4)" ( (cast_expression "(control *)*piVar3" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier)) , identifier , identifier ))) ;) })) }) (else_clause "else if (event == 2) {\n    if ((control *)piVar3[1] == ctrl) {\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }\n  }\n  else if ((event == 1) && ((control *)piVar3[2] == ctrl)) {\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }" else (if_statement "if (event == 2) {\n    if ((control *)piVar3[1] == ctrl) {\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }\n  }\n  else if ((event == 1) && ((control *)piVar3[2] == ctrl)) {\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }" if (parenthesized_expression "(event == 2)" ( (binary_expression "event == 2" identifier == number_literal) )) (compound_statement "{\n    if ((control *)piVar3[1] == ctrl) {\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }\n  }" { (if_statement "if ((control *)piVar3[1] == ctrl) {\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }" if (parenthesized_expression "((control *)piVar3[1] == ctrl)" ( (binary_expression "(control *)piVar3[1] == ctrl" (cast_expression "(control *)piVar3[1]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n      dlg_radiobutton_set((control *)*piVar3,dlg,2);\n    }" { (expression_statement "dlg_radiobutton_set((control *)*piVar3,dlg,2);" (call_expression "dlg_radiobutton_set((control *)*piVar3,dlg,2)" identifier (argument_list "((control *)*piVar3,dlg,2)" ( (cast_expression "(control *)*piVar3" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier)) , identifier , number_literal ))) ;) })) }) (else_clause "else if ((event == 1) && ((control *)piVar3[2] == ctrl)) {\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }" else (if_statement "if ((event == 1) && ((control *)piVar3[2] == ctrl)) {\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }" if (parenthesized_expression "((event == 1) && ((control *)piVar3[2] == ctrl))" ( (binary_expression "(event == 1) && ((control *)piVar3[2] == ctrl)" (parenthesized_expression "(event == 1)" ( (binary_expression "event == 1" identifier == number_literal) )) && (parenthesized_expression "((control *)piVar3[2] == ctrl)" ( (binary_expression "(control *)piVar3[2] == ctrl" (cast_expression "(control *)piVar3[2]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) == identifier) ))) )) (compound_statement "{\n    iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);\n    types[2] = 'V';\n    types[0] = 'A';\n    types[1] = 'N';\n    uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);\n    if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar1 = types[uVar5];\n    if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }\n  }" { (expression_statement "iVar4 = dlg_listbox_index((control *)piVar3[3],dlg);" (assignment_expression "iVar4 = dlg_listbox_index((control *)piVar3[3],dlg)" identifier = (call_expression "dlg_listbox_index((control *)piVar3[3],dlg)" identifier (argument_list "((control *)piVar3[3],dlg)" ( (cast_expression "(control *)piVar3[3]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ])) , identifier )))) ;) (expression_statement "types[2] = 'V';" (assignment_expression "types[2] = 'V'" (subscript_expression "types[2]" identifier [ number_literal ]) = (char_literal "'V'" ' character ')) ;) (expression_statement "types[0] = 'A';" (assignment_expression "types[0] = 'A'" (subscript_expression "types[0]" identifier [ number_literal ]) = (char_literal "'A'" ' character ')) ;) (expression_statement "types[1] = 'N';" (assignment_expression "types[1] = 'N'" (subscript_expression "types[1]" identifier [ number_literal ]) = (char_literal "'N'" ' character ')) ;) (expression_statement "uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg);" (assignment_expression "uVar5 = dlg_radiobutton_get((control *)*piVar3,dlg)" identifier = (call_expression "dlg_radiobutton_get((control *)*piVar3,dlg)" identifier (argument_list "((control *)*piVar3,dlg)" ( (cast_expression "(control *)*piVar3" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier)) , identifier )))) ;) (if_statement "if (2 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }" if (parenthesized_expression "(2 < uVar5)" ( (binary_expression "2 < uVar5" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }" { comment (expression_statement "__assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");" (call_expression "__assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler")" identifier (argument_list "("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler")" ( (string_literal ""button >= 0 && button < lenof(types)"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""ttymodes_handler"" " string_content ") ))) ;) })) (expression_statement "cVar1 = types[uVar5];" (assignment_expression "cVar1 = types[uVar5]" identifier = (subscript_expression "types[uVar5]" identifier [ identifier ])) ;) (if_statement "if (iVar4 < 0) {\n      dlg_beep(dlg);\n    }\n    else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n      dlg_beep(dlg);\n    }" { (expression_statement "dlg_beep(dlg);" (call_expression "dlg_beep(dlg)" identifier (argument_list "(dlg)" ( identifier ))) ;) }) (else_clause "else {\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }" else (compound_statement "{\n      pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);\n      if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }\n      value = dupprintf("%c%s",(int)cVar1,pcVar6);\n      safefree(pcVar6);\n      conf_set_str_str((Conf *)data,0x32,pcVar7,value);\n      safefree(value);\n      dlg_refresh((control *)piVar3[3],dlg);\n      dlg_listbox_select((control *)piVar3[3],dlg,iVar4);\n    }" { (expression_statement "pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4);" (assignment_expression "pcVar7 = conf_get_str_nthstrkey((Conf *)data,0x32,iVar4)" identifier = (call_expression "conf_get_str_nthstrkey((Conf *)data,0x32,iVar4)" identifier (argument_list "((Conf *)data,0x32,iVar4)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier )))) ;) (if_statement "if (cVar1 == 'V') {\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }\n      else {\n        pcVar6 = dupstr("");\n      }" if (parenthesized_expression "(cVar1 == 'V')" ( (binary_expression "cVar1 == 'V'" identifier == (char_literal "'V'" ' character ')) )) (compound_statement "{\n        pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);\n      }" { (expression_statement "pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg);" (assignment_expression "pcVar6 = dlg_editbox_get((control *)piVar3[1],dlg)" identifier = (call_expression "dlg_editbox_get((control *)piVar3[1],dlg)" identifier (argument_list "((control *)piVar3[1],dlg)" ( (cast_expression "(control *)piVar3[1]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ])) , identifier )))) ;) }) (else_clause "else {\n        pcVar6 = dupstr("");\n      }" else (compound_statement "{\n        pcVar6 = dupstr("");\n      }" { (expression_statement "pcVar6 = dupstr("");" (assignment_expression "pcVar6 = dupstr("")" identifier = (call_expression "dupstr("")" identifier (argument_list "("")" ( (string_literal """" " ") )))) ;) }))) (expression_statement "value = dupprintf("%c%s",(int)cVar1,pcVar6);" (assignment_expression "value = dupprintf("%c%s",(int)cVar1,pcVar6)" identifier = (call_expression "dupprintf("%c%s",(int)cVar1,pcVar6)" identifier (argument_list "("%c%s",(int)cVar1,pcVar6)" ( (string_literal ""%c%s"" " string_content ") , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) , identifier )))) ;) (expression_statement "safefree(pcVar6);" (call_expression "safefree(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "conf_set_str_str((Conf *)data,0x32,pcVar7,value);" (call_expression "conf_set_str_str((Conf *)data,0x32,pcVar7,value)" identifier (argument_list "((Conf *)data,0x32,pcVar7,value)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier , identifier ))) ;) (expression_statement "safefree(value);" (call_expression "safefree(value)" identifier (argument_list "(value)" ( identifier ))) ;) (expression_statement "dlg_refresh((control *)piVar3[3],dlg);" (call_expression "dlg_refresh((control *)piVar3[3],dlg)" identifier (argument_list "((control *)piVar3[3],dlg)" ( (cast_expression "(control *)piVar3[3]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ])) , identifier ))) ;) (expression_statement "dlg_listbox_select((control *)piVar3[3],dlg,iVar4);" (call_expression "dlg_listbox_select((control *)piVar3[3],dlg,iVar4)" identifier (argument_list "((control *)piVar3[3],dlg,iVar4)" ( (cast_expression "(control *)piVar3[3]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ])) , identifier , identifier ))) ;) }))) })))))))) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001ee60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  char local_23 [3];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee69;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x14);\n  if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001ee60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  char local_23 [3];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee69;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x14);\n  if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001ee60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  char local_23 [3];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee69;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x14);\n  if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "char local_23 [3];" primitive_type (array_declarator "local_23 [3]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1ee69;" (assignment_expression "uStack_14 = 0x1ee69" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }" { (if_statement "if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }" if (parenthesized_expression "(piVar1[3] == param_1)" ( (binary_expression "piVar1[3] == param_1" (subscript_expression "piVar1[3]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }" { (expression_statement "FUN_00045530(param_1,param_2);" (call_expression "FUN_00045530(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "FUN_000445d0(param_1,param_2);" (call_expression "FUN_000445d0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);" (assignment_expression "pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28)" identifier = (cast_expression "(char *)FUN_0001da20(param_3,0x32,0,&local_28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001da20(param_3,0x32,0,&local_28)" identifier (argument_list "(param_3,0x32,0,&local_28)" ( identifier , number_literal , number_literal , (pointer_expression "&local_28" & identifier) ))))) ;) (if_statement "if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }" { (do_statement "do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);" do (compound_statement "{\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        }" { (expression_statement "pcVar9 = "(auto)";" (assignment_expression "pcVar9 = "(auto)"" identifier = (string_literal ""(auto)"" " string_content ")) ;) (if_statement "if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }" if (parenthesized_expression "((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N'))" ( (binary_expression "(*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')" (parenthesized_expression "(*pcVar7 != 'A')" ( (binary_expression "*pcVar7 != 'A'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'A'" ' character ')) )) && (parenthesized_expression "(pcVar9 = pcVar7 + 1, *pcVar7 == 'N')" ( (comma_expression "pcVar9 = pcVar7 + 1, *pcVar7 == 'N'" (assignment_expression "pcVar9 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) , (binary_expression "*pcVar7 == 'N'" (pointer_expression "*pcVar7" * identifier) == (char_literal "'N'" ' character '))) ))) )) (compound_statement "{\n            pcVar9 = "(don\'t send)";\n          }" { (expression_statement "pcVar9 = "(don\'t send)";" (assignment_expression "pcVar9 = "(don\'t send)"" identifier = (string_literal ""(don\'t send)"" " string_content escape_sequence string_content ")) ;) })) (expression_statement "uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);" (assignment_expression "uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9)" identifier = (call_expression "FUN_0002c480(&DAT_0006f924,local_28,pcVar9)" identifier (argument_list "(&DAT_0006f924,local_28,pcVar9)" ( (pointer_expression "&DAT_0006f924" & identifier) , identifier , identifier )))) ;) (expression_statement "FUN_00044940(param_1,param_2,uVar8);" (call_expression "FUN_00044940(param_1,param_2,uVar8)" identifier (argument_list "(param_1,param_2,uVar8)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0002c6a0(uVar8);" (call_expression "FUN_0002c6a0(uVar8)" identifier (argument_list "(uVar8)" ( identifier ))) ;) (expression_statement "pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);" (assignment_expression "pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28)" identifier = (cast_expression "(char *)FUN_0001da20(param_3,0x32,local_28,&local_28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001da20(param_3,0x32,local_28,&local_28)" identifier (argument_list "(param_3,0x32,local_28,&local_28)" ( identifier , number_literal , identifier , (pointer_expression "&local_28" & identifier) ))))) ;) }) while (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "FUN_00045540(param_1,param_2);" (call_expression "FUN_00045540(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) }) (else_clause "else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }" else (if_statement "if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }" if (parenthesized_expression "(*piVar1 == param_1)" ( (binary_expression "*piVar1 == param_1" (pointer_expression "*piVar1" * identifier) == identifier) )) (compound_statement "{\n      FUN_00044170(param_1,param_2,0);\n    }" { (expression_statement "FUN_00044170(param_1,param_2,0);" (call_expression "FUN_00044170(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))) ;) })))) }) (else_clause "else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" else (if_statement "if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" if (parenthesized_expression "(param_4 == 3)" ( (binary_expression "param_4 == 3" identifier == number_literal) )) (compound_statement "{\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }" { (if_statement "if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }" if (parenthesized_expression "((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3))" ( (binary_expression "(piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)" (parenthesized_expression "(piVar1[3] == param_1)" ( (binary_expression "piVar1[3] == param_1" (subscript_expression "piVar1[3]" identifier [ number_literal ]) == identifier) )) && (parenthesized_expression "(iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)" ( (comma_expression "iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3" (assignment_expression "iVar3 = FUN_00044a90(param_1,param_2)" identifier = (call_expression "FUN_00044a90(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) , (binary_expression "-1 < iVar3" number_literal < identifier)) ))) )) (compound_statement "{\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }" { (expression_statement "uVar8 = FUN_0001db10(param_3,0x32,iVar3);" (assignment_expression "uVar8 = FUN_0001db10(param_3,0x32,iVar3)" identifier = (call_expression "FUN_0001db10(param_3,0x32,iVar3)" identifier (argument_list "(param_3,0x32,iVar3)" ( identifier , number_literal , identifier )))) ;) (expression_statement "pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);" (assignment_expression "pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8)" identifier = (cast_expression "(char *)FUN_0001d9d0(param_3,0x32,uVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001d9d0(param_3,0x32,uVar8)" identifier (argument_list "(param_3,0x32,uVar8)" ( identifier , number_literal , identifier ))))) ;) (if_statement "if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }" if (parenthesized_expression "(pcVar7 == (char *)0x0)" ( (binary_expression "pcVar7 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }" { (expression_statement "__assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");" (call_expression "__assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler")" identifier (argument_list "("val != NULL","config.c",0x3dc,"ttymodes_handler")" ( (string_literal ""val != NULL"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""ttymodes_handler"" " string_content ") ))) ;) })) (expression_statement "FUN_00044410(piVar1[1],param_2,pcVar7 + 1);" (call_expression "FUN_00044410(piVar1[1],param_2,pcVar7 + 1)" identifier (argument_list "(piVar1[1],param_2,pcVar7 + 1)" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) , identifier , (binary_expression "pcVar7 + 1" identifier + number_literal) ))) ;) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }" if (parenthesized_expression "(*pcVar7 != 'A')" ( (binary_expression "*pcVar7 != 'A'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'A'" ' character ')) )) (compound_statement "{\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }" { (expression_statement "cVar2 = (*pcVar7 != 'N') + '\x01';" (assignment_expression "cVar2 = (*pcVar7 != 'N') + '\x01'" identifier = (binary_expression "(*pcVar7 != 'N') + '\x01'" (parenthesized_expression "(*pcVar7 != 'N')" ( (binary_expression "*pcVar7 != 'N'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'N'" ' character ')) )) + (char_literal "'\x01'" ' escape_sequence '))) ;) })) (expression_statement "FUN_00044170(*piVar1,param_2,cVar2);" (call_expression "FUN_00044170(*piVar1,param_2,cVar2)" identifier (argument_list "(*piVar1,param_2,cVar2)" ( (pointer_expression "*piVar1" * identifier) , identifier , identifier ))) ;) })) }) (else_clause "else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" else (if_statement "if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" if (parenthesized_expression "(param_4 == 2)" ( (binary_expression "param_4 == 2" identifier == number_literal) )) (compound_statement "{\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }" { (if_statement "if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }" if (parenthesized_expression "(piVar1[1] == param_1)" ( (binary_expression "piVar1[1] == param_1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n      FUN_00044170(*piVar1,param_2,2);\n    }" { (expression_statement "FUN_00044170(*piVar1,param_2,2);" (call_expression "FUN_00044170(*piVar1,param_2,2)" identifier (argument_list "(*piVar1,param_2,2)" ( (pointer_expression "*piVar1" * identifier) , identifier , number_literal ))) ;) })) }) (else_clause "else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" else (if_statement "if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" if (parenthesized_expression "((param_4 == 1) && (piVar1[2] == param_1))" ( (binary_expression "(param_4 == 1) && (piVar1[2] == param_1)" (parenthesized_expression "(param_4 == 1)" ( (binary_expression "param_4 == 1" identifier == number_literal) )) && (parenthesized_expression "(piVar1[2] == param_1)" ( (binary_expression "piVar1[2] == param_1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) == identifier) ))) )) (compound_statement "{\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" { (expression_statement "iVar3 = FUN_00044a90(piVar1[3],param_2);" (assignment_expression "iVar3 = FUN_00044a90(piVar1[3],param_2)" identifier = (call_expression "FUN_00044a90(piVar1[3],param_2)" identifier (argument_list "(piVar1[3],param_2)" ( (subscript_expression "piVar1[3]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "local_23[2] = 0x56;" (assignment_expression "local_23[2] = 0x56" (subscript_expression "local_23[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_23[0] = 'A';" (assignment_expression "local_23[0] = 'A'" (subscript_expression "local_23[0]" identifier [ number_literal ]) = (char_literal "'A'" ' character ')) ;) (expression_statement "local_23[1] = 'N';" (assignment_expression "local_23[1] = 'N'" (subscript_expression "local_23[1]" identifier [ number_literal ]) = (char_literal "'N'" ' character ')) ;) (expression_statement "uVar4 = FUN_00044220(*piVar1,param_2);" (assignment_expression "uVar4 = FUN_00044220(*piVar1,param_2)" identifier = (call_expression "FUN_00044220(*piVar1,param_2)" identifier (argument_list "(*piVar1,param_2)" ( (pointer_expression "*piVar1" * identifier) , identifier )))) ;) (if_statement "if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }" if (parenthesized_expression "(2 < uVar4)" ( (binary_expression "2 < uVar4" number_literal < identifier) )) (compound_statement "{\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }" { (expression_statement "__assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");" (call_expression "__assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler")" identifier (argument_list "("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler")" ( (string_literal ""button >= 0 && button < lenof(types)"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""ttymodes_handler"" " string_content ") ))) ;) })) (expression_statement "cVar2 = local_23[uVar4];" (assignment_expression "cVar2 = local_23[uVar4]" identifier = (subscript_expression "local_23[uVar4]" identifier [ identifier ])) ;) (if_statement "if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      FUN_00045690(param_2);\n    }" { (expression_statement "FUN_00045690(param_2);" (call_expression "FUN_00045690(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }" else (compound_statement "{\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }" { (expression_statement "uVar8 = FUN_0001db10(param_3,0x32,iVar3);" (assignment_expression "uVar8 = FUN_0001db10(param_3,0x32,iVar3)" identifier = (call_expression "FUN_0001db10(param_3,0x32,iVar3)" identifier (argument_list "(param_3,0x32,iVar3)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }" if (parenthesized_expression "(cVar2 == 'V')" ( (binary_expression "cVar2 == 'V'" identifier == (char_literal "'V'" ' character ')) )) (compound_statement "{\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }" { (expression_statement "uVar5 = FUN_000444f0(piVar1[1],param_2);" (assignment_expression "uVar5 = FUN_000444f0(piVar1[1],param_2)" identifier = (call_expression "FUN_000444f0(piVar1[1],param_2)" identifier (argument_list "(piVar1[1],param_2)" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) , identifier )))) ;) }) (else_clause "else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }" else (compound_statement "{\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }" { (expression_statement "uVar5 = FUN_0002bf20(&DAT_00079ab0);" (assignment_expression "uVar5 = FUN_0002bf20(&DAT_00079ab0)" identifier = (call_expression "FUN_0002bf20(&DAT_00079ab0)" identifier (argument_list "(&DAT_00079ab0)" ( (pointer_expression "&DAT_00079ab0" & identifier) )))) ;) }))) (expression_statement "uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);" (assignment_expression "uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5)" identifier = (call_expression "FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5)" identifier (argument_list "(&DAT_0006f936,(int)cVar2,uVar5)" ( (pointer_expression "&DAT_0006f936" & identifier) , (cast_expression "(int)cVar2" ( (type_descriptor "int" primitive_type) ) identifier) , identifier )))) ;) (expression_statement "FUN_0002c6a0(uVar5);" (call_expression "FUN_0002c6a0(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "FUN_0001dfa0(param_3,0x32,uVar8,uVar6);" (call_expression "FUN_0001dfa0(param_3,0x32,uVar8,uVar6)" identifier (argument_list "(param_3,0x32,uVar8,uVar6)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_0002c6a0(uVar6);" (call_expression "FUN_0002c6a0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (expression_statement "FUN_00045760(piVar1[3],param_2);" (call_expression "FUN_00045760(piVar1[3],param_2)" identifier (argument_list "(piVar1[3],param_2)" ( (subscript_expression "piVar1[3]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "FUN_00044f60(piVar1[3],param_2,iVar3);" (call_expression "FUN_00044f60(piVar1[3],param_2,iVar3)" identifier (argument_list "(piVar1[3],param_2,iVar3)" ( (subscript_expression "piVar1[3]" identifier [ number_literal ]) , identifier , identifier ))) ;) }))) })))))))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0005c430();\n  }" { (expression_statement "FUN_0005c430();" (call_expression "FUN_0005c430()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression (pointer_expression * IDENT) == (char_literal ' character '))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content ")) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , (pointer_expression & IDENT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) })))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) + (char_literal ' escape_sequence '))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT ))) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , LIT ))) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , IDENT ))) ;) }))) })))))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0001ee60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  char local_23 [3];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee69;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x14);\n  if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001ee60(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_0001ee60") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  undefined4 local_28;\n  char local_23 [3];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ee69;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x14);\n  if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "char *pcVar9;" (primitive_type "char") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "char local_23 [3];" (primitive_type "char") (array_declarator "local_23 [3]" (identifier "local_23") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1ee69;" (assignment_expression "uStack_14 = 0x1ee69" (identifier "uStack_14") (= "=") (number_literal "0x1ee69")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x14)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x14)" (* "*") (cast_expression "(int **)(param_1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_4 == 0) {\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }\n  else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }\n  }" ({ "{") (if_statement "if (piVar1[3] == param_1) {\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }\n    else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }" (if "if") (parenthesized_expression "(piVar1[3] == param_1)" (( "(") (binary_expression "piVar1[3] == param_1" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      FUN_00045530(param_1,param_2);\n      FUN_000445d0(param_1,param_2);\n      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);\n      if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }\n      FUN_00045540(param_1,param_2);\n    }" ({ "{") (expression_statement "FUN_00045530(param_1,param_2);" (call_expression "FUN_00045530(param_1,param_2)" (identifier "FUN_00045530") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_000445d0(param_1,param_2);" (call_expression "FUN_000445d0(param_1,param_2)" (identifier "FUN_000445d0") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);" (assignment_expression "pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28)" (identifier "pcVar7") (= "=") (cast_expression "(char *)FUN_0001da20(param_3,0x32,0,&local_28)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001da20(param_3,0x32,0,&local_28)" (identifier "FUN_0001da20") (argument_list "(param_3,0x32,0,&local_28)" (( "(") (identifier "param_3") (, ",") (number_literal "0x32") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")"))))) (; ";")) (if_statement "if (pcVar7 != (char *)0x0) {\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }" (if "if") (parenthesized_expression "(pcVar7 != (char *)0x0)" (( "(") (binary_expression "pcVar7 != (char *)0x0" (identifier "pcVar7") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);\n      }" ({ "{") (do_statement "do {\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        } while (pcVar7 != (char *)0x0);" (do "do") (compound_statement "{\n          pcVar9 = "(auto)";\n          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }\n          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);\n          FUN_00044940(param_1,param_2,uVar8);\n          FUN_0002c6a0(uVar8);\n          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);\n        }" ({ "{") (expression_statement "pcVar9 = "(auto)";" (assignment_expression "pcVar9 = "(auto)"" (identifier "pcVar9") (= "=") (string_literal ""(auto)"" (" """) (string_content "(auto)") (" """))) (; ";")) (if_statement "if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {\n            pcVar9 = "(don\'t send)";\n          }" (if "if") (parenthesized_expression "((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N'))" (( "(") (binary_expression "(*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')" (parenthesized_expression "(*pcVar7 != 'A')" (( "(") (binary_expression "*pcVar7 != 'A'" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (!= "!=") (char_literal "'A'" (' "'") (character "A") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar9 = pcVar7 + 1, *pcVar7 == 'N')" (( "(") (comma_expression "pcVar9 = pcVar7 + 1, *pcVar7 == 'N'" (assignment_expression "pcVar9 = pcVar7 + 1" (identifier "pcVar9") (= "=") (binary_expression "pcVar7 + 1" (identifier "pcVar7") (+ "+") (number_literal "1"))) (, ",") (binary_expression "*pcVar7 == 'N'" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (== "==") (char_literal "'N'" (' "'") (character "N") (' "'")))) () ")"))) () ")")) (compound_statement "{\n            pcVar9 = "(don\'t send)";\n          }" ({ "{") (expression_statement "pcVar9 = "(don\'t send)";" (assignment_expression "pcVar9 = "(don\'t send)"" (identifier "pcVar9") (= "=") (string_literal ""(don\'t send)"" (" """) (string_content "(don") (escape_sequence "\'") (string_content "t send)") (" """))) (; ";")) (} "}"))) (expression_statement "uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);" (assignment_expression "uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9)" (identifier "uVar8") (= "=") (call_expression "FUN_0002c480(&DAT_0006f924,local_28,pcVar9)" (identifier "FUN_0002c480") (argument_list "(&DAT_0006f924,local_28,pcVar9)" (( "(") (pointer_expression "&DAT_0006f924" (& "&") (identifier "DAT_0006f924")) (, ",") (identifier "local_28") (, ",") (identifier "pcVar9") () ")")))) (; ";")) (expression_statement "FUN_00044940(param_1,param_2,uVar8);" (call_expression "FUN_00044940(param_1,param_2,uVar8)" (identifier "FUN_00044940") (argument_list "(param_1,param_2,uVar8)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar8") () ")"))) (; ";")) (expression_statement "FUN_0002c6a0(uVar8);" (call_expression "FUN_0002c6a0(uVar8)" (identifier "FUN_0002c6a0") (argument_list "(uVar8)" (( "(") (identifier "uVar8") () ")"))) (; ";")) (expression_statement "pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);" (assignment_expression "pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28)" (identifier "pcVar7") (= "=") (cast_expression "(char *)FUN_0001da20(param_3,0x32,local_28,&local_28)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001da20(param_3,0x32,local_28,&local_28)" (identifier "FUN_0001da20") (argument_list "(param_3,0x32,local_28,&local_28)" (( "(") (identifier "param_3") (, ",") (number_literal "0x32") (, ",") (identifier "local_28") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar7 != (char *)0x0)" (( "(") (binary_expression "pcVar7 != (char *)0x0" (identifier "pcVar7") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00045540(param_1,param_2);" (call_expression "FUN_00045540(param_1,param_2)" (identifier "FUN_00045540") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")) (else_clause "else if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }" (else "else") (if_statement "if (*piVar1 == param_1) {\n      FUN_00044170(param_1,param_2,0);\n    }" (if "if") (parenthesized_expression "(*piVar1 == param_1)" (( "(") (binary_expression "*piVar1 == param_1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      FUN_00044170(param_1,param_2,0);\n    }" ({ "{") (expression_statement "FUN_00044170(param_1,param_2,0);" (call_expression "FUN_00044170(param_1,param_2,0)" (identifier "FUN_00044170") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))))) (} "}")) (else_clause "else if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" (else "else") (if_statement "if (param_4 == 3) {\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }\n  else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" (if "if") (parenthesized_expression "(param_4 == 3)" (( "(") (binary_expression "param_4 == 3" (identifier "param_4") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }\n  }" ({ "{") (if_statement "if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }" (if "if") (parenthesized_expression "((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3))" (( "(") (binary_expression "(piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)" (parenthesized_expression "(piVar1[3] == param_1)" (( "(") (binary_expression "piVar1[3] == param_1" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (== "==") (identifier "param_1")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)" (( "(") (comma_expression "iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3" (assignment_expression "iVar3 = FUN_00044a90(param_1,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00044a90(param_1,param_2)" (identifier "FUN_00044a90") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (, ",") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3"))) () ")"))) () ")")) (compound_statement "{\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);\n      if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }\n      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);\n      cVar2 = '\0';\n      if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }\n      FUN_00044170(*piVar1,param_2,cVar2);\n    }" ({ "{") (expression_statement "uVar8 = FUN_0001db10(param_3,0x32,iVar3);" (assignment_expression "uVar8 = FUN_0001db10(param_3,0x32,iVar3)" (identifier "uVar8") (= "=") (call_expression "FUN_0001db10(param_3,0x32,iVar3)" (identifier "FUN_0001db10") (argument_list "(param_3,0x32,iVar3)" (( "(") (identifier "param_3") (, ",") (number_literal "0x32") (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);" (assignment_expression "pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8)" (identifier "pcVar7") (= "=") (cast_expression "(char *)FUN_0001d9d0(param_3,0x32,uVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001d9d0(param_3,0x32,uVar8)" (identifier "FUN_0001d9d0") (argument_list "(param_3,0x32,uVar8)" (( "(") (identifier "param_3") (, ",") (number_literal "0x32") (, ",") (identifier "uVar8") () ")"))))) (; ";")) (if_statement "if (pcVar7 == (char *)0x0) {\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }" (if "if") (parenthesized_expression "(pcVar7 == (char *)0x0)" (( "(") (binary_expression "pcVar7 == (char *)0x0" (identifier "pcVar7") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");\n      }" ({ "{") (expression_statement "__assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");" (call_expression "__assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler")" (identifier "__assert_fail") (argument_list "("val != NULL","config.c",0x3dc,"ttymodes_handler")" (( "(") (string_literal ""val != NULL"" (" """) (string_content "val != NULL") (" """)) (, ",") (string_literal ""config.c"" (" """) (string_content "config.c") (" """)) (, ",") (number_literal "0x3dc") (, ",") (string_literal ""ttymodes_handler"" (" """) (string_content "ttymodes_handler") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00044410(piVar1[1],param_2,pcVar7 + 1);" (call_expression "FUN_00044410(piVar1[1],param_2,pcVar7 + 1)" (identifier "FUN_00044410") (argument_list "(piVar1[1],param_2,pcVar7 + 1)" (( "(") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") (, ",") (binary_expression "pcVar7 + 1" (identifier "pcVar7") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" (identifier "cVar2") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (if_statement "if (*pcVar7 != 'A') {\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }" (if "if") (parenthesized_expression "(*pcVar7 != 'A')" (( "(") (binary_expression "*pcVar7 != 'A'" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (!= "!=") (char_literal "'A'" (' "'") (character "A") (' "'"))) () ")")) (compound_statement "{\n        cVar2 = (*pcVar7 != 'N') + '\x01';\n      }" ({ "{") (expression_statement "cVar2 = (*pcVar7 != 'N') + '\x01';" (assignment_expression "cVar2 = (*pcVar7 != 'N') + '\x01'" (identifier "cVar2") (= "=") (binary_expression "(*pcVar7 != 'N') + '\x01'" (parenthesized_expression "(*pcVar7 != 'N')" (( "(") (binary_expression "*pcVar7 != 'N'" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (!= "!=") (char_literal "'N'" (' "'") (character "N") (' "'"))) () ")")) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")))) (; ";")) (} "}"))) (expression_statement "FUN_00044170(*piVar1,param_2,cVar2);" (call_expression "FUN_00044170(*piVar1,param_2,cVar2)" (identifier "FUN_00044170") (argument_list "(*piVar1,param_2,cVar2)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (, ",") (identifier "param_2") (, ",") (identifier "cVar2") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" (else "else") (if_statement "if (param_4 == 2) {\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }\n  else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" (if "if") (parenthesized_expression "(param_4 == 2)" (( "(") (binary_expression "param_4 == 2" (identifier "param_4") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }\n  }" ({ "{") (if_statement "if (piVar1[1] == param_1) {\n      FUN_00044170(*piVar1,param_2,2);\n    }" (if "if") (parenthesized_expression "(piVar1[1] == param_1)" (( "(") (binary_expression "piVar1[1] == param_1" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      FUN_00044170(*piVar1,param_2,2);\n    }" ({ "{") (expression_statement "FUN_00044170(*piVar1,param_2,2);" (call_expression "FUN_00044170(*piVar1,param_2,2)" (identifier "FUN_00044170") (argument_list "(*piVar1,param_2,2)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (, ",") (identifier "param_2") (, ",") (number_literal "2") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" (else "else") (if_statement "if ((param_4 == 1) && (piVar1[2] == param_1)) {\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" (if "if") (parenthesized_expression "((param_4 == 1) && (piVar1[2] == param_1))" (( "(") (binary_expression "(param_4 == 1) && (piVar1[2] == param_1)" (parenthesized_expression "(param_4 == 1)" (( "(") (binary_expression "param_4 == 1" (identifier "param_4") (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(piVar1[2] == param_1)" (( "(") (binary_expression "piVar1[2] == param_1" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (== "==") (identifier "param_1")) () ")"))) () ")")) (compound_statement "{\n    iVar3 = FUN_00044a90(piVar1[3],param_2);\n    local_23[2] = 0x56;\n    local_23[0] = 'A';\n    local_23[1] = 'N';\n    uVar4 = FUN_00044220(*piVar1,param_2);\n    if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }\n    cVar2 = local_23[uVar4];\n    if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }\n  }" ({ "{") (expression_statement "iVar3 = FUN_00044a90(piVar1[3],param_2);" (assignment_expression "iVar3 = FUN_00044a90(piVar1[3],param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00044a90(piVar1[3],param_2)" (identifier "FUN_00044a90") (argument_list "(piVar1[3],param_2)" (( "(") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "local_23[2] = 0x56;" (assignment_expression "local_23[2] = 0x56" (subscript_expression "local_23[2]" (identifier "local_23") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0x56")) (; ";")) (expression_statement "local_23[0] = 'A';" (assignment_expression "local_23[0] = 'A'" (subscript_expression "local_23[0]" (identifier "local_23") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'A'" (' "'") (character "A") (' "'"))) (; ";")) (expression_statement "local_23[1] = 'N';" (assignment_expression "local_23[1] = 'N'" (subscript_expression "local_23[1]" (identifier "local_23") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'N'" (' "'") (character "N") (' "'"))) (; ";")) (expression_statement "uVar4 = FUN_00044220(*piVar1,param_2);" (assignment_expression "uVar4 = FUN_00044220(*piVar1,param_2)" (identifier "uVar4") (= "=") (call_expression "FUN_00044220(*piVar1,param_2)" (identifier "FUN_00044220") (argument_list "(*piVar1,param_2)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (2 < uVar4) {\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }" (if "if") (parenthesized_expression "(2 < uVar4)" (( "(") (binary_expression "2 < uVar4" (number_literal "2") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n                    \n      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");\n    }" ({ "{") (expression_statement "__assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");" (call_expression "__assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler")" (identifier "__assert_fail") (argument_list "("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler")" (( "(") (string_literal ""button >= 0 && button < lenof(types)"" (" """) (string_content "button >= 0 && button < lenof(types)") (" """)) (, ",") (string_literal ""config.c"" (" """) (string_content "config.c") (" """)) (, ",") (number_literal "0x3f2") (, ",") (string_literal ""ttymodes_handler"" (" """) (string_content "ttymodes_handler") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "cVar2 = local_23[uVar4];" (assignment_expression "cVar2 = local_23[uVar4]" (identifier "cVar2") (= "=") (subscript_expression "local_23[uVar4]" (identifier "local_23") ([ "[") (identifier "uVar4") (] "]"))) (; ";")) (if_statement "if (iVar3 < 0) {\n      FUN_00045690(param_2);\n    }\n    else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00045690(param_2);\n    }" ({ "{") (expression_statement "FUN_00045690(param_2);" (call_expression "FUN_00045690(param_2)" (identifier "FUN_00045690") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }" (else "else") (compound_statement "{\n      uVar8 = FUN_0001db10(param_3,0x32,iVar3);\n      if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }\n      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);\n      FUN_0002c6a0(uVar5);\n      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);\n      FUN_0002c6a0(uVar6);\n      FUN_00045760(piVar1[3],param_2);\n      FUN_00044f60(piVar1[3],param_2,iVar3);\n    }" ({ "{") (expression_statement "uVar8 = FUN_0001db10(param_3,0x32,iVar3);" (assignment_expression "uVar8 = FUN_0001db10(param_3,0x32,iVar3)" (identifier "uVar8") (= "=") (call_expression "FUN_0001db10(param_3,0x32,iVar3)" (identifier "FUN_0001db10") (argument_list "(param_3,0x32,iVar3)" (( "(") (identifier "param_3") (, ",") (number_literal "0x32") (, ",") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (cVar2 == 'V') {\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }\n      else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }" (if "if") (parenthesized_expression "(cVar2 == 'V')" (( "(") (binary_expression "cVar2 == 'V'" (identifier "cVar2") (== "==") (char_literal "'V'" (' "'") (character "V") (' "'"))) () ")")) (compound_statement "{\n        uVar5 = FUN_000444f0(piVar1[1],param_2);\n      }" ({ "{") (expression_statement "uVar5 = FUN_000444f0(piVar1[1],param_2);" (assignment_expression "uVar5 = FUN_000444f0(piVar1[1],param_2)" (identifier "uVar5") (= "=") (call_expression "FUN_000444f0(piVar1[1],param_2)" (identifier "FUN_000444f0") (argument_list "(piVar1[1],param_2)" (( "(") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")) (else_clause "else {\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }" (else "else") (compound_statement "{\n        uVar5 = FUN_0002bf20(&DAT_00079ab0);\n      }" ({ "{") (expression_statement "uVar5 = FUN_0002bf20(&DAT_00079ab0);" (assignment_expression "uVar5 = FUN_0002bf20(&DAT_00079ab0)" (identifier "uVar5") (= "=") (call_expression "FUN_0002bf20(&DAT_00079ab0)" (identifier "FUN_0002bf20") (argument_list "(&DAT_00079ab0)" (( "(") (pointer_expression "&DAT_00079ab0" (& "&") (identifier "DAT_00079ab0")) () ")")))) (; ";")) (} "}")))) (expression_statement "uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);" (assignment_expression "uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5)" (identifier "uVar6") (= "=") (call_expression "FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5)" (identifier "FUN_0002c480") (argument_list "(&DAT_0006f936,(int)cVar2,uVar5)" (( "(") (pointer_expression "&DAT_0006f936" (& "&") (identifier "DAT_0006f936")) (, ",") (cast_expression "(int)cVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar2")) (, ",") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "FUN_0002c6a0(uVar5);" (call_expression "FUN_0002c6a0(uVar5)" (identifier "FUN_0002c6a0") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "FUN_0001dfa0(param_3,0x32,uVar8,uVar6);" (call_expression "FUN_0001dfa0(param_3,0x32,uVar8,uVar6)" (identifier "FUN_0001dfa0") (argument_list "(param_3,0x32,uVar8,uVar6)" (( "(") (identifier "param_3") (, ",") (number_literal "0x32") (, ",") (identifier "uVar8") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "FUN_0002c6a0(uVar6);" (call_expression "FUN_0002c6a0(uVar6)" (identifier "FUN_0002c6a0") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "FUN_00045760(piVar1[3],param_2);" (call_expression "FUN_00045760(piVar1[3],param_2)" (identifier "FUN_00045760") (argument_list "(piVar1[3],param_2)" (( "(") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_00044f60(piVar1[3],param_2,iVar3);" (call_expression "FUN_00044f60(piVar1[3],param_2,iVar3)" (identifier "FUN_00044f60") (argument_list "(piVar1[3],param_2,iVar3)" (( "(") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (, ",") (identifier "param_2") (, ",") (identifier "iVar3") () ")"))) (; ";")) (} "}")))) (} "}"))))))))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0005c430();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0005c430();\n  }" ({ "{") (expression_statement "FUN_0005c430();" (call_expression "FUN_0005c430()" (identifier "FUN_0005c430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(type_1 *var_3,void *dlg,void *data,int var_2)

{
  char var_22;
  int var_28;
  int *piVar3;
  int var_14;
  type_2 var_20;
  char *pcVar6;
  char *value;
  char *var_7;
  int var_1;
  char *key;
  char types [3];
  
  var_28 = *(int *)(var_1 + 0x14);
  piVar3 = *(int **)((int)var_3 + 0x14);
  if (var_2 == 0) {
    if ((type_1 *)piVar3[3] == var_3) {
      var_4(var_3,dlg);
      var_5(var_3,dlg);
      var_7 = var_6((type_3 *)data,0x32,(char *)0x0,&key);
      if (var_7 != (char *)0x0) {
        do {
          pcVar6 = "(auto)";
          if ((*var_7 != 'A') && (pcVar6 = var_7 + 1, *var_7 == 'N')) {
            pcVar6 = "(don\'t send)";
          }
          var_7 = var_8("%s\t%s",key,pcVar6);
          var_9(var_3,dlg,var_7);
          var_10(var_7);
          var_7 = var_6((type_3 *)data,0x32,key,&key);
        } while (var_7 != (char *)0x0);
      }
      var_11(var_3,dlg);
    }
    else if ((type_1 *)*piVar3 == var_3) {
      var_12(var_3,dlg,0);
    }
  }
  else if (var_2 == 3) {
    if (((type_1 *)piVar3[3] == var_3) && (var_14 = var_13(var_3,dlg), -1 < var_14)) {
      var_7 = var_15((type_3 *)data,0x32,var_14);
      var_7 = var_16((type_3 *)data,0x32,var_7);
      if (var_7 == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
        var_17("val != NULL","config.c",0x3dc,"ttymodes_handler");
      }
      var_18((type_1 *)piVar3[1],dlg,var_7 + 1);
      var_14 = 0;
      if (*var_7 != 'A') {
        var_14 = (*var_7 != 'N') + 1;
      }
      var_12((type_1 *)*piVar3,dlg,var_14);
    }
  }
  else if (var_2 == 2) {
    if ((type_1 *)piVar3[1] == var_3) {
      var_12((type_1 *)*piVar3,dlg,2);
    }
  }
  else if ((var_2 == 1) && ((type_1 *)piVar3[2] == var_3)) {
    var_14 = var_13((type_1 *)piVar3[3],dlg);
    types[2] = 'V';
    types[0] = 'A';
    types[1] = 'N';
    var_20 = var_19((type_1 *)*piVar3,dlg);
    if (2 < var_20) {
                    /* WARNING: Subroutine does not return */
      var_17("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");
    }
    var_22 = types[var_20];
    if (var_14 < 0) {
      var_21(dlg);
    }
    else {
      var_7 = var_15((type_3 *)data,0x32,var_14);
      if (var_22 == 'V') {
        pcVar6 = var_23((type_1 *)piVar3[1],dlg);
      }
      else {
        pcVar6 = var_24("");
      }
      value = var_8("%c%s",(int)var_22,pcVar6);
      var_10(pcVar6);
      var_25((type_3 *)data,0x32,var_7,value);
      var_10(value);
      var_26((type_1 *)piVar3[3],dlg);
      var_27((type_1 *)piVar3[3],dlg,var_14);
    }
  }
  if (var_28 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_29();
  }
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  int *piVar1;
  char cVar2;
  int iVar3;
  uint uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  char *pcVar7;
  undefined4 uVar8;
  char *pcVar9;
  int in_GS_OFFSET;
  undefined4 local_28;
  char local_23 [3];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1ee69;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar1 = *(int **)(param_1 + 0x14);
  if (param_4 == 0) {
    if (piVar1[3] == param_1) {
      FUN_00045530(param_1,param_2);
      FUN_000445d0(param_1,param_2);
      pcVar7 = (char *)FUN_0001da20(param_3,0x32,0,&local_28);
      if (pcVar7 != (char *)0x0) {
        do {
          pcVar9 = "(auto)";
          if ((*pcVar7 != 'A') && (pcVar9 = pcVar7 + 1, *pcVar7 == 'N')) {
            pcVar9 = "(don\'t send)";
          }
          uVar8 = FUN_0002c480(&DAT_0006f924,local_28,pcVar9);
          FUN_00044940(param_1,param_2,uVar8);
          FUN_0002c6a0(uVar8);
          pcVar7 = (char *)FUN_0001da20(param_3,0x32,local_28,&local_28);
        } while (pcVar7 != (char *)0x0);
      }
      FUN_00045540(param_1,param_2);
    }
    else if (*piVar1 == param_1) {
      FUN_00044170(param_1,param_2,0);
    }
  }
  else if (param_4 == 3) {
    if ((piVar1[3] == param_1) && (iVar3 = FUN_00044a90(param_1,param_2), -1 < iVar3)) {
      uVar8 = FUN_0001db10(param_3,0x32,iVar3);
      pcVar7 = (char *)FUN_0001d9d0(param_3,0x32,uVar8);
      if (pcVar7 == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("val != NULL","config.c",0x3dc,"ttymodes_handler");
      }
      FUN_00044410(piVar1[1],param_2,pcVar7 + 1);
      cVar2 = '\0';
      if (*pcVar7 != 'A') {
        cVar2 = (*pcVar7 != 'N') + '\x01';
      }
      FUN_00044170(*piVar1,param_2,cVar2);
    }
  }
  else if (param_4 == 2) {
    if (piVar1[1] == param_1) {
      FUN_00044170(*piVar1,param_2,2);
    }
  }
  else if ((param_4 == 1) && (piVar1[2] == param_1)) {
    iVar3 = FUN_00044a90(piVar1[3],param_2);
    local_23[2] = 0x56;
    local_23[0] = 'A';
    local_23[1] = 'N';
    uVar4 = FUN_00044220(*piVar1,param_2);
    if (2 < uVar4) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("button >= 0 && button < lenof(types)","config.c",0x3f2,"ttymodes_handler");
    }
    cVar2 = local_23[uVar4];
    if (iVar3 < 0) {
      FUN_00045690(param_2);
    }
    else {
      uVar8 = FUN_0001db10(param_3,0x32,iVar3);
      if (cVar2 == 'V') {
        uVar5 = FUN_000444f0(piVar1[1],param_2);
      }
      else {
        uVar5 = FUN_0002bf20(&DAT_00079ab0);
      }
      uVar6 = FUN_0002c480(&DAT_0006f936,(int)cVar2,uVar5);
      FUN_0002c6a0(uVar5);
      FUN_0001dfa0(param_3,0x32,uVar8,uVar6);
      FUN_0002c6a0(uVar6);
      FUN_00045760(piVar1[3],param_2);
      FUN_00044f60(piVar1[3],param_2,iVar3);
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0005c430();
  }
  return;
}

