// File: /workspace/github_cpp_makefile_star2_O3/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 0x42c8a(%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 0xaf32
leaq 0x1c8(%rsp), %rsi
movq %rbx, %rdi
callq 0x53af8
movq 0x1c8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13eeb
callq 0x7370
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x42ef5(%rip), %rsi     # 0x56df0
leaq 0x42f01(%rip), %rdx     # 0x56e03
leaq 0x8(%rsp), %rdi
callq 0xafc8
movsd 0x5b584(%rip), %xmm0    # 0x6f498
movq 0x5b03d(%rip), %rsi     # 0x6ef58
leaq 0x42a05(%rip), %rcx     # 0x56927
leaq 0x28(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x11567
leaq 0x1b8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a8(%rsp), %rdi
callq 0xaf32
leaq 0x198(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x188(%rsp), %rdi
callq 0xaf32
leaq 0x1a8(%rsp), %rsi
leaq 0x188(%rsp), %rdx
movq %rbx, %rdi
callq 0x53c10
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
je 0x13fa9
callq 0x7370
movq 0x1a8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13fbb
callq 0x7370
leaq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x42e39(%rip), %rcx     # 0x56e04
movl $0xf, %r8d
xorl %esi, %esi
callq 0x7550
movl 0x5b4c2(%rip), %ebp     # 0x6f4a0
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x1402c
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x14025
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x1402a
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x1402c
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x13ff4
addl $-0x3, %eax
jmp 0x1402c
addl $-0x2, %eax
jmp 0x1402c
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 0xaec5
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x7450
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x14070
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 0xaf32
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
callq 0xaf32
leaq 0x168(%rsp), %rsi
leaq 0x148(%rsp), %rdx
movq %rbx, %rdi
callq 0x53c10
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x140e6
callq 0x7370
movq 0x168(%rsp), %rdi
cmpq %r14, %rdi
je 0x140f8
callq 0x7370
leaq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x42d0c(%rip), %rcx     # 0x56e14
movl $0x15, %r8d
xorl %esi, %esi
callq 0x7550
movq 0x5b44c(%rip), %r14     # 0x6f568
movl $0x1, %esi
cmpq $0xa, %r14
jb 0x14176
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x1416f
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x14174
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x14176
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x14139
addl $-0x3, %esi
jmp 0x14176
addl $-0x2, %esi
jmp 0x14176
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 0x114ec
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x141b5
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 0xaf32
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0xaf32
leaq 0x128(%rsp), %rsi
leaq 0x108(%rsp), %rdx
movq %rbx, %rdi
callq 0x53c10
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x1422b
callq 0x7370
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x1423d
callq 0x7370
leaq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x42bdd(%rip), %rcx     # 0x56e2a
movl $0x1b, %r8d
xorl %esi, %esi
callq 0x7550
movzbl 0x5b30e(%rip), %r8d     # 0x6f570
leaq 0x41ed1(%rip), %rax     # 0x5613a
leaq 0x41ecf(%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 0xaf32
leaq 0xd8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0xaf32
leaq 0xe8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
movq %rbx, %rdi
callq 0x53c10
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x14301
callq 0x7370
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0x14313
callq 0x7370
leaq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x42b23(%rip), %rcx     # 0x56e46
movl $0x22, %r8d
xorl %esi, %esi
callq 0x7550
movq 0x5b171(%rip), %r14     # 0x6f4a8
movl $0x1, %esi
cmpq $0xa, %r14
jb 0x14391
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x1438a
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x1438f
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x14391
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x14354
addl $-0x3, %esi
jmp 0x14391
addl $-0x2, %esi
jmp 0x14391
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 0x114ec
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x7450
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x143d0
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 0xaf32
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0xaf32
leaq 0xa8(%rsp), %rsi
leaq 0x88(%rsp), %rdx
movq %rbx, %rdi
callq 0x53c10
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x14446
callq 0x7370
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x14458
callq 0x7370
movq %rbx, %rdi
callq 0x53e9a
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14473
callq 0x7370
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x14487
callq 0x7370
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x14496
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 0x144c2
callq 0x7370
jmp 0x144c2
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
jmp 0x14566
jmp 0x14590
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x144ee
callq 0x7370
jmp 0x144ee
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
jmp 0x14566
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x14512
callq 0x7370
jmp 0x14512
movq %rax, %rbx
movq 0x128(%rsp), %rdi
jmp 0x14566
jmp 0x14590
movq %rax, %rbx
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x14538
callq 0x7370
jmp 0x14538
movq %rax, %rbx
movq 0x168(%rsp), %rdi
jmp 0x14566
jmp 0x14590
movq %rax, %rbx
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
je 0x1455e
callq 0x7370
jmp 0x1455e
movq %rax, %rbx
movq 0x1a8(%rsp), %rdi
cmpq %r14, %rdi
je 0x14593
callq 0x7370
jmp 0x14593
movq %rax, %rbx
jmp 0x145a6
jmp 0x1458b
movq %rax, %rbx
movq 0x1c8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x145b5
jmp 0x145ba
movq %rax, %rbx
jmp 0x145ba
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x145a6
callq 0x7370
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x145ba
callq 0x7370
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x145c9
callq 0x7370
movq %rbx, %rdi
callq 0x7620
nop