// File: CMU-SAFARI[P]MQSim/src/ssd/Data_Cache_Manager_Flash_Simple.cpp
// Function: SSD_Components::Data_Cache_Manager_Flash_Simple::~Data_Cache_Manager_Flash_Simple()
Data_Cache_Manager_Flash_Simple::~Data_Cache_Manager_Flash_Simple()
	{
		for (unsigned int i = 0; i < stream_count; i++) {
			while (dram_execution_queue[i].size()) {
				delete dram_execution_queue[i].front();
				dram_execution_queue[i].pop();
			}
			for (auto &req : waiting_user_requests_queue_for_dram_free_slot[i]) {
				delete req;
			}
		}

		delete data_cache;
		delete[] dram_execution_queue;
		delete[] waiting_user_requests_queue_for_dram_free_slot;
		delete[] bloom_filter;
	}

// Assembly:
subq $0xc8, %rsp
movq %rdi, 0xc0(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0x90(%rsp)
leaq 0x6a1ca(%rip), %rcx     # 0xd92b0
addq $0x10, %rcx
movq %rcx, (%rax)
movl $0x0, 0xbc(%rsp)
movq 0x90(%rsp), %rcx
movl 0xbc(%rsp), %eax
cmpl 0x74(%rcx), %eax
jae 0x6f29f
jmp 0x6f112
movq 0x90(%rsp), %rax
movq 0xc8(%rax), %rdi
movl 0xbc(%rsp), %eax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x6bfa0
movq %rax, 0x88(%rsp)
jmp 0x6f142
movq 0x88(%rsp), %rax
cmpq $0x0, %rax
je 0x6f1cd
movq 0x90(%rsp), %rax
movq 0xc8(%rax), %rdi
movl 0xbc(%rsp), %eax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x6bfb0
movq %rax, 0x80(%rsp)
jmp 0x6f180
movq 0x80(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x78(%rsp)
cmpq $0x0, %rax
je 0x6f1a0
movq 0x78(%rsp), %rdi
callq 0x8410
movq 0x90(%rsp), %rax
movq 0xc8(%rax), %rdi
movl 0xbc(%rsp), %eax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x6bfc0
jmp 0x6f1c8
jmp 0x6f112
movq 0x90(%rsp), %rax
movq 0xd0(%rax), %rax
movl 0xbc(%rsp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rdi
callq 0x6bfd0
movq %rax, 0xa8(%rsp)
movq 0xb0(%rsp), %rdi
callq 0x6c000
movq %rax, 0xa0(%rsp)
leaq 0xa8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x6c030
testb $0x1, %al
jne 0x6f237
jmp 0x6f287
leaq 0xa8(%rsp), %rdi
callq 0x6c050
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x70(%rsp)
cmpq $0x0, %rax
je 0x6f276
movq 0x70(%rsp), %rdi
callq 0x6c070
movq 0x70(%rsp), %rdi
callq 0x8410
jmp 0x6f278
leaq 0xa8(%rsp), %rdi
callq 0x6c0a0
jmp 0x6f21c
jmp 0x6f289
movl 0xbc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xbc(%rsp)
jmp 0x6f0f8
movq 0x90(%rsp), %rax
movq 0xc0(%rax), %rax
movq %rax, 0x68(%rsp)
cmpq $0x0, %rax
je 0x6f2cd
movq 0x68(%rsp), %rdi
callq 0x64410
movq 0x68(%rsp), %rdi
callq 0x8410
movq 0x90(%rsp), %rax
movq 0xc8(%rax), %rax
movq %rax, 0x60(%rsp)
cmpq $0x0, %rax
je 0x6f33e
movq 0x60(%rsp), %rcx
movq %rcx, %rax
addq $-0x8, %rax
movq %rax, 0x50(%rsp)
imulq $0x50, -0x8(%rcx), %rdx
movq %rcx, %rax
addq %rdx, %rax
cmpq %rax, %rcx
movq %rax, 0x58(%rsp)
je 0x6f334
movq 0x58(%rsp), %rdi
addq $-0x50, %rdi
movq %rdi, 0x48(%rsp)
callq 0x6bf80
movq 0x60(%rsp), %rcx
movq 0x48(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x58(%rsp)
jne 0x6f30d
movq 0x50(%rsp), %rdi
callq 0x8570
movq 0x90(%rsp), %rax
movq 0xd0(%rax), %rax
movq %rax, 0x40(%rsp)
cmpq $0x0, %rax
je 0x6f3af
movq 0x40(%rsp), %rcx
movq %rcx, %rax
addq $-0x8, %rax
movq %rax, 0x30(%rsp)
imulq $0x18, -0x8(%rcx), %rdx
movq %rcx, %rax
addq %rdx, %rax
cmpq %rax, %rcx
movq %rax, 0x38(%rsp)
je 0x6f3a5
movq 0x38(%rsp), %rdi
addq $-0x18, %rdi
movq %rdi, 0x28(%rsp)
callq 0x6c0c0
movq 0x40(%rsp), %rcx
movq 0x28(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x38(%rsp)
jne 0x6f37e
movq 0x30(%rsp), %rdi
callq 0x8570
movq 0x90(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, %rax
je 0x6f420
movq 0x20(%rsp), %rcx
movq %rcx, %rax
addq $-0x8, %rax
movq %rax, 0x10(%rsp)
imulq $0x30, -0x8(%rcx), %rdx
movq %rcx, %rax
addq %rdx, %rax
cmpq %rax, %rcx
movq %rax, 0x18(%rsp)
je 0x6f416
movq 0x18(%rsp), %rdi
addq $-0x30, %rdi
movq %rdi, 0x8(%rsp)
callq 0x20b60
movq 0x20(%rsp), %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x18(%rsp)
jne 0x6f3ef
movq 0x10(%rsp), %rdi
callq 0x8570
movq 0x90(%rsp), %rdi
callq 0x67ae0
addq $0xc8, %rsp
retq
movq %rax, %rdi
callq 0xd460
nopl (%rax)