// File: /workspace/github_c_makefile_star2_O1/videolan[P]bitstream/examples/mpeg_print_pcr.c
// Function: handle_section
static void handle_section(uint16_t i_pid, uint8_t *p_section)
{
    uint8_t i_table_id = psi_get_tableid(p_section);

    if (!psi_validate(p_section)) {
        free(p_section);
        return;
    }

    switch (i_table_id) {
    case PAT_TABLE_ID:
        handle_pat_section(i_pid, p_section);
        break;

    case PMT_TABLE_ID:
        handle_pmt(i_pid, p_section);
        break;

    default:
        free( p_section );
        break;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x848, %rsp            # imm = 0x848
movq %rsi, %rbx
movl %edi, %ebp
movzbl (%rsi), %eax
movzbl 0x1(%rsi), %ecx
testb %cl, %cl
jns 0x1672
movzwl %cx, %edx
andl $0xf, %edx
shll $0x8, %edx
movzbl 0x2(%rbx), %esi
orl %edx, %esi
cmpw $0x9, %si
jb 0x170b
testl %eax, %eax
je 0x16ea
cmpl $0x2, %eax
jne 0x170b
testb %cl, %cl
jns 0x170b
cmpb $0x0, 0x6(%rbx)
jne 0x170b
xorb $0x2, %al
orb 0x7(%rbx), %al
jne 0x170b
movzwl %cx, %eax
andl $0xf, %eax
shll $0x8, %eax
movzbl 0x2(%rbx), %ecx
movzwl %ax, %edx
movzwl %cx, %esi
addl %edx, %esi
decw %si
movzwl %si, %edx
je 0x17ca
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
xorl %edi, %edi
leaq 0x197c(%rip), %r8       # 0x3040
movl %r9d, %esi
shll $0x8, %esi
shrl $0x18, %r9d
movzbl (%rbx,%rdi), %r10d
xorl %r9d, %r10d
xorl (%r8,%r10,4), %esi
incq %rdi
movl %esi, %r9d
cmpq %rdi, %rdx
jne 0x16c7
jmp 0x17cf
testb %cl, %cl
sets %cl
testw %bp, %bp
sete %dl
testb %al, %al
sete %al
andb %dl, %al
andb %cl, %al
cmpb $0x1, %al
jne 0x170b
movb 0x2(%rbx), %al
decb %al
testb $0x3, %al
je 0x1724
movq %rbx, %rdi
addq $0x848, %rsp            # imm = 0x848
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
movzbl 0x6(%rbx), %r13d
movzbl 0x7(%rbx), %r15d
movb 0x5(%rbx), %bpl
movzwl 0x3(%rbx), %r12d
leaq 0x33972(%rip), %r14     # 0x350b0
movq (%r14,%r13,8), %rdi
callq 0x1030
movq %rbx, (%r14,%r13,8)
movq 0x3395e(%rip), %rax     # 0x350b0
testq %rax, %rax
je 0x1ffd
cmpb %r15b, 0x7(%rax)
jne 0x1ffd
movb 0x5(%rax), %cl
xorb %bpl, %cl
testb $0x3e, %cl
jne 0x1ffd
rolw $0x8, %r12w
leaq 0x1(%r15), %r13
xorl %ebx, %ebx
xorl %ecx, %ecx
movzwl 0x3(%rax), %eax
rolw $0x8, %ax
cmpw %r12w, %ax
jne 0x1953
cmpq %r15, %rcx
setae %bl
je 0x192d
movq 0x8(%r14,%rcx,8), %rax
testq %rax, %rax
je 0x1953
cmpb %r15b, 0x7(%rax)
jne 0x1953
movb 0x5(%rax), %dl
xorb %bpl, %dl
incq %rcx
testb $0x3e, %dl
je 0x1781
jmp 0x1953
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movzbl (%rbx,%rdx), %r8d
movl %esi, %r9d
shrl $0x18, %r9d
movb $0x1, %dil
cmpl %r8d, %r9d
jne 0x1808
movl %esi, %r8d
shrl $0x10, %r8d
cmpb %r8b, 0x1(%rbx,%rdx)
jne 0x1808
movl %esi, %r8d
shrl $0x8, %r8d
cmpb %r8b, 0x2(%rbx,%rdx)
jne 0x1808
cmpb %sil, 0x3(%rbx,%rdx)
setne %dil
testb %dil, %dil
jne 0x170b
leal (%rax,%rcx), %r15d
decl %r15d
cmpw $0xc, %r15w
jb 0x170b
movzbl 0xa(%rbx), %eax
andl $0xf, %eax
shll $0x8, %eax
movzbl 0xb(%rbx), %r12d
orq %rax, %r12
leal 0xc(%r12), %eax
cmpw %ax, %r15w
jb 0x170b
movzwl 0x3(%rbx), %r14d
leaq 0xa(%rbx), %rdi
callq 0x2055
testb %al, %al
je 0x170b
leaq (%rbx,%r12), %rax
addq $0xc, %rax
movzwl %r15w, %ecx
addq $0x11, %r12
cmpq %rcx, %r12
jg 0x18e0
movzbl 0x3(%rax), %esi
andl $0xf, %esi
shll $0x8, %esi
movzbl 0x4(%rax), %edx
orq %rsi, %rdx
leaq (%rax,%rdx), %rsi
addq $0x5, %rsi
subq %rbx, %rsi
cmpq %rcx, %rsi
jg 0x18e0
leaq 0x5(%rax), %rsi
movq %rsi, %rdi
cmpw $0x2, %dx
jb 0x18bb
movq %rsi, %rdi
movzbl 0x1(%rdi), %r8d
addq %r8, %rdi
addq $0x2, %rdi
movq %rdi, %r8
subq %rsi, %r8
addq $0x2, %r8
cmpq %rdx, %r8
jle 0x18a0
subq %rsi, %rdi
cmpq %rdx, %rdi
jne 0x170b
movzwl %dx, %edx
addq %rdx, %rax
addq $0x5, %rax
movq %rax, %rdx
subq %rbx, %rdx
addq $0x5, %rdx
cmpq %rcx, %rdx
jle 0x186f
subq %rbx, %rax
cmpq %rcx, %rax
jne 0x170b
movl 0x347be(%rip), %eax     # 0x360b0
testl %eax, %eax
jle 0x200f
rolw $0x8, %r14w
movq 0x347b2(%rip), %rdx     # 0x360b8
xorl %ecx, %ecx
movq (%rdx,%rcx,8), %rsi
movzwl (%rsi), %esi
testw %si, %si
je 0x191e
cmpw %r14w, %si
je 0x2011
incq %rcx
cmpq %rcx, %rax
jne 0x1908
movl %eax, %ecx
jmp 0x2011
cmpl $0xff, %r15d
je 0x1953
movq (%r14,%r13,8), %rdi
callq 0x1030
movq $0x0, (%r14,%r13,8)
incq %r13
cmpq $0x100, %r13            # imm = 0x100
jne 0x1936
testb $0x1, %bl
je 0x1ffd
movq 0x3374d(%rip), %rax     # 0x350b0
movb 0x7(%rax), %al
movb %al, 0xf(%rsp)
movq 0x33f3f(%rip), %rax     # 0x358b0
testq %rax, %rax
je 0x19fd
movb 0x7(%rax), %bl
cmpb 0xf(%rsp), %bl
jne 0x19fd
xorl %ebp, %ebp
leaq 0x33f24(%rip), %r15     # 0x358b0
movzbl %bpl, %eax
shll $0x3, %eax
movq (%rax,%r15), %rdi
movq (%rax,%r14), %rsi
movb 0x5(%rsi), %al
xorb 0x5(%rdi), %al
testb $0x3e, %al
jne 0x19fd
movzbl 0x1(%rdi), %eax
andl $0xf, %eax
shll $0x8, %eax
movzbl 0x2(%rdi), %edx
orq %rax, %rdx
movzbl 0x1(%rsi), %eax
andl $0xf, %eax
shll $0x8, %eax
movzbl 0x2(%rsi), %ecx
orl %eax, %ecx
cmpw %cx, %dx
jne 0x19fd
addq $0x3, %rdx
callq 0x10d0
testl %eax, %eax
jne 0x19fd
incb %bpl
cmpb %bl, %bpl
jbe 0x198c
xorl %ebx, %ebx
movq (%rbx,%r14), %rdi
callq 0x1030
addq $0x8, %rbx
cmpq $0x800, %rbx            # imm = 0x800
jne 0x19e2
jmp 0x1fea
leaq 0x163c(%rip), %rsi      # 0x3040
xorl %eax, %eax
xorl %ecx, %ecx
movq %rax, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
movzbl %cl, %eax
movq (%r14,%rax,8), %rdi
movzbl 0x1(%rdi), %eax
andl $0xf, %eax
movq %rax, %r8
shll $0x8, %eax
movzbl 0x2(%rdi), %r10d
orl %r10d, %eax
decw %ax
movzwl %ax, %r9d
je 0x1a5f
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %ecx, %r11d
shll $0x8, %r11d
shrl $0x18, %ecx
movzbl (%rdi,%rax), %edx
xorl %ecx, %edx
xorl (%rsi,%rdx,4), %r11d
incq %rax
movl %r11d, %ecx
cmpq %rax, %r9
jne 0x1a41
jmp 0x1a65
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movzbl (%rdi,%r9), %eax
movl %r11d, %ecx
shrl $0x18, %ecx
cmpl %eax, %ecx
jne 0x1ba4
movl %r11d, %eax
shrl $0x10, %eax
cmpb %al, 0x1(%rdi,%r9)
jne 0x1ba4
movl %r11d, %eax
shrl $0x8, %eax
cmpb %al, 0x2(%rdi,%r9)
jne 0x1ba4
cmpb %r11b, 0x3(%rdi,%r9)
jne 0x1ba4
leaq 0x8(%rdi), %rax
movq %rax, 0x28(%rsp)
shll $0x8, %r8d
orq %r10, %r8
movq %r8, 0x20(%rsp)
xorl %r10d, %r10d
movzbl %r10b, %eax
movq 0x28(%rsp), %rcx
leaq (%rcx,%rax,4), %r11
movq %r11, %rax
subq %rdi, %rax
addq $0x4, %rax
cmpq 0x20(%rsp), %rax
movl $0x0, %eax
cmovgeq %rax, %r11
jge 0x1b8e
movq %rsi, %r9
movzwl (%r11), %ebx
rolw $0x8, %bx
xorl %ebp, %ebp
movzbl %bpl, %eax
movq (%r14,%rax,8), %r13
leaq 0x8(%r13), %rax
movzbl 0x1(%r13), %ecx
andl $0xf, %ecx
shll $0x8, %ecx
movzbl 0x2(%r13), %esi
orq %rcx, %rsi
xorl %ecx, %ecx
movl %ecx, %r12d
andl $0x3fc, %r12d           # imm = 0x3FC
addq %rax, %r12
movq %r12, %r15
subq %r13, %r15
addq $0x4, %r15
cmpq %rsi, %r15
jge 0x1b47
movzwl (%r12), %r8d
rolw $0x8, %r8w
addl $0x4, %ecx
cmpw %bx, %r8w
jne 0x1b16
jmp 0x1b4a
movq %rdx, %r12
cmpq %rsi, %r15
jl 0x1b57
incb %bpl
movq %r12, %rdx
jmp 0x1af5
incl %r10d
movzbl 0x2(%r11), %eax
andl $0x1f, %eax
shll $0x8, %eax
movzbl 0x3(%r11), %ecx
orl %eax, %ecx
movzbl 0x2(%r12), %eax
andl $0x1f, %eax
shll $0x8, %eax
movzbl 0x3(%r12), %edx
orl %eax, %edx
cmpw %dx, %cx
movq %r9, %rsi
je 0x1abd
jmp 0x1ba4
movq 0x18(%rsp), %rcx
incb %cl
cmpb 0xf(%rsp), %cl
seta %al
jbe 0x1a08
jmp 0x1ba9
movq 0x10(%rsp), %rax
testb $0x1, %al
je 0x1fd2
leaq 0x33cf8(%rip), %rbx     # 0x358b0
leaq 0x40(%rsp), %rdi
movl $0x800, %edx            # imm = 0x800
movq %rbx, %rsi
callq 0x10b0
leaq 0x334df(%rip), %r14     # 0x350b0
movl $0x800, %edx            # imm = 0x800
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10b0
xorl %ebx, %ebx
movl $0x800, %edx            # imm = 0x800
movq %r14, %rdi
xorl %esi, %esi
callq 0x1070
movl 0x344b8(%rip), %eax     # 0x360b0
movl %eax, 0x18(%rsp)
movq 0x344b5(%rip), %r14     # 0x360b8
leaq 0x34a6(%rip), %r13      # 0x50b0
movq %rbx, 0x30(%rsp)
movzbl %bl, %eax
leaq 0x33c97(%rip), %rcx     # 0x358b0
movq (%rcx,%rax,8), %r12
movzbl 0x1(%r12), %eax
andl $0xf, %eax
shll $0x8, %eax
movzbl 0x2(%r12), %ecx
orl %eax, %ecx
cmpl $0xd, %ecx
jb 0x1e3d
leaq 0x8(%r12), %rax
xorl %ebp, %ebp
movq 0x40(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq %rax, 0x28(%rsp)
movl 0x18(%rsp), %ecx
movl %ecx, %edi
movq %r12, 0x38(%rsp)
movzwl (%rax), %ebx
rolw $0x8, %bx
testw %bx, %bx
je 0x1e06
movzbl 0x2(%rax), %ecx
andl $0x1f, %ecx
shll $0x8, %ecx
movzbl 0x3(%rax), %edx
orq %rcx, %rdx
movq 0x10(%rsp), %rax
testq %rax, %rax
movq %rdx, 0x20(%rsp)
je 0x1d2b
movq %rdi, %r13
movb 0x7(%rax), %cl
xorl %edx, %edx
movq %rax, %rsi
movzbl %dl, %eax
movq 0x40(%rsp,%rax,8), %rdi
leaq 0x8(%rdi), %r8
movzbl 0x1(%rdi), %eax
andl $0xf, %eax
shll $0x8, %eax
movzbl 0x2(%rdi), %r9d
orq %rax, %r9
xorl %r10d, %r10d
movl %r10d, %eax
andl $0x3fc, %eax            # imm = 0x3FC
addq %r8, %rax
movq %rax, %r11
subq %rdi, %r11
addq $0x4, %r11
cmpq %r9, %r11
jge 0x1cea
movzwl (%rax), %r15d
rolw $0x8, %r15w
addl $0x4, %r10d
cmpw %bx, %r15w
jne 0x1cbb
jmp 0x1ced
movq %rsi, %rax
cmpq %r9, %r11
jl 0x1cfa
incb %dl
cmpb %cl, %dl
jbe 0x1c97
xorl %eax, %eax
movq %r13, %rdi
leaq 0x33ac(%rip), %r13      # 0x50b0
testq %rax, %rax
je 0x1d2f
movzbl 0x2(%rax), %ecx
andl $0x1f, %ecx
shll $0x8, %ecx
movzbl 0x3(%rax), %edx
orl %ecx, %edx
movq 0x20(%rsp), %rcx
cmpw %cx, %dx
movq %rcx, %rdx
jne 0x1d36
jmp 0x1e06
xorl %eax, %eax
jmp 0x1d36
xorl %eax, %eax
movq 0x20(%rsp), %rdx
testq %rax, %rax
je 0x1d55
movzbl 0x2(%rax), %ecx
andl $0x1f, %ecx
shll $0x8, %ecx
movzbl 0x3(%rax), %eax
orq %rcx, %rax
leaq (%rax,%rax,2), %rax
decl (%r13,%rax,8)
leaq (%rdx,%rdx,2), %rax
incl (%r13,%rax,8)
testl %edi, %edi
jle 0x1d85
movl %edi, %eax
xorl %r13d, %r13d
movq (%r14,%r13,8), %rcx
movzwl (%rcx), %ecx
cmpw %bx, %cx
je 0x1d88
testw %cx, %cx
je 0x1d88
incq %r13
cmpq %r13, %rax
jne 0x1d67
movl %eax, %r13d
jmp 0x1d88
xorl %r13d, %r13d
cmpl %edi, %r13d
jne 0x1def
movq %r14, 0x18(%rsp)
movq %rdi, %r14
movl $0x10, %edi
callq 0x10c0
movq %rax, %r15
leal 0x1(%r14), %r12d
movl %r12d, 0x34303(%rip)    # 0x360b0
movslq %r14d, %rax
leaq 0x8(,%rax,8), %rsi
movq 0x18(%rsp), %rdi
callq 0x10e0
movq 0x20(%rsp), %rdx
movq %rax, %r14
movq %rax, 0x342e7(%rip)     # 0x360b8
movl %r13d, %eax
movq %r15, (%r14,%rax,8)
movq $0x0, 0x8(%r15)
movl %r12d, 0x18(%rsp)
movl %r12d, %edi
movq 0x38(%rsp), %r12
jmp 0x1df6
movl %r13d, %eax
movq (%r14,%rax,8), %r15
movw %bx, (%r15)
movw %dx, 0x2(%r15)
leaq 0x32aa(%rip), %r13      # 0x50b0
incl %ebp
movzbl %bpl, %eax
movq 0x28(%rsp), %rcx
leaq (%rcx,%rax,4), %rax
movq %rax, %rcx
subq %r12, %rcx
addq $0x4, %rcx
movzbl 0x1(%r12), %edx
andl $0xf, %edx
shll $0x8, %edx
movzbl 0x2(%r12), %esi
orq %rdx, %rsi
cmpq %rsi, %rcx
jl 0x1c5b
movq 0x30(%rsp), %rbx
incb %bl
cmpb 0xf(%rsp), %bl
jbe 0x1c0a
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x1ffd
movb 0x7(%rax), %al
movb %al, 0x18(%rsp)
movl 0x34246(%rip), %r14d    # 0x360b0
movq 0x34247(%rip), %r15     # 0x360b8
movq 0x33a38(%rip), %rax     # 0x358b0
movq %rax, 0x28(%rsp)
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movzbl %al, %eax
movq 0x40(%rsp,%rax,8), %rbp
movzbl 0x1(%rbp), %eax
andl $0xf, %eax
shll $0x8, %eax
movzbl 0x2(%rbp), %ecx
orl %eax, %ecx
cmpl $0xd, %ecx
jb 0x1fa7
leaq 0x8(%rbp), %rax
xorl %r13d, %r13d
movq %rax, 0x20(%rsp)
movzwl (%rax), %eax
rolw $0x8, %ax
testw %ax, %ax
je 0x1f73
movq 0x28(%rsp), %rcx
movb 0x7(%rcx), %cl
xorl %edx, %edx
movq %rdi, %r12
movzbl %dl, %esi
leaq 0x339d8(%rip), %rdi     # 0x358b0
movq (%rdi,%rsi,8), %r8
leaq 0x8(%r8), %r9
movzbl 0x1(%r8), %esi
andl $0xf, %esi
shll $0x8, %esi
movzbl 0x2(%r8), %r10d
orq %rsi, %r10
xorl %r11d, %r11d
movl %r11d, %edi
andl $0x3fc, %edi            # imm = 0x3FC
addq %r9, %rdi
movq %rdi, %rsi
subq %r8, %rsi
addq $0x4, %rsi
cmpq %r10, %rsi
jge 0x1f23
movzwl (%rdi), %ebx
rolw $0x8, %bx
addl $0x4, %r11d
cmpw %ax, %bx
jne 0x1ef6
jmp 0x1f26
movq %r12, %rdi
cmpq %r10, %rsi
jl 0x1f33
incb %dl
cmpb %cl, %dl
jbe 0x1ecb
xorl %edi, %edi
testl %r14d, %r14d
setle %cl
testq %rdi, %rdi
setne %dl
orb %cl, %dl
jne 0x1f73
xorl %r12d, %r12d
movq (%r15,%r12,8), %rcx
cmpw %ax, (%rcx)
je 0x1f59
incq %r12
cmpq %r12, %r14
jne 0x1f46
jmp 0x1f73
movw $0x0, (%rcx)
movq 0x8(%rcx), %rdi
callq 0x1030
movq (%r15,%r12,8), %rax
movq $0x0, 0x8(%rax)
incl %r13d
movzbl %r13b, %eax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax,4), %rax
movq %rax, %rcx
subq %rbp, %rcx
addq $0x4, %rcx
movzbl 0x1(%rbp), %edx
andl $0xf, %edx
shll $0x8, %edx
movzbl 0x2(%rbp), %esi
orq %rdx, %rsi
cmpq %rsi, %rcx
jl 0x1eb1
movq 0x10(%rsp), %rax
incb %al
cmpb 0x18(%rsp), %al
jbe 0x1e7f
xorl %ebx, %ebx
movq 0x40(%rsp,%rbx,8), %rdi
callq 0x1030
incq %rbx
cmpq $0x100, %rbx            # imm = 0x100
jne 0x1fba
jmp 0x1ffd
xorl %ebx, %ebx
movq (%rbx,%r14), %rdi
callq 0x1030
addq $0x8, %rbx
cmpq $0x800, %rbx            # imm = 0x800
jne 0x1fd4
leaq 0x330bf(%rip), %rdi     # 0x350b0
movl $0x800, %edx            # imm = 0x800
xorl %esi, %esi
callq 0x1070
addq $0x848, %rsp            # imm = 0x848
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ecx, %ecx
cmpl %eax, %ecx
je 0x170b
movq 0x34098(%rip), %rax     # 0x360b8
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
cmpw %bp, 0x2(%rax)
jne 0x170b
movzbl 0x8(%rbx), %eax
andl $0x1f, %eax
shll $0x8, %eax
movzbl 0x9(%rbx), %esi
orl %eax, %esi
leaq 0xfee(%rip), %rdi       # 0x3035
xorl %eax, %eax
callq 0x1060
xorl %edi, %edi
callq 0x1100