// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/exec/SSD_Device.cpp
// Function: SSD_Device::Report_results_in_XML(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Utils::XmlWriter&)
void SSD_Device::Report_results_in_XML(std::string name_prefix, Utils::XmlWriter &xmlwriter)
{
	std::string tmp;
	tmp = ID();
	xmlwriter.Write_open_tag(tmp);

	this->Host_interface->Report_results_in_XML(ID(), xmlwriter);
	if (Memory_Type == NVM::NVM_Type::FLASH)
	{
		((SSD_Components::FTL *)this->Firmware)->Report_results_in_XML(ID(), xmlwriter);
		((SSD_Components::FTL *)this->Firmware)->TSU->Report_results_in_XML(ID(), xmlwriter);

		for (unsigned int channel_cntr = 0; channel_cntr < Channel_count; channel_cntr++)
		{
			for (unsigned int chip_cntr = 0; chip_cntr < Chip_no_per_channel; chip_cntr++)
			{
				((SSD_Components::ONFI_Channel_NVDDR2 *)Channels[channel_cntr])->Chips[chip_cntr]->Report_results_in_XML(ID(), xmlwriter);
			}
		}
	}
	xmlwriter.Write_close_tag();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdx, (%rsp)
movq %rdi, %r14
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xd8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0xaf32
leaq 0x8(%rsp), %rdi
leaq 0xc8(%rsp), %r15
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %rbx, %rdi
je 0x1d966
callq 0x7370
leaq 0xb8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0xaf32
leaq 0xa8(%rsp), %rsi
movq (%rsp), %rdi
callq 0x53af8
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d9af
callq 0x7370
movq 0x40(%r14), %r15
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0xaf32
movq 0x30(%r15), %rax
addq $0x30, %r15
leaq 0x88(%rsp), %rsi
movq %r15, %rdi
movq (%rsp), %rdx
callq *(%rax)
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x1da03
callq 0x7370
cmpl $0x0, 0x3c(%r14)
jne 0x1db1e
movq 0x50(%r14), %r15
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0xaf32
movq (%r15), %rax
leaq 0x68(%rsp), %rsi
movq %r15, %rdi
movq (%rsp), %rdx
callq *0x38(%rax)
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x1da52
callq 0x7370
movq 0x50(%r14), %rax
movq 0x50(%rax), %r15
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0xaf32
movq (%r15), %rax
leaq 0x48(%rsp), %rsi
movq %r15, %rdi
movq (%rsp), %rdx
callq *0x38(%rax)
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x1da9a
callq 0x7370
movl 0x78(%r14), %ecx
testl %ecx, %ecx
je 0x1db1e
leaq 0x38(%rsp), %rbp
movl 0x7c(%r14), %eax
xorl %r13d, %r13d
leaq 0x28(%rsp), %r15
testl %eax, %eax
movl $0x0, %eax
je 0x1db14
xorl %ebx, %ebx
movq 0x60(%r14), %rax
movq (%rax,%r13,8), %rax
movq 0x8(%rax), %rax
movq (%rax,%rbx,8), %r12
movq %rbp, 0x28(%rsp)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xaf32
movq %r12, %rdi
movq %r15, %rsi
movq (%rsp), %rdx
callq 0x27156
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1db04
callq 0x7370
incq %rbx
movl 0x7c(%r14), %eax
cmpq %rax, %rbx
jb 0x1dabe
movl 0x78(%r14), %ecx
incq %r13
movl %ecx, %edx
cmpq %rdx, %r13
jb 0x1dab3
movq (%rsp), %rdi
callq 0x53e9a
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1db3b
callq 0x7370
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
jmp 0x1db6c
movq %rax, %rbx
movq 0x68(%rsp), %rdi
jmp 0x1db6c
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
jne 0x1db9b
jmp 0x1dba0
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x1db9b
jmp 0x1dba0
jmp 0x1db89
jmp 0x1db89
movq %rax, %rbx
jmp 0x1dba0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1dba0
callq 0x7370
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1dbb4
callq 0x7370
movq %rbx, %rdi
callq 0x7620