// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/src/startgtk_game.c
// Function: startwin_run
int startwin_run(struct startwin_settings *settings)
{
    if (!gtkenabled || !startwin) return STARTWIN_RUN;

    set_settings(settings);
    setup_config_mode();
    startwinloop = TRUE;
    while (startwinloop) {
        gtk_main_iteration_do(TRUE);
    }
    setup_messages_mode(FALSE);
    set_settings(NULL);

    return retval;
}

// Assembly:
leaq 0xc5f035(%rip), %rax    # 0xc91084
cmpl $0x0, (%rax)
movl $0x1, %eax
je 0x32388
cmpq $0x0, 0x2fce0b(%rip)    # 0x32ee70
je 0x32388
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, 0x2fce90(%rip)    # 0x32ef10
movq 0x2fce09(%rip), %rbx    # 0x32ee90
callq 0x8fd0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8160
movq %rax, %rdi
xorl %esi, %esi
callq 0x9230
movq 0x2fcdf0(%rip), %rbx    # 0x32ee98
callq 0x8b90
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8160
leaq 0xb10(%rip), %rsi       # 0x32bcf
movl $0x1, %edx
movq %rax, %rdi
callq 0x8bb0
movq 0x2fcdcd(%rip), %r14    # 0x32eea0
callq 0x90f0
movq %rax, %rbx
movq %r14, %rdi
movq %rax, %rsi
callq 0x8160
movq 0x2fce23(%rip), %rcx    # 0x32ef10
movl 0x10(%rcx), %esi
movq %rax, %rdi
callq 0x9250
movq 0x2fcda1(%rip), %rdi    # 0x32eea0
movl $0x1, %esi
callq 0x91a0
movq 0x2fcdb0(%rip), %rdi    # 0x32eec0
movq %rbx, %rsi
callq 0x8160
movq 0x2fcdf1(%rip), %rcx    # 0x32ef10
movl (%rcx), %esi
movq %rax, %rdi
callq 0x9250
movq 0x2fcd90(%rip), %rdi    # 0x32eec0
movl $0x1, %esi
callq 0x91a0
movl $0x1, %edi
callq 0x328be
movq 0x2fcd65(%rip), %rdi    # 0x32eeb0
movl $0x1, %esi
callq 0x91a0
movq 0x2fcd6c(%rip), %rdi    # 0x32eec8
movq %rbx, %rsi
callq 0x8160
movq 0x2fcda5(%rip), %rcx    # 0x32ef10
movl 0x14(%rcx), %esi
movq %rax, %rdi
callq 0x9250
movq 0x2fcd4b(%rip), %rdi    # 0x32eec8
movl $0x1, %esi
callq 0x91a0
movq 0x2fcd42(%rip), %rdi    # 0x32eed0
movq %rbx, %rsi
callq 0x8160
movq 0x2fcd73(%rip), %rcx    # 0x32ef10
movl 0x18(%rcx), %esi
movq %rax, %rdi
callq 0x9250
movq 0x2fcd21(%rip), %rdi    # 0x32eed0
movl $0x1, %esi
callq 0x91a0
movl 0xa07e1(%rip), %edi     # 0xd29a0
movq 0x2fcd4a(%rip), %rax    # 0x32ef10
movl 0x1c(%rax), %ecx
leaq 0xa07d0(%rip), %rdx     # 0xd29a0
testl %edi, %edi
jle 0x321fc
xorl %esi, %esi
cmpl %ecx, %edi
jne 0x321ee
movl 0x4(%rdx), %edi
cmpl 0x20(%rax), %edi
jne 0x321ee
movl 0x8(%rdx), %edi
cmpl 0x24(%rax), %edi
je 0x32389
incq %rsi
movl 0xc(%rdx), %edi
addq $0xc, %rdx
testl %edi, %edi
jg 0x321d6
movl %ecx, (%rdx)
movl 0x20(%rax), %ecx
movl %ecx, 0x4(%rdx)
movl 0x24(%rax), %eax
movl %eax, 0x8(%rdx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x8(%rsp)
movq 0x2fccc5(%rip), %rdi    # 0x32eee0
callq 0x84e0
movl 0xa077a(%rip), %eax     # 0xd29a0
testl %eax, %eax
jle 0x322f3
leaq 0xa0777(%rip), %rbp     # 0xd29ac
leaq 0x7344d(%rip), %r12     # 0xa5689
leaq 0x7344b(%rip), %r15     # 0xa568e
leaq 0x7342c(%rip), %r14     # 0xa5676
xorl %ebx, %ebx
movl %eax, %eax
imulq $0x10624dd3, %rax, %rdx # imm = 0x10624DD3
shrq $0x26, %rdx
cmpl $0x1, -0x4(%rbp)
movl -0x8(%rbp), %ecx
movq %r15, %r8
cmoveq %r12, %r8
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x8f20
movq 0x2fcc60(%rip), %rdi    # 0x32eee0
leaq 0x10(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movq %r13, %r8
movl $0x1, %r9d
xorl %eax, %eax
pushq $-0x1
pushq %rbx
callq 0x8aa0
addq $0x10, %rsp
cmpq %rbx, 0x8(%rsp)
jne 0x322e1
movq %r15, %r13
movq %r12, %r15
movq 0x2fcc21(%rip), %r12    # 0x32eed8
callq 0x88d0
movq %r12, %rdi
movq %r15, %r12
movq %r13, %r15
leaq 0x733aa(%rip), %r14     # 0xa5676
movq %rax, %rsi
callq 0x8160
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x8730
incq %rbx
movl (%rbp), %eax
addq $0xc, %rbp
testl %eax, %eax
jg 0x3224c
movq 0x2fcbde(%rip), %rdi    # 0x32eed8
movl $0x1, %esi
callq 0x91a0
movq 0x2fcbdd(%rip), %rdi    # 0x32eee8
movl $0x1, %esi
callq 0x91a0
movq 0x2fcbd4(%rip), %rdi    # 0x32eef0
movl $0x1, %esi
callq 0x91a0
movq 0x2fcb5b(%rip), %rdi    # 0x32ee88
movl $0x1, %esi
callq 0x91a0
movq 0x2fcb42(%rip), %rdi    # 0x32ee80
movl $0x1, %esi
callq 0x91a0
movb $0x1, 0x2fcb2d(%rip)    # 0x32ee7c
movl $0x1, %edi
callq 0x8570
cmpb $0x0, 0x2fcb1c(%rip)    # 0x32ee7c
jne 0x3234f
xorl %edi, %edi
callq 0x31dc3
movq $0x0, 0x2fcb9c(%rip) # 0x32ef10
movl 0xa0616(%rip), %eax     # 0xd2990
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %esi, %eax
jmp 0x3220f