// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/dvb/si/desc_6e.h
// Function: desc6e_print
static inline void desc6e_print(uint8_t *p_desc, f_print pf_print,
                                void *opaque, print_type_t i_print_type)
{
    switch (i_print_type) {
    case PRINT_XML:
        pf_print(opaque,
            "<ANNOUNCEMENT_SUPPORT_DESC announcement_support_indicator=\"0x%04x\""
            " emergency_alarm_flag=\"%u\""
            " road_traffic_flash_flag=\"%u\""
            " public_transport_flash_flag=\"%u\""
            " warning_message_flag=\"%u\""
            " news_flash_flag=\"%u\""
            " weather_flash_flag=\"%u\""
            " event_announcement_flag=\"%u\""
            " personal_call_flag=\"%u\">",
            desc6e_get_announcement_support_indicator(p_desc),
            desc6e_get_emergency_alarm_flag(p_desc),
            desc6e_get_road_traffic_flash_flag(p_desc),
            desc6e_get_public_transport_flash_flag(p_desc),
            desc6e_get_warning_message_flag(p_desc),
            desc6e_get_news_flash_flag(p_desc),
            desc6e_get_weather_flash_flag(p_desc),
            desc6e_get_event_announcement_flag(p_desc),
            desc6e_get_personal_call_flag(p_desc)
        );
        break;
    default:
        pf_print(opaque,
            "    - desc 6e announcement_support announcement_support_indicator=0x%04x"
            " emergency_alarm_flag=%u"
            " road_traffic_flash_flag=%u"
            " public_transport_flash_flag=%u"
            " warning_message_flag=%u"
            " news_flash_flag=%u"
            " weather_flash_flag=%u"
            " event_announcement_flag=%u"
            " personal_call_flag=%u",
            desc6e_get_announcement_support_indicator(p_desc),
            desc6e_get_emergency_alarm_flag(p_desc),
            desc6e_get_road_traffic_flash_flag(p_desc),
            desc6e_get_public_transport_flash_flag(p_desc),
            desc6e_get_warning_message_flag(p_desc),
            desc6e_get_news_flash_flag(p_desc),
            desc6e_get_weather_flash_flag(p_desc),
            desc6e_get_event_announcement_flag(p_desc),
            desc6e_get_personal_call_flag(p_desc)
        );
    }

    desc6e_each_announcement(p_desc, p_desc_n) {
        uint8_t i_announcement_type = desc6en_get_announcement_type(p_desc_n);
        uint8_t i_reference_type = desc6en_get_reference_type(p_desc_n);
        bool b_extra_data = (i_reference_type == 0x01 || i_reference_type == 0x02 || i_reference_type == 0x03);
        switch (i_print_type) {
        case PRINT_XML:
            if (!b_extra_data)
                pf_print(opaque,
                    "<ANNOUNCEMENT type=\"%u\" type_txt=\"%s\" reference_type=\"%u\"/>",
                    i_announcement_type,
                    desc6e_get_announcement_type_txt(i_announcement_type),
                    i_reference_type
                );
            else
                pf_print(opaque,
                    "<ANNOUNCEMENT type=\"%u\" type_txt=\"%s\" reference_type=\"%u\""
                    " onid=\"%u\" tsid=\"%u\" service_id=\"%u\" component_tag=\"%u\"/>",
                    i_announcement_type,
                    desc6e_get_announcement_type_txt(i_announcement_type),
                    i_reference_type,
                    desc6en_get_onid(p_desc_n),
                    desc6en_get_tsid(p_desc_n),
                    desc6en_get_service_id(p_desc_n),
                    desc6en_get_component_tag(p_desc_n)
                );
            break;
        default:
            if (!b_extra_data)
                pf_print(opaque,
                    "        - announcement type=%u type_txt=\"%s\" reference_type=%u",
                    i_announcement_type,
                    desc6e_get_announcement_type_txt(i_announcement_type),
                    i_reference_type
                );
            else
                pf_print(opaque,
                    "        - announcement type=%u type_txt=\"%s\" reference_type=%u"
                    " onid=%u tsid=%u service_id=%u component_tag=%u",
                    i_announcement_type,
                    desc6e_get_announcement_type_txt(i_announcement_type),
                    i_reference_type,
                    desc6en_get_onid(p_desc_n),
                    desc6en_get_tsid(p_desc_n),
                    desc6en_get_service_id(p_desc_n),
                    desc6en_get_component_tag(p_desc_n)
                );
        }
    }

    if (i_print_type == PRINT_XML)
        pf_print(opaque, "</ANNOUNCEMENT_SUPPORT_DESC>");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movl %ecx, -0x34(%rbp)
movl -0x34(%rbp), %eax
subl $0x1, %eax
jne 0x1121b
jmp 0x1113d
movq -0x28(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1ac70
movzwl %ax, %eax
movl %eax, -0x64(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1ac90
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x60(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1acb0
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x5c(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1acd0
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x58(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1acf0
andb $0x1, %al
movzbl %al, %r15d
movq -0x20(%rbp), %rdi
callq 0x1ad10
andb $0x1, %al
movzbl %al, %r14d
movq -0x20(%rbp), %rdi
callq 0x1ad30
andb $0x1, %al
movzbl %al, %ebx
movq -0x20(%rbp), %rdi
callq 0x1ad50
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x54(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1ad70
movq -0x70(%rbp), %rdi
movl -0x64(%rbp), %edx
movl -0x60(%rbp), %ecx
movl -0x5c(%rbp), %r8d
movl -0x58(%rbp), %r9d
movl -0x54(%rbp), %r11d
movq -0x50(%rbp), %r10
andb $0x1, %al
movzbl %al, %eax
leaq 0x1857b(%rip), %rsi     # 0x29776
movl %r15d, (%rsp)
movl %r14d, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movb $0x0, %al
callq *%r10
jmp 0x1130c
movq -0x28(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1ac70
movzwl %ax, %eax
movl %eax, -0x8c(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1ac90
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x88(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1acb0
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x84(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1acd0
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x80(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1acf0
andb $0x1, %al
movzbl %al, %r15d
movq -0x20(%rbp), %rdi
callq 0x1ad10
andb $0x1, %al
movzbl %al, %r14d
movq -0x20(%rbp), %rdi
callq 0x1ad30
andb $0x1, %al
movzbl %al, %ebx
movq -0x20(%rbp), %rdi
callq 0x1ad50
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x7c(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1ad70
movq -0x98(%rbp), %rdi
movl -0x8c(%rbp), %edx
movl -0x88(%rbp), %ecx
movl -0x84(%rbp), %r8d
movl -0x80(%rbp), %r9d
movl -0x7c(%rbp), %r11d
movq -0x78(%rbp), %r10
andb $0x1, %al
movzbl %al, %eax
leaq 0x1859d(%rip), %rsi     # 0x2988e
movl %r15d, (%rsp)
movl %r14d, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movb $0x0, %al
callq *%r10
movq -0x20(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1ada0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x115de
movq -0x40(%rbp), %rdi
callq 0x1ae00
movb %al, -0x41(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1ac50
movb %al, -0x42(%rbp)
movzbl -0x42(%rbp), %ecx
movb $0x1, %al
cmpl $0x1, %ecx
movb %al, -0x99(%rbp)
je 0x11372
movzbl -0x42(%rbp), %ecx
movb $0x1, %al
cmpl $0x2, %ecx
movb %al, -0x99(%rbp)
je 0x11372
movzbl -0x42(%rbp), %eax
cmpl $0x3, %eax
sete %al
movb %al, -0x99(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0x43(%rbp)
movl -0x34(%rbp), %eax
subl $0x1, %eax
jne 0x114aa
jmp 0x1138b
testb $0x1, -0x43(%rbp)
jne 0x113e7
movq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xb8(%rbp)
movzbl -0x41(%rbp), %eax
movl %eax, -0xac(%rbp)
movzbl -0x41(%rbp), %edi
callq 0x1ae20
movq -0xb8(%rbp), %rdi
movl -0xac(%rbp), %edx
movq -0xa8(%rbp), %r9
movq %rax, %rcx
movzbl -0x42(%rbp), %r8d
leaq 0x185be(%rip), %rsi     # 0x2999b
movb $0x0, %al
callq *%r9
jmp 0x114a5
movq -0x28(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xe8(%rbp)
movzbl -0x41(%rbp), %eax
movl %eax, -0xdc(%rbp)
movzbl -0x41(%rbp), %edi
callq 0x1ae20
movq %rax, -0xd8(%rbp)
movzbl -0x42(%rbp), %eax
movl %eax, -0xcc(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1af20
movzwl %ax, %eax
movl %eax, -0xc8(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1af80
movzwl %ax, %ebx
movq -0x40(%rbp), %rdi
callq 0x1afe0
movzwl %ax, %eax
movl %eax, -0xc4(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1b040
movq -0xe8(%rbp), %rdi
movl -0xdc(%rbp), %edx
movq -0xd8(%rbp), %rcx
movl -0xcc(%rbp), %r8d
movl -0xc8(%rbp), %r9d
movl -0xc4(%rbp), %r11d
movq -0xc0(%rbp), %r10
movzbl %al, %eax
leaq 0x18543(%rip), %rsi     # 0x299d7
movl %ebx, (%rsp)
movl %r11d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x0, %al
callq *%r10
jmp 0x115c6
testb $0x1, -0x43(%rbp)
jne 0x11506
movq -0x28(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x100(%rbp)
movzbl -0x41(%rbp), %eax
movl %eax, -0xf4(%rbp)
movzbl -0x41(%rbp), %edi
callq 0x1ae20
movq -0x100(%rbp), %rdi
movl -0xf4(%rbp), %edx
movq -0xf0(%rbp), %r9
movq %rax, %rcx
movzbl -0x42(%rbp), %r8d
leaq 0x1854e(%rip), %rsi     # 0x29a4a
movb $0x0, %al
callq *%r9
jmp 0x115c4
movq -0x28(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x130(%rbp)
movzbl -0x41(%rbp), %eax
movl %eax, -0x124(%rbp)
movzbl -0x41(%rbp), %edi
callq 0x1ae20
movq %rax, -0x120(%rbp)
movzbl -0x42(%rbp), %eax
movl %eax, -0x114(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1af20
movzwl %ax, %eax
movl %eax, -0x110(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1af80
movzwl %ax, %ebx
movq -0x40(%rbp), %rdi
callq 0x1afe0
movzwl %ax, %eax
movl %eax, -0x10c(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1b040
movq -0x130(%rbp), %rdi
movl -0x124(%rbp), %edx
movq -0x120(%rbp), %rcx
movl -0x114(%rbp), %r8d
movl -0x110(%rbp), %r9d
movl -0x10c(%rbp), %r11d
movq -0x108(%rbp), %r10
movzbl %al, %eax
leaq 0x184d6(%rip), %rsi     # 0x29a89
movl %ebx, (%rsp)
movl %r11d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x0, %al
callq *%r10
jmp 0x115c6
jmp 0x115c8
movq -0x20(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x1ada0
movq %rax, -0x40(%rbp)
jmp 0x1131d
cmpl $0x1, -0x34(%rbp)
jne 0x115f7
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rdi
leaq 0x18504(%rip), %rsi     # 0x29af7
movb $0x0, %al
callq *%rcx
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)