// File: /workspace/github_cpp_makefile_star2_O1/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 0xb036
leaq 0x8(%rsp), %rdi
leaq 0xc8(%rsp), %r15
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %rbx, %rdi
je 0x1da28
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 0xb036
leaq 0xa8(%rsp), %rsi
movq (%rsp), %rdi
callq 0x54454
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1da71
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 0xb036
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 0x1dac5
callq 0x7370
cmpl $0x0, 0x3c(%r14)
jne 0x1dbd7
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 0xb036
movq (%r15), %rax
leaq 0x68(%rsp), %rsi
movq %r15, %rdi
movq (%rsp), %rdx
callq *0x38(%rax)
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x1db14
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 0xb036
movq (%r15), %rax
leaq 0x48(%rsp), %rsi
movq %r15, %rdi
movq (%rsp), %rdx
callq *0x38(%rax)
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x1db5c
callq 0x7370
cmpl $0x0, 0x78(%r14)
je 0x1dbd7
leaq 0x38(%rsp), %rbp
xorl %r13d, %r13d
leaq 0x28(%rsp), %r15
cmpl $0x0, 0x7c(%r14)
je 0x1dbcb
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 0xb036
movq %r12, %rdi
movq %r15, %rsi
movq (%rsp), %rdx
callq 0x272ee
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1dbbf
callq 0x7370
incq %rbx
movl 0x7c(%r14), %eax
cmpq %rax, %rbx
jb 0x1db79
incq %r13
movl 0x78(%r14), %eax
cmpq %rax, %r13
jb 0x1db70
movq (%rsp), %rdi
callq 0x547fc
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1dbf4
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 0x1dc25
movq %rax, %rbx
movq 0x68(%rsp), %rdi
jmp 0x1dc25
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
jne 0x1dc54
jmp 0x1dc59
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x1dc54
jmp 0x1dc59
jmp 0x1dc42
jmp 0x1dc42
movq %rax, %rbx
jmp 0x1dc59
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1dc59
callq 0x7370
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1dc6d
callq 0x7370
movq %rbx, %rdi
callq 0x7620
nop