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

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



void FUN_00115359(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)

{
  int iVar1;
  ulong uVar2;
  ulong uVar3;
  
  uVar3 = param_4 & 0xffffffff;
  if ((int)param_4 == 0) {
    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));
    if (*(int *)(param_1 + 0x38) < 1) {
LAB_0011540b:
                    /* WARNING: Subroutine does not return */
      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");
    }
    if (iVar1 != **(int **)(param_1 + 0x50)) {
      uVar2 = 1;
      do {
        uVar3 = uVar2 & 0xffffffff;
        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;
        uVar2 = uVar2 + 1;
      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);
    }
    FUN_001367f0(param_1,param_2,uVar3);
  }
  else if ((int)param_4 == 2) {
    iVar1 = FUN_0013687e();
    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,
                    "conf_radiobutton_handler");
    }
    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),
                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));
  }
  return;
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBP,RDI
MOV R12,RSI
MOV R13,RDX
MOV EBX,ECX
TEST ECX,ECX
JZ 0x00115382
CMP ECX,0x2
JZ 0x001153c8
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
MOV ESI,dword ptr [RDI + 0x20]
MOV RDI,RDX
CALL 0x001141e7
MOV EDX,dword ptr [RBP + 0x38]
TEST EDX,EDX
JLE 0x0011540b
MOV RSI,qword ptr [RBP + 0x50]
CMP EAX,dword ptr [RSI]
JZ 0x001153b9
LEA ECX,[RDX + -0x1]
ADD RCX,0x1
MOV EDX,0x1
MOV EBX,EDX
CMP RCX,RDX
JZ 0x0011540b
ADD RDX,0x1
CMP dword ptr [RSI + RDX*0x8 + -0x8],EAX
JNZ 0x001153a8
MOV EDX,EBX
MOV RSI,R12
MOV RDI,RBP
CALL 0x001367f0
JMP 0x00115377
CALL 0x0013687e
TEST EAX,EAX
JS 0x001153ec
CMP dword ptr [RBP + 0x38],EAX
JLE 0x001153ec
CDQE
MOV RDX,qword ptr [RBP + 0x50]
MOV EDX,dword ptr [RDX + RAX*0x8]
MOV ESI,dword ptr [RBP + 0x20]
MOV RDI,R13
CALL 0x001148ad
JMP 0x00115377
LEA RCX,[0x170af0]
MOV EDX,0x28
LEA RSI,[0x16e160]
LEA RDI,[0x16f1c0]
CALL 0x0010f990
LEA RCX,[0x170af0]
MOV EDX,0x24
LEA RSI,[0x16e160]
LEA RDI,[0x16e169]
CALL 0x0010f990
(translation_unit "void FUN_00115359(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)\n\n{\n  int iVar1;\n  ulong uVar2;\n  ulong uVar3;\n  \n  uVar3 = param_4 & 0xffffffff;\n  if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }\n  return;\n}\n\n" (function_definition "void FUN_00115359(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)\n\n{\n  int iVar1;\n  ulong uVar2;\n  ulong uVar3;\n  \n  uVar3 = param_4 & 0xffffffff;\n  if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00115359(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "ulong param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  ulong uVar3;\n  \n  uVar3 = param_4 & 0xffffffff;\n  if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = param_4 & 0xffffffff;" (assignment_expression "uVar3 = param_4 & 0xffffffff" identifier = (binary_expression "param_4 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" if (parenthesized_expression "((int)param_4 == 0)" ( (binary_expression "(int)param_4 == 0" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }" { (expression_statement "iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));" (assignment_expression "iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20))" identifier = (call_expression "FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x20))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) )))) ;) (if_statement "if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) < 1)" ( (binary_expression "*(int *)(param_1 + 0x38) < 1" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }" { (labeled_statement "LAB_0011540b:\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 ") ))) ;)) })) (if_statement "if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }" if (parenthesized_expression "(iVar1 != **(int **)(param_1 + 0x50))" ( (binary_expression "iVar1 != **(int **)(param_1 + 0x50)" identifier != (pointer_expression "**(int **)(param_1 + 0x50)" * (pointer_expression "*(int **)(param_1 + 0x50)" * (cast_expression "(int **)(param_1 + 0x50)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))))) )) (compound_statement "{\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (do_statement "do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);" do (compound_statement "{\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      }" { (expression_statement "uVar3 = uVar2 & 0xffffffff;" (assignment_expression "uVar3 = uVar2 & 0xffffffff" identifier = (binary_expression "uVar2 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;" if (parenthesized_expression "((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2)" ( (binary_expression "(ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2" (binary_expression "(ulong)(*(int *)(param_1 + 0x38) - 1) + 1" (call_expression "(ulong)(*(int *)(param_1 + 0x38) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x38) - 1)" ( (binary_expression "*(int *)(param_1 + 0x38) - 1" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) - number_literal) ))) + number_literal) == identifier) )) (goto_statement "goto LAB_0011540b;" goto statement_identifier ;)) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1)" ( (binary_expression "(*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1" (subscript_expression "(*(int **)(param_1 + 0x50))[uVar2 * 2 + -2]" (parenthesized_expression "(*(int **)(param_1 + 0x50))" ( (pointer_expression "*(int **)(param_1 + 0x50)" * (cast_expression "(int **)(param_1 + 0x50)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) )) [ (binary_expression "uVar2 * 2 + -2" (binary_expression "uVar2 * 2" identifier * number_literal) + number_literal) ]) != identifier) )) ;) })) (expression_statement "FUN_001367f0(param_1,param_2,uVar3);" (call_expression "FUN_001367f0(param_1,param_2,uVar3)" identifier (argument_list "(param_1,param_2,uVar3)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" else (if_statement "if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" if (parenthesized_expression "((int)param_4 == 2)" ( (binary_expression "(int)param_4 == 2" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" { (expression_statement "iVar1 = FUN_0013687e();" (assignment_expression "iVar1 = FUN_0013687e()" identifier = (call_expression "FUN_0013687e()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\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 "((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1))" ( (binary_expression "(iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)" (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x38) <= iVar1)" ( (binary_expression "*(int *)(param_1 + 0x38) <= iVar1" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }" { 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 "FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));" (call_expression "FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8)" * (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x50) + (long)iVar1 * 8)" ( (binary_expression "*(long *)(param_1 + 0x50) + (long)iVar1 * 8" (pointer_expression "*(long *)(param_1 + 0x50)" * (cast_expression "(long *)(param_1 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) + (binary_expression "(long)iVar1 * 8" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ))) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void conf_radiobutton_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  intorptr *piVar1;\n  int iVar2;\n  int which;\n  long lVar3;\n  \n  if (event == 0) {\n    iVar2 = conf_get_int((Conf *)data,(ctrl->generic).context.i);\n    if ((ctrl->editbox).password < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    which = 0;\n    if (iVar2 != ((ctrl->radio).buttondata)->i) {\n      lVar3 = 1;\n      do {\n        which = (int)lVar3;\n        if ((ulong)((ctrl->editbox).password - 1) + 1 == lVar3) goto LAB_0011540b;\n        piVar1 = (ctrl->radio).buttondata + lVar3;\n        lVar3 = lVar3 + 1;\n      } while (piVar1->i != iVar2);\n    }\n    dlg_radiobutton_set(ctrl,dlg,which);\n  }\n  else if (event == 2) {\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar2 < 0) || ((ctrl->editbox).password <= iVar2)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n  }\n  return;\n}\n\n" (function_definition "void conf_radiobutton_handler(control *ctrl,void *dlg,void *data,int event)\n\n{\n  intorptr *piVar1;\n  int iVar2;\n  int which;\n  long lVar3;\n  \n  if (event == 0) {\n    iVar2 = conf_get_int((Conf *)data,(ctrl->generic).context.i);\n    if ((ctrl->editbox).password < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    which = 0;\n    if (iVar2 != ((ctrl->radio).buttondata)->i) {\n      lVar3 = 1;\n      do {\n        which = (int)lVar3;\n        if ((ulong)((ctrl->editbox).password - 1) + 1 == lVar3) goto LAB_0011540b;\n        piVar1 = (ctrl->radio).buttondata + lVar3;\n        lVar3 = lVar3 + 1;\n      } while (piVar1->i != iVar2);\n    }\n    dlg_radiobutton_set(ctrl,dlg,which);\n  }\n  else if (event == 2) {\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar2 < 0) || ((ctrl->editbox).password <= iVar2)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n  }\n  return;\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  intorptr *piVar1;\n  int iVar2;\n  int which;\n  long lVar3;\n  \n  if (event == 0) {\n    iVar2 = conf_get_int((Conf *)data,(ctrl->generic).context.i);\n    if ((ctrl->editbox).password < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    which = 0;\n    if (iVar2 != ((ctrl->radio).buttondata)->i) {\n      lVar3 = 1;\n      do {\n        which = (int)lVar3;\n        if ((ulong)((ctrl->editbox).password - 1) + 1 == lVar3) goto LAB_0011540b;\n        piVar1 = (ctrl->radio).buttondata + lVar3;\n        lVar3 = lVar3 + 1;\n      } while (piVar1->i != iVar2);\n    }\n    dlg_radiobutton_set(ctrl,dlg,which);\n  }\n  else if (event == 2) {\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar2 < 0) || ((ctrl->editbox).password <= iVar2)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n  }\n  return;\n}" { (declaration "intorptr *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int which;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (event == 0) {\n    iVar2 = conf_get_int((Conf *)data,(ctrl->generic).context.i);\n    if ((ctrl->editbox).password < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    which = 0;\n    if (iVar2 != ((ctrl->radio).buttondata)->i) {\n      lVar3 = 1;\n      do {\n        which = (int)lVar3;\n        if ((ulong)((ctrl->editbox).password - 1) + 1 == lVar3) goto LAB_0011540b;\n        piVar1 = (ctrl->radio).buttondata + lVar3;\n        lVar3 = lVar3 + 1;\n      } while (piVar1->i != iVar2);\n    }\n    dlg_radiobutton_set(ctrl,dlg,which);\n  }\n  else if (event == 2) {\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar2 < 0) || ((ctrl->editbox).password <= iVar2)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n  }" if (parenthesized_expression "(event == 0)" ( (binary_expression "event == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = conf_get_int((Conf *)data,(ctrl->generic).context.i);\n    if ((ctrl->editbox).password < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    which = 0;\n    if (iVar2 != ((ctrl->radio).buttondata)->i) {\n      lVar3 = 1;\n      do {\n        which = (int)lVar3;\n        if ((ulong)((ctrl->editbox).password - 1) + 1 == lVar3) goto LAB_0011540b;\n        piVar1 = (ctrl->radio).buttondata + lVar3;\n        lVar3 = lVar3 + 1;\n      } while (piVar1->i != iVar2);\n    }\n    dlg_radiobutton_set(ctrl,dlg,which);\n  }" { (expression_statement "iVar2 = conf_get_int((Conf *)data,(ctrl->generic).context.i);" (assignment_expression "iVar2 = conf_get_int((Conf *)data,(ctrl->generic).context.i)" identifier = (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 ((ctrl->editbox).password < 1) {\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }" if (parenthesized_expression "((ctrl->editbox).password < 1)" ( (binary_expression "(ctrl->editbox).password < 1" (field_expression "(ctrl->editbox).password" (parenthesized_expression "(ctrl->editbox)" ( (field_expression "ctrl->editbox" identifier -> field_identifier) )) . field_identifier) < number_literal) )) (compound_statement "{\nLAB_0011540b:\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }" { (labeled_statement "LAB_0011540b:\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 ") ))) ;)) })) (expression_statement "which = 0;" (assignment_expression "which = 0" identifier = number_literal) ;) (if_statement "if (iVar2 != ((ctrl->radio).buttondata)->i) {\n      lVar3 = 1;\n      do {\n        which = (int)lVar3;\n        if ((ulong)((ctrl->editbox).password - 1) + 1 == lVar3) goto LAB_0011540b;\n        piVar1 = (ctrl->radio).buttondata + lVar3;\n        lVar3 = lVar3 + 1;\n      } while (piVar1->i != iVar2);\n    }" if (parenthesized_expression "(iVar2 != ((ctrl->radio).buttondata)->i)" ( (binary_expression "iVar2 != ((ctrl->radio).buttondata)->i" identifier != (field_expression "((ctrl->radio).buttondata)->i" (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      lVar3 = 1;\n      do {\n        which = (int)lVar3;\n        if ((ulong)((ctrl->editbox).password - 1) + 1 == lVar3) goto LAB_0011540b;\n        piVar1 = (ctrl->radio).buttondata + lVar3;\n        lVar3 = lVar3 + 1;\n      } while (piVar1->i != iVar2);\n    }" { (expression_statement "lVar3 = 1;" (assignment_expression "lVar3 = 1" identifier = number_literal) ;) (do_statement "do {\n        which = (int)lVar3;\n        if ((ulong)((ctrl->editbox).password - 1) + 1 == lVar3) goto LAB_0011540b;\n        piVar1 = (ctrl->radio).buttondata + lVar3;\n        lVar3 = lVar3 + 1;\n      } while (piVar1->i != iVar2);" do (compound_statement "{\n        which = (int)lVar3;\n        if ((ulong)((ctrl->editbox).password - 1) + 1 == lVar3) goto LAB_0011540b;\n        piVar1 = (ctrl->radio).buttondata + lVar3;\n        lVar3 = lVar3 + 1;\n      }" { (expression_statement "which = (int)lVar3;" (assignment_expression "which = (int)lVar3" identifier = (cast_expression "(int)lVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((ulong)((ctrl->editbox).password - 1) + 1 == lVar3) goto LAB_0011540b;" if (parenthesized_expression "((ulong)((ctrl->editbox).password - 1) + 1 == lVar3)" ( (binary_expression "(ulong)((ctrl->editbox).password - 1) + 1 == lVar3" (binary_expression "(ulong)((ctrl->editbox).password - 1) + 1" (call_expression "(ulong)((ctrl->editbox).password - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((ctrl->editbox).password - 1)" ( (binary_expression "(ctrl->editbox).password - 1" (field_expression "(ctrl->editbox).password" (parenthesized_expression "(ctrl->editbox)" ( (field_expression "ctrl->editbox" identifier -> field_identifier) )) . field_identifier) - number_literal) ))) + number_literal) == identifier) )) (goto_statement "goto LAB_0011540b;" goto statement_identifier ;)) (expression_statement "piVar1 = (ctrl->radio).buttondata + lVar3;" (assignment_expression "piVar1 = (ctrl->radio).buttondata + lVar3" identifier = (binary_expression "(ctrl->radio).buttondata + lVar3" (field_expression "(ctrl->radio).buttondata" (parenthesized_expression "(ctrl->radio)" ( (field_expression "ctrl->radio" identifier -> field_identifier) )) . field_identifier) + identifier)) ;) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar1->i != iVar2)" ( (binary_expression "piVar1->i != iVar2" (field_expression "piVar1->i" identifier -> field_identifier) != identifier) )) ;) })) (expression_statement "dlg_radiobutton_set(ctrl,dlg,which);" (call_expression "dlg_radiobutton_set(ctrl,dlg,which)" identifier (argument_list "(ctrl,dlg,which)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else if (event == 2) {\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar2 < 0) || ((ctrl->editbox).password <= iVar2)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n  }" else (if_statement "if (event == 2) {\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar2 < 0) || ((ctrl->editbox).password <= iVar2)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n  }" if (parenthesized_expression "(event == 2)" ( (binary_expression "event == 2" identifier == number_literal) )) (compound_statement "{\n    iVar2 = dlg_radiobutton_get(ctrl,dlg);\n    if ((iVar2 < 0) || ((ctrl->editbox).password <= iVar2)) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    conf_set_int((Conf *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[iVar2].i);\n  }" { (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 ((iVar2 < 0) || ((ctrl->editbox).password <= iVar2)) {\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 "((iVar2 < 0) || ((ctrl->editbox).password <= iVar2))" ( (binary_expression "(iVar2 < 0) || ((ctrl->editbox).password <= iVar2)" (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) || (parenthesized_expression "((ctrl->editbox).password <= iVar2)" ( (binary_expression "(ctrl->editbox).password <= iVar2" (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",0x28,\n                    "conf_radiobutton_handler");\n    }" { 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 "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 ;) })))
(translation_unit "void FUN_00115359(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)\n\n{\n  int iVar1;\n  ulong uVar2;\n  ulong uVar3;\n  \n  uVar3 = param_4 & 0xffffffff;\n  if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }\n  return;\n}\n\n" (function_definition "void FUN_00115359(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)\n\n{\n  int iVar1;\n  ulong uVar2;\n  ulong uVar3;\n  \n  uVar3 = param_4 & 0xffffffff;\n  if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00115359(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "ulong param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  ulong uVar3;\n  \n  uVar3 = param_4 & 0xffffffff;\n  if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = param_4 & 0xffffffff;" (assignment_expression "uVar3 = param_4 & 0xffffffff" identifier = (binary_expression "param_4 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" if (parenthesized_expression "((int)param_4 == 0)" ( (binary_expression "(int)param_4 == 0" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }" { (expression_statement "iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));" (assignment_expression "iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20))" identifier = (call_expression "FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x20))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) )))) ;) (if_statement "if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) < 1)" ( (binary_expression "*(int *)(param_1 + 0x38) < 1" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }" { (labeled_statement "LAB_0011540b:\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 ") ))) ;)) })) (if_statement "if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }" if (parenthesized_expression "(iVar1 != **(int **)(param_1 + 0x50))" ( (binary_expression "iVar1 != **(int **)(param_1 + 0x50)" identifier != (pointer_expression "**(int **)(param_1 + 0x50)" * (pointer_expression "*(int **)(param_1 + 0x50)" * (cast_expression "(int **)(param_1 + 0x50)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))))) )) (compound_statement "{\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (do_statement "do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);" do (compound_statement "{\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      }" { (expression_statement "uVar3 = uVar2 & 0xffffffff;" (assignment_expression "uVar3 = uVar2 & 0xffffffff" identifier = (binary_expression "uVar2 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;" if (parenthesized_expression "((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2)" ( (binary_expression "(ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2" (binary_expression "(ulong)(*(int *)(param_1 + 0x38) - 1) + 1" (call_expression "(ulong)(*(int *)(param_1 + 0x38) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x38) - 1)" ( (binary_expression "*(int *)(param_1 + 0x38) - 1" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) - number_literal) ))) + number_literal) == identifier) )) (goto_statement "goto LAB_0011540b;" goto statement_identifier ;)) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1)" ( (binary_expression "(*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1" (subscript_expression "(*(int **)(param_1 + 0x50))[uVar2 * 2 + -2]" (parenthesized_expression "(*(int **)(param_1 + 0x50))" ( (pointer_expression "*(int **)(param_1 + 0x50)" * (cast_expression "(int **)(param_1 + 0x50)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) )) [ (binary_expression "uVar2 * 2 + -2" (binary_expression "uVar2 * 2" identifier * number_literal) + number_literal) ]) != identifier) )) ;) })) (expression_statement "FUN_001367f0(param_1,param_2,uVar3);" (call_expression "FUN_001367f0(param_1,param_2,uVar3)" identifier (argument_list "(param_1,param_2,uVar3)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" else (if_statement "if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" if (parenthesized_expression "((int)param_4 == 2)" ( (binary_expression "(int)param_4 == 2" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" { (expression_statement "iVar1 = FUN_0013687e();" (assignment_expression "iVar1 = FUN_0013687e()" identifier = (call_expression "FUN_0013687e()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }" if (parenthesized_expression "((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1))" ( (binary_expression "(iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)" (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x38) <= iVar1)" ( (binary_expression "*(int *)(param_1 + 0x38) <= iVar1" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }" { (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 "FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));" (call_expression "FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8)" * (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x50) + (long)iVar1 * 8)" ( (binary_expression "*(long *)(param_1 + 0x50) + (long)iVar1 * 8" (pointer_expression "*(long *)(param_1 + 0x50)" * (cast_expression "(long *)(param_1 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) + (binary_expression "(long)iVar1 * 8" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ))) ;) })))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (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 != (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) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) ))) + LIT) == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) 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) )))) )) [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) != IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) ))) ;) })))) (return_statement return ;) })))
(function_definition "void FUN_00115359(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)\n\n{\n  int iVar1;\n  ulong uVar2;\n  ulong uVar3;\n  \n  uVar3 = param_4 & 0xffffffff;\n  if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00115359(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" (identifier "FUN_00115359") (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "ulong param_4" (type_identifier "ulong") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  ulong uVar3;\n  \n  uVar3 = param_4 & 0xffffffff;\n  if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = param_4 & 0xffffffff;" (assignment_expression "uVar3 = param_4 & 0xffffffff" (identifier "uVar3") (= "=") (binary_expression "param_4 & 0xffffffff" (identifier "param_4") (& "&") (number_literal "0xffffffff"))) (; ";")) (if_statement "if ((int)param_4 == 0) {\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }\n  else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" (if "if") (parenthesized_expression "((int)param_4 == 0)" (( "(") (binary_expression "(int)param_4 == 0" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));\n    if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }\n    if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }\n    FUN_001367f0(param_1,param_2,uVar3);\n  }" ({ "{") (expression_statement "iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));" (assignment_expression "iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20))" (identifier "iVar1") (= "=") (call_expression "FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20))" (identifier "FUN_001141e7") (argument_list "(param_3,*(undefined4 *)(param_1 + 0x20))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) () ")")))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x38) < 1) {\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x38) < 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) < 1" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\nLAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");\n    }" ({ "{") (labeled_statement "LAB_0011540b:\n                    \n      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");" (statement_identifier "LAB_0011540b") (: ":") (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") (" """)) () ")"))) (; ";"))) (} "}"))) (if_statement "if (iVar1 != **(int **)(param_1 + 0x50)) {\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }" (if "if") (parenthesized_expression "(iVar1 != **(int **)(param_1 + 0x50))" (( "(") (binary_expression "iVar1 != **(int **)(param_1 + 0x50)" (identifier "iVar1") (!= "!=") (pointer_expression "**(int **)(param_1 + 0x50)" (* "*") (pointer_expression "*(int **)(param_1 + 0x50)" (* "*") (cast_expression "(int **)(param_1 + 0x50)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))))) () ")")) (compound_statement "{\n      uVar2 = 1;\n      do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);\n    }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);" (do "do") (compound_statement "{\n        uVar3 = uVar2 & 0xffffffff;\n        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;\n        uVar2 = uVar2 + 1;\n      }" ({ "{") (expression_statement "uVar3 = uVar2 & 0xffffffff;" (assignment_expression "uVar3 = uVar2 & 0xffffffff" (identifier "uVar3") (= "=") (binary_expression "uVar2 & 0xffffffff" (identifier "uVar2") (& "&") (number_literal "0xffffffff"))) (; ";")) (if_statement "if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;" (if "if") (parenthesized_expression "((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2)" (( "(") (binary_expression "(ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2" (binary_expression "(ulong)(*(int *)(param_1 + 0x38) - 1) + 1" (call_expression "(ulong)(*(int *)(param_1 + 0x38) - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*(int *)(param_1 + 0x38) - 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) - 1" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (- "-") (number_literal "1")) () ")"))) (+ "+") (number_literal "1")) (== "==") (identifier "uVar2")) () ")")) (goto_statement "goto LAB_0011540b;" (goto "goto") (statement_identifier "LAB_0011540b") (; ";"))) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1)" (( "(") (binary_expression "(*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1" (subscript_expression "(*(int **)(param_1 + 0x50))[uVar2 * 2 + -2]" (parenthesized_expression "(*(int **)(param_1 + 0x50))" (( "(") (pointer_expression "*(int **)(param_1 + 0x50)" (* "*") (cast_expression "(int **)(param_1 + 0x50)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) () ")")) ([ "[") (binary_expression "uVar2 * 2 + -2" (binary_expression "uVar2 * 2" (identifier "uVar2") (* "*") (number_literal "2")) (+ "+") (number_literal "-2")) (] "]")) (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_001367f0(param_1,param_2,uVar3);" (call_expression "FUN_001367f0(param_1,param_2,uVar3)" (identifier "FUN_001367f0") (argument_list "(param_1,param_2,uVar3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")) (else_clause "else if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" (else "else") (if_statement "if ((int)param_4 == 2) {\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" (if "if") (parenthesized_expression "((int)param_4 == 2)" (( "(") (binary_expression "(int)param_4 == 2" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    iVar1 = FUN_0013687e();\n    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }\n    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));\n  }" ({ "{") (expression_statement "iVar1 = FUN_0013687e();" (assignment_expression "iVar1 = FUN_0013687e()" (identifier "iVar1") (= "=") (call_expression "FUN_0013687e()" (identifier "FUN_0013687e") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }" (if "if") (parenthesized_expression "((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1))" (( "(") (binary_expression "(iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)" (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x38) <= iVar1)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) <= iVar1" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (<= "<=") (identifier "iVar1")) () ")"))) () ")")) (compound_statement "{\n                    \n      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,\n                    "conf_radiobutton_handler");\n    }" ({ "{") (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 "FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));" (call_expression "FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8))" (identifier "FUN_001148ad") (argument_list "(param_3,*(undefined4 *)(param_1 + 0x20),\n                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8)" (* "*") (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x50) + (long)iVar1 * 8)" (( "(") (binary_expression "*(long *)(param_1 + 0x50) + (long)iVar1 * 8" (pointer_expression "*(long *)(param_1 + 0x50)" (* "*") (cast_expression "(long *)(param_1 + 0x50)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (+ "+") (binary_expression "(long)iVar1 * 8" (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1")) (* "*") (number_literal "8"))) () ")")))) () ")"))) (; ";")) (} "}"))))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

{
  type_2 *piVar1;
  int var_4;
  int which;
  long var_5;
  
  if (var_1 == 0) {
    var_4 = var_2((type_3 *)data,(ctrl->generic).context.i);
    if ((ctrl->editbox).password < 1) {
LAB_0011540b:
                    /* WARNING: Subroutine does not return */
      var_3("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");
    }
    which = 0;
    if (var_4 != ((ctrl->radio).buttondata)->i) {
      var_5 = 1;
      do {
        which = (int)var_5;
        if ((ulong)((ctrl->editbox).password - 1) + 1 == var_5) goto LAB_0011540b;
        piVar1 = (ctrl->radio).buttondata + var_5;
        var_5 = var_5 + 1;
      } while (piVar1->i != var_4);
    }
    var_6(ctrl,dlg,which);
  }
  else if (var_1 == 2) {
    var_4 = var_7(ctrl,dlg);
    if ((var_4 < 0) || ((ctrl->editbox).password <= var_4)) {
                    /* WARNING: Subroutine does not return */
      var_3("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,
                    "conf_radiobutton_handler");
    }
    var_8((type_3 *)data,(ctrl->generic).context.i,(ctrl->radio).buttondata[var_4].i);
  }
  return;
}


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

void MASKED(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)

{
  int iVar1;
  ulong uVar2;
  ulong uVar3;
  
  uVar3 = param_4 & 0xffffffff;
  if ((int)param_4 == 0) {
    iVar1 = FUN_001141e7(param_3,*(undefined4 *)(param_1 + 0x20));
    if (*(int *)(param_1 + 0x38) < 1) {
LAB_0011540b:
                    /* WARNING: Subroutine does not return */
      __assert_fail("button < ctrl->radio.nbuttons","config.c",0x24,"conf_radiobutton_handler");
    }
    if (iVar1 != **(int **)(param_1 + 0x50)) {
      uVar2 = 1;
      do {
        uVar3 = uVar2 & 0xffffffff;
        if ((ulong)(*(int *)(param_1 + 0x38) - 1) + 1 == uVar2) goto LAB_0011540b;
        uVar2 = uVar2 + 1;
      } while ((*(int **)(param_1 + 0x50))[uVar2 * 2 + -2] != iVar1);
    }
    FUN_001367f0(param_1,param_2,uVar3);
  }
  else if ((int)param_4 == 2) {
    iVar1 = FUN_0013687e();
    if ((iVar1 < 0) || (*(int *)(param_1 + 0x38) <= iVar1)) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("button >= 0 && button < ctrl->radio.nbuttons","config.c",0x28,
                    "conf_radiobutton_handler");
    }
    FUN_001148ad(param_3,*(undefined4 *)(param_1 + 0x20),
                 *(undefined4 *)(*(long *)(param_1 + 0x50) + (long)iVar1 * 8));
  }
  return;
}

