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

void dlg_radiobutton_set(control *ctrl,void *dlg,int which)

{
  int iVar1;
  code *pcVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (tree234 *)0x0) {
                    /* WARNING: Does not return */
    pcVar2 = (code *)invalidInstructionException();
    (*pcVar2)();
  }
  puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if (*(int *)*puVar3 == 2) {
    iVar1 = puVar3[2];
    if (iVar1 != 0) {
      uVar4 = gtk_toggle_button_get_type();
      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4);
      gtk_toggle_button_set_active(uVar4,1);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");
}



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

void FUN_0004b450(undefined4 param_1,int *param_2,int param_3)

{
  int iVar1;
  code *pcVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar2 = (code *)invalidInstructionException();
    (*pcVar2)();
  }
  puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);
  if (*(int *)*puVar3 == 2) {
    iVar1 = puVar3[2];
    if (iVar1 != 0) {
      uVar4 = gtk_toggle_button_get_type();
      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);
      gtk_toggle_button_set_active(uVar4,1);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");
}


PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0x6534d
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0001b0b6
SUB ESP,0x4
LEA EDX,[EBX + 0xfff99b9c]
PUSH EDX
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x00047980
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
CMP dword ptr [EDX],0x2
JNZ 0x0004b4b8
MOV ESI,dword ptr [EAX + 0x8]
TEST ESI,ESI
JZ 0x0004b4d7
CALL 0x00019740
SUB ESP,0x8
PUSH EAX
MOV EAX,dword ptr [ESP + 0x24]
PUSH dword ptr [ESI + EAX*0x4]
CALL 0x00019590
POP EDX
POP ECX
PUSH 0x1
PUSH EAX
CALL 0x0001a530
ADD ESP,0x14
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xfffd35a8]
PUSH EAX
LEA EAX,[EBX + 0xfffd213d]
PUSH 0x108
PUSH EAX
LEA EAX,[EBX + 0xfffd2410]
PUSH EAX
CALL 0x0001af20
LEA EAX,[EBX + 0xfffd35a8]
PUSH EAX
LEA EAX,[EBX + 0xfffd213d]
PUSH 0x109
PUSH EAX
LEA EAX,[EBX + 0xfffd219e]
PUSH EAX
CALL 0x0001af20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004b450(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}\n\n" comment (function_definition "void FUN_0004b450(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}" primitive_type (function_declarator "FUN_0004b450(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (*param_2 == 0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }" { comment (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);" (assignment_expression "puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" identifier = (cast_expression "(undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00047980(*param_2,param_1,FUN_0004a340)" identifier (argument_list "(*param_2,param_1,FUN_0004a340)" ( (pointer_expression "*param_2" * identifier) , identifier , identifier ))))) ;) (if_statement "if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }" if (parenthesized_expression "(*(int *)*puVar3 == 2)" ( (binary_expression "*(int *)*puVar3 == 2" (pointer_expression "*(int *)*puVar3" * (cast_expression "(int *)*puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) == number_literal) )) (compound_statement "{\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }" { (expression_statement "iVar1 = puVar3[2];" (assignment_expression "iVar1 = puVar3[2]" identifier = (subscript_expression "puVar3[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }" { (expression_statement "uVar4 = gtk_toggle_button_get_type();" (assignment_expression "uVar4 = gtk_toggle_button_get_type()" identifier = (call_expression "gtk_toggle_button_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4)" identifier (argument_list "(*(undefined4 *)(iVar1 + param_3 * 4),uVar4)" ( (pointer_expression "*(undefined4 *)(iVar1 + param_3 * 4)" * (cast_expression "(undefined4 *)(iVar1 + param_3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_3 * 4)" ( (binary_expression "iVar1 + param_3 * 4" identifier + (binary_expression "param_3 * 4" identifier * number_literal)) )))) , identifier )))) ;) (expression_statement "gtk_toggle_button_set_active(uVar4,1);" (call_expression "gtk_toggle_button_set_active(uVar4,1)" identifier (argument_list "(uVar4,1)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");" (call_expression "__assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set")" identifier (argument_list "("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set")" ( (string_literal ""uc->buttons != NULL"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_radiobutton_set"" " string_content ") ))) ;) })) comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set")" ( (string_literal ""uc->ctrl->generic.type == CTRL_RADIO"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_radiobutton_set"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid dlg_radiobutton_set(control *ctrl,void *dlg,int which)\n\n{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}\n\n" comment comment (function_definition "void dlg_radiobutton_set(control *ctrl,void *dlg,int which)\n\n{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}" primitive_type (function_declarator "dlg_radiobutton_set(control *ctrl,void *dlg,int which)" identifier (parameter_list "(control *ctrl,void *dlg,int which)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) , (parameter_declaration "int which" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n                    /* WARNING: Load size is inaccurate */\n  if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) comment (if_statement "if (*dlg == (tree234 *)0x0) {\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }" if (parenthesized_expression "(*dlg == (tree234 *)0x0)" ( (binary_expression "*dlg == (tree234 *)0x0" (pointer_expression "*dlg" * identifier) == (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Does not return */\n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }" { comment (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find);" (assignment_expression "puVar3 = (undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" identifier = (cast_expression "(undefined4 *)find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "find234(*dlg,ctrl,uctrl_cmp_byctrl_find)" identifier (argument_list "(*dlg,ctrl,uctrl_cmp_byctrl_find)" ( (pointer_expression "*dlg" * identifier) , identifier , identifier ))))) ;) (if_statement "if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }" if (parenthesized_expression "(*(int *)*puVar3 == 2)" ( (binary_expression "*(int *)*puVar3 == 2" (pointer_expression "*(int *)*puVar3" * (cast_expression "(int *)*puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) == number_literal) )) (compound_statement "{\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }" { (expression_statement "iVar1 = puVar3[2];" (assignment_expression "iVar1 = puVar3[2]" identifier = (subscript_expression "puVar3[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }" { (expression_statement "uVar4 = gtk_toggle_button_get_type();" (assignment_expression "uVar4 = gtk_toggle_button_get_type()" identifier = (call_expression "gtk_toggle_button_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(iVar1 + which * 4),uVar4)" identifier (argument_list "(*(undefined4 *)(iVar1 + which * 4),uVar4)" ( (pointer_expression "*(undefined4 *)(iVar1 + which * 4)" * (cast_expression "(undefined4 *)(iVar1 + which * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + which * 4)" ( (binary_expression "iVar1 + which * 4" identifier + (binary_expression "which * 4" identifier * number_literal)) )))) , identifier )))) ;) (expression_statement "gtk_toggle_button_set_active(uVar4,1);" (call_expression "gtk_toggle_button_set_active(uVar4,1)" identifier (argument_list "(uVar4,1)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");" (call_expression "__assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set")" identifier (argument_list "("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set")" ( (string_literal ""uc->buttons != NULL"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_radiobutton_set"" " string_content ") ))) ;) })) comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set")" ( (string_literal ""uc->ctrl->generic.type == CTRL_RADIO"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_radiobutton_set"" " string_content ") ))) ;) })))
(translation_unit "void FUN_0004b450(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    \n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}\n\n" (function_definition "void FUN_0004b450(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    \n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}" primitive_type (function_declarator "FUN_0004b450(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    \n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (*param_2 == 0) {\n                    \n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n                    \n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }" { (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);" (assignment_expression "puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" identifier = (cast_expression "(undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00047980(*param_2,param_1,FUN_0004a340)" identifier (argument_list "(*param_2,param_1,FUN_0004a340)" ( (pointer_expression "*param_2" * identifier) , identifier , identifier ))))) ;) (if_statement "if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    \n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }" if (parenthesized_expression "(*(int *)*puVar3 == 2)" ( (binary_expression "*(int *)*puVar3 == 2" (pointer_expression "*(int *)*puVar3" * (cast_expression "(int *)*puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) == number_literal) )) (compound_statement "{\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    \n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }" { (expression_statement "iVar1 = puVar3[2];" (assignment_expression "iVar1 = puVar3[2]" identifier = (subscript_expression "puVar3[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }" { (expression_statement "uVar4 = gtk_toggle_button_get_type();" (assignment_expression "uVar4 = gtk_toggle_button_get_type()" identifier = (call_expression "gtk_toggle_button_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4)" identifier (argument_list "(*(undefined4 *)(iVar1 + param_3 * 4),uVar4)" ( (pointer_expression "*(undefined4 *)(iVar1 + param_3 * 4)" * (cast_expression "(undefined4 *)(iVar1 + param_3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_3 * 4)" ( (binary_expression "iVar1 + param_3 * 4" identifier + (binary_expression "param_3 * 4" identifier * number_literal)) )))) , identifier )))) ;) (expression_statement "gtk_toggle_button_set_active(uVar4,1);" (call_expression "gtk_toggle_button_set_active(uVar4,1)" identifier (argument_list "(uVar4,1)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");" (call_expression "__assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set")" identifier (argument_list "("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set")" ( (string_literal ""uc->buttons != NULL"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_radiobutton_set"" " string_content ") ))) ;) })) (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set")" identifier (argument_list "("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set")" ( (string_literal ""uc->ctrl->generic.type == CTRL_RADIO"" " string_content ") , (string_literal ""unix/gtkdlg.c"" " string_content ") , number_literal , (string_literal ""dlg_radiobutton_set"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( 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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_0004b450(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    \n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}" (primitive_type "void") (function_declarator "FUN_0004b450(undefined4 param_1,int *param_2,int param_3)" (identifier "FUN_0004b450") (parameter_list "(undefined4 param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (*param_2 == 0) {\n                    \n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }\n  puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);\n  if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    \n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }\n                    \n  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "code *pcVar2;" (type_identifier "code") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (if_statement "if (*param_2 == 0) {\n                    \n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }" (if "if") (parenthesized_expression "(*param_2 == 0)" (( "(") (binary_expression "*param_2 == 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    pcVar2 = (code *)invalidInstructionException();\n    (*pcVar2)();\n  }" ({ "{") (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" (identifier "pcVar2") (= "=") (cast_expression "(code *)invalidInstructionException()" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "invalidInstructionException()" (identifier "invalidInstructionException") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" (( "(") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);" (assignment_expression "puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00047980(*param_2,param_1,FUN_0004a340)" (identifier "FUN_00047980") (argument_list "(*param_2,param_1,FUN_0004a340)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "param_1") (, ",") (identifier "FUN_0004a340") () ")"))))) (; ";")) (if_statement "if (*(int *)*puVar3 == 2) {\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    \n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }" (if "if") (parenthesized_expression "(*(int *)*puVar3 == 2)" (( "(") (binary_expression "*(int *)*puVar3 == 2" (pointer_expression "*(int *)*puVar3" (* "*") (cast_expression "(int *)*puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    iVar1 = puVar3[2];\n    if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }\n                    \n    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n  }" ({ "{") (expression_statement "iVar1 = puVar3[2];" (assignment_expression "iVar1 = puVar3[2]" (identifier "iVar1") (= "=") (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (iVar1 != 0) {\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = gtk_toggle_button_get_type();\n      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);\n      gtk_toggle_button_set_active(uVar4,1);\n      return;\n    }" ({ "{") (expression_statement "uVar4 = gtk_toggle_button_get_type();" (assignment_expression "uVar4 = gtk_toggle_button_get_type()" (identifier "uVar4") (= "=") (call_expression "gtk_toggle_button_get_type()" (identifier "gtk_toggle_button_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4)" (identifier "uVar4") (= "=") (call_expression "g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined4 *)(iVar1 + param_3 * 4),uVar4)" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + param_3 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + param_3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + param_3 * 4)" (( "(") (binary_expression "iVar1 + param_3 * 4" (identifier "iVar1") (+ "+") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) () ")")))) (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "gtk_toggle_button_set_active(uVar4,1);" (call_expression "gtk_toggle_button_set_active(uVar4,1)" (identifier "gtk_toggle_button_set_active") (argument_list "(uVar4,1)" (( "(") (identifier "uVar4") (, ",") (number_literal "1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");" (call_expression "__assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set")" (identifier "__assert_fail") (argument_list "("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set")" (( "(") (string_literal ""uc->buttons != NULL"" (" """) (string_content "uc->buttons != NULL") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x109") (, ",") (string_literal ""dlg_radiobutton_set"" (" """) (string_content "dlg_radiobutton_set") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set")" (identifier "__assert_fail") (argument_list "("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set")" (( "(") (string_literal ""uc->ctrl->generic.type == CTRL_RADIO"" (" """) (string_content "uc->ctrl->generic.type == CTRL_RADIO") (" """)) (, ",") (string_literal ""unix/gtkdlg.c"" (" """) (string_content "unix/gtkdlg.c") (" """)) (, ",") (number_literal "0x108") (, ",") (string_literal ""dlg_radiobutton_set"" (" """) (string_content "dlg_radiobutton_set") (" """)) () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *ctrl,void *dlg,int var_6)

{
  int var_3;
  type_2 *pcVar2;
  type_3 *puVar3;
  type_3 uVar4;
  
                    /* WARNING: Load size is inaccurate */
  if (*dlg == (type_4 *)0x0) {
                    /* WARNING: Does not return */
    pcVar2 = (type_2 *)var_1();
    (*pcVar2)();
  }
  puVar3 = (type_3 *)var_2(*dlg,ctrl,uctrl_cmp_byctrl_find);
  if (*(int *)*puVar3 == 2) {
    var_3 = puVar3[2];
    if (var_3 != 0) {
      uVar4 = var_4();
      uVar4 = var_5(*(type_3 *)(var_3 + var_6 * 4),uVar4);
      var_7(uVar4,1);
      return;
    }
                    /* WARNING: Subroutine does not return */
    var_8("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");
  }
                    /* WARNING: Subroutine does not return */
  var_8("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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 (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(undefined4 param_1,int *param_2,int param_3)

{
  int iVar1;
  code *pcVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  
  if (*param_2 == 0) {
                    /* WARNING: Does not return */
    pcVar2 = (code *)invalidInstructionException();
    (*pcVar2)();
  }
  puVar3 = (undefined4 *)FUN_00047980(*param_2,param_1,FUN_0004a340);
  if (*(int *)*puVar3 == 2) {
    iVar1 = puVar3[2];
    if (iVar1 != 0) {
      uVar4 = gtk_toggle_button_get_type();
      uVar4 = g_type_check_instance_cast(*(undefined4 *)(iVar1 + param_3 * 4),uVar4);
      gtk_toggle_button_set_active(uVar4,1);
      return;
    }
                    /* WARNING: Subroutine does not return */
    __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set");
}

