	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oggpack_read                   ## -- Begin function oggpack_read
	.p2align	4, 0x90
_oggpack_read:                          ## @oggpack_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	$33, %esi
	jb	LBB0_3
## %bb.1:
	movl	8(%rdi), %eax
LBB0_2:
	movq	$0, 16(%rdi)
	movl	%eax, 4(%rdi)
	movl	$1, (%rdi)
	movq	$-1, %rax
	popq	%rbp
	retq
LBB0_3:
	movq	_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %r9
	movl	(%rdi), %r11d
	movl	4(%rdi), %r8d
	addl	%r11d, %esi
	movl	8(%rdi), %eax
	leal	-4(%rax), %ecx
	cmpl	%ecx, %r8d
	jl	LBB0_7
## %bb.4:
	leal	7(%rsi), %ecx
	sarl	$3, %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	cmpl	%edx, %r8d
	jg	LBB0_2
## %bb.5:
	testl	%esi, %esi
	je	LBB0_6
LBB0_7:
	movq	16(%rdi), %r10
	movq	(%r10), %rax
	movl	%r11d, %ecx
	sarq	%cl, %rax
	cmpl	$9, %esi
	jl	LBB0_13
## %bb.8:
	movq	8(%r10), %rdx
	movb	$8, %cl
	subb	%r11b, %cl
	shlq	%cl, %rdx
	orq	%rdx, %rax
	cmpl	$17, %esi
	jb	LBB0_13
## %bb.9:
	movq	16(%r10), %rdx
	movb	$16, %cl
	subb	%r11b, %cl
	shlq	%cl, %rdx
	orq	%rdx, %rax
	cmpl	$25, %esi
	jb	LBB0_13
## %bb.10:
	movq	24(%r10), %rdx
	movb	$24, %cl
	subb	%r11b, %cl
	shlq	%cl, %rdx
	orq	%rdx, %rax
	testq	%r11, %r11
	je	LBB0_13
## %bb.11:
	cmpl	$33, %esi
	jb	LBB0_13
## %bb.12:
	movq	32(%r10), %rdx
	addq	$32, %r11
	negq	%r11
	movl	%r11d, %ecx
	shlq	%cl, %rdx
	orq	%rdx, %rax
LBB0_13:
	andq	%r9, %rax
	leal	7(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	leaq	(%r10,%rcx,8), %rdx
	movq	%rdx, 16(%rdi)
	addl	%r8d, %ecx
	movl	%ecx, 4(%rdi)
	andl	$7, %esi
	movl	%esi, (%rdi)
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mask,8,3                       ## @mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oggpack_read                   ; -- Begin function oggpack_read
	.p2align	2
_oggpack_read:                          ; @oggpack_read
	.cfi_startproc
; %bb.0:
	cmp	w1, #33
	b.lo	LBB0_3
; %bb.1:
	ldr	w12, [x0, #8]
LBB0_2:
	str	xzr, [x0, #16]
	mov	w8, #1
	stp	w8, w12, [x0]
	mov	x0, #-1
	ret
LBB0_3:
Lloh0:
	adrp	x8, _mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mask@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w1, uxtw #3]
	ldp	w11, w10, [x0]
	add	w9, w11, w1
	ldr	w12, [x0, #8]
	sub	w13, w12, #4
	cmp	w10, w13
	b.lt	LBB0_6
; %bb.4:
	add	w13, w9, #7
	sub	w13, w12, w13, asr #3
	cmp	w10, w13
	b.gt	LBB0_2
; %bb.5:
	cbz	w9, LBB0_13
LBB0_6:
	ldr	x12, [x0, #16]
	ldr	x13, [x12]
	asr	x13, x13, x11
	cmp	w9, #9
	b.lt	LBB0_12
; %bb.7:
	ldr	x14, [x12, #8]
	mov	w15, #8
	sub	w15, w15, w11
	lsl	x14, x14, x15
	orr	x13, x14, x13
	cmp	w9, #17
	b.lo	LBB0_12
; %bb.8:
	ldr	x14, [x12, #16]
	mov	w15, #16
	sub	w15, w15, w11
	lsl	x14, x14, x15
	orr	x13, x14, x13
	cmp	w9, #25
	b.lo	LBB0_12
; %bb.9:
	ldr	x14, [x12, #24]
	mov	w15, #24
	sub	w15, w15, w11
	lsl	x14, x14, x15
	orr	x13, x14, x13
	cbz	w11, LBB0_12
; %bb.10:
	cmp	w9, #33
	b.lo	LBB0_12
; %bb.11:
	ldr	x14, [x12, #32]
	mov	w15, #32
	sub	w11, w15, w11
	lsl	x11, x14, x11
	orr	x13, x11, x13
LBB0_12:
	and	x8, x13, x8
	add	w11, w9, #7
	cmp	w9, #0
	csel	w11, w11, w9, lt
	asr	w11, w11, #3
	add	x12, x12, w11, sxtw #3
	str	x12, [x0, #16]
	add	w10, w11, w10
	and	w9, w9, #0x7
	stp	w9, w10, [x0]
	mov	x0, x8
	ret
LBB0_13:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mask,8,3                       ; @mask
.subsections_via_symbols
