	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpack
_unpack:                                ## @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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leaq	20(%rdi), %rbx
	leaq	8(%rdi), %rax
	testb	$1, (%rdi)
	cmoveq	%rax, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rax
	subq	%rbx, %rax
	cmpq	$11, %rax
	jg	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_2:
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rbx, %rdi
	callq	_AV_RB24
	testl	%eax, %eax
	jle	LBB0_21
## %bb.3:
	addq	$12, %rbx
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	jae	LBB0_21
## %bb.4:
	movl	%eax, %r13d
	imull	%r15d, %r14d
	movslq	%r14d, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	(%rbx), %r12d
	movl	%r12d, %r13d
	andl	$3, %r13d
	testb	$-128, %r12b
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %eax
	andl	$96, %eax
	movl	4(%rbx), %ecx
	leal	(%rcx,%rax,8), %eax
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	shrl	$2, %r12d
	andl	$7, %r12d
	addl	$3, %r12d
	movl	$2, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	testb	$64, %r12b
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	4(%rbx), %rdi
	movl	4(%rbx), %r13d
	shrl	$6, %r13d
	andl	$3, %r13d
	callq	_AV_RB16
	andl	$16383, %eax                    ## imm = 0x3FFF
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %r12d
	andl	$63, %r12d
	addl	$4, %r12d
	movl	$3, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	testb	$32, %r12b
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	andl	$16, %r12d
	shll	$12, %r12d
	leaq	4(%rbx), %rdi
	callq	_AV_RB16
                                        ## kill: def $eax killed $eax def $rax
	addl	%r12d, %eax
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	12(%rbx), %ecx
	andl	$12, %eax
	shll	$6, %eax
	leal	(%rcx,%rax), %r12d
	addl	$5, %r12d
	movl	$4, %eax
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %eax
	andl	$31, %eax
	cmpl	$252, %r12d
	leal	4(,%rax,4), %eax
	cmovll	%eax, %r13d
	xorl	%r12d, %r12d
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rbx,%rax,4), %rbx
	movl	%r13d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subq	%rbx, %rcx
	sarq	$2, %rcx
	cmpq	%rax, %rcx
	jl	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	subl	%r13d, -48(%rbp)                ## 4-byte Folded Spill
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	subq	%r15, %rsi
	shrq	$2, %rsi
	movl	%r13d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movslq	%r14d, %rax
	leaq	(%r15,%rax,4), %r15
	leaq	(%rbx,%rax,4), %rbx
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	subq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	sarq	$2, %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movslq	%r14d, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	subl	%r12d, %r13d
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	subq	%r15, %rsi
	shrq	$2, %rsi
	movl	%r12d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_av_memcpy_backptr
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %r15
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testl	%r13d, %r13d
	jg	LBB0_20
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	jle	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	jb	LBB0_5
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_unpack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpack
_unpack:                                ; @unpack
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldrb	w8, [x0]
	tst	w8, #0x1
	mov	w8, #20
	mov	w9, #8
	csel	x8, x9, x8, eq
	add	x22, x0, x8
	sub	x8, x1, x22
	cmp	x8, #11
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_2:
	mov	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x0, x22
	bl	_AV_RB24
	add	x22, x22, #12
	cmp	w0, #1
	ccmp	x22, x20, #2, ge
	b.lo	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x21, x0
	mul	w8, w23, w24
	add	x27, x19, w8, sxtw #2
                                        ; implicit-def: $w24
	mov	x23, x19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	and	w25, w8, #0x3
	tbnz	w8, #7, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w9, w8, #3
	and	w9, w9, #0x300
	ldr	w10, [x22, #4]
	add	w9, w10, w9
	add	w24, w9, #1
	ubfx	w8, w8, #2, #3
	add	w26, w8, #3
	mov	w8, #2
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w8, #6, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	ldr	w8, [x0, #4]!
	ubfx	w25, w8, #6, #2
	bl	_AV_RB16
	and	w8, w0, #0x3fff
	add	w24, w8, #1
	ldr	w8, [x22]
	and	w8, w8, #0x3f
	add	w26, w8, #4
	mov	w8, #3
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w8, #5, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	lsl	w8, w8, #12
	and	w24, w8, #0x10000
	add	x0, x22, #4
	bl	_AV_RB16
	add	w8, w0, w24
	add	w24, w8, #1
	ldr	w8, [x22]
	lsl	w8, w8, #6
	and	w8, w8, #0x300
	ldr	w9, [x22, #12]
	add	w8, w9, w8
	add	w26, w8, #5
	mov	w8, #4
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #0
	ubfiz	w9, w8, #2, #5
	add	w9, w9, #4
	cmp	w8, #252
	csel	w25, w9, w25, lt
	mov	w8, #1
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, x8, lsl #2
	mov	w8, w25
	sub	x9, x20, x22
	cmp	x8, x9, asr #2
	b.gt	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w25, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w21, w21, w25
	sub	x8, x27, x23
	lsr	x1, x8, #2
	mov	x0, x25
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FFMIN
	mov	x25, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	bl	_memcpy
	sbfiz	x8, x25, #2, #32
	add	x23, x23, x8
	add	x22, x22, x8
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w26, #1
	b.lt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	x8, x23, x19
	sxtw	x9, w24
	cmp	x9, x8, asr #2
	b.gt	LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w21, w21, w26
	sub	x8, x27, x23
	lsr	x1, x8, #2
	mov	x0, x26
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FFMIN
	mov	x25, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_av_memcpy_backptr
	add	x23, x23, w25, sxtw #2
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x22, x20
	b.lo	LBB0_6
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_unpack
.subsections_via_symbols
