	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function swri_rematrix
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_swri_rematrix
	.p2align	4, 0x90
_swri_rematrix:                         ## @swri_rematrix
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	88(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	16(%rsi), %rdi
	movq	16(%rbx), %rsi
	movl	36(%r12), %edx
	callq	*%rax
LBB0_65:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 56(%r12)
	movl	%r8d, -84(%rbp)                 ## 4-byte Spill
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 72(%r12)
	je	LBB0_4
LBB0_5:
	movl	%ecx, %r14d
	andl	$-16, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	imull	%ecx, %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
LBB0_6:
	movl	84(%r12), %eax
	movl	$1, %r15d
	movl	$1, %edi
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %r13
	movl	%eax, %edi
	callq	_av_get_channel_layout_nb_channels
	xorl	%edi, %edi
	cmpq	%rax, %r13
	sete	%dil
LBB0_8:
	callq	_av_assert0
	movl	80(%r12), %edi
	testl	%edi, %edi
	je	LBB0_10
## %bb.9:
	movq	8(%rbx), %r13
	callq	_av_get_channel_layout_nb_channels
	xorl	%r15d, %r15d
	cmpq	%rax, %r13
	sete	%r15b
LBB0_10:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_av_assert0
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 8(%rcx)
	jle	LBB0_65
## %bb.11:
	movslq	-76(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	subl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_63:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx,%r13,8)
	.p2align	4, 0x90
LBB0_64:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%r13, 8(%rcx)
	jle	LBB0_65
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_58 Depth 2
                                        ##     Child Loop BB0_48 Depth 2
                                        ##       Child Loop BB0_51 Depth 3
                                        ##     Child Loop BB0_34 Depth 2
                                        ##       Child Loop BB0_37 Depth 3
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %r11
	movl	(%r11), %r10d
	cmpq	$2, %r10
	je	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$1, %r10d
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%r10d, %r10d
	jne	LBB0_31
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_64
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r13,8), %r15
	movl	32(%r12), %edi
	callq	_av_get_bytes_per_sample
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	jmp	LBB0_64
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=1
	movslq	4(%r11), %rbx
	movslq	8(%r11), %r15
	movl	-60(%rbp), %r10d                ## 4-byte Reload
	testl	%r10d, %r10d
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	56(%r12), %r11
	testq	%r11, %r11
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%rcx), %rcx
	movq	(%rcx,%r13,8), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	(%rcx,%r15,8), %rdx
	movl	48(%r12), %ecx
	movl	8(%rax), %r9d
	imull	%r13d, %r9d
	leal	(%r9,%rbx), %r8d
	addl	%r15d, %r9d
	movl	%r10d, (%rsp)
                                        ## kill: def $r9d killed $r9d killed $r9
	movl	%r10d, %ebx
	callq	*%r11
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_64
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movslq	4(%r11), %rbx
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movsd	(%rax,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	jne	LBB0_18
	jnp	LBB0_23
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	testl	%r8d, %r8d
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	72(%r12), %r9
	testq	%r9, %r9
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	movq	(%rcx,%r13,8), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	movq	(%rcx,%rbx,8), %rsi
	movl	48(%r12), %edx
	movl	8(%rax), %ecx
	imull	%r13d, %ecx
	addl	%ebx, %ecx
	callq	*%r9
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	-44(%rbp), %r8d                 ## 4-byte Folded Reload
	je	LBB0_64
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax,%r13,8), %edi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	addl	%edx, %edi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movl	(%rax,%rbx,8), %esi
	addl	%edx, %esi
	movl	36(%r12), %edx
	movl	8(%rcx), %ecx
	imull	%r13d, %ecx
	addl	%ebx, %ecx
	movl	-80(%rbp), %r8d                 ## 4-byte Reload
	callq	*64(%r12)
	jmp	LBB0_64
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	32(%r12), %ecx
	movq	_AV_SAMPLE_FMT_FLTP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_41
## %bb.32:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_64
## %bb.33:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	movq	(%rcx,%r13,8), %r8
	movl	%r10d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_34 Depth=2
	xorps	%xmm0, %xmm0
LBB0_40:                                ##   in Loop: Header=BB0_34 Depth=2
	movss	%xmm0, (%r8,%rdi,4)
	incq	%rdi
	cmpq	%r14, %rdi
	je	LBB0_64
LBB0_34:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_37 Depth 3
	testl	%r10d, %r10d
	jle	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdx
	movq	16(%r12), %rcx
	movq	(%rcx,%r13,8), %rbx
	xorps	%xmm0, %xmm0
	xorl	%ecx, %ecx
	cmpl	$1, %r10d
	je	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_34 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	4(%r11,%rcx,4), %rsi
	movq	(%rdx,%rsi,8), %rax
	movss	(%rax,%rdi,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	(%rbx,%rsi,4), %xmm1
	addss	%xmm0, %xmm1
	movslq	8(%r11,%rcx,4), %rax
	addq	$2, %rcx
	movq	(%rdx,%rax,8), %rsi
	movss	(%rsi,%rdi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	(%rbx,%rax,4), %xmm0
	addss	%xmm1, %xmm0
	cmpq	%rcx, %r9
	jne	LBB0_37
LBB0_38:                                ##   in Loop: Header=BB0_34 Depth=2
	testb	$1, %r10b
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_34 Depth=2
	movslq	4(%r11,%rcx,4), %rax
	movq	(%rdx,%rax,8), %rcx
	movss	(%rcx,%rdi,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	(%rbx,%rax,4), %xmm1
	addss	%xmm1, %xmm0
	jmp	LBB0_40
LBB0_28:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%rcx), %rax
	movq	(%rax,%r13,8), %rdi
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	16(%r8), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	(%rax,%r15,8), %rdx
	movl	36(%r12), %ecx
	movl	8(%r8), %r9d
	imull	%r13d, %r9d
	leal	(%r9,%rbx), %r8d
	addl	%r15d, %r9d
	movl	%r10d, (%rsp)
                                        ## kill: def $r9d killed $r9d killed $r9
	movl	%r10d, %ebx
	callq	*40(%r12)
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_64
LBB0_30:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r13,8), %rdi
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rax
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movq	(%rax,%r8,8), %rsi
	addq	%rcx, %rsi
	movq	(%rax,%r15,8), %rdx
	addq	%rcx, %rdx
	movl	36(%r12), %ecx
	movl	8(%rbx), %r9d
	imull	%r13d, %r9d
	addl	%r9d, %r8d
	addl	%r15d, %r9d
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	*40(%r12)
	jmp	LBB0_64
LBB0_41:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_AV_SAMPLE_FMT_DBLP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_42
## %bb.46:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_64
## %bb.47:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r13,8), %r8
	movl	%r10d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	jmp	LBB0_48
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_48 Depth=2
	xorpd	%xmm0, %xmm0
LBB0_54:                                ##   in Loop: Header=BB0_48 Depth=2
	movsd	%xmm0, (%r8,%rdi,8)
	incq	%rdi
	cmpq	%r14, %rdi
	je	LBB0_64
LBB0_48:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_51 Depth 3
	testl	%r10d, %r10d
	jle	LBB0_49
## %bb.50:                              ##   in Loop: Header=BB0_48 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdx
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rbx
	xorpd	%xmm0, %xmm0
	xorl	%ecx, %ecx
	cmpl	$1, %r10d
	je	LBB0_52
	.p2align	4, 0x90
LBB0_51:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_48 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	4(%r11,%rcx,4), %rax
	movq	(%rdx,%rax,8), %rsi
	movsd	(%rsi,%rdi,8), %xmm1            ## xmm1 = mem[0],zero
	mulsd	(%rbx,%rax,8), %xmm1
	addsd	%xmm0, %xmm1
	movslq	8(%r11,%rcx,4), %rax
	addq	$2, %rcx
	movq	(%rdx,%rax,8), %rsi
	movsd	(%rsi,%rdi,8), %xmm0            ## xmm0 = mem[0],zero
	mulsd	(%rbx,%rax,8), %xmm0
	addsd	%xmm1, %xmm0
	cmpq	%rcx, %r9
	jne	LBB0_51
LBB0_52:                                ##   in Loop: Header=BB0_48 Depth=2
	testb	$1, %r10b
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_48 Depth=2
	movslq	4(%r11,%rcx,4), %rax
	movq	(%rdx,%rax,8), %rcx
	movsd	(%rcx,%rdi,8), %xmm1            ## xmm1 = mem[0],zero
	mulsd	(%rbx,%rax,8), %xmm1
	addsd	%xmm1, %xmm0
	jmp	LBB0_54
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_63
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%rcx), %rax
	movq	(%rax,%r13,8), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	(%rcx), %edx
	imull	-44(%rbp), %edx                 ## 4-byte Folded Reload
	callq	_memcpy
	jmp	LBB0_64
LBB0_42:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_64
## %bb.43:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r13,8), %r8
	xorl	%r15d, %r15d
	testl	%r10d, %r10d
	jle	LBB0_45
	.p2align	4, 0x90
LBB0_55:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rbx
	movl	%r10d, %r9d
	cmpl	$1, %r10d
	jne	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_59
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_61
	.p2align	4, 0x90
LBB0_57:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r9d, %r10d
	andl	$-2, %r10d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_58:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	4(%r11,%rdx,4), %rax
	movq	(%rdi,%rax,8), %rsi
	movl	(%rbx,%rax,4), %eax
	imull	(%rsi,%r15,4), %eax
	addl	%ecx, %eax
	movslq	8(%r11,%rdx,4), %rcx
	addq	$2, %rdx
	movq	(%rdi,%rcx,8), %rsi
	movl	(%rbx,%rcx,4), %ecx
	imull	(%rsi,%r15,4), %ecx
	addl	%eax, %ecx
	cmpq	%rdx, %r10
	jne	LBB0_58
LBB0_59:                                ##   in Loop: Header=BB0_12 Depth=1
	testb	$1, %r9b
	je	LBB0_61
## %bb.60:                              ##   in Loop: Header=BB0_12 Depth=1
	movslq	4(%r11,%rdx,4), %rax
	movq	(%rdi,%rax,8), %rdx
	movl	(%rbx,%rax,4), %eax
	imull	(%rdx,%r15,4), %eax
	addl	%eax, %ecx
LBB0_61:                                ##   in Loop: Header=BB0_12 Depth=1
	addl	$16384, %ecx                    ## imm = 0x4000
	sarl	$15, %ecx
	movl	%ecx, (%r8,%r15,4)
	incq	%r15
	cmpq	%r14, %r15
	je	LBB0_64
## %bb.62:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r11), %r10d
	testl	%r10d, %r10d
	jg	LBB0_55
	jmp	LBB0_45
LBB0_4:
	movl	%ecx, %r14d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_SAMPLE_FMT_FLTP,4,2         ## @AV_SAMPLE_FMT_FLTP
	.comm	_AV_SAMPLE_FMT_DBLP,4,2         ## @AV_SAMPLE_FMT_DBLP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swri_rematrix                  ; -- Begin function swri_rematrix
	.p2align	2
_swri_rematrix:                         ; @swri_rematrix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x8, [x0, #88]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x0, [x23, #16]
	ldr	x1, [x20, #16]
	ldr	w2, [x21, #36]
	mov	x3, x19
	blr	x8
LBB0_2:
	mov	w0, #0
	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
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	mov	x22, x4
	ldr	x8, [x21, #56]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x21, #72]
	cbz	x8, LBB0_7
LBB0_5:
	and	w24, w19, #0xfffffff0
	ldr	w8, [x23]
	mul	w8, w8, w24
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w0, [x21, #84]
	cbz	w0, LBB0_8
LBB0_6:
	ldr	x25, [x23, #8]
	bl	_av_get_channel_layout_nb_channels
	cmp	x25, x0
	cset	w0, eq
	b	LBB0_9
LBB0_7:
	mov	w24, #0
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w0, [x21, #84]
	cbnz	w0, LBB0_6
LBB0_8:
	mov	w0, #1
LBB0_9:
	bl	_av_assert0
	ldr	w0, [x21, #80]
	cbz	w0, LBB0_11
; %bb.10:
	ldr	x25, [x20, #8]
	bl	_av_get_channel_layout_nb_channels
	cmp	x25, x0
	cset	w0, eq
	b	LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	bl	_av_assert0
	ldr	x8, [x23, #8]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.13:
	mov	x28, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	sxtw	x8, w8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	sub	w8, w19, w24
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	fmov	d8, #1.00000000
	mov	w25, w19
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x9, [x23, #16]
	str	x8, [x9, x28, lsl #3]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x28, x28, #1
	ldr	x8, [x23, #8]
	cmp	x8, x28
	b.le	LBB0_2
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_57 Depth 2
                                        ;     Child Loop BB0_60 Depth 2
                                        ;     Child Loop BB0_46 Depth 2
                                        ;       Child Loop BB0_48 Depth 3
                                        ;     Child Loop BB0_35 Depth 2
                                        ;       Child Loop BB0_37 Depth 3
	ldr	x8, [x21]
	ldr	x8, [x8, x28, lsl #3]
	ldr	w9, [x8]
	cmp	w9, #2
	b.eq	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w9, #1
	b.eq	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	cbnz	w9, LBB0_30
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	w22, LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x23, #16]
	ldr	x26, [x8, x28, lsl #3]
	ldr	w0, [x21, #32]
	bl	_av_get_bytes_per_sample
	mul	w2, w0, w19
	mov	x0, x26
	mov	w1, #0
	bl	_memset
	b	LBB0_15
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	ldpsw	x26, x27, [x8, #4]
	cbz	w24, LBB0_38
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_38
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x23, #16]
	ldr	x0, [x9, x28, lsl #3]
	ldr	x9, [x20, #16]
	ldr	x1, [x9, x26, lsl #3]
	ldr	x2, [x9, x27, lsl #3]
	ldr	w3, [x21, #48]
	b	LBB0_39
LBB0_24:                                ;   in Loop: Header=BB0_16 Depth=1
	ldrsw	x26, [x8, #4]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x28, lsl #3]
	ldr	d0, [x8, x26, lsl #3]
	fcmp	d0, d8
	b.eq	LBB0_49
; %bb.25:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	w24, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21, #72]
	cbz	x8, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x23, #16]
	ldr	x0, [x9, x28, lsl #3]
	ldr	x9, [x20, #16]
	ldr	x1, [x9, x26, lsl #3]
	ldr	w2, [x21, #48]
	ldr	w9, [x20, #8]
	madd	w3, w28, w9, w26
	mov	x4, x24
	blr	x8
LBB0_28:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	w24, w19
	b.eq	LBB0_15
; %bb.29:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21, #64]
	ldr	x9, [x23, #16]
	ldr	x9, [x9, x28, lsl #3]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	add	w0, w10, w9
	ldr	x9, [x20, #16]
	ldr	x9, [x9, x26, lsl #3]
	add	w1, w10, w9
	ldr	w2, [x21, #36]
	ldr	w9, [x20, #8]
	madd	w3, w28, w9, w26
	ldr	w4, [sp, #28]                   ; 4-byte Folded Reload
	blr	x8
	b	LBB0_15
LBB0_30:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w10, [x21, #32]
Lloh0:
	adrp	x11, _AV_SAMPLE_FMT_FLTP@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AV_SAMPLE_FMT_FLTP@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_41
; %bb.31:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.32:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x10, #0
	ldr	x11, [x23, #16]
	ldr	x11, [x11, x28, lsl #3]
	add	x8, x8, #4
	b	LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_35 Depth=2
	movi	d0, #0000000000000000
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=2
	str	s0, [x11, x10, lsl #2]
	add	x10, x10, #1
	cmp	x10, x25
	b.eq	LBB0_15
LBB0_35:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_37 Depth 3
	cmp	w9, #1
	b.lt	LBB0_33
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=2
	ldr	x12, [x20, #16]
	ldr	x13, [x21, #16]
	ldr	x13, [x13, x28, lsl #3]
	movi	d0, #0000000000000000
	mov	x14, x8
	mov	x15, x9
LBB0_37:                                ;   Parent Loop BB0_16 Depth=1
                                        ;     Parent Loop BB0_35 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsw	x16, [x14], #4
	ldr	x17, [x12, x16, lsl #3]
	ldr	s1, [x17, x10, lsl #2]
	ldr	s2, [x13, x16, lsl #2]
	fmadd	s0, s1, s2, s0
	subs	x15, x15, #1
	b.ne	LBB0_37
	b	LBB0_34
LBB0_38:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x23, #16]
	ldr	x0, [x8, x28, lsl #3]
	ldr	x8, [x20, #16]
	ldr	x1, [x8, x26, lsl #3]
	ldr	x2, [x8, x27, lsl #3]
	ldr	x8, [x21, #40]
	ldr	w3, [x21, #36]
LBB0_39:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w9, [x20, #8]
	mul	w9, w28, w9
	add	w4, w9, w26
	add	w5, w9, w27
	mov	x6, x24
	blr	x8
	cmp	w24, w19
	b.eq	LBB0_15
; %bb.40:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21, #40]
	ldr	x9, [x23, #16]
	ldr	x9, [x9, x28, lsl #3]
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	add	x0, x9, x11
	ldr	x9, [x20, #16]
	ldr	x10, [x9, x26, lsl #3]
	add	x1, x10, x11
	ldr	x9, [x9, x27, lsl #3]
	add	x2, x9, x11
	ldr	w3, [x21, #36]
	ldr	w9, [x20, #8]
	mul	w9, w28, w9
	add	w4, w9, w26
	add	w5, w9, w27
	ldr	w6, [sp, #28]                   ; 4-byte Folded Reload
	blr	x8
	b	LBB0_15
LBB0_41:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh3:
	adrp	x11, _AV_SAMPLE_FMT_DBLP@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AV_SAMPLE_FMT_DBLP@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_51
; %bb.42:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.43:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x10, #0
	ldr	x11, [x23, #16]
	ldr	x11, [x11, x28, lsl #3]
	add	x8, x8, #4
	b	LBB0_46
LBB0_44:                                ;   in Loop: Header=BB0_46 Depth=2
	movi	d0, #0000000000000000
LBB0_45:                                ;   in Loop: Header=BB0_46 Depth=2
	str	d0, [x11, x10, lsl #3]
	add	x10, x10, #1
	cmp	x10, x25
	b.eq	LBB0_15
LBB0_46:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_48 Depth 3
	cmp	w9, #1
	b.lt	LBB0_44
; %bb.47:                               ;   in Loop: Header=BB0_46 Depth=2
	ldr	x12, [x20, #16]
	ldr	x13, [x21, #8]
	ldr	x13, [x13, x28, lsl #3]
	movi	d0, #0000000000000000
	mov	x14, x8
	mov	x15, x9
LBB0_48:                                ;   Parent Loop BB0_16 Depth=1
                                        ;     Parent Loop BB0_46 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsw	x16, [x14], #4
	lsl	x16, x16, #3
	ldr	x17, [x12, x16]
	ldr	d1, [x17, x10, lsl #3]
	ldr	d2, [x13, x16]
	fmadd	d0, d1, d2, d0
	subs	x15, x15, #1
	b.ne	LBB0_48
	b	LBB0_45
LBB0_49:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	w22, LBB0_14
; %bb.50:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x23, #16]
	ldr	x0, [x8, x28, lsl #3]
	ldr	x8, [x20, #16]
	ldr	x1, [x8, x26, lsl #3]
	ldr	w8, [x23]
	mul	w2, w8, w19
	bl	_memcpy
	b	LBB0_15
LBB0_51:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.52:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x10, #0
	ldr	x11, [x23, #16]
	ldr	x11, [x11, x28, lsl #3]
	add	x12, x8, #8
	add	x13, x8, #4
	cmp	w9, #1
	b.lt	LBB0_55
LBB0_53:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x14, [x20, #16]
	ldr	x15, [x21, #24]
	ldr	x15, [x15, x28, lsl #3]
	mov	w16, w9
	cmp	w9, #1
	b.ne	LBB0_56
; %bb.54:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x9, #0
	mov	w17, #0
	b	LBB0_59
LBB0_55:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w17, #0
	b	LBB0_61
LBB0_56:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w17, #0
	mov	w0, #0
	and	x9, x16, #0xfffffffe
	mov	x1, x9
	mov	x2, x12
LBB0_57:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldpsw	x3, x4, [x2, #-4]
	ldr	x5, [x14, x3, lsl #3]
	ldr	x6, [x14, x4, lsl #3]
	lsl	x7, x10, #2
	ldr	w5, [x5, x7]
	ldr	w6, [x6, x7]
	ldr	w3, [x15, x3, lsl #2]
	ldr	w4, [x15, x4, lsl #2]
	madd	w17, w3, w5, w17
	madd	w0, w4, w6, w0
	add	x2, x2, #8
	subs	x1, x1, #2
	b.ne	LBB0_57
; %bb.58:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w17, w0, w17
	cmp	x9, x16
	b.eq	LBB0_61
LBB0_59:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	x16, x16, x9
	add	x9, x13, x9, lsl #2
LBB0_60:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x0, [x9], #4
	ldr	x1, [x14, x0, lsl #3]
	ldr	w1, [x1, x10, lsl #2]
	ldr	w0, [x15, x0, lsl #2]
	madd	w17, w0, w1, w17
	subs	x16, x16, #1
	b.ne	LBB0_60
LBB0_61:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w9, w17, #4, lsl #12            ; =16384
	asr	w9, w9, #15
	str	w9, [x11, x10, lsl #2]
	add	x10, x10, #1
	cmp	x10, x25
	b.eq	LBB0_15
; %bb.62:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w9, [x8]
	cmp	w9, #1
	b.ge	LBB0_53
	b	LBB0_55
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_SAMPLE_FMT_FLTP,4,2         ; @AV_SAMPLE_FMT_FLTP
	.comm	_AV_SAMPLE_FMT_DBLP,4,2         ; @AV_SAMPLE_FMT_DBLP
.subsections_via_symbols
