	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oggpackB_read                  ## -- Begin function oggpackB_read
	.p2align	4, 0x90
_oggpackB_read:                         ## @oggpackB_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
	movl	$32, %eax
	subl	%esi, %eax
	jae	LBB0_3
## %bb.1:
	movl	8(%rdi), %edx
LBB0_2:
	movq	$0, 16(%rdi)
	movl	%edx, 4(%rdi)
	movl	$1, (%rdi)
	movq	$-1, %rax
	popq	%rbp
	retq
LBB0_3:
	movl	(%rdi), %r10d
	movl	4(%rdi), %r8d
	addl	%r10d, %esi
	leal	4(%r8), %ecx
	movl	8(%rdi), %edx
	cmpl	%edx, %ecx
	jl	LBB0_7
## %bb.4:
	leal	7(%rsi), %r9d
	sarl	$3, %r9d
	movl	%edx, %ecx
	subl	%r9d, %ecx
	cmpl	%ecx, %r8d
	jg	LBB0_2
## %bb.5:
	testl	%esi, %esi
	je	LBB0_6
LBB0_7:
	movslq	%eax, %rdx
	movq	16(%rdi), %r9
	movl	(%r9), %r11d
	leal	24(%r10), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r11d
	cmpl	$9, %esi
	jl	LBB0_13
## %bb.8:
	movl	4(%r9), %eax
	leal	16(%r10), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, %r11d
	cmpl	$17, %esi
	jb	LBB0_13
## %bb.9:
	movl	8(%r9), %eax
	leal	8(%r10), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, %r11d
	cmpl	$25, %esi
	jb	LBB0_13
## %bb.10:
	movl	12(%r9), %eax
	movl	%r10d, %ecx
	shll	%cl, %eax
	orl	%eax, %r11d
	testl	%r10d, %r10d
	je	LBB0_13
## %bb.11:
	cmpl	$33, %esi
	jb	LBB0_13
## %bb.12:
	movl	16(%r9), %eax
	movb	$8, %cl
	subb	%r10b, %cl
	sarl	%cl, %eax
	orl	%eax, %r11d
LBB0_13:
	movl	%r11d, %eax
	movq	%rdx, %rcx
	shrq	%rcx
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rax
	incl	%edx
	shrl	%edx
	movl	%edx, %ecx
	shrq	%cl, %rax
	leal	7(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	leaq	(%r9,%rcx,4), %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
.subsections_via_symbols

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