// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]MQSim/src/ssd/TSU_Priority_OutOfOrder.cpp
// Function: SSD_Components::TSU_Priority_OutOfOrder::Report_results_in_XML(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Utils::XmlWriter&)
void TSU_Priority_OutOfOrder::Report_results_in_XML(std::string name_prefix, Utils::XmlWriter &xmlwriter)
{
    name_prefix = name_prefix + ".TSU";
    xmlwriter.Write_open_tag(name_prefix);

    TSU_Base::Report_results_in_XML(name_prefix, xmlwriter);

    for (unsigned int channelID = 0; channelID < channel_count; channelID++)
    {
        for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
        {
            for (unsigned int priorityClass = 0; priorityClass < IO_Flow_Priority_Class::NUMBER_OF_PRIORITY_LEVELS; priorityClass++)
            {
                UserReadTRQueue[channelID][chip_cntr][priorityClass].Report_results_in_XML(name_prefix + ".User_Read_TR_Queue.Priority." + IO_Flow_Priority_Class::to_string(priorityClass), xmlwriter);
            }
        }
    }

    for (unsigned int channelID = 0; channelID < channel_count; channelID++)
    {
        for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
        {
            for (unsigned int priorityClass = 0; priorityClass < IO_Flow_Priority_Class::NUMBER_OF_PRIORITY_LEVELS; priorityClass++)
            {
                UserWriteTRQueue[channelID][chip_cntr][priorityClass].Report_results_in_XML(name_prefix + ".User_Write_TR_Queue.Priority." + IO_Flow_Priority_Class::to_string(priorityClass), xmlwriter);
            }
        }
    }

    for (unsigned int channelID = 0; channelID < channel_count; channelID++)
    {
        for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
        {
            MappingReadTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".Mapping_Read_TR_Queue", xmlwriter);
        }
    }

    for (unsigned int channelID = 0; channelID < channel_count; channelID++)
    {
        for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
        {
            MappingWriteTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".Mapping_Write_TR_Queue", xmlwriter);
        }
    }

    for (unsigned int channelID = 0; channelID < channel_count; channelID++)
    {
        for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
        {
            GCReadTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".GC_Read_TR_Queue", xmlwriter);
        }
    }

    for (unsigned int channelID = 0; channelID < channel_count; channelID++)
    {
        for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
        {
            GCWriteTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".GC_Write_TR_Queue", xmlwriter);
        }
    }

    for (unsigned int channelID = 0; channelID < channel_count; channelID++)
    {
        for (unsigned int chip_cntr = 0; chip_cntr < chip_no_per_channel; chip_cntr++)
        {
            GCEraseTRQueue[channelID][chip_cntr].Report_results_in_XML(name_prefix + ".GC_Erase_TR_Queue", xmlwriter);
        }
    }

    xmlwriter.Write_close_tag();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rdx, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
leaq 0x28(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0xaf32
leaq 0x7088(%rip), %rsi      # 0x5762d
movq %rbx, %rdi
callq 0x7690
leaq 0x18(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7450
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x505ca
callq 0x7370
leaq 0x178(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rbx
movq %rbx, %rdi
callq 0xaf32
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x53af8
movq 0x168(%rsp), %rdi
cmpq %r15, %rdi
je 0x5060f
callq 0x7370
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rbx
movq %rbx, %rdi
callq 0xaf32
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq 0x4a730
movq %r14, 0x40(%rsp)
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x5065e
callq 0x7370
movq 0x10(%rsp), %rsi
movl 0x44(%rsi), %eax
testl %eax, %eax
je 0x50d75
leaq 0x98(%rsp), %rbx
movl 0x48(%rsi), %ecx
movq $0x0, 0x38(%rsp)
leaq 0x18(%rsp), %r12
testl %ecx, %ecx
movl $0x0, %ecx
je 0x50821
xorl %ebp, %ebp
xorl %r14d, %r14d
xorl %r15d, %r15d
leaq 0x28(%rsp), %rcx
movq 0xb0(%rsi), %rax
movq 0x38(%rsp), %rdx
movq (%rax,%rdx,8), %rax
movq (%rax,%rbp,8), %r13
addq %r14, %r13
movq %rcx, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xaf32
movq %r12, %rdi
leaq 0xa17a(%rip), %rsi      # 0x5a858
callq 0x7690
leaq 0x48(%rsp), %rdi
movl %r15d, %esi
callq 0x517a0
movq 0x18(%rsp), %rcx
movl $0xf, %edi
leaq 0x28(%rsp), %rax
cmpq %rax, %rcx
je 0x50709
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %r8
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x5073a
movl $0xf, %edi
leaq 0x58(%rsp), %r9
cmpq %r9, %rsi
je 0x50735
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x50744
movq %r12, %rdi
callq 0x7130
jmp 0x50752
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73e0
movq %rbx, 0x88(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x5077b
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x50781
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x90(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq (%r13), %rax
movq %r13, %rdi
leaq 0x88(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0x88(%rsp), %rdi
cmpq %rbx, %rdi
je 0x507c9
callq 0x7370
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x507dd
callq 0x7370
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rcx
cmpq %rcx, %rdi
je 0x507f6
callq 0x7370
leaq 0x28(%rsp), %rcx
incq %r15
addq $0x108, %r14            # imm = 0x108
cmpq $0x4, %r15
movq 0x10(%rsp), %rsi
jne 0x506a1
incq %rbp
movl 0x48(%rsi), %ecx
cmpq %rcx, %rbp
jb 0x50696
movl 0x44(%rsi), %eax
movq 0x38(%rsp), %r8
incq %r8
movl %eax, %edx
movq %r8, 0x38(%rsp)
cmpq %rdx, %r8
jb 0x50687
testl %eax, %eax
je 0x50d75
leaq 0x78(%rsp), %r13
movl 0x48(%rsi), %ecx
movq $0x0, 0x38(%rsp)
leaq 0x18(%rsp), %r12
testl %ecx, %ecx
movl $0x0, %ecx
je 0x509de
xorl %r14d, %r14d
xorl %ebp, %ebp
xorl %ebx, %ebx
leaq 0x28(%rsp), %rcx
movq 0xb8(%rsi), %rax
movq 0x38(%rsp), %rdx
movq (%rax,%rdx,8), %rax
movq (%rax,%r14,8), %r15
addq %rbp, %r15
movq %rcx, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xaf32
movq %r12, %rdi
leaq 0x9fc9(%rip), %rsi      # 0x5a876
callq 0x7690
leaq 0x48(%rsp), %rdi
movl %ebx, %esi
callq 0x517a0
movq 0x18(%rsp), %rcx
movl $0xf, %edi
leaq 0x28(%rsp), %rax
cmpq %rax, %rcx
je 0x508d7
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %r8
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x50908
movl $0xf, %edi
leaq 0x58(%rsp), %r9
cmpq %r9, %rsi
je 0x50903
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x50912
movq %r12, %rdi
callq 0x7130
jmp 0x50920
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73e0
movq %r13, 0x68(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x50940
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x50948
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq (%r15), %rax
movq %r15, %rdi
leaq 0x68(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x50986
callq 0x7370
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5099a
callq 0x7370
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rcx
cmpq %rcx, %rdi
je 0x509b3
callq 0x7370
leaq 0x28(%rsp), %rcx
incq %rbx
addq $0x108, %rbp            # imm = 0x108
cmpq $0x4, %rbx
movq 0x10(%rsp), %rsi
jne 0x50870
incq %r14
movl 0x48(%rsi), %ecx
cmpq %rcx, %r14
jb 0x50867
movl 0x44(%rsi), %eax
movq 0x38(%rsp), %r8
incq %r8
movl %eax, %edx
movq %r8, 0x38(%rsp)
cmpq %rdx, %r8
jb 0x50857
testl %eax, %eax
je 0x50d75
leaq 0x138(%rsp), %r13
movl 0x48(%rsi), %ecx
xorl %r14d, %r14d
leaq 0x128(%rsp), %rbx
testl %ecx, %ecx
movl $0x0, %ecx
je 0x50a9b
xorl %ebp, %ebp
xorl %r15d, %r15d
movq 0xd8(%rsi), %rax
movq (%rax,%r14,8), %r12
movq %r13, 0x128(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xaf32
movq %rbx, %rdi
leaq 0x9c81(%rip), %rsi      # 0x5a6d7
callq 0x7690
movq (%r12,%rbp), %rax
addq %rbp, %r12
movq %r12, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0x128(%rsp), %rdi
cmpq %r13, %rdi
je 0x50a81
callq 0x7370
incq %r15
movq 0x10(%rsp), %rsi
movl 0x48(%rsi), %ecx
addq $0x108, %rbp            # imm = 0x108
cmpq %rcx, %r15
jb 0x50a22
movl 0x44(%rsi), %eax
incq %r14
movl %eax, %edx
cmpq %rdx, %r14
jb 0x50a14
testl %eax, %eax
je 0x50d75
leaq 0x118(%rsp), %r13
movl 0x48(%rsi), %ecx
xorl %r14d, %r14d
leaq 0x108(%rsp), %rbx
testl %ecx, %ecx
movl $0x0, %ecx
je 0x50b4e
xorl %ebp, %ebp
xorl %r15d, %r15d
movq 0xe0(%rsi), %rax
movq (%rax,%r14,8), %r12
movq %r13, 0x108(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xaf32
movq %rbx, %rdi
leaq 0x9be5(%rip), %rsi      # 0x5a6ee
callq 0x7690
movq (%r12,%rbp), %rax
addq %rbp, %r12
movq %r12, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0x108(%rsp), %rdi
cmpq %r13, %rdi
je 0x50b34
callq 0x7370
incq %r15
movq 0x10(%rsp), %rsi
movl 0x48(%rsi), %ecx
addq $0x108, %rbp            # imm = 0x108
cmpq %rcx, %r15
jb 0x50ad5
movl 0x44(%rsi), %eax
incq %r14
movl %eax, %edx
cmpq %rdx, %r14
jb 0x50ac7
testl %eax, %eax
je 0x50d75
leaq 0xf8(%rsp), %r13
movl 0x48(%rsi), %ecx
xorl %r14d, %r14d
leaq 0xe8(%rsp), %rbx
testl %ecx, %ecx
movl $0x0, %ecx
je 0x50c01
xorl %ebp, %ebp
xorl %r15d, %r15d
movq 0xc0(%rsi), %rax
movq (%rax,%r14,8), %r12
movq %r13, 0xe8(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xaf32
movq %rbx, %rdi
leaq 0x9b4a(%rip), %rsi      # 0x5a706
callq 0x7690
movq (%r12,%rbp), %rax
addq %rbp, %r12
movq %r12, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0xe8(%rsp), %rdi
cmpq %r13, %rdi
je 0x50be7
callq 0x7370
incq %r15
movq 0x10(%rsp), %rsi
movl 0x48(%rsi), %ecx
addq $0x108, %rbp            # imm = 0x108
cmpq %rcx, %r15
jb 0x50b88
movl 0x44(%rsi), %eax
incq %r14
movl %eax, %edx
cmpq %rdx, %r14
jb 0x50b7a
testl %eax, %eax
je 0x50d75
leaq 0xd8(%rsp), %r13
movl 0x48(%rsi), %ecx
xorl %r14d, %r14d
leaq 0xc8(%rsp), %rbx
testl %ecx, %ecx
movl $0x0, %ecx
je 0x50cb4
xorl %ebp, %ebp
xorl %r15d, %r15d
movq 0xc8(%rsi), %rax
movq (%rax,%r14,8), %r12
movq %r13, 0xc8(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xaf32
movq %rbx, %rdi
leaq 0x9aa9(%rip), %rsi      # 0x5a718
callq 0x7690
movq (%r12,%rbp), %rax
addq %rbp, %r12
movq %r12, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0xc8(%rsp), %rdi
cmpq %r13, %rdi
je 0x50c9a
callq 0x7370
incq %r15
movq 0x10(%rsp), %rsi
movl 0x48(%rsi), %ecx
addq $0x108, %rbp            # imm = 0x108
cmpq %rcx, %r15
jb 0x50c3b
movl 0x44(%rsi), %eax
incq %r14
movl %eax, %edx
cmpq %rdx, %r14
jb 0x50c2d
testl %eax, %eax
je 0x50d75
leaq 0xb8(%rsp), %r13
movl 0x48(%rsi), %ecx
xorl %r14d, %r14d
leaq 0xa8(%rsp), %rbx
testl %ecx, %ecx
movl $0x0, %ecx
je 0x50d67
xorl %ebp, %ebp
xorl %r15d, %r15d
movq 0xd0(%rsi), %rax
movq (%rax,%r14,8), %r12
movq %r13, 0xa8(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xaf32
movq %rbx, %rdi
leaq 0x9a09(%rip), %rsi      # 0x5a72b
callq 0x7690
movq (%r12,%rbp), %rax
addq %rbp, %r12
movq %r12, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0xa8(%rsp), %rdi
cmpq %r13, %rdi
je 0x50d4d
callq 0x7370
incq %r15
movq 0x10(%rsp), %rsi
movl 0x48(%rsi), %ecx
addq $0x108, %rbp            # imm = 0x108
cmpq %rcx, %r15
jb 0x50cee
movl 0x44(%rsi), %eax
incq %r14
movl %eax, %edx
cmpq %rdx, %r14
jb 0x50ce0
movq 0x8(%rsp), %rdi
callq 0x53e9a
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x148(%rsp), %rdi
jmp 0x50db3
movq %rax, %r14
movq 0x168(%rsp), %rdi
jmp 0x50db3
movq %rax, %r14
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
jne 0x50e77
jmp 0x50e7c
jmp 0x50dc3
movq %rax, %r14
movq 0xa8(%rsp), %rdi
jmp 0x50e0a
jmp 0x50dd2
movq %rax, %r14
movq 0xc8(%rsp), %rdi
jmp 0x50e0a
jmp 0x50de1
movq %rax, %r14
movq 0xe8(%rsp), %rdi
jmp 0x50e0a
jmp 0x50df0
movq %rax, %r14
movq 0x108(%rsp), %rdi
jmp 0x50e0a
jmp 0x50dff
movq %rax, %r14
movq 0x128(%rsp), %rdi
cmpq %r13, %rdi
jne 0x50e77
jmp 0x50e7c
jmp 0x50e26
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
jne 0x50e3b
jmp 0x50e40
jmp 0x50e56
jmp 0x50e65
movq %rax, %r14
jmp 0x50e40
movq %rax, %r14
movq 0x88(%rsp), %rdi
cmpq %rbx, %rdi
je 0x50e40
callq 0x7370
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x50e59
callq 0x7370
jmp 0x50e59
movq %rax, %r14
leaq 0x28(%rsp), %rax
movq 0x18(%rsp), %rdi
jmp 0x50e72
movq %rax, %r14
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x50e7c
callq 0x7370
movq %r14, %rdi
callq 0x7620