// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/dvb/si/sdt_print.h
// Function: sdt_table_print
static inline void sdt_table_print(uint8_t **pp_sections,
                                   f_print pf_print, void *print_opaque,
                                   f_iconv pf_iconv, void *iconv_opaque,
                                   print_type_t i_print_type)
{
    uint8_t i_last_section = psi_table_get_lastsection(pp_sections);
    uint8_t i;

    switch (i_print_type) {
    case PRINT_XML:
        pf_print(print_opaque, "<SDT tid=\"%hhu\" tsid=\"%hu\" version=\"%hhu\" current_next=\"%d\" onid=\"%hu\">",
                 psi_table_get_tableid(pp_sections),
                 psi_table_get_tableidext(pp_sections),
                 psi_table_get_version(pp_sections),
                 !psi_table_get_current(pp_sections) ? 0 : 1,
                 sdt_get_onid(psi_table_get_section(pp_sections, 0)));
        break;
    default:
        pf_print(print_opaque, "new SDT %s tsid=%hu version=%hhu%s onid=%hu",
                 psi_table_get_tableid(pp_sections) == SDT_TABLE_ID_ACTUAL ?
                 "actual" : "other",
                 psi_table_get_tableidext(pp_sections),
                 psi_table_get_version(pp_sections),
                 !psi_table_get_current(pp_sections) ? " (next)" : "",
                 sdt_get_onid(psi_table_get_section(pp_sections, 0)));
    }

    for (i = 0; i <= i_last_section; i++) {
        uint8_t *p_section = psi_table_get_section(pp_sections, i);
        uint8_t *p_service;
        int j = 0;

        while ((p_service = sdt_get_service(p_section, j)) != NULL) {
            j++;
            switch (i_print_type) {
            case PRINT_XML:
                pf_print(print_opaque, "<SERVICE sid=\"%hu\" eit_schedule=\"%d\" eit_pf=\"%d\" running=\"%hhu\" free_CA=\"%d\">",
                         sdtn_get_sid(p_service),
                         sdtn_get_eitschedule(p_service) ? 1 : 0,
                         sdtn_get_eitpresent(p_service) ? 1 : 0,
                         sdtn_get_running(p_service),
                         sdtn_get_ca(p_service) ? 1 : 0);
                break;
            default:
                pf_print(print_opaque, "  * service sid=%hu%s%s running=%hhu%s",
                         sdtn_get_sid(p_service),
                         sdtn_get_eitschedule(p_service) ? " eit_schedule" : "",
                         sdtn_get_eitpresent(p_service) ? " eit_pf" : "",
                         sdtn_get_running(p_service),
                         sdtn_get_ca(p_service) ? " scrambled" : "");
            }

            descs_print(sdtn_get_descs(p_service), pf_print, print_opaque,
                        pf_iconv, iconv_opaque, i_print_type);

            switch (i_print_type) {
            case PRINT_XML:
                pf_print(print_opaque, "</SERVICE>");
                break;
            default:
                break;
            }
        }
    }

    switch (i_print_type) {
    case PRINT_XML:
        pf_print(print_opaque, "</SDT>");
        break;
    default:
        pf_print(print_opaque, "end SDT");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x4b50
movb %al, -0x2d(%rbp)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1e627
jmp 0x1e580
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x3530
movzbl %al, %eax
movl %eax, -0x60(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x4b90
movzwl %ax, %eax
movl %eax, -0x5c(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x4b70
movzbl %al, %eax
movl %eax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x5840
movb %al, %dl
xorb $-0x1, %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x4da0
movq %rax, %rdi
callq 0x1e9a0
movq -0x68(%rbp), %rdi
movl -0x60(%rbp), %edx
movl -0x5c(%rbp), %ecx
movl -0x58(%rbp), %r8d
movl -0x54(%rbp), %r9d
movq -0x50(%rbp), %r10
movzwl %ax, %eax
leaq 0xcdc4(%rip), %rsi      # 0x2b3de
movl %eax, (%rsp)
movb $0x0, %al
callq *%r10
jmp 0x1e6f5
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x3530
movzbl %al, %edx
leaq 0xcbb3(%rip), %rax      # 0x2b203
leaq 0xcba5(%rip), %rcx      # 0x2b1fc
cmpl $0x42, %edx
cmoveq %rcx, %rax
movq %rax, -0x88(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x4b90
movzwl %ax, %eax
movl %eax, -0x80(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x4b70
movzbl %al, %eax
movl %eax, -0x7c(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x5840
movb %al, %dl
xorb $-0x1, %dl
leaq 0xca1e(%rip), %rax      # 0x2b0bf
leaq 0x58b8(%rip), %rcx      # 0x23f60
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x4da0
movq %rax, %rdi
callq 0x1e9a0
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rdx
movl -0x80(%rbp), %ecx
movl -0x7c(%rbp), %r8d
movq -0x78(%rbp), %r9
movq -0x70(%rbp), %r10
movzwl %ax, %eax
leaq 0xcd39(%rip), %rsi      # 0x2b426
movl %eax, (%rsp)
movb $0x0, %al
callq *%r10
movb $0x0, -0x2e(%rbp)
movzbl -0x2e(%rbp), %eax
movzbl -0x2d(%rbp), %ecx
cmpl %ecx, %eax
jg 0x1e95d
movq -0x8(%rbp), %rdi
movzbl -0x2e(%rbp), %esi
callq 0x4da0
movq %rax, -0x38(%rbp)
movl $0x0, -0x44(%rbp)
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %eax
movzbl %al, %esi
callq 0x1e9c0
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x1e94e
movl -0x44(%rbp), %eax
incl %eax
movl %eax, -0x44(%rbp)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1e820
jmp 0x1e754
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1eb30
movzwl %ax, %eax
movl %eax, -0xa8(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1eb50
movb %al, %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0xa4(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1eb80
movb %al, %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0xa0(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1ebb0
movzbl %al, %eax
movl %eax, -0x9c(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1ebd0
movq -0xb0(%rbp), %rdi
movl -0xa8(%rbp), %edx
movl -0xa4(%rbp), %ecx
movl -0xa0(%rbp), %r8d
movl -0x9c(%rbp), %r9d
movq -0x98(%rbp), %r10
movb %al, %r11b
xorl %eax, %eax
movl $0x1, %esi
testb $0x1, %r11b
cmovnel %esi, %eax
leaq 0xcc3f(%rip), %rsi      # 0x2b452
movl %eax, (%rsp)
movb $0x0, %al
callq *%r10
jmp 0x1e903
movq -0x10(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1eb30
movzwl %ax, %eax
movl %eax, -0xd4(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1eb50
movb %al, %dl
leaq 0xc865(%rip), %rax      # 0x2b0bf
leaq 0xcc66(%rip), %rcx      # 0x2b4c7
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0xd0(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1eb80
movb %al, %dl
leaq 0xc83e(%rip), %rax      # 0x2b0bf
leaq 0xcc4d(%rip), %rcx      # 0x2b4d5
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1ebb0
movzbl %al, %eax
movl %eax, -0xbc(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1ebd0
movq -0xe0(%rbp), %rdi
movl -0xd4(%rbp), %edx
movq -0xd0(%rbp), %rcx
movq -0xc8(%rbp), %r8
movl -0xbc(%rbp), %r9d
movq -0xb8(%rbp), %r10
movb %al, %r11b
leaq 0xc7db(%rip), %rax      # 0x2b0bf
leaq 0xcbf2(%rip), %rsi      # 0x2b4dd
testb $0x1, %r11b
cmovneq %rsi, %rax
leaq 0xcba6(%rip), %rsi      # 0x2b4a0
movq %rax, (%rsp)
movb $0x0, %al
callq *%r10
movq -0x40(%rbp), %rdi
callq 0x1ec00
movq %rax, %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
movl -0x2c(%rbp), %r9d
callq 0x1ced0
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1e947
jmp 0x1e932
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xcba7(%rip), %rsi      # 0x2b4e8
movb $0x0, %al
callq *%rcx
jmp 0x1e949
jmp 0x1e949
jmp 0x1e721
jmp 0x1e950
movb -0x2e(%rbp), %al
addb $0x1, %al
movb %al, -0x2e(%rbp)
jmp 0x1e6f9
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1e97c
jmp 0x1e967
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xcb7d(%rip), %rsi      # 0x2b4f3
movb $0x0, %al
callq *%rcx
jmp 0x1e98f
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xcb6f(%rip), %rsi      # 0x2b4fa
movb $0x0, %al
callq *%rcx
addq $0xf0, %rsp
popq %rbp
retq
nopl (%rax,%rax)