// File: GAStudyGroup[P]GPX2/src/args/Arg.cpp
// Function: Arg::getArgument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Arg::Argument* Arg::getArgument(string arg){
    vector<string> argV = split(arg,'|');
    for(string s : argV){
        for(Argument &a : arguments){
            for(string name : a.getArg()){
                if(name == s){
                    return(&a);
                } 
            }
        }
    }
    
    return(nullptr);
}

// Assembly:
subq $0x128, %rsp            # imm = 0x128
movq %rdi, 0x118(%rsp)
movq %rsi, 0x110(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0xd8(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x6200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0xf8(%rsp), %rdi
movl $0x7c, %ecx
callq 0x47a70
jmp 0x490d4
leaq 0xd8(%rsp), %rdi
callq 0x6988
leaq 0xf8(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x1e310
movq %rax, 0xb8(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x1e340
movq %rax, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x1e370
testb $0x1, %al
jne 0x49139
jmp 0x4936d
leaq 0xb8(%rsp), %rdi
callq 0x1e3b0
movq %rax, %rsi
leaq 0x90(%rsp), %rdi
callq 0x6200
jmp 0x49158
movq 0x8(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rdi
callq 0x49740
movq %rax, 0x80(%rsp)
movq 0x88(%rsp), %rdi
callq 0x49770
movq %rax, 0x78(%rsp)
leaq 0x80(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x497a0
testb $0x1, %al
jne 0x491a7
jmp 0x4932b
leaq 0x80(%rsp), %rdi
callq 0x497e0
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rsi
leaq 0x50(%rsp), %rdi
callq 0x498e0
jmp 0x491ca
leaq 0x50(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rdi
callq 0x1e310
movq %rax, 0x48(%rsp)
movq 0x68(%rsp), %rdi
callq 0x1e340
movq %rax, 0x40(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x1e370
testb $0x1, %al
jne 0x4926a
movl $0x6, 0x3c(%rsp)
jmp 0x49302
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x6988
jmp 0x493ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x4939e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x4935e
leaq 0x48(%rsp), %rdi
callq 0x1e3b0
movq %rax, %rsi
leaq 0x18(%rsp), %rdi
callq 0x6200
jmp 0x49283
leaq 0x18(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x2f090
testb $0x1, %al
jne 0x4929b
jmp 0x492d5
movq 0x70(%rsp), %rax
movq %rax, 0x120(%rsp)
movl $0x1, 0x3c(%rsp)
jmp 0x492dd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0x50(%rsp), %rdi
callq 0xa2c0
jmp 0x4935e
movl $0x0, 0x3c(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x6988
movl 0x3c(%rsp), %eax
testl %eax, %eax
jne 0x49302
jmp 0x492f1
jmp 0x492f3
leaq 0x48(%rsp), %rdi
callq 0x1e3c0
jmp 0x491f2
leaq 0x50(%rsp), %rdi
callq 0xa2c0
movl 0x3c(%rsp), %eax
subl $0x6, %eax
jne 0x49333
jmp 0x49317
jmp 0x49319
leaq 0x80(%rsp), %rdi
callq 0x49930
jmp 0x4918c
movl $0x0, 0x3c(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x6988
movl 0x3c(%rsp), %eax
testl %eax, %eax
jne 0x49381
jmp 0x4934a
jmp 0x4934c
leaq 0xb8(%rsp), %rdi
callq 0x1e3c0
jmp 0x4911b
leaq 0x90(%rsp), %rdi
callq 0x6988
jmp 0x4939e
movq $0x0, 0x120(%rsp)
movl $0x1, 0x3c(%rsp)
leaq 0xf8(%rsp), %rdi
callq 0xa2c0
movq 0x120(%rsp), %rax
addq $0x128, %rsp            # imm = 0x128
retq
leaq 0xf8(%rsp), %rdi
callq 0xa2c0
movq 0xd0(%rsp), %rdi
callq 0x6850
nopl (%rax,%rax)