// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/mpeg/psi/desc_24.h
// Function: desc24_print
static inline void desc24_print(const uint8_t *p_desc, f_print pf_print,
                                void *opaque, print_type_t i_print_type)
{
    uint8_t i;
    uint8_t i_content_reference_id_length;
    uint8_t i_time_base_association_data_length;
    const uint8_t *p_content_reference_id = desc24_get_content_reference_id(p_desc, &i_content_reference_id_length);
    const uint8_t *p_time_base_association_data = desc24_get_time_base_association(p_desc, &i_time_base_association_data_length);
    char psz_content[2 * 255 + 1];
    char psz_time_base[2 * 255 + 1];

    for (i = 0; i < i_content_reference_id_length; i++)
        sprintf(psz_content + 2 * i, "%02x", p_content_reference_id[i]);
    psz_content[2 * i] = '\0';

    for (i = 0; i < i_time_base_association_data_length; i++)
        sprintf(psz_time_base + 2 * i, "%02x", p_time_base_association_data[i]);
    psz_time_base[2 * i] = '\0';


    switch (i_print_type) {
    case PRINT_XML:
        pf_print(opaque,
                 "<CONTENT_LABELING_DESC metadata_application_format=\"0x%04x\""
                 " metadata_application_format_identifier=\"0x%08x\""
                 " content_reference_id_record_flag=\"%u\""
                 " content_reference_id_record_length=\"%u\""
                 " content_reference_id_record=\"%s\""
                 " content_time_base_indicator=\"%u\""
                 " content_time_base_value=\"%" PRIu64 "\""
                 " metadata_time_base_value=\"%" PRIu64 "\""
                 " content_id=\"%u\""
                 " time_base_association_data_length=\"%u\""
                 " time_base_association_data=\"%s\"/>",
                 desc24_get_metadata_application_format(p_desc),
                 desc24_get_metadata_application_format_identifier(p_desc),
                 desc24_get_content_reference_id_record_flag(p_desc),
                 desc24_get_content_reference_id_length(p_desc),
                 psz_content, // desc24_get_content_reference_id_data(p_desc)
                 desc24_get_content_time_base_indicator(p_desc),
                 desc24_get_content_time_base_value(p_desc),
                 desc24_get_metadata_time_base_value(p_desc),
                 desc24_get_content_id(p_desc),
                 desc24_get_time_base_association_data_length(p_desc),
                 psz_time_base // desc24_get_time_base_association_data(p_desc)
                );
        break;
    default:
        pf_print(opaque,
                 "    - desc 24 content_labeling metadata_application_format=0x%04x"
                 " metadata_application_format_identifier=0x%08x"
                 " content_reference_id_record_flag=%u"
                 " content_reference_id_record_length=%u"
                 " content_reference_id_record=\"%s\""
                 " content_time_base_indicator=%u"
                 " content_time_base_value=\"%" PRIu64 "\""
                 " metadata_time_base_value=\"%" PRIu64 "\""
                 " content_id=%u"
                 " time_base_association_data_length=%u"
                 " time_base_association_data=\"%s\"",
                 desc24_get_metadata_application_format(p_desc),
                 desc24_get_metadata_application_format_identifier(p_desc),
                 desc24_get_content_reference_id_record_flag(p_desc),
                 desc24_get_content_reference_id_length(p_desc),
                 psz_content, // desc24_get_content_reference_id_data(p_desc)
                 desc24_get_content_time_base_indicator(p_desc),
                 desc24_get_content_time_base_value(p_desc),
                 desc24_get_metadata_time_base_value(p_desc),
                 desc24_get_content_id(p_desc),
                 desc24_get_time_base_association_data_length(p_desc),
                 psz_time_base // desc24_get_time_base_association_data(p_desc)
                );
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4b8, %rsp            # imm = 0x4B8
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movl %ecx, -0x44(%rbp)
movq -0x30(%rbp), %rdi
leaq -0x46(%rbp), %rsi
callq 0x146b0
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rdi
leaq -0x47(%rbp), %rsi
callq 0x146e0
movq %rax, -0x58(%rbp)
movb $0x0, -0x45(%rbp)
movzbl -0x45(%rbp), %eax
movzbl -0x46(%rbp), %ecx
cmpl %ecx, %eax
jge 0x9d6b
leaq -0x260(%rbp), %rdi
movzbl -0x45(%rbp), %eax
shll %eax
cltq
addq %rax, %rdi
movq -0x50(%rbp), %rax
movzbl -0x45(%rbp), %ecx
movzbl (%rax,%rcx), %edx
leaq 0x1b426(%rip), %rsi     # 0x25180
movb $0x0, %al
callq 0x21e0
movb -0x45(%rbp), %al
addb $0x1, %al
movb %al, -0x45(%rbp)
jmp 0x9d29
movzbl -0x45(%rbp), %eax
shll %eax
cltq
movb $0x0, -0x260(%rbp,%rax)
movb $0x0, -0x45(%rbp)
movzbl -0x45(%rbp), %eax
movzbl -0x47(%rbp), %ecx
cmpl %ecx, %eax
jge 0x9dc1
leaq -0x460(%rbp), %rdi
movzbl -0x45(%rbp), %eax
shll %eax
cltq
addq %rax, %rdi
movq -0x58(%rbp), %rax
movzbl -0x45(%rbp), %ecx
movzbl (%rax,%rcx), %edx
leaq 0x1b3d0(%rip), %rsi     # 0x25180
movb $0x0, %al
callq 0x21e0
movb -0x45(%rbp), %al
addb $0x1, %al
movb %al, -0x45(%rbp)
jmp 0x9d7f
movzbl -0x45(%rbp), %eax
movb $0x0, -0x460(%rbp,%rax,2)
movl -0x44(%rbp), %eax
subl $0x1, %eax
jne 0x9ede
jmp 0x9ddb
movq -0x38(%rbp), %rax
movq %rax, -0x468(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x480(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14510
movzwl %ax, %eax
movl %eax, -0x478(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14710
movl %eax, -0x474(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14530
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x470(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14590
movzbl %al, %eax
movl %eax, -0x46c(%rbp)
leaq -0x260(%rbp), %r13
movq -0x30(%rbp), %rdi
callq 0x144c0
movzbl %al, %r12d
movq -0x30(%rbp), %rdi
callq 0x14780
movq %rax, %r15
movq -0x30(%rbp), %rdi
callq 0x148a0
movq %rax, %r14
movq -0x30(%rbp), %rdi
callq 0x149c0
movzbl %al, %ebx
movq -0x30(%rbp), %rdi
callq 0x14600
movq -0x480(%rbp), %rdi
movl -0x478(%rbp), %edx
movl -0x474(%rbp), %ecx
movl -0x470(%rbp), %r8d
movl -0x46c(%rbp), %r9d
movq -0x468(%rbp), %r10
movzbl %al, %r11d
leaq -0x460(%rbp), %rax
leaq 0x1b75a(%rip), %rsi     # 0x2560d
movq %r13, (%rsp)
movl %r12d, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movl %ebx, 0x20(%rsp)
movl %r11d, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movb $0x0, %al
callq *%r10
jmp 0x9fdc
movq -0x38(%rbp), %rax
movq %rax, -0x488(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x4a0(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14510
movzwl %ax, %eax
movl %eax, -0x498(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14710
movl %eax, -0x494(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14530
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x490(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14590
movzbl %al, %eax
movl %eax, -0x48c(%rbp)
leaq -0x260(%rbp), %r13
movq -0x30(%rbp), %rdi
callq 0x144c0
movzbl %al, %r12d
movq -0x30(%rbp), %rdi
callq 0x14780
movq %rax, %r15
movq -0x30(%rbp), %rdi
callq 0x148a0
movq %rax, %r14
movq -0x30(%rbp), %rdi
callq 0x149c0
movzbl %al, %ebx
movq -0x30(%rbp), %rdi
callq 0x14600
movq -0x4a0(%rbp), %rdi
movl -0x498(%rbp), %edx
movl -0x494(%rbp), %ecx
movl -0x490(%rbp), %r8d
movl -0x48c(%rbp), %r9d
movq -0x488(%rbp), %r10
movzbl %al, %r11d
leaq -0x460(%rbp), %rax
leaq 0x1b7e9(%rip), %rsi     # 0x2579f
movq %r13, (%rsp)
movl %r12d, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movl %ebx, 0x20(%rsp)
movl %r11d, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movb $0x0, %al
callq *%r10
addq $0x4b8, %rsp            # imm = 0x4B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop