// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/dvb/si/desc_51.h
// Function: desc51_print
static inline void desc51_print(uint8_t *p_desc, f_print pf_print,
                                void *opaque, print_type_t i_print_type)
{
    if (i_print_type == PRINT_XML)
        pf_print(opaque,
                 "<MOSAIC_DESC entry_point=\"%u\" horizontal_elementary_cells=\"%u\" vertical_elementary_cells=\"%u\">",
                 desc51_get_mosaic_entry_point(p_desc),
                 desc51_get_horizontal_cells(p_desc),
                 desc51_get_vertical_cells(p_desc)
                );
    else
        pf_print(opaque,
                 "    - desc 51 mosaic entry_point=%u horizontal_elementary_cells=%u vertical_elementary_cells=%u",
                 desc51_get_mosaic_entry_point(p_desc),
                 desc51_get_horizontal_cells(p_desc),
                 desc51_get_vertical_cells(p_desc)
                );

    desc51_each_logical_cell(p_desc, p_desc_n) {
        uint8_t k;
        uint8_t i_present_info = desc51n_get_logical_cell_presentation_info(p_desc_n);
        uint8_t i_el_cell_len  = desc51n_get_elementary_cell_field_length(p_desc_n);
        uint8_t i_cell_linkage = desc51n_get_cell_linkage_info(p_desc_n);
        switch (i_print_type) {
        case PRINT_XML:
            pf_print(opaque,
                "<MOSAIC_LOGICAL_CELL cell_id=\"%u\" presentation_info=\"%u\""
                " presentation_info_txt=\"%s\" cell_linkage=\"%u\""
                " cell_linkage_txt=\"%s\" bouquet_id=\"%u\" onid=\"%u\""
                " tsid=\"%u\" sid=\"%u\" event_id=\"%u\">",
                desc51n_get_logical_cell_id(p_desc_n),
                i_present_info,
                desc51_get_logical_cell_presentation_info_txt(i_present_info),
                i_cell_linkage,
                desc51_get_cell_linkage_info_txt(i_cell_linkage),
                desc51n_get_bouquet_id(p_desc_n),
                desc51n_get_onid(p_desc_n),
                desc51n_get_tsid(p_desc_n),
                desc51n_get_sid(p_desc_n),
                desc51n_get_event_id(p_desc_n)
            );
            for (k = 0; k < i_el_cell_len; k++) {
                pf_print(opaque,
                    "<MOSAIC_ELEMENTARY_CELL cell_id=\"%u\"/>",
                    desc51n_get_elementary_cell_id(p_desc_n, k));
            }
            pf_print(opaque, "</MOSAIC_LOGICAL_CELL>");
            break;
        default:
            pf_print(opaque,
                "        - logical_cell cell_id=%u presentation_info=%u"
                " presentation_info_txt=\"%s\" cell_linkage=%u"
                " cell_linkage_txt=\"%s\" bouquet_id=%u onid=%u"
                " tsid=%u sid=%u event_id=%u",
                desc51n_get_logical_cell_id(p_desc_n),
                i_present_info,
                desc51_get_logical_cell_presentation_info_txt(i_present_info),
                i_cell_linkage,
                desc51_get_cell_linkage_info_txt(i_cell_linkage),
                desc51n_get_bouquet_id(p_desc_n),
                desc51n_get_onid(p_desc_n),
                desc51n_get_tsid(p_desc_n),
                desc51n_get_sid(p_desc_n),
                desc51n_get_event_id(p_desc_n)
            );
            for (k = 0; k < i_el_cell_len; k++) {
                pf_print(opaque,
                    "            - elementary_cell cell_id=%u",
                    desc51n_get_elementary_cell_id(p_desc_n, k));
            }
        }
    }

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdx, -0x38(%rbp)
movl %ecx, -0x3c(%rbp)
cmpl $0x1, -0x3c(%rbp)
jne 0xde50
movq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rdi
callq 0x18940
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x60(%rbp)
movq -0x28(%rbp), %rdi
callq 0x18970
movzbl %al, %eax
movl %eax, -0x5c(%rbp)
movq -0x28(%rbp), %rdi
callq 0x18990
movq -0x68(%rbp), %rdi
movl -0x60(%rbp), %edx
movl -0x5c(%rbp), %ecx
movq -0x58(%rbp), %r9
movzbl %al, %r8d
leaq 0x19f66(%rip), %rsi     # 0x27daf
movb $0x0, %al
callq *%r9
jmp 0xdea7
movq -0x30(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x28(%rbp), %rdi
callq 0x18940
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x78(%rbp)
movq -0x28(%rbp), %rdi
callq 0x18970
movzbl %al, %eax
movl %eax, -0x74(%rbp)
movq -0x28(%rbp), %rdi
callq 0x18990
movq -0x80(%rbp), %rdi
movl -0x78(%rbp), %edx
movl -0x74(%rbp), %ecx
movq -0x70(%rbp), %r9
movzbl %al, %r8d
leaq 0x19f6c(%rip), %rsi     # 0x27e0e
movb $0x0, %al
callq *%r9
movq -0x28(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x189b0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0xe1bd
movq -0x48(%rbp), %rdi
callq 0x18a10
movb %al, -0x4a(%rbp)
movq -0x48(%rbp), %rdi
callq 0x188e0
movb %al, -0x4b(%rbp)
movq -0x48(%rbp), %rdi
callq 0x18900
movb %al, -0x4c(%rbp)
movl -0x3c(%rbp), %eax
subl $0x1, %eax
jne 0xe058
jmp 0xdef5
movq -0x30(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x48(%rbp), %rdi
callq 0x18a30
movzbl %al, %eax
movl %eax, -0xa0(%rbp)
movzbl -0x4a(%rbp), %eax
movl %eax, -0x9c(%rbp)
movzbl -0x4a(%rbp), %edi
callq 0x18a50
movq %rax, -0x98(%rbp)
movzbl -0x4c(%rbp), %eax
movl %eax, -0x90(%rbp)
movzbl -0x4c(%rbp), %edi
callq 0x18ad0
movq %rax, %r12
movq -0x48(%rbp), %rdi
callq 0x18b70
movzwl %ax, %r15d
movq -0x48(%rbp), %rdi
callq 0x18bf0
movzwl %ax, %r14d
movq -0x48(%rbp), %rdi
callq 0x18c70
movzwl %ax, %ebx
movq -0x48(%rbp), %rdi
callq 0x18cf0
movzwl %ax, %eax
movl %eax, -0x8c(%rbp)
movq -0x48(%rbp), %rdi
callq 0x18d70
movq -0xa8(%rbp), %rdi
movl -0xa0(%rbp), %edx
movl -0x9c(%rbp), %ecx
movq -0x98(%rbp), %r8
movl -0x90(%rbp), %r9d
movl -0x8c(%rbp), %r11d
movq -0x88(%rbp), %r10
movzwl %ax, %eax
leaq 0x19ea7(%rip), %rsi     # 0x27e6e
movq %r12, (%rsp)
movl %r15d, 0x8(%rsp)
movl %r14d, 0x10(%rsp)
movl %ebx, 0x18(%rsp)
movl %r11d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq *%r10
movb $0x0, -0x49(%rbp)
movzbl -0x49(%rbp), %eax
movzbl -0x4b(%rbp), %ecx
cmpl %ecx, %eax
jge 0xe040
movq -0x30(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x48(%rbp), %rdi
movzbl -0x49(%rbp), %esi
callq 0x18df0
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rcx
movzbl %al, %edx
leaq 0x19ef4(%rip), %rsi     # 0x27f26
movb $0x0, %al
callq *%rcx
movb -0x49(%rbp), %al
addb $0x1, %al
movb %al, -0x49(%rbp)
jmp 0xdfeb
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rdi
leaq 0x19efe(%rip), %rsi     # 0x27f4d
movb $0x0, %al
callq *%rcx
jmp 0xe1a5
movq -0x30(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x48(%rbp), %rdi
callq 0x18a30
movzbl %al, %eax
movl %eax, -0xd8(%rbp)
movzbl -0x4a(%rbp), %eax
movl %eax, -0xd4(%rbp)
movzbl -0x4a(%rbp), %edi
callq 0x18a50
movq %rax, -0xd0(%rbp)
movzbl -0x4c(%rbp), %eax
movl %eax, -0xc8(%rbp)
movzbl -0x4c(%rbp), %edi
callq 0x18ad0
movq %rax, %r12
movq -0x48(%rbp), %rdi
callq 0x18b70
movzwl %ax, %r15d
movq -0x48(%rbp), %rdi
callq 0x18bf0
movzwl %ax, %r14d
movq -0x48(%rbp), %rdi
callq 0x18c70
movzwl %ax, %ebx
movq -0x48(%rbp), %rdi
callq 0x18cf0
movzwl %ax, %eax
movl %eax, -0xc4(%rbp)
movq -0x48(%rbp), %rdi
callq 0x18d70
movq -0xe0(%rbp), %rdi
movl -0xd8(%rbp), %edx
movl -0xd4(%rbp), %ecx
movq -0xd0(%rbp), %r8
movl -0xc8(%rbp), %r9d
movl -0xc4(%rbp), %r11d
movq -0xc0(%rbp), %r10
movzwl %ax, %eax
leaq 0x19e3a(%rip), %rsi     # 0x27f64
movq %r12, (%rsp)
movl %r15d, 0x8(%rsp)
movl %r14d, 0x10(%rsp)
movl %ebx, 0x18(%rsp)
movl %r11d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq *%r10
movb $0x0, -0x49(%rbp)
movzbl -0x49(%rbp), %eax
movzbl -0x4b(%rbp), %ecx
cmpl %ecx, %eax
jge 0xe1a3
movq -0x30(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x48(%rbp), %rdi
movzbl -0x49(%rbp), %esi
callq 0x18df0
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rcx
movzbl %al, %edx
leaq 0x19e78(%rip), %rsi     # 0x2800d
movb $0x0, %al
callq *%rcx
movb -0x49(%rbp), %al
addb $0x1, %al
movb %al, -0x49(%rbp)
jmp 0xe14e
jmp 0xe1a5
jmp 0xe1a7
movq -0x28(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x189b0
movq %rax, -0x48(%rbp)
jmp 0xdeb8
cmpl $0x1, -0x3c(%rbp)
jne 0xe1d6
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rdi
leaq 0x19e64(%rip), %rsi     # 0x28036
movb $0x0, %al
callq *%rcx
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)