	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swr_convert_internal
_swr_convert_internal:                  ## @swr_convert_internal
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %r15
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 304(%rdi)
	je	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, 192(%r14)
	sete	%dil
	callq	_av_assert0
	movq	304(%r14), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
LBB0_2:
	callq	_swri_audio_convert
	jmp	LBB0_3
LBB0_4:
	leaq	272(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	callq	_swri_realloc_audio
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	240(%r14), %r15
	cmpq	$0, 152(%r14)
	movq	240(%r14), %rax
	je	LBB0_9
## %bb.6:
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_av_assert0
	movq	%r15, %rdi
	movl	%r13d, %esi
	jmp	LBB0_7
LBB0_9:
	xorl	%edi, %edi
	cmpq	176(%r14), %rax
	sete	%dil
	callq	_av_assert0
	movq	%r15, %rdi
	movl	%r12d, %esi
LBB0_7:
	callq	_swri_realloc_audio
	testl	%eax, %eax
	js	LBB0_8
## %bb.10:
	leaq	208(%r14), %rbx
	movq	%rbx, %rdi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %esi
	callq	_swri_realloc_audio
	testl	%eax, %eax
	js	LBB0_8
## %bb.11:
	movups	(%r15), %xmm0
	movups	16(%r15), %xmm1
	movaps	%xmm1, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movaps	%xmm1, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movl	8(%r14), %ecx
	cmpl	12(%r14), %ecx
	jne	LBB0_14
## %bb.12:
	cmpl	$0, 168(%r14)
	je	LBB0_14
## %bb.13:
	cmpl	$0, 200(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmoveq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_14:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_15:
	movq	152(%r14), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	cmpl	$0, 192(%r14)
	leaq	-112(%rbp), %rdx
	cmoveq	%rdi, %rdx
	cmpl	$0, 196(%r14)
	je	LBB0_19
LBB0_17:
	leaq	-144(%rbp), %rsi
	cmpl	16(%r14), %ecx
	je	LBB0_20
	jmp	LBB0_23
LBB0_18:
	cmpl	$0, 196(%r14)
	leaq	-112(%rbp), %rdx
	cmoveq	%rdi, %rdx
	cmpl	$0, 192(%r14)
	jne	LBB0_17
LBB0_19:
	movq	%rdx, %rsi
	cmpl	16(%r14), %ecx
	jne	LBB0_23
LBB0_20:
	cmpq	$0, 184(%r14)
	je	LBB0_23
## %bb.21:
	cmpl	$128, %ecx
	jne	LBB0_57
## %bb.22:
	testb	$31, 32(%r14)
	je	LBB0_57
LBB0_23:
	movq	%rdx, %r9
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
LBB0_24:
	movq	%rdi, %r15
LBB0_25:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r15
	je	LBB0_27
## %bb.26:
	movq	160(%r14), %rdi
	movq	%r15, %rsi
	movl	%r12d, %ecx
	movq	%r9, %rbx
	callq	_swri_audio_convert
	movq	%rbx, %r9
	movq	152(%r14), %rax
LBB0_27:
	testq	%rax, %rax
	je	LBB0_32
## %bb.28:
	cmpq	%r9, %r15
	je	LBB0_30
## %bb.29:
	movq	%r14, %rdi
	movq	%r9, %rsi
	movl	%r13d, %edx
	movq	%r15, %rcx
	movl	%r12d, %r8d
	movq	%r9, %rbx
	callq	_resample
	movq	%rbx, %r9
	movl	%eax, %r13d
LBB0_30:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r9
	je	LBB0_37
## %bb.31:
	xorl	%r8d, %r8d
	cmpq	%r15, %rbx
	sete	%r8b
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r9, %rdx
	movl	%r13d, %ecx
	callq	_swri_rematrix
	jmp	LBB0_37
LBB0_32:
	cmpq	%r9, %r15
	je	LBB0_34
## %bb.33:
	xorl	%r8d, %r8d
	cmpq	-72(%rbp), %r9                  ## 8-byte Folded Reload
	sete	%r8b
	movq	%r14, %rdi
	movq	%r9, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movq	%r9, %rbx
	callq	_swri_rematrix
	movq	%rbx, %r9
LBB0_34:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r9
	je	LBB0_36
## %bb.35:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%r9, %rcx
	movl	%r12d, %r8d
	callq	_resample
	movl	%eax, %r13d
LBB0_36:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_37:
	cmpq	%r15, %rbx
	je	LBB0_3
## %bb.38:
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.39:
	cmpq	$0, 40(%r14)
	je	LBB0_60
## %bb.40:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_FFMAX
	movq	%rbx, %rcx
	movl	%eax, %ebx
	movq	%rcx, %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	jne	LBB0_42
## %bb.41:
	leaq	88(%r14), %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_swri_realloc_audio
	testl	%eax, %eax
	js	LBB0_8
LBB0_42:
	leaq	56(%r14), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_swri_realloc_audio
	testl	%eax, %eax
	js	LBB0_8
## %bb.43:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	je	LBB0_48
## %bb.44:
	testq	%rax, %rax
	jle	LBB0_48
## %bb.45:
	movl	$3141592, %ebx                  ## imm = 0x2FEFD8
	xorl	%r12d, %r12d
	movl	$2718281828, %r13d              ## imm = 0xA205B064
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	movabsq	$-3873537995854636567, %rcx     ## imm = 0xCA3E6DB7351B19E9
	mulq	%rcx
	shrq	$31, %rdx
	imulq	%r13, %rdx
	movq	%rbx, %rcx
	subq	%rdx, %rcx
	movq	72(%r14), %rax
	movq	(%rax,%r12,8), %rsi
	movl	64(%r14), %edx
	movl	80(%r14), %r8d
	movq	%r14, %rdi
	callq	_swri_get_dither
	testl	%eax, %eax
	js	LBB0_8
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	incq	%r12
	movq	(%r15), %rax
	movabsq	$12345678913579, %rcx           ## imm = 0xB3A73CE602B
	addq	%rcx, %rbx
	cmpq	%r12, %rax
	jg	LBB0_46
LBB0_48:
	xorl	%edi, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_av_assert0
	movl	48(%r14), %r8d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%r8,%rax), %ecx
	cmpl	64(%r14), %ecx
	jle	LBB0_50
## %bb.49:
	movl	$0, 48(%r14)
	xorl	%r8d, %r8d
LBB0_50:
	movq	40(%r14), %rcx
	movq	_SWR_DITHER_NS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_62
## %bb.51:
	movq	144(%r14), %r10
	testq	%r10, %r10
	je	LBB0_69
## %bb.52:
	movslq	%eax, %r15
	andq	$-16, %r15
	movslq	12(%rbx), %r12
	testl	%r15d, %r15d
	je	LBB0_65
## %bb.53:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jle	LBB0_65
## %bb.54:
	movl	$1, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	movq	-8(%rcx,%rbx,8), %rdi
	movq	16(%r13), %rcx
	movq	-8(%rcx,%rbx,8), %rsi
	movq	72(%r14), %rcx
	movslq	68(%r14), %rax
	movslq	%r8d, %rdx
	imulq	%rax, %rdx
	addq	-8(%rcx,%rbx,8), %rdx
	movl	136(%r14), %ecx
	movl	%r15d, (%rsp)
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*%r10
	cmpq	%rbx, (%r13)
	jle	LBB0_65
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=1
	movq	144(%r14), %r10
	movl	48(%r14), %r8d
	incq	%rbx
	jmp	LBB0_55
LBB0_8:
	movl	%eax, %r13d
LBB0_3:
	movl	%r13d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_57:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rsi
	je	LBB0_61
## %bb.58:
	movq	%r15, %r9
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rdi, %rsi
	je	LBB0_25
## %bb.59:
	cmpq	%rdx, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmoveq	%rcx, %rdx
	movq	%rdx, %r9
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_60:
	movq	%rbx, %rdx
	jmp	LBB0_77
LBB0_61:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_FFMIN
	movl	%eax, %r13d
	movl	168(%r14), %edi
	callq	_av_assert0
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_copy
	jmp	LBB0_3
LBB0_62:
	movl	8(%r14), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_76
## %bb.63:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_64:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_swri_noise_shaping_int32
	jmp	LBB0_76
LBB0_65:
	cmpl	%r15d, -64(%rbp)                ## 4-byte Folded Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_76
## %bb.66:
	cmpq	$0, (%r13)
	jle	LBB0_76
## %bb.67:
	imulq	%r15, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r15d
	andl	$15, %r15d
	xorl	%ebx, %ebx
LBB0_68:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	%r12, %rdi
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	addq	%r12, %rsi
	movq	72(%r14), %rdx
	movslq	68(%r14), %rcx
	movslq	48(%r14), %rax
	imulq	%rcx, %rax
	movq	(%rdx,%rbx,8), %rdx
	addq	%r12, %rdx
	addq	%rax, %rdx
	movl	120(%r14), %ecx
	movl	%r15d, (%rsp)
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*128(%r14)
	incq	%rbx
	cmpq	%rbx, (%r13)
	jg	LBB0_68
	jmp	LBB0_76
LBB0_69:
	cmpq	$0, (%rbx)
	jle	LBB0_76
## %bb.70:
	movl	$1, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_71:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rax
	movq	-8(%rax,%rbx,8), %rdi
	movq	16(%r15), %rax
	movq	-8(%rax,%rbx,8), %rsi
	movq	72(%r14), %rax
	movslq	68(%r14), %rcx
	movslq	%r8d, %rdx
	imulq	%rcx, %rdx
	addq	-8(%rax,%rbx,8), %rdx
	movl	120(%r14), %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%rsp)
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*128(%r14)
	cmpq	%rbx, (%r15)
	jle	LBB0_76
## %bb.72:                              ##   in Loop: Header=BB0_71 Depth=1
	movl	48(%r14), %r8d
	incq	%rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_71
LBB0_73:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_swri_noise_shaping_int16
	jmp	LBB0_76
LBB0_74:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_swri_noise_shaping_float
	jmp	LBB0_76
LBB0_75:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_swri_noise_shaping_double
LBB0_76:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	addl	%r13d, 48(%r14)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_77:
	movq	24(%r14), %rdi
	movq	%r15, %rsi
	movl	%r13d, %ecx
	jmp	LBB0_2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_64, LBB0_64-LJTI0_0
.set L0_0_set_73, LBB0_73-LJTI0_0
.set L0_0_set_74, LBB0_74-LJTI0_0
.set L0_0_set_75, LBB0_75-LJTI0_0
LJTI0_0:
	.long	L0_0_set_64
	.long	L0_0_set_73
	.long	L0_0_set_74
	.long	L0_0_set_75
	.end_data_region
                                        ## -- End function
	.comm	_SWR_DITHER_NS,8,3              ## @SWR_DITHER_NS
	.no_dead_strip	_swr_convert_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swr_convert_internal
_swr_convert_internal:                  ; @swr_convert_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #304]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x21, #192]
	cmp	w8, #0
	cset	w0, eq
	bl	_av_assert0
	ldr	x0, [x21, #304]
	mov	x1, x20
	mov	x2, x24
	mov	x3, x23
LBB0_2:
	bl	_swri_audio_convert
	b	LBB0_55
LBB0_3:
	add	x25, x21, #272
	mov	x0, x25
	mov	x1, x23
	bl	_swri_realloc_audio
	tbnz	w0, #31, LBB0_54
; %bb.4:
	mov	x22, x21
	ldr	x8, [x22, #240]!
	ldur	x9, [x22, #-88]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_av_assert0
	mov	x0, x22
	mov	x1, x19
	bl	_swri_realloc_audio
	tbz	w0, #31, LBB0_7
	b	LBB0_54
LBB0_6:
	ldr	x9, [x21, #176]
	cmp	x8, x9
	cset	w0, eq
	bl	_av_assert0
	mov	x0, x22
	mov	x1, x23
	bl	_swri_realloc_audio
	tbnz	w0, #31, LBB0_54
LBB0_7:
	add	x26, x21, #208
	mov	x0, x26
	mov	x1, x19
	bl	_swri_realloc_audio
	tbnz	w0, #31, LBB0_54
; %bb.8:
	ldp	q0, q1, [x22]
	stp	q0, q1, [sp]
	ldp	q0, q1, [x26]
	stp	q0, q1, [sp, #32]
	ldp	w9, w8, [x21, #8]
	cmp	w9, w8
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x21, #168]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	w8, [x21, #200]
	cmp	w8, #0
	csel	x25, x24, x25, eq
LBB0_11:
	ldr	x8, [x21, #152]
	cbz	x8, LBB0_13
; %bb.12:
	ldp	w10, w11, [x21, #192]
	b	LBB0_14
LBB0_13:
	ldp	w11, w10, [x21, #192]
LBB0_14:
	cmp	w10, #0
	mov	x10, sp
	csel	x10, x25, x10, eq
	cbz	w11, LBB0_16
; %bb.15:
	add	x11, sp, #32
	b	LBB0_17
LBB0_16:
	mov	x11, x10
LBB0_17:
	ldr	w12, [x21, #16]
	cmp	w9, w12
	b.ne	LBB0_21
; %bb.18:
	ldr	x12, [x21, #184]
	cbz	x12, LBB0_21
; %bb.19:
	cmp	w9, #128
	b.ne	LBB0_56
; %bb.20:
	ldrb	w9, [x21, #32]
	tst	w9, #0x1f
	b.eq	LBB0_56
LBB0_21:
	mov	x26, x10
	mov	x22, x11
LBB0_22:
	mov	x27, x25
LBB0_23:
	cmp	x27, x24
	b.eq	LBB0_25
; %bb.24:
	ldr	x0, [x21, #160]
	mov	x1, x27
	mov	x2, x24
	mov	x3, x23
	bl	_swri_audio_convert
	ldr	x8, [x21, #152]
LBB0_25:
	cmp	x27, x26
	cbz	x8, LBB0_30
; %bb.26:
	b.eq	LBB0_28
; %bb.27:
	mov	x0, x21
	mov	x1, x26
	mov	x2, x19
	mov	x3, x27
	mov	x4, x23
	bl	_resample
	mov	x19, x0
LBB0_28:
	cmp	x26, x22
	b.eq	LBB0_34
; %bb.29:
	cmp	x22, x20
	cset	w4, eq
	mov	x0, x21
	mov	x1, x22
	mov	x2, x26
	mov	x3, x19
	bl	_swri_rematrix
	b	LBB0_34
LBB0_30:
	b.eq	LBB0_32
; %bb.31:
	cmp	x26, x20
	cset	w4, eq
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	mov	x3, x23
	bl	_swri_rematrix
LBB0_32:
	cmp	x26, x22
	b.eq	LBB0_34
; %bb.33:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	x3, x26
	mov	x4, x23
	bl	_resample
	mov	x19, x0
LBB0_34:
	cmp	x22, x20
	b.eq	LBB0_55
; %bb.35:
	cbz	w19, LBB0_55
; %bb.36:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_59
; %bb.37:
	mov	x0, x19
	mov	w1, #65536
	bl	_FFMAX
	mov	x25, x0
	mov	x23, x22
	cmp	x22, x24
	b.ne	LBB0_39
; %bb.38:
	add	x23, x21, #88
	mov	x0, x23
	mov	x1, x25
	bl	_swri_realloc_audio
	tbnz	w0, #31, LBB0_54
LBB0_39:
	add	x24, x21, #56
	mov	x0, x24
	mov	x1, x25
	bl	_swri_realloc_audio
	tbnz	w0, #31, LBB0_54
; %bb.40:
	ldr	x8, [x24]
	cbz	w0, LBB0_45
; %bb.41:
	cmp	x8, #1
	b.lt	LBB0_45
; %bb.42:
	mov	x25, #0
	mov	w26, #61400
	movk	w26, #47, lsl #16
	mov	w27, #45156
	movk	w27, #41477, lsl #16
	mov	x28, #24619
	movk	x28, #29646, lsl #16
	movk	x28, #2874, lsl #32
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	udiv	x8, x26, x27
	msub	x3, x8, x27, x26
	ldr	x8, [x21, #72]
	ldr	x1, [x8, x25, lsl #3]
	ldr	w2, [x21, #64]
	ldr	w4, [x21, #80]
	mov	x0, x21
	bl	_swri_get_dither
	tbnz	w0, #31, LBB0_54
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=1
	add	x25, x25, #1
	ldr	x8, [x24]
	add	x26, x26, x28
	cmp	x8, x25
	b.gt	LBB0_43
LBB0_45:
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_av_assert0
	ldr	w8, [x21, #48]
	ldr	w9, [x21, #64]
	add	w10, w8, w19
	cmp	w10, w9
	b.le	LBB0_47
; %bb.46:
	mov	w8, #0
	str	wzr, [x21, #48]
LBB0_47:
	ldr	x9, [x21, #40]
Lloh0:
	adrp	x10, _SWR_DITHER_NS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SWR_DITHER_NS@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_61
; %bb.48:
	ldr	x9, [x21, #144]
	cbz	x9, LBB0_68
; %bb.49:
	sxtw	x10, w19
	ldrsw	x25, [x22, #12]
	and	x24, x10, #0xfffffffffffffff0
	cbz	w24, LBB0_64
; %bb.50:
	ldr	x10, [x22]
	cmp	x10, #1
	b.lt	LBB0_64
; %bb.51:
	mov	x26, #0
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_52:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x23, #16]
	lsl	x11, x26, #3
	ldr	x0, [x10, x11]
	ldr	x10, [x22, #16]
	ldr	x1, [x10, x11]
	ldr	x10, [x21, #72]
	ldr	x10, [x10, x11]
	ldrsw	x11, [x21, #68]
	sxtw	x8, w8
	madd	x2, x8, x11, x10
	ldr	w3, [x21, #136]
	mov	w4, #0
	mov	w5, #0
	mov	x6, x24
	blr	x9
	add	x26, x26, #1
	ldr	x8, [x22]
	cmp	x8, x26
	b.le	LBB0_64
; %bb.53:                               ;   in Loop: Header=BB0_52 Depth=1
	ldr	x9, [x21, #144]
	ldr	w8, [x21, #48]
	b	LBB0_52
LBB0_54:
	mov	x19, x0
LBB0_55:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_56:
	cmp	x11, x24
	b.eq	LBB0_60
; %bb.57:
	mov	x26, x20
	mov	x22, x20
	mov	x27, x20
	cmp	x11, x25
	b.eq	LBB0_23
; %bb.58:
	cmp	x11, x10
	csel	x26, x20, x10, eq
	mov	x22, x20
	b	LBB0_22
LBB0_59:
	mov	x23, x22
	b	LBB0_76
LBB0_60:
	mov	x0, x19
	mov	x1, x23
	bl	_FFMIN
	mov	x19, x0
	ldr	w0, [x21, #168]
	bl	_av_assert0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	bl	_copy
	b	LBB0_55
LBB0_61:
	ldr	w8, [x21, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_75
; %bb.62:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_63
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_63:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	mov	x4, x19
	bl	_swri_noise_shaping_int32
	b	LBB0_75
LBB0_64:
	cmp	w19, w24
	b.eq	LBB0_75
; %bb.65:
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_75
; %bb.66:
	mov	x26, #0
	mul	x25, x25, x24
	and	w24, w19, #0xf
LBB0_67:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #128]
	ldr	x9, [x23, #16]
	lsl	x10, x26, #3
	ldr	x9, [x9, x10]
	add	x0, x9, x25
	ldr	x9, [x22, #16]
	ldr	x9, [x9, x10]
	ldr	x11, [x21, #72]
	ldr	x10, [x11, x10]
	add	x1, x9, x25
	ldrsw	x9, [x21, #68]
	ldrsw	x11, [x21, #48]
	add	x10, x10, x25
	madd	x2, x11, x9, x10
	ldr	w3, [x21, #120]
	mov	w4, #0
	mov	w5, #0
	mov	x6, x24
	blr	x8
	add	x26, x26, #1
	ldr	x8, [x22]
	cmp	x8, x26
	b.gt	LBB0_67
	b	LBB0_75
LBB0_68:
	ldr	x9, [x22]
	cmp	x9, #1
	b.lt	LBB0_75
; %bb.69:
	mov	x24, #0
LBB0_70:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #128]
	ldr	x10, [x23, #16]
	lsl	x11, x24, #3
	ldr	x0, [x10, x11]
	ldr	x10, [x22, #16]
	ldr	x1, [x10, x11]
	ldr	x10, [x21, #72]
	ldr	x10, [x10, x11]
	ldrsw	x11, [x21, #68]
	sxtw	x8, w8
	madd	x2, x8, x11, x10
	ldr	w3, [x21, #120]
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	blr	x9
	add	x24, x24, #1
	ldr	x8, [x22]
	cmp	x8, x24
	b.le	LBB0_75
; %bb.71:                               ;   in Loop: Header=BB0_70 Depth=1
	ldr	w8, [x21, #48]
	b	LBB0_70
LBB0_72:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	mov	x4, x19
	bl	_swri_noise_shaping_int16
	b	LBB0_75
LBB0_73:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	mov	x4, x19
	bl	_swri_noise_shaping_float
	b	LBB0_75
LBB0_74:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	mov	x4, x19
	bl	_swri_noise_shaping_double
LBB0_75:
	ldr	w8, [x21, #48]
	add	w8, w8, w19
	str	w8, [x21, #48]
LBB0_76:
	ldr	x0, [x21, #24]
	mov	x1, x20
	mov	x2, x23
	mov	x3, x19
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_63-LBB0_63)>>2
	.byte	(LBB0_72-LBB0_63)>>2
	.byte	(LBB0_73-LBB0_63)>>2
	.byte	(LBB0_74-LBB0_63)>>2
                                        ; -- End function
	.comm	_SWR_DITHER_NS,8,3              ; @SWR_DITHER_NS
	.no_dead_strip	_swr_convert_internal
.subsections_via_symbols
