	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oggpack_look                   ## -- Begin function oggpack_look
	.p2align	4, 0x90
_oggpack_look:                          ## @oggpack_look
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rbx
	movq	(%rax,%rbx,8), %rdi
	movl	(%r15), %eax
	movl	4(%r15), %r12d
	addl	%eax, %ebx
	leal	(,%r12,8), %ecx
	movq	8(%r15), %rsi
	cmpl	%ecx, %ebx
	jge	LBB0_1
## %bb.11:
	movzbl	(%rsi), %r14d
	movl	%eax, %ecx
	shrq	%cl, %r14
	cmpl	$9, %ebx
	jl	LBB0_18
## %bb.12:
	movzbl	1(%rsi), %edx
	movb	$8, %cl
	subb	%al, %cl
	shll	%cl, %edx
	movslq	%edx, %rdx
	orq	%r14, %rdx
	cmpl	$17, %ebx
	jb	LBB0_17
## %bb.13:
	movzbl	2(%rsi), %r8d
	movb	$16, %cl
	subb	%al, %cl
	shll	%cl, %r8d
	movslq	%r8d, %rcx
	orq	%rcx, %rdx
	cmpl	$25, %ebx
	jb	LBB0_17
## %bb.14:
	movzbl	3(%rsi), %r8d
	movb	$24, %cl
	subb	%al, %cl
	shll	%cl, %r8d
	movslq	%r8d, %rcx
	orq	%rcx, %rdx
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	cmpl	$33, %ebx
	jb	LBB0_17
## %bb.16:
	movzbl	4(%rsi), %esi
	negb	%al
	movl	%eax, %ecx
	shll	%cl, %esi
	movslq	%esi, %rax
	orq	%rax, %rdx
LBB0_17:
	movq	%rdx, %r14
	jmp	LBB0_18
LBB0_1:
	movq	$-1, %r13
	movq	$-1, %r14
	testl	%r12d, %r12d
	js	LBB0_10
## %bb.2:
	movq	$-1, %r14
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.3:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	__lookspan
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax), %r14d
	movb	(%r15), %cl
	shrq	%cl, %r14
	cmpl	$9, %ebx
	jl	LBB0_9
## %bb.4:
	xorl	%eax, %eax
	callq	__lookspan
	movb	$8, %cl
	subb	(%r15), %cl
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movzbl	1(%rax), %eax
	shll	%cl, %eax
	cltq
	orq	%r14, %rax
	movq	%rax, %r14
	cmpl	$17, %ebx
	jb	LBB0_9
## %bb.5:
	xorl	%eax, %eax
	callq	__lookspan
	movb	$16, %cl
	subb	(%r15), %cl
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movzbl	2(%rax), %eax
	shll	%cl, %eax
	cltq
	orq	%rax, %r14
	cmpl	$25, %ebx
	jb	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	callq	__lookspan
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movzbl	3(%rsi), %edx
	movl	(%r15), %eax
	movb	$24, %cl
	subb	%al, %cl
	shll	%cl, %edx
	movslq	%edx, %rcx
	orq	%rcx, %r14
	cmpl	$33, %ebx
	jb	LBB0_9
## %bb.7:
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	__lookspan
	subb	(%r15), %bl
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movzbl	4(%rax), %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	cltq
	orq	%rax, %r14
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:
	testl	%r12d, %r12d
	js	LBB0_19
LBB0_18:
	andq	%rdi, %r14
	movq	%r14, %r13
LBB0_19:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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_look                   ; -- Begin function oggpack_look
	.p2align	2
_oggpack_look:                          ; @oggpack_look
	.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
Lloh0:
	adrp	x8, _mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mask@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x20, [x8, w1, sxtw #3]
	ldp	w8, w24, [x0]
	add	w23, w8, w1
	ldr	x22, [x0, #8]
	cmp	w23, w24, lsl #3
	b.ge	LBB0_7
; %bb.1:
	ldrb	w9, [x22]
	lsr	x21, x9, x8
	cmp	w23, #9
	b.lt	LBB0_16
; %bb.2:
	ldrb	w9, [x22, #1]
	mov	w10, #8
	sub	w10, w10, w8
	lsl	w9, w9, w10
	sxtw	x9, w9
	orr	x21, x9, x21
	cmp	w23, #17
	b.lo	LBB0_16
; %bb.3:
	ldrb	w9, [x22, #2]
	mov	w10, #16
	sub	w10, w10, w8
	lsl	w9, w9, w10
	sxtw	x9, w9
	orr	x21, x21, x9
	cmp	w23, #25
	b.lo	LBB0_16
; %bb.4:
	ldrb	w9, [x22, #3]
	mov	w10, #24
	sub	w10, w10, w8
	lsl	w9, w9, w10
	sxtw	x9, w9
	orr	x21, x21, x9
	cbz	w8, LBB0_16
; %bb.5:
	cmp	w23, #33
	b.lo	LBB0_16
; %bb.6:
	ldrb	w9, [x22, #4]
	neg	w8, w8
	lsl	w8, w9, w8
	sxtw	x8, w8
	orr	x21, x21, x8
	b	LBB0_16
LBB0_7:
	mov	x21, #-1
	tbnz	w24, #31, LBB0_15
; %bb.8:
	cbz	w23, LBB0_15
; %bb.9:
	mov	x19, x0
	bl	__lookspan
	ldrb	w8, [x22]
	ldr	w9, [x19]
	lsr	x21, x8, x9
	cmp	w23, #9
	b.lt	LBB0_15
; %bb.10:
	bl	__lookspan
	ldrb	w8, [x22, #1]
	ldr	w9, [x19]
	mov	w10, #8
	sub	w9, w10, w9
	lsl	w8, w8, w9
	sxtw	x8, w8
	orr	x21, x8, x21
	cmp	w23, #17
	b.lo	LBB0_15
; %bb.11:
	bl	__lookspan
	ldrb	w8, [x22, #2]
	ldr	w9, [x19]
	mov	w10, #16
	sub	w9, w10, w9
	lsl	w8, w8, w9
	sxtw	x8, w8
	orr	x21, x21, x8
	cmp	w23, #25
	b.lo	LBB0_15
; %bb.12:
	bl	__lookspan
	ldrb	w9, [x22, #3]
	ldr	w8, [x19]
	mov	w10, #24
	sub	w10, w10, w8
	lsl	w9, w9, w10
	sxtw	x9, w9
	orr	x21, x21, x9
	cmp	w23, #33
	b.lo	LBB0_15
; %bb.13:
	cbz	w8, LBB0_15
; %bb.14:
	bl	__lookspan
	ldrb	w8, [x22, #4]
	ldr	w9, [x19]
	neg	w9, w9
	lsl	w8, w8, w9
	sxtw	x8, w8
	orr	x21, x21, x8
LBB0_15:
	tbnz	w24, #31, LBB0_18
LBB0_16:
	and	x0, x21, x20
LBB0_17:
	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
LBB0_18:
	mov	x0, #-1
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mask,8,3                       ; @mask
.subsections_via_symbols
