// File: /workspace/github_cpp_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdx, %rbx
movq %rdi, %r14
leaq 0xe8(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0xd8(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0xaf32
leaq 0xc8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0xb8(%rsp), %rdi
callq 0xaf32
leaq 0x31019(%rip), %rsi     # 0x581da
leaq 0xb8(%rsp), %rdi
callq 0x7690
leaq 0xb8(%rsp), %rsi
movq %rbx, %rdi
callq 0x53f9c
movq 0xb8(%rsp), %rdi
cmpq %r12, %rdi
je 0x271f0
callq 0x7370
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x3140e(%rip), %rsi     # 0x5860e
leaq 0x31409(%rip), %rdx     # 0x58610
leaq 0x20(%rsp), %rdi
callq 0xafc8
movl 0x2c(%r14), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x27263
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x2725c
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x27261
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x27263
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x2722b
addl $-0x3, %eax
jmp 0x27263
addl $-0x2, %eax
jmp 0x27263
decl %eax
movl %eax, %esi
leaq 0x248(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x238(%rsp), %rdi
xorl %edx, %edx
callq 0x7420
leaq 0x238(%rsp), %r15
movq (%r15), %rdi
movl 0x8(%r15), %esi
movl %ebp, %edx
callq 0xaec5
leaq 0x333b9(%rip), %rcx     # 0x5a657
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73e0
leaq 0xa8(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x272e0
movq %rdx, 0x98(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa8(%rsp)
jmp 0x272e8
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x98(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x33349(%rip), %rsi     # 0x5a657
callq 0x7690
leaq 0x50(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2733d
movq %rsi, %r15
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x27348
movupd (%rcx), %xmm0
movq %rsi, %r15
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x30(%r14), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x273b2
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x273ab
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x273b0
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x273b2
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x2737a
addl $-0x3, %eax
jmp 0x273b2
addl $-0x2, %eax
jmp 0x273b2
decl %eax
movl %eax, %esi
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x78(%rsp), %rdi
xorl %edx, %edx
callq 0x7420
movq 0x78(%rsp), %rdi
movl 0x80(%rsp), %esi
movl %ebp, %edx
callq 0xaec5
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0x80(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
movq %r15, %rbp
cmpq %r15, %rcx
je 0x27407
movq 0x50(%rsp), %rdi
movq 0x78(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x27428
movl $0xf, %edi
cmpq %r13, %rsi
je 0x27423
movq 0x88(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x27434
leaq 0x40(%rsp), %rdi
callq 0x7130
jmp 0x27442
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73e0
leaq 0x10(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x27465
movq %rsi, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x2746d
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x27499
callq 0x7370
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x274a8
callq 0x7370
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x274c2
callq 0x7370
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x274d4
callq 0x7370
leaq 0x228(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x218(%rsp), %rdi
callq 0xaf32
leaq 0x208(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %rdi
callq 0xaf32
leaq 0x218(%rsp), %rsi
leaq 0x1f8(%rsp), %rdx
movq %rbx, %rdi
callq 0x54196
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x27549
callq 0x7370
movq 0x218(%rsp), %rdi
cmpq %r15, %rdi
je 0x2755b
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x30c7b(%rip), %rcx     # 0x581e6
movl $0x1d, %r8d
xorl %esi, %esi
callq 0x7550
movsd 0xd8(%r14), %xmm0
movapd %xmm0, 0x60(%rsp)
callq 0x28018
movq %rax, %rdi
callq 0x2841a
movapd 0x60(%rsp), %xmm1
unpcklps 0x3031f(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x30327(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq 0x302fe(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x30306(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x47977(%rip), %rsi     # 0x6ef58
leaq 0x2f33f(%rip), %rcx     # 0x56927
leaq 0x40(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x11567
movq %rsp, %rdi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x27616
callq 0x7370
leaq 0x1e8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1d8(%rsp), %rdi
callq 0xaf32
leaq 0x1c8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1b8(%rsp), %rdi
callq 0xaf32
leaq 0x1d8(%rsp), %rsi
leaq 0x1b8(%rsp), %rdx
movq %rbx, %rdi
callq 0x54196
movq 0x1b8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2768b
callq 0x7370
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2769d
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x30b57(%rip), %rcx     # 0x58204
movl $0x1c, %r8d
xorl %esi, %esi
callq 0x7550
movsd 0xe0(%r14), %xmm0
movapd %xmm0, 0x60(%rsp)
callq 0x28018
movq %rax, %rdi
callq 0x2841a
movapd 0x60(%rsp), %xmm1
unpcklps 0x301dd(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x301e5(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq 0x301bc(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x301c4(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x47835(%rip), %rsi     # 0x6ef58
leaq 0x2f1fd(%rip), %rcx     # 0x56927
leaq 0x40(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x11567
movq %rsp, %rdi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x27758
callq 0x7370
leaq 0x1a8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x198(%rsp), %rdi
callq 0xaf32
leaq 0x188(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x178(%rsp), %rdi
callq 0xaf32
leaq 0x198(%rsp), %rsi
leaq 0x178(%rsp), %rdx
movq %rbx, %rdi
callq 0x54196
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x277cd
callq 0x7370
movq 0x198(%rsp), %rdi
cmpq %r15, %rdi
je 0x277df
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x30a32(%rip), %rcx     # 0x58221
movl $0x2a, %r8d
xorl %esi, %esi
callq 0x7550
movsd 0xe8(%r14), %xmm0
movapd %xmm0, 0x60(%rsp)
callq 0x28018
movq %rax, %rdi
callq 0x2841a
movapd 0x60(%rsp), %xmm1
unpcklps 0x3009b(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x300a3(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq 0x3007a(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x30082(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x476f3(%rip), %rsi     # 0x6ef58
leaq 0x2f0bb(%rip), %rcx     # 0x56927
leaq 0x40(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x11567
movq %rsp, %rdi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x2789a
callq 0x7370
leaq 0x168(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0xaf32
leaq 0x148(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0xaf32
leaq 0x158(%rsp), %rsi
leaq 0x138(%rsp), %rdx
movq %rbx, %rdi
callq 0x54196
movq 0x138(%rsp), %rdi
cmpq %r13, %rdi
je 0x2790f
callq 0x7370
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x27921
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x3091b(%rip), %rcx     # 0x5824c
movl $0x15, %r8d
xorl %esi, %esi
callq 0x7550
callq 0x28018
movq %rax, %rdi
callq 0x2841a
movq %rax, %r15
movq 0xe8(%r14), %r13
addq 0xe0(%r14), %r13
callq 0x28018
movq %rax, %rdi
callq 0x2841a
subq %r13, %r15
movq %r15, %xmm1
punpckldq 0x2ff47(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2ff4f(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq 0x2ff26(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2ff2e(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x4759f(%rip), %rsi     # 0x6ef58
leaq 0x2ef67(%rip), %rcx     # 0x56927
leaq 0x40(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x11567
movq %rsp, %rdi
leaq 0x40(%rsp), %r14
movq %r14, %rsi
callq 0x7450
movq (%r14), %rdi
cmpq %rbp, %rdi
je 0x279ee
callq 0x7370
leaq 0x128(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x118(%rsp), %rdi
callq 0xaf32
leaq 0x108(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %rdi
callq 0xaf32
leaq 0x118(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
movq %rbx, %rdi
callq 0x54196
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x27a63
callq 0x7370
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
je 0x27a75
callq 0x7370
movq %rbx, %rdi
callq 0x5408c
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27a90
callq 0x7370
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x27aa4
callq 0x7370
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x27abe
callq 0x7370
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x27aea
callq 0x7370
jmp 0x27aea
movq %rax, %rbx
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
jne 0x27b97
jmp 0x27c28
movq %rax, %rbx
movq 0x138(%rsp), %rdi
cmpq %r13, %rdi
je 0x27b1a
callq 0x7370
jmp 0x27b1a
movq %rax, %rbx
movq 0x158(%rsp), %rdi
jmp 0x27b8e
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x27b3e
callq 0x7370
jmp 0x27b3e
movq %rax, %rbx
movq 0x198(%rsp), %rdi
jmp 0x27b8e
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
cmpq %r13, %rdi
je 0x27b62
callq 0x7370
jmp 0x27b62
movq %rax, %rbx
movq 0x1d8(%rsp), %rdi
jmp 0x27b8e
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x27b86
callq 0x7370
jmp 0x27b86
movq %rax, %rbx
movq 0x218(%rsp), %rdi
cmpq %r15, %rdi
je 0x27c28
callq 0x7370
jmp 0x27c28
movq %rbp, %r15
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x27bbb
callq 0x7370
jmp 0x27bbb
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x27bcf
callq 0x7370
jmp 0x27bcf
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x27bee
callq 0x7370
jmp 0x27bee
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
jne 0x27c36
jmp 0x27c3b
movq %rax, %rbx
jmp 0x27c3b
jmp 0x27c18
jmp 0x27c06
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x27c4a
jmp 0x27c4f
movq %rax, %rbx
jmp 0x27c4f
jmp 0x27c25
jmp 0x27c25
jmp 0x27c25
jmp 0x27c25
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27c3b
callq 0x7370
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x27c4f
callq 0x7370
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x27c69
callq 0x7370
movq %rbx, %rdi
callq 0x7620