	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_units_filter
_filter_units_filter:                   ## @filter_units_filter
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	callq	_ff_bsf_get_packet_ref
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movq	(%r13), %rax
	movq	_NOOP@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.2:
	leaq	32(%r13), %r12
	movl	24(%r13), %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_ff_cbs_read_packet
	testl	%eax, %eax
	js	LBB0_18
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	movl	(%r12), %r15d
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_REMOVE@GOTPCREL(%rip), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	24(%r13), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_ff_cbs_delete_unit
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$1, %rbx
	jle	LBB0_14
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%r15, %rbx
	decq	%r15
	movl	8(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rcx
	movq	40(%r13), %rdx
	movq	(%rdx,%r15,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rcx,%rsi,8), %rdx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rax
	cmpq	(%r14), %rax
	jne	LBB0_5
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rax
	cmpq	(%r14), %rax
	jne	LBB0_6
	jmp	LBB0_5
LBB0_13:
	movl	%eax, %r15d
	jmp	LBB0_22
LBB0_14:
	movl	(%r12), %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_15:
	testl	%r15d, %r15d
	je	LBB0_23
## %bb.16:
	movl	24(%r13), %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ff_cbs_write_packet
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_21
## %bb.17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_18:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
LBB0_19:
	callq	_av_log
LBB0_20:
	movq	%r14, %rdi
	callq	_av_packet_unref
LBB0_21:
	movl	24(%r13), %edi
	movq	%r12, %rsi
	callq	_ff_cbs_fragment_reset
LBB0_22:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_21
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_NOOP,8,3                       ## @NOOP
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read packet.\n"

	.comm	_REMOVE,8,3                     ## @REMOVE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write packet.\n"

	.no_dead_strip	_filter_units_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_units_filter
_filter_units_filter:                   ; @filter_units_filter
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0]
	bl	_ff_bsf_get_packet_ref
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _NOOP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NOOP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w22, #0
	b	LBB0_23
LBB0_3:
	mov	x22, x0
	b	LBB0_23
LBB0_4:
	add	x20, x23, #32
	ldr	w0, [x23, #24]
	mov	x1, x20
	mov	x2, x19
	bl	_ff_cbs_read_packet
	tbnz	w0, #31, LBB0_19
; %bb.5:
	ldr	w22, [x20]
	cmp	w22, #1
	b.lt	LBB0_16
; %bb.6:
Lloh3:
	adrp	x24, _REMOVE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _REMOVE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23, #24]
	mov	x1, x20
	mov	x2, x22
	bl	_ff_cbs_delete_unit
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	x25, #1
	b.le	LBB0_15
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x25, x22
	sub	x22, x22, #1
	ldr	w8, [x23, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x23, #40]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x10, [x23, #16]
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10]
	cmp	x9, x11
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_7
	b	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_7
	b	LBB0_8
LBB0_15:
	ldr	w22, [x20]
LBB0_16:
	cbz	w22, LBB0_24
; %bb.17:
	ldr	w0, [x23, #24]
	mov	x1, x19
	mov	x2, x20
	bl	_ff_cbs_write_packet
	mov	x22, x0
	tbz	w0, #31, LBB0_22
; %bb.18:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_19:
	mov	x22, x0
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
LBB0_20:
	mov	x0, x21
	bl	_av_log
LBB0_21:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_22:
	ldr	w0, [x23, #24]
	mov	x1, x20
	bl	_ff_cbs_fragment_reset
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_24:
Lloh15:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
	tbz	w0, #31, LBB0_22
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NOOP,8,3                       ; @NOOP
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read packet.\n"

	.comm	_REMOVE,8,3                     ; @REMOVE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write packet.\n"

	.no_dead_strip	_filter_units_filter
.subsections_via_symbols
