// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/dvb/si/nit_print.h
// Function: nit_table_print
static inline void nit_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, "<NIT tid=\"%hhu\" networkid=\"%hu\" version=\"%hhu\" current_next=\"%d\">",
                 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);
        break;
    default:
        pf_print(print_opaque, "new NIT %s networkid=%hu version=%hhu%s",
                 psi_table_get_tableid(pp_sections) == NIT_TABLE_ID_ACTUAL ?
                 "actual" : "other",
                 psi_table_get_tableidext(pp_sections),
                 psi_table_get_version(pp_sections),
                 !psi_table_get_current(pp_sections) ? " (next)" : "");
    }

    descs_print(nit_get_descs(psi_table_get_section(pp_sections, 0)),
                pf_print, print_opaque, pf_iconv, iconv_opaque, i_print_type);

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

        while ((p_ts = nit_get_ts(p_section, j)) != NULL) {
            j++;
            switch (i_print_type) {
            case PRINT_XML:
                pf_print(print_opaque, "<TS tsid=\"%hu\" onid=\"%hu\">",
                         nitn_get_tsid(p_ts), nitn_get_onid(p_ts));
                break;
            default:
                pf_print(print_opaque, "  * ts tsid=%hu onid=%hu",
                         nitn_get_tsid(p_ts), nitn_get_onid(p_ts));
            }

            descs_print(nitn_get_descs(p_ts), pf_print, print_opaque,
                        pf_iconv, iconv_opaque, i_print_type);

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

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %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 0x1d70c
jmp 0x1d680
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, -0x5c(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x4b90
movzwl %ax, %eax
movl %eax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x4b70
movzbl %al, %eax
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x5840
movq -0x68(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl -0x58(%rbp), %ecx
movl -0x54(%rbp), %r8d
movq -0x50(%rbp), %r10
movb %al, %sil
xorb $-0x1, %sil
movl $0x1, %r9d
xorl %eax, %eax
testb $0x1, %sil
cmovnel %eax, %r9d
leaq 0xda90(%rip), %rsi      # 0x2b192
movb $0x0, %al
callq *%r10
jmp 0x1d7b6
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x3530
movzbl %al, %edx
leaq 0xdace(%rip), %rax      # 0x2b203
leaq 0xdac0(%rip), %rcx      # 0x2b1fc
cmpl $0x40, %edx
cmoveq %rcx, %rax
movq %rax, -0x80(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x4b90
movzwl %ax, %eax
movl %eax, -0x78(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x4b70
movzbl %al, %eax
movl %eax, -0x74(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x5840
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rdx
movl -0x78(%rbp), %ecx
movl -0x74(%rbp), %r8d
movq -0x70(%rbp), %r10
movb %al, %sil
xorb $-0x1, %sil
leaq 0xd924(%rip), %r9       # 0x2b0bf
leaq 0x67be(%rip), %rax      # 0x23f60
testb $0x1, %sil
cmovneq %rax, %r9
leaq 0xda23(%rip), %rsi      # 0x2b1d4
movb $0x0, %al
callq *%r10
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x4da0
movq %rax, %rdi
callq 0x1db90
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
movb $0x0, -0x2e(%rbp)
movzbl -0x2e(%rbp), %eax
movzbl -0x2d(%rbp), %ecx
cmpl %ecx, %eax
jg 0x1d944
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 0x1d980
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x1d935
movl -0x44(%rbp), %eax
incl %eax
movl %eax, -0x44(%rbp)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1d896
jmp 0x1d840
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1db50
movzwl %ax, %eax
movl %eax, -0x94(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1db70
movq -0xa0(%rbp), %rdi
movl -0x94(%rbp), %edx
movq -0x90(%rbp), %r8
movzwl %ax, %ecx
leaq 0xd97a(%rip), %rsi      # 0x2b209
movb $0x0, %al
callq *%r8
jmp 0x1d8ea
movq -0x10(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1db50
movzwl %ax, %eax
movl %eax, -0xac(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1db70
movq -0xb8(%rbp), %rdi
movl -0xac(%rbp), %edx
movq -0xa8(%rbp), %r8
movzwl %ax, %ecx
leaq 0xd93f(%rip), %rsi      # 0x2b224
movb $0x0, %al
callq *%r8
movq -0x40(%rbp), %rdi
callq 0x1dbb0
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 0x1d92e
jmp 0x1d919
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xd915(%rip), %rsi      # 0x2b23d
movb $0x0, %al
callq *%rcx
jmp 0x1d930
jmp 0x1d930
jmp 0x1d811
jmp 0x1d937
movb -0x2e(%rbp), %al
addb $0x1, %al
movb %al, -0x2e(%rbp)
jmp 0x1d7e9
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1d963
jmp 0x1d94e
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xd8e6(%rip), %rsi      # 0x2b243
movb $0x0, %al
callq *%rcx
jmp 0x1d976
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xd8d8(%rip), %rsi      # 0x2b24a
movb $0x0, %al
callq *%rcx
addq $0xc0, %rsp
popq %rbp
retq
nop