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

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

{
  void *pvVar1;
  int iVar2;
  
  if (event != 0) {
    if (event != 2) {
      return;
    }
    iVar2 = dlg_radiobutton_get(ctrl,dlg);
    if ((-1 < iVar2) && (iVar2 < (ctrl->editbox).password)) {
      conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,
                  "conf_radiobutton_handler");
  }
  pvVar1 = (void *)conf_get_int((Conf *)data,(ctrl->generic).context.i);
  if (0 < (ctrl->editbox).password) {
    iVar2 = 0;
    if (pvVar1 == ((ctrl->radio).buttondata)->p) {
      iVar2 = 0;
    }
    else {
      do {
        iVar2 = iVar2 + 1;
        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;
      } while ((ctrl->radio).buttondata[iVar2].p != pvVar1);
    }
    dlg_radiobutton_set(ctrl,dlg,iVar2);
    return;
  }
LAB_00022d4c:
                    /* WARNING: Subroutine does not return */
  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");
}



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

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

{
  int iVar1;
  int iVar2;
  
  if (param_4 != 0) {
    if (param_4 != 2) {
      return;
    }
    iVar1 = FUN_00085330(param_1,param_2);
    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {
      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),
                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,
                  "conf_radiobutton_handler");
  }
  iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));
  if (0 < *(int *)(param_1 + 0x24)) {
    iVar2 = 0;
    if (iVar1 == **(int **)(param_1 + 0x30)) {
      iVar2 = 0;
    }
    else {
      do {
        iVar2 = iVar2 + 1;
        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;
      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);
    }
    FUN_00085280(param_1,param_2,iVar2);
    return;
  }
LAB_00022d4c:
                    /* WARNING: Subroutine does not return */
  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x1c]
CALL 0x0001c4f0
ADD EBX,0xeda54
MOV EDI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x00022d18
CMP ESI,0x2
JZ 0x00022d88
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH dword ptr [EDI + 0x14]
PUSH dword ptr [ESP + 0x24]
CALL 0x0001fb70
MOV EDX,dword ptr [EDI + 0x24]
ADD ESP,0x10
TEST EDX,EDX
JLE 0x00022d4c
MOV ECX,dword ptr [EDI + 0x30]
CMP EAX,dword ptr [ECX]
JNZ 0x00022d45
JMP 0x00022d70
CMP dword ptr [ECX + ESI*0x4],EAX
JZ 0x00022d70
ADD ESI,0x1
CMP ESI,EDX
JNZ 0x00022d40
LEA EAX,[EBX + 0xfffa8a80]
PUSH EAX
LEA EAX,[EBX + 0xfffa6233]
PUSH 0x24
PUSH EAX
LEA EAX,[EBX + 0xfffa6242]
PUSH EAX
CALL 0x0001c000
SUB ESP,0x4
PUSH ESI
PUSH dword ptr [ESP + 0x1c]
PUSH EDI
CALL 0x00085280
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH EDI
CALL 0x00085330
ADD ESP,0x10
TEST EAX,EAX
JS 0x00022dbd
CMP EAX,dword ptr [EDI + 0x24]
JGE 0x00022dbd
MOV EDX,dword ptr [EDI + 0x30]
SUB ESP,0x4
PUSH dword ptr [EDX + EAX*0x4]
PUSH dword ptr [EDI + 0x14]
PUSH dword ptr [ESP + 0x24]
CALL 0x00020290
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0xfffa8a80]
PUSH EAX
LEA EAX,[EBX + 0xfffa6233]
PUSH 0x28
PUSH EAX
LEA EAX,[EBX + 0xfffa7274]
PUSH EAX
CALL 0x0001c000
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00022cf0(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}\n\n" comment (function_definition "void FUN_00022cf0(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}" primitive_type (function_declarator "FUN_00022cf0(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\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    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\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 "iVar1 = FUN_00085330(param_1,param_2);" (assignment_expression "iVar1 = FUN_00085330(param_1,param_2)" identifier = (call_expression "FUN_00085330(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }" if (parenthesized_expression "((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24)))" ( (binary_expression "(-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))" (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) && (parenthesized_expression "(iVar1 < *(int *)(param_1 + 0x24))" ( (binary_expression "iVar1 < *(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) ))))) ))) )) (compound_statement "{\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }" { (expression_statement "FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));" (call_expression "FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x30) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 0x30) + iVar1 * 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 "iVar1 * 4" identifier * number_literal)) )))) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");" (call_expression "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler")" identifier (argument_list "("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler")" ( (string_literal ""button >= 0 && button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""conf_radiobutton_handler"" " string_content ") ))) ;) })) (expression_statement "iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(param_3,*(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 "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\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    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }" if (parenthesized_expression "(iVar1 == **(int **)(param_1 + 0x30))" ( (binary_expression "iVar1 == **(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      iVar2 = 0;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }" else (compound_statement "{\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }" { (do_statement "do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);" do (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;" if (parenthesized_expression "(iVar2 == *(int *)(param_1 + 0x24))" ( (binary_expression "iVar2 == *(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_00022d4c;" goto statement_identifier ;)) }) while (parenthesized_expression "((*(int **)(param_1 + 0x30))[iVar2] != iVar1)" ( (binary_expression "(*(int **)(param_1 + 0x30))[iVar2] != iVar1" (subscript_expression "(*(int **)(param_1 + 0x30))[iVar2]" (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_00085280(param_1,param_2,iVar2);" (call_expression "FUN_00085280(param_1,param_2,iVar2)" identifier (argument_list "(param_1,param_2,iVar2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_00022d4c:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");" statement_identifier : comment (expression_statement "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");" (call_expression "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler")" identifier (argument_list "("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler")" ( (string_literal ""button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""conf_radiobutton_handler"" " string_content ") ))) ;)) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid conf_radiobutton_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  void *pvVar1;\n  int iVar2;\n  \n  if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((-1 < iVar2) && (iVar2 < (ctrl->editbox).password)) {\n      conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  pvVar1 = (void *)conf_get_int((Conf *)data,(ctrl->generic).context.i);\n  if (0 < (ctrl->editbox).password) {\n    iVar2 = 0;\n    if (pvVar1 == ((ctrl->radio).buttondata)->p) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;\n      } while ((ctrl->radio).buttondata[iVar2].p != pvVar1);\n    }\n    dlg_radiobutton_set(ctrl,dlg,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}\n\n" comment (function_definition "void conf_radiobutton_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  void *pvVar1;\n  int iVar2;\n  \n  if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((-1 < iVar2) && (iVar2 < (ctrl->editbox).password)) {\n      conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  pvVar1 = (void *)conf_get_int((Conf *)data,(ctrl->generic).context.i);\n  if (0 < (ctrl->editbox).password) {\n    iVar2 = 0;\n    if (pvVar1 == ((ctrl->radio).buttondata)->p) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;\n      } while ((ctrl->radio).buttondata[iVar2].p != pvVar1);\n    }\n    dlg_radiobutton_set(ctrl,dlg,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}" primitive_type (function_declarator "conf_radiobutton_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  void *pvVar1;\n  int iVar2;\n  \n  if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((-1 < iVar2) && (iVar2 < (ctrl->editbox).password)) {\n      conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  pvVar1 = (void *)conf_get_int((Conf *)data,(ctrl->generic).context.i);\n  if (0 < (ctrl->editbox).password) {\n    iVar2 = 0;\n    if (pvVar1 == ((ctrl->radio).buttondata)->p) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;\n      } while ((ctrl->radio).buttondata[iVar2].p != pvVar1);\n    }\n    dlg_radiobutton_set(ctrl,dlg,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (event != 0) {\n    if (event != 2) {\n      return;\n    }\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((-1 < iVar2) && (iVar2 < (ctrl->editbox).password)) {\n      conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }" if (parenthesized_expression "(event != 0)" ( (binary_expression "event != 0" identifier != number_literal) )) (compound_statement "{\n    if (event != 2) {\n      return;\n    }\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((-1 < iVar2) && (iVar2 < (ctrl->editbox).password)) {\n      conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\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 "iVar2 = dlg_radiobutton_get(ctrl,dlg);" (assignment_expression "iVar2 = dlg_radiobutton_get(ctrl,dlg)" identifier = (call_expression "dlg_radiobutton_get(ctrl,dlg)" identifier (argument_list "(ctrl,dlg)" ( identifier , identifier )))) ;) (if_statement "if ((-1 < iVar2) && (iVar2 < (ctrl->editbox).password)) {\n      conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n      return;\n    }" if (parenthesized_expression "((-1 < iVar2) && (iVar2 < (ctrl->editbox).password))" ( (binary_expression "(-1 < iVar2) && (iVar2 < (ctrl->editbox).password)" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) && (parenthesized_expression "(iVar2 < (ctrl->editbox).password)" ( (binary_expression "iVar2 < (ctrl->editbox).password" identifier < (field_expression "(ctrl->editbox).password" (parenthesized_expression "(ctrl->editbox)" ( (field_expression "ctrl->editbox" identifier -> field_identifier) )) . field_identifier)) ))) )) (compound_statement "{\n      conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n      return;\n    }" { (expression_statement "conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);" (call_expression "conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i)" identifier (argument_list "((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (field_expression "(ctrl->generic).context.i" (field_expression "(ctrl->generic).context" (parenthesized_expression "(ctrl->generic)" ( (field_expression "ctrl->generic" identifier -> field_identifier) )) . field_identifier) . field_identifier) , (field_expression "(ctrl->radio).buttondata[iVar2].i" (subscript_expression "(ctrl->radio).buttondata[iVar2]" (field_expression "(ctrl->radio).buttondata" (parenthesized_expression "(ctrl->radio)" ( (field_expression "ctrl->radio" identifier -> field_identifier) )) . field_identifier) [ identifier ]) . field_identifier) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");" (call_expression "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler")" identifier (argument_list "("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler")" ( (string_literal ""button >= 0 && button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""conf_radiobutton_handler"" " string_content ") ))) ;) })) (expression_statement "pvVar1 = (void *)conf_get_int((Conf *)data,(ctrl->generic).context.i);" (assignment_expression "pvVar1 = (void *)conf_get_int((Conf *)data,(ctrl->generic).context.i)" identifier = (cast_expression "(void *)conf_get_int((Conf *)data,(ctrl->generic).context.i)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "conf_get_int((Conf *)data,(ctrl->generic).context.i)" identifier (argument_list "((Conf *)data,(ctrl->generic).context.i)" ( (cast_expression "(Conf *)data" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (field_expression "(ctrl->generic).context.i" (field_expression "(ctrl->generic).context" (parenthesized_expression "(ctrl->generic)" ( (field_expression "ctrl->generic" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))))) ;) (if_statement "if (0 < (ctrl->editbox).password) {\n    iVar2 = 0;\n    if (pvVar1 == ((ctrl->radio).buttondata)->p) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;\n      } while ((ctrl->radio).buttondata[iVar2].p != pvVar1);\n    }\n    dlg_radiobutton_set(ctrl,dlg,iVar2);\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    iVar2 = 0;\n    if (pvVar1 == ((ctrl->radio).buttondata)->p) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;\n      } while ((ctrl->radio).buttondata[iVar2].p != pvVar1);\n    }\n    dlg_radiobutton_set(ctrl,dlg,iVar2);\n    return;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (pvVar1 == ((ctrl->radio).buttondata)->p) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;\n      } while ((ctrl->radio).buttondata[iVar2].p != pvVar1);\n    }" if (parenthesized_expression "(pvVar1 == ((ctrl->radio).buttondata)->p)" ( (binary_expression "pvVar1 == ((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      iVar2 = 0;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;\n      } while ((ctrl->radio).buttondata[iVar2].p != pvVar1);\n    }" else (compound_statement "{\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;\n      } while ((ctrl->radio).buttondata[iVar2].p != pvVar1);\n    }" { (do_statement "do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;\n      } while ((ctrl->radio).buttondata[iVar2].p != pvVar1);" do (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == (ctrl->editbox).password) goto LAB_00022d4c;" if (parenthesized_expression "(iVar2 == (ctrl->editbox).password)" ( (binary_expression "iVar2 == (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_00022d4c;" goto statement_identifier ;)) }) while (parenthesized_expression "((ctrl->radio).buttondata[iVar2].p != pvVar1)" ( (binary_expression "(ctrl->radio).buttondata[iVar2].p != pvVar1" (field_expression "(ctrl->radio).buttondata[iVar2].p" (subscript_expression "(ctrl->radio).buttondata[iVar2]" (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,iVar2);" (call_expression "dlg_radiobutton_set(ctrl,dlg,iVar2)" identifier (argument_list "(ctrl,dlg,iVar2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_00022d4c:\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");" statement_identifier : comment (expression_statement "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");" (call_expression "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler")" identifier (argument_list "("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler")" ( (string_literal ""button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""conf_radiobutton_handler"" " string_content ") ))) ;)) })))
(translation_unit "void FUN_00022cf0(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    \n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}\n\n" (function_definition "void FUN_00022cf0(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    \n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}" primitive_type (function_declarator "FUN_00022cf0(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    \n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    \n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\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    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    \n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\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 "iVar1 = FUN_00085330(param_1,param_2);" (assignment_expression "iVar1 = FUN_00085330(param_1,param_2)" identifier = (call_expression "FUN_00085330(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }" if (parenthesized_expression "((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24)))" ( (binary_expression "(-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))" (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) && (parenthesized_expression "(iVar1 < *(int *)(param_1 + 0x24))" ( (binary_expression "iVar1 < *(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) ))))) ))) )) (compound_statement "{\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }" { (expression_statement "FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));" (call_expression "FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x30) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 0x30) + iVar1 * 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 "iVar1 * 4" identifier * number_literal)) )))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");" (call_expression "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler")" identifier (argument_list "("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler")" ( (string_literal ""button >= 0 && button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""conf_radiobutton_handler"" " string_content ") ))) ;) })) (expression_statement "iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(param_3,*(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 "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\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    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }" if (parenthesized_expression "(iVar1 == **(int **)(param_1 + 0x30))" ( (binary_expression "iVar1 == **(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      iVar2 = 0;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }" else (compound_statement "{\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }" { (do_statement "do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);" do (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;" if (parenthesized_expression "(iVar2 == *(int *)(param_1 + 0x24))" ( (binary_expression "iVar2 == *(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_00022d4c;" goto statement_identifier ;)) }) while (parenthesized_expression "((*(int **)(param_1 + 0x30))[iVar2] != iVar1)" ( (binary_expression "(*(int **)(param_1 + 0x30))[iVar2] != iVar1" (subscript_expression "(*(int **)(param_1 + 0x30))[iVar2]" (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_00085280(param_1,param_2,iVar2);" (call_expression "FUN_00085280(param_1,param_2,iVar2)" identifier (argument_list "(param_1,param_2,iVar2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_00022d4c:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");" statement_identifier : (expression_statement "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");" (call_expression "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler")" identifier (argument_list "("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler")" ( (string_literal ""button < ctrl->radio.nbuttons"" " string_content ") , (string_literal ""config.c"" " string_content ") , number_literal , (string_literal ""conf_radiobutton_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 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 = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (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)) )))) ))) ;) (return_statement return ;) })) (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 , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression 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_00022cf0(int param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    \n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}" (primitive_type "void") (function_declarator "FUN_00022cf0(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_00022cf0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    \n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\n  }\n  iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));\n  if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }\nLAB_00022d4c:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_4 != 0) {\n    if (param_4 != 2) {\n      return;\n    }\n    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    \n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\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    iVar1 = FUN_00085330(param_1,param_2);\n    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }\n                    \n    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");\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 "iVar1 = FUN_00085330(param_1,param_2);" (assignment_expression "iVar1 = FUN_00085330(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00085330(param_1,param_2)" (identifier "FUN_00085330") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {\n      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }" (if "if") (parenthesized_expression "((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24)))" (( "(") (binary_expression "(-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))" (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 < *(int *)(param_1 + 0x24))" (( "(") (binary_expression "iVar1 < *(int *)(param_1 + 0x24)" (identifier "iVar1") (< "<") (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      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));\n      return;\n    }" ({ "{") (expression_statement "FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));" (call_expression "FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4))" (identifier "FUN_00020290") (argument_list "(param_3,*(undefined4 *)(param_1 + 0x14),\n                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x30) + iVar1 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x30) + iVar1 * 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 "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler");" (call_expression "__assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_handler")" (identifier "__assert_fail") (argument_list "("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                  "conf_radiobutton_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 "0x28") (, ",") (string_literal ""conf_radiobutton_handler"" (" """) (string_content "conf_radiobutton_handler") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14))" (identifier "iVar1") (= "=") (call_expression "FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_0001fb70") (argument_list "(param_3,*(undefined4 *)(param_1 + 0x14))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (if_statement "if (0 < *(int *)(param_1 + 0x24)) {\n    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\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    iVar2 = 0;\n    if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }\n    FUN_00085280(param_1,param_2,iVar2);\n    return;\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 == **(int **)(param_1 + 0x30)) {\n      iVar2 = 0;\n    }\n    else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }" (if "if") (parenthesized_expression "(iVar1 == **(int **)(param_1 + 0x30))" (( "(") (binary_expression "iVar1 == **(int **)(param_1 + 0x30)" (identifier "iVar1") (== "==") (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      iVar2 = 0;\n    }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }" (else "else") (compound_statement "{\n      do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);\n    }" ({ "{") (do_statement "do {\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);" (do "do") (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;\n      }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;" (if "if") (parenthesized_expression "(iVar2 == *(int *)(param_1 + 0x24))" (( "(") (binary_expression "iVar2 == *(int *)(param_1 + 0x24)" (identifier "iVar2") (== "==") (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_00022d4c;" (goto "goto") (statement_identifier "LAB_00022d4c") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((*(int **)(param_1 + 0x30))[iVar2] != iVar1)" (( "(") (binary_expression "(*(int **)(param_1 + 0x30))[iVar2] != iVar1" (subscript_expression "(*(int **)(param_1 + 0x30))[iVar2]" (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 "iVar2") (] "]")) (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (} "}")))) (expression_statement "FUN_00085280(param_1,param_2,iVar2);" (call_expression "FUN_00085280(param_1,param_2,iVar2)" (identifier "FUN_00085280") (argument_list "(param_1,param_2,iVar2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_00022d4c:\n                    \n  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");" (statement_identifier "LAB_00022d4c") (: ":") (expression_statement "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");" (call_expression "__assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler")" (identifier "__assert_fail") (argument_list "("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler")" (( "(") (string_literal ""button < ctrl->radio.nbuttons"" (" """) (string_content "button < ctrl->radio.nbuttons") (" """)) (, ",") (string_literal ""config.c"" (" """) (string_content "config.c") (" """)) (, ",") (number_literal "0x24") (, ",") (string_literal ""conf_radiobutton_handler"" (" """) (string_content "conf_radiobutton_handler") (" """)) () ")"))) (; ";"))) (} "}")))

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

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

{
  void *var_7;
  int var_3;
  
  if (var_1 != 0) {
    if (var_1 != 2) {
      return;
    }
    var_3 = var_2(ctrl,dlg);
    if ((-1 < var_3) && (var_3 < (ctrl->editbox).password)) {
      var_4((type_2 *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[var_3].i);
      return;
    }
                    /* WARNING: Subroutine does not return */
    var_5("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,
                  "conf_radiobutton_handler");
  }
  var_7 = (void *)var_6((type_2 *)data,(ctrl->generic).context.i);
  if (0 < (ctrl->editbox).password) {
    var_3 = 0;
    if (var_7 == ((ctrl->radio).buttondata)->p) {
      var_3 = 0;
    }
    else {
      do {
        var_3 = var_3 + 1;
        if (var_3 == (ctrl->editbox).password) goto LAB_00022d4c;
      } while ((ctrl->radio).buttondata[var_3].p != var_7);
    }
    var_8(ctrl,dlg,var_3);
    return;
  }
LAB_00022d4c:
                    /* WARNING: Subroutine does not return */
  var_5("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_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: (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal))))))))) (return_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) (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))))))))) (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)

{
  int iVar1;
  int iVar2;
  
  if (param_4 != 0) {
    if (param_4 != 2) {
      return;
    }
    iVar1 = FUN_00085330(param_1,param_2);
    if ((-1 < iVar1) && (iVar1 < *(int *)(param_1 + 0x24))) {
      FUN_00020290(param_3,*(undefined4 *)(param_1 + 0x14),
                   *(undefined4 *)(*(int *)(param_1 + 0x30) + iVar1 * 4));
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,
                  "conf_radiobutton_handler");
  }
  iVar1 = FUN_0001fb70(param_3,*(undefined4 *)(param_1 + 0x14));
  if (0 < *(int *)(param_1 + 0x24)) {
    iVar2 = 0;
    if (iVar1 == **(int **)(param_1 + 0x30)) {
      iVar2 = 0;
    }
    else {
      do {
        iVar2 = iVar2 + 1;
        if (iVar2 == *(int *)(param_1 + 0x24)) goto LAB_00022d4c;
      } while ((*(int **)(param_1 + 0x30))[iVar2] != iVar1);
    }
    FUN_00085280(param_1,param_2,iVar2);
    return;
  }
LAB_00022d4c:
                    /* WARNING: Subroutine does not return */
  __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");
}

