// File: CMU-SAFARI[P]MQSim/src/ssd/TSU_OutofOrder.cpp
// Function: SSD_Components::TSU_OutOfOrder::Report_results_in_XML(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Utils::XmlWriter&)
void TSU_OutOfOrder::Report_results_in_XML(std::string name_prefix, Utils::XmlWriter &xmlwriter)
{
	name_prefix = name_prefix + ".TSU";
	xmlwriter.Write_open_tag(name_prefix);

	TSU_Base::Report_results_in_XML(name_prefix, xmlwriter);

	for (unsigned int channelID = 0; channelID < channel_count; channelID++)
	{
		for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
		{
			UserReadTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".User_Read_TR_Queue", xmlwriter);
		}
	}

	for (unsigned int channelID = 0; channelID < channel_count; channelID++)
	{
		for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
		{
			UserWriteTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".User_Write_TR_Queue", xmlwriter);
		}
	}

	for (unsigned int channelID = 0; channelID < channel_count; channelID++)
	{
		for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
		{
			MappingReadTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".Mapping_Read_TR_Queue", xmlwriter);
		}
	}

	for (unsigned int channelID = 0; channelID < channel_count; channelID++)
	{
		for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
		{
			MappingWriteTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".Mapping_Write_TR_Queue", xmlwriter);
		}
	}

	for (unsigned int channelID = 0; channelID < channel_count; channelID++)
	{
		for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
		{
			GCReadTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".GC_Read_TR_Queue", xmlwriter);
		}
	}

	for (unsigned int channelID = 0; channelID < channel_count; channelID++)
	{
		for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
		{
			GCWriteTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".GC_Write_TR_Queue", xmlwriter);
		}
	}

	for (unsigned int channelID = 0; channelID < channel_count; channelID++)
	{
		for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
		{
			GCEraseTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".GC_Erase_TR_Queue", xmlwriter);
		}
	}

	xmlwriter.Write_close_tag();
}

// Assembly:
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rsi, 0x100(%rsp)
movq %rdi, 0x2b0(%rsp)
movq %rsi, 0x2a8(%rsp)
movq %rdx, 0x2a0(%rsp)
movq 0x2b0(%rsp), %rax
movq %rax, 0xf0(%rsp)
leaq 0xdfb7(%rip), %rdx      # 0xab7d5
leaq 0x280(%rsp), %rdi
movq %rdi, 0xf8(%rsp)
callq 0x1fe40
movq 0xf8(%rsp), %rsi
movq 0x100(%rsp), %rdi
callq 0x8510
movq 0xf8(%rsp), %rdi
callq 0x8848
movq 0x100(%rsp), %rsi
movq 0x2a0(%rsp), %rax
movq %rax, 0x108(%rsp)
leaq 0x260(%rsp), %rdi
movq %rdi, 0x110(%rsp)
callq 0x81a0
movq 0x108(%rsp), %rdi
movq 0x110(%rsp), %rsi
callq 0xa7d60
jmp 0x9d899
leaq 0x260(%rsp), %rdi
callq 0x8848
movq 0x100(%rsp), %rsi
leaq 0x230(%rsp), %rdi
movq %rdi, 0xe8(%rsp)
callq 0x81a0
movq 0xf0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
callq 0x9b290
jmp 0x9d8e2
leaq 0x230(%rsp), %rdi
callq 0x8848
movl $0x0, 0x22c(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x22c(%rsp), %eax
cmpl 0x44(%rcx), %eax
jae 0x9da82
movl $0x0, 0x228(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x228(%rsp), %eax
cmpl 0x48(%rcx), %eax
jae 0x9da6a
movq 0x100(%rsp), %rsi
movq 0xf0(%rsp), %rax
movq 0xb0(%rax), %rax
movl 0x22c(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0xd0(%rsp)
movl 0x228(%rsp), %ecx
movl %ecx, %edx
movq %rdx, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rdx,8), %rcx
movq %rcx, 0xc8(%rsp)
addq %rcx, %rax
movq %rax, 0xd8(%rsp)
leaq 0x10f5a(%rip), %rdx     # 0xae8e7
leaq 0x208(%rsp), %rdi
movq %rdi, 0xe0(%rsp)
callq 0x1fe40
movq 0xc8(%rsp), %rcx
movq 0xd0(%rsp), %rax
movq 0xd8(%rsp), %rdi
movq 0xe0(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
movq (%rax,%rcx), %rax
movq (%rax), %rax
callq *%rax
jmp 0x9d9d5
leaq 0x208(%rsp), %rdi
callq 0x8848
movl 0x228(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x228(%rsp)
jmp 0x9d91d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x258(%rsp)
movl %eax, 0x254(%rsp)
leaq 0x260(%rsp), %rdi
callq 0x8848
jmp 0x9e1e4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x258(%rsp)
movl %eax, 0x254(%rsp)
leaq 0x230(%rsp), %rdi
callq 0x8848
jmp 0x9e1e4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x258(%rsp)
movl %eax, 0x254(%rsp)
leaq 0x208(%rsp), %rdi
callq 0x8848
jmp 0x9e1e4
jmp 0x9da6c
movl 0x22c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x22c(%rsp)
jmp 0x9d8fa
movl $0x0, 0x204(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x204(%rsp), %eax
cmpl 0x44(%rcx), %eax
jae 0x9dbc9
movl $0x0, 0x200(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x200(%rsp), %eax
cmpl 0x48(%rcx), %eax
jae 0x9dbb1
movq 0x100(%rsp), %rsi
movq 0xf0(%rsp), %rax
movq 0xb8(%rax), %rax
movl 0x204(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0xb0(%rsp)
movl 0x200(%rsp), %ecx
movl %ecx, %edx
movq %rdx, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rdx,8), %rcx
movq %rcx, 0xa8(%rsp)
addq %rcx, %rax
movq %rax, 0xb8(%rsp)
leaq 0x10ddb(%rip), %rdx     # 0xae8fb
leaq 0x1e0(%rsp), %rdi
movq %rdi, 0xc0(%rsp)
callq 0x1fe40
movq 0xa8(%rsp), %rcx
movq 0xb0(%rsp), %rax
movq 0xb8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
movq (%rax,%rcx), %rax
movq (%rax), %rax
callq *%rax
jmp 0x9db68
leaq 0x1e0(%rsp), %rdi
callq 0x8848
movl 0x200(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x200(%rsp)
jmp 0x9dab0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x258(%rsp)
movl %eax, 0x254(%rsp)
leaq 0x1e0(%rsp), %rdi
callq 0x8848
jmp 0x9e1e4
jmp 0x9dbb3
movl 0x204(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x204(%rsp)
jmp 0x9da8d
movl $0x0, 0x1dc(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x1dc(%rsp), %eax
cmpl 0x44(%rcx), %eax
jae 0x9dd10
movl $0x0, 0x1d8(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x1d8(%rsp), %eax
cmpl 0x48(%rcx), %eax
jae 0x9dcf8
movq 0x100(%rsp), %rsi
movq 0xf0(%rsp), %rax
movq 0xd8(%rax), %rax
movl 0x1dc(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x90(%rsp)
movl 0x1d8(%rsp), %ecx
movl %ecx, %edx
movq %rdx, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rdx,8), %rcx
movq %rcx, 0x88(%rsp)
addq %rcx, %rax
movq %rax, 0x98(%rsp)
leaq 0x10ca9(%rip), %rdx     # 0xae910
leaq 0x1b8(%rsp), %rdi
movq %rdi, 0xa0(%rsp)
callq 0x1fe40
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %rax
movq 0x98(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
movq (%rax,%rcx), %rax
movq (%rax), %rax
callq *%rax
jmp 0x9dcaf
leaq 0x1b8(%rsp), %rdi
callq 0x8848
movl 0x1d8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1d8(%rsp)
jmp 0x9dbf7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x258(%rsp)
movl %eax, 0x254(%rsp)
leaq 0x1b8(%rsp), %rdi
callq 0x8848
jmp 0x9e1e4
jmp 0x9dcfa
movl 0x1dc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1dc(%rsp)
jmp 0x9dbd4
movl $0x0, 0x1b4(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x1b4(%rsp), %eax
cmpl 0x44(%rcx), %eax
jae 0x9de45
movl $0x0, 0x1b0(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x1b0(%rsp), %eax
cmpl 0x48(%rcx), %eax
jae 0x9de2d
movq 0x100(%rsp), %rsi
movq 0xf0(%rsp), %rax
movq 0xe0(%rax), %rax
movl 0x1b4(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x70(%rsp)
movl 0x1b0(%rsp), %ecx
movl %ecx, %edx
movq %rdx, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rdx,8), %rcx
movq %rcx, 0x68(%rsp)
addq %rcx, %rax
movq %rax, 0x78(%rsp)
leaq 0x10b82(%rip), %rdx     # 0xae927
leaq 0x190(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0x1fe40
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
movq (%rax,%rcx), %rax
movq (%rax), %rax
callq *%rax
jmp 0x9dde4
leaq 0x190(%rsp), %rdi
callq 0x8848
movl 0x1b0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1b0(%rsp)
jmp 0x9dd3e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x258(%rsp)
movl %eax, 0x254(%rsp)
leaq 0x190(%rsp), %rdi
callq 0x8848
jmp 0x9e1e4
jmp 0x9de2f
movl 0x1b4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1b4(%rsp)
jmp 0x9dd1b
movl $0x0, 0x18c(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x18c(%rsp), %eax
cmpl 0x44(%rcx), %eax
jae 0x9df74
movl $0x0, 0x188(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x188(%rsp), %eax
cmpl 0x48(%rcx), %eax
jae 0x9df5c
movq 0x100(%rsp), %rsi
movq 0xf0(%rsp), %rax
movq 0xc0(%rax), %rax
movl 0x18c(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x50(%rsp)
movl 0x188(%rsp), %ecx
movl %ecx, %edx
movq %rdx, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rdx,8), %rcx
movq %rcx, 0x48(%rsp)
addq %rcx, %rax
movq %rax, 0x58(%rsp)
leaq 0x10a65(%rip), %rdx     # 0xae93f
leaq 0x168(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x1fe40
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
movq (%rax,%rcx), %rax
movq (%rax), %rax
callq *%rax
jmp 0x9df13
leaq 0x168(%rsp), %rdi
callq 0x8848
movl 0x188(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x188(%rsp)
jmp 0x9de73
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x258(%rsp)
movl %eax, 0x254(%rsp)
leaq 0x168(%rsp), %rdi
callq 0x8848
jmp 0x9e1e4
jmp 0x9df5e
movl 0x18c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18c(%rsp)
jmp 0x9de50
movl $0x0, 0x164(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x164(%rsp), %eax
cmpl 0x44(%rcx), %eax
jae 0x9e0a3
movl $0x0, 0x160(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x160(%rsp), %eax
cmpl 0x48(%rcx), %eax
jae 0x9e08b
movq 0x100(%rsp), %rsi
movq 0xf0(%rsp), %rax
movq 0xc8(%rax), %rax
movl 0x164(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x30(%rsp)
movl 0x160(%rsp), %ecx
movl %ecx, %edx
movq %rdx, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rdx,8), %rcx
movq %rcx, 0x28(%rsp)
addq %rcx, %rax
movq %rax, 0x38(%rsp)
leaq 0x10948(%rip), %rdx     # 0xae951
leaq 0x140(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x1fe40
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
movq (%rax,%rcx), %rax
movq (%rax), %rax
callq *%rax
jmp 0x9e042
leaq 0x140(%rsp), %rdi
callq 0x8848
movl 0x160(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x160(%rsp)
jmp 0x9dfa2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x258(%rsp)
movl %eax, 0x254(%rsp)
leaq 0x140(%rsp), %rdi
callq 0x8848
jmp 0x9e1e4
jmp 0x9e08d
movl 0x164(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x164(%rsp)
jmp 0x9df7f
movl $0x0, 0x13c(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x13c(%rsp), %eax
cmpl 0x44(%rcx), %eax
jae 0x9e1cf
movl $0x0, 0x138(%rsp)
movq 0xf0(%rsp), %rcx
movl 0x138(%rsp), %eax
cmpl 0x48(%rcx), %eax
jae 0x9e1b7
movq 0x100(%rsp), %rsi
movq 0xf0(%rsp), %rax
movq 0xd0(%rax), %rax
movl 0x13c(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movl 0x138(%rsp), %ecx
movl %ecx, %edx
movq %rdx, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rdx,8), %rcx
movq %rcx, 0x8(%rsp)
addq %rcx, %rax
movq %rax, 0x18(%rsp)
leaq 0x1082c(%rip), %rdx     # 0xae964
leaq 0x118(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x1fe40
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
movq (%rax,%rcx), %rax
movq (%rax), %rax
callq *%rax
jmp 0x9e171
leaq 0x118(%rsp), %rdi
callq 0x8848
movl 0x138(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x138(%rsp)
jmp 0x9e0d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x258(%rsp)
movl %eax, 0x254(%rsp)
leaq 0x118(%rsp), %rdi
callq 0x8848
jmp 0x9e1e4
jmp 0x9e1b9
movl 0x13c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x13c(%rsp)
jmp 0x9e0ae
movq 0x2a0(%rsp), %rdi
callq 0xa80f0
addq $0x2b8, %rsp            # imm = 0x2B8
retq
movq 0x258(%rsp), %rdi
callq 0x8770
nopw %cs:(%rax,%rax)