// File: /workspace/github_cpp_makefile_star2_O1/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 0xb036
leaq 0xc8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0xb8(%rsp), %rdi
callq 0xb036
leaq 0x30e81(%rip), %rsi     # 0x581da
leaq 0xb8(%rsp), %rdi
callq 0x7690
leaq 0xb8(%rsp), %rsi
movq %rbx, %rdi
callq 0x548fe
movq 0xb8(%rsp), %rdi
cmpq %r12, %rdi
je 0x27388
callq 0x7370
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x31276(%rip), %rsi     # 0x5860e
leaq 0x31271(%rip), %rdx     # 0x58610
leaq 0x20(%rsp), %rdi
callq 0xb0c6
movl 0x2c(%r14), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x273fb
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x273f4
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x273f9
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x273fb
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x273c3
addl $-0x3, %eax
jmp 0x273fb
addl $-0x2, %eax
jmp 0x273fb
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 0xafc9
leaq 0x33221(%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 0x27478
movq %rdx, 0x98(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa8(%rsp)
jmp 0x27480
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 0x331b1(%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 0x274d5
movq %rsi, %r15
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x274e0
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 0x2754a
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x27543
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x27548
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x2754a
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x27512
addl $-0x3, %eax
jmp 0x2754a
addl $-0x2, %eax
jmp 0x2754a
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 0xafc9
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0x80(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
movq %r15, %rbp
cmpq %r15, %rcx
je 0x2759f
movq 0x50(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x275bd
movl $0xf, %esi
cmpq %r13, 0x78(%rsp)
je 0x275b8
movq 0x88(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x275ce
movq 0x78(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x7130
jmp 0x275dc
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 0x275ff
movq %rsi, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x27607
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 0x27633
callq 0x7370
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x27642
callq 0x7370
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x2765c
callq 0x7370
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x2766e
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 0xb036
leaq 0x208(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %rdi
callq 0xb036
leaq 0x218(%rsp), %rsi
leaq 0x1f8(%rsp), %rdx
movq %rbx, %rdi
callq 0x54af8
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x276e3
callq 0x7370
movq 0x218(%rsp), %rdi
cmpq %r15, %rdi
je 0x276f5
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x30ae1(%rip), %rcx     # 0x581e6
movl $0x1d, %r8d
xorl %esi, %esi
callq 0x7550
movsd 0xd8(%r14), %xmm0
movapd %xmm0, 0x60(%rsp)
callq 0x281b4
movq %rax, %rdi
callq 0x285a6
movapd 0x60(%rsp), %xmm1
unpcklps 0x30185(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x3018d(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq 0x30164(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x3016c(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x477e5(%rip), %rsi     # 0x6ef60
leaq 0x2f1a5(%rip), %rcx     # 0x56927
leaq 0x40(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x1167d
movq %rsp, %rdi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x277b0
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 0xb036
leaq 0x1c8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1b8(%rsp), %rdi
callq 0xb036
leaq 0x1d8(%rsp), %rsi
leaq 0x1b8(%rsp), %rdx
movq %rbx, %rdi
callq 0x54af8
movq 0x1b8(%rsp), %rdi
cmpq %r13, %rdi
je 0x27825
callq 0x7370
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x27837
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x309bd(%rip), %rcx     # 0x58204
movl $0x1c, %r8d
xorl %esi, %esi
callq 0x7550
movsd 0xe0(%r14), %xmm0
movapd %xmm0, 0x60(%rsp)
callq 0x281b4
movq %rax, %rdi
callq 0x285a6
movapd 0x60(%rsp), %xmm1
unpcklps 0x30043(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x3004b(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq 0x30022(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x3002a(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x476a3(%rip), %rsi     # 0x6ef60
leaq 0x2f063(%rip), %rcx     # 0x56927
leaq 0x40(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x1167d
movq %rsp, %rdi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x278f2
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 0xb036
leaq 0x188(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x178(%rsp), %rdi
callq 0xb036
leaq 0x198(%rsp), %rsi
leaq 0x178(%rsp), %rdx
movq %rbx, %rdi
callq 0x54af8
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x27967
callq 0x7370
movq 0x198(%rsp), %rdi
cmpq %r15, %rdi
je 0x27979
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x30898(%rip), %rcx     # 0x58221
movl $0x2a, %r8d
xorl %esi, %esi
callq 0x7550
movsd 0xe8(%r14), %xmm0
movapd %xmm0, 0x60(%rsp)
callq 0x281b4
movq %rax, %rdi
callq 0x285a6
movapd 0x60(%rsp), %xmm1
unpcklps 0x2ff01(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2ff09(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq 0x2fee0(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2fee8(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x47561(%rip), %rsi     # 0x6ef60
leaq 0x2ef21(%rip), %rcx     # 0x56927
leaq 0x40(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x1167d
movq %rsp, %rdi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x27a34
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 0xb036
leaq 0x148(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0xb036
leaq 0x158(%rsp), %rsi
leaq 0x138(%rsp), %rdx
movq %rbx, %rdi
callq 0x54af8
movq 0x138(%rsp), %rdi
cmpq %r13, %rdi
je 0x27aa9
callq 0x7370
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x27abb
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x30781(%rip), %rcx     # 0x5824c
movl $0x15, %r8d
xorl %esi, %esi
callq 0x7550
callq 0x281b4
movq %rax, %rdi
callq 0x285a6
movq %rax, %r15
movq 0xe8(%r14), %r13
addq 0xe0(%r14), %r13
callq 0x281b4
movq %rax, %rdi
callq 0x285a6
subq %r13, %r15
movq %r15, %xmm1
punpckldq 0x2fdad(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2fdb5(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rax, %xmm1
punpckldq 0x2fd8c(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2fd94(%rip), %xmm1    # 0x578d0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x4740d(%rip), %rsi     # 0x6ef60
leaq 0x2edcd(%rip), %rcx     # 0x56927
leaq 0x40(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x1167d
movq %rsp, %rdi
leaq 0x40(%rsp), %r14
movq %r14, %rsi
callq 0x7450
movq (%r14), %rdi
cmpq %rbp, %rdi
je 0x27b88
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 0xb036
leaq 0x108(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %rdi
callq 0xb036
leaq 0x118(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
movq %rbx, %rdi
callq 0x54af8
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x27bfd
callq 0x7370
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
je 0x27c0f
callq 0x7370
movq %rbx, %rdi
callq 0x549ee
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27c2a
callq 0x7370
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x27c3e
callq 0x7370
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x27c58
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 0x27c84
callq 0x7370
jmp 0x27c84
movq %rax, %rbx
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
jne 0x27d31
jmp 0x27dc2
movq %rax, %rbx
movq 0x138(%rsp), %rdi
cmpq %r13, %rdi
je 0x27cb4
callq 0x7370
jmp 0x27cb4
movq %rax, %rbx
movq 0x158(%rsp), %rdi
jmp 0x27d28
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x27cd8
callq 0x7370
jmp 0x27cd8
movq %rax, %rbx
movq 0x198(%rsp), %rdi
jmp 0x27d28
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
cmpq %r13, %rdi
je 0x27cfc
callq 0x7370
jmp 0x27cfc
movq %rax, %rbx
movq 0x1d8(%rsp), %rdi
jmp 0x27d28
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x27d20
callq 0x7370
jmp 0x27d20
movq %rax, %rbx
movq 0x218(%rsp), %rdi
cmpq %r15, %rdi
je 0x27dc2
callq 0x7370
jmp 0x27dc2
movq %rbp, %r15
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x27d55
callq 0x7370
jmp 0x27d55
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x27d69
callq 0x7370
jmp 0x27d69
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x27d88
callq 0x7370
jmp 0x27d88
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
jne 0x27dd0
jmp 0x27dd5
movq %rax, %rbx
jmp 0x27dd5
jmp 0x27db2
jmp 0x27da0
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x27de4
jmp 0x27de9
movq %rax, %rbx
jmp 0x27de9
jmp 0x27dbf
jmp 0x27dbf
jmp 0x27dbf
jmp 0x27dbf
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27dd5
callq 0x7370
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x27de9
callq 0x7370
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x27e03
callq 0x7370
movq %rbx, %rdi
callq 0x7620