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

{
  GtkWidget **ppGVar1;
  uctrl *puVar2;
  undefined8 uVar3;
  
  puVar2 = dlg_find_byctrl((dlgparam *)dlg,ctrl);
  if ((puVar2->ctrl->generic).type != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"
                 );
  }
  ppGVar1 = puVar2->buttons;
  if (ppGVar1 != (GtkWidget **)0x0) {
    uVar3 = gtk_toggle_button_get_type();
    uVar3 = g_type_check_instance_cast(ppGVar1[which],uVar3);
    gtk_toggle_button_set_active(uVar3,1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");
}



void FUN_0013cd29(undefined8 param_1,undefined8 param_2,int param_3)

{
  long lVar1;
  undefined8 *puVar2;
  undefined8 uVar3;
  
  puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);
  if (*(int *)*puVar2 != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"
                 );
  }
  lVar1 = puVar2[2];
  if (lVar1 != 0) {
    uVar3 = gtk_toggle_button_get_type();
    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);
    gtk_toggle_button_set_active(uVar3,1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RAX,RDI
MOV RDI,RSI
MOV EBX,EDX
MOV RSI,RAX
CALL 0x0013be9a
MOV RDX,qword ptr [RAX]
CMP dword ptr [RDX],0x2
JNZ 0x0013cd79
MOV RBP,qword ptr [RAX + 0x10]
TEST RBP,RBP
JZ 0x0013cd98
CALL 0x00110740
MOVSXD RBX,EBX
MOV RDI,qword ptr [RBP + RBX*0x8]
MOV RSI,RAX
CALL 0x00110550
MOV ESI,0x1
MOV RDI,RAX
CALL 0x001115b0
ADD RSP,0x8
POP RBX
POP RBP
RET
LEA RCX,[0x181950]
MOV EDX,0x108
LEA RSI,[0x18041b]
LEA RDI,[0x180708]
CALL 0x001109c0
LEA RCX,[0x181950]
MOV EDX,0x109
LEA RSI,[0x18041b]
LEA RDI,[0x180496]
CALL 0x001109c0
(translation_unit "void FUN_0013cd29(undefined8 param_1,undefined8 param_2,int param_3)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);\n  if (*(int *)*puVar2 != 2) {\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  lVar1 = puVar2[2];\n  if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,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\n" (function_definition "void FUN_0013cd29(undefined8 param_1,undefined8 param_2,int param_3)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);\n  if (*(int *)*puVar2 != 2) {\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  lVar1 = puVar2[2];\n  if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n}" primitive_type (function_declarator "FUN_0013cd29(undefined8 param_1,undefined8 param_2,int param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,int param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);\n  if (*(int *)*puVar2 != 2) {\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  lVar1 = puVar2[2];\n  if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);" (assignment_expression "puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1)" identifier = (cast_expression "(undefined8 *)FUN_0013be9a(param_2,param_1)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0013be9a(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))))) ;) (if_statement "if (*(int *)*puVar2 != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }" if (parenthesized_expression "(*(int *)*puVar2 != 2)" ( (binary_expression "*(int *)*puVar2 != 2" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }" { comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 )" identifier (argument_list "("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 )" ( (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 ") ))) ;) })) (expression_statement "lVar1 = puVar2[2];" (assignment_expression "lVar1 = puVar2[2]" identifier = (subscript_expression "puVar2[2]" identifier [ number_literal ])) ;) (if_statement "if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }" { (expression_statement "uVar3 = gtk_toggle_button_get_type();" (assignment_expression "uVar3 = gtk_toggle_button_get_type()" identifier = (call_expression "gtk_toggle_button_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3)" identifier = (call_expression "g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3)" identifier (argument_list "(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3)" ( (pointer_expression "*(undefined8 *)(lVar1 + (long)param_3 * 8)" * (cast_expression "(undefined8 *)(lVar1 + (long)param_3 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + (long)param_3 * 8)" ( (binary_expression "lVar1 + (long)param_3 * 8" identifier + (binary_expression "(long)param_3 * 8" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) , identifier )))) ;) (expression_statement "gtk_toggle_button_set_active(uVar3,1);" (call_expression "gtk_toggle_button_set_active(uVar3,1)" identifier (argument_list "(uVar3,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 ") ))) ;) })))
(translation_unit "void dlg_radiobutton_set(control *ctrl,void *dlg,int which)\n\n{\n  GtkWidget **ppGVar1;\n  uctrl *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = dlg_find_byctrl((dlgparam *)dlg,ctrl);\n  if ((puVar2->ctrl->generic).type != 2) {\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  ppGVar1 = puVar2->buttons;\n  if (ppGVar1 != (GtkWidget **)0x0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(ppGVar1[which],uVar3);\n    gtk_toggle_button_set_active(uVar3,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\n" (function_definition "void dlg_radiobutton_set(control *ctrl,void *dlg,int which)\n\n{\n  GtkWidget **ppGVar1;\n  uctrl *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = dlg_find_byctrl((dlgparam *)dlg,ctrl);\n  if ((puVar2->ctrl->generic).type != 2) {\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  ppGVar1 = puVar2->buttons;\n  if (ppGVar1 != (GtkWidget **)0x0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(ppGVar1[which],uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"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  GtkWidget **ppGVar1;\n  uctrl *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = dlg_find_byctrl((dlgparam *)dlg,ctrl);\n  if ((puVar2->ctrl->generic).type != 2) {\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  ppGVar1 = puVar2->buttons;\n  if (ppGVar1 != (GtkWidget **)0x0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(ppGVar1[which],uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n}" { (declaration "GtkWidget **ppGVar1;" type_identifier (pointer_declarator "**ppGVar1" * (pointer_declarator "*ppGVar1" * identifier)) ;) (declaration "uctrl *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "puVar2 = dlg_find_byctrl((dlgparam *)dlg,ctrl);" (assignment_expression "puVar2 = dlg_find_byctrl((dlgparam *)dlg,ctrl)" identifier = (call_expression "dlg_find_byctrl((dlgparam *)dlg,ctrl)" identifier (argument_list "((dlgparam *)dlg,ctrl)" ( (cast_expression "(dlgparam *)dlg" ( (type_descriptor "dlgparam *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if ((puVar2->ctrl->generic).type != 2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }" if (parenthesized_expression "((puVar2->ctrl->generic).type != 2)" ( (binary_expression "(puVar2->ctrl->generic).type != 2" (field_expression "(puVar2->ctrl->generic).type" (parenthesized_expression "(puVar2->ctrl->generic)" ( (field_expression "puVar2->ctrl->generic" (field_expression "puVar2->ctrl" identifier -> field_identifier) -> field_identifier) )) . field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }" { comment (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 )" identifier (argument_list "("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 )" ( (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 ") ))) ;) })) (expression_statement "ppGVar1 = puVar2->buttons;" (assignment_expression "ppGVar1 = puVar2->buttons" identifier = (field_expression "puVar2->buttons" identifier -> field_identifier)) ;) (if_statement "if (ppGVar1 != (GtkWidget **)0x0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(ppGVar1[which],uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }" if (parenthesized_expression "(ppGVar1 != (GtkWidget **)0x0)" ( (binary_expression "ppGVar1 != (GtkWidget **)0x0" identifier != (cast_expression "(GtkWidget **)0x0" ( (type_descriptor "GtkWidget **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(ppGVar1[which],uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }" { (expression_statement "uVar3 = gtk_toggle_button_get_type();" (assignment_expression "uVar3 = gtk_toggle_button_get_type()" identifier = (call_expression "gtk_toggle_button_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = g_type_check_instance_cast(ppGVar1[which],uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(ppGVar1[which],uVar3)" identifier = (call_expression "g_type_check_instance_cast(ppGVar1[which],uVar3)" identifier (argument_list "(ppGVar1[which],uVar3)" ( (subscript_expression "ppGVar1[which]" identifier [ identifier ]) , identifier )))) ;) (expression_statement "gtk_toggle_button_set_active(uVar3,1);" (call_expression "gtk_toggle_button_set_active(uVar3,1)" identifier (argument_list "(uVar3,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 ") ))) ;) })))
(translation_unit "void FUN_0013cd29(undefined8 param_1,undefined8 param_2,int param_3)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);\n  if (*(int *)*puVar2 != 2) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }\n  lVar1 = puVar2[2];\n  if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }\n                    \n  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n}\n\n" (function_definition "void FUN_0013cd29(undefined8 param_1,undefined8 param_2,int param_3)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);\n  if (*(int *)*puVar2 != 2) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }\n  lVar1 = puVar2[2];\n  if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }\n                    \n  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n}" primitive_type (function_declarator "FUN_0013cd29(undefined8 param_1,undefined8 param_2,int param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,int param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);\n  if (*(int *)*puVar2 != 2) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }\n  lVar1 = puVar2[2];\n  if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }\n                    \n  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);" (assignment_expression "puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1)" identifier = (cast_expression "(undefined8 *)FUN_0013be9a(param_2,param_1)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0013be9a(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))))) ;) (if_statement "if (*(int *)*puVar2 != 2) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }" if (parenthesized_expression "(*(int *)*puVar2 != 2)" ( (binary_expression "*(int *)*puVar2 != 2" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }" { (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 )" identifier (argument_list "("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 )" ( (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 ") ))) ;) })) (expression_statement "lVar1 = puVar2[2];" (assignment_expression "lVar1 = puVar2[2]" identifier = (subscript_expression "puVar2[2]" identifier [ number_literal ])) ;) (if_statement "if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }" { (expression_statement "uVar3 = gtk_toggle_button_get_type();" (assignment_expression "uVar3 = gtk_toggle_button_get_type()" identifier = (call_expression "gtk_toggle_button_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3)" identifier = (call_expression "g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3)" identifier (argument_list "(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3)" ( (pointer_expression "*(undefined8 *)(lVar1 + (long)param_3 * 8)" * (cast_expression "(undefined8 *)(lVar1 + (long)param_3 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + (long)param_3 * 8)" ( (binary_expression "lVar1 + (long)param_3 * 8" identifier + (binary_expression "(long)param_3 * 8" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) , identifier )))) ;) (expression_statement "gtk_toggle_button_set_active(uVar3,1);" (call_expression "gtk_toggle_button_set_active(uVar3,1)" identifier (argument_list "(uVar3,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 ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( 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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ 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 (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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 ") ))) ;) })))
(function_definition "void FUN_0013cd29(undefined8 param_1,undefined8 param_2,int param_3)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);\n  if (*(int *)*puVar2 != 2) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }\n  lVar1 = puVar2[2];\n  if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }\n                    \n  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n}" (primitive_type "void") (function_declarator "FUN_0013cd29(undefined8 param_1,undefined8 param_2,int param_3)" (identifier "FUN_0013cd29") (parameter_list "(undefined8 param_1,undefined8 param_2,int param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  \n  puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);\n  if (*(int *)*puVar2 != 2) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }\n  lVar1 = puVar2[2];\n  if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }\n                    \n  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (expression_statement "puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);" (assignment_expression "puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1)" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)FUN_0013be9a(param_2,param_1)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0013be9a(param_2,param_1)" (identifier "FUN_0013be9a") (argument_list "(param_2,param_1)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (*(int *)*puVar2 != 2) {\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }" (if "if") (parenthesized_expression "(*(int *)*puVar2 != 2)" (( "(") (binary_expression "*(int *)*puVar2 != 2" (pointer_expression "*(int *)*puVar2" (* "*") (cast_expression "(int *)*puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n                    \n    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );\n  }" ({ "{") (expression_statement "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 );" (call_expression "__assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 )" (identifier "__assert_fail") (argument_list "("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"\n                 )" (( "(") (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") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "lVar1 = puVar2[2];" (assignment_expression "lVar1 = puVar2[2]" (identifier "lVar1") (= "=") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (lVar1 != 0) {\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = gtk_toggle_button_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);\n    gtk_toggle_button_set_active(uVar3,1);\n    return;\n  }" ({ "{") (expression_statement "uVar3 = gtk_toggle_button_get_type();" (assignment_expression "uVar3 = gtk_toggle_button_get_type()" (identifier "uVar3") (= "=") (call_expression "gtk_toggle_button_get_type()" (identifier "gtk_toggle_button_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3)" (identifier "uVar3") (= "=") (call_expression "g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3)" (( "(") (pointer_expression "*(undefined8 *)(lVar1 + (long)param_3 * 8)" (* "*") (cast_expression "(undefined8 *)(lVar1 + (long)param_3 * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + (long)param_3 * 8)" (( "(") (binary_expression "lVar1 + (long)param_3 * 8" (identifier "lVar1") (+ "+") (binary_expression "(long)param_3 * 8" (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) (* "*") (number_literal "8"))) () ")")))) (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "gtk_toggle_button_set_active(uVar3,1);" (call_expression "gtk_toggle_button_set_active(uVar3,1)" (identifier "gtk_toggle_button_set_active") (argument_list "(uVar3,1)" (( "(") (identifier "uVar3") (, ",") (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") (" """)) () ")"))) (; ";")) (} "}")))

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

{
  type_2 **var_3;
  type_3 *puVar2;
  type_4 uVar3;
  
  puVar2 = var_1((type_5 *)dlg,ctrl);
  if ((puVar2->ctrl->generic).type != 2) {
                    /* WARNING: Subroutine does not return */
    var_2("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"
                 );
  }
  var_3 = puVar2->buttons;
  if (var_3 != (type_2 **)0x0) {
    uVar3 = var_4();
    uVar3 = var_5(var_3[which],uVar3);
    var_6(uVar3,1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_2("uc->buttons != NULL","unix/gtkdlg.c",0x109,"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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (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 (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 (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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))))))))

void MASKED(undefined8 param_1,undefined8 param_2,int param_3)

{
  long lVar1;
  undefined8 *puVar2;
  undefined8 uVar3;
  
  puVar2 = (undefined8 *)FUN_0013be9a(param_2,param_1);
  if (*(int *)*puVar2 != 2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("uc->ctrl->generic.type == CTRL_RADIO","unix/gtkdlg.c",0x108,"dlg_radiobutton_set"
                 );
  }
  lVar1 = puVar2[2];
  if (lVar1 != 0) {
    uVar3 = gtk_toggle_button_get_type();
    uVar3 = g_type_check_instance_cast(*(undefined8 *)(lVar1 + (long)param_3 * 8),uVar3);
    gtk_toggle_button_set_active(uVar3,1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("uc->buttons != NULL","unix/gtkdlg.c",0x109,"dlg_radiobutton_set");
}

