// File: /workspace/github_cpp_makefile_star2_O2/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 $0x198, %rsp            # imm = 0x198
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
leaq 0x67bc(%rip), %rdx      # 0x45545
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0x11c18
movq %r14, %rdi
movq %rbx, %rsi
callq 0x73f0
movq %rbx, %rdi
callq 0x7678
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7480
movq %r15, %rdi
movq %rbx, %rsi
callq 0x419e0
leaq 0x98(%rsp), %rdi
callq 0x7678
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
movq %r14, 0x18(%rsp)
movq %r14, %rsi
callq 0x7480
movq %r12, 0x8(%rsp)
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x3c062
leaq 0x78(%rsp), %rdi
callq 0x7678
xorl %ecx, %ecx
leaq 0x38(%rsp), %r13
leaq 0x178(%rsp), %r14
movq %r15, 0x10(%rsp)
movq 0x8(%rsp), %rdx
movl 0x44(%rdx), %eax
xorl %esi, %esi
cmpq %rax, %rcx
jae 0x3ef0f
movq %rcx, 0x28(%rsp)
movl 0x48(%rdx), %eax
cmpq %rax, %rsi
jae 0x3ef07
movq $0x0, 0x20(%rsp)
xorl %edi, %edi
movq %rsi, 0x30(%rsp)
cmpq $0x420, %rdi            # imm = 0x420
je 0x3eeff
movq 0xb0(%rdx), %rax
movq (%rax,%rcx,8), %rax
movq (%rax,%rsi,8), %r15
movq %rdi, %r12
addq %rdi, %r15
movq %r13, %rdi
movq 0x18(%rsp), %rsi
leaq 0x985d(%rip), %rdx      # 0x486dc
callq 0x11c18
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0x3fbd8
movq %r14, %rdi
movq %r13, %rbp
movq %r13, %rsi
movq %rbx, %rdx
callq 0x9b48
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq 0x10(%rsp), %r15
movq %r15, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x7678
movq %rbx, %rdi
callq 0x7678
movq %rbp, %rdi
callq 0x7678
movq %rbp, %r13
movq %r12, %rdi
addq $0x108, %rdi            # imm = 0x108
movq 0x20(%rsp), %rax
incl %eax
movq %rax, 0x20(%rsp)
movq 0x8(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rsi
jmp 0x3ee4e
incq %rsi
jmp 0x3ee32
incq %rcx
jmp 0x3ee1f
leaq 0x38(%rsp), %rbp
leaq 0x158(%rsp), %r14
movl %eax, %ecx
cmpq %rcx, %rsi
jae 0x3f00e
xorl %ecx, %ecx
movq %rsi, 0x28(%rsp)
movl 0x48(%rdx), %eax
cmpq %rax, %rcx
jae 0x3f003
movq $0x0, 0x20(%rsp)
xorl %edi, %edi
movq %rcx, 0x30(%rsp)
cmpq $0x420, %rdi            # imm = 0x420
je 0x3effb
movq 0xb8(%rdx), %rax
movq (%rax,%rsi,8), %rax
movq (%rax,%rcx,8), %r15
movq %rdi, %r13
addq %rdi, %r15
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
leaq 0x977f(%rip), %rdx      # 0x486fa
callq 0x11c18
leaq 0x58(%rsp), %r12
movq %r12, %rdi
movq 0x20(%rsp), %rsi
callq 0x3fbd8
movq %r14, %rdi
movq %rbp, %rbx
movq %rbp, %rsi
movq %r12, %rdx
callq 0x9b48
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq 0x10(%rsp), %r15
movq %r15, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x7678
movq %r12, %rdi
callq 0x7678
movq %rbx, %rdi
callq 0x7678
movq %rbx, %rbp
movq %r13, %rdi
addq $0x108, %rdi            # imm = 0x108
movq 0x20(%rsp), %rax
incl %eax
movq %rax, 0x20(%rsp)
movq 0x8(%rsp), %rdx
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rcx
jmp 0x3ef4a
incq %rcx
jmp 0x3ef2e
incq %rsi
movl 0x44(%rdx), %eax
jmp 0x3ef1c
xorl %r12d, %r12d
leaq 0x138(%rsp), %r14
movl %eax, %ecx
cmpq %rcx, %r12
jae 0x3f085
xorl %r13d, %r13d
xorl %ebp, %ebp
movl 0x48(%rdx), %eax
cmpq %rax, %rbp
jae 0x3f07d
movq 0xd8(%rdx), %rax
movq (%rax,%r12,8), %rbx
leaq (%rbx,%r13), %r15
movq %r14, %rdi
movq 0x18(%rsp), %rsi
leaq 0x955d(%rip), %rdx      # 0x485a8
callq 0x11c18
movq (%rbx,%r13), %rax
movq %r15, %rdi
movq 0x10(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x7678
incq %rbp
addq $0x108, %r13            # imm = 0x108
movq 0x8(%rsp), %rdx
jmp 0x3f025
incq %r12
movl 0x44(%rdx), %eax
jmp 0x3f019
xorl %r12d, %r12d
leaq 0x118(%rsp), %r14
movl %eax, %ecx
cmpq %rcx, %r12
jae 0x3f0fc
xorl %r13d, %r13d
xorl %ebp, %ebp
movl 0x48(%rdx), %eax
cmpq %rax, %rbp
jae 0x3f0f4
movq 0xe0(%rdx), %rax
movq (%rax,%r12,8), %rbx
leaq (%rbx,%r13), %r15
movq %r14, %rdi
movq 0x18(%rsp), %rsi
leaq 0x94fd(%rip), %rdx      # 0x485bf
callq 0x11c18
movq (%rbx,%r13), %rax
movq %r15, %rdi
movq 0x10(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x7678
incq %rbp
addq $0x108, %r13            # imm = 0x108
movq 0x8(%rsp), %rdx
jmp 0x3f09c
incq %r12
movl 0x44(%rdx), %eax
jmp 0x3f090
xorl %r12d, %r12d
leaq 0xf8(%rsp), %r14
movl %eax, %ecx
cmpq %rcx, %r12
jae 0x3f173
xorl %r13d, %r13d
xorl %ebp, %ebp
movl 0x48(%rdx), %eax
cmpq %rax, %rbp
jae 0x3f16b
movq 0xc0(%rdx), %rax
movq (%rax,%r12,8), %rbx
leaq (%rbx,%r13), %r15
movq %r14, %rdi
movq 0x18(%rsp), %rsi
leaq 0x949e(%rip), %rdx      # 0x485d7
callq 0x11c18
movq (%rbx,%r13), %rax
movq %r15, %rdi
movq 0x10(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x7678
incq %rbp
addq $0x108, %r13            # imm = 0x108
movq 0x8(%rsp), %rdx
jmp 0x3f113
incq %r12
movl 0x44(%rdx), %eax
jmp 0x3f107
xorl %r12d, %r12d
leaq 0xd8(%rsp), %r14
movl %eax, %ecx
cmpq %rcx, %r12
jae 0x3f1ea
xorl %r13d, %r13d
xorl %ebp, %ebp
movl 0x48(%rdx), %eax
cmpq %rax, %rbp
jae 0x3f1e2
movq 0xc8(%rdx), %rax
movq (%rax,%r12,8), %rbx
leaq (%rbx,%r13), %r15
movq %r14, %rdi
movq 0x18(%rsp), %rsi
leaq 0x9439(%rip), %rdx      # 0x485e9
callq 0x11c18
movq (%rbx,%r13), %rax
movq %r15, %rdi
movq 0x10(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x7678
incq %rbp
addq $0x108, %r13            # imm = 0x108
movq 0x8(%rsp), %rdx
jmp 0x3f18a
incq %r12
movl 0x44(%rdx), %eax
jmp 0x3f17e
xorl %r12d, %r12d
leaq 0xb8(%rsp), %r14
movl %eax, %eax
cmpq %rax, %r12
jae 0x3f261
xorl %r13d, %r13d
xorl %ebp, %ebp
movl 0x48(%rdx), %eax
cmpq %rax, %rbp
jae 0x3f259
movq 0xd0(%rdx), %rax
movq (%rax,%r12,8), %rbx
leaq (%rbx,%r13), %r15
movq %r14, %rdi
movq 0x18(%rsp), %rsi
leaq 0x93d5(%rip), %rdx      # 0x485fc
callq 0x11c18
movq (%rbx,%r13), %rax
movq %r15, %rdi
movq 0x10(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x7678
incq %rbp
addq $0x108, %r13            # imm = 0x108
movq 0x8(%rsp), %rdx
jmp 0x3f201
incq %r12
movl 0x44(%rdx), %eax
jmp 0x3f1f5
movq %r15, %rdi
callq 0x41c5c
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
jmp 0x3f310
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x3f310
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
jmp 0x3f310
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
jmp 0x3f310
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
jmp 0x3f310
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
jmp 0x3f310
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
jmp 0x3f310
jmp 0x3f2e7
jmp 0x3f2ec
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
jmp 0x3f2fc
movq %rax, %rbx
jmp 0x3f30b
movq %rax, %rbx
jmp 0x3f301
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x7678
leaq 0x58(%rsp), %rdi
callq 0x7678
leaq 0x38(%rsp), %rdi
callq 0x7678
movq %rbx, %rdi
callq 0x75d0
nop