// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/dvb/si/bat_print.h
// Function: bat_table_print
static inline void bat_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, "<BAT tid=\"%hhu\" bouquetid=\"%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 BAT bouquetid=%hu version=%hhu%s",
                 psi_table_get_tableidext(pp_sections),
                 psi_table_get_version(pp_sections),
                 !psi_table_get_current(pp_sections) ? " (next)" : "");
    }

    descs_print(bat_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 = bat_get_ts(p_section, j)) != NULL) {
            j++;
            switch (i_print_type) {
            case PRINT_XML:
                pf_print(print_opaque, "<TS tsid=\"%hu\" onid=\"%hu\">",
                         batn_get_tsid(p_ts), batn_get_onid(p_ts));
                break;
            default:
                pf_print(print_opaque, "  * ts tsid=%hu onid=%hu",
                         batn_get_tsid(p_ts), batn_get_onid(p_ts));
            }

            descs_print(batn_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, "</BAT>");
        break;
    default:
        pf_print(print_opaque, "end BAT");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %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 0x1df99
jmp 0x1df10
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 0xd34b(%rip), %rsi      # 0x2b2dd
movb $0x0, %al
callq *%r10
jmp 0x1e010
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %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 -0x80(%rbp), %rdi
movl -0x78(%rbp), %edx
movl -0x74(%rbp), %ecx
movq -0x70(%rbp), %r9
movb %al, %sil
xorb $-0x1, %sil
leaq 0xd0ca(%rip), %r8       # 0x2b0bf
leaq 0x5f64(%rip), %rax      # 0x23f60
testb $0x1, %sil
cmovneq %rax, %r8
leaq 0xd314(%rip), %rsi      # 0x2b31f
movb $0x0, %al
callq *%r9
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 0x1e19e
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 0x1e18f
movl -0x44(%rbp), %eax
incl %eax
movl %eax, -0x44(%rbp)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1e0f0
jmp 0x1e09a
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1db50
movzwl %ax, %eax
movl %eax, -0x8c(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1db70
movq -0x98(%rbp), %rdi
movl -0x8c(%rbp), %edx
movq -0x88(%rbp), %r8
movzwl %ax, %ecx
leaq 0xd120(%rip), %rsi      # 0x2b209
movb $0x0, %al
callq *%r8
jmp 0x1e144
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1db50
movzwl %ax, %eax
movl %eax, -0xa4(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1db70
movq -0xb0(%rbp), %rdi
movl -0xa4(%rbp), %edx
movq -0xa0(%rbp), %r8
movzwl %ax, %ecx
leaq 0xd0e5(%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 0x1e188
jmp 0x1e173
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xd0bb(%rip), %rsi      # 0x2b23d
movb $0x0, %al
callq *%rcx
jmp 0x1e18a
jmp 0x1e18a
jmp 0x1e06b
jmp 0x1e191
movb -0x2e(%rbp), %al
addb $0x1, %al
movb %al, -0x2e(%rbp)
jmp 0x1e043
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1e1bd
jmp 0x1e1a8
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xd18d(%rip), %rsi      # 0x2b344
movb $0x0, %al
callq *%rcx
jmp 0x1e1d0
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xd17f(%rip), %rsi      # 0x2b34b
movb $0x0, %al
callq *%rcx
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax)