// File: KellerMartins[P]PDS2-Pacman/source/graphics/rendering.cpp
// Function: RenderManager::Quit()
void Quit(){
        if(_isInitialized){
            UnloadShader(_outlineFilter);
            UnloadShader(_maskShader);
            UnloadShader(_colorShader);
            UnloadShader(_blurPass);
            UnloadShader(_screenShader);
            UnloadShader(_copyRTShader);

            UnloadTexture(_blackTexture);
        
            UnloadRenderTexture(_baseRT);
            UnloadRenderTexture(_tempRT);
            UnloadRenderTexture(_blurRT);
            UnloadRenderTexture(_vBlurRT);

            CloseWindow();
        }
        _isInitialized = false;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x490, %rsp            # imm = 0x490
testb $0x1, 0x20e51e(%rip)    # 0x226160
je 0x17f09
leaq -0x88(%rbp), %rdi
leaq 0x20e6a6(%rip), %rsi    # 0x2262fc
movl $0x84, %edx
callq 0x96e0
movq %rsp, %rax
movl $0x10, %ecx
leaq -0x88(%rbp), %rsi
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl -0x8(%rbp), %ecx
movl %ecx, 0x80(%rax)
callq 0x2e4a1
leaq -0x110(%rbp), %rdi
leaq 0x20e563(%rip), %rsi    # 0x2261f4
movl $0x84, %edx
callq 0x96e0
movq %rsp, %rax
movl $0x10, %ecx
leaq -0x110(%rbp), %rsi
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl -0x90(%rbp), %ecx
movl %ecx, 0x80(%rax)
callq 0x2e4a1
leaq -0x198(%rbp), %rdi
leaq 0x20e5a9(%rip), %rsi    # 0x226278
movl $0x84, %edx
callq 0x96e0
movq %rsp, %rax
movl $0x10, %ecx
leaq -0x198(%rbp), %rsi
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl -0x118(%rbp), %ecx
movl %ecx, 0x80(%rax)
callq 0x2e4a1
leaq -0x220(%rbp), %rdi
leaq 0x20e463(%rip), %rsi    # 0x226170
movl $0x84, %edx
callq 0x96e0
movq %rsp, %rax
movl $0x10, %ecx
leaq -0x220(%rbp), %rsi
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl -0x1a0(%rbp), %ecx
movl %ecx, 0x80(%rax)
callq 0x2e4a1
leaq -0x2a8(%rbp), %rdi
leaq 0x20e635(%rip), %rsi    # 0x226380
movl $0x84, %edx
callq 0x96e0
movq %rsp, %rax
movl $0x10, %ecx
leaq -0x2a8(%rbp), %rsi
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl -0x228(%rbp), %ecx
movl %ecx, 0x80(%rax)
callq 0x2e4a1
leaq -0x330(%rbp), %rdi
leaq 0x20e67b(%rip), %rsi    # 0x226404
movl $0x84, %edx
callq 0x96e0
movq %rsp, %rax
movl $0x10, %ecx
leaq -0x330(%rbp), %rsi
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl -0x2b0(%rbp), %ecx
movl %ecx, 0x80(%rax)
callq 0x2e4a1
movq 0x20e784(%rip), %rax    # 0x226544
movq %rax, -0x348(%rbp)
movq 0x20e77e(%rip), %rax    # 0x22654c
movq %rax, -0x340(%rbp)
movl 0x20e779(%rip), %eax    # 0x226554
movl %eax, -0x338(%rbp)
leaq -0x348(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl 0x10(%rax), %eax
movl %eax, 0x10(%rsp)
callq 0x7bd7c
leaq -0x378(%rbp), %rdi
leaq 0x20e682(%rip), %rsi    # 0x226494
movl $0x2c, %edx
callq 0x96e0
movups -0x378(%rbp), %xmm0
movups -0x368(%rbp), %xmm1
movups -0x35c(%rbp), %xmm2
movq %rsp, %rax
movups %xmm2, 0x1c(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x7bdae
leaq -0x3a8(%rbp), %rdi
leaq 0x20e66e(%rip), %rsi    # 0x2264c0
movl $0x2c, %edx
callq 0x96e0
movups -0x3a8(%rbp), %xmm0
movups -0x398(%rbp), %xmm1
movups -0x38c(%rbp), %xmm2
movq %rsp, %rax
movups %xmm2, 0x1c(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x7bdae
leaq -0x3d8(%rbp), %rdi
leaq 0x20e65a(%rip), %rsi    # 0x2264ec
movl $0x2c, %edx
callq 0x96e0
movups -0x3d8(%rbp), %xmm0
movups -0x3c8(%rbp), %xmm1
movups -0x3bc(%rbp), %xmm2
movq %rsp, %rax
movups %xmm2, 0x1c(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x7bdae
leaq -0x408(%rbp), %rdi
leaq 0x20e646(%rip), %rsi    # 0x226518
movl $0x2c, %edx
callq 0x96e0
movups -0x408(%rbp), %xmm0
movups -0x3f8(%rbp), %xmm1
movups -0x3ec(%rbp), %xmm2
movq %rsp, %rax
movups %xmm2, 0x1c(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x7bdae
callq 0x396d1
movb $0x0, 0x20e250(%rip)    # 0x226160
addq $0x490, %rsp            # imm = 0x490
popq %rbp
retq
nopl (%rax)