// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/startgtk_editor.c
// Function: on_startbutton_clicked
static void on_startbutton_clicked(GtkButton *button, gpointer user_data)
{
    int mode = -1;
    GtkTreeIter iter;

    (void)button; (void)user_data;

    if (gtk_combo_box_get_active_iter(GTK_COMBO_BOX(controls.vmode3dcombo), &iter)) {
        gtk_tree_model_get(GTK_TREE_MODEL(controls.vmode3dlist), &iter, 1 /*index*/, &mode, -1);
    }
    if (mode >= 0) {
        settings->xdim3d = validmode[mode].xdim;
        settings->ydim3d = validmode[mode].ydim;
        settings->bpp3d = validmode[mode].bpp;
        settings->fullscreen = validmode[mode].fs;
    }
    if (gtk_combo_box_get_active_iter(GTK_COMBO_BOX(controls.vmode2dcombo), &iter)) {
        gtk_tree_model_get(GTK_TREE_MODEL(controls.vmode2dlist), &iter, 1 /*index*/, &mode, -1);
    }
    if (mode >= 0) {
        settings->xdim2d = validmode[mode].xdim;
        settings->ydim2d = validmode[mode].ydim;
    }

    settings->forcesetup = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(controls.alwaysshowcheck));

    startwinloop = FALSE;   // Break the loop.
    retval = STARTWIN_RUN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0xffffffff, -0x14(%rbp) # imm = 0xFFFFFFFF
movq 0x18d7f2(%rip), %rax    # 0x1babc0
movq %rax, -0x40(%rbp)
callq 0x65d0
movq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x6130
movq %rax, %rdi
leaq -0x38(%rbp), %rsi
callq 0x6bf0
cmpl $0x0, %eax
je 0x2d42d
movq 0x18d7cd(%rip), %rax    # 0x1babc8
movq %rax, -0x48(%rbp)
callq 0x63f0
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0x6130
movq %rax, %rdi
leaq -0x38(%rbp), %rsi
movl $0x1, %edx
leaq -0x14(%rbp), %rcx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movb $0x0, %al
callq 0x6640
cmpl $0x0, -0x14(%rbp)
jl 0x2d4af
movslq -0x14(%rbp), %rcx
leaq 0x448372(%rip), %rax    # 0x4757b0
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq 0x18d792(%rip), %rax    # 0x1babe0
movl %ecx, 0xc(%rax)
movslq -0x14(%rbp), %rcx
leaq 0x448354(%rip), %rax    # 0x4757b0
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movq 0x18d773(%rip), %rax    # 0x1babe0
movl %ecx, 0x10(%rax)
movslq -0x14(%rbp), %rcx
leaq 0x448335(%rip), %rax    # 0x4757b0
shlq $0x4, %rcx
addq %rcx, %rax
movzbl 0x8(%rax), %ecx
movq 0x18d753(%rip), %rax    # 0x1babe0
movl %ecx, 0x14(%rax)
movslq -0x14(%rbp), %rcx
leaq 0x448315(%rip), %rax    # 0x4757b0
shlq $0x4, %rcx
addq %rcx, %rax
movzbl 0x9(%rax), %ecx
movq 0x18d733(%rip), %rax    # 0x1babe0
movl %ecx, (%rax)
movq 0x18d6fa(%rip), %rax    # 0x1babb0
movq %rax, -0x50(%rbp)
callq 0x65d0
movq -0x50(%rbp), %rdi
movq %rax, %rsi
callq 0x6130
movq %rax, %rdi
leaq -0x38(%rbp), %rsi
callq 0x6bf0
cmpl $0x0, %eax
je 0x2d515
movq 0x18d6d5(%rip), %rax    # 0x1babb8
movq %rax, -0x58(%rbp)
callq 0x63f0
movq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x6130
movq %rax, %rdi
leaq -0x38(%rbp), %rsi
movl $0x1, %edx
leaq -0x14(%rbp), %rcx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movb $0x0, %al
callq 0x6640
cmpl $0x0, -0x14(%rbp)
jl 0x2d558
movslq -0x14(%rbp), %rcx
leaq 0x44828a(%rip), %rax    # 0x4757b0
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq 0x18d6aa(%rip), %rax    # 0x1babe0
movl %ecx, 0x4(%rax)
movslq -0x14(%rbp), %rcx
leaq 0x44826c(%rip), %rax    # 0x4757b0
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movq 0x18d68b(%rip), %rax    # 0x1babe0
movl %ecx, 0x8(%rax)
movq 0x18d641(%rip), %rax    # 0x1baba0
movq %rax, -0x60(%rbp)
callq 0x6b40
movq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x6130
movq %rax, %rdi
callq 0x62c0
movl %eax, %ecx
movq 0x18d65b(%rip), %rax    # 0x1babe0
movl %ecx, 0x18(%rax)
movl $0x0, 0x18d646(%rip)    # 0x1babd8
movl $0x1, 0xb2e4c(%rip)     # 0xe03e8
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)