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

    uint8_t j = 0;
    uint8_t *p_rst_n;

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

    while ((p_rst_n = rst_get_status(p_rst, j++)) != NULL) {
        switch (i_print_type) {
        case PRINT_XML:
            pf_print(print_opaque,
                     "<STATUS tsid=\"%hu\" onid=\"%hu\" service_id=\"%hu\""
                     " event_id=\"%hu\" running=\"%hu\"/>",
                     rstn_get_tsid(p_rst_n),
                     rstn_get_onid(p_rst_n),
                     rstn_get_service_id(p_rst_n),
                     rstn_get_event_id(p_rst_n),
                     rstn_get_running(p_rst_n)
                    );
            break;
        default:
            pf_print(print_opaque,
                     "  * status tsid=\"%hu\" onid=\"%hu\" service_id=\"%hu\""
                     " event_id=\"%hu\" running=\"%hu\"",
                     rstn_get_tsid(p_rst_n),
                     rstn_get_onid(p_rst_n),
                     rstn_get_service_id(p_rst_n),
                     rstn_get_event_id(p_rst_n),
                     rstn_get_running(p_rst_n)
                    );
        }
    }

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %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, -0x2d(%rbp)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1f006
jmp 0x1eff1
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xc69e(%rip), %rsi      # 0x2b69e
movb $0x0, %al
callq *%rcx
jmp 0x1f019
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xc68f(%rip), %rsi      # 0x2b6a4
movb $0x0, %al
callq *%rcx
jmp 0x1f01b
movq -0x8(%rbp), %rdi
movb -0x2d(%rbp), %al
movb %al, %cl
addb $0x1, %cl
movb %cl, -0x2d(%rbp)
movzbl %al, %esi
callq 0x1f190
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x1f14f
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1f0cd
jmp 0x1f04e
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f210
movzwl %ax, %eax
movl %eax, -0x50(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f230
movzwl %ax, %eax
movl %eax, -0x4c(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f250
movzwl %ax, %eax
movl %eax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f270
movzwl %ax, %eax
movl %eax, -0x44(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f290
movq -0x58(%rbp), %rdi
movl -0x50(%rbp), %edx
movl -0x4c(%rbp), %ecx
movl -0x48(%rbp), %r8d
movl -0x44(%rbp), %r9d
movq -0x40(%rbp), %r10
movzbl %al, %eax
leaq 0xc5e9(%rip), %rsi      # 0x2b6ac
movl %eax, (%rsp)
movb $0x0, %al
callq *%r10
jmp 0x1f14a
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f210
movzwl %ax, %eax
movl %eax, -0x70(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f230
movzwl %ax, %eax
movl %eax, -0x6c(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f250
movzwl %ax, %eax
movl %eax, -0x68(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f270
movzwl %ax, %eax
movl %eax, -0x64(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1f290
movq -0x78(%rbp), %rdi
movl -0x70(%rbp), %edx
movl -0x6c(%rbp), %ecx
movl -0x68(%rbp), %r8d
movl -0x64(%rbp), %r9d
movq -0x60(%rbp), %r10
movzbl %al, %eax
leaq 0xc5b8(%rip), %rsi      # 0x2b6fa
movl %eax, (%rsp)
movb $0x0, %al
callq *%r10
jmp 0x1f01b
movl -0x2c(%rbp), %eax
subl $0x1, %eax
jne 0x1f16e
jmp 0x1f159
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xc5e1(%rip), %rsi      # 0x2b749
movb $0x0, %al
callq *%rcx
jmp 0x1f181
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rdi
leaq 0xc5d3(%rip), %rsi      # 0x2b750
movb $0x0, %al
callq *%rcx
addq $0x80, %rsp
popq %rbp
retq
nopw (%rax,%rax)