	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function _book_unquantize
LCPI0_0:
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__book_unquantize
	.p2align	4, 0x90
__book_unquantize:                      ## @_book_unquantize
	.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
	movl	(%rdi), %eax
	decl	%eax
	cmpl	$1, %eax
	ja	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	44(%rdi), %edi
	callq	__float32_unpack
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	40(%r12), %edi
	callq	__float32_unpack
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	imull	4(%r12), %r15d
	movl	%r15d, %edi
	movl	$4, %esi
	callq	__ogg_calloc
	movq	%rax, %r15
	movl	(%r12), %eax
	cmpl	$1, %eax
	je	LBB0_14
## %bb.3:
	cmpl	$2, %eax
	jne	LBB0_37
## %bb.4:
	movq	8(%r12), %r8
	testq	%r8, %r8
	jle	LBB0_37
## %bb.5:
	xorl	%r9d, %r9d
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [NaN,NaN,NaN,NaN]
	xorl	%r10d, %r10d
	xorl	%r14d, %r14d
	movss	-48(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
LBB0_36:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r10
	addq	$4, %r9
	cmpq	%r8, %r10
	je	LBB0_37
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r12), %rax
	cmpl	$0, (%rax,%r10,4)
	je	LBB0_36
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	4(%r12), %rdi
	testq	%rdi, %rdi
	jle	LBB0_35
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	24(%r12), %eax
	movq	%r14, %r11
	imulq	%rdi, %r11
	movq	%r9, %rdx
	imulq	%rdi, %rdx
	addq	16(%r12), %rdx
	xorps	%xmm1, %xmm1
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_10 Depth=2
	leaq	(%r11,%rcx), %rsi
LBB0_34:                                ##   in Loop: Header=BB0_10 Depth=2
	movss	%xmm2, (%r15,%rsi,4)
	incq	%rcx
	cmpq	%rcx, %rdi
	je	LBB0_35
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rdx,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	andps	%xmm0, %xmm2
	mulss	%xmm4, %xmm2
	addss	%xmm3, %xmm2
	addss	%xmm1, %xmm2
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movaps	%xmm2, %xmm1
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	testq	%rbx, %rbx
	je	LBB0_33
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	(%rbx,%r14,4), %rsi
	imulq	%rdi, %rsi
	addq	%rcx, %rsi
	jmp	LBB0_34
LBB0_1:
	xorl	%r15d, %r15d
LBB0_37:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r12, %rdi
	callq	__book_maptype1_quantvals
	movl	%eax, %r13d
	movq	8(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_37
## %bb.15:
	movslq	%r13d, %rdi
	xorl	%esi, %esi
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [NaN,NaN,NaN,NaN]
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movss	-48(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	-56(%rbp)                       ## 8-byte Folded Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rsi
	cmpq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	je	LBB0_37
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	32(%r12), %rax
	cmpl	$0, (%rax,%rsi,4)
	je	LBB0_32
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movslq	4(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_31
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r11
	movl	24(%rax), %r12d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	imulq	%r10, %rcx
	xorps	%xmm1, %xmm1
	movl	$1, %r8d
	xorl	%r9d, %r9d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=2
	movss	%xmm2, (%r15,%rax,4)
	imull	%r13d, %r8d
	incq	%r9
	incq	%rcx
	decq	%r10
	je	LBB0_31
LBB0_20:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r8d, %r14
	movq	%rsi, %rax
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	%rsi, %rax
	cqto
	idivq	%r14
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_20 Depth=2
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=2
	cqto
	idivq	%rdi
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=2
	movss	(%r11,%rdx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	andps	%xmm0, %xmm2
	mulss	%xmm4, %xmm2
	addss	%xmm3, %xmm2
	addss	%xmm1, %xmm2
	testl	%r12d, %r12d
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_20 Depth=2
	movaps	%xmm2, %xmm1
LBB0_28:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	%rcx, %rax
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rbx,%rax,4), %rax
	imulq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	addq	%r9, %rax
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__book_unquantize               ; -- Begin function _book_unquantize
	.p2align	2
__book_unquantize:                      ; @_book_unquantize
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	ldr	w8, [x0]
	sub	w8, w8, #1
	cmp	w8, #1
	b.hi	LBB0_14
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #44]
	bl	__float32_unpack
	fmov	s8, s0
	ldr	w0, [x20, #40]
	bl	__float32_unpack
	fmov	s9, s0
	ldr	w8, [x20, #4]
	mul	w0, w8, w21
	mov	w1, #4
	bl	__ogg_calloc
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.eq	LBB0_16
; %bb.2:
	cmp	w8, #2
	b.ne	LBB0_15
; %bb.3:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.4:
	mov	x9, #0
	mov	x10, #0
	mov	x11, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x11, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	add	x9, x9, #4
	cmp	x10, x8
	b.eq	LBB0_15
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cbz	x19, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x12, [x20, #32]
	ldr	w12, [x12, x10, lsl #2]
	cbz	w12, LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x12, [x20, #4]
	cmp	w12, #1
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x13, #0
	ldr	x16, [x20, #16]
	ldr	w14, [x20, #24]
	mul	x15, x11, x12
	madd	x16, x9, x12, x16
	movi	d0, #0000000000000000
	mov	x17, x12
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	str	s1, [x21, x0, lsl #2]
	add	x13, x13, #1
	add	x15, x15, #1
	add	x16, x16, #4
	subs	x17, x17, #1
	b.eq	LBB0_5
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s1, [x16]
	fabs	s1, s1
	fmadd	s1, s1, s9, s8
	fadd	s1, s0, s1
	cmp	w14, #0
	fcsel	s0, s0, s1, eq
	mov	x0, x15
	cbz	x19, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldrsw	x0, [x19, x11, lsl #2]
	madd	x0, x0, x12, x13
	b	LBB0_11
LBB0_14:
	mov	x21, #0
LBB0_15:
	mov	x0, x21
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x20
	bl	__book_maptype1_quantvals
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.17:
	mov	x9, #0
	mov	x10, #0
	sxtw	x11, w0
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x10, x10, #1
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_15
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	cbz	x19, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x12, [x20, #32]
	ldr	w12, [x12, x9, lsl #2]
	cbz	w12, LBB0_19
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	ldrsw	x12, [x20, #4]
	cmp	w12, #1
	b.lt	LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x13, #0
	ldr	x14, [x20, #16]
	ldr	w15, [x20, #24]
	mul	x16, x10, x12
	movi	d0, #0000000000000000
	mov	w17, #1
	mov	x1, x12
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	str	s1, [x21, x2, lsl #2]
	mul	w17, w17, w0
	add	x13, x13, #1
	add	x16, x16, #1
	subs	x1, x1, #1
	b.eq	LBB0_18
LBB0_25:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtw	x2, w17
	sdiv	x2, x9, x2
	sdiv	x3, x2, x11
	msub	x2, x3, x11, x2
	ldr	s1, [x14, x2, lsl #2]
	fabs	s1, s1
	fmadd	s1, s1, s9, s8
	fadd	s1, s0, s1
	cmp	w15, #0
	fcsel	s0, s0, s1, eq
	mov	x2, x16
	cbz	x19, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	ldrsw	x2, [x19, x10, lsl #2]
	madd	x2, x2, x12, x13
	b	LBB0_24
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
