// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/scte/35_print.h
// Function: scte35_print
static inline void scte35_print(const uint8_t *p_scte35,
        f_print pf_print, void *print_opaque, print_type_t i_print_type)
{
    uint8_t i_type = scte35_get_command_type(p_scte35);
    bool done = false;

    switch (i_type) {
    case SCTE35_NULL_COMMAND:
        scte35_null_print(p_scte35, pf_print, print_opaque, i_print_type);
        done = true;
        break;
    case SCTE35_INSERT_COMMAND:
        scte35_insert_print(p_scte35, pf_print, print_opaque, i_print_type);
        done = true;
        break;
    case SCTE35_TIME_SIGNAL_COMMAND:
        scte35_time_signal_print(p_scte35, pf_print, print_opaque, i_print_type);
        done = true;
        break;
    case SCTE35_PRIVATE_COMMAND:
        scte35_private_print(p_scte35, pf_print, print_opaque, i_print_type);
        done = true;
        break;
    default:
        break;
    }

    if (!done) {
        uint64_t i_pts_adjustment = scte35_get_pts_adjustment(p_scte35);

        switch (i_print_type) {
        case PRINT_XML:
            pf_print(print_opaque,
                     "<SCTE35 command=\"%" PRIu8 "\" command_str=\"%s\" pts_adjustment=\"%" PRIu64 "\">",
                     i_type, scte35_get_command_type_txt(i_type), i_pts_adjustment);
            break;
        default:
            pf_print(print_opaque,
                     "new SCTE35 command=%" PRIu8 " command_str=%s pts_adjustment=%" PRIu64,
                     i_type, scte35_get_command_type_txt(i_type), i_pts_adjustment);
        }
    }

    /* TODO: print descriptors */

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
callq 0x20530
movb %al, -0x1d(%rbp)
movb $0x0, -0x1e(%rbp)
movzbl -0x1d(%rbp), %eax
movl %eax, -0x2c(%rbp)
testl %eax, %eax
je 0x205a4
jmp 0x20584
movl -0x2c(%rbp), %eax
subl $0x5, %eax
je 0x205be
jmp 0x2058e
movl -0x2c(%rbp), %eax
subl $0x6, %eax
je 0x205d8
jmp 0x20598
movl -0x2c(%rbp), %eax
subl $0xff, %eax
je 0x205f2
jmp 0x2060c
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x20e10
movb $0x1, -0x1e(%rbp)
jmp 0x2060e
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x20e80
movb $0x1, -0x1e(%rbp)
jmp 0x2060e
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x21290
movb $0x1, -0x1e(%rbp)
jmp 0x2060e
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x213c0
movb $0x1, -0x1e(%rbp)
jmp 0x2060e
jmp 0x2060e
testb $0x1, -0x1e(%rbp)
jne 0x206af
movq -0x8(%rbp), %rdi
callq 0x21450
movq %rax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
subl $0x1, %eax
jne 0x2066f
jmp 0x2062f
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
movzbl -0x1d(%rbp), %eax
movl %eax, -0x3c(%rbp)
movzbl -0x1d(%rbp), %edi
callq 0x214b0
movq -0x48(%rbp), %rdi
movl -0x3c(%rbp), %edx
movq -0x38(%rbp), %r9
movq %rax, %rcx
movq -0x28(%rbp), %r8
leaq 0xb5a1(%rip), %rsi      # 0x2bc09
movb $0x0, %al
callq *%r9
jmp 0x206ad
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
movzbl -0x1d(%rbp), %eax
movl %eax, -0x54(%rbp)
movzbl -0x1d(%rbp), %edi
callq 0x214b0
movq -0x60(%rbp), %rdi
movl -0x54(%rbp), %edx
movq -0x50(%rbp), %r9
movq %rax, %rcx
movq -0x28(%rbp), %r8
leaq 0xb59d(%rip), %rsi      # 0x2bc45
movb $0x0, %al
callq *%r9
jmp 0x206af
movl -0x1c(%rbp), %eax
subl $0x1, %eax
jne 0x206ce
jmp 0x206b9
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xb5b5(%rip), %rsi      # 0x2bc7d
movb $0x0, %al
callq *%rcx
jmp 0x206e1
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xb5aa(%rip), %rsi      # 0x2bc87
movb $0x0, %al
callq *%rcx
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)