// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
leaq 0xc58bf7(%rip), %rax    # 0xc87084
cmpl $0x0, (%rax)
pushq $0x1
popq %rax
je 0x2e751
cmpq $0x0, 0x2f69cf(%rip)    # 0x324e70
je 0x2e751
movq %rdi, 0x2f6a62(%rip)    # 0x324f10
movq 0x2f69db(%rip), %rbx    # 0x324e90
callq 0x8fd0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8160
xorl %r15d, %r15d
movq %rax, %rdi
xorl %esi, %esi
callq 0x9230
movq 0x2f69bf(%rip), %rbx    # 0x324e98
callq 0x8b90
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8160
leaq 0xa69(%rip), %rsi       # 0x2ef59
pushq $0x1
popq %rdx
movq %rax, %rdi
callq 0x8bb0
movq 0x2f699e(%rip), %r14    # 0x324ea0
callq 0x90f0
movq %rax, %rbx
movq %r14, %rdi
movq %rax, %rsi
callq 0x8160
movq 0x2f69f4(%rip), %rcx    # 0x324f10
movl 0x10(%rcx), %esi
movq %rax, %rdi
callq 0x9250
movq 0x2f6972(%rip), %rdi    # 0x324ea0
pushq $0x1
popq %rbp
movl %ebp, %esi
callq 0x91a0
movq 0x2f6981(%rip), %rdi    # 0x324ec0
movq %rbx, %rsi
callq 0x8160
movq 0x2f69c2(%rip), %rcx    # 0x324f10
movl (%rcx), %esi
movq %rax, %rdi
callq 0x9250
movq 0x2f6961(%rip), %rdi    # 0x324ec0
movl %ebp, %esi
callq 0x91a0
movl %ebp, %edi
callq 0x2ec5e
movq 0x2f693c(%rip), %rdi    # 0x324eb0
movl %ebp, %esi
callq 0x91a0
movq 0x2f6946(%rip), %rdi    # 0x324ec8
movq %rbx, %rsi
callq 0x8160
movq 0x2f697f(%rip), %rcx    # 0x324f10
movl 0x14(%rcx), %esi
movq %rax, %rdi
callq 0x9250
movq 0x2f6925(%rip), %rdi    # 0x324ec8
movl %ebp, %esi
callq 0x91a0
movq 0x2f691f(%rip), %rdi    # 0x324ed0
movq %rbx, %rsi
callq 0x8160
movq 0x2f6950(%rip), %rcx    # 0x324f10
movl 0x18(%rcx), %esi
movq %rax, %rdi
callq 0x9250
movq 0x2f68fe(%rip), %rdi    # 0x324ed0
movl %ebp, %esi
callq 0x91a0
movq 0x2f6930(%rip), %rax    # 0x324f10
movl 0x1c(%rax), %edx
leaq 0x9a3b6(%rip), %rcx     # 0xc89a0
movl (%rcx), %esi
testl %esi, %esi
jle 0x2e611
cmpl %edx, %esi
jne 0x2e608
movl 0x4(%rcx), %esi
cmpl 0x20(%rax), %esi
jne 0x2e608
movl 0x8(%rcx), %esi
cmpl 0x24(%rax), %esi
je 0x2e760
incq %r15
addq $0xc, %rcx
jmp 0x2e5ea
movl %edx, (%rcx)
movq 0x20(%rax), %rax
movq %rax, 0x4(%rcx)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq 0x2f68b9(%rip), %rdi    # 0x324ee0
callq 0x84e0
leaq 0x9a375(%rip), %rbp     # 0xc89a8
movl $0x3e8, %r13d           # imm = 0x3E8
leaq 0x20(%rsp), %r14
movq %rsp, %r15
xorl %r12d, %r12d
movl -0x8(%rbp), %eax
testl %eax, %eax
jle 0x2e6dc
xorl %edx, %edx
divl %r13d
movl -0x4(%rbp), %ecx
cmpl $0x1, (%rbp)
leaq 0x68eec(%rip), %r8      # 0x9754e
leaq 0x68ee0(%rip), %rdx     # 0x97549
cmoveq %rdx, %r8
movq %r14, %rdi
leaq 0x68ebf(%rip), %rsi     # 0x97536
movl %eax, %edx
xorl %eax, %eax
callq 0x8f20
movq 0x2f6859(%rip), %rdi    # 0x324ee0
movq %r15, %rsi
pushq $-0x1
popq %rdx
xorl %ecx, %ecx
movq %r14, %r8
pushq $0x1
popq %r9
xorl %eax, %eax
pushq $-0x1
pushq %r12
callq 0x8aa0
popq %rax
popq %rcx
cmpq %r12, %rbx
jne 0x2e6d0
movq 0x2f6829(%rip), %r13    # 0x324ed8
callq 0x88d0
movq %r13, %rdi
movl $0x3e8, %r13d           # imm = 0x3E8
movq %rax, %rsi
callq 0x8160
movq %rax, %rdi
movq %r15, %rsi
callq 0x8730
incq %r12
addq $0xc, %rbp
jmp 0x2e644
movq 0x2f67f5(%rip), %rdi    # 0x324ed8
pushq $0x1
popq %rbx
movl %ebx, %esi
callq 0x91a0
movq 0x2f67f4(%rip), %rdi    # 0x324ee8
movl %ebx, %esi
callq 0x91a0
movq 0x2f67ee(%rip), %rdi    # 0x324ef0
movl %ebx, %esi
callq 0x91a0
movq 0x2f6778(%rip), %rdi    # 0x324e88
movl %ebx, %esi
callq 0x91a0
movq 0x2f6762(%rip), %rdi    # 0x324e80
movl %ebx, %esi
callq 0x91a0
movb $0x1, 0x2f6750(%rip)    # 0x324e7c
movl %ebx, %edi
callq 0x8570
cmpb $0x0, 0x2f6742(%rip)    # 0x324e7c
jne 0x2e72c
xorl %edi, %edi
callq 0x2e206
andq $0x0, 0x2f67c5(%rip)    # 0x324f10
movl 0x9a23f(%rip), %eax     # 0xc8990
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r15d, %ebx
jmp 0x2e620