	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function config_output
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x408f400000000000              ## double 1000
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_config_output:                         ## @config_output
	.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, %r14
	movq	24(%rdi), %rdi
	movq	(%rdi), %r12
	movl	(%r14), %eax
	movl	%eax, (%r12)
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	cmpl	$0, 4(%r12)
	jle	LBB0_12
## %bb.1:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_AV_SAMPLE_FMT_S32@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movsd	(%rax,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movq	32(%r12), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax,%rbx,4), %xmm0
	movsd	8(%r14), %xmm1                  ## xmm1 = mem[0],zero
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	divsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edi
	movsd	(%rcx,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	24(%r12), %rax
	movl	%edi, (%rax,%rbx,4)
	shll	$2, %edi
	callq	_av_malloc
	movq	96(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-56(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	addsd	%xmm3, %xmm1
	movsd	-64(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm3
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm0, %xmm3
	cvttsd2si	%xmm3, %r9d
	mulsd	%xmm2, %xmm1
	divsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %r13d
	movq	_WAVE_SIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r15), %esi
	movq	24(%r12), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	$0, (%rsp)
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_ff_generate_wave_table
	movl	56(%r12), %edi
	movl	%r13d, %esi
	callq	_FFMAX
	movl	%eax, 56(%r12)
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.4:
	movl	%eax, %edx
	testl	%edx, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	jle	LBB0_12
## %bb.5:
	movq	88(%r12), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_7
## %bb.6:
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_7:
	andl	$-4, %edx
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rcx,%rsi,8), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ssq	8(%rcx,%rsi,8), %xmm1
	addss	%xmm3, %xmm0
	xorps	%xmm2, %xmm2
	cvtsi2ssq	16(%rcx,%rsi,8), %xmm2
	addss	%xmm0, %xmm1
	xorps	%xmm3, %xmm3
	cvtsi2ssq	24(%rcx,%rsi,8), %xmm3
	addss	%xmm1, %xmm2
	addss	%xmm2, %xmm3
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_8
LBB0_9:
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rcx,%rdx,8), %xmm0
	addss	%xmm0, %xmm3
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	mulss	40(%r12), %xmm3
	xorps	%xmm0, %xmm0
	cvtss2sd	%xmm3, %xmm0
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	48(%r12), %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_14
## %bb.13:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_14:
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_av_calloc
	movq	%rax, 80(%r12)
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movl	(%r14), %edi
	movl	$8, %esi
	callq	_av_calloc
	movq	%rax, 72(%r12)
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_21
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movl	$4, %esi
	callq	_av_calloc
	movq	72(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	72(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	movslq	(%r14), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_19
LBB0_21:
	movl	56(%r12), %ecx
	movl	%ecx, 64(%r12)
	addq	$60, %r12
	movl	16(%r14), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%r9d, %r9d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_samples_alloc_array_and_samples ## TAILCALL
LBB0_20:
	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
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WAVE_SIN,4,2                   ## @WAVE_SIN
	.comm	_AV_SAMPLE_FMT_S32,4,2          ## @AV_SAMPLE_FMT_S32
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"output gain can cause saturation or clipping of output\n"

	.no_dead_strip	_config_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_output
_config_output:                         ; @config_output
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x22, [x20]
	ldr	w8, [x0]
	str	w8, [x22]
	ldr	w8, [x22, #4]
	fmov	s8, #1.00000000
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x23, #0
	mov	x24, #70368744177664
	movk	x24, #16527, lsl #48
Lloh0:
	adrp	x25, _WAVE_SIN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WAVE_SIN@GOTPAGEOFF]
Lloh2:
	adrp	x26, _AV_SAMPLE_FMT_S32@GOTPAGE
Lloh3:
	ldr	x26, [x26, _AV_SAMPLE_FMT_S32@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x23, #3
	ldp	x9, x10, [x22, #8]
	ldr	d9, [x9, x8]
	ldr	d10, [x10, x8]
	ldr	d11, [x19, #8]
	lsl	x21, x23, #2
	ldp	x9, x8, [x22, #24]
	ldr	s0, [x8, x21]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	fdiv	d0, d11, d0
	fcvtzs	w8, d0
	str	w8, [x9, x21]
	lsl	w0, w8, #2
	bl	_av_malloc
	ldr	x8, [x22, #96]
	str	w0, [x8, x21]
	cbz	w0, LBB0_21
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, x0
	fmul	d0, d10, d11
	fmov	d1, x24
	fdiv	d0, d0, d1
	fcvtzs	w5, d0
	fadd	d0, d9, d10
	fmul	d0, d0, d11
	fdiv	d0, d0, d1
	fcvtzs	w21, d0
	ldr	w0, [x25]
	ldr	w1, [x26]
	ldr	x8, [x22, #24]
	ldr	w3, [x8, x23, lsl #2]
	mov	w4, #0
	mov	w6, #0
	bl	_ff_generate_wave_table
	ldr	w0, [x22, #56]
	mov	x1, x21
	bl	_FFMAX
	str	w0, [x22, #56]
	add	x23, x23, #1
	ldrsw	x8, [x22, #4]
	cmp	x23, x8
	b.lt	LBB0_2
; %bb.4:
	and	x8, x8, #0xffffffff
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.5:
	ldr	x9, [x22, #88]
	cmp	w8, #4
	b.hs	LBB0_7
; %bb.6:
	mov	x10, #0
	fmov	s8, #1.00000000
	b	LBB0_10
LBB0_7:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #16
	fmov	s8, #1.00000000
	mov	x12, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x13, x14, [x11, #-16]
	ldp	x15, x16, [x11], #32
	scvtf	s0, x13
	scvtf	s1, x14
	scvtf	s2, x15
	scvtf	s3, x16
	fadd	s0, s8, s0
	fadd	s0, s0, s1
	fadd	s0, s0, s2
	fadd	s8, s0, s3
	subs	x12, x12, #4
	b.ne	LBB0_8
; %bb.9:
	cmp	x10, x8
	b.eq	LBB0_12
LBB0_10:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	scvtf	s0, x10
	fadd	s8, s8, s0
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	ldr	s0, [x22, #40]
	fmul	s0, s8, s0
	fcvt	d0, s0
	ldr	d1, [x22, #48]
	fmov	d2, #1.00000000
	fdiv	d1, d2, d1
	fcmp	d1, d0
	b.pl	LBB0_14
; %bb.13:
Lloh4:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_14:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_av_calloc
	str	x0, [x22, #80]
	cbz	x0, LBB0_21
; %bb.15:
	ldr	w0, [x19]
	mov	w1, #8
	bl	_av_calloc
	str	x0, [x22, #72]
	cbz	x0, LBB0_21
; %bb.16:
	ldr	w2, [x19]
	cmp	w2, #1
	b.lt	LBB0_20
; %bb.17:
	mov	x20, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #4]
	mov	w1, #4
	bl	_av_calloc
	ldr	x8, [x22, #72]
	lsl	x9, x20, #3
	str	x0, [x8, x9]
	ldr	x8, [x22, #72]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x20, x20, #1
	ldrsw	x2, [x19]
	cmp	x20, x2
	b.lt	LBB0_18
LBB0_20:
	ldr	w3, [x22, #56]
	str	w3, [x22, #64]
	add	x0, x22, #60
	ldr	w4, [x19, #16]
	mov	x1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w5, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #112            ; 16-byte Folded Reload
	b	_av_samples_alloc_array_and_samples
LBB0_21:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #112            ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WAVE_SIN,4,2                   ; @WAVE_SIN
	.comm	_AV_SAMPLE_FMT_S32,4,2          ; @AV_SAMPLE_FMT_S32
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"output gain can cause saturation or clipping of output\n"

	.no_dead_strip	_config_output
.subsections_via_symbols
