// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/exec/IO_Flow_Parameter_Set.cpp
// Function: IO_Flow_Parameter_Set::XML_serialize(Utils::XmlWriter&)
void IO_Flow_Parameter_Set::XML_serialize(Utils::XmlWriter& xmlwriter)
{
	std::string attr = "Priority_Class";
	std::string val;
	switch (Priority_Class) {
		case IO_Flow_Priority_Class::URGENT:
			val = "URGENT";
			break;
		case IO_Flow_Priority_Class::HIGH:
			val = "HIGH";
			break;
		case IO_Flow_Priority_Class::MEDIUM:
			val = "MEDIUM";
			break;
		case IO_Flow_Priority_Class::LOW:
			val = "LOW";
			break;
		default:
			break;
	}
	xmlwriter.Write_attribute_string(attr, val);


	attr = "Device_Level_Data_Caching_Mode";
	switch (Device_Level_Data_Caching_Mode) {
		case SSD_Components::Caching_Mode::TURNED_OFF:
			val = "TURNED_OFF";
			break;
		case SSD_Components::Caching_Mode::READ_CACHE:
			val = "READ_CACHE";
			break;
		case SSD_Components::Caching_Mode::WRITE_CACHE:
			val = "WRITE_CACHE";
			break;
		case SSD_Components::Caching_Mode::WRITE_READ_CACHE:
			val = "WRITE_READ_CACHE";
			break;
	}
	xmlwriter.Write_attribute_string(attr, val);

	attr = "Channel_IDs";
	val = "";
	for (int i = 0; i < Channel_No; i++) {
		if (i > 0) {
			val += ",";
		}
		val += std::to_string(Channel_IDs[i]);
	}
	xmlwriter.Write_attribute_string(attr, val);

	attr = "Chip_IDs";
	val = "";
	for (int i = 0; i < Chip_No; i++) {
		if (i > 0) {
			val += ",";
		}
		val += std::to_string(Chip_IDs[i]);
	}
	xmlwriter.Write_attribute_string(attr, val);

	attr = "Die_IDs";
	val = "";
	for (int i = 0; i < Die_No; i++) {
		if (i > 0) {
			val += ",";
		}
		val += std::to_string(Die_IDs[i]);
	}
	xmlwriter.Write_attribute_string(attr, val);

	attr = "Plane_IDs";
	val = "";
	for (int i = 0; i < Plane_No; i++) {
		if (i > 0) {
			val += ",";
		}
		val += std::to_string(Plane_IDs[i]);
	}
	xmlwriter.Write_attribute_string(attr, val);

	attr = "Initial_Occupancy_Percentage";
	val = std::to_string(Initial_Occupancy_Percentage);
	xmlwriter.Write_attribute_string(attr, val);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rsi, %r12
movq %rdi, %r14
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x40693(%rip), %rsi     # 0x5702e
leaq 0x4069a(%rip), %rdx     # 0x5703c
leaq 0x20(%rsp), %rdi
callq 0xafc8
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl 0x10(%r14), %eax
cmpq $0x4, %rax
jae 0x169ef
leaq 0x40aff(%rip), %rdx     # 0x574d0
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0x40b61(%rip), %rdx     # 0x57540
movq (%rdx,%rax,8), %r8
movq %rsp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7550
leaq 0x218(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x208(%rsp), %rdi
callq 0xaf32
leaq 0x1f8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1e8(%rsp), %rdi
callq 0xaf32
leaq 0x208(%rsp), %rsi
leaq 0x1e8(%rsp), %rdx
movq %r12, %rdi
callq 0x53c10
movq 0x1e8(%rsp), %rdi
cmpq %r15, %rdi
je 0x16a64
callq 0x7370
movq 0x208(%rsp), %rdi
cmpq %rbx, %rdi
je 0x16a76
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x405ce(%rip), %rcx     # 0x57054
movl $0x1e, %r8d
xorl %esi, %esi
callq 0x7550
movl 0x8(%r14), %eax
cmpq $0x4, %rax
jae 0x16ac4
leaq 0x40a3c(%rip), %rdx     # 0x574e0
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0x40aae(%rip), %rdx     # 0x57560
movq (%rdx,%rax,8), %r8
movq %rsp, %rdi
movq 0x8(%rdi), %rdx
xorl %esi, %esi
callq 0x7550
leaq 0x1d8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1c8(%rsp), %rdi
callq 0xaf32
leaq 0x1b8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a8(%rsp), %rdi
callq 0xaf32
leaq 0x1c8(%rsp), %rsi
leaq 0x1a8(%rsp), %rdx
movq %r12, %rdi
callq 0x53c10
movq 0x1a8(%rsp), %rdi
cmpq %r15, %rdi
je 0x16b39
callq 0x7370
movq 0x1c8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x16b4b
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x40540(%rip), %rcx     # 0x5709b
movl $0xb, %r8d
xorl %esi, %esi
callq 0x7550
movq %rsp, %rdi
movq 0x8(%rdi), %rdx
leaq 0x40e65(%rip), %rcx     # 0x579db
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
movq %r12, 0x60(%rsp)
cmpl $0x0, 0x3c(%r14)
leaq 0x50(%rsp), %rbx
jle 0x16c5a
xorl %r13d, %r13d
movq %rsp, %r12
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
testq %r13, %r13
je 0x16bb5
movq %r12, %rdi
leaq 0x404f7(%rip), %rsi     # 0x570a7
callq 0x7690
movq 0x18(%r14), %rax
movl (%rax,%r13,4), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x16c06
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x16bff
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x16c04
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x16c06
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16bce
addl $-0x3, %eax
jmp 0x16c06
addl $-0x2, %eax
jmp 0x16c06
decl %eax
movl %eax, %esi
movq %rbx, 0x40(%rsp)
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
callq 0x7420
movq 0x40(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %ebp, %edx
callq 0xaec5
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r12, %rdi
callq 0x7130
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x16c4a
callq 0x7370
incq %r13
movslq 0x3c(%r14), %rax
cmpq %rax, %r13
jl 0x16ba1
leaq 0x198(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x188(%rsp), %rdi
callq 0xaf32
movq 0x60(%rsp), %r13
leaq 0x178(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rdi
callq 0xaf32
leaq 0x188(%rsp), %rsi
leaq 0x168(%rsp), %rdx
movq %r13, %rdi
callq 0x53c10
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x16cd5
callq 0x7370
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
je 0x16ce7
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x403b2(%rip), %rcx     # 0x570a9
movl $0x8, %r8d
xorl %esi, %esi
callq 0x7550
movq %rsp, %rdi
movq 0x8(%rdi), %rdx
leaq 0x40cc9(%rip), %rcx     # 0x579db
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
cmpl $0x0, 0x40(%r14)
jle 0x16dec
xorl %r13d, %r13d
movq %rsp, %r12
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
testq %r13, %r13
je 0x16d47
movq %r12, %rdi
leaq 0x40365(%rip), %rsi     # 0x570a7
callq 0x7690
movq 0x20(%r14), %rax
movl (%rax,%r13,4), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x16d98
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x16d91
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x16d96
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x16d98
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16d60
addl $-0x3, %eax
jmp 0x16d98
addl $-0x2, %eax
jmp 0x16d98
decl %eax
movl %eax, %esi
movq %rbx, 0x40(%rsp)
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
callq 0x7420
movq 0x40(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %ebp, %edx
callq 0xaec5
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r12, %rdi
callq 0x7130
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x16ddc
callq 0x7370
incq %r13
movslq 0x40(%r14), %rax
cmpq %rax, %r13
jl 0x16d33
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
callq 0xaf32
movq 0x60(%rsp), %r13
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x128(%rsp), %rdi
callq 0xaf32
leaq 0x148(%rsp), %rsi
leaq 0x128(%rsp), %rdx
movq %r13, %rdi
callq 0x53c10
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x16e67
callq 0x7370
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x16e79
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x40229(%rip), %rcx     # 0x570b2
movl $0x7, %r8d
xorl %esi, %esi
callq 0x7550
movq %rsp, %rdi
movq 0x8(%rdi), %rdx
leaq 0x40b37(%rip), %rcx     # 0x579db
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
cmpl $0x0, 0x44(%r14)
jle 0x16f7e
xorl %r13d, %r13d
movq %rsp, %r12
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
testq %r13, %r13
je 0x16ed9
movq %r12, %rdi
leaq 0x401d3(%rip), %rsi     # 0x570a7
callq 0x7690
movq 0x28(%r14), %rax
movl (%rax,%r13,4), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x16f2a
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x16f23
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x16f28
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x16f2a
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16ef2
addl $-0x3, %eax
jmp 0x16f2a
addl $-0x2, %eax
jmp 0x16f2a
decl %eax
movl %eax, %esi
movq %rbx, 0x40(%rsp)
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
callq 0x7420
movq 0x40(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %ebp, %edx
callq 0xaec5
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r12, %rdi
callq 0x7130
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x16f6e
callq 0x7370
incq %r13
movslq 0x44(%r14), %rax
cmpq %rax, %r13
jl 0x16ec5
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0xaf32
movq 0x60(%rsp), %r13
leaq 0xf8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0xaf32
leaq 0x108(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
movq %r13, %rdi
callq 0x53c10
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x16ff9
callq 0x7370
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x1700b
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x4009f(%rip), %rcx     # 0x570ba
movl $0x9, %r8d
xorl %esi, %esi
callq 0x7550
movq %rsp, %rdi
movq 0x8(%rdi), %rdx
leaq 0x409a5(%rip), %rcx     # 0x579db
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
cmpl $0x0, 0x48(%r14)
jle 0x17110
xorl %r13d, %r13d
movq %rsp, %r12
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
testq %r13, %r13
je 0x1706b
movq %r12, %rdi
leaq 0x40041(%rip), %rsi     # 0x570a7
callq 0x7690
movq 0x30(%r14), %rax
movl (%rax,%r13,4), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x170bc
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x170b5
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x170ba
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x170bc
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x17084
addl $-0x3, %eax
jmp 0x170bc
addl $-0x2, %eax
jmp 0x170bc
decl %eax
movl %eax, %esi
movq %rbx, 0x40(%rsp)
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
callq 0x7420
movq 0x40(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %ebp, %edx
callq 0xaec5
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r12, %rdi
callq 0x7130
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x17100
callq 0x7370
incq %r13
movslq 0x48(%r14), %rax
cmpq %rax, %r13
jl 0x17057
leaq 0xd8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0xaf32
movq 0x60(%rsp), %r13
leaq 0xb8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0xaf32
leaq 0xc8(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
movq %r13, %rdi
callq 0x53c10
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1718b
callq 0x7370
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1719d
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x3ff17(%rip), %rcx     # 0x570c4
movl $0x1c, %r8d
xorl %esi, %esi
callq 0x7550
movl 0x38(%r14), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x1720c
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x17205
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x1720a
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x1720c
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x171d4
addl $-0x3, %eax
jmp 0x1720c
addl $-0x2, %eax
jmp 0x1720c
decl %eax
movl %eax, %esi
leaq 0x40(%rsp), %rdi
movq %rbx, (%rdi)
xorl %edx, %edx
callq 0x7420
leaq 0x40(%rsp), %r14
movq (%r14), %rdi
movl 0x8(%r14), %esi
movl %ebp, %edx
callq 0xaec5
movq %rsp, %rdi
movq %r14, %rsi
callq 0x7450
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0x17248
callq 0x7370
leaq 0x98(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0xaf32
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0xaf32
leaq 0x88(%rsp), %rsi
leaq 0x68(%rsp), %rdx
movq %r13, %rdi
callq 0x53c10
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x172b1
callq 0x7370
movq 0x88(%rsp), %rdi
cmpq %rbx, %rdi
leaq 0x10(%rsp), %rbx
je 0x172c8
callq 0x7370
movq (%rsp), %rdi
cmpq %rbx, %rdi
leaq 0x30(%rsp), %rbx
je 0x172db
callq 0x7370
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x172ea
callq 0x7370
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x17313
callq 0x7370
jmp 0x17313
movq %rax, %r14
movq 0x88(%rsp), %rdi
jmp 0x17425
jmp 0x17418
movq %rax, %r14
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1733f
callq 0x7370
jmp 0x1733f
movq %rax, %r14
movq 0xc8(%rsp), %rdi
jmp 0x173b3
movq %rax, %r14
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x17363
callq 0x7370
jmp 0x17363
movq %rax, %r14
movq 0x108(%rsp), %rdi
jmp 0x173b3
movq %rax, %r14
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x17387
callq 0x7370
jmp 0x17387
movq %rax, %r14
movq 0x148(%rsp), %rdi
jmp 0x173b3
movq %rax, %r14
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x173ab
callq 0x7370
jmp 0x173ab
movq %rax, %r14
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
jne 0x1742a
jmp 0x1742f
movq %rax, %r14
movq 0x1a8(%rsp), %rdi
cmpq %r15, %rdi
je 0x173d4
callq 0x7370
jmp 0x173d4
movq %rax, %r14
movq 0x1c8(%rsp), %rdi
jmp 0x17425
movq %rax, %r14
movq 0x1e8(%rsp), %rdi
cmpq %r15, %rdi
je 0x173f8
callq 0x7370
jmp 0x173f8
movq %rax, %r14
movq 0x208(%rsp), %rdi
jmp 0x17425
jmp 0x17418
jmp 0x17418
jmp 0x17418
jmp 0x17418
jmp 0x17418
jmp 0x17418
jmp 0x1741d
jmp 0x17418
jmp 0x1741d
jmp 0x17418
jmp 0x1741d
movq %rax, %r14
jmp 0x1742f
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1742f
callq 0x7370
leaq 0x30(%rsp), %rbx
leaq 0x10(%rsp), %rax
movq (%rsp), %rdi
cmpq %rax, %rdi
je 0x17447
callq 0x7370
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x17456
callq 0x7370
movq %r14, %rdi
callq 0x7620