// File: CMU-SAFARI[P]MQSim/src/nvm_chip/flash_memory/Flash_Chip.cpp
// Function: NVM::FlashMemory::Flash_Chip::Report_results_in_XML(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Utils::XmlWriter&)
void Flash_Chip::Report_results_in_XML(std::string name_prefix, Utils::XmlWriter& xmlwriter)
		{
			std::string tmp = name_prefix;
			xmlwriter.Write_start_element_tag(tmp + ".FlashChips");

			std::string attr = "ID";
			std::string val = "@" + std::to_string(ChannelID) + "@" + std::to_string(ChipID);
			xmlwriter.Write_attribute_string_inline(attr, val);

			attr = "Fraction_of_Time_in_Execution";
			val = std::to_string(STAT_totalExecTime / double(Simulator->Time()));
			xmlwriter.Write_attribute_string_inline(attr, val);

			attr = "Fraction_of_Time_in_DataXfer";
			val = std::to_string(STAT_totalXferTime / double(Simulator->Time()));
			xmlwriter.Write_attribute_string_inline(attr, val);

			attr = "Fraction_of_Time_in_DataXfer_and_Execution";
			val = std::to_string(STAT_totalOverlappedXferExecTime / double(Simulator->Time()));
			xmlwriter.Write_attribute_string_inline(attr, val);

			attr = "Fraction_of_Time_Idle";
			val = std::to_string((Simulator->Time() - STAT_totalOverlappedXferExecTime - STAT_totalXferTime) / double(Simulator->Time()));
			xmlwriter.Write_attribute_string_inline(attr, val);
		
			xmlwriter.Write_end_element_tag();
		}

// Assembly:
subq $0x3c8, %rsp            # imm = 0x3C8
movq %rdi, 0x3c0(%rsp)
movq %rsi, 0x3b8(%rsp)
movq %rdx, 0x3b0(%rsp)
movq 0x3c0(%rsp), %rax
movq %rax, 0xc0(%rsp)
leaq 0x390(%rsp), %rdi
movq %rdi, 0xc8(%rsp)
callq 0x81a0
movq 0xc8(%rsp), %rsi
movq 0x3b0(%rsp), %rax
movq %rax, 0xd0(%rsp)
leaq 0x676c8(%rip), %rdx     # 0xac28b
leaq 0x370(%rsp), %rdi
callq 0x1fe40
jmp 0x44bd2
movq 0xd0(%rsp), %rdi
leaq 0x370(%rsp), %rsi
callq 0xa8240
jmp 0x44be9
leaq 0x370(%rsp), %rdi
callq 0x8848
leaq 0x33f(%rsp), %rdi
movq %rdi, 0xb8(%rsp)
callq 0x8780
movq 0xb8(%rsp), %rdx
leaq 0x67a64(%rip), %rsi     # 0xac67e
leaq 0x340(%rsp), %rdi
callq 0x85d0
jmp 0x44c29
leaq 0x33f(%rsp), %rdi
callq 0x84a0
movq 0xc0(%rsp), %rax
movl 0x2c(%rax), %esi
leaq 0x2b8(%rsp), %rdi
callq 0x18f30
jmp 0x44c50
leaq 0x69c39(%rip), %rsi     # 0xae890
leaq 0x2d8(%rsp), %rdi
leaq 0x2b8(%rsp), %rdx
callq 0x45710
jmp 0x44c6e
leaq 0x69c1b(%rip), %rdx     # 0xae890
leaq 0x2f8(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
callq 0xd060
jmp 0x44c8c
movq 0xc0(%rsp), %rax
movl 0x30(%rax), %esi
leaq 0x298(%rsp), %rdi
callq 0x18f30
jmp 0x44ca6
leaq 0x318(%rsp), %rdi
leaq 0x2f8(%rsp), %rsi
leaq 0x298(%rsp), %rdx
callq 0xd0b0
jmp 0x44cc5
leaq 0x298(%rsp), %rdi
callq 0x8848
leaq 0x2f8(%rsp), %rdi
callq 0x8848
leaq 0x2d8(%rsp), %rdi
callq 0x8848
leaq 0x2b8(%rsp), %rdi
callq 0x8848
movq 0x3b0(%rsp), %rax
movq %rax, 0xb0(%rsp)
leaq 0x278(%rsp), %rdi
leaq 0x340(%rsp), %rsi
callq 0x81a0
jmp 0x44d20
leaq 0x258(%rsp), %rdi
leaq 0x318(%rsp), %rsi
callq 0x81a0
jmp 0x44d37
movq 0xb0(%rsp), %rdi
leaq 0x278(%rsp), %rsi
leaq 0x258(%rsp), %rdx
callq 0xa84d0
jmp 0x44d56
leaq 0x258(%rsp), %rdi
callq 0x8848
leaq 0x278(%rsp), %rdi
callq 0x8848
leaq 0x67520(%rip), %rsi     # 0xac297
leaq 0x340(%rsp), %rdi
callq 0x85c0
jmp 0x44d86
movq 0xc0(%rsp), %rax
movq 0xd8(%rax), %xmm0
movaps 0x66c13(%rip), %xmm1    # 0xab9b0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x66c17(%rip), %xmm1    # 0xab9c0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
callq 0x46500
movq %rax, 0xa8(%rsp)
jmp 0x44dd0
movq 0xa8(%rsp), %rdi
callq 0x46c50
movq %rax, 0x98(%rsp)
jmp 0x44de7
movsd 0xa0(%rsp), %xmm0
movq 0x98(%rsp), %rax
movq %rax, %xmm1
movaps 0x66bac(%rip), %xmm2    # 0xab9b0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x66bb0(%rip), %xmm2    # 0xab9c0
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
leaq 0x238(%rsp), %rdi
callq 0x19130
jmp 0x44e32
leaq 0x318(%rsp), %rdi
leaq 0x238(%rsp), %rsi
movq %rsi, 0x88(%rsp)
callq 0x8510
movq 0x88(%rsp), %rdi
callq 0x8848
movq 0x3b0(%rsp), %rax
movq %rax, 0x90(%rsp)
leaq 0x218(%rsp), %rdi
leaq 0x340(%rsp), %rsi
callq 0x81a0
jmp 0x44e83
leaq 0x1f8(%rsp), %rdi
leaq 0x318(%rsp), %rsi
callq 0x81a0
jmp 0x44e9a
movq 0x90(%rsp), %rdi
leaq 0x218(%rsp), %rsi
leaq 0x1f8(%rsp), %rdx
callq 0xa84d0
jmp 0x44eb9
leaq 0x1f8(%rsp), %rdi
callq 0x8848
leaq 0x218(%rsp), %rdi
callq 0x8848
leaq 0x673db(%rip), %rsi     # 0xac2b5
leaq 0x340(%rsp), %rdi
callq 0x85c0
jmp 0x44ee9
movq 0xc0(%rsp), %rax
movq 0xe0(%rax), %xmm0
movaps 0x66ab0(%rip), %xmm1    # 0xab9b0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x66ab4(%rip), %xmm1    # 0xab9c0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, 0x78(%rsp)
callq 0x46500
movq %rax, 0x80(%rsp)
jmp 0x44f30
movq 0x80(%rsp), %rdi
callq 0x46c50
movq %rax, 0x70(%rsp)
jmp 0x44f44
movsd 0x78(%rsp), %xmm0
movq 0x70(%rsp), %rax
movq %rax, %xmm1
movaps 0x66a55(%rip), %xmm2    # 0xab9b0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x66a59(%rip), %xmm2    # 0xab9c0
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
leaq 0x1d8(%rsp), %rdi
callq 0x19130
jmp 0x44f89
leaq 0x318(%rsp), %rdi
leaq 0x1d8(%rsp), %rsi
movq %rsi, 0x60(%rsp)
callq 0x8510
movq 0x60(%rsp), %rdi
callq 0x8848
movq 0x3b0(%rsp), %rax
movq %rax, 0x68(%rsp)
leaq 0x1b8(%rsp), %rdi
leaq 0x340(%rsp), %rsi
callq 0x81a0
jmp 0x44fd1
leaq 0x198(%rsp), %rdi
leaq 0x318(%rsp), %rsi
callq 0x81a0
jmp 0x44fe8
movq 0x68(%rsp), %rdi
leaq 0x1b8(%rsp), %rsi
leaq 0x198(%rsp), %rdx
callq 0xa84d0
jmp 0x45004
leaq 0x198(%rsp), %rdi
callq 0x8848
leaq 0x1b8(%rsp), %rdi
callq 0x8848
leaq 0x672ad(%rip), %rsi     # 0xac2d2
leaq 0x340(%rsp), %rdi
callq 0x85c0
jmp 0x45034
movq 0xc0(%rsp), %rax
movq 0xe8(%rax), %xmm0
movaps 0x66965(%rip), %xmm1    # 0xab9b0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x66969(%rip), %xmm1    # 0xab9c0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, 0x50(%rsp)
callq 0x46500
movq %rax, 0x58(%rsp)
jmp 0x45078
movq 0x58(%rsp), %rdi
callq 0x46c50
movq %rax, 0x48(%rsp)
jmp 0x45089
movsd 0x50(%rsp), %xmm0
movq 0x48(%rsp), %rax
movq %rax, %xmm1
movaps 0x66910(%rip), %xmm2    # 0xab9b0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x66914(%rip), %xmm2    # 0xab9c0
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
leaq 0x178(%rsp), %rdi
callq 0x19130
jmp 0x450ce
leaq 0x318(%rsp), %rdi
leaq 0x178(%rsp), %rsi
movq %rsi, 0x38(%rsp)
callq 0x8510
movq 0x38(%rsp), %rdi
callq 0x8848
movq 0x3b0(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x158(%rsp), %rdi
leaq 0x340(%rsp), %rsi
callq 0x81a0
jmp 0x45116
leaq 0x138(%rsp), %rdi
leaq 0x318(%rsp), %rsi
callq 0x81a0
jmp 0x4512d
movq 0x40(%rsp), %rdi
leaq 0x158(%rsp), %rsi
leaq 0x138(%rsp), %rdx
callq 0xa84d0
jmp 0x45149
leaq 0x138(%rsp), %rdi
callq 0x8848
leaq 0x158(%rsp), %rdi
callq 0x8848
leaq 0x67193(%rip), %rsi     # 0xac2fd
leaq 0x340(%rsp), %rdi
callq 0x85c0
jmp 0x45179
callq 0x46500
movq %rax, 0x30(%rsp)
jmp 0x45185
movq 0x30(%rsp), %rdi
callq 0x46c50
movq %rax, 0x28(%rsp)
jmp 0x45196
movq 0x28(%rsp), %rax
movq 0xc0(%rsp), %rdx
movq 0xe0(%rdx), %rcx
movq 0xe8(%rdx), %rdx
subq %rdx, %rax
subq %rcx, %rax
movq %rax, %xmm0
movaps 0x667ed(%rip), %xmm1    # 0xab9b0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x667f1(%rip), %xmm1    # 0xab9c0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
callq 0x46500
movq %rax, 0x20(%rsp)
jmp 0x451f0
movq 0x20(%rsp), %rdi
callq 0x46c50
movq %rax, 0x10(%rsp)
jmp 0x45201
movsd 0x18(%rsp), %xmm0
movq 0x10(%rsp), %rax
movq %rax, %xmm1
movaps 0x66798(%rip), %xmm2    # 0xab9b0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x6679c(%rip), %xmm2    # 0xab9c0
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
leaq 0x118(%rsp), %rdi
callq 0x19130
jmp 0x45246
leaq 0x318(%rsp), %rdi
leaq 0x118(%rsp), %rsi
movq %rsi, (%rsp)
callq 0x8510
movq (%rsp), %rdi
callq 0x8848
movq 0x3b0(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0xf8(%rsp), %rdi
leaq 0x340(%rsp), %rsi
callq 0x81a0
jmp 0x4528c
leaq 0xd8(%rsp), %rdi
leaq 0x318(%rsp), %rsi
callq 0x81a0
jmp 0x452a3
movq 0x8(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
leaq 0xd8(%rsp), %rdx
callq 0xa84d0
jmp 0x452bf
leaq 0xd8(%rsp), %rdi
callq 0x8848
leaq 0xf8(%rsp), %rdi
callq 0x8848
movq 0x3b0(%rsp), %rdi
callq 0xa8370
jmp 0x452e8
leaq 0x318(%rsp), %rdi
callq 0x8848
leaq 0x340(%rsp), %rdi
callq 0x8848
leaq 0x390(%rsp), %rdi
callq 0x8848
addq $0x3c8, %rsp            # imm = 0x3C8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x455bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
leaq 0x370(%rsp), %rdi
callq 0x8848
jmp 0x455bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
leaq 0x33f(%rsp), %rdi
callq 0x84a0
jmp 0x455bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x455af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x45412
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x45405
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x453f8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
leaq 0x298(%rsp), %rdi
callq 0x8848
leaq 0x2f8(%rsp), %rdi
callq 0x8848
leaq 0x2d8(%rsp), %rdi
callq 0x8848
leaq 0x2b8(%rsp), %rdi
callq 0x8848
jmp 0x455af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x455a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x45474
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
leaq 0x258(%rsp), %rdi
callq 0x8848
leaq 0x278(%rsp), %rdi
callq 0x8848
jmp 0x455a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x454bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
leaq 0x1f8(%rsp), %rdi
callq 0x8848
leaq 0x218(%rsp), %rdi
callq 0x8848
jmp 0x455a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x45506
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
leaq 0x198(%rsp), %rdi
callq 0x8848
leaq 0x1b8(%rsp), %rdi
callq 0x8848
jmp 0x455a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x4554f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
leaq 0x138(%rsp), %rdi
callq 0x8848
leaq 0x158(%rsp), %rdi
callq 0x8848
jmp 0x455a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
jmp 0x45595
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x368(%rsp)
movl %eax, 0x364(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x8848
leaq 0xf8(%rsp), %rdi
callq 0x8848
leaq 0x318(%rsp), %rdi
callq 0x8848
leaq 0x340(%rsp), %rdi
callq 0x8848
leaq 0x390(%rsp), %rdi
callq 0x8848
movq 0x368(%rsp), %rdi
callq 0x8770
nopw %cs:(%rax,%rax)