	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_frame
_filter_frame:                          ## @filter_frame
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	movq	8(%r15), %r14
	movq	16(%r15), %rax
	movq	(%rax), %rbx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ff_get_audio_buffer
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_27
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	28(%r14), %edi
	movq	40(%r14), %rax
	movq	8(%rax), %rsi
	movl	48(%r14), %edx
	callq	_av_audio_fifo_peek
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r12, -64(%rbp)
	movq	(%r15), %rax
	movq	_filter_channel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r8d
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	40(%r14), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	movq	32(%r14), %rcx
	movq	(%rcx), %r11
	movl	(%r14), %esi
	movl	%esi, %r13d
	andl	$-4, %r13d
	leaq	-4(%r13), %r9
	movq	%r9, %r10
	shrq	$2, %r10
	incq	%r10
	movq	%r10, %r15
	andq	$-2, %r15
	xorl	%ecx, %ecx
	xorpd	%xmm0, %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rcx
	cmpq	%rax, %rcx
	je	LBB0_19
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	testl	%esi, %esi
	jle	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r11,%rcx,8), %rdi
	cmpl	$4, %esi
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movd	%ebx, %xmm2
	pxor	%xmm3, %xmm3
	testq	%r9, %r9
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movupd	(%rdi,%rbx,8), %xmm4
	movupd	16(%rdi,%rbx,8), %xmm5
	movupd	32(%rdi,%rbx,8), %xmm6
	movupd	48(%rdi,%rbx,8), %xmm7
	cmpneqpd	%xmm1, %xmm4
	shufps	$232, %xmm4, %xmm4              ## xmm4 = xmm4[0,2,2,3]
	psubd	%xmm4, %xmm2
	cmpneqpd	%xmm1, %xmm5
	shufps	$232, %xmm5, %xmm5              ## xmm5 = xmm5[0,2,2,3]
	psubd	%xmm5, %xmm3
	cmpneqpd	%xmm1, %xmm6
	shufps	$232, %xmm6, %xmm6              ## xmm6 = xmm6[0,2,2,3]
	psubd	%xmm6, %xmm2
	cmpneqpd	%xmm1, %xmm7
	shufps	$232, %xmm7, %xmm7              ## xmm7 = xmm7[0,2,2,3]
	psubd	%xmm7, %xmm3
	addq	$8, %rbx
	addq	$-2, %rdx
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %r10b
	je	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movupd	(%rdi,%rbx,8), %xmm4
	movupd	16(%rdi,%rbx,8), %xmm5
	cmpneqpd	%xmm1, %xmm4
	shufps	$232, %xmm4, %xmm4              ## xmm4 = xmm4[0,2,2,3]
	psubd	%xmm4, %xmm2
	cmpneqpd	%xmm1, %xmm5
	shufps	$232, %xmm5, %xmm5              ## xmm5 = xmm5[0,2,2,3]
	psubd	%xmm5, %xmm3
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	paddd	%xmm3, %xmm2
	pshufd	$85, %xmm2, %xmm3               ## xmm3 = xmm2[1,1,1,1]
	paddd	%xmm2, %xmm3
	movd	%xmm3, %ebx
	movq	%r13, %rdx
	cmpq	%rsi, %r13
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%rdi,%rdx,8), %xmm2            ## xmm2 = mem[0],zero
	cmpneqsd	%xmm0, %xmm2
	movq	%xmm2, %r8
	subl	%r8d, %ebx
	incq	%rdx
	cmpq	%rdx, %rsi
	jne	LBB0_17
	jmp	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	testb	$1, %r10b
	jne	LBB0_15
	jmp	LBB0_16
LBB0_2:
	movl	%eax, %r13d
	leaq	-72(%rbp), %rdi
	callq	_av_frame_free
LBB0_26:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movl	(%r14), %esi
	xorl	%ebx, %ebx
LBB0_19:
	movl	28(%r14), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_av_audio_fifo_drain
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_20
## %bb.21:
	movl	(%r14), %edi
	callq	_FFMIN
	movl	%eax, (%r12)
	jmp	LBB0_22
LBB0_20:
	movl	(%r12), %eax
LBB0_22:
	movl	16(%r14), %ecx
	movl	%ecx, 4(%r12)
	addl	(%r14), %ecx
	movl	%ecx, 16(%r14)
	addl	%ebx, 20(%r14)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	imull	(%rcx), %eax
	addl	%eax, 24(%r14)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ff_filter_frame
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_26
## %bb.23:
	movq	8(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_26
## %bb.24:
	movslq	(%r14), %rcx
	subq	%rcx, %rax
	movq	%rax, 8(%r14)
	jg	LBB0_26
## %bb.25:
	movl	28(%r14), %ebx
	movl	%ebx, %edi
	callq	_av_audio_fifo_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_av_audio_fifo_drain
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_filter_channel,4,2             ## @filter_channel
	.no_dead_strip	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_frame
_filter_frame:                          ; @filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x23, [x0, #8]
	ldp	x24, x8, [x23, #8]
	ldr	x20, [x8]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_ff_get_audio_buffer
	str	x0, [sp, #8]
	cbz	x0, LBB0_16
; %bb.1:
	mov	x21, x0
	ldr	w0, [x24, #28]
	ldr	x8, [x24, #40]
	ldr	x1, [x8, #8]
	ldr	w2, [x24, #48]
	bl	_av_audio_fifo_peek
	tbnz	w0, #31, LBB0_14
; %bb.2:
	str	x21, [sp]
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _filter_channel@GOTPAGE
Lloh1:
	ldr	x9, [x9, _filter_channel@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	ldr	w4, [x19]
	mov	x2, sp
	mov	x0, x23
	mov	x3, #0
	blr	x8
	tbnz	w0, #31, LBB0_14
; %bb.3:
	ldr	x8, [x24, #40]
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_17
; %bb.4:
	mov	x9, #0
	mov	w22, #0
	ldr	x10, [x24, #32]
	ldr	x10, [x10]
	ldr	w1, [x24]
	and	x11, x1, #0xfffffff8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_18
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w1, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x10, x9, lsl #3]
	cmp	w1, #8
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x13, #0
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	movi	d0, #0000000000000000
	mov.s	v0[0], w22
	movi.2d	v1, #0000000000000000
	add	x13, x12, #32
	mov	x14, x11
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	fcmeq.2d	v4, v4, #0.0
	mvn.16b	v4, v4
	xtn.2s	v4, v4
	fcmeq.2d	v5, v5, #0.0
	mvn.16b	v5, v5
	xtn.2s	v5, v5
	fcmeq.2d	v6, v6, #0.0
	mvn.16b	v6, v6
	xtn.2s	v6, v6
	fcmeq.2d	v7, v7, #0.0
	mvn.16b	v7, v7
	xtn.2s	v7, v7
	sub.2s	v0, v0, v4
	sub.2s	v1, v1, v5
	sub.2s	v2, v2, v6
	sub.2s	v3, v3, v7
	subs	x14, x14, #8
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w22, s0
	mov	x13, x11
	cmp	x11, x1
	b.eq	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x12, x12, x13, lsl #3
	sub	x13, x1, x13
LBB0_13:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x12], #8
	fcmp	d0, #0.0
	cinc	w22, w22, ne
	subs	x13, x13, #1
	b.ne	LBB0_13
	b	LBB0_5
LBB0_14:
	mov	x22, x0
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_15:
	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
	add	sp, sp, #80
	ret
LBB0_16:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	b	_AVERROR
LBB0_17:
	mov	w22, #0
	ldr	w1, [x24]
LBB0_18:
	ldr	w0, [x24, #28]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_av_audio_fifo_drain
	ldr	x1, [x24, #8]
	cmp	x1, #0
	b.le	LBB0_20
; %bb.19:
	ldr	w0, [x24]
	bl	_FFMIN
	str	w0, [x21]
	b	LBB0_21
LBB0_20:
	ldr	w0, [x21]
LBB0_21:
	ldr	w8, [x24, #16]
	str	w8, [x21, #4]
	ldr	w9, [x24]
	add	w8, w9, w8
	ldp	w9, w10, [x24, #20]
	add	w9, w9, w22
	stp	w8, w9, [x24, #16]
	ldr	w8, [x19]
	madd	w8, w8, w0, w10
	str	w8, [x24, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_ff_filter_frame
	mov	x22, x0
	tbnz	w0, #31, LBB0_15
; %bb.22:
	ldr	x8, [x24, #8]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.23:
	ldrsw	x9, [x24]
	sub	x8, x8, x9
	str	x8, [x24, #8]
	cmp	x8, #0
	b.gt	LBB0_15
; %bb.24:
	ldr	w19, [x24, #28]
	mov	x0, x19
	bl	_av_audio_fifo_size
	mov	x1, x0
	mov	x0, x19
	bl	_av_audio_fifo_drain
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_filter_channel,4,2             ; @filter_channel
	.no_dead_strip	_filter_frame
.subsections_via_symbols
