// File: /workspace/github_c_makefile_star2_O1/videolan[P]bitstream/examples/./bitstream/dvb/si/desc_5b.h
// Function: desc5b_print
static inline void desc5b_print(const uint8_t *p_desc,
                                f_print pf_print, void *print_opaque,
                                f_iconv pf_iconv, void *iconv_opaque,
                                print_type_t i_print_type)
{
    bool b_bouquet = desc_get_tag(p_desc) == 0x5c;

    desc5b_each_data(p_desc, p_desc_n) {
        uint8_t i_network_name_length;
        const uint8_t *p_network_name = desc5bn_get_networkname(p_desc_n, &i_network_name_length);
        char *psz_network_name = dvb_string_get(p_network_name, i_network_name_length, pf_iconv, iconv_opaque);
        switch (i_print_type) {
        case PRINT_XML:
            psz_network_name = dvb_string_xml_escape(psz_network_name);
            pf_print(print_opaque,
                     !b_bouquet
                      ? "<MULTILINGUAL_NETWORK_NAME_DESC code=\"%3.3s\" networkname=\"%s\"/>"
                      : "<MULTILINGUAL_BOUQUET_NAME_DESC code=\"%3.3s\" bouquetname=\"%s\"/>",
                     desc5bn_get_code(p_desc_n),
                     psz_network_name
                    );
            break;
        default:
            pf_print(print_opaque,
                     !b_bouquet
                      ? "    - desc 5b multilingual_network_name code=\"%3.3s\" networkname=\"%s\""
                      : "    - desc 5c multilingual_bouquet_name code=\"%3.3s\" bouquetname=\"%s\"",
                     desc5bn_get_code(p_desc_n),
                     psz_network_name
                    );
        }
        free(psz_network_name);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
cmpb $0x4, 0x1(%rdi)
jb 0x10b23
movl %edx, %ebx
movq 0x8(%rsp), %rax
leaq 0x2(%rax), %r15
cmpb $0x5c, (%rax)
leaq 0x6b77(%rip), %rax      # 0x174cc
leaq 0x6b2a(%rip), %rcx      # 0x17486
cmoveq %rax, %rcx
movq %rcx, 0x20(%rsp)
leaq 0x6ada(%rip), %rax      # 0x17446
leaq 0x6a93(%rip), %rcx      # 0x17406
cmoveq %rax, %rcx
movq %rcx, 0x18(%rsp)
movq %r15, %rbp
movzbl 0x3(%rbp), %r14d
testq %r14, %r14
je 0x109ab
leaq 0x4(%rbp), %r12
movzbl (%r12), %eax
testq %rax, %rax
je 0x10a30
cmpb $0x1f, %al
jbe 0x109bc
leaq 0x4e14(%rip), %rsi      # 0x157ba
jmp 0x10a32
leaq 0x92b0(%rip), %rdi      # 0x19c62
callq 0x3200
jmp 0x10a48
leaq -0x1(%r14), %rcx
cmpl $0x10, %eax
setne %dl
cmpq $0x2, %rcx
setb %sil
orb %dl, %sil
jne 0x10a02
movb 0x6(%rbp), %al
leaq 0x7(%rbp), %r12
addq $-0x3, %r14
cmpb $0x0, 0x5(%rbp)
setne %cl
leal -0x10(%rax), %edx
cmpb $-0xf, %dl
setb %dl
orb %cl, %dl
jne 0x10a30
movzbl %al, %eax
leaq 0xcd24(%rip), %rcx      # 0x1d720
movq (%rcx,%rax,8), %rsi
jmp 0x10a32
cmpl $0x1f, %eax
setne %dl
testq %rcx, %rcx
sete %sil
orb %dl, %sil
je 0x10a28
leaq 0x5(%rbp), %r12
leaq 0xcd91(%rip), %rdx      # 0x1d7b0
movq (%rdx,%rax,8), %rsi
movq %rcx, %r14
jmp 0x10a32
leaq 0x6(%rbp), %r12
addq $-0x2, %r14
xorl %esi, %esi
testq %r14, %r14
je 0x10a4d
testq %rsi, %rsi
je 0x10a4d
xorl %edi, %edi
movq %r12, %rdx
movq %r14, %rcx
callq *0x10(%rsp)
movq %rax, %r13
jmp 0x10a6d
leaq 0x1(%r14), %rdi
callq 0x3160
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x3150
movb $0x0, (%r13,%r14)
cmpl $0x1, %ebx
jne 0x10aa7
testq %r13, %r13
je 0x10abb
movq %r13, %rdi
xorl %esi, %esi
callq 0x1143e
movq %rax, %rdi
callq 0x3160
movl $0x0, %r14d
testq %rax, %rax
je 0x10abe
movq %rax, %r12
movq %r13, %rdi
movq %rax, %rsi
callq 0x1143e
movq %r12, %r14
jmp 0x10abe
movq 0x20(%rsp), %rsi
movq %rbp, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x8c56
jmp 0x10adb
xorl %r14d, %r14d
movq %r13, %rdi
callq 0x3030
movq 0x18(%rsp), %rsi
movq %rbp, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x8c56
movq %r14, %r13
movq %r13, %rdi
callq 0x3030
movzbl 0x3(%rbp), %ecx
leaq (%rcx,%rbp), %rax
addq $0x4, %rax
cmpq %rax, %r15
jbe 0x10af8
xorl %ebp, %ebp
jmp 0x10b1a
addq %rcx, %rbp
addq $0x8, %rbp
movq 0x8(%rsp), %rcx
movzbl 0x1(%rcx), %ecx
addq %r15, %rcx
cmpq %rcx, %rbp
movl $0x0, %ecx
cmovaq %rcx, %rax
movq %rax, %rbp
testq %rbp, %rbp
jne 0x1097f
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq