// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/mpeg/psi/pmt_print.h
// Function: pmt_print
static inline void pmt_print(uint8_t *p_pmt,
                             f_print pf_print, void *print_opaque,
                             f_iconv pf_iconv, void *iconv_opaque,
                             print_type_t i_print_type)
{
    switch (i_print_type) {
    case PRINT_XML:
        pf_print(print_opaque, "<PMT program=\"%hu\" version=\"%hhu\" current_next=\"%d\" pcrpid=\"%hu\">",
                 pmt_get_program(p_pmt), psi_get_version(p_pmt),
                 !psi_get_current(p_pmt) ? 0 : 1,
                 pmt_get_pcrpid(p_pmt));
        break;
    default:
        pf_print(print_opaque, "new PMT program=%hu version=%hhu%s pcrpid=%hu",
                 pmt_get_program(p_pmt), psi_get_version(p_pmt),
                 !psi_get_current(p_pmt) ? " (next)" : "",
                 pmt_get_pcrpid(p_pmt));
    }

    descs_print(pmt_get_descs(p_pmt), pf_print, print_opaque,
                pf_iconv, iconv_opaque, i_print_type);

    pmt_each_es(p_pmt, p_es) {
        switch (i_print_type) {
        case PRINT_XML:
            pf_print(print_opaque, "<ES pid=\"%hu\" streamtype=\"0x%02x\" streamtype_txt=\"%s\">",
                     pmtn_get_pid(p_es),
                     pmtn_get_streamtype(p_es),
                     pmt_get_streamtype_txt(pmtn_get_streamtype(p_es))
                    );
            break;
        default:
            pf_print(print_opaque, "  * ES pid=%hu streamtype=0x%02x streamtype_txt=\"%s\"",
                     pmtn_get_pid(p_es),
                     pmtn_get_streamtype(p_es),
                     pmt_get_streamtype_txt(pmtn_get_streamtype(p_es))
                    );
        }

        descs_print(pmtn_get_descs(p_es), pf_print, print_opaque,
                    pf_iconv, iconv_opaque, i_print_type);

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

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

// 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)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1ca49
jmp 0x1c9cd
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4b90
movzwl %ax, %eax
movl %eax, -0x4c(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4b70
movzbl %al, %eax
movl %eax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5840
movb %al, %dl
xorb $-0x1, %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x44(%rbp)
movq -0x8(%rbp), %rdi
callq 0x1cea0
movq -0x58(%rbp), %rdi
movl -0x4c(%rbp), %edx
movl -0x48(%rbp), %ecx
movl -0x44(%rbp), %r8d
movq -0x40(%rbp), %r10
movzwl %ax, %r9d
leaq 0xe1d9(%rip), %rsi      # 0x2ac18
movb $0x0, %al
callq *%r10
jmp 0x1cac9
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4b90
movzwl %ax, %eax
movl %eax, -0x70(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4b70
movzbl %al, %eax
movl %eax, -0x6c(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5840
movb %al, %dl
xorb $-0x1, %dl
leaq 0xe633(%rip), %rax      # 0x2b0bf
leaq 0x74cd(%rip), %rcx      # 0x23f60
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rdi
callq 0x1cea0
movq -0x78(%rbp), %rdi
movl -0x70(%rbp), %edx
movl -0x6c(%rbp), %ecx
movq -0x68(%rbp), %r8
movq -0x60(%rbp), %r10
movzwl %ax, %r9d
leaq 0xe196(%rip), %rsi      # 0x2ac5a
movb $0x0, %al
callq *%r10
movq -0x8(%rbp), %rdi
callq 0x1cf30
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
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5590
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x1cc56
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1cb84
jmp 0x1cb14
movq -0x10(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5660
movzwl %ax, %eax
movl %eax, -0x88(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5690
movzbl %al, %eax
movl %eax, -0x84(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5690
movzbl %al, %edi
callq 0x1cf50
movq -0x90(%rbp), %rdi
movl -0x88(%rbp), %edx
movl -0x84(%rbp), %ecx
movq -0x80(%rbp), %r9
movq %rax, %r8
leaq 0xe10b(%rip), %rsi      # 0x2ac88
movb $0x0, %al
callq *%r9
jmp 0x1cbf8
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5660
movzwl %ax, %eax
movl %eax, -0xa0(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5690
movzbl %al, %eax
movl %eax, -0x9c(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5690
movzbl %al, %edi
callq 0x1cf50
movq -0xa8(%rbp), %rdi
movl -0xa0(%rbp), %edx
movl -0x9c(%rbp), %ecx
movq -0x98(%rbp), %r9
movq %rax, %r8
leaq 0xe0cc(%rip), %rsi      # 0x2acbf
movb $0x0, %al
callq *%r9
movq -0x38(%rbp), %rdi
callq 0x56e0
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 0x1cc3c
jmp 0x1cc27
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xe0be(%rip), %rsi      # 0x2acf4
movb $0x0, %al
callq *%rcx
jmp 0x1cc3e
jmp 0x1cc3e
jmp 0x1cc40
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x5590
movq %rax, -0x38(%rbp)
jmp 0x1caff
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1cc75
jmp 0x1cc60
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xe08b(%rip), %rsi      # 0x2acfa
movb $0x0, %al
callq *%rcx
jmp 0x1cc88
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xe07d(%rip), %rsi      # 0x2ad01
movb $0x0, %al
callq *%rcx
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)