// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/mpeg/psi/desc_25.h
// Function: desc25_print
static inline void desc25_print(const uint8_t *p_desc, f_print pf_print,
                                void *opaque, print_type_t i_print_type)
{
    uint8_t i, i_metadata_locator_record_length;
    const uint8_t *p_metadata_locator_record = desc25_get_metadata_locator_record(p_desc, &i_metadata_locator_record_length);
    char psz_metadata_locator_record[2 * 255 + 1];

    for (i = 0; i < i_metadata_locator_record_length; i++)
        sprintf(psz_metadata_locator_record + 2 * i, "%02x", p_metadata_locator_record[i]);
    psz_metadata_locator_record[2 * i] = '\0';

    switch (i_print_type) {
    case PRINT_XML:
        pf_print(opaque,
                 "<METADATA_POINTER_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\""
                 " metadata_locator_record_flag=\"%u\""
                 " metadata_locator_record_length=\"%u\""
                 " metadata_locator_record=\"%s\""
                 " mpeg_carriage_flags=\"%u\""
                 " program_number=\"%u\" ts_location=\"%u\" ts_id=\"%u\"/>",
                 desc25_get_metadata_application_format(p_desc),
                 desc25_get_metadata_application_format_identifier(p_desc),
                 desc25_get_metadata_format(p_desc),
                 desc25_get_metadata_format_identifier(p_desc),
                 desc25_get_metadata_service_id(p_desc),
                 desc25_get_metadata_locator_record_flag(p_desc),
                 desc25_get_metadata_locator_record_length(p_desc),
                 psz_metadata_locator_record, // desc25_get_metadata_locator_record_data(p_desc)
                 desc25_get_mpeg_carriage_flags(p_desc),
                 desc25_get_program_number(p_desc),
                 desc25_get_ts_location(p_desc),
                 desc25_get_ts_id(p_desc)
                );
        break;
    default:
        pf_print(opaque,
                 "    - desc 25 metadata_pointer_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"
                 " metadata_locator_record_flag=%u"
                 " metadata_locator_record_length=%u"
                 " metadata_locator_record=\"%s\""
                 " mpeg_carriage_flags=%u"
                 " program_number=%u ts_location=%u ts_id=%u",
                 desc25_get_metadata_application_format(p_desc),
                 desc25_get_metadata_application_format_identifier(p_desc),
                 desc25_get_metadata_format(p_desc),
                 desc25_get_metadata_format_identifier(p_desc),
                 desc25_get_metadata_service_id(p_desc),
                 desc25_get_metadata_locator_record_flag(p_desc),
                 desc25_get_metadata_locator_record_length(p_desc),
                 psz_metadata_locator_record, // desc25_get_metadata_locator_record_data(p_desc)
                 desc25_get_mpeg_carriage_flags(p_desc),
                 desc25_get_program_number(p_desc),
                 desc25_get_ts_location(p_desc),
                 desc25_get_ts_id(p_desc)
                );
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
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 0x14e20
movq %rax, -0x50(%rbp)
movb $0x0, -0x45(%rbp)
movzbl -0x45(%rbp), %eax
movzbl -0x46(%rbp), %ecx
cmpl %ecx, %eax
jge 0xa0aa
leaq -0x250(%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 0x1b0e7(%rip), %rsi     # 0x25180
movb $0x0, %al
callq 0x21e0
movb -0x45(%rbp), %al
addb $0x1, %al
movb %al, -0x45(%rbp)
jmp 0xa068
movzbl -0x45(%rbp), %eax
movb $0x0, -0x250(%rbp,%rax,2)
movl -0x44(%rbp), %eax
subl $0x1, %eax
jne 0xa201
jmp 0xa0c4
movq -0x38(%rbp), %rax
movq %rax, -0x260(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x280(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14510
movzwl %ax, %eax
movl %eax, -0x274(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14710
movl %eax, -0x270(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14cc0
movzbl %al, %eax
movl %eax, -0x26c(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14e50
movl %eax, -0x268(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14f00
movzbl %al, %eax
movl %eax, -0x258(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14d10
andb $0x1, %al
movzbl %al, %r13d
movq -0x30(%rbp), %rdi
callq 0x14d90
movzbl %al, %r12d
leaq -0x250(%rbp), %r15
movq -0x30(%rbp), %rdi
callq 0x14c40
movzbl %al, %r14d
movq -0x30(%rbp), %rdi
callq 0x14f70
movzwl %ax, %ebx
movq -0x30(%rbp), %rdi
callq 0x15070
movzwl %ax, %eax
movl %eax, -0x264(%rbp)
movq -0x30(%rbp), %rdi
callq 0x15160
movq -0x280(%rbp), %rdi
movl -0x274(%rbp), %edx
movl -0x270(%rbp), %ecx
movl -0x26c(%rbp), %r8d
movl -0x268(%rbp), %r9d
movl -0x264(%rbp), %r11d
movq -0x260(%rbp), %r10
movw %ax, %si
movl -0x258(%rbp), %eax
movzwl %si, %esi
movl %esi, -0x254(%rbp)
leaq 0x1b75c(%rip), %rsi     # 0x25929
movl %eax, (%rsp)
movl -0x254(%rbp), %eax
movl %r13d, 0x8(%rsp)
movl %r12d, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movl %r14d, 0x20(%rsp)
movl %ebx, 0x28(%rsp)
movl %r11d, 0x30(%rsp)
movl %eax, 0x38(%rsp)
movb $0x0, %al
callq *%r10
jmp 0xa339
movq -0x38(%rbp), %rax
movq %rax, -0x290(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14510
movzwl %ax, %eax
movl %eax, -0x2a4(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14710
movl %eax, -0x2a0(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14cc0
movzbl %al, %eax
movl %eax, -0x29c(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14e50
movl %eax, -0x298(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14f00
movzbl %al, %eax
movl %eax, -0x288(%rbp)
movq -0x30(%rbp), %rdi
callq 0x14d10
andb $0x1, %al
movzbl %al, %r13d
movq -0x30(%rbp), %rdi
callq 0x14d90
movzbl %al, %r12d
leaq -0x250(%rbp), %r15
movq -0x30(%rbp), %rdi
callq 0x14c40
movzbl %al, %r14d
movq -0x30(%rbp), %rdi
callq 0x14f70
movzwl %ax, %ebx
movq -0x30(%rbp), %rdi
callq 0x15070
movzwl %ax, %eax
movl %eax, -0x294(%rbp)
movq -0x30(%rbp), %rdi
callq 0x15160
movq -0x2b0(%rbp), %rdi
movl -0x2a4(%rbp), %edx
movl -0x2a0(%rbp), %ecx
movl -0x29c(%rbp), %r8d
movl -0x298(%rbp), %r9d
movl -0x294(%rbp), %r11d
movq -0x290(%rbp), %r10
movw %ax, %si
movl -0x288(%rbp), %eax
movzwl %si, %esi
movl %esi, -0x284(%rbp)
leaq 0x1b793(%rip), %rsi     # 0x25a9d
movl %eax, (%rsp)
movl -0x284(%rbp), %eax
movl %r13d, 0x8(%rsp)
movl %r12d, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movl %r14d, 0x20(%rsp)
movl %ebx, 0x28(%rsp)
movl %r11d, 0x30(%rsp)
movl %eax, 0x38(%rsp)
movb $0x0, %al
callq *%r10
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax,%rax)