// File: /workspace/github_cpp_makefile_star2_O1/KitchMKelly[P]Team-9-OSU-Hackathon-Winter-2018/Video.cpp
// Function: Video::searchTitle(std::vector<Video, std::allocator<Video>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Video::searchTitle(const std::vector<Video>& videos, std::string titleIn)
{
    Video result, temp;
    int index = 0;
    int size = videos.size();
    bool found = false;
    while(index < size && !found)
    {
       temp = videos[index];
       if(temp.getTitle() == titleIn)
       {
          found = true;
          result = videos[index]; 
       }
       index++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdx, -0x38(%rbp)
movq %rsi, %r14
leaq -0x198(%rbp), %rdi
callq 0x656c
leaq -0x100(%rbp), %rdi
callq 0x656c
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x3, %rax
movabsq $-0x79435e50d79435e5, %rcx # imm = 0x86BCA1AF286BCA1B
imulq %rax, %rcx
movq %rcx, -0x30(%rbp)
testl %ecx, %ecx
jle 0x6d14
movl $0x80, %ecx
leaq -0x100(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x48(%rbp)
leaq -0x198(%rbp), %rax
addq %rax, %rcx
movq %rcx, -0x40(%rbp)
movq -0x30(%rbp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, -0x30(%rbp)
movl $0x1, %r15d
xorl %r13d, %r13d
xorl %r12d, %r12d
movq (%r14), %rbx
leaq (%rbx,%r13), %rsi
leaq -0x100(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r13), %rsi
addq $0x20, %rsi
leaq -0xe0(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r13), %rsi
addq $0x40, %rsi
leaq -0xc0(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r13), %rsi
addq $0x60, %rsi
leaq -0xa0(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r13), %rsi
addq $0x80, %rsi
movq -0x48(%rbp), %rdi
callq 0x5aae
leaq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x5e9e
movq -0x60(%rbp), %rdx
movq -0x38(%rbp), %rax
cmpq 0x8(%rax), %rdx
jne 0x6c71
testq %rdx, %rdx
je 0x6c75
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq -0x68(%rbp), %rdi
callq 0x2170
testl %eax, %eax
sete %bl
jmp 0x6c77
xorl %ebx, %ebx
jmp 0x6c77
movb $0x1, %bl
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x6c90
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2160
testb %bl, %bl
je 0x6cfa
movq (%r14), %rbx
leaq (%rbx,%r13), %rsi
leaq -0x198(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r13), %rsi
addq $0x20, %rsi
leaq -0x178(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r13), %rsi
addq $0x40, %rsi
leaq -0x158(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r13), %rsi
addq $0x60, %rsi
leaq -0x138(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r13), %rsi
addq $0x80, %rsi
movb $0x1, %r12b
movq -0x40(%rbp), %rdi
callq 0x5aae
cmpq -0x30(%rbp), %r15
jae 0x6d14
addq $0x98, %r13
incq %r15
testb $0x1, %r12b
je 0x6bc2
leaq -0x80(%rbp), %rbx
movq %rbx, %rdi
callq 0x2506
movq -0x20(%rbx), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x6d3f
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d5e
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0xd0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d7d
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0xf0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d9c
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x118(%rbp), %rbx
movq %rbx, %rdi
callq 0x2506
movq -0x20(%rbx), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x6dca
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x148(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6de9
movq -0x148(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x168(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e08
movq -0x168(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x188(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e27
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2160
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x6e4f
jmp 0x6e40
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x56c6
leaq -0x198(%rbp), %rdi
callq 0x56c6
movq %rbx, %rdi
callq 0x2220
nop