// File: /workspace/github_cpp_makefile_star2_O3/lukasz-wiecaszek[P]h264iframedecoder/./dec_ref_pic_marking.hpp
// Function: ymn::h264::dec_ref_pic_marking_nonidr::to_string[abi:cxx11]() const
inline std::string dec_ref_pic_marking_nonidr::to_string() const
{
    std::ostringstream stream;

    stream << "  decoded reference picture marking (non-idr):" << std::endl;

    stream << P2(adaptive_ref_pic_marking_mode_flag);
    if (adaptive_ref_pic_marking_mode_flag) {
        uint32_t memory_management_control_operation;
        std::size_t i = 0;

        do {
            memory_management_control_operation = mmco[i].memory_management_control_operation;

            stream << P3(mmco[i].memory_management_control_operation);

            if (memory_management_control_operation == 1 ||
                memory_management_control_operation == 3)
                stream << P3(mmco[i].difference_of_pic_nums_minus1);

            if (memory_management_control_operation == 2)
                stream << P3(mmco[i].long_term_pic_num);

            if (memory_management_control_operation == 3 ||
                memory_management_control_operation == 6)
                stream << P3(mmco[i].long_term_frame_idx);

            if (memory_management_control_operation == 4)
                stream << P3(mmco[i].max_long_term_frame_idx_plus1);

            i++;
        } while ((i < TABLE_ELEMENTS(mmco)) && (memory_management_control_operation != 0));
    }

    return stream.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x2220
leaq 0x9c36(%rip), %rsi      # 0x1c3d1
movl $0x2e, %edx
movq %rbx, %rdi
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0x4, 0x20(%rsp,%rax)
leaq 0xa4c1(%rip), %rsi      # 0x1cca7
movq %rbx, %rdi
xorl %edx, %edx
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq $0x2c, 0x20(%rsp,%rcx)
movq -0x18(%rax), %rax
movl $0xffffff4f, %r15d      # imm = 0xFFFFFF4F
movl 0x28(%rsp,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x28(%rsp,%rax)
leaq 0x9be1(%rip), %rsi      # 0x1c400
movl $0x22, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x5874(%rip), %rsi      # 0x180a7
movl $0x2, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x57dd(%rip), %rsi      # 0x18024
movl $0x2, %edx
movq %rbx, %rdi
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl 0xc(%r14), %esi
movq %rbx, %rdi
callq 0x2100
movq %rax, %rbx
leaq 0x57a8(%rip), %rsi      # 0x18027
movl $0x2, %edx
movq %rax, %rdi
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbx,%rax)
movl 0xc(%r14), %esi
movq %rbx, %rdi
callq 0x2100
movq %rax, %rbx
leaq 0x61bf(%rip), %rsi      # 0x18a76
movl $0x1, %edx
movq %rax, %rdi
callq 0x21d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
cmpl $0x0, 0xc(%r14)
je 0x12d74
addq $0x10, %r14
xorl %ebx, %ebx
leaq 0x10(%rsp), %r12
movl (%r14), %r13d
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x20(%rsp,%rax)
movq %r12, %rdi
leaq 0xa387(%rip), %rsi      # 0x1cca7
xorl %edx, %edx
callq 0x21d0
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rcx
movq $0x2a, 0x20(%rsp,%rcx)
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl $0x2b, %edx
movq %r12, %rdi
leaq 0x9ac9(%rip), %rsi      # 0x1c423
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x5739(%rip), %rsi      # 0x180a7
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x56a2(%rip), %rsi      # 0x18024
callq 0x21d0
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl (%r14), %esi
movq %r12, %rdi
callq 0x2100
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
leaq 0x566c(%rip), %rsi      # 0x18027
callq 0x21d0
movq (%rbp), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbp,%rax)
movl (%r14), %esi
movq %rbp, %rdi
callq 0x2100
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x6083(%rip), %rsi      # 0x18a76
callq 0x21d0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
leal -0x1(%r13), %eax
cmpl $0x5, %eax
ja 0x12d5e
leaq 0x88b8(%rip), %rcx      # 0x1b2ec
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x20(%rsp,%rax)
movq %r12, %rdi
leaq 0xa24e(%rip), %rsi      # 0x1cca7
xorl %edx, %edx
callq 0x21d0
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rcx
movq $0x2a, 0x20(%rsp,%rcx)
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl $0x25, %edx
movq %r12, %rdi
leaq 0x99bc(%rip), %rsi      # 0x1c44f
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x5600(%rip), %rsi      # 0x180a7
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x5569(%rip), %rsi      # 0x18024
callq 0x21d0
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl 0x4(%r14), %esi
movq %r12, %rdi
callq 0x2100
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
leaq 0x5532(%rip), %rsi      # 0x18027
callq 0x21d0
movq (%rbp), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbp,%rax)
movl 0x4(%r14), %esi
movq %rbp, %rdi
callq 0x2100
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5f48(%rip), %rsi      # 0x18a76
callq 0x21d0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
cmpl $0x3, %r13d
je 0x12bd1
cmpl $0x2, %r13d
jne 0x12d5e
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x20(%rsp,%rax)
movq %r12, %rdi
leaq 0xa120(%rip), %rsi      # 0x1cca7
xorl %edx, %edx
callq 0x21d0
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rcx
movq $0x2a, 0x20(%rsp,%rcx)
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl $0x19, %edx
movq %r12, %rdi
leaq 0x98b4(%rip), %rsi      # 0x1c475
callq 0x21d0
movl $0x8, %r15d
jmp 0x12c95
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x20(%rsp,%rax)
movq %r12, %rdi
leaq 0xa0ba(%rip), %rsi      # 0x1cca7
xorl %edx, %edx
callq 0x21d0
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rcx
movq $0x2a, 0x20(%rsp,%rcx)
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl $0x1b, %edx
movq %r12, %rdi
leaq 0x9868(%rip), %rsi      # 0x1c48f
callq 0x21d0
movl $0xc, %r15d
jmp 0x12c95
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x20(%rsp,%rax)
movq %r12, %rdi
leaq 0xa057(%rip), %rsi      # 0x1cca7
xorl %edx, %edx
callq 0x21d0
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rcx
movq $0x2a, 0x20(%rsp,%rcx)
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl $0x25, %edx
movq %r12, %rdi
leaq 0x9821(%rip), %rsi      # 0x1c4ab
callq 0x21d0
movl $0x10, %r15d
movl $0x2, %edx
movq %r12, %rdi
leaq 0x5403(%rip), %rsi      # 0x180a7
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x536c(%rip), %rsi      # 0x18024
callq 0x21d0
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl (%r14,%r15), %esi
movq %r12, %rdi
callq 0x2100
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
leaq 0x5335(%rip), %rsi      # 0x18027
callq 0x21d0
movq (%rbp), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbp,%rax)
movl (%r14,%r15), %esi
movq %rbp, %rdi
callq 0x2100
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5d4b(%rip), %rsi      # 0x18a76
callq 0x21d0
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
movl $0xffffff4f, %r15d      # imm = 0xFFFFFF4F
cmpq $0x2, %rbx
ja 0x12d74
incq %rbx
addq $0x14, %r14
testl %r13d, %r13d
jne 0x12901
leaq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x2260
movq 0xe22b(%rip), %rsi      # 0x20fb8
leaq 0x10(%rsp), %rdi
callq 0x20d0
leaq 0x80(%rsp), %rdi
callq 0x20a0
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop