	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function vorbis_bitrate_addblock
LCPI0_0:
	.quad	0x402e000000000000              ## double 15
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vorbis_bitrate_addblock
	.p2align	4, 0x90
_vorbis_bitrate_addblock:               ## @vorbis_bitrate_addblock
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %r14
	movq	(%rax), %r12
	movq	8(%rax), %r15
	movq	8(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	56(%r15), %rdi
	callq	_rint
	movl	%eax, %r13d
	movq	(%r14), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_oggpack_bytes
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rdx
	movq	(%r15), %rcx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.1:
	movq	8(%r15), %rbx
	movq	%rbx, %rsi
	imulq	%rcx, %rsi
	imulq	16(%r15), %rbx
	cmpl	$0, 72(%r15)
	je	LBB0_14
LBB0_2:
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	shll	$3, %eax
	movslq	%eax, %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	16(%rdi), %rsi
	imulq	8(%rdi), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rdx,4), %esi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%r15)
	movq	24(%r15), %r14
	testq	%r14, %r14
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_31
## %bb.3:
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	imulq	8(%r15), %r14
LBB0_5:
	sarl	%esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cvtsi2sdl	24(%rax), %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movq	%r12, %rax
	subq	%r14, %rax
	addq	32(%r15), %rax
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	movapd	%xmm1, -128(%rbp)               ## 16-byte Spill
	jle	LBB0_16
## %bb.6:
	testl	%r13d, %r13d
	jle	LBB0_25
## %bb.7:
	cmpq	%r12, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_30
## %bb.8:
	movl	%r13d, %r13d
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_30
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	leal	-1(%r13), %eax
	movq	(%r12), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_oggpack_bytes
	cmpq	$2, %r13
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	shll	$3, %eax
	cltq
	cmpq	%rax, %r14
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	subq	%r14, %rax
	addq	32(%r15), %rax
	leaq	-1(%rbx), %r13
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jg	LBB0_9
LBB0_12:
	decq	%rbx
	movq	%rbx, %r13
	jmp	LBB0_30
LBB0_13:
	movq	16(%r15), %rbx
	movq	%rcx, %rsi
	cmpl	$0, 72(%r15)
	jne	LBB0_2
LBB0_14:
	movl	$-1, %eax
	cmpq	$0, 64(%r15)
	jne	LBB0_74
## %bb.15:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%r15)
	xorl	%eax, %eax
	jmp	LBB0_74
LBB0_16:
	jge	LBB0_25
## %bb.17:
	movl	%r13d, %ecx
	incl	%ecx
	movq	_PACKETBLOBS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_25
## %bb.18:
	cmpq	%r12, %r14
	jle	LBB0_25
## %bb.19:
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jge	LBB0_25
## %bb.20:
	movslq	%ecx, %rbx
	incq	%rbx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	-4(%rax,%rbx,4), %edi
	callq	_oggpack_bytes
	movq	_PACKETBLOBS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	shll	$3, %eax
	cltq
	cmpq	%rax, %r14
	jle	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	subq	%r14, %rax
	addq	32(%r15), %rax
	incl	%r13d
	incq	%rbx
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jl	LBB0_21
	jmp	LBB0_30
LBB0_25:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_30:
	movslq	%r13d, %rdi
	subq	56(%r15), %rdi
	callq	_rint
	cltd
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	idivl	%esi
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx), %ecx
	imull	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movapd	LCPI0_1(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0]
	movapd	-128(%rbp), %xmm2               ## 16-byte Reload
	xorpd	%xmm2, %xmm1
	maxsd	%xmm0, %xmm1
	minsd	%xmm1, %xmm2
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%esi, %xmm1
	divsd	%xmm0, %xmm2
	mulsd	%xmm2, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	56(%r15), %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rdi
	movq	%rdi, 56(%r15)
	callq	_rint
	movl	%eax, %r13d
	movq	(%r12), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_oggpack_bytes
	shll	$3, %eax
	movslq	%eax, %r12
	movq	(%r15), %rcx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_31:
	testq	%rcx, %rcx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_39
## %bb.32:
	movq	%r12, %rax
	subq	%r14, %rax
	jge	LBB0_39
## %bb.33:
	addq	40(%r15), %rax
	jns	LBB0_39
## %bb.34:
	movslq	%r13d, %r13
	incq	%r13
	movq	_PACKETBLOBS@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jge	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	callq	_oggpack_bytes
	shll	$3, %eax
	movslq	%eax, %r12
	movq	%r12, %rax
	subq	%r14, %rax
	addq	40(%r15), %rax
	jns	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=1
	incq	%r13
	jmp	LBB0_35
LBB0_38:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_39:
	cmpq	$0, 16(%r15)
	jle	LBB0_47
## %bb.40:
	movq	%r12, %rdx
	subq	%rbx, %rdx
	jle	LBB0_47
## %bb.41:
	movq	40(%r15), %rax
	addq	%rax, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_47
## %bb.42:
	testl	%r13d, %r13d
	jle	LBB0_53
## %bb.43:
	movl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	-4(%rax,%r13,4), %edi
	callq	_oggpack_bytes
	shll	$3, %eax
	movslq	%eax, %r12
	movq	40(%r15), %rax
	movq	%r12, %rdx
	subq	%rbx, %rdx
	addq	%rax, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	decq	%r13
	testl	%r13d, %r13d
	jg	LBB0_44
	jmp	LBB0_53
LBB0_46:
	decl	%r13d
LBB0_47:
	testl	%r13d, %r13d
	js	LBB0_52
## %bb.48:
	movq	%r14, %rbx
	subq	40(%r15), %rbx
	leaq	7(%rbx), %rax
	addq	$14, %rbx
	testq	%rax, %rax
	cmovnsq	%rax, %rbx
	sarq	$3, %rbx
	movq	_PACKETBLOBS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ecx
	cmpl	%eax, %r13d
	cmovll	%r13d, %ecx
	movl	%ecx, 48(%r15)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movslq	%ecx, %r14
	movl	(%rax,%r14,4), %edi
	callq	_oggpack_bytes
	cltq
	subq	%rax, %rbx
	jle	LBB0_51
## %bb.49:
	incq	%rbx
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_oggpack_write
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_50
LBB0_51:
	shlq	$2, %r14
	addq	(%r12), %r14
	jmp	LBB0_55
LBB0_52:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	40(%r15), %rax
LBB0_53:
	addq	%rbx, %rcx
	subq	%rax, %rcx
	leaq	7(%rcx), %rbx
	testq	%rcx, %rcx
	cmovnsq	%rcx, %rbx
	sarq	$3, %rbx
	movl	$0, 48(%r15)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_oggpack_bytes
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_56
## %bb.54:
	movq	(%r13), %rax
	movl	(%rax), %edi
	shlq	$3, %rbx
	movq	%rbx, %rsi
	callq	_oggpack_writetrunc
	movq	(%r13), %r14
LBB0_55:
	movl	(%r14), %edi
	callq	_oggpack_bytes
	shll	$3, %eax
	movslq	%eax, %r12
	movq	-96(%rbp), %r14                 ## 8-byte Reload
LBB0_56:
	cmpq	$0, (%r15)
	jg	LBB0_58
## %bb.57:
	cmpq	$0, 16(%r15)
	jle	LBB0_70
LBB0_58:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	jle	LBB0_61
## %bb.59:
	movq	%r12, %rax
	subq	%rdx, %rax
	jg	LBB0_60
LBB0_61:
	testq	%r14, %r14
	jle	LBB0_64
## %bb.62:
	movq	%r12, %rax
	subq	%r14, %rax
	jge	LBB0_64
LBB0_60:
	addq	%rax, 40(%r15)
LBB0_70:
	movq	24(%r15), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jle	LBB0_74
## %bb.71:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, (%rdx)
	je	LBB0_73
## %bb.72:
	imulq	8(%r15), %rcx
LBB0_73:
	subq	%rcx, %r12
	addq	%r12, 32(%r15)
LBB0_74:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_64:
	movq	40(%r15), %rax
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_67
## %bb.65:
	testq	%rdx, %rdx
	jle	LBB0_69
## %bb.66:
	movq	%r12, %rcx
	subq	%rdx, %rcx
	addq	%rax, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %rcx
	cmovleq	%rax, %rcx
	movq	%rcx, 40(%r15)
	jmp	LBB0_70
LBB0_67:
	testq	%r14, %r14
	jle	LBB0_69
## %bb.68:
	movq	%r12, %rcx
	subq	%r14, %rcx
	addq	%rax, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %rcx
	cmovgeq	%rax, %rcx
	movq	%rcx, 40(%r15)
	jmp	LBB0_70
LBB0_69:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r15)
	jmp	LBB0_70
LBB0_29:
	incl	%r13d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKETBLOBS,4,2                ## @PACKETBLOBS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vorbis_bitrate_addblock        ; -- Begin function vorbis_bitrate_addblock
	.p2align	2
_vorbis_bitrate_addblock:               ; @vorbis_bitrate_addblock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
	ldp	x8, x25, [x0, #8]
	ldp	x28, x21, [x8]
	ldr	x26, [x28, #8]
	ldr	x0, [x21, #56]
	bl	_rint
	mov	x20, x0
	ldr	x8, [x25]
	ldr	w0, [x8, w0, sxtw #2]
	bl	_oggpack_bytes
	ldrsw	x9, [x19]
	ldr	x8, [x21]
	cbz	w9, LBB0_13
; %bb.1:
	ldp	x10, x11, [x21, #8]
	mul	x24, x10, x8
	mul	x22, x11, x10
	ldr	w10, [x21, #72]
	cbz	w10, LBB0_14
LBB0_2:
	lsl	w11, w0, #3
	ldp	x10, x12, [x26]
	ldr	w10, [x10, x9, lsl #2]
	sxtw	x27, w11
	ldr	x11, [x26, #16]
	mul	x11, x11, x12
	str	x11, [sp, #24]                  ; 8-byte Folded Spill
	str	x19, [x21, #64]
	ldr	x23, [x21, #24]
	cmp	x23, #1
	b.lt	LBB0_25
; %bb.3:
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	cbz	w9, LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	mul	x23, x8, x23
LBB0_5:
	asr	w13, w10, #1
	ldr	s0, [x26, #24]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	fmov	d1, #15.00000000
	fdiv	d8, d1, d0
	ldr	x8, [x21, #32]
	sub	x9, x27, x23
	add	x10, x8, x9
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	cmp	x10, x11
	str	w13, [sp, #12]                  ; 4-byte Folded Spill
	b.le	LBB0_16
; %bb.6:
	cmp	w20, #1
	ccmp	x23, x27, #0, ge
	b.ge	LBB0_24
; %bb.7:
	mov	w10, w20
	add	x8, x9, x8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.le	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x10
	sub	w8, w20, #1
	ldr	x9, [x25]
	ldr	w0, [x9, w8, uxtw #2]
	bl	_oggpack_bytes
	cmp	x20, #2
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	lsl	w8, w0, #3
	sxtw	x8, w8
	cmp	x23, x8
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x21, #32]
	sub	x8, x8, x23
	add	x8, x8, x9
	sub	x10, x20, #1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.gt	LBB0_8
LBB0_11:
	sub	x10, x20, #1
LBB0_12:
	mov	x20, x10
	b	LBB0_24
LBB0_13:
	ldr	x22, [x21, #16]
	mov	x24, x8
	ldr	w10, [x21, #72]
	cbnz	w10, LBB0_2
LBB0_14:
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_22
; %bb.15:
	mov	w0, #-1
	b	LBB0_62
LBB0_16:
	b.ge	LBB0_24
; %bb.17:
	add	w10, w20, #1
Lloh0:
	adrp	x24, _PACKETBLOBS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PACKETBLOBS@GOTPAGEOFF]
	ldr	w11, [x24]
	cmp	w10, w11
	ccmp	x23, x27, #4, lt
	b.le	LBB0_24
; %bb.18:
	add	x8, x9, x8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.ge	LBB0_24
; %bb.19:
	sxtw	x27, w10
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w0, [x8, x27, lsl #2]
	bl	_oggpack_bytes
	lsl	w8, w0, #3
	sxtw	x8, w8
	add	x27, x27, #1
	ldrsw	x9, [x24]
	cmp	x27, x9
	ccmp	x23, x8, #4, lt
	b.le	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x21, #32]
	sub	x8, x8, x23
	add	x8, x8, x9
	add	w20, w20, #1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.lt	LBB0_20
	b	LBB0_24
LBB0_22:
	mov	w0, #0
	str	x19, [x21, #64]
	b	LBB0_62
LBB0_23:
	add	w20, w20, #1
LBB0_24:
	sxtw	x8, w20
	ldr	x9, [x21, #56]
	sub	x0, x8, x9
	bl	_rint
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	sdiv	w8, w0, w10
	ldr	w9, [x28]
	mul	w8, w9, w8
	scvtf	d0, w8
	fneg	d1, d8
	fcmp	d0, d1
	fcsel	d0, d1, d0, mi
	fcmp	d0, d8
	fcsel	d0, d8, d0, gt
	scvtf	d1, w9
	fdiv	d0, d0, d1
	scvtf	d1, w10
	ldr	d2, [x21, #56]
	scvtf	d2, d2
	fmadd	d0, d0, d1, d2
	fcvtzs	x0, d0
	str	x0, [x21, #56]
	bl	_rint
	mov	x20, x0
	ldr	x8, [x25]
	ldr	w0, [x8, w0, sxtw #2]
	bl	_oggpack_bytes
	lsl	w8, w0, #3
	sxtw	x27, w8
	ldr	x8, [x21]
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
LBB0_25:
	cmp	x8, #1
	b.lt	LBB0_33
; %bb.26:
	subs	x8, x27, x24
	b.ge	LBB0_33
; %bb.27:
	ldr	x9, [x21, #40]
	cmn	x8, x9
	b.pl	LBB0_33
; %bb.28:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x8, w20
	add	x20, x8, #1
Lloh2:
	adrp	x23, _PACKETBLOBS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PACKETBLOBS@GOTPAGEOFF]
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x23]
	cmp	x20, x8
	b.ge	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x25]
	ldr	w0, [x8, x20, lsl #2]
	bl	_oggpack_bytes
	lsl	w8, w0, #3
	sxtw	x27, w8
	ldr	x8, [x21, #40]
	sub	x9, x27, x24
	cmn	x9, x8
	b.pl	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	add	x20, x20, #1
	b	LBB0_29
LBB0_32:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_33:
	ldr	x8, [x21, #16]
	cmp	x8, #1
	ccmp	x27, x22, #4, ge
	b.le	LBB0_40
; %bb.34:
	ldr	x8, [x21, #40]
	sub	x9, x27, x22
	add	x10, x9, x8
	ldr	x9, [x26, #8]
	cmp	x10, x9
	b.le	LBB0_40
; %bb.35:
	cmp	w20, #1
	b.lt	LBB0_46
; %bb.36:
	mov	w20, w20
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x8, x8, x20, lsl #2
	ldur	w0, [x8, #-4]
	bl	_oggpack_bytes
	lsl	w8, w0, #3
	sxtw	x27, w8
	ldr	x8, [x21, #40]
	sub	x9, x27, x22
	add	x10, x9, x8
	ldr	x9, [x26, #8]
	cmp	x10, x9
	b.le	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	sub	x20, x20, #1
	cmp	w20, #1
	b.ge	LBB0_37
	b	LBB0_46
LBB0_39:
	sub	w20, w20, #1
LBB0_40:
	tbnz	w20, #31, LBB0_45
; %bb.41:
	ldr	x8, [x21, #40]
	sub	x8, x24, x8
	add	x9, x8, #7
	add	x8, x8, #14
	cmp	x9, #0
	csel	x8, x8, x9, lt
	asr	x23, x8, #3
Lloh4:
	adrp	x8, _PACKETBLOBS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PACKETBLOBS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	sub	w9, w8, #1
	cmp	w20, w8
	csel	w8, w20, w9, lt
	str	w8, [x21, #48]
	ldr	x9, [x25]
	sxtw	x20, w8
	ldr	w0, [x9, w8, sxtw #2]
	bl	_oggpack_bytes
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x8, x23, x8
	cmp	x8, #1
	b.lt	LBB0_44
; %bb.42:
	add	x23, x8, #1
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w0, [x8, x20, lsl #2]
	mov	w1, #0
	mov	w2, #8
	bl	_oggpack_write
	sub	x23, x23, #1
	cmp	x23, #1
	b.hi	LBB0_43
LBB0_44:
	ldr	x8, [x25]
	add	x8, x8, x20, lsl #2
	b	LBB0_48
LBB0_45:
	ldr	x9, [x26, #8]
	ldr	x8, [x21, #40]
LBB0_46:
	add	x9, x9, x22
	sub	x8, x9, x8
	add	x9, x8, #7
	cmp	x8, #0
	csel	x8, x9, x8, lt
	asr	x20, x8, #3
	str	wzr, [x21, #48]
	ldr	x8, [x25]
	ldr	w0, [x8]
	bl	_oggpack_bytes
	cmp	x20, w0, sxtw
	b.ge	LBB0_49
; %bb.47:
	ldr	x8, [x25]
	ldr	w0, [x8]
	lsl	x1, x20, #3
	bl	_oggpack_writetrunc
	ldr	x8, [x25]
LBB0_48:
	ldr	w0, [x8]
	bl	_oggpack_bytes
	lsl	w8, w0, #3
	sxtw	x27, w8
LBB0_49:
	ldr	x8, [x21]
	cmp	x8, #0
	b.gt	LBB0_51
; %bb.50:
	ldr	x8, [x21, #16]
	cmp	x8, #1
	b.lt	LBB0_57
LBB0_51:
	cmp	x22, #1
	b.lt	LBB0_53
; %bb.52:
	subs	x8, x27, x22
	b.gt	LBB0_55
LBB0_53:
	cmp	x24, #1
	b.lt	LBB0_63
; %bb.54:
	subs	x8, x27, x24
	b.ge	LBB0_63
LBB0_55:
	ldr	x9, [x21, #40]
	add	x8, x8, x9
LBB0_56:
	str	x8, [x21, #40]
LBB0_57:
	ldr	x8, [x21, #24]
	cmp	x8, #1
	b.lt	LBB0_61
; %bb.58:
	ldr	w9, [x19]
	cbz	w9, LBB0_60
; %bb.59:
	ldr	x9, [x21, #8]
	mul	x8, x9, x8
LBB0_60:
	mov	w0, #0
	ldr	x9, [x21, #32]
	sub	x8, x27, x8
	add	x8, x8, x9
	str	x8, [x21, #32]
	b	LBB0_62
LBB0_61:
	mov	w0, #0
LBB0_62:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_63:
	ldr	x8, [x21, #40]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.le	LBB0_66
; %bb.64:
	cmp	x22, #1
	b.lt	LBB0_68
; %bb.65:
	sub	x9, x27, x22
	add	x8, x9, x8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	csel	x8, x8, x9, gt
	b	LBB0_56
LBB0_66:
	cmp	x24, #1
	b.lt	LBB0_68
; %bb.67:
	sub	x9, x27, x24
	add	x8, x9, x8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	csel	x8, x8, x9, lt
	b	LBB0_56
LBB0_68:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	b	LBB0_56
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKETBLOBS,4,2                ; @PACKETBLOBS
.subsections_via_symbols
