// File: /workspace/github_c_makefile_star2_O0/videolan[P]bitstream/examples/./bitstream/dvb/si/sit_print.h
// Function: sit_print
static inline void sit_print(uint8_t *p_sit,
                             f_print pf_print, void *print_opaque,
                             f_iconv pf_iconv, void *iconv_opaque,
                             print_type_t i_print_type)
{
    uint8_t *p_service;
    uint8_t j = 0;

    switch (i_print_type) {
    case PRINT_XML:
        pf_print(print_opaque, "<SIT version=\"%hhu\" current_next=\"%d\">",
                 psi_get_version(p_sit),
                 !psi_get_current(p_sit) ? 0 : 1);
        break;
    default:
        pf_print(print_opaque, "new SIT version=%hhu%s",
                 psi_get_version(p_sit),
                 !psi_get_current(p_sit) ? " (next)" : "");
    }

    descs_print(sit_get_descs(p_sit), pf_print, print_opaque,
                pf_iconv, iconv_opaque, i_print_type);

    while ((p_service = sit_get_service(p_sit, j)) != NULL) {
        j++;
        switch (i_print_type) {
        case PRINT_XML:
            pf_print(print_opaque, "<SERVICE sid=\"%hu\" running=\"%u\">",
                     sitn_get_sid(p_service),
                     sitn_get_running(p_service)
                    );
            break;
        default:
            pf_print(print_opaque, "  * SERVICE sid=%hu running=%u",
                     sitn_get_sid(p_service),
                     sitn_get_running(p_service)
                    );
        }

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %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)
movb $0x0, -0x39(%rbp)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1f627
jmp 0x1f5d1
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4b70
movzbl %al, %eax
movl %eax, -0x4c(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5840
movq -0x58(%rbp), %rdi
movl -0x4c(%rbp), %edx
movq -0x48(%rbp), %r8
movb %al, %sil
xorb $-0x1, %sil
movl $0x1, %ecx
xorl %eax, %eax
testb $0x1, %sil
cmovnel %eax, %ecx
leaq 0xc227(%rip), %rsi      # 0x2b847
movb $0x0, %al
callq *%r8
jmp 0x1f683
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4b70
movzbl %al, %eax
movl %eax, -0x64(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5840
movq -0x70(%rbp), %rdi
movl -0x64(%rbp), %edx
movq -0x60(%rbp), %r8
movb %al, %sil
xorb $-0x1, %sil
leaq 0xba57(%rip), %rcx      # 0x2b0bf
leaq 0x48f1(%rip), %rax      # 0x23f60
testb $0x1, %sil
cmovneq %rax, %rcx
leaq 0xc1f0(%rip), %rsi      # 0x2b86e
movb $0x0, %al
callq *%r8
movq -0x8(%rbp), %rdi
callq 0x1f830
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
movzbl -0x39(%rbp), %esi
callq 0x1f8a0
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x1f7be
movb -0x39(%rbp), %al
incb %al
movb %al, -0x39(%rbp)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1f71f
jmp 0x1f6d5
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f990
movzwl %ax, %eax
movl %eax, -0x7c(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f9b0
movq -0x88(%rbp), %rdi
movl -0x7c(%rbp), %edx
movq -0x78(%rbp), %r8
movzbl %al, %ecx
leaq 0xc16d(%rip), %rsi      # 0x2b885
movb $0x0, %al
callq *%r8
jmp 0x1f773
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f990
movzwl %ax, %eax
movl %eax, -0x94(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f9b0
movq -0xa0(%rbp), %rdi
movl -0x94(%rbp), %edx
movq -0x90(%rbp), %r8
movzbl %al, %ecx
leaq 0xc138(%rip), %rsi      # 0x2b8a6
movb $0x0, %al
callq *%r8
movq -0x38(%rbp), %rdi
callq 0x1f880
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 0x1f7b7
jmp 0x1f7a2
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xbd37(%rip), %rsi      # 0x2b4e8
movb $0x0, %al
callq *%rcx
jmp 0x1f7b9
jmp 0x1f7b9
jmp 0x1f6a8
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1f7dd
jmp 0x1f7c8
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xc0ee(%rip), %rsi      # 0x2b8c5
movb $0x0, %al
callq *%rcx
jmp 0x1f7f0
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xc0e0(%rip), %rsi      # 0x2b8cc
movb $0x0, %al
callq *%rcx
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax)