// File: /workspace/github_cpp_makefile_star2_O1/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 0x5c1e
leaq 0x38(%r14), %r12
leaq 0x6414(%rip), %rsi      # 0xc00b
movq %r12, %rdi
callq 0x30f0
testl %eax, %eax
jne 0x5c1e
leaq 0x58(%r14), %r15
leaq 0x63fd(%rip), %rsi      # 0xc00b
movq %r15, %rdi
callq 0x30f0
testl %eax, %eax
je 0x5ce9
cmpl $0x14, %ebx
setge %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0x5ca4
leaq 0xd8(%r14), %r15
leaq 0x63cf(%rip), %rsi      # 0xc00b
movq %r15, %rdi
callq 0x30f0
testl %eax, %eax
je 0x5cb7
leaq 0x6558(%rip), %rsi      # 0xc1a7
movq %r15, %rdi
callq 0x30f0
testl %eax, %eax
je 0x5cd0
leaq 0x6544(%rip), %rsi      # 0xc1a6
movq %r15, %rdi
callq 0x30f0
testl %eax, %eax
je 0x60b9
leaq 0x652c(%rip), %rsi      # 0xc1a5
movq %r15, %rdi
callq 0x30f0
testl %eax, %eax
jne 0x60d7
movq 0xe0(%r14), %rdx
leaq 0x6374(%rip), %rcx      # 0xc00b
movq %r15, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
jmp 0x60d2
cmpl $0x3d, %ebx
jl 0x60d7
movb $0x1, 0x30(%r14)
jmp 0x60d7
movq 0xe0(%r14), %rdx
leaq 0x64e2(%rip), %rcx      # 0xc1a7
movl $0x1, %r8d
jmp 0x60cd
movq 0xe0(%r14), %rdx
leaq 0x64c8(%rip), %rcx      # 0xc1a6
movl $0x2, %r8d
jmp 0x60cd
movq %r15, -0x30(%rbp)
movq %r14, %rdi
callq 0x9a56
movq %rax, %rsi
shrq $0x20, %rsi
shrq $0x3f, %rax
addl %eax, %esi
sarl %esi
xorl %edi, %edi
callq 0x38fc
callq 0x3912
movq %r14, %rdi
callq 0x9a56
movq %rax, %r13
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x6459(%rip), %rsi      # 0xc183
leaq 0x6462(%rip), %rdx      # 0xc193
leaq -0x70(%rbp), %r15
movq %r15, %rdi
callq 0x5744
movq %r15, %rdi
callq 0x6d4e
movl %eax, %r15d
movq %r14, %rdi
callq 0x9a56
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 0x38fc
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x5d97
callq 0x3240
movl $0x25, %edi
callq 0x3852
leaq 0x63db(%rip), %r15      # 0xc183
movq %r15, %rdi
xorl %eax, %eax
callq 0x3060
movl $0x42, %edi
movl $0x2, %esi
callq 0x3946
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x63c3(%rip), %rdx      # 0xc193
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x5744
movq %r13, %rdi
callq 0x6d4e
movl $0x44, %edi
movl %eax, %esi
callq 0x3946
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x5e05
callq 0x3240
movl $0x1f, %edi
callq 0x3852
leaq -0x2f0(%rbp), %r15
movq %r15, %rdi
callq 0x37cc
movq %r12, %rdi
movq %r15, %rsi
callq 0x3140
leaq -0x2e0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e3e
callq 0x3240
leaq -0xe0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x62af(%rip), %rsi      # 0xc100
leaq 0x62b0(%rip), %rdx      # 0xc108
leaq -0xf0(%rbp), %r15
movq %r15, %rdi
callq 0x5744
movq %r15, %rdi
callq 0x39ae
movq -0xf0(%rbp), %rdi
cmpq %r12, %rdi
je 0x5e80
callq 0x3240
movq %r14, %rdi
callq 0x9a56
movq %rax, %r12
leaq -0xc0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x62f7(%rip), %rsi      # 0xc194
leaq 0x6300(%rip), %rdx      # 0xc1a4
leaq -0xd0(%rbp), %r15
movq %r15, %rdi
callq 0x5744
movq %r15, %rdi
callq 0x6d4e
movl %eax, %r15d
movq %r14, %rdi
callq 0x9a56
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 0x38fc
movq -0xd0(%rbp), %rdi
cmpq %r13, %rdi
je 0x5f11
callq 0x3240
movl $0x25, %edi
callq 0x3852
leaq 0x6272(%rip), %r15      # 0xc194
movq %r15, %rdi
xorl %eax, %eax
callq 0x3060
movl $0x42, %edi
movl $0x2, %esi
callq 0x3946
leaq -0xa0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x6257(%rip), %rdx      # 0xc1a4
leaq -0xb0(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x5744
movq %r12, %rdi
callq 0x6d4e
movl $0x44, %edi
movl %eax, %esi
callq 0x3946
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x5f84
callq 0x3240
movl $0x22, %edi
callq 0x3852
leaq -0x2f0(%rbp), %r15
movq %r15, %rdi
callq 0x37cc
movq -0x30(%rbp), %rdi
movq %r15, %rsi
leaq -0x2e0(%rbp), %r15
callq 0x3140
movq -0x2f0(%rbp), %rdi
cmpq %r15, %rdi
je 0x5fc1
callq 0x3240
leaq -0x80(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x612f(%rip), %rsi      # 0xc100
leaq 0x6130(%rip), %rdx      # 0xc108
leaq -0x90(%rbp), %r15
movq %r15, %rdi
callq 0x5744
movq %r15, %rdi
callq 0x39ae
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
je 0x6000
callq 0x3240
leaq 0xb273(%rip), %rax      # 0x1127a
cmpb $0x0, (%rax)
jne 0x60d7
leaq 0x60f2(%rip), %rsi      # 0xc109
leaq -0x2f0(%rbp), %r15
movq %r15, %rdi
movl $0x1, %edx
callq 0x32b0
movq 0x38(%r14), %rsi
movq 0x40(%r14), %rdx
movq %r15, %rdi
callq 0x32d0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3260
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 0x32d0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
leaq -0x2f0(%rbp), %rdi
callq 0x3330
leaq -0x2f0(%rbp), %rdi
callq 0x3350
jmp 0x60d7
movq 0xe0(%r14), %rdx
leaq 0x60de(%rip), %rcx      # 0xc1a5
movl $0x3, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x3390
movq %r14, %rdi
movl %ebx, %esi
callq 0x9966
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 0x611a
movq %rax, %rbx
movq -0x2f0(%rbp), %rdi
cmpq %r15, %rdi
jne 0x616b
jmp 0x6170
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
cmpq %r12, %rdi
jne 0x616b
jmp 0x6170
movq %rax, %rbx
leaq -0x2e0(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x6166
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
jmp 0x6154
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
jmp 0x6166
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
cmpq %r13, %rdi
jne 0x616b
jmp 0x6170
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x6170
callq 0x3240
movq %rbx, %rdi
callq 0x3440
movq %rax, %rbx
leaq -0x2f0(%rbp), %rdi
callq 0x3350
jmp 0x6170
movq %rax, %rdi
callq 0x3ad6
nop