// File: /workspace/github_cpp_makefile_star2_O1/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, %r15
movq %rdi, 0x10(%rsp)
leaq 0x28(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rsi), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0xb036
leaq 0x6636(%rip), %rsi      # 0x5762d
movq %rbx, %rdi
callq 0x7690
leaq 0x18(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7450
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x5101c
callq 0x7370
leaq 0x178(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rbx
movq %rbx, %rdi
callq 0xb036
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x54454
movq 0x168(%rsp), %rdi
cmpq %r14, %rdi
je 0x51061
callq 0x7370
leaq 0x158(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rbx
movq %rbx, %rdi
callq 0xb036
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq 0x4b190
movq %r15, 0x40(%rsp)
movq 0x148(%rsp), %rdi
cmpq %r14, %rdi
je 0x510b0
callq 0x7370
movq 0x10(%rsp), %rcx
cmpl $0x0, 0x44(%rcx)
leaq 0x28(%rsp), %rdx
je 0x51285
leaq 0x98(%rsp), %rbp
movq $0x0, 0x38(%rsp)
leaq 0x18(%rsp), %r12
cmpl $0x0, 0x48(%rcx)
je 0x5126c
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0xb0(%rcx), %rax
movq 0x38(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax,%r14,8), %rbx
addq %r15, %rbx
movq %rdx, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xb036
movq %r12, %rdi
leaq 0x96e2(%rip), %rsi      # 0x5a80c
callq 0x7690
leaq 0x48(%rsp), %rdi
movl %r13d, %esi
callq 0x521ce
movq 0x18(%rsp), %rcx
movl $0xf, %esi
leaq 0x28(%rsp), %rax
cmpq %rax, %rcx
je 0x51155
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x51183
movl $0xf, %esi
leaq 0x58(%rsp), %rdi
cmpq %rdi, 0x48(%rsp)
je 0x5117e
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x51192
movq 0x48(%rsp), %rsi
movq %r12, %rdi
callq 0x7130
jmp 0x511a0
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73e0
movq %rbp, 0x88(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x511c9
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x511d0
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x90(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq (%rbx), %rax
movq %rbx, %rdi
leaq 0x88(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x51217
callq 0x7370
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5122b
callq 0x7370
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rdx
cmpq %rdx, %rdi
je 0x51244
callq 0x7370
leaq 0x28(%rsp), %rdx
incq %r13
addq $0x108, %r15            # imm = 0x108
cmpq $0x4, %r13
movq 0x10(%rsp), %rcx
jne 0x510ed
incq %r14
movl 0x48(%rcx), %eax
cmpq %rax, %r14
jb 0x510e7
movq 0x38(%rsp), %rdi
incq %rdi
movl 0x44(%rcx), %eax
movq %rdi, 0x38(%rsp)
cmpq %rax, %rdi
jb 0x510da
cmpl $0x0, 0x44(%rcx)
je 0x5143b
leaq 0x78(%rsp), %rbp
movq $0x0, 0x38(%rsp)
leaq 0x18(%rsp), %r12
cmpl $0x0, 0x48(%rcx)
je 0x51422
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0xb8(%rcx), %rax
movq 0x38(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax,%r14,8), %rbx
addq %r15, %rbx
movq %rdx, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xb036
movq %r12, %rdi
leaq 0x9538(%rip), %rsi      # 0x5a82a
callq 0x7690
leaq 0x48(%rsp), %rdi
movl %r13d, %esi
callq 0x521ce
movq 0x18(%rsp), %rcx
movl $0xf, %esi
leaq 0x28(%rsp), %rax
cmpq %rax, %rcx
je 0x5131d
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x5134b
movl $0xf, %esi
leaq 0x58(%rsp), %rdi
cmpq %rdi, 0x48(%rsp)
je 0x51346
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x5135a
movq 0x48(%rsp), %rsi
movq %r12, %rdi
callq 0x7130
jmp 0x51368
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73e0
movq %rbp, 0x68(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x51388
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x5138f
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq (%rbx), %rax
movq %rbx, %rdi
leaq 0x68(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x513cd
callq 0x7370
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x513e1
callq 0x7370
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rdx
cmpq %rdx, %rdi
je 0x513fa
callq 0x7370
leaq 0x28(%rsp), %rdx
incq %r13
addq $0x108, %r15            # imm = 0x108
cmpq $0x4, %r13
movq 0x10(%rsp), %rcx
jne 0x512b5
incq %r14
movl 0x48(%rcx), %eax
cmpq %rax, %r14
jb 0x512af
movq 0x38(%rsp), %rdi
incq %rdi
movl 0x44(%rcx), %eax
movq %rdi, 0x38(%rsp)
cmpq %rax, %rdi
jb 0x512a2
cmpl $0x0, 0x44(%rcx)
je 0x514e9
leaq 0x138(%rsp), %r14
xorl %r15d, %r15d
leaq 0x128(%rsp), %rbx
cmpl $0x0, 0x48(%rcx)
je 0x514da
xorl %ebp, %ebp
xorl %r12d, %r12d
movq 0xd8(%rcx), %rax
movq (%rax,%r15,8), %r13
movq %r14, 0x128(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xb036
movq %rbx, %rdi
leaq 0x9240(%rip), %rsi      # 0x5a6d7
callq 0x7690
movq (%r13,%rbp), %rax
addq %rbp, %r13
movq %r13, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x514c3
callq 0x7370
incq %r12
movq 0x10(%rsp), %rcx
movl 0x48(%rcx), %eax
addq $0x108, %rbp            # imm = 0x108
cmpq %rax, %r12
jb 0x51463
incq %r15
movl 0x44(%rcx), %eax
cmpq %rax, %r15
jb 0x51458
cmpl $0x0, 0x44(%rcx)
je 0x51597
leaq 0x118(%rsp), %r14
xorl %r15d, %r15d
leaq 0x108(%rsp), %rbx
cmpl $0x0, 0x48(%rcx)
je 0x51588
xorl %ebp, %ebp
xorl %r12d, %r12d
movq 0xe0(%rcx), %rax
movq (%rax,%r15,8), %r13
movq %r14, 0x108(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xb036
movq %rbx, %rdi
leaq 0x91a9(%rip), %rsi      # 0x5a6ee
callq 0x7690
movq (%r13,%rbp), %rax
addq %rbp, %r13
movq %r13, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0x108(%rsp), %rdi
cmpq %r14, %rdi
je 0x51571
callq 0x7370
incq %r12
movq 0x10(%rsp), %rcx
movl 0x48(%rcx), %eax
addq $0x108, %rbp            # imm = 0x108
cmpq %rax, %r12
jb 0x51511
incq %r15
movl 0x44(%rcx), %eax
cmpq %rax, %r15
jb 0x51506
cmpl $0x0, 0x44(%rcx)
je 0x51645
leaq 0xf8(%rsp), %r14
xorl %r15d, %r15d
leaq 0xe8(%rsp), %rbx
cmpl $0x0, 0x48(%rcx)
je 0x51636
xorl %ebp, %ebp
xorl %r12d, %r12d
movq 0xc0(%rcx), %rax
movq (%rax,%r15,8), %r13
movq %r14, 0xe8(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xb036
movq %rbx, %rdi
leaq 0x9113(%rip), %rsi      # 0x5a706
callq 0x7690
movq (%r13,%rbp), %rax
addq %rbp, %r13
movq %r13, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0x5161f
callq 0x7370
incq %r12
movq 0x10(%rsp), %rcx
movl 0x48(%rcx), %eax
addq $0x108, %rbp            # imm = 0x108
cmpq %rax, %r12
jb 0x515bf
incq %r15
movl 0x44(%rcx), %eax
cmpq %rax, %r15
jb 0x515b4
cmpl $0x0, 0x44(%rcx)
je 0x516f3
leaq 0xd8(%rsp), %r14
xorl %r15d, %r15d
leaq 0xc8(%rsp), %rbx
cmpl $0x0, 0x48(%rcx)
je 0x516e4
xorl %ebp, %ebp
xorl %r12d, %r12d
movq 0xc8(%rcx), %rax
movq (%rax,%r15,8), %r13
movq %r14, 0xc8(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xb036
movq %rbx, %rdi
leaq 0x9077(%rip), %rsi      # 0x5a718
callq 0x7690
movq (%r13,%rbp), %rax
addq %rbp, %r13
movq %r13, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x516cd
callq 0x7370
incq %r12
movq 0x10(%rsp), %rcx
movl 0x48(%rcx), %eax
addq $0x108, %rbp            # imm = 0x108
cmpq %rax, %r12
jb 0x5166d
incq %r15
movl 0x44(%rcx), %eax
cmpq %rax, %r15
jb 0x51662
cmpl $0x0, 0x44(%rcx)
je 0x517a1
leaq 0xb8(%rsp), %r14
xorl %r15d, %r15d
leaq 0xa8(%rsp), %rbx
cmpl $0x0, 0x48(%rcx)
je 0x51792
xorl %ebp, %ebp
xorl %r12d, %r12d
movq 0xd0(%rcx), %rax
movq (%rax,%r15,8), %r13
movq %r14, 0xa8(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xb036
movq %rbx, %rdi
leaq 0x8fdc(%rip), %rsi      # 0x5a72b
callq 0x7690
movq (%r13,%rbp), %rax
addq %rbp, %r13
movq %r13, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq *(%rax)
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x5177b
callq 0x7370
incq %r12
movq 0x10(%rsp), %rcx
movl 0x48(%rcx), %eax
addq $0x108, %rbp            # imm = 0x108
cmpq %rax, %r12
jb 0x5171b
incq %r15
movl 0x44(%rcx), %eax
cmpq %rax, %r15
jb 0x51710
movq 0x8(%rsp), %rdi
callq 0x547fc
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x148(%rsp), %rdi
jmp 0x5182a
movq %rax, %rbx
movq 0x168(%rsp), %rdi
jmp 0x5182a
movq %rax, %rbx
movq 0x18(%rsp), %rdi
jmp 0x5182a
jmp 0x517e3
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
jmp 0x5182a
jmp 0x517f2
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
jmp 0x5182a
jmp 0x51801
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
jmp 0x5182a
jmp 0x51810
movq %rax, %rbx
movq 0x108(%rsp), %rdi
jmp 0x5182a
jmp 0x5181f
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
jne 0x51892
jmp 0x51897
jmp 0x51841
movq %rax, %rbx
movq 0x68(%rsp), %rdi
jmp 0x51851
jmp 0x51871
jmp 0x51880
movq %rax, %rbx
jmp 0x5185b
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5185b
callq 0x7370
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x51874
callq 0x7370
jmp 0x51874
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq 0x18(%rsp), %rdi
jmp 0x5188d
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x51897
callq 0x7370
movq %rbx, %rdi
callq 0x7620
nop