	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vorbis_book_init_decode
LCPI0_0:
	.quad	2147483648                      ## 0x80000000
	.quad	2147483648                      ## 0x80000000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vorbis_book_init_decode
	.p2align	4, 0x90
_vorbis_book_init_decode:               ## @vorbis_book_init_decode
	.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	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_3
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	cmpl	$4, %esi
	jae	LBB0_4
## %bb.2:
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_10
LBB0_3:
	movl	%esi, (%rbx)
	movl	$0, 4(%rbx)
	movl	16(%r15), %eax
	movl	%eax, 60(%rbx)
	jmp	LBB0_67
LBB0_4:
	movl	%esi, %ecx
	andl	$-4, %ecx
	leaq	-4(%rcx), %rdx
	movq	%rdx, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rdx, %rdx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_24
## %bb.5:
	movq	%rbx, %rdx
	andq	$-2, %rdx
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [2147483648,2147483648]
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,8), %xmm5
	movdqu	16(%rax,%rdi,8), %xmm6
	movdqu	32(%rax,%rdi,8), %xmm4
	movdqu	48(%rax,%rdi,8), %xmm3
	pxor	%xmm8, %xmm5
	movdqa	%xmm5, %xmm7
	pcmpgtd	%xmm8, %xmm7
	pshufd	$232, %xmm7, %xmm2              ## xmm2 = xmm7[0,2,2,3]
	pcmpeqd	%xmm8, %xmm5
	pshufd	$253, %xmm5, %xmm5              ## xmm5 = xmm5[1,3,3,3]
	pand	%xmm2, %xmm5
	pshufd	$253, %xmm7, %xmm2              ## xmm2 = xmm7[1,3,3,3]
	por	%xmm5, %xmm2
	psubd	%xmm2, %xmm0
	pxor	%xmm8, %xmm6
	movdqa	%xmm6, %xmm2
	pcmpgtd	%xmm8, %xmm2
	pshufd	$232, %xmm2, %xmm5              ## xmm5 = xmm2[0,2,2,3]
	pcmpeqd	%xmm8, %xmm6
	pshufd	$253, %xmm6, %xmm6              ## xmm6 = xmm6[1,3,3,3]
	pand	%xmm5, %xmm6
	pshufd	$253, %xmm2, %xmm2              ## xmm2 = xmm2[1,3,3,3]
	por	%xmm6, %xmm2
	psubd	%xmm2, %xmm1
	pxor	%xmm8, %xmm4
	movdqa	%xmm4, %xmm2
	pcmpgtd	%xmm8, %xmm2
	pshufd	$232, %xmm2, %xmm5              ## xmm5 = xmm2[0,2,2,3]
	pcmpeqd	%xmm8, %xmm4
	pshufd	$253, %xmm4, %xmm4              ## xmm4 = xmm4[1,3,3,3]
	pand	%xmm5, %xmm4
	pshufd	$253, %xmm2, %xmm2              ## xmm2 = xmm2[1,3,3,3]
	por	%xmm4, %xmm2
	psubd	%xmm2, %xmm0
	pxor	%xmm8, %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm8, %xmm2
	pshufd	$232, %xmm2, %xmm4              ## xmm4 = xmm2[0,2,2,3]
	pcmpeqd	%xmm8, %xmm3
	pshufd	$253, %xmm3, %xmm3              ## xmm3 = xmm3[1,3,3,3]
	pand	%xmm4, %xmm3
	pshufd	$253, %xmm2, %xmm2              ## xmm2 = xmm2[1,3,3,3]
	por	%xmm3, %xmm2
	psubd	%xmm2, %xmm1
	addq	$8, %rdi
	addq	$-2, %rdx
	jne	LBB0_6
## %bb.7:
	testb	$1, %bl
	je	LBB0_9
LBB0_8:
	movdqu	(%rax,%rdi,8), %xmm2
	movdqu	16(%rax,%rdi,8), %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [2147483648,2147483648]
	pxor	%xmm4, %xmm2
	movdqa	%xmm2, %xmm5
	pcmpgtd	%xmm4, %xmm5
	pshufd	$232, %xmm5, %xmm6              ## xmm6 = xmm5[0,2,2,3]
	pcmpeqd	%xmm4, %xmm2
	pshufd	$253, %xmm2, %xmm2              ## xmm2 = xmm2[1,3,3,3]
	pand	%xmm6, %xmm2
	pshufd	$253, %xmm5, %xmm5              ## xmm5 = xmm5[1,3,3,3]
	por	%xmm2, %xmm5
	psubd	%xmm5, %xmm0
	pxor	%xmm4, %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm4, %xmm2
	pshufd	$232, %xmm2, %xmm5              ## xmm5 = xmm2[0,2,2,3]
	pcmpeqd	%xmm4, %xmm3
	pshufd	$253, %xmm3, %xmm3              ## xmm3 = xmm3[1,3,3,3]
	pand	%xmm5, %xmm3
	pshufd	$253, %xmm2, %xmm2              ## xmm2 = xmm2[1,3,3,3]
	por	%xmm3, %xmm2
	psubd	%xmm2, %xmm1
LBB0_9:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r12d
	cmpq	%rsi, %rcx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	cmpq	$0, (%rax,%rcx,8)
	setg	%dl
	addl	%edx, %r12d
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_10
LBB0_11:
	movl	%esi, (%r8)
	movl	%r12d, 4(%r8)
	movl	16(%r15), %eax
	movl	%eax, 60(%r8)
	testl	%r12d, %r12d
	je	LBB0_66
## %bb.12:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r12d, %edx
	callq	__make_words
	movq	%rax, %r13
	leal	(,%r12,8), %edi
	callq	_alloca
	testq	%r13, %r13
	je	LBB0_23
## %bb.13:
	movq	%rax, %rdx
	movl	%r12d, %eax
	shlq	$2, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r13), %r14
	movl	(%r13,%rbx), %edi
	movq	%rdx, %r15
	callq	_bitreverse
	movq	%r15, %rdx
	movl	%eax, (%r13,%rbx)
	movq	%r14, (%r15,%rbx,2)
	addq	$4, %rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_14
## %bb.15:
	movq	_sort32a@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdx, %rdi
	movl	%r12d, %esi
	movl	$8, %edx
	callq	_qsort
	leal	(,%r12,4), %ebx
	movl	%ebx, %edi
	callq	_alloca
	movq	%rax, %r14
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	__ogg_malloc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	cmpl	$2, %r12d
	movl	$1, %ecx
	cmovael	%r12d, %ecx
	movq	%rcx, %r8
	decq	%r8
	je	LBB0_50
## %bb.16:
	movl	%ecx, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rsi,8), %rbx
	subq	%r13, %rbx
	shrq	$2, %rbx
	movslq	%ebx, %rbx
	movl	%esi, (%r14,%rbx,4)
	movq	8(%r15,%rsi,8), %rbx
	subq	%r13, %rbx
	shrq	$2, %rbx
	movslq	%ebx, %rbx
	leal	1(%rsi), %edx
	movl	%edx, (%r14,%rbx,4)
	addq	$2, %rsi
	cmpq	%rdi, %rsi
	jne	LBB0_17
## %bb.18:
	testb	$1, %cl
	je	LBB0_20
LBB0_19:
	movq	(%r15,%rsi,8), %rdx
	subq	%r13, %rdx
	shrq	$2, %rdx
	movslq	%edx, %rdx
	movl	%esi, (%r14,%rdx,4)
LBB0_20:
	movl	%ecx, %r9d
	andl	$3, %r9d
	cmpq	$3, %r8
	jae	LBB0_25
## %bb.21:
	xorl	%edx, %edx
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_27
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vorbis_book_clear
	movl	$-1, %r14d
	jmp	LBB0_67
LBB0_24:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	testb	$1, %bl
	jne	LBB0_8
	jmp	LBB0_9
LBB0_25:
	andl	$-4, %ecx
	xorl	%edx, %edx
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rdx,4), %edi
	movslq	(%r14,%rdx,4), %rbx
	movl	%edi, (%rax,%rbx,4)
	movl	4(%r13,%rdx,4), %edi
	movslq	4(%r14,%rdx,4), %rbx
	movl	%edi, (%rax,%rbx,4)
	movl	8(%r13,%rdx,4), %edi
	movslq	8(%r14,%rdx,4), %rbx
	movl	%edi, (%rax,%rbx,4)
	movl	12(%r13,%rdx,4), %edi
	movslq	12(%r14,%rdx,4), %rbx
	movl	%edi, (%rax,%rbx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_26
LBB0_27:
	testq	%r9, %r9
	je	LBB0_30
## %bb.28:
	leaq	(%r14,%rdx,4), %rcx
	leaq	(,%rdx,4), %rdx
	addq	%r13, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %ebx
	movslq	(%rcx,%rdi,4), %rsi
	movl	%ebx, (%rax,%rsi,4)
	incq	%rdi
	cmpq	%rdi, %r9
	jne	LBB0_29
LBB0_30:
	movq	%r13, %rdi
	callq	__ogg_free
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	52(%rbx), %rcx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	__book_unquantize
	movl	%eax, 56(%rbx)
	movl	%r15d, %edi
	callq	__ogg_malloc
	movq	%rax, 16(%rbx)
	movl	(%r13), %ecx
	xorl	%r15d, %r15d
	movl	$0, %edi
	testl	%ecx, %ecx
	jle	LBB0_35
## %bb.31:
	movq	8(%r13), %rdx
	xorl	%esi, %esi
	xorl	%edi, %edi
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_33 Depth=1
	incq	%rsi
	movslq	%ecx, %rbx
	cmpq	%rbx, %rsi
	jge	LBB0_35
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rsi,8)
	jle	LBB0_32
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movslq	%edi, %rcx
	incl	%edi
	movslq	(%r14,%rcx,4), %rcx
	movl	%esi, (%rax,%rcx,4)
	movl	(%r13), %ecx
	jmp	LBB0_32
LBB0_35:
	callq	__ogg_malloc
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, 24(%rdi)
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_40
## %bb.36:
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_38 Depth=1
	incq	%rax
	movslq	%ecx, %rdx
	cmpq	%rdx, %rax
	jge	LBB0_40
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdx
	movq	(%rdx,%rax,8), %rdx
	testq	%rdx, %rdx
	jle	LBB0_37
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	24(%rdi), %rcx
	movslq	%r15d, %rsi
	incl	%r15d
	movslq	(%r14,%rsi,4), %rsi
	movb	%dl, (%rcx,%rsi)
	movl	(%r13), %ecx
	jmp	LBB0_37
LBB0_40:
	movl	4(%rdi), %edi
	callq	__ilog
                                        ## kill: def $eax killed $eax def $rax
	leal	-4(%rax), %ecx
	cmpl	$8, %ecx
	movl	$8, %edx
	cmovbl	%ecx, %edx
	cmpl	$9, %eax
	movl	$5, %ecx
	cmovgel	%edx, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, 32(%rax)
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movl	$4, %esi
	callq	__ogg_calloc
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	movq	%rax, 40(%r11)
	movb	$0, 48(%r11)
	testl	%r15d, %r15d
	jle	LBB0_51
## %bb.41:
	movl	%r15d, %r14d
	movl	%r15d, %r15d
	movq	24(%r11), %r8
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_42:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_47 Depth 2
	movb	(%r8,%r12), %cl
	cmpb	%cl, %al
	jge	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	movb	%cl, 48(%r11)
	movb	(%r8,%r12), %cl
LBB0_44:                                ##   in Loop: Header=BB0_42 Depth=1
	movsbl	%cl, %eax
	movl	32(%r11), %edx
	cmpl	%eax, %edx
	jl	LBB0_48
## %bb.45:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	8(%r11), %rax
	movl	(%rax,%r12,4), %edi
	callq	_bitreverse
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	movq	24(%r11), %r8
	movl	32(%r11), %edx
	movsbl	(%r8,%r12), %esi
	movl	%edx, %ecx
	subl	%esi, %ecx
	cmpl	$31, %ecx
	je	LBB0_48
## %bb.46:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	40(%r11), %r9
	leal	1(%r12), %r10d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_47:                                ##   Parent Loop BB0_42 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edx
	movl	%esi, %ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movslq	%edx, %rcx
	movl	%r10d, (%r9,%rcx,4)
	incl	%ebx
	movl	32(%r11), %edx
	movsbl	(%r8,%r12), %esi
	movl	%edx, %ecx
	subl	%esi, %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	cmpl	%edi, %ebx
	jl	LBB0_47
LBB0_48:                                ##   in Loop: Header=BB0_42 Depth=1
	incq	%r12
	cmpq	%r15, %r12
	je	LBB0_52
## %bb.49:                              ##   in Loop: Header=BB0_42 Depth=1
	movb	48(%r11), %al
	jmp	LBB0_42
LBB0_50:
	xorl	%esi, %esi
	testb	$1, %cl
	jne	LBB0_19
	jmp	LBB0_20
LBB0_51:
	movl	%r15d, %r14d
	movl	32(%r11), %edx
LBB0_52:
	movb	$31, %cl
	subb	%dl, %cl
	movl	$4294967294, %eax               ## imm = 0xFFFFFFFE
	shlq	%cl, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_53:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_55 Depth 2
                                        ##     Child Loop BB0_60 Depth 2
	negb	%dl
	movl	%r14d, %ebx
	movl	%edx, %ecx
	shll	%cl, %ebx
	movq	40(%r11), %r15
	movl	%ebx, %edi
	callq	_bitreverse
	cmpl	$0, (%r15,%rax,4)
	jne	LBB0_64
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	leaq	1(%r12), %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r15, %rax
	cmovleq	%r15, %rax
	movl	$1, %ecx
	subq	%rax, %rcx
	decq	%rax
	decq	%r12
	movq	%r12, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_55:                                ##   Parent Loop BB0_53 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%rcx,%rdx), %rsi
	cmpq	$-1, %rsi
	je	LBB0_58
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=2
	movq	8(%rdi), %rsi
	leaq	1(%rdx), %r12
	cmpl	%ebx, 8(%rsi,%rdx,4)
	movq	%r12, %rdx
	jle	LBB0_55
## %bb.57:                              ##   in Loop: Header=BB0_53 Depth=1
	cmpq	%r15, %r13
	jl	LBB0_59
	jmp	LBB0_63
LBB0_58:                                ##   in Loop: Header=BB0_53 Depth=1
	movq	%rax, %r12
	cmpq	%r15, %r13
	jge	LBB0_63
LBB0_59:                                ##   in Loop: Header=BB0_53 Depth=1
	movq	8(%rdi), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_60:                                ##   Parent Loop BB0_53 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%r13,4), %ecx
	andl	%edx, %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_63
## %bb.61:                              ##   in Loop: Header=BB0_60 Depth=2
	incq	%r13
	cmpq	%r13, %r15
	jne	LBB0_60
## %bb.62:                              ##   in Loop: Header=BB0_53 Depth=1
	movq	%r15, %r13
LBB0_63:                                ##   in Loop: Header=BB0_53 Depth=1
	subq	%r13, %r15
	cmpq	$32767, %r12                    ## imm = 0x7FFF
	movl	$32767, %eax                    ## imm = 0x7FFF
	cmovbq	%r12, %rax
	cmpq	$32767, %r15                    ## imm = 0x7FFF
	movl	$32767, %ecx                    ## imm = 0x7FFF
	cmovaeq	%rcx, %r15
	shll	$15, %eax
	orl	%eax, %r15d
	orl	$-2147483648, %r15d             ## imm = 0x80000000
	movq	40(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_bitreverse
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rcx,%rax,4)
LBB0_64:                                ##   in Loop: Header=BB0_53 Depth=1
	incl	%r14d
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_66
## %bb.65:                              ##   in Loop: Header=BB0_53 Depth=1
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	movl	32(%r11), %edx
	jmp	LBB0_53
LBB0_66:
	xorl	%r14d, %r14d
LBB0_67:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sort32a,4,2                    ## @sort32a
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vorbis_book_init_decode        ; -- Begin function vorbis_book_init_decode
	.p2align	2
_vorbis_book_init_decode:               ; @vorbis_book_init_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w1, [x20]
	cmp	w1, #0
	b.le	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cmp	w1, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x9, #0
	mov	w22, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	stp	w1, wzr, [x19]
	ldr	w8, [x20, #16]
	str	w8, [x19, #60]
	b	LBB0_60
LBB0_4:
	and	x9, x1, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x10, x8, #32
	mov	x11, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	cmgt.2d	v4, v4, #0
	xtn.2s	v4, v4
	cmgt.2d	v5, v5, #0
	xtn.2s	v5, v5
	cmgt.2d	v6, v6, #0
	xtn.2s	v6, v6
	cmgt.2d	v7, v7, #0
	xtn.2s	v7, v7
	sub.2s	v0, v0, v4
	sub.2s	v1, v1, v5
	sub.2s	v2, v2, v6
	sub.2s	v3, v3, v7
	subs	x11, x11, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w22, s0
	cmp	x9, x1
	b.eq	LBB0_9
LBB0_7:
	add	x8, x8, x9, lsl #3
	sub	x9, x1, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8], #8
	cmp	x10, #0
	cinc	w22, w22, gt
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	stp	w1, w22, [x19]
	ldr	w8, [x20, #16]
	str	w8, [x19, #60]
	cbz	w22, LBB0_59
; %bb.10:
	ldr	x0, [x20, #8]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x22
	bl	__make_words
	mov	x23, x0
	lsl	w0, w22, #3
	bl	_alloca
	cbz	x23, LBB0_15
; %bb.11:
	mov	x24, x0
	mov	x21, #0
	mov	w8, w22
	lsl	x25, x8, #3
	mov	x27, x23
	mov	x26, x23
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	bl	_bitreverse
	str	w0, [x26], #4
	str	x27, [x24, x21]
	add	x21, x21, #8
	mov	x27, x26
	cmp	x25, x21
	b.ne	LBB0_12
; %bb.13:
Lloh0:
	adrp	x8, _sort32a@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sort32a@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x22
	mov	w2, #8
	bl	_qsort
	lsl	w25, w22, #2
	mov	x0, x25
	bl	_alloca
	mov	x21, x0
	mov	x0, x25
	bl	__ogg_malloc
	str	x0, [x19, #8]
	cmp	w22, #1
	csinc	w8, w22, wzr, hi
	cmp	w8, #4
	b.hs	LBB0_16
; %bb.14:
	mov	x9, #0
	b	LBB0_19
LBB0_15:
	mov	x0, x19
	bl	_vorbis_book_clear
	mov	w0, #-1
	b	LBB0_60
LBB0_16:
	mov	x10, #0
	and	x9, x8, #0xfffffffc
	add	x11, x24, #16
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	w12, w10, #1
	add	w13, w10, #2
	add	w14, w10, #3
	ldp	x15, x16, [x11, #-16]
	sub	x15, x15, x23
	sub	x16, x16, x23
	lsr	x15, x15, #2
	lsr	x16, x16, #2
	ldp	x17, x1, [x11], #32
	sub	x17, x17, x23
	str	w10, [x21, w15, sxtw #2]
	lsr	x15, x17, #2
	sub	x17, x1, x23
	str	w12, [x21, w16, sxtw #2]
	str	w13, [x21, w15, sxtw #2]
	lsr	x12, x17, #2
	str	w14, [x21, w12, sxtw #2]
	add	x10, x10, #4
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.18:
	cmp	x9, x8
	b.eq	LBB0_20
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x24, x9, lsl #3]
	sub	x10, x10, x23
	lsr	x10, x10, #2
	str	w9, [x21, w10, sxtw #2]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_19
LBB0_20:
	mov	x9, #0
	lsl	x8, x8, #2
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x23, x9]
	ldrsw	x11, [x21, x9]
	str	w10, [x0, x11, lsl #2]
	add	x9, x9, #4
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.22:
	mov	x0, x23
	bl	__ogg_free
	add	x3, x19, #52
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	__book_unquantize
	str	w0, [x19, #56]
	mov	x0, x25
	bl	__ogg_malloc
	str	x0, [x19, #16]
	ldr	w11, [x20]
	cmp	w11, #1
	b.lt	LBB0_27
; %bb.23:
	mov	x9, #0
	mov	w8, #0
	ldr	x10, [x20, #8]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x9, x9, #1
	cmp	x9, w11, sxtw
	b.ge	LBB0_28
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x9, lsl #3]
	cmp	x12, #1
	b.lt	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldrsw	x11, [x21, w8, sxtw #2]
	add	w8, w8, #1
	str	w9, [x0, x11, lsl #2]
	ldr	w11, [x20]
	b	LBB0_24
LBB0_27:
	mov	w8, #0
LBB0_28:
	mov	x0, x8
	bl	__ogg_malloc
	str	x0, [x19, #24]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.29:
	mov	x9, #0
	mov	w22, #0
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x9, x9, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_34
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #8]
	ldr	x10, [x10, x9, lsl #3]
	cmp	x10, #1
	b.lt	LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldrsw	x8, [x21, w22, sxtw #2]
	ldr	x11, [x19, #24]
	add	w12, w22, #1
	strb	w10, [x11, x8]
	ldr	w8, [x20]
	mov	x22, x12
	b	LBB0_30
LBB0_33:
	mov	w22, #0
LBB0_34:
	ldr	w0, [x19, #4]
	bl	__ilog
	sub	w8, w0, #4
	mov	w9, #8
	cmp	w8, #8
	csel	w8, w8, w9, lo
	mov	w9, #5
	cmp	w0, #9
	csel	w8, w9, w8, lt
	str	w8, [x19, #32]
	mov	w21, #1
	lsl	w20, w21, w8
	mov	x0, x20
	mov	w1, #4
	bl	__ogg_calloc
	str	x0, [x19, #40]
	strb	wzr, [x19, #48]
	cmp	w22, #0
	b.le	LBB0_44
; %bb.35:
	mov	w9, #0
	mov	x23, #0
	mov	w24, w22
	ldr	x8, [x19, #24]
LBB0_36:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_41 Depth 2
	ldrsb	w10, [x8, x23]
	cmp	w10, w9, sxtb
	b.le	LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	strb	w10, [x19, #48]
	ldrb	w10, [x8, x23]
LBB0_38:                                ;   in Loop: Header=BB0_36 Depth=1
	ldr	w9, [x19, #32]
	cmp	w9, w10, sxtb
	b.lt	LBB0_42
; %bb.39:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x23, lsl #2]
	bl	_bitreverse
	ldr	x8, [x19, #24]
	ldr	w9, [x19, #32]
	ldrsb	w11, [x8, x23]
	sub	w10, w9, w11
	cmp	w10, #31
	b.eq	LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_36 Depth=1
	mov	w10, #0
	ldr	x12, [x19, #40]
	add	w13, w23, #1
LBB0_41:                                ;   Parent Loop BB0_36 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	w9, w10, w11
	orr	w9, w9, w0
	str	w13, [x12, w9, sxtw #2]
	add	w10, w10, #1
	ldr	w9, [x19, #32]
	ldrsb	w11, [x8, x23]
	sub	w14, w9, w11
	lsl	w14, w21, w14
	cmp	w10, w14
	b.lt	LBB0_41
LBB0_42:                                ;   in Loop: Header=BB0_36 Depth=1
	add	x23, x23, #1
	cmp	x23, x24
	b.eq	LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_36 Depth=1
	ldrb	w9, [x19, #48]
	b	LBB0_36
LBB0_44:
	ldr	w9, [x19, #32]
LBB0_45:
	mov	w23, #0
	mov	x24, #0
	mov	x25, #0
	mov	w8, #31
	sub	w8, w8, w9
	mov	w10, #-2
	lsl	x26, x10, x8
	sxtw	x22, w22
	mov	w27, #32767
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
LBB0_46:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_48 Depth 2
                                        ;     Child Loop BB0_53 Depth 2
	neg	w8, w9
	lsl	w21, w23, w8
	ldr	x28, [x19, #40]
	mov	x0, x21
	bl	_bitreverse
	ldr	w8, [x28, x0, lsl #2]
	cbnz	w8, LBB0_57
; %bb.47:                               ;   in Loop: Header=BB0_46 Depth=1
	add	x8, x25, #1
	cmp	x8, x22
	csinc	x9, x22, x25, le
	sub	x25, x9, #1
LBB0_48:                                ;   Parent Loop BB0_46 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x9, x8
	b.eq	LBB0_51
; %bb.49:                               ;   in Loop: Header=BB0_48 Depth=2
	ldr	x10, [x19, #8]
	ldr	w10, [x10, x8, lsl #2]
	add	x8, x8, #1
	cmp	w10, w21
	b.le	LBB0_48
; %bb.50:                               ;   in Loop: Header=BB0_46 Depth=1
	sub	x25, x8, #2
LBB0_51:                                ;   in Loop: Header=BB0_46 Depth=1
	cmp	x24, x22
	b.ge	LBB0_56
; %bb.52:                               ;   in Loop: Header=BB0_46 Depth=1
	ldr	x8, [x19, #8]
LBB0_53:                                ;   Parent Loop BB0_46 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x8, x24, lsl #2]
	and	w9, w9, w26
	cmp	w21, w9
	b.lt	LBB0_56
; %bb.54:                               ;   in Loop: Header=BB0_53 Depth=2
	add	x24, x24, #1
	cmp	x22, x24
	b.ne	LBB0_53
; %bb.55:                               ;   in Loop: Header=BB0_46 Depth=1
	mov	x24, x22
LBB0_56:                                ;   in Loop: Header=BB0_46 Depth=1
	cmp	x25, x27
	csel	x8, x25, x27, lo
	sub	x9, x22, x24
	cmp	x9, x27
	csel	x9, x9, x27, lo
	orr	w8, w9, w8, lsl #15
	orr	w28, w8, #0x80000000
	ldr	x20, [x19, #40]
	mov	x0, x21
	bl	_bitreverse
	str	w28, [x20, x0, lsl #2]
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
LBB0_57:                                ;   in Loop: Header=BB0_46 Depth=1
	add	w23, w23, #1
	cmp	w23, w20
	b.eq	LBB0_59
; %bb.58:                               ;   in Loop: Header=BB0_46 Depth=1
	ldr	w9, [x19, #32]
	b	LBB0_46
LBB0_59:
	mov	w0, #0
LBB0_60:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sort32a,4,2                    ; @sort32a
.subsections_via_symbols
