// File: /workspace/github_cpp_makefile_star2_O3/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 0x1745e
movq 0x30(%r14), %r12
testq %r12, %r12
je 0x1a98a
leaq 0x50(%rbx), %rax
movq %rax, 0x30(%rsp)
leaq 0x54e2a(%rip), %r15     # 0x6f532
leaq 0x8(%rsp), %r13
movq (%r12), %r14
testq %r14, %r14
cmoveq %r15, %r14
movq %r14, %rdi
leaq 0x3ccaf(%rip), %rsi     # 0x573d1
callq 0x74d0
testl %eax, %eax
je 0x1a80d
movq %r14, %rdi
leaq 0x3cc7e(%rip), %rsi     # 0x573b7
callq 0x74d0
testl %eax, %eax
je 0x1a889
movq %r14, %rdi
leaq 0x3cc5d(%rip), %rsi     # 0x573ad
callq 0x74d0
testl %eax, %eax
je 0x1a93b
movq %r14, %rdi
leaq 0x3cc76(%rip), %rsi     # 0x573dd
callq 0x74d0
testl %eax, %eax
jne 0x1a923
movq 0x8(%r12), %rsi
testq %rsi, %rsi
cmoveq %r15, %rsi
leaq 0x10(%rsp), %rdi
movq %r13, %rdx
callq 0x7180
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %r13
testq %r13, %r13
je 0x1a7b9
xorl %ebp, %ebp
movsbl (%r14,%rbp), %edi
callq 0x7670
movb %al, (%r14,%rbp)
incq %rbp
cmpq %rbp, %r13
jne 0x1a79e
movq 0x10(%rsp), %r14
movq %r14, %rdi
leaq 0x3cc24(%rip), %rsi     # 0x573e7
callq 0x74d0
testl %eax, %eax
leaq 0x8(%rsp), %r13
je 0x1a96a
movq %r14, %rdi
leaq 0x3cc13(%rip), %rsi     # 0x573f2
callq 0x74d0
testl %eax, %eax
je 0x1a96e
movq %r14, %rdi
leaq 0x3cc07(%rip), %rsi     # 0x573fd
callq 0x74d0
movl $0x2, %ecx
testl %eax, %eax
je 0x1a973
jmp 0x1a9e8
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 0x1a9c4
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x1a9b8
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x1a9b8
testl %ecx, %ecx
jne 0x1a884
movl %r15d, (%r14)
movl %eax, 0x74(%rbx)
jmp 0x1a903
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 0x1a9dc
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
jb 0x1a9d0
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x1a9d0
testl %ecx, %ecx
jne 0x1a900
movl %r15d, (%r14)
movl %eax, 0x70(%rbx)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1a917
callq 0x7370
leaq 0x8(%rsp), %r13
leaq 0x54c0f(%rip), %r15     # 0x6f532
cmpq $0x0, 0x20(%r12)
je 0x1a999
movq 0x58(%r12), %r12
testq %r12, %r12
jne 0x1a70d
jmp 0x1a98a
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 0x1a923
xorl %ecx, %ecx
jmp 0x1a973
movl $0x1, %ecx
movl %ecx, 0x78(%rbx)
leaq 0x20(%rsp), %rax
cmpq %rax, %r14
je 0x1a923
movq %r14, %rdi
callq 0x7370
jmp 0x1a923
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3add7(%rip), %rdi     # 0x55777
leaq 0x3aba2(%rip), %rsi     # 0x55549
leaq 0x3add8(%rip), %rcx     # 0x55786
movl $0x3ee, %edx            # imm = 0x3EE
callq 0x7270
leaq 0x3bf6b(%rip), %rdi     # 0x5692a
callq 0x7510
leaq 0x3bf5f(%rip), %rdi     # 0x5692a
callq 0x7250
leaq 0x3bf53(%rip), %rdi     # 0x5692a
callq 0x7510
leaq 0x3bf47(%rip), %rdi     # 0x5692a
callq 0x7250
movq 0x54601(%rip), %rdi     # 0x6eff0
leaq 0x3bbb2(%rip), %rsi     # 0x565a8
movl $0x6, %edx
callq 0x7400
movq 0x545e9(%rip), %rdi     # 0x6eff0
leaq 0x3c9fb(%rip), %rsi     # 0x57409
movl $0x32, %edx
callq 0x7400
movq 0x545d1(%rip), %rdi     # 0x6eff0
callq 0x71c0
movq 0x545a5(%rip), %rdi     # 0x6efd0
callq 0x7430
jmp 0x1aab7
movq %rax, %rbx
jmp 0x1aa53
jmp 0x1aa40
jmp 0x1aa40
jmp 0x1aa40
movq %rax, %rbx
jmp 0x1aa67
jmp 0x1aa47
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x1aa53
movl %r15d, (%r14)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1aa67
callq 0x7370
movq %rbx, %rdi
callq 0x7190
movq 0x5457a(%rip), %rdi     # 0x6eff0
leaq 0x3bb2b(%rip), %rsi     # 0x565a8
movl $0x6, %edx
callq 0x7400
movq 0x54562(%rip), %rdi     # 0x6eff0
leaq 0x3c9a7(%rip), %rsi     # 0x5743c
movl $0x2b, %edx
callq 0x7400
movq 0x5454a(%rip), %rdi     # 0x6eff0
callq 0x71c0
movq 0x5451e(%rip), %rdi     # 0x6efd0
callq 0x7430
movl $0x1, %edi
callq 0x7440
movq %rax, %rbx
callq 0x7590
movq %rbx, %rdi
callq 0x7620
movq %rax, %rdi
callq 0xae63