	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _vorbis_pack_books
__vorbis_pack_books:                    ## @_vorbis_pack_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	(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_19
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$5, %esi
	movl	$8, %edx
	callq	_oggpack_write
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$6, %edx
	callq	__v_writestring
	movl	(%r12), %esi
	decl	%esi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_oggpack_write
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	88(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	callq	_vorbis_staticbook_pack
	testq	%rax, %rax
	jne	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$6, %edx
	callq	_oggpack_write
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_oggpack_write
	movl	4(%r12), %esi
	decl	%esi
	movq	%r15, %rdi
	movl	$6, %edx
	callq	_oggpack_write
	cmpl	$0, 4(%r12)
	jle	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	movq	__floor_P@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_oggpack_write
	movq	(%r13), %rax
	movq	8(%r12), %rcx
	movslq	(%rcx,%rbx,4), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	80(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	callq	*%rcx
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_9:
	movl	16(%r12), %esi
	decl	%esi
	movq	%r15, %rdi
	movl	$6, %edx
	callq	_oggpack_write
	cmpl	$0, 16(%r12)
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	movq	__residue_P@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_oggpack_write
	movq	(%r13), %rax
	movq	24(%r12), %rcx
	movq	72(%r12), %rdx
	movslq	(%rcx,%rbx,4), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rdx,%rbx,4), %edi
	movq	%r15, %rsi
	callq	*(%rax)
	incq	%rbx
	movslq	16(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movl	32(%r12), %esi
	decl	%esi
	movq	%r15, %rdi
	movl	$6, %edx
	callq	_oggpack_write
	cmpl	$0, 32(%r12)
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	movq	__mapping_P@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_oggpack_write
	movq	(%r13), %rax
	movq	40(%r12), %rcx
	movq	64(%r12), %rdx
	movslq	(%rcx,%rbx,4), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rdx,%rbx,4), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	*(%rax)
	incq	%rbx
	movslq	32(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_15:
	movl	48(%r12), %esi
	decl	%esi
	movq	%r15, %rdi
	movl	$6, %edx
	callq	_oggpack_write
	cmpl	$0, 48(%r12)
	jle	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_oggpack_write
	movq	56(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_oggpack_write
	movq	56(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	8(%rax), %esi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_oggpack_write
	movq	56(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	12(%rax), %esi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_oggpack_write
	incq	%rbx
	movslq	48(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_17
LBB0_18:
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_oggpack_write
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_19:
	movq	_OV_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_21:
	movl	$-1, %eax
LBB0_22:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vorbis"

	.comm	__floor_P,8,3                   ## @_floor_P
	.comm	__residue_P,8,3                 ## @_residue_P
	.comm	__mapping_P,8,3                 ## @_mapping_P
	.no_dead_strip	__vorbis_pack_books
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _vorbis_pack_books
__vorbis_pack_books:                    ; @_vorbis_pack_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, [x1]
	cbz	x21, LBB0_19
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w1, #5
	mov	w2, #8
	bl	_oggpack_write
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #6
	bl	__v_writestring
	ldr	w8, [x21]
	sub	w1, w8, #1
	mov	x0, x19
	mov	w2, #8
	bl	_oggpack_write
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #88]
	ldr	w0, [x8, x22, lsl #2]
	mov	x1, x19
	bl	_vorbis_staticbook_pack
	cbnz	x0, LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #6
	bl	_oggpack_write
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_oggpack_write
	ldr	w8, [x21, #4]
	sub	w1, w8, #1
	mov	x0, x19
	mov	w2, #6
	bl	_oggpack_write
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x22, #0
Lloh2:
	adrp	x23, __floor_P@GOTPAGE
Lloh3:
	ldr	x23, [x23, __floor_P@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	lsl	x24, x22, #2
	ldr	w1, [x8, x24]
	mov	x0, x19
	mov	w2, #16
	bl	_oggpack_write
	ldr	x8, [x23]
	ldr	x9, [x21, #8]
	ldrsw	x9, [x9, x24]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x21, #80]
	ldr	w0, [x9, x22, lsl #2]
	mov	x1, x19
	blr	x8
	add	x22, x22, #1
	ldrsw	x8, [x21, #4]
	cmp	x22, x8
	b.lt	LBB0_7
LBB0_9:
	ldr	w8, [x21, #16]
	sub	w1, w8, #1
	mov	x0, x19
	mov	w2, #6
	bl	_oggpack_write
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x22, #0
Lloh4:
	adrp	x23, __residue_P@GOTPAGE
Lloh5:
	ldr	x23, [x23, __residue_P@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	lsl	x24, x22, #2
	ldr	w1, [x8, x24]
	mov	x0, x19
	mov	w2, #16
	bl	_oggpack_write
	ldr	x8, [x23]
	ldr	x9, [x21, #24]
	ldrsw	x9, [x9, x24]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [x21, #72]
	ldr	w0, [x9, x24]
	mov	x1, x19
	blr	x8
	add	x22, x22, #1
	ldrsw	x8, [x21, #16]
	cmp	x22, x8
	b.lt	LBB0_11
LBB0_12:
	ldr	w8, [x21, #32]
	sub	w1, w8, #1
	mov	x0, x19
	mov	w2, #6
	bl	_oggpack_write
	ldr	w8, [x21, #32]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x22, #0
Lloh6:
	adrp	x23, __mapping_P@GOTPAGE
Lloh7:
	ldr	x23, [x23, __mapping_P@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #40]
	lsl	x24, x22, #2
	ldr	w1, [x8, x24]
	mov	x0, x19
	mov	w2, #16
	bl	_oggpack_write
	ldr	x8, [x23]
	ldr	x9, [x21, #40]
	ldrsw	x9, [x9, x24]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [x21, #64]
	ldr	w1, [x9, x24]
	mov	x0, x20
	mov	x2, x19
	blr	x8
	add	x22, x22, #1
	ldrsw	x8, [x21, #32]
	cmp	x22, x8
	b.lt	LBB0_14
LBB0_15:
	ldr	w8, [x21, #48]
	sub	w1, w8, #1
	mov	x0, x19
	mov	w2, #6
	bl	_oggpack_write
	ldr	w8, [x21, #48]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x20, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #56]
	lsl	x22, x20, #3
	ldr	x8, [x8, x22]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_oggpack_write
	ldr	x8, [x21, #56]
	ldr	x8, [x8, x22]
	ldr	w1, [x8, #4]
	mov	x0, x19
	mov	w2, #16
	bl	_oggpack_write
	ldr	x8, [x21, #56]
	ldr	x8, [x8, x22]
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	w2, #16
	bl	_oggpack_write
	ldr	x8, [x21, #56]
	ldr	x8, [x8, x22]
	ldr	w1, [x8, #12]
	mov	x0, x19
	mov	w2, #8
	bl	_oggpack_write
	add	x20, x20, #1
	ldrsw	x8, [x21, #48]
	cmp	x20, x8
	b.lt	LBB0_17
LBB0_18:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_oggpack_write
	mov	w0, #0
	b	LBB0_21
LBB0_19:
Lloh8:
	adrp	x8, _OV_EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OV_EFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_20:
	mov	w0, #-1
LBB0_21:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OV_EFAULT,4,2                  ; @OV_EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vorbis"

	.comm	__floor_P,8,3                   ; @_floor_P
	.comm	__residue_P,8,3                 ; @_residue_P
	.comm	__mapping_P,8,3                 ; @_mapping_P
	.no_dead_strip	__vorbis_pack_books
.subsections_via_symbols
