// File: /workspace/github_c_makefile_star2_O1/videolan[P]bitstream/examples/./bitstream/dvb/si/desc_40.h
// Function: desc40_print
static inline void desc40_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)
{
    uint8_t i_network_name_length;
    bool b_bouquet_name = desc_get_tag(p_desc) == 0x47;
    const uint8_t *p_network_name = desc40_get_networkname(p_desc,
                                                     &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);
        if ( !b_bouquet_name )
            pf_print(print_opaque, "<NETWORK_NAME_DESC networkname=\"%s\"/>",
                     psz_network_name);
        else
            pf_print(print_opaque, "<BOUQUET_NAME_DESC bouquetname=\"%s\"/>",
                     psz_network_name);
        break;
    default:
        if ( !b_bouquet_name )
            pf_print(print_opaque, "    - desc 40 networkname=\"%s\"",
                     psz_network_name);
        else
            pf_print(print_opaque, "    - desc 47 bouquetname=\"%s\"",
                     psz_network_name);
    }
    free(psz_network_name);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movb (%rdi), %bpl
movzbl 0x1(%rdi), %r14d
testq %r14, %r14
je 0x1066b
movq %rsi, %rax
leaq 0x2(%rdi), %r15
movzbl (%r15), %ecx
testq %rcx, %rcx
je 0x106bb
cmpb $0x1f, %cl
jbe 0x10679
leaq 0x5151(%rip), %rsi      # 0x157ba
jmp 0x106bd
leaq 0x95f0(%rip), %rdi      # 0x19c62
callq 0x3200
jmp 0x106d1
leaq -0x1(%r14), %rdx
cmpl $0x10, %ecx
setne %sil
cmpq $0x2, %rdx
setb %r8b
orb %sil, %r8b
jne 0x10786
movb 0x4(%rdi), %cl
leaq 0x5(%rdi), %r15
addq $-0x3, %r14
cmpb $0x0, 0x3(%rdi)
setne %dl
leal -0x10(%rcx), %esi
cmpb $-0xf, %sil
setb %sil
orb %dl, %sil
je 0x107b3
xorl %esi, %esi
testq %r14, %r14
je 0x106d6
testq %rsi, %rsi
je 0x106d6
xorl %edi, %edi
movq %r15, %rdx
movq %r14, %rcx
callq *%rax
movq %rax, %r12
jmp 0x106f5
leaq 0x1(%r14), %rdi
callq 0x3160
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3150
movb $0x0, (%r12,%r14)
cmpl $0x1, %ebx
jne 0x10740
xorl %ebx, %ebx
testq %r12, %r12
je 0x10729
movq %r12, %rdi
xorl %esi, %esi
callq 0x1143e
movq %rax, %rdi
callq 0x3160
testq %rax, %rax
je 0x10729
movq %rax, %r14
movq %r12, %rdi
movq %rax, %rsi
callq 0x1143e
movq %r14, %rbx
movq %r12, %rdi
callq 0x3030
cmpb $0x47, %bpl
jne 0x1074f
leaq 0x5018(%rip), %rsi      # 0x15756
jmp 0x10756
cmpb $0x47, %bpl
jne 0x10762
leaq 0x504e(%rip), %rsi      # 0x1579b
jmp 0x10769
leaq 0x4fda(%rip), %rsi      # 0x15730
movq %rbx, %rdx
xorl %eax, %eax
callq 0x8c56
jmp 0x10776
leaq 0x5013(%rip), %rsi      # 0x1577c
movq %r12, %rdx
xorl %eax, %eax
callq 0x8c56
movq %r12, %rbx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3030
cmpl $0x1f, %ecx
setne %sil
testq %rdx, %rdx
sete %r8b
orb %sil, %r8b
je 0x107c6
addq $0x3, %rdi
leaq 0xd00c(%rip), %rsi      # 0x1d7b0
movq (%rsi,%rcx,8), %rsi
movq %rdi, %r15
movq %rdx, %r14
jmp 0x106bd
movzbl %cl, %ecx
leaq 0xcf63(%rip), %rdx      # 0x1d720
movq (%rdx,%rcx,8), %rsi
jmp 0x106bd
addq $0x4, %rdi
addq $-0x2, %r14
xorl %esi, %esi
movq %rdi, %r15
jmp 0x106bd