	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function vorbis_encode_compand_setup
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vorbis_encode_compand_setup:           ## @vorbis_encode_compand_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cvttsd2si	%xmm0, %eax
	cvttpd2dq	%xmm0, %xmm1
	cvtdq2pd	%xmm1, %xmm1
	subsd	%xmm1, %xmm0
	cltq
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm2
	subsd	%xmm0, %xmm2
	mulsd	8(%rcx,%rax,8), %xmm0
	mulsd	(%rcx,%rax,8), %xmm2
	addsd	%xmm0, %xmm2
	cvttsd2si	%xmm2, %r8d
	cvttpd2dq	%xmm2, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	subsd	%xmm0, %xmm2
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm2
	setnp	%cl
	sete	%al
	andb	%cl, %al
	testl	%r8d, %r8d
	setg	%cl
	andb	%al, %cl
	jne	LBB0_2
## %bb.1:
	movapd	%xmm2, %xmm1
LBB0_2:
	movq	_NOISE_COMPAND_LEVELS@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_5
## %bb.3:
	movzbl	%cl, %ecx
	subl	%ecx, %r8d
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	movslq	%esi, %rsi
	movq	(%rcx,%rsi,8), %rsi
	movslq	%r8d, %rdi
	movq	(%rdx,%rdi,8), %rcx
	movq	8(%rdx,%rdi,8), %rdx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	%xmm1, %xmm0
	movq	(%rsi), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%rcx,%rdi,4), %xmm2
	mulsd	%xmm0, %xmm2
	xorps	%xmm3, %xmm3
	cvtsi2sdl	(%rdx,%rdi,4), %xmm3
	mulsd	%xmm1, %xmm3
	addsd	%xmm2, %xmm3
	cvttsd2si	%xmm3, %eax
	movl	%eax, (%rsi,%rdi,4)
	incq	%rdi
	movslq	(%r9), %rax
	cmpq	%rax, %rdi
	jl	LBB0_4
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOISE_COMPAND_LEVELS,4,2       ## @NOISE_COMPAND_LEVELS
	.no_dead_strip	_vorbis_encode_compand_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vorbis_encode_compand_setup
_vorbis_encode_compand_setup:           ; @vorbis_encode_compand_setup
	.cfi_startproc
; %bb.0:
	fmov	d1, #1.00000000
	fcvtzs	w8, d0
	scvtf	d2, w8
	fsub	d0, d0, d2
	add	x8, x3, w8, sxtw #3
	fsub	d2, d1, d0
	ldp	d3, d4, [x8]
	fmul	d0, d0, d4
	fmadd	d0, d3, d2, d0
	fcvtzs	w10, d0
	scvtf	d2, w10
	fsub	d0, d0, d2
	fcmp	d0, #0.0
	cset	w8, eq
	cmp	w10, #0
	cset	w9, gt
	ands	w11, w8, w9
	fcsel	d0, d1, d0, ne
Lloh0:
	adrp	x8, _NOISE_COMPAND_LEVELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NOISE_COMPAND_LEVELS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	and	w11, w11, #0x1
	ldr	x12, [x0]
	ldr	x12, [x12]
	ldr	x12, [x12, w1, sxtw #3]
	sub	w10, w10, w11
	add	x11, x2, w10, sxtw #3
	fsub	d1, d1, d0
	ldp	x10, x11, [x11]
	ldr	x12, [x12]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x9, #2
	ldr	s2, [x10, x13]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	ldr	s3, [x11, x13]
	sshll.2d	v3, v3, #0
	scvtf	d3, d3
	fmul	d3, d0, d3
	fmadd	d2, d2, d1, d3
	fcvtzs	w14, d2
	str	w14, [x12, x13]
	add	x9, x9, #1
	ldrsw	x13, [x8]
	cmp	x9, x13
	b.lt	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NOISE_COMPAND_LEVELS,4,2       ; @NOISE_COMPAND_LEVELS
	.no_dead_strip	_vorbis_encode_compand_setup
.subsections_via_symbols
