// File: /workspace/github_cpp_makefile_star2_O3/Jacobious52[P]Tanks/IntroView.cpp
// Function: IntroView::update(int)
void IntroView::update(int t)
{
    // get player's name's after sometime
    if (t == 20 && player1 == "" && player2 == "")
    {
        ConsoleTools::set_cursor(0, get_size().y/2);
        ConsoleTools::clear_line();

        // get player 1
        ConsoleTools::set_cursor(get_size().x/2 - StringTools::string_width("Name of Player 1")/2, get_size().y/3);
        ConsoleTools::set_fcolor(ConsoleTools::white);
        printf("Name of Player 1");
        ConsoleTools::move_cursor(ConsoleTools::down, 2);
        ConsoleTools::move_cursor(ConsoleTools::left, StringTools::string_width("Name of Player 1"));
        ConsoleTools::set_fcolor(ConsoleTools::red);
        player1 = ConsoleTools::get_line();
        ConsoleTools::play_music("beep.wav");

        // get player 2
        ConsoleTools::set_cursor(get_size().x/2 - StringTools::string_width("Name of Player 2")/2, 2*get_size().y/3);
        ConsoleTools::set_fcolor(ConsoleTools::white);
        printf("Name of Player 2");
        ConsoleTools::move_cursor(ConsoleTools::down, 2);
        ConsoleTools::move_cursor(ConsoleTools::left, StringTools::string_width("Name of Player 2"));
        ConsoleTools::set_fcolor(ConsoleTools::blue);
        player2 = ConsoleTools::get_line();
        ConsoleTools::play_music("beep.wav");

        // write to replay file
        if (ConsoleTools::replay == false)
        {
            std::ofstream file("replay.txt", std::ios::app);
            file << player1 << std::endl << player2 << std::endl;
            file.close();
        }

    }
    else if (t < 20 && t % 4 == 0)
    {
        // increment the loader
        if (_load_num_string == "")
        {
            _load_num_string = ".";
        }
        else if (_load_num_string == ".")
        {
            _load_num_string = "..";
        }
        else if (_load_num_string == "..")
        {
            _load_num_string = "...";
        }
        else if (_load_num_string == "...")
        {
            _load_num_string = "";
        }
    }
    else if (t > 60)
    {
        _should_remove_from_parent = true;
    }

    // update children
    View::update(t);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
movl %esi, %ebx
movq %rdi, %r14
cmpl $0x14, %esi
jne 0x6005
leaq 0x38(%r14), %r12
leaq 0x6404(%rip), %rsi      # 0xc00b
movq %r12, %rdi
callq 0x30f0
testl %eax, %eax
jne 0x60d3
leaq 0x58(%r14), %r15
leaq 0x63e9(%rip), %rsi      # 0xc00b
movq %r15, %rdi
callq 0x30f0
testl %eax, %eax
jne 0x60d3
movq %r15, -0x30(%rbp)
movq %r14, %rdi
callq 0x9a66
movq %rax, %rsi
shrq $0x20, %rsi
shrq $0x3f, %rax
addl %eax, %esi
sarl %esi
xorl %edi, %edi
callq 0x38ec
callq 0x3902
movq %r14, %rdi
callq 0x9a66
movq %rax, %r13
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x6510(%rip), %rsi      # 0xc183
leaq 0x6519(%rip), %rdx      # 0xc193
leaq -0x70(%rbp), %r15
movq %r15, %rdi
callq 0x574e
movq %r15, %rdi
callq 0x6d4e
movl %eax, %r15d
movq %r14, %rdi
callq 0x9a66
movl %r13d, %edi
shrl $0x1f, %edi
addl %r13d, %edi
sarl %edi
movl %r15d, %ecx
shrl $0x1f, %ecx
addl %r15d, %ecx
sarl %ecx
subl %ecx, %edi
sarq $0x20, %rax
imulq $0x55555556, %rax, %rsi # imm = 0x55555556
movq %rsi, %rax
shrq $0x3f, %rax
shrq $0x20, %rsi
addl %eax, %esi
callq 0x38ec
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x5ce0
callq 0x3230
movl $0x25, %edi
callq 0x3842
leaq 0x6492(%rip), %r15      # 0xc183
movq %r15, %rdi
xorl %eax, %eax
callq 0x3060
movl $0x42, %edi
movl $0x2, %esi
callq 0x3936
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x647a(%rip), %rdx      # 0xc193
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x574e
movq %r13, %rdi
callq 0x6d4e
movl $0x44, %edi
movl %eax, %esi
callq 0x3936
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x5d4e
callq 0x3230
movl $0x1f, %edi
callq 0x3842
leaq -0x2f0(%rbp), %r15
movq %r15, %rdi
callq 0x37bc
movq %r12, %rdi
movq %r15, %rsi
callq 0x3140
leaq -0x2e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d87
callq 0x3230
leaq -0xe0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x6366(%rip), %rsi      # 0xc100
leaq 0x6367(%rip), %rdx      # 0xc108
leaq -0xf0(%rbp), %r15
movq %r15, %rdi
callq 0x574e
movq %r15, %rdi
callq 0x399e
movq -0xf0(%rbp), %rdi
cmpq %r12, %rdi
je 0x5dc9
callq 0x3230
movq %r14, %rdi
callq 0x9a66
movq %rax, %r12
leaq -0xc0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x63ae(%rip), %rsi      # 0xc194
leaq 0x63b7(%rip), %rdx      # 0xc1a4
leaq -0xd0(%rbp), %r15
movq %r15, %rdi
callq 0x574e
movq %r15, %rdi
callq 0x6d4e
movl %eax, %r15d
movq %r14, %rdi
callq 0x9a66
movl %r12d, %edi
shrl $0x1f, %edi
addl %r12d, %edi
sarl %edi
movl %r15d, %ecx
shrl $0x1f, %ecx
addl %r15d, %ecx
sarl %ecx
subl %ecx, %edi
shrq $0x1f, %rax
andl $-0x2, %eax
cltq
imulq $0x55555556, %rax, %rsi # imm = 0x55555556
movq %rsi, %rax
shrq $0x3f, %rax
shrq $0x20, %rsi
addl %eax, %esi
callq 0x38ec
movq -0xd0(%rbp), %rdi
cmpq %r13, %rdi
je 0x5e5a
callq 0x3230
movl $0x25, %edi
callq 0x3842
leaq 0x6329(%rip), %r15      # 0xc194
movq %r15, %rdi
xorl %eax, %eax
callq 0x3060
movl $0x42, %edi
movl $0x2, %esi
callq 0x3936
leaq -0xa0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x630e(%rip), %rdx      # 0xc1a4
leaq -0xb0(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x574e
movq %r12, %rdi
callq 0x6d4e
movl $0x44, %edi
movl %eax, %esi
callq 0x3936
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x5ecd
callq 0x3230
movl $0x22, %edi
callq 0x3842
leaq -0x2f0(%rbp), %r15
movq %r15, %rdi
callq 0x37bc
movq -0x30(%rbp), %rdi
movq %r15, %rsi
leaq -0x2e0(%rbp), %r15
callq 0x3140
movq -0x2f0(%rbp), %rdi
cmpq %r15, %rdi
je 0x5f0a
callq 0x3230
leaq -0x80(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x61e6(%rip), %rsi      # 0xc100
leaq 0x61e7(%rip), %rdx      # 0xc108
leaq -0x90(%rbp), %r15
movq %r15, %rdi
callq 0x574e
movq %r15, %rdi
callq 0x399e
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
je 0x5f49
callq 0x3230
leaq 0xb322(%rip), %rax      # 0x11272
cmpb $0x0, (%rax)
jne 0x60d3
leaq 0x61a9(%rip), %rsi      # 0xc109
leaq -0x2f0(%rbp), %r15
movq %r15, %rdi
movl $0x1, %edx
callq 0x32a0
movq 0x38(%r14), %rsi
movq 0x40(%r14), %rdx
movq %r15, %rdi
callq 0x32c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3250
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
movq 0x58(%r14), %rsi
movq 0x60(%r14), %rdx
movq %rax, %rdi
callq 0x32c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3250
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
leaq -0x2f0(%rbp), %rdi
callq 0x3320
leaq -0x2f0(%rbp), %rdi
callq 0x3340
jmp 0x60d3
setge %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0x607d
leaq 0xd8(%r14), %r15
leaq 0x5feb(%rip), %rsi      # 0xc00b
movq %r15, %rdi
callq 0x30f0
testl %eax, %eax
je 0x6089
leaq 0x6174(%rip), %rsi      # 0xc1a7
movq %r15, %rdi
callq 0x30f0
testl %eax, %eax
je 0x609f
leaq 0x6160(%rip), %rsi      # 0xc1a6
movq %r15, %rdi
callq 0x30f0
testl %eax, %eax
je 0x60b5
leaq 0x614c(%rip), %rsi      # 0xc1a5
movq %r15, %rdi
callq 0x30f0
testl %eax, %eax
jne 0x60d3
movq 0xe0(%r14), %rdx
leaq 0x5f98(%rip), %rcx      # 0xc00b
movq %r15, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
jmp 0x60ce
cmpl $0x3d, %ebx
jl 0x60d3
movb $0x1, 0x30(%r14)
jmp 0x60d3
movq 0xe0(%r14), %rdx
leaq 0x6110(%rip), %rcx      # 0xc1a7
movl $0x1, %r8d
jmp 0x60c9
movq 0xe0(%r14), %rdx
leaq 0x60f9(%rip), %rcx      # 0xc1a6
movl $0x2, %r8d
jmp 0x60c9
movq 0xe0(%r14), %rdx
leaq 0x60e2(%rip), %rcx      # 0xc1a5
movl $0x3, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x3380
movq %r14, %rdi
movl %ebx, %esi
callq 0x9972
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x90(%rbp), %rdi
jmp 0x6116
movq %rax, %rbx
movq -0x2f0(%rbp), %rdi
cmpq %r15, %rdi
jne 0x6167
jmp 0x616c
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
cmpq %r12, %rdi
jne 0x6167
jmp 0x616c
movq %rax, %rbx
leaq -0x2e0(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x6162
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
jmp 0x6150
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
jmp 0x6162
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
cmpq %r13, %rdi
jne 0x6167
jmp 0x616c
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x616c
callq 0x3230
movq %rbx, %rdi
callq 0x3430
movq %rax, %rbx
leaq -0x2f0(%rbp), %rdi
callq 0x3340
jmp 0x616c
movq %rax, %rdi
callq 0x3ac6
nop