// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/startgtk_editor.c
// Function: startwin_open
int startwin_open(void)
{
    if (!gtkenabled) return 0;
    if (startwin) return 1;

    startwin = create_window();
    if (!startwin) {
        return -1;
    }

    quiteventonclose = TRUE;
    setup_messages_mode(TRUE);
    gtk_widget_show_all(GTK_WIDGET(startwin));
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
leaq 0x6b0304(%rip), %rax    # 0x6ce084
cmpl $0x0, (%rax)
je 0x1e077
movl $0x1, %eax
cmpq $0x0, 0x15f27a(%rip)    # 0x17d010
jne 0x1e079
movq $0x0, 0x8(%rsp)
callq 0x6080
testq %rax, %rax
je 0x1e039
movq %rax, %rbx
leaq 0x56d23(%rip), %rsi     # 0x74ae0
leaq 0x8(%rsp), %rdx
movq %rax, %rdi
callq 0x67c0
testl %eax, %eax
je 0x1e00d
leaq 0x56d40(%rip), %rsi     # 0x74b19
leaq 0x56d42(%rip), %rdx     # 0x74b22
leaq 0x6c9(%rip), %rcx       # 0x1e4b0
movq %rbx, %rdi
callq 0x1e458
movq %rax, %r14
callq 0x6c90
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x6140
testq %rax, %rax
je 0x1e024
movq %rax, %r14
leaq 0x56d17(%rip), %rsi     # 0x74b2f
movq %rbx, %rdi
callq 0x6820
movq %rax, %r12
callq 0x68e0
movq %r12, %rdi
movq %rax, %rsi
callq 0x6140
testq %rax, %rax
je 0x1de47
leaq 0x56cf8(%rip), %rsi     # 0x74b37
movq %rax, %rdi
callq 0x63a0
leaq 0x56cf6(%rip), %rsi     # 0x74b44
leaq 0x56cfb(%rip), %r12     # 0x74b50
leaq 0x683(%rip), %rcx       # 0x1e4df
movq %rbx, %rdi
movq %r12, %rdx
callq 0x1e458
movq %rax, %rdi
movq %r15, %rsi
callq 0x6140
movq %rax, 0x15f1a7(%rip)    # 0x17d020
leaq 0x56cd8(%rip), %rsi     # 0x74b58
leaq 0x7c1(%rip), %rcx       # 0x1e648
movq %rbx, %rdi
movq %r12, %rdx
callq 0x1e458
movq %rax, %rdi
movq %r15, %rsi
callq 0x6140
movq %rax, 0x15f184(%rip)    # 0x17d028
leaq 0x56cba(%rip), %rsi     # 0x74b65
movq %rbx, %rdi
callq 0x6820
movq %rax, %rdi
movq %r15, %rsi
callq 0x6140
movq %rax, 0x15f16b(%rip)    # 0x17d030
leaq 0x56c9e(%rip), %rsi     # 0x74b6a
movq %rbx, %rdi
callq 0x6820
movq %rax, %rdi
movq %r15, %rsi
callq 0x6140
movq %rax, 0x15f152(%rip)    # 0x17d038
leaq 0x56c87(%rip), %rsi     # 0x74b74
movq %rbx, %rdi
callq 0x6820
movq %rax, %rdi
movq %r15, %rsi
callq 0x6140
movq %rax, 0x15f139(%rip)    # 0x17d040
leaq 0x56c76(%rip), %rsi     # 0x74b84
movq %rbx, %rdi
callq 0x6820
movq %rax, %rdi
movq %r15, %rsi
callq 0x6140
movq %rax, 0x15f120(%rip)    # 0x17d048
leaq 0x56c62(%rip), %rsi     # 0x74b91
movq %rbx, %rdi
callq 0x6820
movq %rax, %rdi
movq %r15, %rsi
callq 0x6140
movq %rax, 0x15f107(%rip)    # 0x17d050
leaq 0x56c4e(%rip), %rsi     # 0x74b9e
movq %rbx, %rdi
callq 0x6820
movq %rax, %r13
callq 0x6570
movq %rax, %r12
movq %r13, %rdi
movq %rax, %rsi
callq 0x6140
movq %rax, 0x15f0e3(%rip)    # 0x17d058
leaq 0x56c2e(%rip), %rsi     # 0x74baa
movq %rbx, %rdi
callq 0x6820
movq %rax, %rdi
movq %r15, %rsi
callq 0x6140
movq %rax, 0x15f0ca(%rip)    # 0x17d060
leaq 0x56c1a(%rip), %rsi     # 0x74bb7
movq %rbx, %rdi
callq 0x6820
movq %rax, %rdi
movq %r12, %rsi
callq 0x6140
movq %rax, 0x15f0b1(%rip)    # 0x17d068
leaq 0x56c05(%rip), %rsi     # 0x74bc3
leaq 0x56c0e(%rip), %rdx     # 0x74bd3
leaq 0x6a6(%rip), %rcx       # 0x1e672
movq %rbx, %rdi
callq 0x1e458
movq %rax, %rdi
movq %r15, %rsi
callq 0x6140
movq %rax, 0x15f08a(%rip)    # 0x17d070
movl $0x50, %esi
movq %rbx, %rdi
callq 0x6140
movq %rax, %rdi
callq 0x6aa0
callq 0x6c40
movq %r14, %rdi
movq %rax, %rsi
callq 0x6140
jmp 0x1e03b
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
leaq 0x56ad3(%rip), %rdi     # 0x74af0
xorl %eax, %eax
callq 0x24cb4
movl $0x50, %esi
movq %rbx, %rdi
callq 0x6140
movq %rax, %rdi
callq 0x6aa0
xorl %eax, %eax
movq %rax, 0x15efce(%rip)    # 0x17d010
testq %rax, %rax
je 0x1e087
movb $0x1, 0x15efca(%rip)    # 0x17d018
movl $0x1, %edi
callq 0x1e08e
movq 0x15efb1(%rip), %rbx    # 0x17d010
callq 0x6c90
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6140
movq %rax, %rdi
callq 0x6a00
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x1e079