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

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

{
  undefined4 *puVar1;
  void *pvVar2;
  int iVar3;
  int iVar4;
  Backend *pBVar5;
  Backend *pBVar6;
  
  if (event != 0) {
    if (event != 2) {
      return;
    }
    puVar1 = *(undefined4 **)((int)ctrl + 0x14);
    iVar3 = conf_get_int((Conf *)data,2);
    iVar4 = dlg_radiobutton_get(ctrl,dlg);
    if ((iVar4 < 0) || ((ctrl->editbox).password <= iVar4)) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,
                    "config_protocolbuttons_handler");
    }
    iVar4 = (ctrl->radio).buttondata[iVar4].i;
    conf_set_int((Conf *)data,2,iVar4);
    if (iVar3 != iVar4) {
      pBVar5 = backend_from_proto(iVar3);
      pBVar6 = backend_from_proto(iVar4);
      if (pBVar5 == (Backend *)0x0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");
      }
      if (pBVar6 == (Backend *)0x0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");
      }
      iVar3 = conf_get_int((Conf *)data,1);
      if (pBVar5->default_port == iVar3) {
        conf_set_int((Conf *)data,1,pBVar6->default_port);
      }
    }
    dlg_refresh((control *)*puVar1,dlg);
    dlg_refresh((control *)puVar1[1],dlg);
    return;
  }
  pvVar2 = (void *)conf_get_int((Conf *)data,2);
  if (0 < (ctrl->editbox).password) {
    iVar3 = 0;
    if (pvVar2 == ((ctrl->radio).buttondata)->p) {
      iVar3 = 0;
    }
    else {
      do {
        iVar3 = iVar3 + 1;
        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;
      } while ((ctrl->radio).buttondata[iVar3].p != pvVar2);
    }
    dlg_radiobutton_set(ctrl,dlg,iVar3);
    return;
  }
LAB_00021cd4:
                    /* WARNING: Subroutine does not return */
  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");
}



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

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

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  if (param_4 != 0) {
    if (param_4 != 2) {
      return;
    }
    puVar1 = *(undefined4 **)(param_1 + 0x14);
    iVar2 = FUN_000200f0(param_3,2);
    iVar3 = FUN_00059390(param_1,param_2);
    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,
                    "config_protocolbuttons_handler");
    }
    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);
    FUN_000208a0(param_3,2,iVar3);
    if (iVar2 != iVar3) {
      iVar2 = FUN_00037630(iVar2);
      iVar3 = FUN_00037630(iVar3);
      if (iVar2 == 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");
      }
      if (iVar3 == 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");
      }
      iVar4 = FUN_000200f0(param_3,1);
      if (*(int *)(iVar2 + 0x4c) == iVar4) {
        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));
      }
    }
    FUN_0005ac90(*puVar1,param_2);
    FUN_0005ac90(puVar1[1],param_2);
    return;
  }
  iVar2 = FUN_000200f0(param_3,2);
  if (0 < *(int *)(param_1 + 0x24)) {
    iVar3 = 0;
    if (iVar2 == **(int **)(param_1 + 0x30)) {
      iVar3 = 0;
    }
    else {
      do {
        iVar3 = iVar3 + 1;
        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;
      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);
    }
    FUN_000592e0(param_1,param_2,iVar3);
    return;
  }
LAB_00021cd4:
                    /* WARNING: Subroutine does not return */
  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0xa3b2b
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x3c]
MOV EDI,dword ptr [ESP + 0x30]
TEST ESI,ESI
JZ 0x00021ca0
CMP ESI,0x2
JZ 0x00021d18
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x2
PUSH dword ptr [ESP + 0x44]
CALL 0x000200f0
MOV EDX,dword ptr [EDI + 0x24]
ADD ESP,0x10
TEST EDX,EDX
JLE 0x00021cd4
MOV ECX,dword ptr [EDI + 0x30]
CMP EAX,dword ptr [ECX]
JNZ 0x00021ccd
JMP 0x00021cf8
CMP dword ptr [ECX + ESI*0x4],EAX
JZ 0x00021cf8
ADD ESI,0x1
CMP ESI,EDX
JNZ 0x00021cc8
LEA EAX,[EBX + 0xfffc7b04]
PUSH EAX
LEA EAX,[EBX + 0xfffc52bf]
PUSH 0x102
PUSH EAX
LEA EAX,[EBX + 0xfffc52ce]
PUSH EAX
CALL 0x0001af20
SUB ESP,0x4
PUSH ESI
PUSH dword ptr [ESP + 0x3c]
PUSH EDI
CALL 0x000592e0
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
MOV ESI,dword ptr [EDI + 0x14]
PUSH 0x2
PUSH dword ptr [ESP + 0x44]
CALL 0x000200f0
MOV EBP,EAX
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x3c]
PUSH EDI
CALL 0x00059390
ADD ESP,0x10
TEST EAX,EAX
JS 0x00021e22
CMP dword ptr [EDI + 0x24],EAX
JLE 0x00021e22
MOV EDX,dword ptr [EDI + 0x30]
SUB ESP,0x4
MOV EDI,dword ptr [EDX + EAX*0x4]
PUSH EDI
PUSH 0x2
PUSH dword ptr [ESP + 0x44]
CALL 0x000208a0
ADD ESP,0x10
CMP EBP,EDI
JZ 0x00021da7
SUB ESP,0xc
PUSH EBP
CALL 0x00037630
MOV dword ptr [ESP],EDI
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x00037630
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV EBP,EAX
TEST ECX,ECX
JZ 0x00021e03
TEST EAX,EAX
JZ 0x00021de4
SUB ESP,0x8
PUSH 0x1
PUSH dword ptr [ESP + 0x44]
CALL 0x000200f0
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0xc]
CMP dword ptr [EDI + 0x4c],EAX
JZ 0x00021dce
SUB ESP,0x8
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESI]
CALL 0x0005ac90
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESI + 0x4]
CALL 0x0005ac90
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH dword ptr [EBP + 0x4c]
PUSH 0x1
PUSH dword ptr [ESP + 0x44]
CALL 0x000208a0
ADD ESP,0x10
JMP 0x00021da7
LEA EAX,[EBX + 0xfffc7b04]
PUSH EAX
LEA EAX,[EBX + 0xfffc52bf]
PUSH 0x111
PUSH EAX
LEA EAX,[EBX + 0xfffc52cb]
PUSH EAX
CALL 0x0001af20
LEA EAX,[EBX + 0xfffc7b04]
PUSH EAX
LEA EAX,[EBX + 0xfffc52bf]
PUSH 0x110
PUSH EAX
LEA EAX,[EBX + 0xfffc52c8]
PUSH EAX
CALL 0x0001af20
LEA EAX,[EBX + 0xfffc7b04]
PUSH EAX
LEA EAX,[EBX + 0xfffc52bf]
PUSH 0x109
PUSH EAX
LEA EAX,[EBX + 0xfffc6318]
PUSH EAX
CALL 0x0001af20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00021c70(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }\n  iVar2 = FUN_000200f0(param_3,2);\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}\n\n" comment (function_definition "void FUN_00021c70(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }\n  iVar2 = FUN_000200f0(param_3,2);\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}" primitive_type (function_declarator "FUN_00021c70(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  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }\n  iVar2 = FUN_000200f0(param_3,2);\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }" { (if_statement "if (param_4 != 2) {\n      return;\n    }" if (parenthesized_expression "(param_4 != 2)" ( (binary_expression "param_4 != 2" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x14);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_000200f0(param_3,2);" (assignment_expression "iVar2 = FUN_000200f0(param_3,2)" identifier = (call_expression "FUN_000200f0(param_3,2)" identifier (argument_list "(param_3,2)" ( identifier , number_literal )))) ;) (expression_statement "iVar3 = FUN_00059390(param_1,param_2);" (assignment_expression "iVar3 = FUN_00059390(param_1,param_2)" identifier = (call_expression "FUN_00059390(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }" if (parenthesized_expression "((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3))" ( (binary_expression "(iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)" (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x24) <= iVar3)" ( (binary_expression "*(int *)(param_1 + 0x24) <= iVar3" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }" { comment (expression_statement "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");" (call_expression "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler")" identifier (argument_list "("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler")" ( (string_literal ""button >= 0 && button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;) })) (expression_statement "iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);" (assignment_expression "iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x30) + iVar3 * 4)" ( (binary_expression "*(int *)(param_1 + 0x30) + iVar3 * 4" (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "FUN_000208a0(param_3,2,iVar3);" (call_expression "FUN_000208a0(param_3,2,iVar3)" identifier (argument_list "(param_3,2,iVar3)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }" if (parenthesized_expression "(iVar2 != iVar3)" ( (binary_expression "iVar2 != iVar3" identifier != identifier) )) (compound_statement "{\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }" { (expression_statement "iVar2 = FUN_00037630(iVar2);" (assignment_expression "iVar2 = FUN_00037630(iVar2)" identifier = (call_expression "FUN_00037630(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "iVar3 = FUN_00037630(iVar3);" (assignment_expression "iVar3 = FUN_00037630(iVar3)" identifier = (call_expression "FUN_00037630(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }" { comment (expression_statement "__assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");" (call_expression "__assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler")" identifier (argument_list "("ob","config.c",0x110,"config_protocolbuttons_handler")" ( (string_literal ""ob"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;) })) (if_statement "if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }" { comment (expression_statement "__assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");" (call_expression "__assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler")" identifier (argument_list "("nb","config.c",0x111,"config_protocolbuttons_handler")" ( (string_literal ""nb"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;) })) (expression_statement "iVar4 = FUN_000200f0(param_3,1);" (assignment_expression "iVar4 = FUN_000200f0(param_3,1)" identifier = (call_expression "FUN_000200f0(param_3,1)" identifier (argument_list "(param_3,1)" ( identifier , number_literal )))) ;) (if_statement "if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 0x4c) == iVar4)" ( (binary_expression "*(int *)(iVar2 + 0x4c) == iVar4" (pointer_expression "*(int *)(iVar2 + 0x4c)" * (cast_expression "(int *)(iVar2 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x4c)" ( (binary_expression "iVar2 + 0x4c" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }" { (expression_statement "FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));" (call_expression "FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c))" identifier (argument_list "(param_3,1,*(undefined4 *)(iVar3 + 0x4c))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(iVar3 + 0x4c)" * (cast_expression "(undefined4 *)(iVar3 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x4c)" ( (binary_expression "iVar3 + 0x4c" identifier + number_literal) )))) ))) ;) })) })) (expression_statement "FUN_0005ac90(*puVar1,param_2);" (call_expression "FUN_0005ac90(*puVar1,param_2)" identifier (argument_list "(*puVar1,param_2)" ( (pointer_expression "*puVar1" * identifier) , identifier ))) ;) (expression_statement "FUN_0005ac90(puVar1[1],param_2);" (call_expression "FUN_0005ac90(puVar1[1],param_2)" identifier (argument_list "(puVar1[1],param_2)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = FUN_000200f0(param_3,2);" (assignment_expression "iVar2 = FUN_000200f0(param_3,2)" identifier = (call_expression "FUN_000200f0(param_3,2)" identifier (argument_list "(param_3,2)" ( identifier , number_literal )))) ;) (if_statement "if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x24))" ( (binary_expression "0 < *(int *)(param_1 + 0x24)" number_literal < (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }" if (parenthesized_expression "(iVar2 == **(int **)(param_1 + 0x30))" ( (binary_expression "iVar2 == **(int **)(param_1 + 0x30)" identifier == (pointer_expression "**(int **)(param_1 + 0x30)" * (pointer_expression "*(int **)(param_1 + 0x30)" * (cast_expression "(int **)(param_1 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))))) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }" else (compound_statement "{\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }" { (do_statement "do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);" do (compound_statement "{\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;" if (parenthesized_expression "(iVar3 == *(int *)(param_1 + 0x24))" ( (binary_expression "iVar3 == *(int *)(param_1 + 0x24)" identifier == (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) )) (goto_statement "goto LAB_00021cd4;" goto statement_identifier ;)) }) while (parenthesized_expression "((*(int **)(param_1 + 0x30))[iVar3] != iVar2)" ( (binary_expression "(*(int **)(param_1 + 0x30))[iVar3] != iVar2" (subscript_expression "(*(int **)(param_1 + 0x30))[iVar3]" (parenthesized_expression "(*(int **)(param_1 + 0x30))" ( (pointer_expression "*(int **)(param_1 + 0x30)" * (cast_expression "(int **)(param_1 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) )) [ identifier ]) != identifier) )) ;) }))) (expression_statement "FUN_000592e0(param_1,param_2,iVar3);" (call_expression "FUN_000592e0(param_1,param_2,iVar3)" identifier (argument_list "(param_1,param_2,iVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_00021cd4:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");" statement_identifier : comment (expression_statement "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");" (call_expression "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler")" identifier (argument_list "("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler")" ( (string_literal ""button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;)) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid config_protocolbuttons_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  undefined4 *puVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  Backend *pBVar5;\n  Backend *pBVar6;\n  \n  if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)((int)ctrl + 0x14);\n    iVar3 = conf_get_int((Conf *)data,2);\n    iVar4 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar4 < 0) || ((ctrl->editbox).password <= iVar4)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar4 = (ctrl->radio).buttondata[iVar4].i;\n    conf_set_int((Conf *)data,2,iVar4);\n    if (iVar3 != iVar4) {\n      pBVar5 = backend_from_proto(iVar3);\n      pBVar6 = backend_from_proto(iVar4);\n      if (pBVar5 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (pBVar6 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar3 = conf_get_int((Conf *)data,1);\n      if (pBVar5->default_port == iVar3) {\n        conf_set_int((Conf *)data,1,pBVar6->default_port);\n      }\n    }\n    dlg_refresh((control *)*puVar1,dlg);\n    dlg_refresh((control *)puVar1[1],dlg);\n    return;\n  }\n  pvVar2 = (void *)conf_get_int((Conf *)data,2);\n  if (0 < (ctrl->editbox).password) {\n    iVar3 = 0;\n    if (pvVar2 == ((ctrl->radio).buttondata)->p) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;\n      } while ((ctrl->radio).buttondata[iVar3].p != pvVar2);\n    }\n    dlg_radiobutton_set(ctrl,dlg,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}\n\n" comment comment (function_definition "void config_protocolbuttons_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  undefined4 *puVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  Backend *pBVar5;\n  Backend *pBVar6;\n  \n  if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)((int)ctrl + 0x14);\n    iVar3 = conf_get_int((Conf *)data,2);\n    iVar4 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar4 < 0) || ((ctrl->editbox).password <= iVar4)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar4 = (ctrl->radio).buttondata[iVar4].i;\n    conf_set_int((Conf *)data,2,iVar4);\n    if (iVar3 != iVar4) {\n      pBVar5 = backend_from_proto(iVar3);\n      pBVar6 = backend_from_proto(iVar4);\n      if (pBVar5 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (pBVar6 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar3 = conf_get_int((Conf *)data,1);\n      if (pBVar5->default_port == iVar3) {\n        conf_set_int((Conf *)data,1,pBVar6->default_port);\n      }\n    }\n    dlg_refresh((control *)*puVar1,dlg);\n    dlg_refresh((control *)puVar1[1],dlg);\n    return;\n  }\n  pvVar2 = (void *)conf_get_int((Conf *)data,2);\n  if (0 < (ctrl->editbox).password) {\n    iVar3 = 0;\n    if (pvVar2 == ((ctrl->radio).buttondata)->p) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;\n      } while ((ctrl->radio).buttondata[iVar3].p != pvVar2);\n    }\n    dlg_radiobutton_set(ctrl,dlg,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}" primitive_type (function_declarator "config_protocolbuttons_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  undefined4 *puVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  Backend *pBVar5;\n  Backend *pBVar6;\n  \n  if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)((int)ctrl + 0x14);\n    iVar3 = conf_get_int((Conf *)data,2);\n    iVar4 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar4 < 0) || ((ctrl->editbox).password <= iVar4)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar4 = (ctrl->radio).buttondata[iVar4].i;\n    conf_set_int((Conf *)data,2,iVar4);\n    if (iVar3 != iVar4) {\n      pBVar5 = backend_from_proto(iVar3);\n      pBVar6 = backend_from_proto(iVar4);\n      if (pBVar5 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (pBVar6 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar3 = conf_get_int((Conf *)data,1);\n      if (pBVar5->default_port == iVar3) {\n        conf_set_int((Conf *)data,1,pBVar6->default_port);\n      }\n    }\n    dlg_refresh((control *)*puVar1,dlg);\n    dlg_refresh((control *)puVar1[1],dlg);\n    return;\n  }\n  pvVar2 = (void *)conf_get_int((Conf *)data,2);\n  if (0 < (ctrl->editbox).password) {\n    iVar3 = 0;\n    if (pvVar2 == ((ctrl->radio).buttondata)->p) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;\n      } while ((ctrl->radio).buttondata[iVar3].p != pvVar2);\n    }\n    dlg_radiobutton_set(ctrl,dlg,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Backend *pBVar5;" type_identifier (pointer_declarator "*pBVar5" * identifier) ;) (declaration "Backend *pBVar6;" type_identifier (pointer_declarator "*pBVar6" * identifier) ;) (if_statement "if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)((int)ctrl + 0x14);\n    iVar3 = conf_get_int((Conf *)data,2);\n    iVar4 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar4 < 0) || ((ctrl->editbox).password <= iVar4)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar4 = (ctrl->radio).buttondata[iVar4].i;\n    conf_set_int((Conf *)data,2,iVar4);\n    if (iVar3 != iVar4) {\n      pBVar5 = backend_from_proto(iVar3);\n      pBVar6 = backend_from_proto(iVar4);\n      if (pBVar5 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (pBVar6 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar3 = conf_get_int((Conf *)data,1);\n      if (pBVar5->default_port == iVar3) {\n        conf_set_int((Conf *)data,1,pBVar6->default_port);\n      }\n    }\n    dlg_refresh((control *)*puVar1,dlg);\n    dlg_refresh((control *)puVar1[1],dlg);\n    return;\n  }" if (parenthesized_expression "(event != 0)" ( (binary_expression "event != 0" identifier != number_literal) )) (compound_statement "{\n    if (event != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)((int)ctrl + 0x14);\n    iVar3 = conf_get_int((Conf *)data,2);\n    iVar4 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar4 < 0) || ((ctrl->editbox).password <= iVar4)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar4 = (ctrl->radio).buttondata[iVar4].i;\n    conf_set_int((Conf *)data,2,iVar4);\n    if (iVar3 != iVar4) {\n      pBVar5 = backend_from_proto(iVar3);\n      pBVar6 = backend_from_proto(iVar4);\n      if (pBVar5 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (pBVar6 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar3 = conf_get_int((Conf *)data,1);\n      if (pBVar5->default_port == iVar3) {\n        conf_set_int((Conf *)data,1,pBVar6->default_port);\n      }\n    }\n    dlg_refresh((control *)*puVar1,dlg);\n    dlg_refresh((control *)puVar1[1],dlg);\n    return;\n  }" { (if_statement "if (event != 2) {\n      return;\n    }" if (parenthesized_expression "(event != 2)" ( (binary_expression "event != 2" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "puVar1 = *(undefined4 **)((int)ctrl + 0x14);" (assignment_expression "puVar1 = *(undefined4 **)((int)ctrl + 0x14)" identifier = (pointer_expression "*(undefined4 **)((int)ctrl + 0x14)" * (cast_expression "(undefined4 **)((int)ctrl + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (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) ))))) ;) (expression_statement "iVar3 = conf_get_int((Conf *)data,2);" (assignment_expression "iVar3 = conf_get_int((Conf *)data,2)" identifier = (call_expression "conf_get_int((Conf *)data,2)" identifier (argument_list "((Conf *)data,2)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal )))) ;) (expression_statement "iVar4 = dlg_radiobutton_get(ctrl,dlg);" (assignment_expression "iVar4 = dlg_radiobutton_get(ctrl,dlg)" identifier = (call_expression "dlg_radiobutton_get(ctrl,dlg)" identifier (argument_list "(ctrl,dlg)" ( identifier , identifier )))) ;) (if_statement "if ((iVar4 < 0) || ((ctrl->editbox).password <= iVar4)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }" if (parenthesized_expression "((iVar4 < 0) || ((ctrl->editbox).password <= iVar4))" ( (binary_expression "(iVar4 < 0) || ((ctrl->editbox).password <= iVar4)" (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) || (parenthesized_expression "((ctrl->editbox).password <= iVar4)" ( (binary_expression "(ctrl->editbox).password <= iVar4" (field_expression "(ctrl->editbox).password" (parenthesized_expression "(ctrl->editbox)" ( (field_expression "ctrl->editbox" identifier -> field_identifier) )) . field_identifier) <= identifier) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }" { comment (expression_statement "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");" (call_expression "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler")" identifier (argument_list "("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler")" ( (string_literal ""button >= 0 && button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;) })) (expression_statement "iVar4 = (ctrl->radio).buttondata[iVar4].i;" (assignment_expression "iVar4 = (ctrl->radio).buttondata[iVar4].i" identifier = (field_expression "(ctrl->radio).buttondata[iVar4].i" (subscript_expression "(ctrl->radio).buttondata[iVar4]" (field_expression "(ctrl->radio).buttondata" (parenthesized_expression "(ctrl->radio)" ( (field_expression "ctrl->radio" identifier -> field_identifier) )) . field_identifier) [ identifier ]) . field_identifier)) ;) (expression_statement "conf_set_int((Conf *)data,2,iVar4);" (call_expression "conf_set_int((Conf *)data,2,iVar4)" identifier (argument_list "((Conf *)data,2,iVar4)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier ))) ;) (if_statement "if (iVar3 != iVar4) {\n      pBVar5 = backend_from_proto(iVar3);\n      pBVar6 = backend_from_proto(iVar4);\n      if (pBVar5 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (pBVar6 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar3 = conf_get_int((Conf *)data,1);\n      if (pBVar5->default_port == iVar3) {\n        conf_set_int((Conf *)data,1,pBVar6->default_port);\n      }\n    }" if (parenthesized_expression "(iVar3 != iVar4)" ( (binary_expression "iVar3 != iVar4" identifier != identifier) )) (compound_statement "{\n      pBVar5 = backend_from_proto(iVar3);\n      pBVar6 = backend_from_proto(iVar4);\n      if (pBVar5 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (pBVar6 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar3 = conf_get_int((Conf *)data,1);\n      if (pBVar5->default_port == iVar3) {\n        conf_set_int((Conf *)data,1,pBVar6->default_port);\n      }\n    }" { (expression_statement "pBVar5 = backend_from_proto(iVar3);" (assignment_expression "pBVar5 = backend_from_proto(iVar3)" identifier = (call_expression "backend_from_proto(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "pBVar6 = backend_from_proto(iVar4);" (assignment_expression "pBVar6 = backend_from_proto(iVar4)" identifier = (call_expression "backend_from_proto(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (pBVar5 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }" if (parenthesized_expression "(pBVar5 == (Backend *)0x0)" ( (binary_expression "pBVar5 == (Backend *)0x0" identifier == (cast_expression "(Backend *)0x0" ( (type_descriptor "Backend *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }" { comment (expression_statement "__assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");" (call_expression "__assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler")" identifier (argument_list "("ob","config.c",0x110,"config_protocolbuttons_handler")" ( (string_literal ""ob"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;) })) (if_statement "if (pBVar6 == (Backend *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }" if (parenthesized_expression "(pBVar6 == (Backend *)0x0)" ( (binary_expression "pBVar6 == (Backend *)0x0" identifier == (cast_expression "(Backend *)0x0" ( (type_descriptor "Backend *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }" { comment (expression_statement "__assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");" (call_expression "__assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler")" identifier (argument_list "("nb","config.c",0x111,"config_protocolbuttons_handler")" ( (string_literal ""nb"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;) })) (expression_statement "iVar3 = conf_get_int((Conf *)data,1);" (assignment_expression "iVar3 = conf_get_int((Conf *)data,1)" identifier = (call_expression "conf_get_int((Conf *)data,1)" identifier (argument_list "((Conf *)data,1)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal )))) ;) (if_statement "if (pBVar5->default_port == iVar3) {\n        conf_set_int((Conf *)data,1,pBVar6->default_port);\n      }" if (parenthesized_expression "(pBVar5->default_port == iVar3)" ( (binary_expression "pBVar5->default_port == iVar3" (field_expression "pBVar5->default_port" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        conf_set_int((Conf *)data,1,pBVar6->default_port);\n      }" { (expression_statement "conf_set_int((Conf *)data,1,pBVar6->default_port);" (call_expression "conf_set_int((Conf *)data,1,pBVar6->default_port)" identifier (argument_list "((Conf *)data,1,pBVar6->default_port)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , (field_expression "pBVar6->default_port" identifier -> field_identifier) ))) ;) })) })) (expression_statement "dlg_refresh((control *)*puVar1,dlg);" (call_expression "dlg_refresh((control *)*puVar1,dlg)" identifier (argument_list "((control *)*puVar1,dlg)" ( (cast_expression "(control *)*puVar1" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , identifier ))) ;) (expression_statement "dlg_refresh((control *)puVar1[1],dlg);" (call_expression "dlg_refresh((control *)puVar1[1],dlg)" identifier (argument_list "((control *)puVar1[1],dlg)" ( (cast_expression "(control *)puVar1[1]" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pvVar2 = (void *)conf_get_int((Conf *)data,2);" (assignment_expression "pvVar2 = (void *)conf_get_int((Conf *)data,2)" identifier = (cast_expression "(void *)conf_get_int((Conf *)data,2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "conf_get_int((Conf *)data,2)" identifier (argument_list "((Conf *)data,2)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal ))))) ;) (if_statement "if (0 < (ctrl->editbox).password) {\n    iVar3 = 0;\n    if (pvVar2 == ((ctrl->radio).buttondata)->p) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;\n      } while ((ctrl->radio).buttondata[iVar3].p != pvVar2);\n    }\n    dlg_radiobutton_set(ctrl,dlg,iVar3);\n    return;\n  }" if (parenthesized_expression "(0 < (ctrl->editbox).password)" ( (binary_expression "0 < (ctrl->editbox).password" number_literal < (field_expression "(ctrl->editbox).password" (parenthesized_expression "(ctrl->editbox)" ( (field_expression "ctrl->editbox" identifier -> field_identifier) )) . field_identifier)) )) (compound_statement "{\n    iVar3 = 0;\n    if (pvVar2 == ((ctrl->radio).buttondata)->p) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;\n      } while ((ctrl->radio).buttondata[iVar3].p != pvVar2);\n    }\n    dlg_radiobutton_set(ctrl,dlg,iVar3);\n    return;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (pvVar2 == ((ctrl->radio).buttondata)->p) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;\n      } while ((ctrl->radio).buttondata[iVar3].p != pvVar2);\n    }" if (parenthesized_expression "(pvVar2 == ((ctrl->radio).buttondata)->p)" ( (binary_expression "pvVar2 == ((ctrl->radio).buttondata)->p" identifier == (field_expression "((ctrl->radio).buttondata)->p" (parenthesized_expression "((ctrl->radio).buttondata)" ( (field_expression "(ctrl->radio).buttondata" (parenthesized_expression "(ctrl->radio)" ( (field_expression "ctrl->radio" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier)) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;\n      } while ((ctrl->radio).buttondata[iVar3].p != pvVar2);\n    }" else (compound_statement "{\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;\n      } while ((ctrl->radio).buttondata[iVar3].p != pvVar2);\n    }" { (do_statement "do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;\n      } while ((ctrl->radio).buttondata[iVar3].p != pvVar2);" do (compound_statement "{\n        iVar3 = iVar3 + 1;\n        if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;\n      }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == (ctrl->editbox).password) goto LAB_00021cd4;" if (parenthesized_expression "(iVar3 == (ctrl->editbox).password)" ( (binary_expression "iVar3 == (ctrl->editbox).password" identifier == (field_expression "(ctrl->editbox).password" (parenthesized_expression "(ctrl->editbox)" ( (field_expression "ctrl->editbox" identifier -> field_identifier) )) . field_identifier)) )) (goto_statement "goto LAB_00021cd4;" goto statement_identifier ;)) }) while (parenthesized_expression "((ctrl->radio).buttondata[iVar3].p != pvVar2)" ( (binary_expression "(ctrl->radio).buttondata[iVar3].p != pvVar2" (field_expression "(ctrl->radio).buttondata[iVar3].p" (subscript_expression "(ctrl->radio).buttondata[iVar3]" (field_expression "(ctrl->radio).buttondata" (parenthesized_expression "(ctrl->radio)" ( (field_expression "ctrl->radio" identifier -> field_identifier) )) . field_identifier) [ identifier ]) . field_identifier) != identifier) )) ;) }))) (expression_statement "dlg_radiobutton_set(ctrl,dlg,iVar3);" (call_expression "dlg_radiobutton_set(ctrl,dlg,iVar3)" identifier (argument_list "(ctrl,dlg,iVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_00021cd4:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");" statement_identifier : comment (expression_statement "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");" (call_expression "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler")" identifier (argument_list "("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler")" ( (string_literal ""button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;)) })))
(translation_unit "void FUN_00021c70(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }\n  iVar2 = FUN_000200f0(param_3,2);\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}\n\n" (function_definition "void FUN_00021c70(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }\n  iVar2 = FUN_000200f0(param_3,2);\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}" primitive_type (function_declarator "FUN_00021c70(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  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }\n  iVar2 = FUN_000200f0(param_3,2);\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }" { (if_statement "if (param_4 != 2) {\n      return;\n    }" if (parenthesized_expression "(param_4 != 2)" ( (binary_expression "param_4 != 2" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x14);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_000200f0(param_3,2);" (assignment_expression "iVar2 = FUN_000200f0(param_3,2)" identifier = (call_expression "FUN_000200f0(param_3,2)" identifier (argument_list "(param_3,2)" ( identifier , number_literal )))) ;) (expression_statement "iVar3 = FUN_00059390(param_1,param_2);" (assignment_expression "iVar3 = FUN_00059390(param_1,param_2)" identifier = (call_expression "FUN_00059390(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }" if (parenthesized_expression "((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3))" ( (binary_expression "(iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)" (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x24) <= iVar3)" ( (binary_expression "*(int *)(param_1 + 0x24) <= iVar3" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }" { (expression_statement "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");" (call_expression "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler")" identifier (argument_list "("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler")" ( (string_literal ""button >= 0 && button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;) })) (expression_statement "iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);" (assignment_expression "iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x30) + iVar3 * 4)" ( (binary_expression "*(int *)(param_1 + 0x30) + iVar3 * 4" (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "FUN_000208a0(param_3,2,iVar3);" (call_expression "FUN_000208a0(param_3,2,iVar3)" identifier (argument_list "(param_3,2,iVar3)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }" if (parenthesized_expression "(iVar2 != iVar3)" ( (binary_expression "iVar2 != iVar3" identifier != identifier) )) (compound_statement "{\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }" { (expression_statement "iVar2 = FUN_00037630(iVar2);" (assignment_expression "iVar2 = FUN_00037630(iVar2)" identifier = (call_expression "FUN_00037630(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "iVar3 = FUN_00037630(iVar3);" (assignment_expression "iVar3 = FUN_00037630(iVar3)" identifier = (call_expression "FUN_00037630(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }" { (expression_statement "__assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");" (call_expression "__assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler")" identifier (argument_list "("ob","config.c",0x110,"config_protocolbuttons_handler")" ( (string_literal ""ob"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;) })) (if_statement "if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }" { (expression_statement "__assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");" (call_expression "__assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler")" identifier (argument_list "("nb","config.c",0x111,"config_protocolbuttons_handler")" ( (string_literal ""nb"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;) })) (expression_statement "iVar4 = FUN_000200f0(param_3,1);" (assignment_expression "iVar4 = FUN_000200f0(param_3,1)" identifier = (call_expression "FUN_000200f0(param_3,1)" identifier (argument_list "(param_3,1)" ( identifier , number_literal )))) ;) (if_statement "if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 0x4c) == iVar4)" ( (binary_expression "*(int *)(iVar2 + 0x4c) == iVar4" (pointer_expression "*(int *)(iVar2 + 0x4c)" * (cast_expression "(int *)(iVar2 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x4c)" ( (binary_expression "iVar2 + 0x4c" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }" { (expression_statement "FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));" (call_expression "FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c))" identifier (argument_list "(param_3,1,*(undefined4 *)(iVar3 + 0x4c))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(iVar3 + 0x4c)" * (cast_expression "(undefined4 *)(iVar3 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x4c)" ( (binary_expression "iVar3 + 0x4c" identifier + number_literal) )))) ))) ;) })) })) (expression_statement "FUN_0005ac90(*puVar1,param_2);" (call_expression "FUN_0005ac90(*puVar1,param_2)" identifier (argument_list "(*puVar1,param_2)" ( (pointer_expression "*puVar1" * identifier) , identifier ))) ;) (expression_statement "FUN_0005ac90(puVar1[1],param_2);" (call_expression "FUN_0005ac90(puVar1[1],param_2)" identifier (argument_list "(puVar1[1],param_2)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = FUN_000200f0(param_3,2);" (assignment_expression "iVar2 = FUN_000200f0(param_3,2)" identifier = (call_expression "FUN_000200f0(param_3,2)" identifier (argument_list "(param_3,2)" ( identifier , number_literal )))) ;) (if_statement "if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x24))" ( (binary_expression "0 < *(int *)(param_1 + 0x24)" number_literal < (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }" if (parenthesized_expression "(iVar2 == **(int **)(param_1 + 0x30))" ( (binary_expression "iVar2 == **(int **)(param_1 + 0x30)" identifier == (pointer_expression "**(int **)(param_1 + 0x30)" * (pointer_expression "*(int **)(param_1 + 0x30)" * (cast_expression "(int **)(param_1 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))))) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }" else (compound_statement "{\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }" { (do_statement "do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);" do (compound_statement "{\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;" if (parenthesized_expression "(iVar3 == *(int *)(param_1 + 0x24))" ( (binary_expression "iVar3 == *(int *)(param_1 + 0x24)" identifier == (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) )) (goto_statement "goto LAB_00021cd4;" goto statement_identifier ;)) }) while (parenthesized_expression "((*(int **)(param_1 + 0x30))[iVar3] != iVar2)" ( (binary_expression "(*(int **)(param_1 + 0x30))[iVar3] != iVar2" (subscript_expression "(*(int **)(param_1 + 0x30))[iVar3]" (parenthesized_expression "(*(int **)(param_1 + 0x30))" ( (pointer_expression "*(int **)(param_1 + 0x30)" * (cast_expression "(int **)(param_1 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) )) [ identifier ]) != identifier) )) ;) }))) (expression_statement "FUN_000592e0(param_1,param_2,iVar3);" (call_expression "FUN_000592e0(param_1,param_2,iVar3)" identifier (argument_list "(param_1,param_2,iVar3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_00021cd4:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");" statement_identifier : (expression_statement "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");" (call_expression "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler")" identifier (argument_list "("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler")" ( (string_literal ""button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""config_protocolbuttons_handler"" " string_content ") ))) ;)) })))
(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 ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) [ IDENT ]) != IDENT) )) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;)) })))
(function_definition "void FUN_00021c70(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }\n  iVar2 = FUN_000200f0(param_3,2);\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}" (primitive_type "void") (function_declarator "FUN_00021c70(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_00021c70") (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  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }\n  iVar2 = FUN_000200f0(param_3,2);\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }\nLAB_00021cd4:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_4 != 2) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(param_1 + 0x14);\n    iVar2 = FUN_000200f0(param_3,2);\n    iVar3 = FUN_00059390(param_1,param_2);\n    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }\n    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);\n    FUN_000208a0(param_3,2,iVar3);\n    if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }\n    FUN_0005ac90(*puVar1,param_2);\n    FUN_0005ac90(puVar1[1],param_2);\n    return;\n  }" ({ "{") (if_statement "if (param_4 != 2) {\n      return;\n    }" (if "if") (parenthesized_expression "(param_4 != 2)" (( "(") (binary_expression "param_4 != 2" (identifier "param_4") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x14);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x14)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = FUN_000200f0(param_3,2);" (assignment_expression "iVar2 = FUN_000200f0(param_3,2)" (identifier "iVar2") (= "=") (call_expression "FUN_000200f0(param_3,2)" (identifier "FUN_000200f0") (argument_list "(param_3,2)" (( "(") (identifier "param_3") (, ",") (number_literal "2") () ")")))) (; ";")) (expression_statement "iVar3 = FUN_00059390(param_1,param_2);" (assignment_expression "iVar3 = FUN_00059390(param_1,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00059390(param_1,param_2)" (identifier "FUN_00059390") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }" (if "if") (parenthesized_expression "((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3))" (( "(") (binary_expression "(iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)" (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x24) <= iVar3)" (( "(") (binary_expression "*(int *)(param_1 + 0x24) <= iVar3" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (<= "<=") (identifier "iVar3")) () ")"))) () ")")) (compound_statement "{\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");\n    }" ({ "{") (expression_statement "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler");" (call_expression "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler")" (identifier "__assert_fail") (argument_list "("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,\n                    "config_protocolbuttons_handler")" (( "(") (string_literal ""button >= 0 && button < ctrl->radio.nbuttons"" (" """) (string_content "button >= 0 && button < ctrl->radio.nbuttons") (" """)) (, ",") (string_literal ""config.c"" (" """) (string_content "config.c") (" """)) (, ",") (number_literal "0x109") (, ",") (string_literal ""config_protocolbuttons_handler"" (" """) (string_content "config_protocolbuttons_handler") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);" (assignment_expression "iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x30) + iVar3 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x30) + iVar3 * 4" (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "FUN_000208a0(param_3,2,iVar3);" (call_expression "FUN_000208a0(param_3,2,iVar3)" (identifier "FUN_000208a0") (argument_list "(param_3,2,iVar3)" (( "(") (identifier "param_3") (, ",") (number_literal "2") (, ",") (identifier "iVar3") () ")"))) (; ";")) (if_statement "if (iVar2 != iVar3) {\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 != iVar3)" (( "(") (binary_expression "iVar2 != iVar3" (identifier "iVar2") (!= "!=") (identifier "iVar3")) () ")")) (compound_statement "{\n      iVar2 = FUN_00037630(iVar2);\n      iVar3 = FUN_00037630(iVar3);\n      if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }\n      if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }\n      iVar4 = FUN_000200f0(param_3,1);\n      if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }\n    }" ({ "{") (expression_statement "iVar2 = FUN_00037630(iVar2);" (assignment_expression "iVar2 = FUN_00037630(iVar2)" (identifier "iVar2") (= "=") (call_expression "FUN_00037630(iVar2)" (identifier "FUN_00037630") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "iVar3 = FUN_00037630(iVar3);" (assignment_expression "iVar3 = FUN_00037630(iVar3)" (identifier "iVar3") (= "=") (call_expression "FUN_00037630(iVar3)" (identifier "FUN_00037630") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");\n      }" ({ "{") (expression_statement "__assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");" (call_expression "__assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler")" (identifier "__assert_fail") (argument_list "("ob","config.c",0x110,"config_protocolbuttons_handler")" (( "(") (string_literal ""ob"" (" """) (string_content "ob") (" """)) (, ",") (string_literal ""config.c"" (" """) (string_content "config.c") (" """)) (, ",") (number_literal "0x110") (, ",") (string_literal ""config_protocolbuttons_handler"" (" """) (string_content "config_protocolbuttons_handler") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar3 == 0) {\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");\n      }" ({ "{") (expression_statement "__assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");" (call_expression "__assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler")" (identifier "__assert_fail") (argument_list "("nb","config.c",0x111,"config_protocolbuttons_handler")" (( "(") (string_literal ""nb"" (" """) (string_content "nb") (" """)) (, ",") (string_literal ""config.c"" (" """) (string_content "config.c") (" """)) (, ",") (number_literal "0x111") (, ",") (string_literal ""config_protocolbuttons_handler"" (" """) (string_content "config_protocolbuttons_handler") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_000200f0(param_3,1);" (assignment_expression "iVar4 = FUN_000200f0(param_3,1)" (identifier "iVar4") (= "=") (call_expression "FUN_000200f0(param_3,1)" (identifier "FUN_000200f0") (argument_list "(param_3,1)" (( "(") (identifier "param_3") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (*(int *)(iVar2 + 0x4c) == iVar4) {\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x4c) == iVar4)" (( "(") (binary_expression "*(int *)(iVar2 + 0x4c) == iVar4" (pointer_expression "*(int *)(iVar2 + 0x4c)" (* "*") (cast_expression "(int *)(iVar2 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x4c)" (( "(") (binary_expression "iVar2 + 0x4c" (identifier "iVar2") (+ "+") (number_literal "0x4c")) () ")")))) (== "==") (identifier "iVar4")) () ")")) (compound_statement "{\n        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));\n      }" ({ "{") (expression_statement "FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));" (call_expression "FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c))" (identifier "FUN_000208a0") (argument_list "(param_3,1,*(undefined4 *)(iVar3 + 0x4c))" (( "(") (identifier "param_3") (, ",") (number_literal "1") (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x4c)" (( "(") (binary_expression "iVar3 + 0x4c" (identifier "iVar3") (+ "+") (number_literal "0x4c")) () ")")))) () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0005ac90(*puVar1,param_2);" (call_expression "FUN_0005ac90(*puVar1,param_2)" (identifier "FUN_0005ac90") (argument_list "(*puVar1,param_2)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_0005ac90(puVar1[1],param_2);" (call_expression "FUN_0005ac90(puVar1[1],param_2)" (identifier "FUN_0005ac90") (argument_list "(puVar1[1],param_2)" (( "(") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_000200f0(param_3,2);" (assignment_expression "iVar2 = FUN_000200f0(param_3,2)" (identifier "iVar2") (= "=") (call_expression "FUN_000200f0(param_3,2)" (identifier "FUN_000200f0") (argument_list "(param_3,2)" (( "(") (identifier "param_3") (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (0 < *(int *)(param_1 + 0x24)) {\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }" (if "if") (parenthesized_expression "(0 < *(int *)(param_1 + 0x24))" (( "(") (binary_expression "0 < *(int *)(param_1 + 0x24)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (compound_statement "{\n    iVar3 = 0;\n    if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }\n    FUN_000592e0(param_1,param_2,iVar3);\n    return;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar2 == **(int **)(param_1 + 0x30)) {\n      iVar3 = 0;\n    }\n    else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }" (if "if") (parenthesized_expression "(iVar2 == **(int **)(param_1 + 0x30))" (( "(") (binary_expression "iVar2 == **(int **)(param_1 + 0x30)" (identifier "iVar2") (== "==") (pointer_expression "**(int **)(param_1 + 0x30)" (* "*") (pointer_expression "*(int **)(param_1 + 0x30)" (* "*") (cast_expression "(int **)(param_1 + 0x30)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))))) () ")")) (compound_statement "{\n      iVar3 = 0;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }" (else "else") (compound_statement "{\n      do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);\n    }" ({ "{") (do_statement "do {\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);" (do "do") (compound_statement "{\n        iVar3 = iVar3 + 1;\n        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;\n      }" ({ "{") (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;" (if "if") (parenthesized_expression "(iVar3 == *(int *)(param_1 + 0x24))" (( "(") (binary_expression "iVar3 == *(int *)(param_1 + 0x24)" (identifier "iVar3") (== "==") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (goto_statement "goto LAB_00021cd4;" (goto "goto") (statement_identifier "LAB_00021cd4") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((*(int **)(param_1 + 0x30))[iVar3] != iVar2)" (( "(") (binary_expression "(*(int **)(param_1 + 0x30))[iVar3] != iVar2" (subscript_expression "(*(int **)(param_1 + 0x30))[iVar3]" (parenthesized_expression "(*(int **)(param_1 + 0x30))" (( "(") (pointer_expression "*(int **)(param_1 + 0x30)" (* "*") (cast_expression "(int **)(param_1 + 0x30)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) () ")")) ([ "[") (identifier "iVar3") (] "]")) (!= "!=") (identifier "iVar2")) () ")")) (; ";")) (} "}")))) (expression_statement "FUN_000592e0(param_1,param_2,iVar3);" (call_expression "FUN_000592e0(param_1,param_2,iVar3)" (identifier "FUN_000592e0") (argument_list "(param_1,param_2,iVar3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_00021cd4:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");" (statement_identifier "LAB_00021cd4") (: ":") (expression_statement "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");" (call_expression "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler")" (identifier "__assert_fail") (argument_list "("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler")" (( "(") (string_literal ""button < ctrl->radio.nbuttons"" (" """) (string_content "button < ctrl->radio.nbuttons") (" """)) (, ",") (string_literal ""config.c"" (" """) (string_content "config.c") (" """)) (, ",") (number_literal "0x102") (, ",") (string_literal ""config_protocolbuttons_handler"" (" """) (string_content "config_protocolbuttons_handler") (" """)) () ")"))) (; ";"))) (} "}")))

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

void function_1(type_1 *ctrl,void *dlg,void *data,int var_1)

{
  type_2 *puVar1;
  void *var_12;
  int var_7;
  int var_4;
  type_3 *var_9;
  type_3 *var_10;
  
  if (var_1 != 0) {
    if (var_1 != 2) {
      return;
    }
    puVar1 = *(type_2 **)((int)ctrl + 0x14);
    var_7 = var_2((type_4 *)data,2);
    var_4 = var_3(ctrl,dlg);
    if ((var_4 < 0) || ((ctrl->editbox).password <= var_4)) {
                    /* WARNING: Subroutine does not return */
      var_5("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,
                    "config_protocolbuttons_handler");
    }
    var_4 = (ctrl->radio).buttondata[var_4].i;
    var_6((type_4 *)data,2,var_4);
    if (var_7 != var_4) {
      var_9 = var_8(var_7);
      var_10 = var_8(var_4);
      if (var_9 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
        var_5("ob","config.c",0x110,"config_protocolbuttons_handler");
      }
      if (var_10 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
        var_5("nb","config.c",0x111,"config_protocolbuttons_handler");
      }
      var_7 = var_2((type_4 *)data,1);
      if (var_9->default_port == var_7) {
        var_6((type_4 *)data,1,var_10->default_port);
      }
    }
    var_11((type_1 *)*puVar1,dlg);
    var_11((type_1 *)puVar1[1],dlg);
    return;
  }
  var_12 = (void *)var_2((type_4 *)data,2);
  if (0 < (ctrl->editbox).password) {
    var_7 = 0;
    if (var_12 == ((ctrl->radio).buttondata)->p) {
      var_7 = 0;
    }
    else {
      do {
        var_7 = var_7 + 1;
        if (var_7 == (ctrl->editbox).password) goto LAB_00021cd4;
      } while ((ctrl->radio).buttondata[var_7].p != var_12);
    }
    var_13(ctrl,dlg,var_7);
    return;
  }
LAB_00021cd4:
                    /* WARNING: Subroutine does not return */
  var_5("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");
}


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

/* 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)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  if (param_4 != 0) {
    if (param_4 != 2) {
      return;
    }
    puVar1 = *(undefined4 **)(param_1 + 0x14);
    iVar2 = FUN_000200f0(param_3,2);
    iVar3 = FUN_00059390(param_1,param_2);
    if ((iVar3 < 0) || (*(int *)(param_1 + 0x24) <= iVar3)) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x109,
                    "config_protocolbuttons_handler");
    }
    iVar3 = *(int *)(*(int *)(param_1 + 0x30) + iVar3 * 4);
    FUN_000208a0(param_3,2,iVar3);
    if (iVar2 != iVar3) {
      iVar2 = FUN_00037630(iVar2);
      iVar3 = FUN_00037630(iVar3);
      if (iVar2 == 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("ob","config.c",0x110,"config_protocolbuttons_handler");
      }
      if (iVar3 == 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("nb","config.c",0x111,"config_protocolbuttons_handler");
      }
      iVar4 = FUN_000200f0(param_3,1);
      if (*(int *)(iVar2 + 0x4c) == iVar4) {
        FUN_000208a0(param_3,1,*(undefined4 *)(iVar3 + 0x4c));
      }
    }
    FUN_0005ac90(*puVar1,param_2);
    FUN_0005ac90(puVar1[1],param_2);
    return;
  }
  iVar2 = FUN_000200f0(param_3,2);
  if (0 < *(int *)(param_1 + 0x24)) {
    iVar3 = 0;
    if (iVar2 == **(int **)(param_1 + 0x30)) {
      iVar3 = 0;
    }
    else {
      do {
        iVar3 = iVar3 + 1;
        if (iVar3 == *(int *)(param_1 + 0x24)) goto LAB_00021cd4;
      } while ((*(int **)(param_1 + 0x30))[iVar3] != iVar2);
    }
    FUN_000592e0(param_1,param_2,iVar3);
    return;
  }
LAB_00021cd4:
                    /* WARNING: Subroutine does not return */
  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x102,"config_protocolbuttons_handler");
}

