	.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_residue_setup
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_2:
	.quad	0x406f400000000000              ## double 250
LCPI0_3:
	.quad	0x3feccccccccccccd              ## double 0.90000000000000002
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vorbis_encode_residue_setup:           ## @vorbis_encode_residue_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	%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	%rcx, %r13
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movl	$48, %edi
	callq	__ogg_malloc
	movq	%rax, %rbx
	movq	80(%r12), %rax
	movslq	%r15d, %r14
	movq	%rbx, (%rax,%r14,8)
	movl	48(%r13), %esi
	movq	%rbx, %rdi
	movl	$48, %edx
	callq	_memcpy
	cmpl	%r14d, (%r12)
	jg	LBB0_2
## %bb.1:
	leal	1(%r15), %eax
	movl	%eax, (%r12)
LBB0_2:
	movsd	(%r13), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx)
	movl	8(%r13), %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%r14,4)
	cmpq	$0, 56(%r12)
	movl	8(%rbx), %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_25
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_14
## %bb.4:
	movq	32(%r13), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	movslq	8(%rbx), %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rsi
	orl	$1, (%rsi,%rcx,4)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 8(%rdx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rsi
	orl	$2, (%rsi,%rcx,4)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 16(%rdx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rsi
	orl	$4, (%rsi,%rcx,4)
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 24(%rdx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rdx
	orl	$8, (%rdx,%rcx,4)
	jmp	LBB0_13
LBB0_14:
	movq	40(%r13), %rsi
	movq	%r12, %rdi
	callq	_book_dup_or_new
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, 24(%rdi)
	movq	40(%r13), %rcx
	movq	72(%r12), %rdx
	movq	%rcx, (%rdx,%rax,8)
	cmpl	$0, 8(%rdi)
	jle	LBB0_47
## %bb.15:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	8(%rdi), %rax
	cmpq	%rax, %rbx
	jge	LBB0_47
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	callq	_book_dup_or_new
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rcx
	movslq	%r14d, %rdx
	incl	%r14d
	movl	%eax, (%rcx,%rdx,4)
	movq	32(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx), %rcx
	movq	72(%r12), %rdx
	cltq
	movq	%rcx, (%rdx,%rax,8)
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	callq	_book_dup_or_new
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rcx
	movslq	%r14d, %rdx
	incl	%r14d
	movl	%eax, (%rcx,%rdx,4)
	movq	32(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	8(%rcx), %rcx
	movq	72(%r12), %rdx
	cltq
	movq	%rcx, (%rdx,%rax,8)
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	callq	_book_dup_or_new
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rcx
	movslq	%r14d, %rdx
	incl	%r14d
	movl	%eax, (%rcx,%rdx,4)
	movq	32(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	16(%rcx), %rcx
	movq	72(%r12), %rdx
	cltq
	movq	%rcx, (%rdx,%rax,8)
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	24(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	callq	_book_dup_or_new
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rcx
	movslq	%r14d, %rdx
	incl	%r14d
	movl	%eax, (%rcx,%rdx,4)
	movq	32(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	24(%rcx), %rcx
	movq	72(%r12), %rdx
	cltq
	movq	%rcx, (%rdx,%rax,8)
	jmp	LBB0_24
LBB0_25:
	testl	%eax, %eax
	jle	LBB0_36
## %bb.26:
	movq	16(%r13), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%rcx
	movslq	8(%rbx), %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_36
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	16(%rbx), %rsi
	orl	$1, (%rsi,%rcx,4)
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	cmpq	$0, 8(%rdx)
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	16(%rbx), %rsi
	orl	$2, (%rsi,%rcx,4)
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	cmpq	$0, 16(%rdx)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	16(%rbx), %rsi
	orl	$4, (%rsi,%rcx,4)
LBB0_33:                                ##   in Loop: Header=BB0_27 Depth=1
	cmpq	$0, 24(%rdx)
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	16(%rbx), %rdx
	orl	$8, (%rdx,%rcx,4)
	jmp	LBB0_35
LBB0_36:
	movq	24(%r13), %rsi
	movq	%r12, %rdi
	callq	_book_dup_or_new
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, 24(%rdi)
	movq	24(%r13), %rcx
	movq	72(%r12), %rdx
	movq	%rcx, (%rdx,%rax,8)
	cmpl	$0, 8(%rdi)
	jle	LBB0_47
## %bb.37:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_38 Depth=1
	incq	%rbx
	movslq	8(%rdi), %rax
	cmpq	%rax, %rbx
	jge	LBB0_47
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	%r12, %rdi
	callq	_book_dup_or_new
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rcx
	movslq	%r14d, %rdx
	incl	%r14d
	movl	%eax, (%rcx,%rdx,4)
	movq	16(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx), %rcx
	movq	72(%r12), %rdx
	cltq
	movq	%rcx, (%rdx,%rax,8)
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_40:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	%r12, %rdi
	callq	_book_dup_or_new
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rcx
	movslq	%r14d, %rdx
	incl	%r14d
	movl	%eax, (%rcx,%rdx,4)
	movq	16(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	8(%rcx), %rcx
	movq	72(%r12), %rdx
	cltq
	movq	%rcx, (%rdx,%rax,8)
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_42:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	16(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	%r12, %rdi
	callq	_book_dup_or_new
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rcx
	movslq	%r14d, %rdx
	incl	%r14d
	movl	%eax, (%rcx,%rdx,4)
	movq	16(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	16(%rcx), %rcx
	movq	72(%r12), %rdx
	cltq
	movq	%rcx, (%rdx,%rax,8)
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_44:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	24(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	%r12, %rdi
	callq	_book_dup_or_new
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rcx
	movslq	%r14d, %rdx
	incl	%r14d
	movl	%eax, (%rcx,%rdx,4)
	movq	16(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	24(%rcx), %rcx
	movq	72(%r12), %rdx
	cltq
	movq	%rcx, (%rdx,%rax,8)
	jmp	LBB0_46
LBB0_47:
	xorps	%xmm0, %xmm0
	cvtsi2sdl	48(%r12), %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	movq	16(%r12), %rax
	movq	64(%r12), %rcx
	movslq	-64(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	cvtsi2sdl	(%rsi), %xmm9
	mulsd	LCPI0_1(%rip), %xmm9
	movl	(%rax,%rdx,4), %eax
	sarl	%eax
	movapd	%xmm9, %xmm2
	minsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm3
	divsd	%xmm9, %xmm3
	cvtsi2sd	%eax, %xmm8
	mulsd	%xmm8, %xmm3
	movsd	%xmm3, (%rcx)
	movl	12(%r13), %ecx
	cmpl	$2, %ecx
	je	LBB0_54
## %bb.48:
	cmpl	$1, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_55
## %bb.49:
	cmpq	$0, 56(%r12)
	movq	40(%r12), %rcx
	movq	_PACKETBLOBS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	je	LBB0_51
## %bb.50:
	decl	%edx
	jmp	LBB0_52
LBB0_54:
	movsd	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_55
LBB0_51:
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	movl	%esi, %edx
LBB0_52:
	movslq	%edx, %rdx
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%rcx,%rdx,4), %xmm2
	mulsd	LCPI0_0(%rip), %xmm2
	ucomisd	%xmm9, %xmm2
	jbe	LBB0_55
## %bb.53:
	movapd	%xmm9, %xmm2
LBB0_55:
	movq	8(%r12), %rcx
	cmpl	$2, (%rcx,%rbx,4)
	jne	LBB0_79
## %bb.56:
	cltq
	movl	24(%r12), %r10d
	testl	%r10d, %r10d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_57
## %bb.58:
	movq	32(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_59:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_61 Depth 2
                                        ##       Child Loop BB0_68 Depth 3
                                        ##       Child Loop BB0_72 Depth 3
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r11,8), %r12
	movl	(%r12), %r13d
	movl	$0, %edx
	testl	%r13d, %r13d
	jle	LBB0_75
## %bb.60:                              ##   in Loop: Header=BB0_59 Depth=1
	movq	8(%r12), %r14
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_61:                                ##   Parent Loop BB0_59 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_68 Depth 3
                                        ##       Child Loop BB0_72 Depth 3
	xorl	%edx, %edx
	cmpl	%r15d, (%r14,%rcx,4)
	jne	LBB0_73
## %bb.62:                              ##   in Loop: Header=BB0_61 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_73
## %bb.63:                              ##   in Loop: Header=BB0_61 Depth=2
	movq	16(%r12), %rsi
	cmpl	$8, %r9d
	jae	LBB0_65
## %bb.64:                              ##   in Loop: Header=BB0_61 Depth=2
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	jmp	LBB0_72
LBB0_65:                                ##   in Loop: Header=BB0_61 Depth=2
	movl	%r9d, %ebx
	andl	$-8, %ebx
	movq	%rcx, %xmm3
	pshufd	$68, %xmm3, %xmm4               ## xmm4 = xmm3[0,1,0,1]
	leaq	-8(%rbx), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_66
## %bb.67:                              ##   in Loop: Header=BB0_61 Depth=2
	movq	%r8, %rdx
	andq	$-2, %rdx
	pxor	%xmm3, %xmm3
	xorl	%eax, %eax
	pxor	%xmm5, %xmm5
	.p2align	4, 0x90
LBB0_68:                                ##   Parent Loop BB0_59 Depth=1
                                        ##     Parent Loop BB0_61 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	pmovzxdq	(%rsi,%rax,4), %xmm6            ## xmm6 = mem[0],zero,mem[1],zero
	pmovzxdq	8(%rsi,%rax,4), %xmm7           ## xmm7 = mem[0],zero,mem[1],zero
	pmovzxdq	16(%rsi,%rax,4), %xmm0          ## xmm0 = mem[0],zero,mem[1],zero
	pmovzxdq	24(%rsi,%rax,4), %xmm1          ## xmm1 = mem[0],zero,mem[1],zero
	pcmpeqq	%xmm4, %xmm7
	pcmpeqq	%xmm4, %xmm6
	packssdw	%xmm7, %xmm6
	psubd	%xmm6, %xmm3
	pcmpeqq	%xmm4, %xmm1
	pcmpeqq	%xmm4, %xmm0
	packssdw	%xmm1, %xmm0
	psubd	%xmm0, %xmm5
	pmovzxdq	32(%rsi,%rax,4), %xmm0          ## xmm0 = mem[0],zero,mem[1],zero
	pmovzxdq	40(%rsi,%rax,4), %xmm1          ## xmm1 = mem[0],zero,mem[1],zero
	pmovzxdq	48(%rsi,%rax,4), %xmm6          ## xmm6 = mem[0],zero,mem[1],zero
	pmovzxdq	56(%rsi,%rax,4), %xmm7          ## xmm7 = mem[0],zero,mem[1],zero
	pcmpeqq	%xmm4, %xmm1
	pcmpeqq	%xmm4, %xmm0
	packssdw	%xmm1, %xmm0
	psubd	%xmm0, %xmm3
	pcmpeqq	%xmm4, %xmm7
	pcmpeqq	%xmm4, %xmm6
	packssdw	%xmm7, %xmm6
	psubd	%xmm6, %xmm5
	addq	$16, %rax
	addq	$-2, %rdx
	jne	LBB0_68
## %bb.69:                              ##   in Loop: Header=BB0_61 Depth=2
	testb	$1, %r8b
	je	LBB0_71
LBB0_70:                                ##   in Loop: Header=BB0_61 Depth=2
	pmovzxdq	(%rsi,%rax,4), %xmm0            ## xmm0 = mem[0],zero,mem[1],zero
	pmovzxdq	8(%rsi,%rax,4), %xmm1           ## xmm1 = mem[0],zero,mem[1],zero
	pmovzxdq	16(%rsi,%rax,4), %xmm6          ## xmm6 = mem[0],zero,mem[1],zero
	pmovzxdq	24(%rsi,%rax,4), %xmm7          ## xmm7 = mem[0],zero,mem[1],zero
	pcmpeqq	%xmm4, %xmm1
	pcmpeqq	%xmm4, %xmm0
	packssdw	%xmm1, %xmm0
	psubd	%xmm0, %xmm3
	pcmpeqq	%xmm4, %xmm7
	pcmpeqq	%xmm4, %xmm6
	packssdw	%xmm7, %xmm6
	psubd	%xmm6, %xmm5
LBB0_71:                                ##   in Loop: Header=BB0_61 Depth=2
	paddd	%xmm5, %xmm3
	pshufd	$238, %xmm3, %xmm0              ## xmm0 = xmm3[2,3,2,3]
	paddd	%xmm3, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpq	%r9, %rbx
	je	LBB0_73
	.p2align	4, 0x90
LBB0_72:                                ##   Parent Loop BB0_59 Depth=1
                                        ##     Parent Loop BB0_61 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rsi,%rbx,4), %eax
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	sete	%dil
	addl	%edi, %edx
	incq	%rbx
	cmpq	%rbx, %r9
	jne	LBB0_72
LBB0_73:                                ##   in Loop: Header=BB0_61 Depth=2
	incq	%rcx
	cmpq	%r13, %rcx
	jae	LBB0_75
## %bb.74:                              ##   in Loop: Header=BB0_61 Depth=2
	testl	%edx, %edx
	je	LBB0_61
	jmp	LBB0_75
LBB0_66:                                ##   in Loop: Header=BB0_61 Depth=2
	pxor	%xmm3, %xmm3
	xorl	%eax, %eax
	pxor	%xmm5, %xmm5
	testb	$1, %r8b
	jne	LBB0_70
	jmp	LBB0_71
	.p2align	4, 0x90
LBB0_75:                                ##   in Loop: Header=BB0_59 Depth=1
	incq	%r11
	cmpq	%r10, %r11
	jae	LBB0_77
## %bb.76:                              ##   in Loop: Header=BB0_59 Depth=1
	testl	%edx, %edx
	je	LBB0_59
	jmp	LBB0_77
LBB0_79:
	divsd	%xmm9, %xmm2
	mulsd	%xmm8, %xmm2
	movsd	(%rdi), %xmm1                   ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm2
	addsd	LCPI0_3(%rip), %xmm2
	cvttpd2dq	%xmm2, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %ecx
	movl	%ecx, 40(%rdi)
	cmpl	%ecx, %eax
	jge	LBB0_82
## %bb.80:
	divsd	%xmm1, %xmm8
	mulsd	%xmm1, %xmm8
	cvttsd2si	%xmm8, %ecx
	jmp	LBB0_81
LBB0_57:
	xorl	%edx, %edx
LBB0_77:
	divsd	%xmm9, %xmm2
	mulsd	%xmm8, %xmm2
	xorps	%xmm0, %xmm0
	cvtsi2sd	%edx, %xmm0
	mulsd	%xmm2, %xmm0
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movsd	(%rdi), %xmm1                   ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	addsd	LCPI0_3(%rip), %xmm0
	cvttpd2dq	%xmm0, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %ecx
	movl	%ecx, 40(%rdi)
	movslq	%ecx, %rsi
	movslq	%edx, %rax
	imulq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	cmpq	%rsi, %rax
	jge	LBB0_82
## %bb.78:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	divsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %ecx
LBB0_81:
	movl	%ecx, 40(%rdi)
LBB0_82:
	testl	%ecx, %ecx
	jne	LBB0_84
## %bb.83:
	cvttsd2si	%xmm1, %eax
	movl	%eax, 40(%rdi)
LBB0_84:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKETBLOBS,4,2                ## @PACKETBLOBS
	.no_dead_strip	_vorbis_encode_residue_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_residue_setup
_vorbis_encode_residue_setup:           ; @vorbis_encode_residue_setup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	mov	w0, #48
	bl	__ogg_malloc
	mov	x19, x0
	ldr	x8, [x22, #80]
	sxtw	x25, w20
	str	x0, [x8, w20, sxtw #3]
	ldr	w1, [x23, #48]
	mov	w2, #48
	bl	_memcpy
	ldr	w8, [x22]
	cmp	w8, w20
	b.gt	LBB0_2
; %bb.1:
	add	w8, w20, #1
	str	w8, [x22]
LBB0_2:
	ldr	d0, [x23]
	str	d0, [x19]
	ldr	w8, [x23, #8]
	ldr	x9, [x22, #8]
	str	w8, [x9, x25, lsl #2]
	ldr	x9, [x22, #56]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	cbz	x9, LBB0_25
; %bb.3:
	b.lt	LBB0_14
; %bb.4:
	mov	x8, #0
	ldr	x9, [x23, #32]
	ldr	x9, [x9]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
	ldrsw	x10, [x19, #8]
	cmp	x8, x10
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x8, lsl #3]
	ldr	x12, [x11]
	lsl	x10, x8, #2
	cbz	x12, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x19, #16]
	ldr	w13, [x12, x10]
	orr	w13, w13, #0x1
	str	w13, [x12, x10]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x11, #8]
	cbz	x12, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x19, #16]
	ldr	w13, [x12, x10]
	orr	w13, w13, #0x2
	str	w13, [x12, x10]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x11, #16]
	cbz	x12, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x19, #16]
	ldr	w13, [x12, x10]
	orr	w13, w13, #0x4
	str	w13, [x12, x10]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x11, #24]
	cbz	x11, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x19, #16]
	ldr	w12, [x11, x10]
	orr	w12, w12, #0x8
	str	w12, [x11, x10]
	b	LBB0_5
LBB0_14:
	ldr	x1, [x23, #40]
	mov	x0, x22
	bl	_book_dup_or_new
	str	x0, [x19, #24]
	ldr	x8, [x23, #40]
	ldr	x9, [x22, #72]
	str	x8, [x9, x0, lsl #3]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_47
; %bb.15:
	mov	x26, #0
	mov	w27, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19, #8]
	cmp	x26, x8
	b.ge	LBB0_47
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x1, [x8]
	lsl	x28, x26, #3
	cbz	x1, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_book_dup_or_new
	ldr	x8, [x19, #32]
	str	w0, [x8, w27, sxtw #2]
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
	ldr	x8, [x8]
	ldr	x9, [x22, #72]
	sbfiz	x10, x0, #3, #32
	str	x8, [x9, x10]
	add	w27, w27, #1
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_book_dup_or_new
	ldr	x8, [x19, #32]
	str	w0, [x8, w27, sxtw #2]
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
	ldr	x8, [x8, #8]
	ldr	x9, [x22, #72]
	sbfiz	x10, x0, #3, #32
	str	x8, [x9, x10]
	add	w27, w27, #1
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x1, [x8, #16]
	cbz	x1, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_book_dup_or_new
	ldr	x8, [x19, #32]
	str	w0, [x8, w27, sxtw #2]
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
	ldr	x8, [x8, #16]
	ldr	x9, [x22, #72]
	sbfiz	x10, x0, #3, #32
	str	x8, [x9, x10]
	add	w27, w27, #1
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x1, [x8, #24]
	cbz	x1, LBB0_16
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_book_dup_or_new
	ldr	x8, [x19, #32]
	str	w0, [x8, w27, sxtw #2]
	add	w27, w27, #1
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x8, [x8, #24]
	ldr	x9, [x22, #72]
	sbfiz	x10, x0, #3, #32
	str	x8, [x9, x10]
	b	LBB0_16
LBB0_25:
	b.lt	LBB0_36
; %bb.26:
	mov	x8, #0
	ldr	x9, [x23, #16]
	ldr	x9, [x9]
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x8, x8, #1
	ldrsw	x10, [x19, #8]
	cmp	x8, x10
	b.ge	LBB0_36
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x8, lsl #3]
	ldr	x12, [x11]
	lsl	x10, x8, #2
	cbz	x12, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x12, [x19, #16]
	ldr	w13, [x12, x10]
	orr	w13, w13, #0x1
	str	w13, [x12, x10]
LBB0_30:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	x12, [x11, #8]
	cbz	x12, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x12, [x19, #16]
	ldr	w13, [x12, x10]
	orr	w13, w13, #0x2
	str	w13, [x12, x10]
LBB0_32:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	x12, [x11, #16]
	cbz	x12, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x12, [x19, #16]
	ldr	w13, [x12, x10]
	orr	w13, w13, #0x4
	str	w13, [x12, x10]
LBB0_34:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	x11, [x11, #24]
	cbz	x11, LBB0_27
; %bb.35:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x11, [x19, #16]
	ldr	w12, [x11, x10]
	orr	w12, w12, #0x8
	str	w12, [x11, x10]
	b	LBB0_27
LBB0_36:
	ldr	x1, [x23, #24]
	mov	x0, x22
	bl	_book_dup_or_new
	str	x0, [x19, #24]
	ldr	x8, [x23, #24]
	ldr	x9, [x22, #72]
	str	x8, [x9, x0, lsl #3]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_47
; %bb.37:
	mov	x26, #0
	mov	w27, #0
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19, #8]
	cmp	x26, x8
	b.ge	LBB0_47
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x1, [x8]
	lsl	x28, x26, #3
	cbz	x1, LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x0, x22
	bl	_book_dup_or_new
	ldr	x8, [x19, #32]
	str	w0, [x8, w27, sxtw #2]
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
	ldr	x8, [x8]
	ldr	x9, [x22, #72]
	sbfiz	x10, x0, #3, #32
	str	x8, [x9, x10]
	add	w27, w27, #1
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
LBB0_41:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x0, x22
	bl	_book_dup_or_new
	ldr	x8, [x19, #32]
	str	w0, [x8, w27, sxtw #2]
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
	ldr	x8, [x8, #8]
	ldr	x9, [x22, #72]
	sbfiz	x10, x0, #3, #32
	str	x8, [x9, x10]
	add	w27, w27, #1
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
LBB0_43:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	x1, [x8, #16]
	cbz	x1, LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x0, x22
	bl	_book_dup_or_new
	ldr	x8, [x19, #32]
	str	w0, [x8, w27, sxtw #2]
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
	ldr	x8, [x8, #16]
	ldr	x9, [x22, #72]
	sbfiz	x10, x0, #3, #32
	str	x8, [x9, x10]
	add	w27, w27, #1
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, x28]
LBB0_45:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	x1, [x8, #24]
	cbz	x1, LBB0_38
; %bb.46:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x0, x22
	bl	_book_dup_or_new
	ldr	x8, [x19, #32]
	str	w0, [x8, w27, sxtw #2]
	add	w27, w27, #1
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x8, [x8, #24]
	ldr	x9, [x22, #72]
	sbfiz	x10, x0, #3, #32
	str	x8, [x9, x10]
	b	LBB0_38
LBB0_47:
	ldr	s0, [x22, #48]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	ldr	x8, [x22, #64]
	ldr	x9, [x8, w24, sxtw #3]
	ldr	s1, [x21]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmov	d2, #0.50000000
	fmul	d1, d1, d2
	ldr	x8, [x22, #16]
	ldr	w8, [x8, w24, sxtw #2]
	asr	w10, w8, #1
	fcmp	d0, d1
	fcsel	d2, d1, d0, gt
	fdiv	d3, d2, d1
	scvtf	d0, w10
	fmul	d3, d3, d0
	str	d3, [x9]
	ldr	w9, [x23, #12]
	cmp	w9, #2
	b.eq	LBB0_51
; %bb.48:
	cmp	w9, #1
	b.ne	LBB0_52
; %bb.49:
	ldr	x9, [x22, #56]
	ldr	x10, [x22, #40]
Lloh0:
	adrp	x11, _PACKETBLOBS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PACKETBLOBS@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	cmp	w11, #0
	cinc	w12, w11, lt
	asr	w12, w12, #1
	sub	w11, w11, #1
	cmp	x9, #0
	csel	w9, w12, w11, eq
	ldr	s2, [x10, w9, sxtw #2]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	mov	x9, #70368744177664
	movk	x9, #16527, lsl #48
	fmov	d3, x9
	fmul	d2, d2, d3
	fcmp	d2, d1
	b.le	LBB0_52
; %bb.50:
	fmov	d2, d1
	b	LBB0_52
LBB0_51:
	mov	x9, #70368744177664
	movk	x9, #16495, lsl #48
	fmov	d2, x9
LBB0_52:
	sbfx	x8, x8, #1, #31
	ldr	x9, [x22, #8]
	ldr	w9, [x9, x25, lsl #2]
	cmp	w9, #2
	b.ne	LBB0_72
; %bb.53:
	ldr	w9, [x22, #24]
	cmp	w9, #1
	b.lt	LBB0_73
; %bb.54:
	mov	x10, #0
	ldr	x11, [x22, #32]
LBB0_55:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_57 Depth 2
                                        ;       Child Loop BB0_63 Depth 3
                                        ;       Child Loop BB0_66 Depth 3
	ldr	x12, [x11, x10, lsl #3]
	ldr	w13, [x12]
	cmp	w13, #1
	b.lt	LBB0_69
; %bb.56:                               ;   in Loop: Header=BB0_55 Depth=1
	mov	x14, #0
	ldr	x15, [x12, #8]
LBB0_57:                                ;   Parent Loop BB0_55 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_63 Depth 3
                                        ;       Child Loop BB0_66 Depth 3
	ldr	w16, [x15, x14, lsl #2]
	cmp	w16, w20
	b.ne	LBB0_61
; %bb.58:                               ;   in Loop: Header=BB0_57 Depth=2
	ldr	w16, [x21, #4]
	cmp	w16, #1
	b.lt	LBB0_61
; %bb.59:                               ;   in Loop: Header=BB0_57 Depth=2
	ldr	x0, [x12, #16]
	cmp	w16, #16
	b.hs	LBB0_62
; %bb.60:                               ;   in Loop: Header=BB0_57 Depth=2
	mov	x1, #0
	mov	w17, #0
	b	LBB0_65
LBB0_61:                                ;   in Loop: Header=BB0_57 Depth=2
	mov	w17, #0
	b	LBB0_67
LBB0_62:                                ;   in Loop: Header=BB0_57 Depth=2
	and	x1, x16, #0xfffffff0
	dup.2d	v3, x14
	add	x17, x0, #32
	movi.2d	v4, #0000000000000000
	mov	x2, x1
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
LBB0_63:                                ;   Parent Loop BB0_55 Depth=1
                                        ;     Parent Loop BB0_57 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q16, q17, [x17, #-32]
	ldp	q18, q19, [x17], #64
	ushll.2d	v20, v16, #0
	ushll2.2d	v16, v16, #0
	ushll.2d	v21, v17, #0
	ushll2.2d	v17, v17, #0
	ushll.2d	v22, v18, #0
	ushll2.2d	v18, v18, #0
	ushll.2d	v23, v19, #0
	ushll2.2d	v19, v19, #0
	cmeq.2d	v16, v3, v16
	cmeq.2d	v20, v3, v20
	uzp1.4s	v16, v20, v16
	cmeq.2d	v17, v3, v17
	cmeq.2d	v20, v3, v21
	uzp1.4s	v17, v20, v17
	cmeq.2d	v18, v3, v18
	cmeq.2d	v20, v3, v22
	uzp1.4s	v18, v20, v18
	cmeq.2d	v19, v3, v19
	cmeq.2d	v20, v3, v23
	uzp1.4s	v19, v20, v19
	sub.4s	v4, v4, v16
	sub.4s	v5, v5, v17
	sub.4s	v6, v6, v18
	sub.4s	v7, v7, v19
	subs	x2, x2, #16
	b.ne	LBB0_63
; %bb.64:                               ;   in Loop: Header=BB0_57 Depth=2
	add.4s	v3, v5, v4
	add.4s	v3, v6, v3
	add.4s	v3, v7, v3
	addv.4s	s3, v3
	fmov	w17, s3
	cmp	x1, x16
	b.eq	LBB0_67
LBB0_65:                                ;   in Loop: Header=BB0_57 Depth=2
	add	x0, x0, x1, lsl #2
	sub	x16, x16, x1
LBB0_66:                                ;   Parent Loop BB0_55 Depth=1
                                        ;     Parent Loop BB0_57 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [x0], #4
	cmp	x14, x1
	cinc	w17, w17, eq
	subs	x16, x16, #1
	b.ne	LBB0_66
LBB0_67:                                ;   in Loop: Header=BB0_57 Depth=2
	add	x14, x14, #1
	cmp	x14, x13
	b.hs	LBB0_70
; %bb.68:                               ;   in Loop: Header=BB0_57 Depth=2
	cbz	w17, LBB0_57
	b	LBB0_70
LBB0_69:                                ;   in Loop: Header=BB0_55 Depth=1
	mov	w17, #0
LBB0_70:                                ;   in Loop: Header=BB0_55 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.hs	LBB0_74
; %bb.71:                               ;   in Loop: Header=BB0_55 Depth=1
	cbz	w17, LBB0_55
	b	LBB0_74
LBB0_72:
	fdiv	d1, d2, d1
	fmul	d2, d1, d0
	ldr	d1, [x19]
	fdiv	d2, d2, d1
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	movk	x9, #16364, lsl #48
	fmov	d3, x9
	fadd	d2, d2, d3
	fcvtzs	w9, d2
	scvtf	d2, w9
	fmul	d2, d1, d2
	fcvtzs	w9, d2
	str	w9, [x19, #40]
	cmp	w8, w9
	b.lt	LBB0_76
	b	LBB0_77
LBB0_73:
	mov	w17, #0
LBB0_74:
	fdiv	d1, d2, d1
	scvtf	d2, w17
	fmul	d0, d1, d0
	fmul	d0, d0, d2
	ldr	d1, [x19]
	fdiv	d0, d0, d1
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	movk	x9, #16364, lsl #48
	fmov	d2, x9
	fadd	d0, d0, d2
	fcvtzs	w9, d0
	scvtf	d0, w9
	fmul	d0, d1, d0
	fcvtzs	w9, d0
	str	w9, [x19, #40]
	sxtw	x10, w17
	mul	x8, x10, x8
	cmp	x8, w9, sxtw
	b.ge	LBB0_77
; %bb.75:
	scvtf	d0, x8
LBB0_76:
	fdiv	d0, d0, d1
	fmul	d0, d1, d0
	fcvtzs	w9, d0
	str	w9, [x19, #40]
LBB0_77:
	cbnz	w9, LBB0_79
; %bb.78:
	fcvtzs	w8, d1
	str	w8, [x19, #40]
LBB0_79:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKETBLOBS,4,2                ; @PACKETBLOBS
	.no_dead_strip	_vorbis_encode_residue_setup
.subsections_via_symbols
