// File: /workspace/github_cpp_makefile_star2_O1/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 0x40597(%rip), %rsi     # 0x5702e
leaq 0x4059e(%rip), %rdx     # 0x5703c
leaq 0x20(%rsp), %rdi
callq 0xb0c6
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl 0x10(%r14), %eax
cmpq $0x4, %rax
jae 0x16aeb
leaq 0x40a03(%rip), %rdx     # 0x574d0
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0x40a65(%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 0xb036
leaq 0x1f8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1e8(%rsp), %rdi
callq 0xb036
leaq 0x208(%rsp), %rsi
leaq 0x1e8(%rsp), %rdx
movq %r12, %rdi
callq 0x5456c
movq 0x1e8(%rsp), %rdi
cmpq %r15, %rdi
je 0x16b60
callq 0x7370
movq 0x208(%rsp), %rdi
cmpq %rbx, %rdi
je 0x16b72
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x404d2(%rip), %rcx     # 0x57054
movl $0x1e, %r8d
xorl %esi, %esi
callq 0x7550
movl 0x8(%r14), %eax
cmpq $0x4, %rax
jae 0x16bc0
leaq 0x40940(%rip), %rdx     # 0x574e0
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0x409b2(%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 0xb036
leaq 0x1b8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a8(%rsp), %rdi
callq 0xb036
leaq 0x1c8(%rsp), %rsi
leaq 0x1a8(%rsp), %rdx
movq %r12, %rdi
callq 0x5456c
movq 0x1a8(%rsp), %rdi
cmpq %r15, %rdi
je 0x16c35
callq 0x7370
movq 0x1c8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x16c47
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x40444(%rip), %rcx     # 0x5709b
movl $0xb, %r8d
xorl %esi, %esi
callq 0x7550
movq %rsp, %rdi
movq 0x8(%rdi), %rdx
leaq 0x40d69(%rip), %rcx     # 0x579db
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
movq %r12, 0x60(%rsp)
cmpl $0x0, 0x3c(%r14)
leaq 0x50(%rsp), %rbx
jle 0x16d56
xorl %r13d, %r13d
movq %rsp, %r12
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
testq %r13, %r13
je 0x16cb1
movq %r12, %rdi
leaq 0x403fb(%rip), %rsi     # 0x570a7
callq 0x7690
movq 0x18(%r14), %rax
movl (%rax,%r13,4), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x16d02
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x16cfb
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x16d00
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x16d02
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16cca
addl $-0x3, %eax
jmp 0x16d02
addl $-0x2, %eax
jmp 0x16d02
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 0xafc9
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r12, %rdi
callq 0x7130
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x16d46
callq 0x7370
incq %r13
movslq 0x3c(%r14), %rax
cmpq %rax, %r13
jl 0x16c9d
leaq 0x198(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x188(%rsp), %rdi
callq 0xb036
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 0xb036
leaq 0x188(%rsp), %rsi
leaq 0x168(%rsp), %rdx
movq %r13, %rdi
callq 0x5456c
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x16dd1
callq 0x7370
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
je 0x16de3
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x402b6(%rip), %rcx     # 0x570a9
movl $0x8, %r8d
xorl %esi, %esi
callq 0x7550
movq %rsp, %rdi
movq 0x8(%rdi), %rdx
leaq 0x40bcd(%rip), %rcx     # 0x579db
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
cmpl $0x0, 0x40(%r14)
jle 0x16ee8
xorl %r13d, %r13d
movq %rsp, %r12
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
testq %r13, %r13
je 0x16e43
movq %r12, %rdi
leaq 0x40269(%rip), %rsi     # 0x570a7
callq 0x7690
movq 0x20(%r14), %rax
movl (%rax,%r13,4), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x16e94
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x16e8d
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x16e92
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x16e94
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16e5c
addl $-0x3, %eax
jmp 0x16e94
addl $-0x2, %eax
jmp 0x16e94
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 0xafc9
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r12, %rdi
callq 0x7130
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x16ed8
callq 0x7370
incq %r13
movslq 0x40(%r14), %rax
cmpq %rax, %r13
jl 0x16e2f
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
callq 0xb036
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 0xb036
leaq 0x148(%rsp), %rsi
leaq 0x128(%rsp), %rdx
movq %r13, %rdi
callq 0x5456c
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x16f63
callq 0x7370
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x16f75
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x4012d(%rip), %rcx     # 0x570b2
movl $0x7, %r8d
xorl %esi, %esi
callq 0x7550
movq %rsp, %rdi
movq 0x8(%rdi), %rdx
leaq 0x40a3b(%rip), %rcx     # 0x579db
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
cmpl $0x0, 0x44(%r14)
jle 0x1707a
xorl %r13d, %r13d
movq %rsp, %r12
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
testq %r13, %r13
je 0x16fd5
movq %r12, %rdi
leaq 0x400d7(%rip), %rsi     # 0x570a7
callq 0x7690
movq 0x28(%r14), %rax
movl (%rax,%r13,4), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x17026
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x1701f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x17024
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x17026
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x16fee
addl $-0x3, %eax
jmp 0x17026
addl $-0x2, %eax
jmp 0x17026
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 0xafc9
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r12, %rdi
callq 0x7130
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1706a
callq 0x7370
incq %r13
movslq 0x44(%r14), %rax
cmpq %rax, %r13
jl 0x16fc1
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0xb036
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 0xb036
leaq 0x108(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
movq %r13, %rdi
callq 0x5456c
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x170f5
callq 0x7370
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x17107
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x3ffa3(%rip), %rcx     # 0x570ba
movl $0x9, %r8d
xorl %esi, %esi
callq 0x7550
movq %rsp, %rdi
movq 0x8(%rdi), %rdx
leaq 0x408a9(%rip), %rcx     # 0x579db
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
cmpl $0x0, 0x48(%r14)
jle 0x1720c
xorl %r13d, %r13d
movq %rsp, %r12
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
testq %r13, %r13
je 0x17167
movq %r12, %rdi
leaq 0x3ff45(%rip), %rsi     # 0x570a7
callq 0x7690
movq 0x30(%r14), %rax
movl (%rax,%r13,4), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x171b8
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x171b1
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x171b6
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x171b8
movl %ecx, %edx
imulq %r15, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x17180
addl $-0x3, %eax
jmp 0x171b8
addl $-0x2, %eax
jmp 0x171b8
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 0xafc9
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r12, %rdi
callq 0x7130
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x171fc
callq 0x7370
incq %r13
movslq 0x48(%r14), %rax
cmpq %rax, %r13
jl 0x17153
leaq 0xd8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0xb036
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 0xb036
leaq 0xc8(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
movq %r13, %rdi
callq 0x5456c
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x17287
callq 0x7370
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x17299
callq 0x7370
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x3fe1b(%rip), %rcx     # 0x570c4
movl $0x1c, %r8d
xorl %esi, %esi
callq 0x7550
movl 0x38(%r14), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x17308
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x17301
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x17306
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x17308
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x172d0
addl $-0x3, %eax
jmp 0x17308
addl $-0x2, %eax
jmp 0x17308
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 0xafc9
movq %rsp, %rdi
movq %r14, %rsi
callq 0x7450
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0x17344
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 0xb036
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0xb036
leaq 0x88(%rsp), %rsi
leaq 0x68(%rsp), %rdx
movq %r13, %rdi
callq 0x5456c
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x173ad
callq 0x7370
movq 0x88(%rsp), %rdi
cmpq %rbx, %rdi
leaq 0x10(%rsp), %rbx
je 0x173c4
callq 0x7370
movq (%rsp), %rdi
cmpq %rbx, %rdi
leaq 0x30(%rsp), %rbx
je 0x173d7
callq 0x7370
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x173e6
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 0x1740f
callq 0x7370
jmp 0x1740f
movq %rax, %r14
movq 0x88(%rsp), %rdi
jmp 0x17521
jmp 0x17514
movq %rax, %r14
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1743b
callq 0x7370
jmp 0x1743b
movq %rax, %r14
movq 0xc8(%rsp), %rdi
jmp 0x174af
movq %rax, %r14
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1745f
callq 0x7370
jmp 0x1745f
movq %rax, %r14
movq 0x108(%rsp), %rdi
jmp 0x174af
movq %rax, %r14
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x17483
callq 0x7370
jmp 0x17483
movq %rax, %r14
movq 0x148(%rsp), %rdi
jmp 0x174af
movq %rax, %r14
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x174a7
callq 0x7370
jmp 0x174a7
movq %rax, %r14
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
jne 0x17526
jmp 0x1752b
movq %rax, %r14
movq 0x1a8(%rsp), %rdi
cmpq %r15, %rdi
je 0x174d0
callq 0x7370
jmp 0x174d0
movq %rax, %r14
movq 0x1c8(%rsp), %rdi
jmp 0x17521
movq %rax, %r14
movq 0x1e8(%rsp), %rdi
cmpq %r15, %rdi
je 0x174f4
callq 0x7370
jmp 0x174f4
movq %rax, %r14
movq 0x208(%rsp), %rdi
jmp 0x17521
jmp 0x17514
jmp 0x17514
jmp 0x17514
jmp 0x17514
jmp 0x17514
jmp 0x17514
jmp 0x17519
jmp 0x17514
jmp 0x17519
jmp 0x17514
jmp 0x17519
movq %rax, %r14
jmp 0x1752b
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1752b
callq 0x7370
leaq 0x30(%rsp), %rbx
leaq 0x10(%rsp), %rax
movq (%rsp), %rdi
cmpq %rax, %rdi
je 0x17543
callq 0x7370
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x17552
callq 0x7370
movq %r14, %rdi
callq 0x7620