	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function filter_channel
LCPI0_0:
	.long	0x47800000                      ## float 65536
LCPI0_1:
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_filter_channel:                        ## @filter_channel
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %r14
	movslq	(%r14), %r13
	movslq	4(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	56(%r14), %edi
	movq	72(%r14), %rax
	movq	(%rax), %rax
	movslq	%edx, %rbx
	movq	(%rax,%rbx,8), %r15
	movq	64(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %r12
	callq	_sqrtf
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 20(%r14)
	jle	LBB0_25
## %bb.1:
	movq	%r13, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax,4), %rdx
	leal	2(,%rax,4), %eax
	cvtsi2ss	%eax, %xmm1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	divss	%xmm1, %xmm2
	divss	%xmm0, %xmm2
	movss	%xmm2, -108(%rbp)               ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	12(%rcx), %rsi
	shlq	$2, %rsi
	addq	(%rax,%rbx,8), %rsi
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movss	16(%rcx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -104(%rbp)               ## 4-byte Spill
	leaq	(%r12,%r13,4), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leal	(%r13,%r13), %eax
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%r13,4), %rcx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	orq	$1, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	divss	%xmm3, %xmm2
	subss	%xmm2, %xmm0
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movss	%xmm0, (%rax,%rcx,4)
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	20(%rax), %rax
	addq	%r14, %rax
	incq	-72(%rbp)                       ## 8-byte Folded Spill
	cmpq	%rax, %rbx
	jge	LBB0_25
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	%rbx, %rax
	subq	%r14, %rax
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-72(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	subq	%rax, %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r13
	addq	$4, %r15
	cmpl	%r13d, -88(%rbp)                ## 4-byte Folded Reload
	je	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r13, %rbx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*40(%rax)
	movslq	%r14d, %rax
	incl	%r14d
	movss	%xmm0, (%r12,%rax,4)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r9d
	subl	%r14d, %r9d
	movq	%r12, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%ebx, %r8d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	*48(%r15)
	leal	1(%rbx), %r9d
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%ebx, %r8d
	callq	*48(%r15)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm3, %xmm3
	xorl	%ebx, %ebx
	xorps	%xmm2, %xmm2
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	$0, (%r12,%rbx,4)
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%rbx
	cmpq	%rbx, %rdx
	je	LBB0_13
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r15)
	jne	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movss	(%r12,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	ja	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	mulss	-108(%rbp), %xmm0               ## 4-byte Folded Reload
	ucomiss	-104(%rbp), %xmm0               ## 4-byte Folded Reload
	jae	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	mulss	24(%r13), %xmm0
	cvttss2si	%xmm0, %r14
	xorl	%edi, %edi
	movq	_WEIGHT_LUT_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	seta	%dil
	movss	%xmm2, -100(%rbp)               ## 4-byte Spill
	movss	%xmm3, -96(%rbp)                ## 4-byte Spill
	callq	_av_assert2
	movss	-96(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-100(%rbp), %xmm2               ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movq	32(%r13), %rax
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	%r14d, %ecx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%eax, %eax
	cmpq	%r14, %rbx
	setge	%al
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%ebx, %ecx
	addl	%ecx, %eax
	cltq
	addss	%xmm0, %xmm3
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	mulss	(%rcx,%rax,4), %xmm0
	addss	%xmm0, %xmm2
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm2, %xmm2
	xorps	%xmm3, %xmm3
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movss	(%rax,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm2
	addss	LCPI0_1(%rip), %xmm3
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	cmpl	$128, %eax
	je	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	je	LBB0_23
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	divss	%xmm3, %xmm2
	movaps	%xmm2, %xmm0
	jmp	LBB0_23
LBB0_25:
	xorl	%eax, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WEIGHT_LUT_SIZE,4,2            ## @WEIGHT_LUT_SIZE
	.no_dead_strip	_filter_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_channel
_filter_channel:                        ; @filter_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	d13, d12, [sp, #80]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #96]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x25, x1
	mov	x19, x0
	ldr	x28, [x0, #8]
	ldpsw	x27, x8, [x28]
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	ldr	w8, [x28, #8]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldp	x9, x8, [x28, #64]
	ldr	x8, [x8]
	sbfiz	x20, x2, #3, #32
	ldr	x21, [x8, x20]
	ldr	x8, [x9]
	ldr	x22, [x8, x20]
	ldr	w0, [x28, #56]
	bl	_sqrtf
	ldr	w8, [x28, #20]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.1:
	mov	x24, #0
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	add	x10, x21, x9, lsl #2
	mov	w8, #2
	bfi	w8, w9, #2, #30
	scvtf	s1, w8
	mov	w8, #1199570944
	fmov	s2, w8
	fdiv	s1, s2, s1
	fdiv	s8, s1, s0
	ldr	x8, [x25]
	ldr	x8, [x8, x20]
	ldrsw	x9, [x28, #12]
	add	x11, x8, x9, lsl #2
	ldr	s9, [x28, #16]
	lsl	x8, x27, #2
	add	x9, x22, x8
	stp	x9, x11, [sp, #16]              ; 16-byte Folded Spill
	lsl	w9, w27, #1
	mov	w11, #1
	bfi	w11, w27, #1, #31
	str	w11, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w9, #1
	csinc	w23, w9, wzr, gt
	add	x8, x10, x8
	stp	x10, x8, [sp, #56]              ; 16-byte Folded Spill
	fmov	s10, #1.00000000
	mov	x26, x27
	str	x27, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	fdiv	s1, s1, s2
	fsub	s0, s0, s1
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	str	s0, [x8, x9, lsl #2]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x28, #20]
	add	x24, x24, #1
	add	x8, x8, x21
	cmp	x26, x8
	mov	x27, x21
	b.ge	LBB0_25
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	subs	x8, x26, x27
	mov	x20, x27
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w20, #31, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	sub	x25, x8, w24, sxtw
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x27, x8, w24, sxtw #2
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	sub	x25, x25, #1
	add	x27, x27, #4
	subs	w20, w20, #1
	b.eq	LBB0_12
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x25, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x28, #40]
	ldp	x0, x2, [sp, #64]               ; 16-byte Folded Reload
	mov	x1, x27
                                        ; kill: def $w2 killed $w2 killed $x2
	blr	x8
	str	s0, [x22, w21, sxtw #2]
	add	w21, w21, #1
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28, #48]
	sub	w5, w26, w20
	mov	x0, x22
	ldr	x25, [sp, #56]                  ; 8-byte Folded Reload
	mov	x1, x25
	mov	x2, x20
	ldr	x21, [sp, #72]                  ; 8-byte Folded Reload
	mov	x3, x21
	mov	x4, x26
	blr	x8
	ldr	x8, [x28, #48]
	add	w5, w26, #1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x25
	mov	x2, x20
	mov	x3, x21
	mov	x4, x26
	blr	x8
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [sp, #40]                  ; 8-byte Folded Reload
	cmp	w21, #1
	b.lt	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, #0
	movi	d11, #0000000000000000
	movi	d12, #0000000000000000
	ldr	w25, [sp, #36]                  ; 4-byte Folded Reload
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	str	wzr, [x22, x27, lsl #2]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x27, x27, #1
	cmp	x23, x27
	b.eq	LBB0_21
LBB0_16:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x19]
	cbnz	w8, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	s0, [x22, x27, lsl #2]
	fcmp	s0, #0.0
	b.mi	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	fmul	s0, s8, s0
	fcmp	s0, s9
	b.ge	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	s1, [x28, #24]
	fmul	s0, s0, s1
	fcvtzu	w20, s0
Lloh0:
	adrp	x8, _WEIGHT_LUT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WEIGHT_LUT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, hi
	bl	_av_assert2
	ldr	x8, [x28, #32]
	ldr	s0, [x8, w20, uxtw #2]
	cmp	x27, x21
	add	w8, w24, w27
	cinc	w8, w8, ge
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	ldr	s1, [x9, w8, sxtw #2]
	fmadd	s12, s0, s1, s12
	fadd	s11, s11, s0
	b	LBB0_15
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	movi	d12, #0000000000000000
	movi	d11, #0000000000000000
	ldr	w25, [sp, #36]                  ; 4-byte Folded Reload
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	s0, [x8, x26, lsl #2]
	fadd	s1, s12, s0
	fadd	s2, s11, s10
	cmp	w25, #128
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, #129
	b.eq	LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, #130
	b.eq	LBB0_3
	b	LBB0_4
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	fdiv	s0, s1, s2
	b	LBB0_3
LBB0_25:
	mov	w0, #0
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #96]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WEIGHT_LUT_SIZE,4,2            ; @WEIGHT_LUT_SIZE
	.no_dead_strip	_filter_channel
.subsections_via_symbols
