// File: /workspace/github_cpp_makefile_star2_O1/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 0xc471(%rip), %rsi      # 0x1d0c6
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 0xd017(%rip), %rsi      # 0x1dcb7
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 0xc416(%rip), %rsi      # 0x1d0ed
movl $0x21, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x83bc(%rip), %rsi      # 0x190a7
movl $0x2, %edx
movq %rbx, %rdi
callq 0x21d0
leaq 0x8325(%rip), %rsi      # 0x19024
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 0x82f0(%rip), %rsi      # 0x19027
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 0x8d07(%rip), %rsi      # 0x19a76
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 0x11087
xorl %ebx, %ebx
leaq 0xcf00(%rip), %r15      # 0x1dcb7
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 0xc2fd(%rip), %rsi      # 0x1d10f
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x8281(%rip), %rsi      # 0x190a7
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x81ea(%rip), %rsi      # 0x19024
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 0x81b2(%rip), %rsi      # 0x19027
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 0x8bc7(%rip), %rsi      # 0x19a76
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 0x10f3a
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 0xc1f9(%rip), %rsi      # 0x1d131
jmp 0x10f9e
movl $0xffffff4f, %ebp       # imm = 0xFFFFFF4F
cmpl $0x2, %r13d
jne 0x11068
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x20(%rsp,%rax)
movq %r12, %rdi
leaq 0xcd52(%rip), %rsi      # 0x1dcb7
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 0xc1b2(%rip), %rsi      # 0x1d150
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x80f5(%rip), %rsi      # 0x190a7
callq 0x21d0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x805e(%rip), %rsi      # 0x19024
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 0x8026(%rip), %rsi      # 0x19027
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 0x8a3b(%rip), %rsi      # 0x19a76
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 0xcc3f(%rip), %r15      # 0x1dcb7
ja 0x11087
incq %rbx
cmpl $0x3, %r13d
jne 0x10dbc
leaq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x2260
movq 0x10f18(%rip), %rsi     # 0x21fb8
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