// File: /workspace/github_cpp_makefile_star2_O1/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 0x6276(%rip), %rdi      # 0x10fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
xorl %esi, %esi
callq 0x3410
movq 0x8(%rbx), %rdi
movl 0x48(%rbx), %esi
movq (%rdi), %rax
callq *0x10(%rax)
callq 0x3898
callq 0x38d6
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x8(%rbx), %rdi
cmpq 0x10(%rbx), %rdi
jne 0xae72
callq 0x9a00
testb %al, %al
je 0xae72
movl $0x88, %edi
callq 0x3270
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 0x3b70
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 0x3b70
leaq -0x60(%rbp), %rsi
leaq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0xac4c
movq %r14, 0x18(%rbx)
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xae24
callq 0x3240
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0xae32
callq 0x3240
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rax
movl 0x8(%rdi), %ecx
movl %ecx, 0x8(%rax)
movq %rax, 0x8(%rbx)
testq %rdi, %rdi
je 0xae4f
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x10(%rbx)
callq 0x3898
callq 0x38d6
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movl $0x0, 0x48(%rbx)
movq 0x8(%rbx), %rdi
cmpq 0x18(%rbx), %rdi
jne 0xaf05
callq 0x9a00
testb %al, %al
je 0xaf05
movl $0x58, %edi
callq 0x3270
movq %rax, %r14
movq 0x18(%rbx), %rsi
leaq -0x80(%rbp), %rdi
callq 0x4d50
leaq -0x80(%rbp), %rsi
movq %r14, %rdi
callq 0xaf9e
movq %r14, 0x20(%rbx)
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaec5
callq 0x3240
movq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rax
movl 0x8(%rdi), %ecx
movl %ecx, 0x8(%rax)
movq %rax, 0x8(%rbx)
testq %rdi, %rdi
je 0xaee2
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x18(%rbx)
callq 0x3898
callq 0x38d6
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movl $0x0, 0x48(%rbx)
movq 0x8(%rbx), %rdi
cmpq 0x20(%rbx), %rdi
jne 0xaf43
callq 0x9a00
testb %al, %al
je 0xaf43
movq $0x0, 0x8(%rbx)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xaf2f
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x20(%rbx)
addq $0x28, %rbx
movq %rbx, %rdi
callq 0x8bae
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 0xaf78
callq 0x3240
jmp 0xaf78
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xaf81
jmp 0xaf8d
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0xaf8d
callq 0x3240
jmp 0xaf8d
jmp 0xaf8a
movq %rax, %rbx
movq %r14, %rdi
callq 0x3240
movq %rbx, %rdi
callq 0x3440
nop