// File: /workspace/github_cpp_makefile_star2_O1/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 0x1755a
movq 0x30(%r14), %r12
testq %r12, %r12
je 0x1aa1c
leaq 0x50(%rbx), %rax
movq %rax, 0x30(%rsp)
leaq 0x54da0(%rip), %r15     # 0x6f532
leaq 0x8(%rsp), %r13
movq (%r12), %r14
testq %r14, %r14
cmoveq %r15, %r14
movq %r14, %rdi
leaq 0x3cc25(%rip), %rsi     # 0x573d1
callq 0x74d0
testl %eax, %eax
je 0x1a896
movq %r14, %rdi
leaq 0x3cbf4(%rip), %rsi     # 0x573b7
callq 0x74d0
testl %eax, %eax
je 0x1a912
movq %r14, %rdi
leaq 0x3cbd3(%rip), %rsi     # 0x573ad
callq 0x74d0
testl %eax, %eax
je 0x1a9c4
movq %r14, %rdi
leaq 0x3cbec(%rip), %rsi     # 0x573dd
callq 0x74d0
testl %eax, %eax
jne 0x1a9ac
movq 0x8(%r12), %rsi
testq %rsi, %rsi
cmoveq %r15, %rsi
leaq 0x10(%rsp), %rdi
movq %r13, %rdx
callq 0x7180
movq 0x18(%rsp), %r14
testq %r14, %r14
je 0x1a840
movq 0x10(%rsp), %r13
xorl %ebp, %ebp
movsbl (%r13,%rbp), %edi
callq 0x7670
movb %al, (%r13,%rbp)
incq %rbp
cmpq %rbp, %r14
jne 0x1a828
movq 0x10(%rsp), %r14
movq %r14, %rdi
leaq 0x3cb98(%rip), %rsi     # 0x573e7
callq 0x74d0
testl %eax, %eax
je 0x1a9f3
movq %r14, %rdi
leaq 0x3cb8c(%rip), %rsi     # 0x573f2
callq 0x74d0
testl %eax, %eax
je 0x1a9fc
movq %r14, %rdi
leaq 0x3cb80(%rip), %rsi     # 0x573fd
callq 0x74d0
testl %eax, %eax
jne 0x1aa7a
movl $0x2, 0x78(%rbx)
jmp 0x1aa03
movq 0x8(%r12), %rsi
testq %rsi, %rsi
cmoveq %r15, %rsi
leaq 0x10(%rsp), %rdi
movq %r13, %rdx
callq 0x7180
movq 0x10(%rsp), %rbp
callq 0x7050
movq %rax, %r14
movl (%rax), %r15d
movl $0x0, (%rax)
movq %rbp, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x74e0
cmpq %rbp, 0x8(%rsp)
je 0x1aa56
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x1aa4a
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x1aa4a
testl %ecx, %ecx
jne 0x1a90d
movl %r15d, (%r14)
movl %eax, 0x74(%rbx)
jmp 0x1a98c
movq 0x8(%r12), %rsi
testq %rsi, %rsi
cmoveq %r15, %rsi
leaq 0x10(%rsp), %rdi
movq %r13, %rdx
callq 0x7180
movq 0x10(%rsp), %rbp
callq 0x7050
movq %rax, %r14
movl (%rax), %r15d
movl $0x0, (%rax)
movq %rbp, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x74e0
cmpq %rbp, 0x8(%rsp)
je 0x1aa6e
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x1aa62
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x1aa62
testl %ecx, %ecx
jne 0x1a989
movl %r15d, (%r14)
movl %eax, 0x70(%rbx)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1a9a0
callq 0x7370
leaq 0x8(%rsp), %r13
leaq 0x54b86(%rip), %r15     # 0x6f532
cmpq $0x0, 0x20(%r12)
je 0x1aa2b
movq 0x58(%r12), %r12
testq %r12, %r12
jne 0x1a797
jmp 0x1aa1c
movq 0x8(%r12), %r14
testq %r14, %r14
cmoveq %r15, %r14
movq 0x58(%rbx), %rbp
movq %r14, %rdi
callq 0x71a0
movq 0x30(%rsp), %rdi
xorl %esi, %esi
movq %rbp, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x7550
jmp 0x1a9ac
movl $0x0, 0x78(%rbx)
jmp 0x1aa03
movl $0x1, 0x78(%rbx)
leaq 0x8(%rsp), %r13
leaq 0x20(%rsp), %rax
cmpq %rax, %r14
je 0x1a9ac
movq %r14, %rdi
callq 0x7370
jmp 0x1a9ac
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3ad45(%rip), %rdi     # 0x55777
leaq 0x3ab10(%rip), %rsi     # 0x55549
leaq 0x3ad46(%rip), %rcx     # 0x55786
movl $0x3ee, %edx            # imm = 0x3EE
callq 0x7270
leaq 0x3bed9(%rip), %rdi     # 0x5692a
callq 0x7510
leaq 0x3becd(%rip), %rdi     # 0x5692a
callq 0x7250
leaq 0x3bec1(%rip), %rdi     # 0x5692a
callq 0x7510
leaq 0x3beb5(%rip), %rdi     # 0x5692a
callq 0x7250
movq 0x5456f(%rip), %rdi     # 0x6eff0
leaq 0x3bb20(%rip), %rsi     # 0x565a8
movl $0x6, %edx
callq 0x7400
movq 0x54557(%rip), %rdi     # 0x6eff0
leaq 0x3c969(%rip), %rsi     # 0x57409
movl $0x32, %edx
callq 0x7400
movq 0x5453f(%rip), %rdi     # 0x6eff0
callq 0x71c0
movq 0x54513(%rip), %rdi     # 0x6efd0
callq 0x7430
jmp 0x1ab49
movq %rax, %rbx
jmp 0x1aae5
jmp 0x1aad2
jmp 0x1aad2
jmp 0x1aad2
movq %rax, %rbx
jmp 0x1aaf9
jmp 0x1aad9
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x1aae5
movl %r15d, (%r14)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1aaf9
callq 0x7370
movq %rbx, %rdi
callq 0x7190
movq 0x544e8(%rip), %rdi     # 0x6eff0
leaq 0x3ba99(%rip), %rsi     # 0x565a8
movl $0x6, %edx
callq 0x7400
movq 0x544d0(%rip), %rdi     # 0x6eff0
leaq 0x3c915(%rip), %rsi     # 0x5743c
movl $0x2b, %edx
callq 0x7400
movq 0x544b8(%rip), %rdi     # 0x6eff0
callq 0x71c0
movq 0x5448c(%rip), %rdi     # 0x6efd0
callq 0x7430
movl $0x1, %edi
callq 0x7440
movq %rax, %rbx
callq 0x7590
movq %rbx, %rdi
callq 0x7620
movq %rax, %rdi
callq 0xaf65