// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/mpeg/psi/desc_26.h
// Function: desc26_print
static inline void desc26_print(const uint8_t *p_desc, f_print pf_print,
                                void *opaque, print_type_t i_print_type)
{
    uint8_t i, i_service_identification_record_length;
    const uint8_t *p_service_identification_record = desc26_get_service_identification_record(p_desc, &i_service_identification_record_length);
    char psz_service_identification_record[2 * 256 + 1];
    const char *extra_str = "decoder_config";
    const uint8_t *p_extra = NULL;
    uint8_t i_extra_length = 0;
    char psz_extra[2 * 256 + 1];

    for (i = 0; i < i_service_identification_record_length; i++)
        sprintf(psz_service_identification_record + 2 * i, "%02x", p_service_identification_record[i]);
    psz_service_identification_record[2 * i] = '\0';

    if (desc26_get_decoder_config_flags(p_desc) == 1) {
        p_extra = desc26_get_decoder_config(p_desc, &i_extra_length);
    }
    if (desc26_get_decoder_config_flags(p_desc) == 3) {
        extra_str = "dec_config_identification_record";
        p_extra = desc26_get_dec_config_identification_record(p_desc, &i_extra_length);
    }
    for (i = 0; i < i_extra_length; i++)
        sprintf(psz_extra + 2 * i, "%02x", p_extra[i]);
    psz_extra[2 * i] = '\0';

    switch (i_print_type) {
    case PRINT_XML:
        pf_print(opaque,
                 "<METADATA_DESC metadata_application_format=\"0x%04x\""
                 " metadata_application_format_identifier=\"0x%08x\""
                 " metadata_format=\"0x%02x\""
                 " metadata_format_identifier=\"0x%08x\""
                 " metadata_service_id=\"0x%02x\""

                 " dsm_cc_flag=\"%u\""
                 " service_identification_record_length=\"%u\""
                 " service_identification_record=\"%s\""

                 " decoder_config_flags=\"%u\""
                 " %s_length=\"%u\""
                 " %s_data=\"%s\""
                 " decoder_config_metadata_service_id=\"%u\"/>",
                 desc26_get_metadata_application_format(p_desc),
                 desc26_get_metadata_application_format_identifier(p_desc),
                 desc26_get_metadata_format(p_desc),
                 desc26_get_metadata_format_identifier(p_desc),
                 desc26_get_metadata_service_id(p_desc),
                 desc26_get_dsm_cc_flag(p_desc),

                 desc26_get_service_identification_record_length(p_desc),
                 psz_service_identification_record,

                 desc26_get_decoder_config_flags(p_desc),
                 extra_str, i_extra_length,
                 extra_str, psz_extra,
                 desc26_get_decoder_config_metadata_service_id(p_desc)
                );
        break;
    default:
        pf_print(opaque,
                 "    - desc 26 metadata metadata_application_format=0x%04x"
                 " metadata_application_format_identifier=0x%08x"
                 " metadata_format=0x%02x"
                 " metadata_format_identifier=0x%08x"
                 " metadata_service_id=0x%02x"

                 " dsm_cc_flag=%u"
                 " service_identification_record_length=%u"
                 " service_identification_record=\"%s\""

                 " decoder_config_flags=%u"
                 " %s_length=%u"
                 " %s_data=\"%s\""
                 " decoder_config_metadata_service_id=%u",
                 desc26_get_metadata_application_format(p_desc),
                 desc26_get_metadata_application_format_identifier(p_desc),
                 desc26_get_metadata_format(p_desc),
                 desc26_get_metadata_format_identifier(p_desc),
                 desc26_get_metadata_service_id(p_desc),
                 desc26_get_dsm_cc_flag(p_desc),

                 desc26_get_service_identification_record_length(p_desc),
                 psz_service_identification_record,

                 desc26_get_decoder_config_flags(p_desc),
                 extra_str, i_extra_length,
                 extra_str, psz_extra,
                 desc26_get_decoder_config_metadata_service_id(p_desc)
                );
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x518, %rsp            # imm = 0x518
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 0x15700
movq %rax, -0x50(%rbp)
leaq 0x1b83b(%rip), %rax     # 0x25c06
movq %rax, -0x268(%rbp)
movq $0x0, -0x270(%rbp)
movb $0x0, -0x271(%rbp)
movb $0x0, -0x45(%rbp)
movzbl -0x45(%rbp), %eax
movzbl -0x46(%rbp), %ecx
cmpl %ecx, %eax
jge 0xa42a
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 0x1ad67(%rip), %rsi     # 0x25180
movb $0x0, %al
callq 0x21e0
movb -0x45(%rbp), %al
addb $0x1, %al
movb %al, -0x45(%rbp)
jmp 0xa3e8
movzbl -0x45(%rbp), %eax
shll %eax
cltq
movb $0x0, -0x260(%rbp,%rax)
movq -0x30(%rbp), %rdi
callq 0x153d0
movzbl %al, %eax
cmpl $0x1, %eax
jne 0xa462
movq -0x30(%rbp), %rdi
leaq -0x271(%rbp), %rsi
callq 0x15730
movq %rax, -0x270(%rbp)
movq -0x30(%rbp), %rdi
callq 0x153d0
movzbl %al, %eax
cmpl $0x3, %eax
jne 0xa498
leaq 0x1b79b(%rip), %rax     # 0x25c15
movq %rax, -0x268(%rbp)
movq -0x30(%rbp), %rdi
leaq -0x271(%rbp), %rsi
callq 0x15760
movq %rax, -0x270(%rbp)
movb $0x0, -0x45(%rbp)
movzbl -0x45(%rbp), %eax
movzbl -0x271(%rbp), %ecx
cmpl %ecx, %eax
jge 0xa4e4
leaq -0x480(%rbp), %rdi
movzbl -0x45(%rbp), %eax
shll %eax
cltq
addq %rax, %rdi
movq -0x270(%rbp), %rax
movzbl -0x45(%rbp), %ecx
movzbl (%rax,%rcx), %edx
leaq 0x1acad(%rip), %rsi     # 0x25180
movb $0x0, %al
callq 0x21e0
movb -0x45(%rbp), %al
addb $0x1, %al
movb %al, -0x45(%rbp)
jmp 0xa49c
movzbl -0x45(%rbp), %eax
movb $0x0, -0x480(%rbp,%rax,2)
movl -0x44(%rbp), %eax
subl $0x1, %eax
jne 0xa661
jmp 0xa4fe
movq -0x38(%rbp), %rax
movq %rax, -0x498(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x4b8(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14510
movzwl %ax, %eax
movl %eax, -0x4b0(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14710
movl %eax, -0x4ac(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14cc0
movzbl %al, %eax
movl %eax, -0x4a8(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14e50
movl %eax, -0x4a4(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14f00
movzbl %al, %eax
movl %eax, -0x490(%rbp)
movq -0x30(%rbp), %rdi
callq 0x15450
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x48c(%rbp)
movq -0x30(%rbp), %rdi
callq 0x154d0
movzbl %al, %eax
movl %eax, -0x488(%rbp)
leaq -0x260(%rbp), %r13
movq -0x30(%rbp), %rdi
callq 0x153d0
movzbl %al, %r12d
movq -0x268(%rbp), %r15
movzbl -0x271(%rbp), %r14d
movq -0x268(%rbp), %rbx
leaq -0x480(%rbp), %rax
movq %rax, -0x4a0(%rbp)
movq -0x30(%rbp), %rdi
callq 0x15790
movq -0x4b8(%rbp), %rdi
movl -0x4b0(%rbp), %edx
movl -0x4ac(%rbp), %ecx
movl -0x4a8(%rbp), %r8d
movl -0x4a4(%rbp), %r9d
movq -0x4a0(%rbp), %r11
movq -0x498(%rbp), %r10
movb %al, %sil
movl -0x490(%rbp), %eax
movzbl %sil, %esi
movl %esi, -0x484(%rbp)
leaq 0x1b61e(%rip), %rsi     # 0x25c36
movl %eax, (%rsp)
movl -0x48c(%rbp), %eax
movl %eax, 0x8(%rsp)
movl -0x488(%rbp), %eax
movl %eax, 0x10(%rsp)
movl -0x484(%rbp), %eax
movq %r13, 0x18(%rsp)
movl %r12d, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movl %r14d, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r11, 0x40(%rsp)
movl %eax, 0x48(%rsp)
movb $0x0, %al
callq *%r10
jmp 0xa7bf
movq -0x38(%rbp), %rax
movq %rax, -0x4d0(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x4f0(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14510
movzwl %ax, %eax
movl %eax, -0x4e8(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14710
movl %eax, -0x4e4(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14cc0
movzbl %al, %eax
movl %eax, -0x4e0(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14e50
movl %eax, -0x4dc(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14f00
movzbl %al, %eax
movl %eax, -0x4c8(%rbp)
movq -0x30(%rbp), %rdi
callq 0x15450
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4c4(%rbp)
movq -0x30(%rbp), %rdi
callq 0x154d0
movzbl %al, %eax
movl %eax, -0x4c0(%rbp)
leaq -0x260(%rbp), %r13
movq -0x30(%rbp), %rdi
callq 0x153d0
movzbl %al, %r12d
movq -0x268(%rbp), %r15
movzbl -0x271(%rbp), %r14d
movq -0x268(%rbp), %rbx
leaq -0x480(%rbp), %rax
movq %rax, -0x4d8(%rbp)
movq -0x30(%rbp), %rdi
callq 0x15790
movq -0x4f0(%rbp), %rdi
movl -0x4e8(%rbp), %edx
movl -0x4e4(%rbp), %ecx
movl -0x4e0(%rbp), %r8d
movl -0x4dc(%rbp), %r9d
movq -0x4d8(%rbp), %r11
movq -0x4d0(%rbp), %r10
movb %al, %sil
movl -0x4c8(%rbp), %eax
movzbl %sil, %esi
movl %esi, -0x4bc(%rbp)
leaq 0x1b637(%rip), %rsi     # 0x25db2
movl %eax, (%rsp)
movl -0x4c4(%rbp), %eax
movl %eax, 0x8(%rsp)
movl -0x4c0(%rbp), %eax
movl %eax, 0x10(%rsp)
movl -0x4bc(%rbp), %eax
movq %r13, 0x18(%rsp)
movl %r12d, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movl %r14d, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r11, 0x40(%rsp)
movl %eax, 0x48(%rsp)
movb $0x0, %al
callq *%r10
addq $0x518, %rsp            # imm = 0x518
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)