// File: /workspace/github_cpp_makefile_star2_O3/Jacobious52[P]Tanks/Game.cpp
// Function: Game::timer_did_tick(Timer*, int)
void timer_did_tick(Timer *sender, int t)
    {
        tick_time++;

        std::cin.clear();

        // update
	    current_view->update(tick_time);

        // clear and draw
        ConsoleTools::end_color();
        ConsoleTools::clear_screen();
        current_view->draw();

        // Exit introview and goto gameview
        if (current_view == intro_view && current_view->should_remove_from_parent())
        {
            game_view = new GameView(intro_view->player1, intro_view->player2);
            game_view->tag = intro_view->tag;
            current_view = game_view;

            delete intro_view;
            intro_view = 0;

            ConsoleTools::end_color();
            ConsoleTools::clear_screen();
            current_view->draw();
            tick_time = 0;
        }
        // Exit gameview and goto endview
        if (current_view == game_view && current_view->should_remove_from_parent())
        {
            end_view = new EndView(game_view->get_winner());
            end_view->tag = game_view->tag;
            current_view = end_view;

            delete game_view;
            game_view = 0;

            ConsoleTools::end_color();
            ConsoleTools::clear_screen();
            current_view->draw();
            tick_time = 0;
        }
        // Exit endview and exit game
        if (current_view == end_view && current_view->should_remove_from_parent())
        {
            current_view = 0;
            delete end_view;
            end_view = 0;

            //end game loop
            timer.end();
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
incl 0x48(%rdi)
movq 0x625e(%rip), %rdi      # 0x10fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
xorl %esi, %esi
callq 0x3400
movq 0x8(%rbx), %rdi
movl 0x48(%rbx), %esi
movq (%rdi), %rax
callq *0x10(%rax)
callq 0x3888
callq 0x38c6
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x8(%rbx), %rdi
cmpq 0x10(%rbx), %rdi
jne 0xae85
callq 0x9a10
testb %al, %al
je 0xae85
movl $0x88, %edi
callq 0x3260
movq %rax, %r14
movq 0x10(%rbx), %rax
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x38(%rax), %rsi
movq 0x40(%rax), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x3b60
movq 0x10(%rbx), %rax
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x58(%rax), %rsi
movq 0x60(%rax), %rdx
addq %rsi, %rdx
leaq -0x40(%rbp), %rdi
callq 0x3b60
leaq -0x60(%rbp), %rsi
leaq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0xac64
movq %r14, 0x18(%rbx)
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xae3c
callq 0x3230
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0xae4a
callq 0x3230
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rax
movl 0x8(%rdi), %ecx
movl %ecx, 0x8(%rax)
movq %rax, 0x8(%rbx)
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x10(%rbx)
callq 0x3888
callq 0x38c6
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movl $0x0, 0x48(%rbx)
movq 0x8(%rbx), %rdi
cmpq 0x18(%rbx), %rdi
jne 0xaf14
callq 0x9a10
testb %al, %al
je 0xaf14
movl $0x58, %edi
callq 0x3260
movq %rax, %r14
movq 0x18(%rbx), %rsi
leaq -0x80(%rbp), %rdi
callq 0x4d5c
leaq -0x80(%rbp), %rsi
movq %r14, %rdi
callq 0xafac
movq %r14, 0x20(%rbx)
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaedc
callq 0x3230
movq 0x20(%rbx), %r14
movq 0x18(%rbx), %rdi
movl 0x8(%rdi), %eax
movl %eax, 0x8(%r14)
movq %r14, 0x8(%rbx)
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x18(%rbx)
callq 0x3888
callq 0x38c6
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movl $0x0, 0x48(%rbx)
movq 0x8(%rbx), %rdi
cmpq 0x20(%rbx), %rdi
jne 0xaf52
callq 0x9a10
testb %al, %al
je 0xaf52
movq $0x0, 0x8(%rbx)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xaf3e
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x20(%rbx)
addq $0x28, %rbx
movq %rbx, %rdi
callq 0x8bba
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xaf87
callq 0x3230
jmp 0xaf87
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xaf90
jmp 0xaf9c
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0xaf9c
callq 0x3230
jmp 0xaf9c
jmp 0xaf99
movq %rax, %rbx
movq %r14, %rdi
callq 0x3230
movq %rbx, %rdi
callq 0x3430