	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vorbis_book_decodevs_add       ## -- Begin function vorbis_book_decodevs_add
	.p2align	4, 0x90
_vorbis_book_decodevs_add:              ## @vorbis_book_decodevs_add
	.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	%rdx, -80(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rdi)
	jle	LBB0_8
## %bb.1:
	movl	%r8d, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rsi
	movl	%ecx, %eax
	cltd
	idivl	8(%rdi)
	movl	%eax, %ebx
	leal	(,%rbx,8), %r14d
	movl	%r14d, %edi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_alloca
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	callq	_alloca
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %r15
	subl	12(%rdi), %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	js	LBB0_9
## %bb.2:
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdi, %rbx
	callq	_decode_packed_entry_number
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r12,8)
	cmpq	$-1, %rax
	je	LBB0_34
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	8(%rbx), %rcx
	imulq	%rcx, %rax
	shlq	$2, %rax
	addq	16(%rbx), %rax
	movq	%rax, (%r15,%r12,8)
	incq	%r12
	cmpq	%r12, %r14
	movq	%rbx, %rdi
	jne	LBB0_4
## %bb.6:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testl	%ecx, %ecx
	jg	LBB0_16
	jmp	LBB0_8
LBB0_9:
	movl	%ebx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_25
## %bb.10:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdi, %rbx
	callq	_decode_packed_entry_number
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r14,8)
	cmpq	$-1, %rax
	je	LBB0_34
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	8(%rbx), %rcx
	imulq	%rcx, %rax
	shlq	$2, %rax
	addq	16(%rbx), %rax
	movq	%rax, (%r15,%r14,8)
	incq	%r14
	cmpq	%r14, -48(%rbp)                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	jne	LBB0_11
## %bb.13:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testl	%ecx, %ecx
	jg	LBB0_26
	jmp	LBB0_8
LBB0_34:
	movq	$-1, %rax
	jmp	LBB0_35
LBB0_15:
	movl	8(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
LBB0_16:
	movslq	%ebx, %r9
	movl	%ebx, %r8d
	movl	%r8d, %r14d
	andl	$-2, %r14d
	leaq	4(%r12), %rsi
	leaq	(,%r9,4), %r10
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%r11d, %r11d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rdx
	addq	%r9, %r11
	movslq	%ecx, %rdi
	addq	%r10, %rsi
	cmpq	%rdi, %rdx
	jge	LBB0_35
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%edi, %edi
	cmpl	$1, %ebx
	je	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15,%rdi,8), %rcx
	movl	(%rcx,%rdx,4), %ebx
	movl	%r13d, %ecx
	sarl	%cl, %ebx
	addl	%ebx, -4(%rsi,%rdi,4)
	movq	8(%r15,%rdi,8), %rcx
	movl	(%rcx,%rdx,4), %ebx
	movl	%r13d, %ecx
	sarl	%cl, %ebx
	addl	%ebx, (%rsi,%rdi,4)
	addq	$2, %rdi
	cmpq	%rdi, %r14
	jne	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	testb	$1, %r8b
	je	LBB0_17
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r15,%rdi,8), %rcx
	movl	(%rcx,%rdx,4), %ebx
	movl	%r13d, %ecx
	sarl	%cl, %ebx
	addq	%r11, %rdi
	addl	%ebx, (%r12,%rdi,4)
	jmp	LBB0_17
LBB0_25:
	movl	8(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
LBB0_26:
	negl	%r13d
	movslq	%ebx, %r8
	movq	-48(%rbp), %r11                 ## 8-byte Reload
                                        ## kill: def $r11d killed $r11d killed $r11 def $r11
	andl	$-2, %r11d
	leaq	4(%r12), %rdi
	leaq	(,%r8,4), %r9
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%r10d, %r10d
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%rdx
	addq	%r8, %r10
	movslq	%ecx, %rsi
	addq	%r9, %rdi
	cmpq	%rsi, %rdx
	jge	LBB0_35
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_28
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	xorl	%esi, %esi
	cmpl	$1, %ebx
	je	LBB0_32
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15,%rsi,8), %rcx
	movl	(%rcx,%rdx,4), %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	addl	%ebx, -4(%rdi,%rsi,4)
	movq	8(%r15,%rsi,8), %rcx
	movl	(%rcx,%rdx,4), %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	addl	%ebx, (%rdi,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %r11
	jne	LBB0_31
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=1
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_27
## %bb.33:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%r15,%rsi,8), %rcx
	movl	(%rcx,%rdx,4), %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	addq	%r10, %rsi
	addl	%ebx, (%r12,%rsi,4)
	jmp	LBB0_27
LBB0_8:
	xorl	%eax, %eax
LBB0_35:
	addq	$40, %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_book_decodevs_add       ; -- Begin function vorbis_book_decodevs_add
	.p2align	2
_vorbis_book_decodevs_add:              ; @vorbis_book_decodevs_add
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_26
; %bb.1:
	mov	x24, x4
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0, #8]
	sdiv	w25, w3, w8
	lsl	w21, w25, #3
	mov	x0, x21
	bl	_alloca
	mov	x23, x0
	mov	x0, x21
	bl	_alloca
	mov	x21, x0
	ldr	w8, [x20, #12]
	subs	w24, w24, w8
	b.mi	LBB0_7
; %bb.2:
	cmp	w25, #0
	b.le	LBB0_12
; %bb.3:
	mov	x26, x25
	mov	x27, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_decode_packed_entry_number
	str	x0, [x23]
	cmn	x0, #1
	b.eq	LBB0_27
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20, #8]
	mul	x10, x0, x9
	add	x8, x8, x10, lsl #2
	str	x8, [x27], #8
	add	x23, x23, #8
	subs	x26, x26, #1
	b.ne	LBB0_4
; %bb.6:
	cmp	w9, #1
	b.ge	LBB0_13
	b	LBB0_26
LBB0_7:
	cmp	w25, #0
	b.le	LBB0_19
; %bb.8:
	mov	x26, x25
	mov	x27, x21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_decode_packed_entry_number
	str	x0, [x23]
	cmn	x0, #1
	b.eq	LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20, #8]
	mul	x10, x0, x9
	add	x8, x8, x10, lsl #2
	str	x8, [x27], #8
	add	x23, x23, #8
	subs	x26, x26, #1
	b.ne	LBB0_9
; %bb.11:
	cmp	w9, #1
	b.ge	LBB0_20
	b	LBB0_26
LBB0_12:
	ldr	w9, [x20, #8]
	cmp	w9, #1
	b.lt	LBB0_26
LBB0_13:
	mov	x8, #0
	mov	x10, x25
	sbfiz	x10, x10, #2, #32
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x8, #1
	add	x19, x19, x10
	cmp	x8, w9, sxtw
	b.ge	LBB0_26
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	cmp	w25, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x9, x25
	mov	x11, x21
	mov	x12, x19
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x11], #8
	ldr	w13, [x13, x8, lsl #2]
	asr	w13, w13, w24
	ldr	w14, [x12]
	add	w13, w14, w13
	str	w13, [x12], #4
	subs	x9, x9, #1
	b.ne	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x20, #8]
	b	LBB0_14
LBB0_19:
	ldr	w9, [x20, #8]
	cmp	w9, #1
	b.lt	LBB0_26
LBB0_20:
	mov	x8, #0
	neg	w10, w24
	mov	x11, x25
	sbfiz	x11, x11, #2, #32
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x8, x8, #1
	add	x19, x19, x11
	cmp	x8, w9, sxtw
	b.ge	LBB0_26
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	cmp	w25, #1
	b.lt	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x9, x25
	mov	x12, x21
	mov	x13, x19
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x12], #8
	ldr	w14, [x14, x8, lsl #2]
	lsl	w14, w14, w10
	ldr	w15, [x13]
	add	w14, w15, w14
	str	w14, [x13], #4
	subs	x9, x9, #1
	b.ne	LBB0_24
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w9, [x20, #8]
	b	LBB0_21
LBB0_26:
	mov	x0, #0
LBB0_27:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
