	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ff_adaptive_gain_control
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_adaptive_gain_control
	.p2align	4, 0x90
_ff_adaptive_gain_control:              ## @ff_adaptive_gain_control
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movss	%xmm1, -40(%rbp)                ## 4-byte Spill
	movl	%edx, %r12d
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_avpriv_scalarproduct_float_c
	movss	(%r14), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	movsd	LCPI0_0(%rip), %xmm4            ## xmm4 = mem[0],zero
	xorps	%xmm2, %xmm2
	ucomiss	%xmm2, %xmm0
	movaps	%xmm4, %xmm1
	jne	LBB0_1
	jnp	LBB0_5
LBB0_1:
	movss	-36(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	ucomiss	%xmm2, %xmm1
	jb	LBB0_3
## %bb.2:
	sqrtss	%xmm0, %xmm0
	jmp	LBB0_4
LBB0_3:
	movss	%xmm3, -36(%rbp)                ## 4-byte Spill
	callq	_sqrt
	movsd	LCPI0_0(%rip), %xmm4            ## xmm4 = mem[0],zero
	movss	-36(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
LBB0_4:
	xorps	%xmm1, %xmm1
	cvtss2sd	%xmm0, %xmm1
LBB0_5:
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.6:
	movss	-40(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	cvtss2sd	%xmm2, %xmm0
	subsd	%xmm0, %xmm4
	mulsd	%xmm1, %xmm4
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm4, %xmm0
	movl	%r12d, %ecx
	cmpl	$1, %r12d
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movl	%ecx, %edx
	andl	$-2, %edx
	xorl	%eax, %eax
	movaps	%xmm3, %xmm1
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	mulss	%xmm2, %xmm1
	addss	%xmm0, %xmm1
	movaps	%xmm2, %xmm3
	mulss	%xmm1, %xmm3
	mulss	(%rbx,%rax,4), %xmm1
	movss	%xmm1, (%r15,%rax,4)
	addss	%xmm0, %xmm3
	movss	4(%rbx,%rax,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm1
	movss	%xmm1, 4(%r15,%rax,4)
	addq	$2, %rax
	movaps	%xmm3, %xmm1
	cmpq	%rax, %rdx
	jne	LBB0_9
LBB0_10:
	testb	$1, %cl
	je	LBB0_12
## %bb.11:
	mulss	%xmm3, %xmm2
	addss	%xmm0, %xmm2
	movss	(%rbx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	movss	%xmm0, (%r15,%rax,4)
	movaps	%xmm2, %xmm3
LBB0_12:
	movss	%xmm3, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_adaptive_gain_control       ; -- Begin function ff_adaptive_gain_control
	.p2align	2
_ff_adaptive_gain_control:              ; @ff_adaptive_gain_control
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x3
	fmov	s8, s1
	mov	x22, x2
	fmov	s9, s0
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_avpriv_scalarproduct_float_c
	ldr	s2, [x19]
	fmov	d3, #1.00000000
	fcmp	s0, #0.0
	fmov	d1, #1.00000000
	b.eq	LBB0_3
; %bb.1:
	fdiv	s1, s9, s0
	fsqrt	s0, s1
	fcmp	s0, s0
	b.vs	LBB0_7
LBB0_2:
	fcvt	d1, s0
LBB0_3:
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.4:
	fcvt	d0, s8
	fsub	d0, d3, d0
	fmul	d0, d0, d1
	fcvt	s0, d0
	mov	w8, w22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	fmadd	s2, s8, s2, s0
	ldr	s1, [x20], #4
	fmul	s1, s2, s1
	str	s1, [x21], #4
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_6:
	str	s2, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_7:
	fmov	s0, s1
	fmov	s9, s2
	bl	_sqrt
	fmov	d3, #1.00000000
	fmov	s2, s9
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
