// File: suhasjains[P]AMR-Solver/src/multigrid.cpp
// Function: amrsolver::multigrid(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void multigrid(std::string name) {

     	gauss_seidel(0, name);


	for(int i=1; i<=myOctree::max_level; i++) {
        	prolongate_ghost(i,name);
       		prolongate_domain(i,name);
     		gauss_seidel(i, name);
	}

	for(int i=myOctree::max_level-1; i>=0; i--) {
		restrict(i,name);
		gauss_seidel(i,name);		
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, %rsi
movq %rsi, -0xf0(%rbp)
movq %rsi, -0x8(%rbp)
leaq -0x28(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x3120
movq -0xe8(%rbp), %rsi
xorl %edi, %edi
callq 0x182b0
jmp 0x20359
leaq -0x28(%rbp), %rdi
callq 0x3180
movl $0x1, -0x38(%rbp)
movl -0x38(%rbp), %eax
leaq 0x6331(%rip), %rcx      # 0x266a4
cmpl (%rcx), %eax
jg 0x204b1
movq -0xf0(%rbp), %rsi
movl -0x38(%rbp), %eax
movl %eax, -0xfc(%rbp)
leaq -0x58(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x3120
movl -0xfc(%rbp), %edi
movq -0xf8(%rbp), %rsi
callq 0x1f5d0
jmp 0x203af
leaq -0x58(%rbp), %rdi
callq 0x3180
movq -0xf0(%rbp), %rsi
movl -0x38(%rbp), %eax
movl %eax, -0x10c(%rbp)
leaq -0x78(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x3120
movl -0x10c(%rbp), %edi
movq -0x108(%rbp), %rsi
callq 0x1fb70
jmp 0x203ec
leaq -0x78(%rbp), %rdi
callq 0x3180
movq -0xf0(%rbp), %rsi
movl -0x38(%rbp), %eax
movl %eax, -0x11c(%rbp)
leaq -0x98(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x3120
movl -0x11c(%rbp), %edi
movq -0x118(%rbp), %rsi
callq 0x182b0
jmp 0x2042c
leaq -0x98(%rbp), %rdi
callq 0x3180
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x20369
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3180
jmp 0x205ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x3180
jmp 0x205ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x3180
jmp 0x205ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x3180
jmp 0x205ad
leaq 0x61ec(%rip), %rax      # 0x266a4
movl (%rax), %eax
subl $0x1, %eax
movl %eax, -0x9c(%rbp)
cmpl $0x0, -0x9c(%rbp)
jl 0x205a4
movq -0xf0(%rbp), %rsi
movl -0x9c(%rbp), %eax
movl %eax, -0x12c(%rbp)
leaq -0xc0(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x3120
movl -0x12c(%rbp), %edi
movq -0x128(%rbp), %rsi
callq 0x20110
jmp 0x2050a
leaq -0xc0(%rbp), %rdi
callq 0x3180
movq -0xf0(%rbp), %rsi
movl -0x9c(%rbp), %eax
movl %eax, -0x13c(%rbp)
leaq -0xe0(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x3120
movl -0x13c(%rbp), %edi
movq -0x138(%rbp), %rsi
callq 0x182b0
jmp 0x20550
leaq -0xe0(%rbp), %rdi
callq 0x3180
movl -0x9c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x204c3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x3180
jmp 0x205ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x3180
jmp 0x205ad
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x3420