	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mapping0_unpack
_mapping0_unpack:                       ## @mapping0_unpack
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	$1, %r12d
	movl	$1, %edi
	movl	$48, %esi
	callq	__ogg_calloc
	movq	%rax, %r13
	movq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_oggpack_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_oggpack_read
	movl	%eax, %r12d
	incl	%r12d
LBB0_2:
	movl	%r12d, (%r13)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_oggpack_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_oggpack_read
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%r13)
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movl	(%r15), %edi
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	callq	_ilog
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_oggpack_read
	movl	%eax, %ebx
	movq	8(%r13), %rax
	movl	%ebx, (%rax,%r12,4)
	movl	(%r15), %edi
	callq	_ilog
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_oggpack_read
	movq	16(%r13), %rcx
	movl	%eax, (%rcx,%r12,4)
	testl	%ebx, %ebx
	js	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, %eax
	js	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %ebx
	je	LBB0_23
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %edi
	cmpl	%edi, %ebx
	jge	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%edi, %eax
	jge	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movslq	4(%r13), %rax
	cmpq	%rax, %r12
	jl	LBB0_6
LBB0_11:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_oggpack_read
	testl	%eax, %eax
	jle	LBB0_12
LBB0_23:
	movq	%r13, %rdi
	callq	_mapping0_free_info
	xorl	%r13d, %r13d
LBB0_24:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r13), %ecx
	cmpl	$2, %ecx
	jl	LBB0_17
## %bb.13:
	cmpl	$0, (%r15)
	jle	LBB0_18
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_oggpack_read
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_16
LBB0_17:
	testl	%ecx, %ecx
	jle	LBB0_24
LBB0_18:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_oggpack_read
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	jge	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_oggpack_read
	movq	32(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	4(%rcx), %eax
	jge	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_oggpack_read
	movq	40(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	8(%rcx), %eax
	jge	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_20
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mapping0_unpack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mapping0_unpack
_mapping0_unpack:                       ; @mapping0_unpack
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
	mov	w22, #1
	mov	w0, #1
	mov	w1, #48
	bl	__ogg_calloc
	mov	x19, x0
	ldr	x23, [x21, #8]
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	x0, x20
	mov	w1, #1
	bl	_oggpack_read
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #4
	bl	_oggpack_read
	add	w22, w0, #1
LBB0_2:
	str	w22, [x19]
	mov	x0, x20
	mov	w1, #1
	bl	_oggpack_read
	cbz	w0, LBB0_11
; %bb.3:
	mov	x0, x20
	mov	w1, #8
	bl	_oggpack_read
	add	w8, w0, #1
	str	w8, [x19, #4]
	tbnz	w0, #31, LBB0_11
; %bb.4:
	mov	x24, #0
	ldr	w0, [x21]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ilog
	mov	x1, x0
	mov	x0, x20
	bl	_oggpack_read
	mov	x22, x0
	ldr	x8, [x19, #8]
	lsl	x25, x24, #2
	str	w0, [x8, x25]
	ldr	w0, [x21]
	bl	_ilog
	mov	x1, x0
	mov	x0, x20
	bl	_oggpack_read
	ldr	x9, [x19, #16]
	str	w0, [x9, x25]
	tbnz	w22, #31, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x0
	tbnz	w0, #31, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, w8
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	cmp	w22, w0
	b.ge	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, w0
	b.ge	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19, #4]
	cmp	x24, x8
	b.lt	LBB0_5
LBB0_11:
	mov	x0, x20
	mov	w1, #2
	bl	_oggpack_read
	cmp	w0, #0
	b.le	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_mapping0_free_info
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	w8, [x19]
	cmp	w8, #1
	b.le	LBB0_19
; %bb.15:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
	mov	x22, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #4
	bl	_oggpack_read
	ldr	x8, [x19, #24]
	str	w0, [x8, x22, lsl #2]
	ldr	w8, [x19]
	cmp	w0, w8
	b.ge	LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x21]
	cmp	x22, x9
	b.lt	LBB0_17
LBB0_19:
	cmp	w8, #1
	b.lt	LBB0_13
LBB0_20:
	mov	x21, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_oggpack_read
	ldr	w8, [x23]
	cmp	w0, w8
	b.ge	LBB0_12
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_oggpack_read
	ldr	x8, [x19, #32]
	str	w0, [x8, x21, lsl #2]
	ldr	w8, [x23, #4]
	cmp	w0, w8
	b.ge	LBB0_12
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_oggpack_read
	ldr	x8, [x19, #40]
	str	w0, [x8, x21, lsl #2]
	ldr	w8, [x23, #8]
	cmp	w0, w8
	b.ge	LBB0_12
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_21
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mapping0_unpack
.subsections_via_symbols
