// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]MQSim/src/exec/Host_Parameter_Set.cpp
// Function: Host_Parameter_Set::XML_serialize(Utils::XmlWriter&)
void Host_Parameter_Set::XML_serialize(Utils::XmlWriter& xmlwriter)
{
	std::string tmp;
	tmp = "Host_Parameter_Set";
	xmlwriter.Write_open_tag(tmp);

	std::string attr = "PCIe_Lane_Bandwidth";
	std::string val = std::to_string(PCIe_Lane_Bandwidth);
	xmlwriter.Write_attribute_string(attr, val);

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

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

	attr = "Enable_ResponseTime_Logging";
	val = (Enable_ResponseTime_Logging ? "true" : "false");
	xmlwriter.Write_attribute_string(attr, val);

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

	xmlwriter.Write_close_tag();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, %rbx
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq 0x42b96(%rip), %rcx     # 0x56b19
leaq 0x68(%rsp), %rdi
movl $0x12, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x7550
leaq 0x1d8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1c8(%rsp), %rdi
callq 0xb036
leaq 0x1c8(%rsp), %rsi
movq %rbx, %rdi
callq 0x54454
movq 0x1c8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13fdf
callq 0x7370
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x42e01(%rip), %rsi     # 0x56df0
leaq 0x42e0d(%rip), %rdx     # 0x56e03
leaq 0x8(%rsp), %rdi
callq 0xb0c6
movsd 0x5b490(%rip), %xmm0    # 0x6f498
movq 0x5af51(%rip), %rsi     # 0x6ef60
leaq 0x42911(%rip), %rcx     # 0x56927
leaq 0x28(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x1167d
leaq 0x1b8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a8(%rsp), %rdi
callq 0xb036
leaq 0x198(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x188(%rsp), %rdi
callq 0xb036
leaq 0x1a8(%rsp), %rsi
leaq 0x188(%rsp), %rdx
movq %rbx, %rdi
callq 0x5456c
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
je 0x1409d
callq 0x7370
movq 0x1a8(%rsp), %rdi
cmpq %r14, %rdi
je 0x140af
callq 0x7370
leaq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x42d45(%rip), %rcx     # 0x56e04
movl $0xf, %r8d
xorl %esi, %esi
callq 0x7550
movl 0x5b3ce(%rip), %ebp     # 0x6f4a0
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x14120
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x14119
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x1411e
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x14120
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x140e8
addl $-0x3, %eax
jmp 0x14120
addl $-0x2, %eax
jmp 0x14120
decl %eax
movl %eax, %esi
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x48(%rsp), %rdi
xorl %edx, %edx
callq 0x7420
leaq 0x48(%rsp), %r14
movq (%r14), %rdi
movl 0x8(%r14), %esi
movl %ebp, %edx
callq 0xafc9
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x7450
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x14164
callq 0x7370
leaq 0x178(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rdi
callq 0xb036
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
callq 0xb036
leaq 0x168(%rsp), %rsi
leaq 0x148(%rsp), %rdx
movq %rbx, %rdi
callq 0x5456c
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x141da
callq 0x7370
movq 0x168(%rsp), %rdi
cmpq %r14, %rdi
je 0x141ec
callq 0x7370
leaq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x42c18(%rip), %rcx     # 0x56e14
movl $0x15, %r8d
xorl %esi, %esi
callq 0x7550
movq 0x5b358(%rip), %r14     # 0x6f568
movl $0x1, %esi
cmpq $0xa, %r14
jb 0x1426a
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x14263
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x14268
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x1426a
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x1422d
addl $-0x3, %esi
jmp 0x1426a
addl $-0x2, %esi
jmp 0x1426a
decl %esi
movl %esi, %esi
leaq 0x48(%rsp), %rdi
movq %r13, (%rdi)
xorl %edx, %edx
callq 0x7420
leaq 0x48(%rsp), %r15
movq (%r15), %rdi
movl 0x8(%r15), %esi
movq %r14, %rdx
callq 0x11602
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x142a9
callq 0x7370
leaq 0x138(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x128(%rsp), %rdi
callq 0xb036
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0xb036
leaq 0x128(%rsp), %rsi
leaq 0x108(%rsp), %rdx
movq %rbx, %rdi
callq 0x5456c
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x1431f
callq 0x7370
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x14331
callq 0x7370
leaq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x42ae9(%rip), %rcx     # 0x56e2a
movl $0x1b, %r8d
xorl %esi, %esi
callq 0x7550
movzbl 0x5b21a(%rip), %r8d     # 0x6f570
leaq 0x41ddd(%rip), %rax     # 0x5613a
leaq 0x41ddb(%rip), %rcx     # 0x5613f
testq %r8, %r8
cmovneq %rax, %rcx
leaq 0x28(%rsp), %rdi
movq 0x8(%rdi), %rdx
xorq $0x5, %r8
xorl %esi, %esi
callq 0x7550
leaq 0xf8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0xb036
leaq 0xd8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0xb036
leaq 0xe8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
movq %rbx, %rdi
callq 0x5456c
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x143f5
callq 0x7370
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0x14407
callq 0x7370
leaq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x42a2f(%rip), %rcx     # 0x56e46
movl $0x22, %r8d
xorl %esi, %esi
callq 0x7550
movq 0x5b07d(%rip), %r14     # 0x6f4a8
movl $0x1, %esi
cmpq $0xa, %r14
jb 0x14485
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x1447e
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x14483
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x14485
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x14448
addl $-0x3, %esi
jmp 0x14485
addl $-0x2, %esi
jmp 0x14485
decl %esi
movl %esi, %esi
leaq 0x48(%rsp), %rdi
movq %r13, (%rdi)
xorl %edx, %edx
callq 0x7420
leaq 0x48(%rsp), %r15
movq (%r15), %rdi
movl 0x8(%r15), %esi
movq %r14, %rdx
callq 0x11602
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x144c4
callq 0x7370
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0xb036
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0xb036
leaq 0xa8(%rsp), %rsi
leaq 0x88(%rsp), %rdx
movq %rbx, %rdi
callq 0x5456c
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x1453a
callq 0x7370
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1454c
callq 0x7370
movq %rbx, %rdi
callq 0x547fc
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14567
callq 0x7370
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1457b
callq 0x7370
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x1458a
callq 0x7370
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x145b6
callq 0x7370
jmp 0x145b6
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
jmp 0x1465a
jmp 0x14684
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x145e2
callq 0x7370
jmp 0x145e2
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
jmp 0x1465a
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x14606
callq 0x7370
jmp 0x14606
movq %rax, %rbx
movq 0x128(%rsp), %rdi
jmp 0x1465a
jmp 0x14684
movq %rax, %rbx
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x1462c
callq 0x7370
jmp 0x1462c
movq %rax, %rbx
movq 0x168(%rsp), %rdi
jmp 0x1465a
jmp 0x14684
movq %rax, %rbx
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
je 0x14652
callq 0x7370
jmp 0x14652
movq %rax, %rbx
movq 0x1a8(%rsp), %rdi
cmpq %r14, %rdi
je 0x14687
callq 0x7370
jmp 0x14687
movq %rax, %rbx
jmp 0x1469a
jmp 0x1467f
movq %rax, %rbx
movq 0x1c8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x146a9
jmp 0x146ae
movq %rax, %rbx
jmp 0x146ae
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1469a
callq 0x7370
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x146ae
callq 0x7370
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x146bd
callq 0x7370
movq %rbx, %rdi
callq 0x7620
nop