	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vorbis_staticbook_unpack       ## -- Begin function vorbis_staticbook_unpack
	.p2align	4, 0x90
_vorbis_staticbook_unpack:              ## @vorbis_staticbook_unpack
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1, %edi
	movl	$48, %esi
	callq	__ogg_calloc
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_oggpack_read
	cmpl	$5653314, %eax                  ## imm = 0x564342
	jne	LBB0_53
## %bb.1:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_oggpack_read
	movl	%eax, (%r12)
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_oggpack_read
	movl	%eax, 4(%r12)
	cmpl	$-1, %eax
	je	LBB0_53
## %bb.2:
	movslq	(%r12), %rdi
	callq	__ilog
	movl	%eax, %ebx
	movslq	4(%r12), %rdi
	callq	__ilog
	addl	%ebx, %eax
	cmpl	$24, %eax
	jg	LBB0_53
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_oggpack_read
	cmpl	$1, %eax
	je	LBB0_18
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_53
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_oggpack_read
	movl	%eax, %r15d
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	leal	1(,%rax,4), %ebx
	imull	4(%r12), %ebx
	addl	$7, %ebx
	sarl	$3, %ebx
	movl	(%r14), %r13d
	movq	%r14, %rdi
	callq	_oggpack_bytes
	subl	%eax, %r13d
	cmpl	%r13d, %ebx
	jg	LBB0_53
## %bb.6:
	movl	4(%r12), %edi
	shll	$3, %edi
	callq	__ogg_malloc
	movq	%rax, 8(%r12)
	movl	4(%r12), %eax
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.7:
	testl	%eax, %eax
	jle	LBB0_39
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_39
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_oggpack_read
	testl	%eax, %eax
	je	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_oggpack_read
	cmpl	$-1, %eax
	je	LBB0_53
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	cltq
	incq	%rax
	jmp	LBB0_17
LBB0_18:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_oggpack_read
	movl	%eax, %r15d
	incl	%r15d
	je	LBB0_53
## %bb.19:
	movl	4(%r12), %edi
	shll	$3, %edi
	callq	__ogg_malloc
	movq	%rax, 8(%r12)
	movl	4(%r12), %edi
	testl	%edi, %edi
	jle	LBB0_39
## %bb.20:
	movslq	%r15d, %r15
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_37:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%rcx, %rbx
LBB0_38:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r15
	cmpq	%rdi, %rbx
	jge	LBB0_39
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
                                        ##     Child Loop BB0_36 Depth 2
	subq	%rbx, %rdi
	callq	__ilog
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_oggpack_read
	cmpl	$-1, %eax
	je	LBB0_53
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpq	$32, %r15
	jg	LBB0_53
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movslq	%eax, %r9
	movslq	4(%r12), %rdi
	movq	%rdi, %rcx
	subq	%rbx, %rcx
	cmpq	%r9, %rcx
	jl	LBB0_53
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	testl	%eax, %eax
	jle	LBB0_38
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	-1(%r9), %rdx
	movq	%r15, %rcx
	shrq	%rcx
                                        ## kill: def $cl killed $cl killed $rcx
	sarq	%cl, %rdx
	leal	1(%r15), %ecx
	shrl	%ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarq	%cl, %rdx
	testq	%rdx, %rdx
	jne	LBB0_53
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	8(%r12), %r11
	leaq	(%rbx,%r9), %rcx
	cmpl	$4, %eax
	jb	LBB0_36
## %bb.27:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%r9, %r8
	andq	$-4, %r8
	movq	%r15, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%r8), %rdx
	movq	%rdx, %rax
	shrq	$2, %rax
	incq	%rax
	movl	%eax, %r10d
	andl	$3, %r10d
	cmpq	$12, %rdx
	jae	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_21 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_31
LBB0_29:                                ##   in Loop: Header=BB0_21 Depth=1
	andq	$-4, %rax
	leaq	(%r11,%rbx,8), %rsi
	addq	$112, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -112(%rsi,%rdx,8)
	movdqu	%xmm0, -96(%rsi,%rdx,8)
	movdqu	%xmm0, -80(%rsi,%rdx,8)
	movdqu	%xmm0, -64(%rsi,%rdx,8)
	movdqu	%xmm0, -48(%rsi,%rdx,8)
	movdqu	%xmm0, -32(%rsi,%rdx,8)
	movdqu	%xmm0, -16(%rsi,%rdx,8)
	movdqu	%xmm0, (%rsi,%rdx,8)
	addq	$16, %rdx
	addq	$-4, %rax
	jne	LBB0_30
LBB0_31:                                ##   in Loop: Header=BB0_21 Depth=1
	testq	%r10, %r10
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_21 Depth=1
	addq	%rbx, %rdx
	leaq	(%r11,%rdx,8), %rax
	addq	$16, %rax
	shlq	$5, %r10
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -16(%rax,%rdx)
	movdqu	%xmm0, (%rax,%rdx)
	addq	$32, %rdx
	cmpq	%rdx, %r10
	jne	LBB0_33
LBB0_34:                                ##   in Loop: Header=BB0_21 Depth=1
	cmpq	%r9, %r8
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_21 Depth=1
	addq	%r8, %rbx
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, (%r11,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_36
	jmp	LBB0_37
LBB0_11:
	testl	%eax, %eax
	jle	LBB0_39
## %bb.12:
	xorl	%ebx, %ebx
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_oggpack_read
	cmpl	$-1, %eax
	je	LBB0_53
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cltq
	incq	%rax
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_39:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_oggpack_read
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 16(%r12)
	leal	-1(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_40
## %bb.41:
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_oggpack_read
	movl	%eax, 20(%r12)
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_oggpack_read
	movl	%eax, 24(%r12)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_oggpack_read
	incl	%eax
	movl	%eax, 28(%r12)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_oggpack_read
	movl	%eax, 32(%r12)
	cmpl	$-1, %eax
	je	LBB0_53
## %bb.42:
	movl	16(%r12), %eax
	cmpl	$2, %eax
	je	LBB0_46
## %bb.43:
	xorl	%r15d, %r15d
	cmpl	$1, %eax
	jne	LBB0_47
## %bb.44:
	cmpl	$0, (%r12)
	je	LBB0_47
## %bb.45:
	movq	%r12, %rdi
	callq	__book_maptype1_quantvals
	movl	%eax, %r15d
	jmp	LBB0_47
LBB0_40:
	testl	%eax, %eax
	jne	LBB0_53
	jmp	LBB0_54
LBB0_46:
	movl	(%r12), %r15d
	imull	4(%r12), %r15d
LBB0_47:
	movl	28(%r12), %ebx
	imull	%r15d, %ebx
	addl	$7, %ebx
	sarl	$3, %ebx
	movl	(%r14), %r13d
	movq	%r14, %rdi
	callq	_oggpack_bytes
	subl	%eax, %r13d
	cmpl	%r13d, %ebx
	jg	LBB0_53
## %bb.48:
	movslq	%r15d, %r13
	leal	(,%r15,8), %edi
	callq	__ogg_malloc
	movq	%rax, 40(%r12)
	testl	%r15d, %r15d
	jle	LBB0_51
## %bb.49:
	xorl	%ebx, %ebx
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movl	28(%r12), %esi
	movq	%r14, %rdi
	callq	_oggpack_read
	movslq	%eax, %rcx
	movq	40(%r12), %rax
	movq	%rcx, (%rax,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_50
LBB0_51:
	testl	%r15d, %r15d
	je	LBB0_54
## %bb.52:
	cmpq	$-1, -8(%rax,%r13,8)
	jne	LBB0_54
LBB0_53:
	movq	%r12, %rdi
	callq	_vorbis_staticbook_destroy
	xorl	%r12d, %r12d
LBB0_54:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vorbis_staticbook_unpack       ; -- Begin function vorbis_staticbook_unpack
	.p2align	2
_vorbis_staticbook_unpack:              ; @vorbis_staticbook_unpack
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	mov	w0, #1
	mov	w1, #48
	bl	__ogg_calloc
	mov	x19, x0
	mov	x0, x20
	mov	w1, #24
	bl	_oggpack_read
	sub	w8, w0, #1380, lsl #12          ; =5652480
	cmp	w8, #834
	b.ne	LBB0_45
; %bb.1:
	mov	x0, x20
	mov	w1, #16
	bl	_oggpack_read
	str	w0, [x19]
	mov	x0, x20
	mov	w1, #24
	bl	_oggpack_read
	str	w0, [x19, #4]
	cmn	w0, #1
	b.eq	LBB0_45
; %bb.2:
	ldrsw	x0, [x19]
	bl	__ilog
	mov	x21, x0
	ldrsw	x0, [x19, #4]
	bl	__ilog
	add	w8, w0, w21
	cmp	w8, #24
	b.gt	LBB0_45
; %bb.3:
	mov	x0, x20
	mov	w1, #1
	bl	_oggpack_read
	cmp	w0, #1
	b.eq	LBB0_14
; %bb.4:
	cbnz	w0, LBB0_45
; %bb.5:
	mov	x0, x20
	mov	w1, #1
	bl	_oggpack_read
	mov	x21, x0
	ldr	w8, [x19, #4]
	cmp	w0, #0
	mov	w9, #5
	csinc	w9, w9, wzr, eq
	orr	w10, wzr, #0x7
	madd	w22, w9, w8, w10
	ldr	w23, [x20]
	mov	x0, x20
	bl	_oggpack_bytes
	sub	w8, w23, w0
	cmp	w8, w22, asr #3
	b.lt	LBB0_45
; %bb.6:
	ldr	w8, [x19, #4]
	lsl	w0, w8, #3
	bl	__ogg_malloc
	str	x0, [x19, #8]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	cbz	w21, LBB0_31
; %bb.7:
	b.lt	LBB0_35
; %bb.8:
	mov	x21, #0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, #0
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x19, #8]
	str	x8, [x9, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.ge	LBB0_35
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_oggpack_read
	cbz	w0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	w1, #5
	bl	_oggpack_read
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_45
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	sxtw	x8, w0
	add	x8, x8, #1
	b	LBB0_10
LBB0_14:
	mov	x0, x20
	mov	w1, #5
	bl	_oggpack_read
	adds	w21, w0, #1
	b.hs	LBB0_45
; %bb.15:
	ldr	w8, [x19, #4]
	lsl	w0, w8, #3
	bl	__ogg_malloc
	str	x0, [x19, #8]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.16:
	mov	x22, #0
	sxtw	x21, w21
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x22, x9
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x21, x21, #1
	cmp	x22, x8
	b.ge	LBB0_35
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
                                        ;     Child Loop BB0_30 Depth 2
	sub	x0, x8, x22
	bl	__ilog
	mov	x1, x0
	mov	x0, x20
	bl	_oggpack_read
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_45
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	x21, #32
	b.gt	LBB0_45
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	sxtw	x10, w0
	ldrsw	x8, [x19, #4]
	sub	x9, x8, x22
	cmp	x9, x10
	b.lt	LBB0_45
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w10, #1
	b.lt	LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	sub	x9, x10, #1
	asr	x11, x21, #1
	asr	x9, x9, x11
	add	x11, x21, #1
	asr	x11, x11, #1
	asr	x9, x9, x11
	cbnz	x9, LBB0_45
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x11, [x19, #8]
	add	x9, x22, x10
	cmp	w10, #8
	b.hs	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x12, x22
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_19 Depth=1
	and	x13, x10, #0xfffffffffffffff8
	add	x12, x22, x13
	dup.2d	v0, x21
	add	x14, x11, x22, lsl #3
	add	x14, x14, #32
	mov	x15, x13
LBB0_27:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x14, #-32]
	stp	q0, q0, [x14], #64
	subs	x15, x15, #8
	b.ne	LBB0_27
; %bb.28:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	x13, x10
	b.eq	LBB0_17
LBB0_29:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x10, x11, x12, lsl #3
	sub	x11, x9, x12
LBB0_30:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x21, [x10], #8
	subs	x11, x11, #1
	b.ne	LBB0_30
	b	LBB0_17
LBB0_31:
	b.lt	LBB0_35
; %bb.32:
	mov	x21, #0
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #5
	bl	_oggpack_read
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_45
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	sxtw	x8, w0
	add	x8, x8, #1
	ldr	x9, [x19, #8]
	str	x8, [x9, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.lt	LBB0_33
LBB0_35:
	mov	x0, x20
	mov	w1, #4
	bl	_oggpack_read
	str	w0, [x19, #16]
	sub	w8, w0, #1
	cmp	w8, #2
	b.hs	LBB0_41
; %bb.36:
	mov	x0, x20
	mov	w1, #32
	bl	_oggpack_read
	str	w0, [x19, #20]
	mov	x0, x20
	mov	w1, #32
	bl	_oggpack_read
	str	w0, [x19, #24]
	mov	x0, x20
	mov	w1, #4
	bl	_oggpack_read
	add	w8, w0, #1
	str	w8, [x19, #28]
	mov	x0, x20
	mov	w1, #1
	bl	_oggpack_read
	str	w0, [x19, #32]
	cmn	w0, #1
	b.eq	LBB0_45
; %bb.37:
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.eq	LBB0_43
; %bb.38:
	cmp	w8, #1
	b.ne	LBB0_42
; %bb.39:
	ldr	w8, [x19]
	cbz	w8, LBB0_42
; %bb.40:
	mov	x0, x19
	bl	__book_maptype1_quantvals
	mov	x21, x0
	b	LBB0_44
LBB0_41:
	cbnz	w0, LBB0_45
	b	LBB0_46
LBB0_42:
	mov	w21, #0
	b	LBB0_44
LBB0_43:
	ldp	w9, w8, [x19]
	mul	w21, w9, w8
LBB0_44:
	ldr	w8, [x19, #28]
	orr	w9, wzr, #0x7
	madd	w22, w8, w21, w9
	ldr	w23, [x20]
	mov	x0, x20
	bl	_oggpack_bytes
	sub	w8, w23, w0
	cmp	w8, w22, asr #3
	b.ge	LBB0_47
LBB0_45:
	mov	x0, x19
	bl	_vorbis_staticbook_destroy
	mov	x19, #0
LBB0_46:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_47:
	lsl	w0, w21, #3
	bl	__ogg_malloc
	str	x0, [x19, #40]
	subs	w22, w21, #1
	b.lt	LBB0_50
; %bb.48:
	mov	x23, #0
	sxtw	x24, w21
LBB0_49:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #28]
	mov	x0, x20
	bl	_oggpack_read
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x0, [x19, #40]
	str	x8, [x0, x23, lsl #3]
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_49
LBB0_50:
	cbz	w21, LBB0_46
; %bb.51:
	ldr	x8, [x0, w22, sxtw #3]
	cmn	x8, #1
	b.ne	LBB0_46
	b	LBB0_45
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
