	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mapping0_pack
_mapping0_pack:                         ## @mapping0_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	cmpl	$2, (%rsi)
	jl	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_oggpack_write
	movl	(%r12), %esi
	decl	%esi
	movq	%r14, %rdi
	movl	$4, %edx
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
LBB0_3:
	callq	_oggpack_write
	cmpl	$0, 4(%r12)
	jle	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_oggpack_write
	movl	4(%r12), %esi
	decl	%esi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_oggpack_write
	cmpl	$0, 4(%r12)
	jle	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %r13d
	movl	(%r15), %edi
	callq	_ilog
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_oggpack_write
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %r13d
	movl	(%r15), %edi
	callq	_ilog
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_oggpack_write
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_oggpack_write
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_oggpack_write
	movl	(%r12), %eax
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.9:
	cmpl	$0, (%r15)
	jle	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_oggpack_write
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
## %bb.12:
	movl	(%r12), %eax
LBB0_13:
	testl	%eax, %eax
	jle	LBB0_16
LBB0_14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_oggpack_write
	movq	32(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_oggpack_write
	movq	40(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_oggpack_write
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mapping0_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mapping0_pack
_mapping0_pack:                         ; @mapping0_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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x1]
	mov	x0, x2
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	mov	w1, #1
	mov	w2, #1
	bl	_oggpack_write
	ldr	w8, [x20]
	sub	w1, w8, #1
	mov	x0, x19
	mov	w2, #4
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	mov	w2, #1
LBB0_3:
	bl	_oggpack_write
	ldr	w8, [x20, #4]
	mov	x0, x19
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w1, #1
	mov	w2, #1
	bl	_oggpack_write
	ldr	w8, [x20, #4]
	sub	w1, w8, #1
	mov	x0, x19
	mov	w2, #8
	bl	_oggpack_write
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	lsl	x24, x23, #2
	ldr	w22, [x8, x24]
	ldr	w0, [x21]
	bl	_ilog
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_oggpack_write
	ldr	x8, [x20, #16]
	ldr	w22, [x8, x24]
	ldr	w0, [x21]
	bl	_ilog
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_oggpack_write
	add	x23, x23, #1
	ldrsw	x8, [x20, #4]
	cmp	x23, x8
	b.lt	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w1, #0
	mov	w2, #1
	bl	_oggpack_write
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_oggpack_write
	ldr	w8, [x20]
	cmp	w8, #1
	b.le	LBB0_13
; %bb.9:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	mov	w2, #4
	bl	_oggpack_write
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_11
; %bb.12:
	ldr	w8, [x20]
LBB0_13:
	cmp	w8, #1
	b.lt	LBB0_16
LBB0_14:
	mov	x21, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_oggpack_write
	ldr	x8, [x20, #32]
	lsl	x22, x21, #2
	ldr	w1, [x8, x22]
	mov	x0, x19
	mov	w2, #8
	bl	_oggpack_write
	ldr	x8, [x20, #40]
	ldr	w1, [x8, x22]
	mov	x0, x19
	mov	w2, #8
	bl	_oggpack_write
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_15
LBB0_16:
	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
	.no_dead_strip	_mapping0_pack
.subsections_via_symbols
