// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x68, %rsp
movq %rdi, %rbx
incl 0x48(%rdi)
movq 0x71c4(%rip), %rdi      # 0x10fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
xorl %esi, %esi
callq 0x3430
movq 0x8(%rbx), %rdi
movl 0x48(%rbx), %esi
movq (%rdi), %rax
callq *0x10(%rax)
callq 0x38b4
callq 0x38f2
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x8(%rbx), %rdi
cmpq 0x10(%rbx), %rdi
jne 0x9ef6
callq 0x8ce2
testb %al, %al
je 0x9ef6
movl $0x88, %edi
callq 0x32d0
movq %rax, %r14
movq 0x10(%rbx), %rsi
addq $0x38, %rsi
leaq -0x78(%rbp), %rdi
callq 0x3360
movq 0x10(%rbx), %rsi
addq $0x58, %rsi
movb $0x1, %r15b
leaq -0x58(%rbp), %rdi
callq 0x3360
leaq -0x78(%rbp), %rsi
leaq -0x58(%rbp), %rdx
movq %r14, %rdi
callq 0x9d42
movq %r14, 0x18(%rbx)
xorl %r15d, %r15d
leaq -0x58(%rbp), %rdi
callq 0x3340
leaq -0x78(%rbp), %rdi
callq 0x3340
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)
andq $0x0, 0x10(%rbx)
callq 0x38b4
callq 0x38f2
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
andl $0x0, 0x48(%rbx)
movq 0x8(%rbx), %rdi
cmpq 0x18(%rbx), %rdi
jne 0x9f6f
callq 0x8ce2
testb %al, %al
je 0x9f6f
pushq $0x58
popq %rdi
callq 0x32d0
movq %rax, %r14
movq 0x18(%rbx), %rsi
leaq -0x38(%rbp), %rdi
callq 0x4a90
leaq -0x38(%rbp), %rsi
movq %r14, %rdi
callq 0xa03c
movq %r14, 0x20(%rbx)
leaq -0x38(%rbp), %rdi
callq 0x3340
movq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rax
movl 0x8(%rdi), %ecx
movl %ecx, 0x8(%rax)
movq %rax, 0x8(%rbx)
movq (%rdi), %rax
callq *0x8(%rax)
andq $0x0, 0x18(%rbx)
callq 0x38b4
callq 0x38f2
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
andl $0x0, 0x48(%rbx)
movq 0x8(%rbx), %rdi
cmpq 0x20(%rbx), %rdi
jne 0x9fa7
callq 0x8ce2
testb %al, %al
je 0x9fa7
andq $0x0, 0x8(%rbx)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x9f96
movq (%rdi), %rax
callq *0x8(%rax)
andq $0x0, 0x20(%rbx)
addq $0x28, %rbx
movq %rbx, %rdi
callq 0x80da
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x3340
movb $0x1, %r15b
jmp 0x9fdb
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x3340
jmp 0x9fe9
jmp 0x9fd3
movq %rax, %rbx
jmp 0x9fe9
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x3340
testb %r15b, %r15b
je 0x9ff1
movq %r14, %rdi
callq 0x32a0
movq %rbx, %rdi
callq 0x3450
movq %rax, %rdi
callq 0x3aae
nop