	.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_noisebias_setup
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vorbis_encode_noisebias_setup:         ## @vorbis_encode_noisebias_setup
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cvttsd2si	%xmm0, %eax
	cvttpd2dq	%xmm0, %xmm2
	cvtdq2pd	%xmm2, %xmm2
	subsd	%xmm2, %xmm0
	movq	(%rdi), %rdi
	movq	(%rdi), %rdi
	movslq	%esi, %rsi
	movslq	%eax, %r9
	cvtsi2sdl	(%rdx,%r9,4), %xmm3
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm0, %xmm2
	cvtsi2sdl	4(%rdx,%r9,4), %xmm4
	mulsd	%xmm0, %xmm4
	mulsd	%xmm2, %xmm3
	addsd	%xmm4, %xmm3
	cvttsd2si	%xmm3, %eax
	movq	(%rdi,%rsi,8), %r11
	movl	%eax, (%r11)
	leaq	(%rsi,%rsi,2), %rax
	movl	8(%r8,%rax,4), %edx
	movl	%edx, 24(%r11)
	movl	4(%r8,%rax,4), %edx
	movl	%edx, 20(%r11)
	movl	(%r8,%rax,4), %eax
	movl	%eax, 16(%r11)
	movq	_P_NOISECURVES@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.1:
	leaq	1(%r9), %r10
	movq	_P_BANDS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%edi, %edi
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx,%r9,8), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rcx,%r10,8), %rdx
	movq	(%rdx,%r15,8), %rbx
	movq	8(%r11), %rdx
	movq	(%rdx,%r15,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorps	%xmm3, %xmm3
	cvtsi2sdl	(%rax,%rsi,4), %xmm3
	xorps	%xmm4, %xmm4
	cvtsi2sdl	(%rbx,%rsi,4), %xmm4
	mulsd	%xmm0, %xmm4
	mulsd	%xmm2, %xmm3
	addsd	%xmm4, %xmm3
	cvttsd2si	%xmm3, %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%r14), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r8), %eax
	jmp	LBB0_6
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_17
## %bb.8:
	movq	8(%r11), %r9
	movl	(%r14), %edi
	xorl	%esi, %esi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r8), %eax
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rsi
	movslq	%eax, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_17
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	testl	%edi, %edi
	jle	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r9,%rsi,8), %rax
	movl	(%rax), %edx
	leal	6(%rdx), %ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	cvttss2si	%xmm0, %ecx
	xorps	%xmm2, %xmm2
	cvtsi2sd	%edx, %xmm2
	addsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %edx
	cvttpd2dq	%xmm2, %xmm2
	cvtdq2ps	%xmm2, %xmm2
	ucomiss	%xmm2, %xmm0
	cmoval	%ecx, %edx
	movl	%edx, (%rax)
	movl	(%r14), %edi
	cmpl	$2, %edi
	jl	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	%edx, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rdi
	cmpq	%rdi, %rbx
	jge	LBB0_15
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%rax,%rbx,4), %xmm2
	addsd	%xmm1, %xmm2
	cvttpd2dq	%xmm2, %xmm3
	cvtdq2ps	%xmm3, %xmm3
	ucomiss	%xmm3, %xmm0
	movl	%ecx, %edx
	ja	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	cvttsd2si	%xmm2, %edx
	jmp	LBB0_14
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_NOISECURVES,4,2              ## @P_NOISECURVES
	.comm	_P_BANDS,4,2                    ## @P_BANDS
	.no_dead_strip	_vorbis_encode_noisebias_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_noisebias_setup
_vorbis_encode_noisebias_setup:         ; @vorbis_encode_noisebias_setup
	.cfi_startproc
; %bb.0:
	fcvtzs	w8, d0
	scvtf	d2, w8
	fsub	d0, d0, d2
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x10, [x9, w1, sxtw #3]
	sxtw	x11, w8
	ldr	s2, [x2, w8, sxtw #2]
	sshll.2d	v2, v2, #0
	scvtf	d3, d2
	fmov	d2, #1.00000000
	fsub	d2, d2, d0
	add	x12, x11, #1
	ldr	s4, [x2, x12, lsl #2]
	sshll.2d	v4, v4, #0
	scvtf	d4, d4
	fmul	d4, d0, d4
	fmadd	d3, d3, d2, d4
	fcvtzs	w8, d3
	str	w8, [x10]
	mov	w8, #12
	smaddl	x8, w1, w8, x4
	ldr	w9, [x8, #8]
	str	w9, [x10, #24]
	ldr	d3, [x8]
	str	d3, [x10, #16]
Lloh0:
	adrp	x8, _P_NOISECURVES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P_NOISECURVES@GOTPAGEOFF]
	ldr	w13, [x8]
	cmp	w13, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x14, #0
Lloh2:
	adrp	x9, _P_BANDS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _P_BANDS@GOTPAGEOFF]
	ldr	w15, [x9]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x14, x14, #1
	cmp	x14, w13, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w15, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x13, #0
	ldr	x15, [x3, x11, lsl #3]
	lsl	x0, x14, #3
	ldr	x16, [x15, x0]
	ldr	x15, [x3, x12, lsl #3]
	ldr	x17, [x15, x0]
	ldr	x15, [x10, #8]
	ldr	x0, [x15, x0]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x15, x13, #2
	ldr	s3, [x16, x15]
	sshll.2d	v3, v3, #0
	scvtf	d3, d3
	ldr	s4, [x17, x15]
	sshll.2d	v4, v4, #0
	scvtf	d4, d4
	fmul	d4, d0, d4
	fmadd	d3, d3, d2, d4
	fcvtzs	w1, d3
	str	w1, [x0, x15]
	add	x13, x13, #1
	ldrsw	x15, [x9]
	cmp	x13, x15
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x8]
	b	LBB0_2
LBB0_7:
	cmp	w13, #1
	b.lt	LBB0_15
; %bb.8:
	mov	x11, #0
	ldr	x10, [x10, #8]
	ldr	w12, [x9]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w13, [x8]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x11, x11, #1
	cmp	x11, w13, sxtw
	b.ge	LBB0_15
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w12, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x13, [x10, x11, lsl #3]
	ldr	w12, [x13]
	add	w14, w12, #6
	scvtf	s0, w14
	fcvtzs	w14, s0
	scvtf	d2, w12
	fadd	d2, d2, d1
	fcvtzs	w12, d2
	scvtf	s2, w12
	fcmp	s2, s0
	csel	w12, w14, w12, mi
	str	w12, [x13]
	ldr	w12, [x9]
	cmp	w12, #2
	b.lt	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w15, #1
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x12, x15, #2
	ldr	s2, [x13, x12]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fadd	d2, d2, d1
	fcvtzs	w16, d2
	scvtf	s2, w16
	fcmp	s2, s0
	csel	w16, w14, w16, mi
	str	w16, [x13, x12]
	add	x15, x15, #1
	ldrsw	x12, [x9]
	cmp	x15, x12
	b.lt	LBB0_14
	b	LBB0_9
LBB0_15:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_P_NOISECURVES,4,2              ; @P_NOISECURVES
	.comm	_P_BANDS,4,2                    ; @P_BANDS
	.no_dead_strip	_vorbis_encode_noisebias_setup
.subsections_via_symbols
