// File: FR13ndSDP[P]NHT/Solver.cpp
// Function: solve(std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double)
Vec solve(Vec aW, Vec aP, Vec aE, Vec Su, string s, double p)
{
    if (s.compare("TDMA") == 0)
    {
        return TDMA(aW, aP, aE, Su);
    }
    else if (s.compare("jacobi") == 0)
    {
        return jacobi(aW, aP, aE, Su, p);
    }
    else
    {
        return guassSeidel(aW, aP, aE, Su, p);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %r9, -0x180(%rbp)
movq %r8, -0x1a0(%rbp)
movq %rcx, -0x198(%rbp)
movq %rdx, -0x190(%rbp)
movq %rsi, -0x188(%rbp)
movq %rdi, %rax
movq -0x180(%rbp), %rdi
movq %rax, -0x178(%rbp)
movq %rax, %r9
movq %r9, -0x170(%rbp)
movq %rax, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %rdi, -0x30(%rbp)
movsd %xmm0, -0x38(%rbp)
leaq 0x1303(%rip), %rsi      # 0x80e0
callq 0x20a0
cmpl $0x0, %eax
jne 0x6eef
movq -0x188(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x3570
movq -0x190(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x3570
jmp 0x6e0d
movq -0x198(%rbp), %rsi
leaq -0x90(%rbp), %rdi
callq 0x3570
jmp 0x6e22
movq -0x1a0(%rbp), %rsi
leaq -0xa8(%rbp), %rdi
callq 0x3570
jmp 0x6e37
movq -0x178(%rbp), %rdi
leaq -0x50(%rbp), %rsi
leaq -0x68(%rbp), %rdx
leaq -0x90(%rbp), %rcx
leaq -0xa8(%rbp), %r8
callq 0x5b20
jmp 0x6e5b
leaq -0xa8(%rbp), %rdi
callq 0x3690
leaq -0x90(%rbp), %rdi
callq 0x3690
leaq -0x68(%rbp), %rdi
callq 0x3690
leaq -0x50(%rbp), %rdi
callq 0x3690
jmp 0x7147
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x6ee1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x6ed8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x6ecc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x3690
leaq -0x90(%rbp), %rdi
callq 0x3690
leaq -0x68(%rbp), %rdi
callq 0x3690
leaq -0x50(%rbp), %rdi
callq 0x3690
jmp 0x7157
movq -0x180(%rbp), %rdi
leaq 0x12b3(%rip), %rsi      # 0x81b0
callq 0x20a0
cmpl $0x0, %eax
jne 0x702c
movq -0x188(%rbp), %rsi
leaq -0xc0(%rbp), %rdi
callq 0x3570
movq -0x190(%rbp), %rsi
leaq -0xd8(%rbp), %rdi
callq 0x3570
jmp 0x6f33
movq -0x198(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0x3570
jmp 0x6f48
movq -0x1a0(%rbp), %rsi
leaq -0x108(%rbp), %rdi
callq 0x3570
jmp 0x6f5d
movq -0x178(%rbp), %rdi
movsd -0x38(%rbp), %xmm0
leaq -0xc0(%rbp), %rsi
leaq -0xd8(%rbp), %rdx
leaq -0xf0(%rbp), %rcx
leaq -0x108(%rbp), %r8
callq 0x6120
jmp 0x6f8c
leaq -0x108(%rbp), %rdi
callq 0x3690
leaq -0xf0(%rbp), %rdi
callq 0x3690
leaq -0xd8(%rbp), %rdi
callq 0x3690
leaq -0xc0(%rbp), %rdi
callq 0x3690
jmp 0x7147
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x701b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x700f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x7003
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x108(%rbp), %rdi
callq 0x3690
leaq -0xf0(%rbp), %rdi
callq 0x3690
leaq -0xd8(%rbp), %rdi
callq 0x3690
leaq -0xc0(%rbp), %rdi
callq 0x3690
jmp 0x7157
movq -0x188(%rbp), %rsi
leaq -0x120(%rbp), %rdi
callq 0x3570
movq -0x190(%rbp), %rsi
leaq -0x138(%rbp), %rdi
callq 0x3570
jmp 0x7054
movq -0x198(%rbp), %rsi
leaq -0x150(%rbp), %rdi
callq 0x3570
jmp 0x7069
movq -0x1a0(%rbp), %rsi
leaq -0x168(%rbp), %rdi
callq 0x3570
jmp 0x707e
movq -0x178(%rbp), %rdi
movsd -0x38(%rbp), %xmm0
leaq -0x120(%rbp), %rsi
leaq -0x138(%rbp), %rdx
leaq -0x150(%rbp), %rcx
leaq -0x168(%rbp), %r8
callq 0x6740
jmp 0x70ad
leaq -0x168(%rbp), %rdi
callq 0x3690
leaq -0x150(%rbp), %rdi
callq 0x3690
leaq -0x138(%rbp), %rdi
callq 0x3690
leaq -0x120(%rbp), %rdi
callq 0x3690
jmp 0x7147
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x7139
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x712d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x7121
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x168(%rbp), %rdi
callq 0x3690
leaq -0x150(%rbp), %rdi
callq 0x3690
leaq -0x138(%rbp), %rdi
callq 0x3690
leaq -0x120(%rbp), %rdi
callq 0x3690
jmp 0x7157
movq -0x170(%rbp), %rax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x2350