	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function limit_gain
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
LCPI0_2:
	.quad	0xc000000000000000              ## double -2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_limit_gain:                            ## @limit_gain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movapd	%xmm0, %xmm2
	ucomisd	LCPI0_0(%rip), %xmm0
	jbe	LBB0_2
## %bb.1:
	movapd	%xmm1, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	addsd	%xmm1, %xmm2
	addsd	LCPI0_2(%rip), %xmm2
	divsd	%xmm2, %xmm0
	popq	%rbp
	retq
LBB0_2:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jbe	LBB0_4
## %bb.3:
	movapd	%xmm1, %xmm0
	mulsd	%xmm2, %xmm0
	subsd	%xmm2, %xmm1
	addsd	%xmm2, %xmm2
	subsd	%xmm2, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	divsd	%xmm1, %xmm0
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_limit_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function limit_gain
_limit_gain:                            ; @limit_gain
	.cfi_startproc
; %bb.0:
	fmov	d2, #1.00000000
	fcmp	d0, d2
	b.le	LBB0_2
; %bb.1:
	fmov	d2, #-1.00000000
	fmadd	d2, d1, d0, d2
	fadd	d0, d0, d1
	fmov	d1, #-2.00000000
	fadd	d0, d0, d1
	b	LBB0_4
LBB0_2:
	b.pl	LBB0_5
; %bb.3:
	fmov	d2, #-2.00000000
	fmul	d2, d0, d2
	fmadd	d2, d1, d0, d2
	fmov	d3, #1.00000000
	fadd	d2, d2, d3
	fsub	d0, d1, d0
LBB0_4:
	fdiv	d2, d2, d0
LBB0_5:
	fmov	d0, d2
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_limit_gain
.subsections_via_symbols
