	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_weighting
_channel_weighting:                     ## @channel_weighting
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	4(%rdx), %edi
	cmpl	$7, %edi
	jne	LBB0_2
## %bb.1:
	cmpl	$7, 12(%rbx)
	je	LBB0_23
LBB0_2:
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	callq	_get_channel_weights
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	leaq	-40(%rbp), %rdx
	callq	_get_channel_weights
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movl	%ebx, %edi
	callq	_INTERPOLATE
	mulss	1024(%r15,%rbx,4), %xmm0
	movss	%xmm0, 1024(%r15,%rbx,4)
	movss	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-36(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movl	%ebx, %edi
	callq	_INTERPOLATE
	mulss	1024(%r14,%rbx,4), %xmm0
	movss	%xmm0, 1024(%r14,%rbx,4)
	incq	%rbx
	cmpq	$8, %rbx
	jne	LBB0_3
## %bb.4:
	movss	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-36(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	leaq	1056(%r15), %rax
	leaq	2048(%r14), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_25
## %bb.5:
	leaq	2048(%r15), %rax
	leaq	1056(%r14), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_25
## %bb.6:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movss	1056(%r15,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, 1056(%r15,%rax,4)
	movss	1056(%r14,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	%xmm2, 1056(%r14,%rax,4)
	movss	1060(%r15,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, 1060(%r15,%rax,4)
	movss	1060(%r14,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	%xmm2, 1060(%r14,%rax,4)
	addq	$2, %rax
	cmpq	$248, %rax
	jne	LBB0_7
	jmp	LBB0_27
LBB0_25:
	shufps	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	shufps	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movups	1056(%r15,%rax,4), %xmm2
	movups	1072(%r15,%rax,4), %xmm3
	mulps	%xmm0, %xmm2
	mulps	%xmm0, %xmm3
	movups	%xmm2, 1056(%r15,%rax,4)
	movups	%xmm3, 1072(%r15,%rax,4)
	movups	1056(%r14,%rax,4), %xmm2
	movups	1072(%r14,%rax,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movups	%xmm2, 1056(%r14,%rax,4)
	movups	%xmm3, 1072(%r14,%rax,4)
	addq	$8, %rax
	cmpq	$248, %rax
	jne	LBB0_26
LBB0_27:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movl	%ebx, %edi
	callq	_INTERPOLATE
	mulss	2048(%r15,%rbx,4), %xmm0
	movss	%xmm0, 2048(%r15,%rbx,4)
	movss	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-36(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movl	%ebx, %edi
	callq	_INTERPOLATE
	mulss	2048(%r14,%rbx,4), %xmm0
	movss	%xmm0, 2048(%r14,%rbx,4)
	incq	%rbx
	cmpq	$8, %rbx
	jne	LBB0_8
## %bb.9:
	movss	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-36(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	leaq	2080(%r15), %rax
	leaq	3072(%r14), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_13
## %bb.10:
	leaq	3072(%r15), %rax
	leaq	2080(%r14), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_13
## %bb.11:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movss	2080(%r15,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, 2080(%r15,%rax,4)
	movss	2080(%r14,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	%xmm2, 2080(%r14,%rax,4)
	movss	2084(%r15,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, 2084(%r15,%rax,4)
	movss	2084(%r14,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	%xmm2, 2084(%r14,%rax,4)
	addq	$2, %rax
	cmpq	$248, %rax
	jne	LBB0_12
	jmp	LBB0_15
LBB0_13:
	shufps	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	shufps	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movups	2080(%r15,%rax,4), %xmm2
	movups	2096(%r15,%rax,4), %xmm3
	mulps	%xmm0, %xmm2
	mulps	%xmm0, %xmm3
	movups	%xmm2, 2080(%r15,%rax,4)
	movups	%xmm3, 2096(%r15,%rax,4)
	movups	2080(%r14,%rax,4), %xmm2
	movups	2096(%r14,%rax,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movups	%xmm2, 2080(%r14,%rax,4)
	movups	%xmm3, 2096(%r14,%rax,4)
	addq	$8, %rax
	cmpq	$248, %rax
	jne	LBB0_14
LBB0_15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movl	%ebx, %edi
	callq	_INTERPOLATE
	mulss	3072(%r15,%rbx,4), %xmm0
	movss	%xmm0, 3072(%r15,%rbx,4)
	movss	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-36(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movl	%ebx, %edi
	callq	_INTERPOLATE
	mulss	3072(%r14,%rbx,4), %xmm0
	movss	%xmm0, 3072(%r14,%rbx,4)
	incq	%rbx
	cmpq	$8, %rbx
	jne	LBB0_16
## %bb.17:
	movss	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-36(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	leaq	3104(%r15), %rax
	leaq	4096(%r14), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_21
## %bb.18:
	leaq	4096(%r15), %rax
	leaq	3104(%r14), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_21
## %bb.19:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movss	3104(%r15,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, 3104(%r15,%rax,4)
	movss	3104(%r14,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	%xmm2, 3104(%r14,%rax,4)
	movss	3108(%r15,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, 3108(%r15,%rax,4)
	movss	3108(%r14,%rax,4), %xmm2        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	movss	%xmm2, 3108(%r14,%rax,4)
	addq	$2, %rax
	cmpq	$248, %rax
	jne	LBB0_20
	jmp	LBB0_23
LBB0_21:
	shufps	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	shufps	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movups	3104(%r15,%rax,4), %xmm2
	movups	3120(%r15,%rax,4), %xmm3
	mulps	%xmm0, %xmm2
	mulps	%xmm0, %xmm3
	movups	%xmm2, 3104(%r15,%rax,4)
	movups	%xmm3, 3120(%r15,%rax,4)
	movups	3104(%r14,%rax,4), %xmm2
	movups	3120(%r14,%rax,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movups	%xmm2, 3104(%r14,%rax,4)
	movups	%xmm3, 3120(%r14,%rax,4)
	addq	$8, %rax
	cmpq	$248, %rax
	jne	LBB0_22
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_24
## %bb.28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_channel_weighting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_weighting
_channel_weighting:                     ; @channel_weighting
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x2, #4]
	cmp	w0, #7
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x21, #12]
	cmp	w8, #7
	b.eq	LBB0_26
LBB0_2:
	ldr	w1, [x21]
	add	x22, sp, #8
	add	x2, sp, #8
	bl	_get_channel_weights
	ldp	w1, w0, [x21, #8]
	add	x2, x22, #8
	bl	_get_channel_weights
	mov	x21, #0
	add	x22, x20, #1024
	add	x23, x19, #1024
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	s0, s1, [sp, #8]
	mov	x0, x21
	bl	_INTERPOLATE
	lsl	x24, x21, #2
	ldr	s1, [x23, x24]
	fmul	s0, s0, s1
	str	s0, [x23, x24]
	ldp	s0, s1, [sp, #16]
	mov	x0, x21
	bl	_INTERPOLATE
	ldr	s1, [x22, x24]
	fmul	s0, s0, s1
	str	s0, [x22, x24]
	add	x21, x21, #1
	cmp	x21, #8
	b.ne	LBB0_3
; %bb.4:
	ldp	s0, s1, [sp, #16]
	add	x8, x19, #1056
	add	x9, x20, #2048
	cmp	x8, x9
	b.hs	LBB0_8
; %bb.5:
	add	x8, x19, #2048
	add	x9, x20, #1056
	cmp	x9, x8
	b.hs	LBB0_8
; %bb.6:
	mov	x8, #0
	add	x9, x20, #1056
	add	x10, x19, #1056
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s2, [x10, x8]
	fmul	s2, s0, s2
	str	s2, [x10, x8]
	ldr	s2, [x9, x8]
	fmul	s2, s1, s2
	str	s2, [x9, x8]
	add	x8, x8, #4
	cmp	x8, #992
	b.ne	LBB0_7
	b	LBB0_10
LBB0_8:
	mov	x8, #0
	dup.4s	v2, v0[0]
	dup.4s	v3, v1[0]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x19, x8
	ldr	q4, [x9, #1056]
	ldr	q5, [x9, #1072]
	fmul.4s	v4, v2, v4
	fmul.4s	v5, v5, v0[0]
	str	q4, [x9, #1056]
	str	q5, [x9, #1072]
	add	x9, x20, x8
	ldr	q4, [x9, #1056]
	ldr	q5, [x9, #1072]
	fmul.4s	v4, v3, v4
	fmul.4s	v5, v5, v1[0]
	str	q4, [x9, #1056]
	str	q5, [x9, #1072]
	add	x8, x8, #32
	cmp	x8, #992
	b.ne	LBB0_9
LBB0_10:
	mov	x21, #0
	add	x22, x20, #2048
	add	x23, x19, #2048
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	s0, s1, [sp, #8]
	mov	x0, x21
	bl	_INTERPOLATE
	lsl	x24, x21, #2
	ldr	s1, [x23, x24]
	fmul	s0, s0, s1
	str	s0, [x23, x24]
	ldp	s0, s1, [sp, #16]
	mov	x0, x21
	bl	_INTERPOLATE
	ldr	s1, [x22, x24]
	fmul	s0, s0, s1
	str	s0, [x22, x24]
	add	x21, x21, #1
	cmp	x21, #8
	b.ne	LBB0_11
; %bb.12:
	ldp	s0, s1, [sp, #16]
	add	x8, x19, #2080
	add	x9, x20, #3072
	cmp	x8, x9
	b.hs	LBB0_16
; %bb.13:
	add	x8, x19, #3072
	add	x9, x20, #2080
	cmp	x9, x8
	b.hs	LBB0_16
; %bb.14:
	mov	x8, #0
	add	x9, x20, #2080
	add	x10, x19, #2080
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	s2, [x10, x8]
	fmul	s2, s0, s2
	str	s2, [x10, x8]
	ldr	s2, [x9, x8]
	fmul	s2, s1, s2
	str	s2, [x9, x8]
	add	x8, x8, #4
	cmp	x8, #992
	b.ne	LBB0_15
	b	LBB0_18
LBB0_16:
	mov	x8, #0
	dup.4s	v2, v0[0]
	dup.4s	v3, v1[0]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	x9, x19, x8
	ldr	q4, [x9, #2080]
	ldr	q5, [x9, #2096]
	fmul.4s	v4, v2, v4
	fmul.4s	v5, v5, v0[0]
	str	q4, [x9, #2080]
	str	q5, [x9, #2096]
	add	x9, x20, x8
	ldr	q4, [x9, #2080]
	ldr	q5, [x9, #2096]
	fmul.4s	v4, v3, v4
	fmul.4s	v5, v5, v1[0]
	str	q4, [x9, #2080]
	str	q5, [x9, #2096]
	add	x8, x8, #32
	cmp	x8, #992
	b.ne	LBB0_17
LBB0_18:
	mov	x21, #0
	add	x22, x20, #3072
	add	x23, x19, #3072
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldp	s0, s1, [sp, #8]
	mov	x0, x21
	bl	_INTERPOLATE
	lsl	x24, x21, #2
	ldr	s1, [x23, x24]
	fmul	s0, s0, s1
	str	s0, [x23, x24]
	ldp	s0, s1, [sp, #16]
	mov	x0, x21
	bl	_INTERPOLATE
	ldr	s1, [x22, x24]
	fmul	s0, s0, s1
	str	s0, [x22, x24]
	add	x21, x21, #1
	cmp	x21, #8
	b.ne	LBB0_19
; %bb.20:
	ldp	s0, s1, [sp, #16]
	add	x8, x19, #3104
	add	x9, x20, #1, lsl #12            ; =4096
	cmp	x8, x9
	b.hs	LBB0_24
; %bb.21:
	add	x8, x19, #1, lsl #12            ; =4096
	add	x9, x20, #3104
	cmp	x9, x8
	b.hs	LBB0_24
; %bb.22:
	mov	x8, #0
	add	x9, x20, #3104
	add	x10, x19, #3104
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	s2, [x10, x8]
	fmul	s2, s0, s2
	str	s2, [x10, x8]
	ldr	s2, [x9, x8]
	fmul	s2, s1, s2
	str	s2, [x9, x8]
	add	x8, x8, #4
	cmp	x8, #992
	b.ne	LBB0_23
	b	LBB0_26
LBB0_24:
	mov	x8, #0
	dup.4s	v2, v0[0]
	dup.4s	v3, v1[0]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	add	x9, x19, x8
	ldr	q4, [x9, #3104]
	ldr	q5, [x9, #3120]
	fmul.4s	v4, v2, v4
	fmul.4s	v5, v5, v0[0]
	str	q4, [x9, #3104]
	str	q5, [x9, #3120]
	add	x9, x20, x8
	ldr	q4, [x9, #3104]
	ldr	q5, [x9, #3120]
	fmul.4s	v4, v3, v4
	fmul.4s	v5, v5, v1[0]
	str	q4, [x9, #3104]
	str	q5, [x9, #3120]
	add	x8, x8, #32
	cmp	x8, #992
	b.ne	LBB0_25
LBB0_26:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_channel_weighting
.subsections_via_symbols
