	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res0_unpack                    ## -- Begin function res0_unpack
	.p2align	4, 0x90
_res0_unpack:                           ## @res0_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, %r15
	movq	%rdi, %rbx
	movl	$1, %edi
	movl	$48, %esi
	callq	__ogg_calloc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_oggpack_read
	movl	%eax, (%r14)
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_oggpack_read
	movl	%eax, 4(%r14)
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_oggpack_read
	incl	%eax
	movl	%eax, 8(%r14)
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_oggpack_read
	incl	%eax
	movl	%eax, 12(%r14)
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_oggpack_read
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	js	LBB0_25
## %bb.1:
	cmpl	$0, 12(%r14)
	jle	LBB0_24
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rax
	movl	%ebx, (%rax,%r12,4)
	movl	%ebx, %edi
	callq	_icount
	addl	%eax, %r13d
	incq	%r12
	movslq	12(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_oggpack_read
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_oggpack_read
	testl	%eax, %eax
	js	LBB0_25
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_oggpack_read
	testl	%eax, %eax
	js	LBB0_25
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	shll	$3, %eax
	orl	%eax, %ebx
	jmp	LBB0_7
LBB0_24:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	jge	LBB0_25
LBB0_14:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rbx
LBB0_15:
	cltq
	movq	(%rbx,%rax,8), %rcx
	movl	12(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_25
## %bb.16:
	movl	8(%rcx), %ecx
	movl	12(%r14), %edx
	incl	%eax
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	imull	%edx, %esi
	cmpl	%ecx, %esi
	jg	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_22 Depth=1
	decl	%eax
	cmpl	$2, %eax
	jge	LBB0_22
## %bb.23:
	movl	%esi, 40(%r14)
	jmp	LBB0_26
LBB0_8:
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.9:
	movl	%r13d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_oggpack_read
	testl	%eax, %eax
	js	LBB0_25
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_10
LBB0_12:
	movl	16(%r14), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_25
## %bb.13:
	testl	%r13d, %r13d
	jle	LBB0_14
## %bb.17:
	movq	32(%r14), %rdx
	movl	%r13d, %r8d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rdx,%rdi,4), %rsi
	cmpl	%ecx, %esi
	jge	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rbx
	movq	(%rbx,%rsi,8), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rdi
	cmpq	%rdi, %r8
	jne	LBB0_18
	jmp	LBB0_15
LBB0_25:
	movq	%r14, %rdi
	callq	_res0_free_info
	xorl	%r14d, %r14d
LBB0_26:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_unpack                    ; -- Begin function res0_unpack
	.p2align	2
_res0_unpack:                           ; @res0_unpack
	.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	x20, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #48
	bl	__ogg_calloc
	mov	x19, x0
	ldr	x22, [x21]
	mov	x0, x20
	mov	w1, #24
	bl	_oggpack_read
	str	w0, [x19]
	mov	x0, x20
	mov	w1, #24
	bl	_oggpack_read
	str	w0, [x19, #4]
	mov	x0, x20
	mov	w1, #24
	bl	_oggpack_read
	add	w8, w0, #1
	str	w8, [x19, #8]
	mov	x0, x20
	mov	w1, #6
	bl	_oggpack_read
	add	w8, w0, #1
	str	w8, [x19, #12]
	mov	x0, x20
	mov	w1, #8
	bl	_oggpack_read
	str	w0, [x19, #16]
	tbnz	w0, #31, LBB0_25
; %bb.1:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x24, #0
	mov	w23, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	str	w21, [x8, x24, lsl #2]
	mov	x0, x21
	bl	_icount
	add	w23, w23, w0
	add	x24, x24, #1
	ldrsw	x8, [x19, #12]
	cmp	x24, x8
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #3
	bl	_oggpack_read
	mov	x21, x0
	mov	x0, x20
	mov	w1, #1
	bl	_oggpack_read
	tbnz	w0, #31, LBB0_25
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #5
	bl	_oggpack_read
	tbnz	w0, #31, LBB0_25
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	w21, w21, w0, lsl #3
	b	LBB0_3
LBB0_8:
	ldr	w8, [x22]
	cmp	w0, w8
	b.ge	LBB0_25
LBB0_9:
	ldr	x10, [x22, #8]
LBB0_10:
	ldr	x8, [x10, w0, sxtw #3]
	ldr	w10, [x8, #12]
	cmp	w10, #1
	b.lt	LBB0_25
; %bb.11:
	ldr	w8, [x8, #8]
	ldr	w9, [x19, #12]
	add	w11, w10, #1
	mov	w10, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mul	w10, w9, w10
	cmp	w10, w8
	b.gt	LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w11, w11, #1
	cmp	w11, #2
	b.ge	LBB0_12
; %bb.14:
	str	w10, [x19, #40]
	b	LBB0_26
LBB0_15:
	cmp	w23, #1
	b.lt	LBB0_19
; %bb.16:
	mov	x21, #0
	lsl	x24, x23, #2
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_oggpack_read
	tbnz	w0, #31, LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19, #32]
	str	w0, [x8, x21]
	add	x21, x21, #4
	cmp	x24, x21
	b.ne	LBB0_17
LBB0_19:
	ldr	w0, [x19, #16]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ge	LBB0_25
; %bb.20:
	cmp	w23, #0
	b.le	LBB0_9
; %bb.21:
	ldr	x9, [x19, #32]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x11, [x9]
	cmp	w11, w8
	b.ge	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x10, [x22, #8]
	ldr	x11, [x10, x11, lsl #3]
	ldr	x11, [x11]
	cbz	x11, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x9, x9, #4
	subs	x23, x23, #1
	b.ne	LBB0_22
	b	LBB0_10
LBB0_25:
	mov	x0, x19
	bl	_res0_free_info
	mov	x19, #0
LBB0_26:
	mov	x0, x19
	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
