	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oggpack_adv                    ## -- Begin function oggpack_adv
	.p2align	4, 0x90
_oggpack_adv:                           ## @oggpack_adv
	.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	(%rdi), %eax
	movl	4(%rdi), %r8d
	movl	8(%rdi), %r9d
	leal	(%rax,%rsi), %ecx
	addl	$7, %ecx
	sarl	$3, %ecx
	movl	%r9d, %edx
	subl	%ecx, %edx
	cmpl	%edx, %r8d
	jle	LBB0_1
## %bb.2:
	movq	$0, 16(%rdi)
	movl	%r9d, 4(%rdi)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	addl	%esi, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	leaq	(,%rcx,4), %rdx
	addq	%rdx, 16(%rdi)
	addl	%r8d, %ecx
	movl	%ecx, 4(%rdi)
	andl	$7, %eax
LBB0_3:
	movl	%eax, (%rdi)
	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	_oggpack_adv                    ; -- Begin function oggpack_adv
	.p2align	2
_oggpack_adv:                           ; @oggpack_adv
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0]
	add	w8, w8, w1
	ldr	w10, [x0, #8]
	add	w11, w8, #7
	sub	w12, w10, w11, asr #3
	cmp	w9, w12
	b.le	LBB0_2
; %bb.1:
	str	xzr, [x0, #16]
	mov	w8, #1
	stp	w8, w10, [x0]
	ret
LBB0_2:
	cmp	w8, #0
	csel	w10, w11, w8, lt
	asr	w10, w10, #3
	ldr	x11, [x0, #16]
	add	x11, x11, w10, sxtw #2
	str	x11, [x0, #16]
	add	w9, w10, w9
	and	w8, w8, #0x7
	stp	w8, w9, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
