	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res0_pack                      ## -- Begin function res0_pack
	.p2align	4, 0x90
_res0_pack:                             ## @res0_pack
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_oggpack_write
	movl	4(%r15), %esi
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_oggpack_write
	movl	8(%r15), %esi
	decl	%esi
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_oggpack_write
	movl	12(%r15), %esi
	decl	%esi
	movq	%r14, %rdi
	movl	$6, %edx
	callq	_oggpack_write
	movl	16(%r15), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_oggpack_write
	cmpl	$0, 12(%r15)
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$4, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_oggpack_write
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_icount
	addl	%eax, %r12d
	incq	%rbx
	movslq	12(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_4
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_ilog
	movq	24(%r15), %rcx
	movl	(%rcx,%rbx,4), %esi
	movq	%r14, %rdi
	cmpl	$4, %eax
	jl	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$3, %edx
	callq	_oggpack_write
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_oggpack_write
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	sarl	$3, %esi
	movq	%r14, %rdi
	movl	$5, %edx
	jmp	LBB0_9
LBB0_4:
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.5:
	movl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_oggpack_write
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	_res0_pack                      ; -- Begin function res0_pack
	.p2align	2
_res0_pack:                             ; @res0_pack
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x0]
	mov	x0, x19
	mov	w2, #24
	bl	_oggpack_write
	ldr	w1, [x20, #4]
	mov	x0, x19
	mov	w2, #24
	bl	_oggpack_write
	ldr	w8, [x20, #8]
	sub	w1, w8, #1
	mov	x0, x19
	mov	w2, #24
	bl	_oggpack_write
	ldr	w8, [x20, #12]
	sub	w1, w8, #1
	mov	x0, x19
	mov	w2, #6
	bl	_oggpack_write
	ldr	w1, [x20, #16]
	mov	x0, x19
	mov	w2, #8
	bl	_oggpack_write
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x22, #0
	mov	w21, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w2, #4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_oggpack_write
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x22, lsl #2]
	bl	_icount
	add	w21, w21, w0
	add	x22, x22, #1
	ldrsw	x8, [x20, #12]
	cmp	x22, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	lsl	x23, x22, #2
	ldr	w0, [x8, x23]
	bl	_ilog
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x23]
	cmp	w0, #4
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w2, #3
	bl	_oggpack_write
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_oggpack_write
	ldr	x8, [x20, #24]
	ldr	w8, [x8, x22, lsl #2]
	asr	w1, w8, #3
	mov	x0, x19
	mov	w2, #5
	b	LBB0_3
LBB0_6:
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
	lsl	x21, x21, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	w1, [x8, x22]
	mov	x0, x19
	mov	w2, #8
	bl	_oggpack_write
	add	x22, x22, #4
	cmp	x21, x22
	b.ne	LBB0_8
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
