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

    stream << "  reference picture list modification:" << std::endl;

    stream << P2(ref_pic_list_modification_flag_lx);
    if (ref_pic_list_modification_flag_lx) {
        uint32_t modification_of_pic_nums_idc;
        std::size_t i = 0;

        do {
            modification_of_pic_nums_idc = m[i].modification_of_pic_nums_idc;

            stream << P3(m[i].modification_of_pic_nums_idc);

            if (modification_of_pic_nums_idc == 0 || modification_of_pic_nums_idc == 1)
                stream << P3(m[i].u.abs_diff_pic_num_minus1);
            else
            if (modification_of_pic_nums_idc == 2)
                stream << P3(m[i].u.long_term_pic_num);

            i++;
        } while ((i < TABLE_ELEMENTS(m)) && (modification_of_pic_nums_idc != 3));
    }

    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 0xb77d(%rip), %rsi      # 0x1c0b6
movl $0x26, %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 0xc323(%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, %ebp       # imm = 0xFFFFFF4F
movl 0x28(%rsp,%rax), %ecx
andl %ebp, %ecx
orl $0x20, %ecx
movl %ecx, 0x28(%rsp,%rax)
leaq 0xb722(%rip), %rsi      # 0x1c0dd
movl $0x21, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x76d8(%rip), %rsi      # 0x180a7
movl $0x2, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x7641(%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 0x760c(%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 0x8023(%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 0x10d6b
xorl %ebx, %ebx
leaq 0xc20c(%rip), %r15      # 0x1cca7
leaq 0x10(%rsp), %r12
movl 0x10(%r14,%rbx,8), %r13d
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x20(%rsp,%rax)
movq %r12, %rdi
movq %r15, %rsi
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 %ebp, %ecx
orl $0x20, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl $0x21, %edx
movq %r12, %rdi
leaq 0xb609(%rip), %rsi      # 0x1c0ff
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x759d(%rip), %rsi      # 0x180a7
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x7506(%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 0x10(%r14,%rbx,8), %esi
movq %r12, %rdi
callq 0x2100
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
leaq 0x74ce(%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 0x10(%r14,%rbx,8), %esi
movq %rbp, %rdi
callq 0x2100
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x7ee3(%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 $0x1, %r13d
ja 0x10c1e
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x20(%rsp,%rax)
movq %r12, %rdi
movq %r15, %rsi
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
movl $0xffffff4f, %edx       # imm = 0xFFFFFF4F
andl %edx, %ecx
orl $0x20, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl $0x1e, %edx
movq %r12, %rdi
leaq 0xb505(%rip), %rsi      # 0x1c121
jmp 0x10c82
movl $0xffffff4f, %ebp       # imm = 0xFFFFFF4F
cmpl $0x2, %r13d
jne 0x10d4c
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x20(%rsp,%rax)
movq %r12, %rdi
leaq 0xc05e(%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 %ebp, %ecx
orl $0x20, %ecx
movl %ecx, 0x28(%rsp,%rax)
movl $0x18, %edx
movq %r12, %rdi
leaq 0xb4be(%rip), %rsi      # 0x1c140
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x7411(%rip), %rsi      # 0x180a7
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x737a(%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 0x14(%r14,%rbx,8), %esi
movq %r12, %rdi
callq 0x2100
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
leaq 0x7342(%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 0x14(%r14,%rbx,8), %esi
movq %rbp, %rdi
callq 0x2100
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x7d57(%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
cmpq $0x2, %rbx
movl $0xffffff4f, %ebp       # imm = 0xFFFFFF4F
leaq 0xbf4b(%rip), %r15      # 0x1cca7
ja 0x10d6b
incq %rbx
cmpl $0x3, %r13d
jne 0x10aa0
leaq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x2260
movq 0x10234(%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