// File: /workspace/github_cpp_makefile_star2_O2/CMU-SAFARI[P]MQSim/src/exec/IO_Flow_Parameter_Set.cpp
// Function: IO_Flow_Parameter_Set_Trace_Based::XML_deserialize(rapidxml::xml_node<char>*)
void IO_Flow_Parameter_Set_Trace_Based::XML_deserialize(rapidxml::xml_node<> *node)
{
	IO_Flow_Parameter_Set::XML_deserialize(node);

	try {
		for (auto param = node->first_node(); param; param = param->next_sibling()) {
			if (strcmp(param->name(), "Relay_Count") == 0) {
				std::string val = param->value();
				Relay_Count = std::stoi(val);
			} else if (strcmp(param->name(), "Percentage_To_Be_Executed") == 0) {
				std::string val = param->value();
				Percentage_To_Be_Executed = std::stoi(val);
			} else if (strcmp(param->name(), "File_Path") == 0) {
				File_Path = param->value();
			} else if (strcmp(param->name(), "Time_Unit") == 0) {
				std::string val = param->value();
				std::transform(val.begin(), val.end(), val.begin(), ::toupper);
				if (strcmp(val.c_str(), "PICOSECOND") == 0) {
					Time_Unit = Trace_Time_Unit::PICOSECOND;
				} else if (strcmp(val.c_str(), "NANOSECOND") == 0) {
					Time_Unit = Trace_Time_Unit::NANOSECOND;
				} else if (strcmp(val.c_str(), "MICROSECOND") == 0) {
					Time_Unit = Trace_Time_Unit::MICROSECOND;
				} else {
					PRINT_ERROR("Wrong time unit specified for the trace based flow")
				}
			}

		}
	} catch (...) {
		PRINT_ERROR("Error in IO_Flow_Parameter_Set_Trace_Based!")
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x128a8
movq 0x30(%r14), %rbp
leaq 0x50(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x4de45(%rip), %r14     # 0x62502
leaq 0x30c9d(%rip), %r15     # 0x45361
leaq 0x18(%rsp), %r12
testq %rbp, %rbp
je 0x14875
movq (%rbp), %r13
testq %r13, %r13
cmoveq %r14, %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x7490
testl %eax, %eax
je 0x1477d
movq %r13, %rdi
leaq 0x30c4d(%rip), %rsi     # 0x45347
callq 0x7490
testl %eax, %eax
je 0x147a7
movq %r13, %rdi
leaq 0x30c2c(%rip), %rsi     # 0x4533d
callq 0x7490
testl %eax, %eax
je 0x147ee
movq %r13, %rdi
leaq 0x30c45(%rip), %rsi     # 0x4536d
callq 0x7490
testl %eax, %eax
jne 0x147d7
movq %rbx, %r15
movq 0x8(%rbp), %rsi
testq %rsi, %rsi
movq %r12, %rdi
movq %r14, %r12
cmoveq %r14, %rsi
leaq 0xf(%rsp), %rdx
callq 0x7150
movq 0x18(%rsp), %r13
movq 0x20(%rsp), %r14
xorl %ebx, %ebx
cmpq %rbx, %r14
je 0x14805
movsbl (%r13,%rbx), %edi
callq 0x7610
movb %al, (%r13,%rbx)
incq %rbx
jmp 0x1475f
movq 0x8(%rbp), %rsi
testq %rsi, %rsi
cmoveq %r14, %rsi
movq %r12, %rdi
leaq 0xf(%rsp), %rdx
callq 0x7150
movq %r12, %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0xe7ef
movl %eax, 0x74(%rbx)
jmp 0x147cf
movq 0x8(%rbp), %rsi
testq %rsi, %rsi
cmoveq %r14, %rsi
movq %r12, %rdi
leaq 0xf(%rsp), %rdx
callq 0x7150
movq %r12, %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0xe7ef
movl %eax, 0x70(%rbx)
movq %r12, %rdi
callq 0x7678
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
pushq $0x1
popq %rcx
callq 0x9a6e
movq %rax, %rbp
jmp 0x146c9
movq 0x8(%rbp), %rsi
testq %rsi, %rsi
cmoveq %r14, %rsi
movq 0x10(%rsp), %rdi
callq 0x7640
jmp 0x147d7
movq 0x18(%rsp), %r13
movq %r13, %rdi
leaq 0x30b63(%rip), %rsi     # 0x45377
callq 0x7490
testl %eax, %eax
je 0x14851
movq %r13, %rdi
leaq 0x30b5b(%rip), %rsi     # 0x45382
callq 0x7490
pushq $0x1
popq %rcx
testl %eax, %eax
movq %r15, %rbx
movq %r12, %r14
je 0x14859
movq %r13, %rdi
leaq 0x30b4a(%rip), %rsi     # 0x4538d
callq 0x7490
pushq $0x2
popq %rcx
testl %eax, %eax
je 0x14859
jmp 0x14884
xorl %ecx, %ecx
movq %r15, %rbx
movq %r12, %r14
movl %ecx, 0x78(%rbx)
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x7678
leaq 0x30af1(%rip), %r15     # 0x45361
jmp 0x147d7
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4d765(%rip), %rdi     # 0x61ff0
leaq 0x2fcf6(%rip), %rsi     # 0x44588
callq 0x7360
movq 0x4d752(%rip), %rdi     # 0x61ff0
leaq 0x30af4(%rip), %rsi     # 0x45399
callq 0x7360
movq %rax, %rdi
callq 0x71a0
movq 0x4d717(%rip), %rdi     # 0x61fd0
callq 0x73d0
jmp 0x1491e
jmp 0x148c8
jmp 0x148d9
jmp 0x148c8
jmp 0x148d9
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x7678
jmp 0x148dc
jmp 0x148d9
movq %rax, %rbx
movq %rbx, %rdi
callq 0x7160
movq 0x4d705(%rip), %rdi     # 0x61ff0
leaq 0x2fc96(%rip), %rsi     # 0x44588
callq 0x7360
movq 0x4d6f2(%rip), %rdi     # 0x61ff0
leaq 0x30ac7(%rip), %rsi     # 0x453cc
callq 0x7360
movq %rax, %rdi
callq 0x71a0
movq 0x4d6b7(%rip), %rdi     # 0x61fd0
callq 0x73d0
pushq $0x1
popq %rdi
callq 0x73e0
movq %rax, %rbx
callq 0x7550
movq %rbx, %rdi
callq 0x75d0
movq %rax, %rdi
callq 0x9c29