// File: /workspace/github_c_makefile_star2_O3/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), %ecx
movzbl 0x1(%rsi), %eax
testb %al, %al
jns 0x1677
movzbl 0x2(%rbx), %edx
movzwl %ax, %esi
andl $0xf, %esi
shll $0x8, %esi
orl %edx, %esi
cmpw $0x8, %si
jbe 0x1fe5
cmpl $0x2, %ecx
je 0x1753
testl %ecx, %ecx
jne 0x1fe5
testb %al, %al
setns %al
testw %bp, %bp
setne %cl
orb %al, %cl
jne 0x1fe5
movb 0x2(%rbx), %al
decb %al
testb $0x3, %al
jne 0x1fe5
movzbl 0x6(%rbx), %r13d
movb 0x7(%rbx), %bpl
movb 0x5(%rbx), %r15b
movzwl 0x3(%rbx), %r12d
leaq 0x339ef(%rip), %r14     # 0x350b0
movq (%r14,%r13,8), %rdi
callq 0x1030
movq %rbx, (%r14,%r13,8)
movq 0x339db(%rip), %rax     # 0x350b0
testq %rax, %rax
je 0x1fba
movl %ebp, %r8d
cmpb %bpl, 0x7(%rax)
jne 0x1fba
movb 0x5(%rax), %cl
xorb %r15b, %cl
testb $0x3e, %cl
jne 0x1fba
rolw $0x8, %r12w
movzbl %r8b, %ecx
leaq 0x1(%rcx), %rbx
xorl %edx, %edx
xorl %esi, %esi
movzwl 0x3(%rax), %eax
rolw $0x8, %ax
cmpw %r12w, %ax
jne 0x1745
cmpq %rsi, %rcx
je 0x1926
setbe %dl
movq 0x8(%r14,%rsi,8), %rax
testq %rax, %rax
je 0x1745
cmpb %r8b, 0x7(%rax)
jne 0x1745
movb 0x5(%rax), %dil
xorb %r15b, %dil
incq %rsi
testb $0x3e, %dil
je 0x170b
testb $0x1, %dl
jne 0x1959
jmp 0x1fba
testb %al, %al
jns 0x1fe5
cmpb $0x0, 0x6(%rbx)
jne 0x1fe5
cmpb $0x0, 0x7(%rbx)
jne 0x1fe5
movzwl %ax, %eax
andl $0xf, %eax
shll $0x8, %eax
movzbl 0x2(%rbx), %ecx
movzwl %ax, %esi
movzwl %cx, %edx
addl %esi, %edx
decw %dx
je 0x17c1
movzwl %dx, %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edi, %edi
leaq 0x18a6(%rip), %r8       # 0x3040
movl %esi, %r9d
shll $0x8, %r9d
shrl $0x18, %esi
movzbl (%rbx,%rdi), %r10d
xorl %esi, %r10d
movl %r9d, %esi
xorl (%r8,%r10,4), %esi
incq %rdi
cmpq %rdi, %rdx
jne 0x179a
movzbl (%rbx,%rdx), %edi
jmp 0x17cd
xorl %edx, %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x2, %edi
movl %esi, %r8d
shrl $0x18, %r8d
cmpl %edi, %r8d
jne 0x1fe5
movl %esi, %edi
shrl $0x10, %edi
cmpb %dil, 0x1(%rbx,%rdx)
jne 0x1fe5
movl %esi, %edi
shrl $0x8, %edi
cmpb %dil, 0x2(%rbx,%rdx)
jne 0x1fe5
cmpb %sil, 0x3(%rbx,%rdx)
jne 0x1fe5
leal (%rax,%rcx), %r15d
decl %r15d
cmpw $0xc, %r15w
jb 0x1fe5
movzbl 0xa(%rbx), %r12d
movzbl 0xb(%rbx), %eax
andl $0xf, %r12d
shll $0x8, %r12d
orq %rax, %r12
leal 0xc(%r12), %eax
cmpw %ax, %r15w
jb 0x1fe5
movzwl 0x3(%rbx), %r14d
leaq 0xa(%rbx), %rdi
callq 0x2023
testb %al, %al
je 0x1fe5
leaq (%rbx,%r12), %rax
addq $0xc, %rax
movzwl %r15w, %ecx
addq $0x11, %r12
cmpq %rcx, %r12
jg 0x18d9
movzbl 0x3(%rax), %edx
movzbl 0x4(%rax), %esi
andl $0xf, %edx
shll $0x8, %edx
orq %rsi, %rdx
leaq (%rax,%rdx), %rsi
addq $0x5, %rsi
subq %rbx, %rsi
cmpq %rcx, %rsi
jg 0x18d9
leaq 0x5(%rax), %rsi
movq %rsi, %rdi
cmpw $0x2, %dx
jb 0x18b4
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 0x1899
subq %rsi, %rdi
cmpq %rdx, %rdi
jne 0x1fe5
movzwl %dx, %edx
addq %rdx, %rax
addq $0x5, %rax
movq %rax, %rdx
subq %rbx, %rdx
addq $0x5, %rdx
cmpq %rcx, %rdx
jle 0x1868
subq %rbx, %rax
cmpq %rcx, %rax
jne 0x1fe5
movslq 0x347c4(%rip), %rax     # 0x360b0
testq %rax, %rax
jle 0x1fcc
rolw $0x8, %r14w
movq 0x347b7(%rip), %rdx     # 0x360b8
xorl %ecx, %ecx
movq (%rdx,%rcx,8), %rsi
movzwl (%rsi), %esi
testw %si, %si
je 0x1919
cmpw %r14w, %si
je 0x1fce
incq %rcx
cmpq %rcx, %rax
jne 0x1903
jmp 0x1fe5
cmpb $-0x1, %r8b
je 0x1956
movq (%r14,%rbx,8), %rdi
callq 0x1030
movq $0x0, (%r14,%rbx,8)
incq %rbx
cmpq $0x100, %rbx            # imm = 0x100
jne 0x192c
movq 0x33760(%rip), %rax     # 0x350b0
movb 0x7(%rax), %r8b
jmp 0x1959
movb $-0x1, %r8b
movq 0x33f50(%rip), %rax     # 0x358b0
testq %rax, %rax
movb %r8b, 0x18(%rsp)
je 0x19ef
cmpb %r8b, 0x7(%rax)
jne 0x19ef
xorl %ebx, %ebx
leaq 0x33f33(%rip), %r15     # 0x358b0
movzbl %bl, %eax
shll $0x3, %eax
movq (%rax,%r15), %rdi
movq (%rax,%r14), %rsi
movb 0x5(%rsi), %al
xorb 0x5(%rdi), %al
testb $0x3e, %al
jne 0x19ef
movzbl 0x1(%rdi), %edx
movzbl 0x2(%rdi), %eax
andl $0xf, %edx
shll $0x8, %edx
orq %rax, %rdx
movzbl 0x1(%rsi), %eax
movzbl 0x2(%rsi), %ecx
andl $0xf, %eax
shll $0x8, %eax
orl %ecx, %eax
cmpw %ax, %dx
jne 0x19ef
addq $0x3, %rdx
callq 0x10d0
movb 0x18(%rsp), %cl
testl %eax, %eax
jne 0x19ef
incb %bl
cmpb %cl, %bl
jbe 0x197d
xorl %ebx, %ebx
movq (%rbx,%r14), %rdi
callq 0x1030
addq $0x8, %rbx
cmpq $0x800, %rbx            # imm = 0x800
jne 0x19d4
jmp 0x1fa7
xorl %eax, %eax
leaq 0x1648(%rip), %rbp      # 0x3040
movq %rax, 0x10(%rsp)
movzbl %al, %eax
movq (%r14,%rax,8), %rdx
movzbl 0x1(%rdx), %esi
movzbl 0x2(%rdx), %r8d
andl $0xf, %esi
movl %esi, %eax
shll $0x8, %eax
orl %r8d, %eax
decw %ax
je 0x1a4d
movzwl %ax, %edi
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %r9d, %r10d
shll $0x8, %r10d
shrl $0x18, %r9d
movzbl (%rdx,%rax), %r11d
xorl %r9d, %r11d
movl %r10d, %r9d
xorl (%rbp,%r11,4), %r9d
incq %rax
cmpq %rax, %rdi
jne 0x1a28
jmp 0x1a55
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
xorl %edi, %edi
movzbl (%rdx,%rdi), %eax
movl %r9d, %r10d
shrl $0x18, %r10d
cmpl %eax, %r10d
jne 0x1f8f
movl %r9d, %eax
shrl $0x10, %eax
cmpb %al, 0x1(%rdx,%rdi)
jne 0x1f8f
movl %r9d, %eax
shrl $0x8, %eax
cmpb %al, 0x2(%rdx,%rdi)
jne 0x1f8f
cmpb %r9b, 0x3(%rdx,%rdi)
jne 0x1f8f
leaq 0x8(%rdx), %rdi
shll $0x8, %esi
orq %r8, %rsi
xorl %r8d, %r8d
movzbl %r8b, %eax
leaq (%rdi,%rax,4), %rax
movq %rax, %r10
subq %rdx, %r10
addq $0x4, %r10
movl $0x0, %r9d
cmpq %rsi, %r10
cmovlq %rax, %r9
jge 0x1b60
movzwl (%rax), %r10d
rolw $0x8, %r10w
xorl %r11d, %r11d
movzbl %r11b, %eax
movq (%r14,%rax,8), %rbx
leaq 0x8(%rbx), %r15
movzbl 0x1(%rbx), %r13d
movzbl 0x2(%rbx), %eax
andl $0xf, %r13d
shll $0x8, %r13d
orq %rax, %r13
xorl %eax, %eax
movl %eax, %ecx
andl $0x3fc, %ecx            # imm = 0x3FC
addq %r15, %rcx
movq %rcx, %r12
subq %rbx, %r12
addq $0x4, %r12
cmpq %r13, %r12
jge 0x1b22
movzwl (%rcx), %r12d
rolw $0x8, %r12w
addl $0x4, %eax
cmpw %r10w, %r12w
jne 0x1af4
jmp 0x1b27
incb %r11b
jmp 0x1ad2
incl %r8d
movzbl 0x2(%r9), %eax
movzbl 0x3(%r9), %r9d
andl $0x1f, %eax
shll $0x8, %eax
orl %r9d, %eax
movzbl 0x2(%rcx), %r9d
movzbl 0x3(%rcx), %ecx
andl $0x1f, %r9d
shll $0x8, %r9d
orl %ecx, %r9d
cmpw %r9w, %ax
je 0x1aa1
jmp 0x1f8f
movq 0x10(%rsp), %rax
incb %al
movb 0x18(%rsp), %r8b
cmpb %r8b, %al
jbe 0x19f8
leaq 0x33d34(%rip), %rbx     # 0x358b0
leaq 0x40(%rsp), %r15
movl $0x800, %edx            # imm = 0x800
movq %r15, %rdi
movq %rbx, %rsi
movl %r8d, %ebp
callq 0x10b0
leaq 0x33515(%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 0x344ee(%rip), %eax     # 0x360b0
movl %eax, 0x8(%rsp)
movq 0x344eb(%rip), %r14     # 0x360b8
movq (%r15), %r13
movzbl %bpl, %eax
movq %rax, 0x30(%rsp)
movq %r13, 0x28(%rsp)
leaq 0x33ccb(%rip), %rax     # 0x358b0
movq %rbx, 0x38(%rsp)
movq (%rax,%rbx,8), %r9
movzbl 0x1(%r9), %eax
movzbl 0x2(%r9), %ecx
movl %eax, %edx
andl $0xf, %edx
shll $0x8, %edx
addl %ecx, %edx
cmpl $0xd, %edx
jb 0x1df3
leaq 0x8(%r9), %rdx
xorl %ebx, %ebx
movq %rdx, 0x18(%rsp)
movl 0x8(%rsp), %esi
movq %rsi, 0x10(%rsp)
movq %r9, 0x20(%rsp)
movzwl (%rdx), %r12d
rolw $0x8, %r12w
testw %r12w, %r12w
je 0x1dbe
movzbl 0x2(%rdx), %ebp
movzbl 0x3(%rdx), %edx
andl $0x1f, %ebp
shll $0x8, %ebp
orq %rdx, %rbp
testq %r13, %r13
je 0x1cee
movb 0x7(%r13), %dl
xorl %esi, %esi
movzbl %sil, %edi
movq 0x40(%rsp,%rdi,8), %rdi
leaq 0x8(%rdi), %r8
movzbl 0x1(%rdi), %r9d
movzbl 0x2(%rdi), %r10d
andl $0xf, %r9d
shll $0x8, %r9d
orq %r10, %r9
xorl %r11d, %r11d
movl %r11d, %r10d
andl $0x3fc, %r10d           # imm = 0x3FC
addq %r8, %r10
movq %r10, %r15
subq %rdi, %r15
addq $0x4, %r15
cmpq %r9, %r15
jge 0x1cad
movzwl (%r10), %r15d
rolw $0x8, %r15w
addl $0x4, %r11d
cmpw %r12w, %r15w
jne 0x1c7c
jmp 0x1cb7
incb %sil
cmpb %dl, %sil
jbe 0x1c57
jmp 0x1cee
movzbl 0x2(%r10), %edx
movzbl 0x3(%r10), %esi
andl $0x1f, %edx
movl %edx, %edi
shll $0x8, %edi
orl %esi, %edi
cmpw %bp, %di
jne 0x1cda
movq 0x20(%rsp), %r9
jmp 0x1dbe
shll $0x8, %edx
orq %rsi, %rdx
leaq (%rdx,%rdx,2), %rax
leaq 0x33c5(%rip), %rcx      # 0x50b0
decl (%rcx,%rax,8)
leaq (,%rbp,2), %rax
addq %rbp, %rax
leaq 0x33b0(%rip), %rcx      # 0x50b0
incl (%rcx,%rax,8)
movq 0x10(%rsp), %rdx
testl %edx, %edx
jle 0x1d32
movl %edx, %r13d
xorl %eax, %eax
movq (%r14,%rax,8), %rcx
movzwl (%rcx), %ecx
cmpw %r12w, %cx
je 0x1d36
testw %cx, %cx
je 0x1d36
incq %rax
cmpq %rax, %r13
jne 0x1d11
movq %r14, 0x8(%rsp)
jmp 0x1d47
xorl %eax, %eax
jmp 0x1d3b
movq 0x28(%rsp), %r13
cmpl %edx, %eax
jne 0x1da2
movq %r14, 0x8(%rsp)
movl %edx, %r13d
movq %rdx, %r14
movl $0x10, %edi
callq 0x10c0
movq %rax, %r15
movq %r14, %rax
incl %r14d
movl %r14d, 0x3434c(%rip)    # 0x360b0
cltq
leaq 0x8(,%rax,8), %rsi
movq 0x8(%rsp), %rdi
callq 0x10e0
movq %rax, 0x34339(%rip)     # 0x360b8
movq %r15, (%rax,%r13,8)
movq $0x0, 0x8(%r15)
movl %r14d, 0x8(%rsp)
movl %r14d, %ecx
movq %rcx, 0x10(%rsp)
movq %rax, %r14
movq 0x28(%rsp), %r13
jmp 0x1da8
movl %eax, %eax
movq (%r14,%rax,8), %r15
movq 0x20(%rsp), %r9
movw %r12w, (%r15)
movw %bp, 0x2(%r15)
movb 0x1(%r9), %al
movb 0x2(%r9), %cl
incl %ebx
movzbl %bl, %edx
movq 0x18(%rsp), %rsi
leaq (%rsi,%rdx,4), %rdx
movq %rdx, %rsi
subq %r9, %rsi
addq $0x4, %rsi
movl %eax, %edi
andb $0xf, %dil
movzbl %dil, %edi
shll $0x8, %edi
movzbl %cl, %r8d
orq %rdi, %r8
cmpq %r8, %rsi
jl 0x1c24
movq 0x38(%rsp), %rcx
leaq 0x1(%rcx), %rbx
cmpq 0x30(%rsp), %rcx
jne 0x1bde
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x1fba
movb 0x7(%rax), %al
movb %al, 0x10(%rsp)
movl 0x3428e(%rip), %eax     # 0x360b0
movq %rax, 0x20(%rsp)
movq 0x3428a(%rip), %rax     # 0x360b8
movq %rax, 0x8(%rsp)
movq 0x33a76(%rip), %r12     # 0x358b0
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movzbl %al, %eax
movq 0x40(%rsp,%rax,8), %rbp
movzbl 0x1(%rbp), %eax
movzbl 0x2(%rbp), %ecx
movl %eax, %edx
andl $0xf, %edx
shll $0x8, %edx
addl %ecx, %edx
cmpl $0xd, %edx
jb 0x1f64
leaq 0x8(%rbp), %rbx
xorl %r15d, %r15d
movq %rbx, %rdx
movzwl (%rdx), %edx
rolw $0x8, %dx
testw %dx, %dx
je 0x1f32
movb 0x7(%r12), %sil
xorl %edi, %edi
movzbl %dil, %r8d
leaq 0x33a20(%rip), %r9      # 0x358b0
movq (%r9,%r8,8), %r8
leaq 0x8(%r8), %r9
movzbl 0x1(%r8), %r10d
movzbl 0x2(%r8), %r11d
andl $0xf, %r10d
shll $0x8, %r10d
orq %r11, %r10
xorl %r11d, %r11d
movl %r11d, %r13d
andl $0x3fc, %r13d           # imm = 0x3FC
addq %r9, %r13
movq %r13, %r14
subq %r8, %r14
addq $0x4, %r14
cmpq %r10, %r14
jge 0x1ee2
movzwl (%r13), %r14d
rolw $0x8, %r14w
addl $0x4, %r11d
cmpw %dx, %r14w
jne 0x1eb0
jmp 0x1f32
incb %dil
cmpb %sil, %dil
jbe 0x1e85
movq 0x20(%rsp), %rdi
testl %edi, %edi
movq 0x8(%rsp), %r8
jle 0x1f32
xorl %r14d, %r14d
movq (%r8,%r14,8), %rsi
cmpw %dx, (%rsi)
je 0x1f0e
incq %r14
cmpq %r14, %rdi
jne 0x1efb
jmp 0x1f32
movw $0x0, (%rsi)
movq 0x8(%rsi), %rdi
movq %r8, %r13
callq 0x1030
movq (%r13,%r14,8), %rax
movq $0x0, 0x8(%rax)
movb 0x1(%rbp), %al
movb 0x2(%rbp), %cl
incl %r15d
movzbl %r15b, %edx
leaq (%rbx,%rdx,4), %rdx
movq %rdx, %rsi
subq %rbp, %rsi
addq $0x4, %rsi
movl %eax, %edi
andb $0xf, %dil
movzbl %dil, %edi
shll $0x8, %edi
movzbl %cl, %r8d
orq %rdi, %r8
cmpq %r8, %rsi
jl 0x1e6e
movq 0x18(%rsp), %rax
incb %al
cmpb 0x10(%rsp), %al
jbe 0x1e3c
xorl %ebx, %ebx
movq 0x40(%rsp,%rbx,8), %rdi
callq 0x1030
incq %rbx
cmpq $0x100, %rbx            # imm = 0x100
jne 0x1f77
jmp 0x1fba
xorl %ebx, %ebx
movq (%rbx,%r14), %rdi
callq 0x1030
addq $0x8, %rbx
cmpq $0x800, %rbx            # imm = 0x800
jne 0x1f91
leaq 0x33102(%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 0x1fe5
movq 0x340df(%rip), %rax     # 0x360b8
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
cmpw %bp, 0x2(%rax)
je 0x1ffe
movq %rbx, %rdi
addq $0x848, %rsp            # imm = 0x848
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
movzbl 0x8(%rbx), %esi
movzbl 0x9(%rbx), %eax
andl $0x1f, %esi
shll $0x8, %esi
orl %eax, %esi
leaq 0x101d(%rip), %rdi      # 0x3032
xorl %eax, %eax
callq 0x1060
xorl %edi, %edi
callq 0x1100