// File: /workspace/github_cpp_makefile_star2_O3/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, -0x40(%rbp)
movq %rsi, %r15
leaq -0x198(%rbp), %rdi
movq %rdi, -0x30(%rbp)
callq 0x666c
leaq -0x100(%rbp), %rdi
callq 0x666c
movq 0x8(%r15), %rax
subq (%r15), %rax
sarq $0x3, %rax
movabsq $-0x79435e50d79435e5, %rbx # imm = 0x86BCA1AF286BCA1B
imulq %rax, %rbx
testl %ebx, %ebx
jle 0x6e16
movl $0x80, %eax
leaq -0x100(%rbp), %rcx
addq %rax, %rcx
movq %rcx, -0x48(%rbp)
addq %rax, -0x30(%rbp)
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movl $0x1, %r14d
xorl %r12d, %r12d
movq %r15, -0x38(%rbp)
movq (%r15), %r13
leaq (%r12,%r13), %rsi
leaq -0x100(%rbp), %rdi
callq 0x20b0
leaq (%r12,%r13), %rsi
addq $0x20, %rsi
leaq -0xe0(%rbp), %rdi
callq 0x20b0
leaq (%r12,%r13), %rsi
addq $0x40, %rsi
leaq -0xc0(%rbp), %rdi
callq 0x20b0
leaq (%r12,%r13), %rsi
addq $0x60, %rsi
leaq -0xa0(%rbp), %rdi
callq 0x20b0
leaq (%r12,%r13), %rsi
addq $0x80, %rsi
movq -0x48(%rbp), %rdi
callq 0x5b80
leaq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x5f92
movq -0x60(%rbp), %rdx
movq -0x40(%rbp), %rax
cmpq 0x8(%rax), %rdx
jne 0x6d65
movq -0x68(%rbp), %r13
testq %rdx, %rdx
je 0x6d6e
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq %r13, %rdi
callq 0x2170
testl %eax, %eax
sete %r15b
jmp 0x6d71
movq -0x68(%rbp), %r13
xorl %r15d, %r15d
jmp 0x6d71
movb $0x1, %r15b
leaq -0x58(%rbp), %rax
cmpq %rax, %r13
je 0x6d89
movq -0x58(%rbp), %rsi
incq %rsi
movq %r13, %rdi
callq 0x2160
testb %r15b, %r15b
jne 0x6daf
cmpq %rbx, %r14
setae %al
orb %r15b, %al
addq $0x98, %r12
incq %r14
testb $0x1, %al
movq -0x38(%rbp), %r15
je 0x6cb2
jmp 0x6e16
movq -0x38(%rbp), %rax
movq (%rax), %rbx
leaq (%rbx,%r12), %rsi
leaq -0x198(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r12), %rsi
addq $0x20, %rsi
leaq -0x178(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r12), %rsi
addq $0x40, %rsi
leaq -0x158(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r12), %rsi
addq $0x60, %rsi
leaq -0x138(%rbp), %rdi
callq 0x20b0
leaq (%rbx,%r12), %rsi
addq $0x80, %rsi
movq -0x30(%rbp), %rdi
callq 0x5b80
leaq -0x80(%rbp), %rbx
movq %rbx, %rdi
callq 0x2506
movq -0x20(%rbx), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x6e41
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e60
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0xd0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e7f
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0xf0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e9e
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 0x6ecc
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x148(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6eeb
movq -0x148(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x168(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6f0a
movq -0x168(%rbp), %rsi
incq %rsi
callq 0x2160
leaq -0x188(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6f29
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 0x6f53
jmp 0x6f44
jmp 0x6f44
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x5798
leaq -0x198(%rbp), %rdi
callq 0x5798
movq %rbx, %rdi
callq 0x2220
nop