// File: Jacobious52[P]Tanks/IntroView.cpp
// Function: IntroView::_init()
void IntroView::_init()
{
    player1 = "";
    player2 = "";

    _position = Point<int>::zero();
    _size = ConsoleTools::get_terminal_size();

    // title
    Sprite *header = new Sprite(TextureTools::get_texture("title"));
    // adjust positions for unicode text
    header->set_position(Point<int>(get_size().x/2 - header->get_size().x/4 - 6, 2));
    header->set_size(Point<int>(header->get_size().x, header->get_size().y));
    header->set_fcolor(ConsoleTools::magneta);
    header->tag = 1;

    add_child(header);

     // copyright
    Sprite *copyright = new Sprite("Copyright © Jacob Gonzalez (a1687803) 2015");
    copyright->set_position(Point<int>(get_size().x/2 - copyright->get_size().x/2,
                                         get_size().y - 1));
    copyright->set_fcolor(ConsoleTools::green);

    add_child(copyright);

    // vs_text. not adding to view for can be on stack

    _vs_text = Sprite(TextureTools::get_texture("vs"));
    _vs_text.set_position(Point<int>(get_size().x/2 - _vs_text.get_size().x/4 + 2,
                                        get_size().y/2 - _vs_text.get_size().y/2));
    _vs_text.set_fcolor(ConsoleTools::yellow);

    // loading string
    _load_num_string = "";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x250, %rsp            # imm = 0x250
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
addq $0x38, %rdi
leaq 0xb516(%rip), %rsi      # 0x1400b
movq %rsi, -0x1e8(%rbp)
callq 0x4480
movq -0x1e8(%rbp), %rsi
movq -0x1e0(%rbp), %rdi
addq $0x58, %rdi
callq 0x4480
callq 0x7110
movq %rax, %rcx
movq -0x1e0(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, 0x18(%rax)
callq 0x4cb0
movq %rax, %rcx
movq -0x1e0(%rbp), %rax
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, 0x20(%rax)
movl $0x60, %edi
callq 0x43a0
movq %rax, -0x1d8(%rbp)
movb $0x1, -0x75(%rbp)
leaq -0x61(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x45f0
movq -0x1d0(%rbp), %rdx
leaq 0xb5b3(%rip), %rsi      # 0x14134
leaq -0x60(%rbp), %rdi
callq 0x4490
jmp 0x8b8c
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0xd2a0
jmp 0x8b9b
movq -0x1d8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x72a0
jmp 0x8bad
movb $0x0, -0x75(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x4200
jmp 0x8bbc
leaq -0x60(%rbp), %rdi
callq 0x4200
jmp 0x8bc7
leaq -0x61(%rbp), %rdi
callq 0x4400
movq -0x1d8(%rbp), %rax
movq -0x1e0(%rbp), %rdi
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x210(%rbp)
callq 0x106a0
movq %rax, -0x88(%rbp)
movl -0x88(%rbp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %ecx, %eax
sarl %eax
movl %eax, -0x214(%rbp)
movq -0x20(%rbp), %rdi
callq 0x106a0
movl -0x214(%rbp), %esi
movq %rax, -0x90(%rbp)
movl -0x90(%rbp), %eax
movl %eax, %ecx
addl $0x3, %ecx
testl %eax, %eax
cmovsl %ecx, %eax
sarl $0x2, %eax
subl %eax, %esi
addl $-0x6, %esi
leaq -0x80(%rbp), %rdi
movl $0x2, %edx
callq 0x4ed0
movq -0x210(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x10680
movq -0x20(%rbp), %rdi
movq %rdi, -0x200(%rbp)
callq 0x106a0
movq %rax, -0xa0(%rbp)
movl -0xa0(%rbp), %eax
movl %eax, -0x204(%rbp)
movq -0x20(%rbp), %rdi
callq 0x106a0
movl -0x204(%rbp), %esi
movq %rax, -0xa8(%rbp)
movl -0xa4(%rbp), %edx
leaq -0x98(%rbp), %rdi
callq 0x4ed0
movq -0x200(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0x106c0
movq -0x20(%rbp), %rdi
movl $0x23, %esi
callq 0xa670
movq -0x1e0(%rbp), %rdi
movq -0x20(%rbp), %rax
movl $0x1, 0x8(%rax)
movq -0x20(%rbp), %rsi
callq 0x10420
movl $0x60, %edi
callq 0x43a0
movq %rax, -0x1f8(%rbp)
movb $0x1, -0xd2(%rbp)
leaq -0xd1(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
callq 0x45f0
movq -0x1f0(%rbp), %rdx
leaq 0xb420(%rip), %rsi      # 0x1413a
leaq -0xd0(%rbp), %rdi
callq 0x4490
jmp 0x8d28
movq -0x1f8(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x72a0
jmp 0x8d3d
movb $0x0, -0xd2(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x4200
jmp 0x8d52
leaq -0xd1(%rbp), %rdi
callq 0x4400
movq -0x1f8(%rbp), %rax
movq -0x1e0(%rbp), %rdi
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x228(%rbp)
callq 0x106a0
movq %rax, -0xe4(%rbp)
movl -0xe4(%rbp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %ecx, %eax
sarl %eax
movl %eax, -0x230(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x106a0
movq -0x1e0(%rbp), %rdi
movq %rax, %rcx
movl -0x230(%rbp), %eax
movq %rcx, -0xec(%rbp)
movl -0xec(%rbp), %ecx
movl %ecx, %edx
shrl $0x1f, %edx
addl %edx, %ecx
sarl %ecx
subl %ecx, %eax
movl %eax, -0x22c(%rbp)
callq 0x106a0
movl -0x22c(%rbp), %esi
movq %rax, -0xf4(%rbp)
movl -0xf0(%rbp), %edx
decl %edx
leaq -0xdc(%rbp), %rdi
callq 0x4ed0
movq -0x228(%rbp), %rdi
movq -0xdc(%rbp), %rsi
callq 0x10680
movq -0xb0(%rbp), %rdi
movl $0x20, %esi
callq 0xa670
movq -0x1e0(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x10420
leaq -0x199(%rbp), %rdi
movq %rdi, -0x220(%rbp)
callq 0x45f0
movq -0x220(%rbp), %rdx
leaq 0xb30c(%rip), %rsi      # 0x14166
leaq -0x198(%rbp), %rdi
callq 0x4490
jmp 0x8e68
leaq -0x178(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xd2a0
jmp 0x8e7d
leaq -0x158(%rbp), %rdi
leaq -0x178(%rbp), %rsi
callq 0x72a0
jmp 0x8e92
movq -0x1e0(%rbp), %rdi
addq $0x78, %rdi
leaq -0x158(%rbp), %rsi
callq 0x9e50
jmp 0x8eab
leaq -0x158(%rbp), %rdi
callq 0x8a30
jmp 0x8eb9
leaq -0x178(%rbp), %rdi
callq 0x4200
jmp 0x8ec7
leaq -0x198(%rbp), %rdi
callq 0x4200
jmp 0x8ed5
leaq -0x199(%rbp), %rdi
callq 0x4400
movq -0x1e0(%rbp), %rdi
movq %rdi, %rax
addq $0x78, %rax
movq %rax, -0x238(%rbp)
callq 0x106a0
movq -0x1e0(%rbp), %rdi
movq %rax, -0x1ac(%rbp)
movl -0x1ac(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x244(%rbp)
addq $0x78, %rdi
callq 0x106a0
movq -0x1e0(%rbp), %rdi
movq %rax, -0x1b4(%rbp)
movl -0x1b4(%rbp), %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x244(%rbp), %eax
subl %ecx, %eax
addl $0x2, %eax
movl %eax, -0x240(%rbp)
callq 0x106a0
movq -0x1e0(%rbp), %rdi
movq %rax, -0x1bc(%rbp)
movl -0x1b8(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x23c(%rbp)
addq $0x78, %rdi
callq 0x106a0
movl -0x240(%rbp), %esi
movq %rax, -0x1c4(%rbp)
movl -0x1c0(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl -0x23c(%rbp), %edx
subl %eax, %edx
leaq -0x1a4(%rbp), %rdi
callq 0x4ed0
movq -0x238(%rbp), %rdi
movq -0x1a4(%rbp), %rsi
callq 0x10680
movq -0x1e0(%rbp), %rdi
addq $0x78, %rdi
movl $0x21, %esi
callq 0xa670
movq -0x1e0(%rbp), %rdi
addq $0xd8, %rdi
leaq 0xb01a(%rip), %rsi      # 0x1400b
callq 0x4480
addq $0x250, %rsp            # imm = 0x250
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x9041
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x9034
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x4200
jmp 0x9032
jmp 0x9034
leaq -0x60(%rbp), %rdi
callq 0x4200
jmp 0x903f
jmp 0x9041
leaq -0x61(%rbp), %rdi
callq 0x4400
testb $0x1, -0x75(%rbp)
jne 0x9052
jmp 0x905e
movq -0x1d8(%rbp), %rdi
callq 0x4360
jmp 0x9124
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x908d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x4200
jmp 0x908b
jmp 0x908d
leaq -0xd1(%rbp), %rdi
callq 0x4400
testb $0x1, -0xd2(%rbp)
jne 0x90a4
jmp 0x90b0
movq -0x1f8(%rbp), %rdi
callq 0x4360
jmp 0x9124
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x9118
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x9108
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x90f8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x158(%rbp), %rdi
callq 0x8a30
jmp 0x90f6
jmp 0x90f8
leaq -0x178(%rbp), %rdi
callq 0x4200
jmp 0x9106
jmp 0x9108
leaq -0x198(%rbp), %rdi
callq 0x4200
jmp 0x9116
jmp 0x9118
leaq -0x199(%rbp), %rdi
callq 0x4400
movq -0x70(%rbp), %rdi
callq 0x45e0
movq %rax, %rdi
callq 0x4ec0
nopw %cs:(%rax,%rax)