	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _vorbis_unpack_books
__vorbis_unpack_books:                  ## @_vorbis_unpack_books
	.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), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$8, %esi
	callq	_oggpack_read
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r12)
	testl	%eax, %eax
	js	LBB0_37
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_vorbis_staticbook_unpack
	movq	88(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_37
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_oggpack_read
	testl	%eax, %eax
	js	LBB0_37
## %bb.7:
	movl	%eax, %ebx
	incl	%ebx
	movq	_VI_TIMEB@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_oggpack_read
	testl	%eax, %eax
	js	LBB0_37
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	(%r13), %eax
	jge	LBB0_37
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	decl	%ebx
	jne	LBB0_9
## %bb.11:
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_oggpack_read
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%r12)
	testl	%eax, %eax
	js	LBB0_37
## %bb.12:
	xorl	%ebx, %ebx
	movq	_VI_FLOORB@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_oggpack_read
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	js	LBB0_37
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	(%r13), %eax
	jge	LBB0_37
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	__floor_P@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movq	80(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_37
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
## %bb.17:
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_oggpack_read
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%r12)
	testl	%eax, %eax
	js	LBB0_37
## %bb.18:
	xorl	%ebx, %ebx
	movq	_VI_RESB@GOTPCREL(%rip), %r13
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_oggpack_read
	movq	24(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	js	LBB0_37
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	(%r13), %eax
	jge	LBB0_37
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	__residue_P@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movq	72(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_37
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	movslq	16(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_20
## %bb.23:
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_oggpack_read
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	%ecx, 32(%r12)
	testl	%eax, %eax
	js	LBB0_37
## %bb.24:
	xorl	%ebx, %ebx
	movq	_VI_MAPB@GOTPCREL(%rip), %r13
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_oggpack_read
	movq	40(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	js	LBB0_37
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpl	(%r13), %eax
	jge	LBB0_37
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	__mapping_P@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movq	64(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_37
## %bb.25:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%rbx
	movslq	32(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_26
## %bb.29:
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_oggpack_read
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	%ecx, 48(%r12)
	testl	%eax, %eax
	js	LBB0_37
## %bb.30:
	xorl	%ebx, %ebx
	movq	_VI_WINDOWB@GOTPCREL(%rip), %r13
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$16, %esi
	callq	__ogg_calloc
	movq	56(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_oggpack_read
	movq	56(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_oggpack_read
	movq	56(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 4(%rcx)
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_oggpack_read
	movq	56(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 8(%rcx)
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_oggpack_read
	movq	56(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 12(%rcx)
	movl	(%r13), %edx
	cmpl	%edx, 4(%rcx)
	jge	LBB0_37
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpl	%edx, 8(%rcx)
	jge	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	testl	%eax, %eax
	js	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpl	32(%r12), %eax
	jge	LBB0_37
## %bb.31:                              ##   in Loop: Header=BB0_32 Depth=1
	incq	%rbx
	movslq	48(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_32
## %bb.36:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_oggpack_read
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	je	LBB0_39
LBB0_37:
	movq	%r14, %rdi
	callq	_vorbis_info_clear
	movq	_OV_EBADHEADER@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_1:
	movq	_OV_EFAULT@GOTPCREL(%rip), %rax
LBB0_38:
	movl	(%rax), %eax
LBB0_39:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV_EFAULT,4,2                  ## @OV_EFAULT
	.comm	_VI_TIMEB,4,2                   ## @VI_TIMEB
	.comm	_VI_FLOORB,4,2                  ## @VI_FLOORB
	.comm	__floor_P,8,3                   ## @_floor_P
	.comm	_VI_RESB,4,2                    ## @VI_RESB
	.comm	__residue_P,8,3                 ## @_residue_P
	.comm	_VI_MAPB,4,2                    ## @VI_MAPB
	.comm	__mapping_P,8,3                 ## @_mapping_P
	.comm	_VI_WINDOWB,4,2                 ## @VI_WINDOWB
	.comm	_OV_EBADHEADER,4,2              ## @OV_EBADHEADER
	.no_dead_strip	__vorbis_unpack_books
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _vorbis_unpack_books
__vorbis_unpack_books:                  ; @_vorbis_unpack_books
	.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
	ldr	x21, [x0]
	cbz	x21, LBB0_38
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #8
	bl	_oggpack_read
	add	w8, w0, #1
	str	w8, [x21]
	tbnz	w0, #31, LBB0_37
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_vorbis_staticbook_unpack
	ldr	x8, [x21, #88]
	str	w0, [x8, x22, lsl #2]
	cbz	w0, LBB0_37
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_3
; %bb.5:
	mov	x0, x20
	mov	w1, #6
	bl	_oggpack_read
	tbnz	w0, #31, LBB0_37
; %bb.6:
	add	w22, w0, #1
Lloh0:
	adrp	x23, _VI_TIMEB@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VI_TIMEB@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #16
	bl	_oggpack_read
	tbnz	w0, #31, LBB0_37
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
	cmp	w0, w8
	b.ge	LBB0_37
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	subs	w22, w22, #1
	b.ne	LBB0_7
; %bb.10:
	mov	x0, x20
	mov	w1, #6
	bl	_oggpack_read
	add	w8, w0, #1
	str	w8, [x21, #4]
	tbnz	w0, #31, LBB0_37
; %bb.11:
	mov	x22, #0
Lloh2:
	adrp	x23, _VI_FLOORB@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VI_FLOORB@GOTPAGEOFF]
Lloh4:
	adrp	x24, __floor_P@GOTPAGE
Lloh5:
	ldr	x24, [x24, __floor_P@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #16
	bl	_oggpack_read
	ldr	x8, [x21, #8]
	str	w0, [x8, x22, lsl #2]
	tbnz	w0, #31, LBB0_37
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x23]
	cmp	w0, w8
	b.ge	LBB0_37
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, w0, uxtw #3]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x21, #80]
	str	w0, [x8, x22, lsl #2]
	cbz	w0, LBB0_37
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21, #4]
	cmp	x22, x8
	b.lt	LBB0_12
; %bb.16:
	mov	x0, x20
	mov	w1, #6
	bl	_oggpack_read
	add	w8, w0, #1
	str	w8, [x21, #16]
	tbnz	w0, #31, LBB0_37
; %bb.17:
	mov	x22, #0
Lloh6:
	adrp	x23, _VI_RESB@GOTPAGE
Lloh7:
	ldr	x23, [x23, _VI_RESB@GOTPAGEOFF]
Lloh8:
	adrp	x24, __residue_P@GOTPAGE
Lloh9:
	ldr	x24, [x24, __residue_P@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #16
	bl	_oggpack_read
	ldr	x8, [x21, #24]
	str	w0, [x8, x22, lsl #2]
	tbnz	w0, #31, LBB0_37
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x23]
	cmp	w0, w8
	b.ge	LBB0_37
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, w0, uxtw #3]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x21, #72]
	str	w0, [x8, x22, lsl #2]
	cbz	w0, LBB0_37
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21, #16]
	cmp	x22, x8
	b.lt	LBB0_18
; %bb.22:
	mov	x0, x20
	mov	w1, #6
	bl	_oggpack_read
	add	w8, w0, #1
	str	w8, [x21, #32]
	tbnz	w0, #31, LBB0_37
; %bb.23:
	mov	x22, #0
Lloh10:
	adrp	x23, _VI_MAPB@GOTPAGE
Lloh11:
	ldr	x23, [x23, _VI_MAPB@GOTPAGEOFF]
Lloh12:
	adrp	x24, __mapping_P@GOTPAGE
Lloh13:
	ldr	x24, [x24, __mapping_P@GOTPAGEOFF]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #16
	bl	_oggpack_read
	ldr	x8, [x21, #40]
	str	w0, [x8, x22, lsl #2]
	tbnz	w0, #31, LBB0_37
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x23]
	cmp	w0, w8
	b.ge	LBB0_37
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, w0, uxtw #3]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x21, #64]
	str	w0, [x8, x22, lsl #2]
	cbz	w0, LBB0_37
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21, #32]
	cmp	x22, x8
	b.lt	LBB0_24
; %bb.28:
	mov	x0, x20
	mov	w1, #6
	bl	_oggpack_read
	add	w8, w0, #1
	str	w8, [x21, #48]
	tbnz	w0, #31, LBB0_37
; %bb.29:
	mov	x22, #0
Lloh14:
	adrp	x23, _VI_WINDOWB@GOTPAGE
Lloh15:
	ldr	x23, [x23, _VI_WINDOWB@GOTPAGEOFF]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #16
	bl	__ogg_calloc
	ldr	x8, [x21, #56]
	lsl	x24, x22, #3
	str	x0, [x8, x24]
	mov	x0, x20
	mov	w1, #1
	bl	_oggpack_read
	ldr	x8, [x21, #56]
	ldr	x8, [x8, x24]
	str	w0, [x8]
	mov	x0, x20
	mov	w1, #16
	bl	_oggpack_read
	ldr	x8, [x21, #56]
	ldr	x8, [x8, x24]
	str	w0, [x8, #4]
	mov	x0, x20
	mov	w1, #16
	bl	_oggpack_read
	ldr	x8, [x21, #56]
	ldr	x8, [x8, x24]
	str	w0, [x8, #8]
	mov	x0, x20
	mov	w1, #8
	bl	_oggpack_read
	ldr	x8, [x21, #56]
	ldr	x8, [x8, x24]
	str	w0, [x8, #12]
	ldr	w10, [x8, #4]
	ldr	w9, [x23]
	cmp	w10, w9
	b.ge	LBB0_37
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	w8, [x8, #8]
	cmp	w8, w9
	b.ge	LBB0_37
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=1
	tbnz	w0, #31, LBB0_37
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	w8, [x21, #32]
	cmp	w0, w8
	b.ge	LBB0_37
; %bb.34:                               ;   in Loop: Header=BB0_30 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21, #48]
	cmp	x22, x8
	b.lt	LBB0_30
; %bb.35:
	mov	x0, x20
	mov	w1, #1
	bl	_oggpack_read
	cmp	w0, #1
	b.ne	LBB0_37
; %bb.36:
	mov	w0, #0
	b	LBB0_40
LBB0_37:
	mov	x0, x19
	bl	_vorbis_info_clear
Lloh16:
	adrp	x8, _OV_EBADHEADER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OV_EBADHEADER@GOTPAGEOFF]
	b	LBB0_39
LBB0_38:
Lloh18:
	adrp	x8, _OV_EFAULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OV_EFAULT@GOTPAGEOFF]
LBB0_39:
	ldr	w0, [x8]
LBB0_40:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_OV_EFAULT,4,2                  ; @OV_EFAULT
	.comm	_VI_TIMEB,4,2                   ; @VI_TIMEB
	.comm	_VI_FLOORB,4,2                  ; @VI_FLOORB
	.comm	__floor_P,8,3                   ; @_floor_P
	.comm	_VI_RESB,4,2                    ; @VI_RESB
	.comm	__residue_P,8,3                 ; @_residue_P
	.comm	_VI_MAPB,4,2                    ; @VI_MAPB
	.comm	__mapping_P,8,3                 ; @_mapping_P
	.comm	_VI_WINDOWB,4,2                 ; @VI_WINDOWB
	.comm	_OV_EBADHEADER,4,2              ; @OV_EBADHEADER
	.no_dead_strip	__vorbis_unpack_books
.subsections_via_symbols
