	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pat_cb
_pat_cb:                                ## @pat_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	24(%rdi), %r15
	movq	8(%r15), %rdi
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	8(%r15), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_hex_dump_debug
	movslq	%r14d, %rax
	leaq	(%rbx,%rax,4), %r14
	addq	$-16, %r14
	movq	%rbx, -48(%rbp)
	leaq	-72(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdx
	callq	_parse_section_header
	testq	%rax, %rax
	js	LBB0_30
## %bb.1:
	movq	-72(%rbp), %rax
	movq	_PAT_TID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.2:
	cmpq	$0, 40(%r15)
	jne	LBB0_30
## %bb.3:
	addq	$16, %r12
	leaq	-72(%rbp), %rdi
	movq	%r12, %rsi
	callq	_skip_identical
	testq	%rax, %rax
	je	LBB0_4
LBB0_30:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-64(%rbp), %eax
	movq	8(%r15), %rcx
	movl	%eax, 16(%rcx)
	movq	%r15, %rdi
	callq	_clear_programs
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_get16
	testl	%eax, %eax
	js	LBB0_20
## %bb.5:
	movl	%eax, %r13d
	leaq	-48(%rbp), %rbx
	jmp	LBB0_6
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_add_pat_entry
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_add_pid_to_pmt
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_add_pid_to_pmt
	leaq	-48(%rbp), %rbx
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get16
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_20
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get16
	testl	%eax, %eax
	js	LBB0_30
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r12d
	andl	$8191, %r12d                    ## imm = 0x1FFF
	cmpl	(%r15), %r12d
	je	LBB0_30
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rdi
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	testl	%r13d, %r13d
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rdi
	movq	32(%r15), %rax
	movl	%r12d, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rbx
	movl	%r13d, %esi
	callq	_av_new_program
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, (%rax)
	movl	%r12d, 4(%rax)
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	movq	_MPEGTS_SECTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r12d, 8(%rbx)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rax
	movq	_pmt_cb@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rsi
	movq	%r15, %rdi
	callq	_mpegts_close_filter
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_pmt_cb@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_mpegts_open_section_filter
	jmp	LBB0_18
LBB0_20:
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_30
## %bb.21:
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_22 Depth=1
	incq	%rbx
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_30
LBB0_22:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movl	4(%r15), %ecx
	movl	$0, %edx
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	24(%r15), %rsi
	movq	8(%rax), %rdx
	movq	(%rdx,%rbx,8), %rdx
	movq	(%rdx), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdi, (%rsi,%rdx,8)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_24
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpl	%ecx, %edx
	jne	LBB0_29
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpl	$0, 16(%r15)
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_clear_avprogram
	movq	8(%r15), %rax
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PAT:\n"

	.comm	_PAT_TID,8,3                    ## @PAT_TID
L_.str.1:                               ## @.str.1
	.asciz	"sid=0x%x pid=0x%x\n"

	.comm	_MPEGTS_SECTION,8,3             ## @MPEGTS_SECTION
	.comm	_pmt_cb,8,3                     ## @pmt_cb
	.no_dead_strip	_pat_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pat_cb
_pat_cb:                                ; @pat_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x19, [x0, #24]
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x24, _AV_LOG_TRACE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AV_LOG_TRACE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	x0, [x19, #8]
	mov	x1, x22
	mov	x2, x20
	bl	_hex_dump_debug
	add	x8, x22, w20, sxtw #2
	sub	x20, x8, #16
	str	x22, [sp, #24]
	add	x0, sp, #32
	add	x1, sp, #24
	mov	x2, x20
	bl	_parse_section_header
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x8, [sp, #32]
Lloh4:
	adrp	x9, _PAT_TID@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PAT_TID@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_4
; %bb.3:
	add	x1, x21, #16
	add	x0, sp, #32
	bl	_skip_identical
	cbz	x0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	ldr	w8, [sp, #40]
	ldr	x9, [x19, #8]
	str	w8, [x9, #16]
	mov	x0, x19
	bl	_clear_programs
	add	x0, sp, #24
	mov	x1, x20
	bl	_get16
	tbnz	w0, #31, LBB0_21
; %bb.6:
	mov	x22, x0
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh9:
	adrp	x25, _pmt_cb@GOTPAGE
Lloh10:
	ldr	x25, [x25, _pmt_cb@GOTPAGEOFF]
Lloh11:
	adrp	x26, _MPEGTS_SECTION@GOTPAGE
Lloh12:
	ldr	x26, [x26, _MPEGTS_SECTION@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_add_pat_entry
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_add_pid_to_pmt
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_add_pid_to_pmt
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #24
	mov	x1, x20
	bl	_get16
	mov	x22, x0
	tbnz	w0, #31, LBB0_21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	x1, x20
	bl	_get16
	tbnz	w0, #31, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	and	w23, w0, #0x1fff
	ldr	w8, [x19]
	cmp	w23, w8
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	mov	x8, x23
	stp	x22, x8, [sp]
	mov	x2, x21
	bl	_av_log
	cbz	w22, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #32]
	ldr	x27, [x8, w23, uxtw #3]
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_av_new_program
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	stp	w22, w23, [x0]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	x27, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x27, #8]
	cmp	w8, w23
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x27, #16]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #32]
	ldr	x1, [x8, x23, lsl #3]
	mov	x0, x19
	bl	_mpegts_close_filter
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x23, lsl #3]
	cbnz	x8, LBB0_7
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x2, [x25]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x19
	mov	w4, #1
	bl	_mpegts_open_section_filter
	b	LBB0_7
LBB0_21:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.22:
	mov	x20, #0
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x20, x20, #1
	ldrsw	x9, [x8]
	cmp	x20, x9
	b.ge	LBB0_4
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x10, #0
	ldr	x11, [x19, #24]
	ldr	x12, [x8, #8]
	ldr	x12, [x12, x20, lsl #3]
	ldr	x12, [x12]
LBB0_26:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x11, x10, lsl #3]
	cmp	x13, x12
	b.eq	LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_26
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w10, #0
LBB0_29:                                ;   in Loop: Header=BB0_24 Depth=1
	cmp	w10, w9
	b.ne	LBB0_23
LBB0_30:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	w9, [x19, #16]
	cbnz	w9, LBB0_23
; %bb.31:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_clear_avprogram
	ldr	x8, [x19, #8]
	b	LBB0_23
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PAT:\n"

	.comm	_PAT_TID,8,3                    ; @PAT_TID
l_.str.1:                               ; @.str.1
	.asciz	"sid=0x%x pid=0x%x\n"

	.comm	_MPEGTS_SECTION,8,3             ; @MPEGTS_SECTION
	.comm	_pmt_cb,8,3                     ; @pmt_cb
	.no_dead_strip	_pat_cb
.subsections_via_symbols
