	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpack_intraframe
_unpack_intraframe:                     ## @unpack_intraframe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movl	$0, -60(%rbp)
	movl	$0, -56(%rbp)
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_bytestream2_init
	movq	%r14, %rdi
	callq	_bytestream2_tell
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %eax
	jge	LBB0_39
## %bb.1:
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %r14
	jmp	LBB0_4
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r11, %r14
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_tell
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_39
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
	movq	%r12, %r13
	movq	%r14, %rdi
	leaq	-60(%rbp), %r12
	movq	%r12, %rsi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_getbit
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r13), %eax
	imull	(%r13), %eax
	cmpl	%eax, %r15d
	jge	LBB0_36
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %r12
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movq	8(%r13), %rcx
	movslq	%r15d, %rdx
	incl	%r15d
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_getbit
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_bytestream2_get_le16
	movl	%eax, %ebx
	movq	%r14, %r11
	movl	%eax, %r14d
	sarl	$3, %r14d
	addl	$-8192, %r14d                   ## imm = 0xE000
	andl	$7, %ebx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r11, %rbx
	movq	%r11, %rdi
	callq	_bytestream2_get_byte
	movq	%rbx, %r11
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, %rbx
	testl	%eax, %eax
	movq	%r13, %r12
	jne	LBB0_12
	jmp	LBB0_39
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_getbit
	movq	%rbx, %rdx
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_getbit
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rbx,2), %ebx
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movq	%r14, %r11
	movl	%eax, %r14d
	addl	$-256, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %r12
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	%r15d, %r14d
	js	LBB0_37
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	2(%rbx), %r10d
	leal	(%r14,%r10), %ecx
	movl	4(%r12), %eax
	imull	(%r12), %eax
	cmpl	%eax, %ecx
	jge	LBB0_37
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r10,%r15), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_36
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%r10d, %r10d
	je	LBB0_2
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r13
	movq	8(%r12), %rcx
	movl	%r14d, %edx
	movslq	%r15d, %r15
	incl	%r13d
	cmpl	$7, %r13d
	jb	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rcx,%r15,4), %rax
	leaq	(%rcx,%rdx,4), %rsi
	subq	%rsi, %rax
	cmpq	$32, %rax
	jae	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r11, %r14
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%r10), %esi
	testb	$3, %r10b
	je	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r10d, %edi
	andl	$3, %edi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rdx,4), %eax
	incq	%rdx
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	incq	%rbx
	cmpl	%ebx, %edi
	jne	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_4 Depth=1
	subl	%ebx, %r10d
LBB0_31:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %esi
	jb	LBB0_3
## %bb.32:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rcx,%r15,4), %rax
	addq	$12, %rax
	leaq	(%rcx,%rdx,4), %rcx
	addq	$12, %rcx
	movl	%r10d, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-12(%rcx,%rsi,4), %edi
	movl	%edi, -12(%rax,%rsi,4)
	movl	-8(%rcx,%rsi,4), %edi
	movl	%edi, -8(%rax,%rsi,4)
	movl	-4(%rcx,%rsi,4), %edi
	movl	%edi, -4(%rax,%rsi,4)
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rax,%rsi,4)
	addq	$4, %rsi
	cmpl	%esi, %edx
	jne	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	%rsi, %r15
	jmp	LBB0_3
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	%r13, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_35
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r9, %rdi
	andq	$-2, %rdi
	leaq	(%rcx,%rdx,4), %rsi
	addq	$48, %rsi
	leaq	(%rcx,%r15,4), %rax
	addq	$48, %rax
	xorl	%ebx, %ebx
	movq	%r11, %r14
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-48(%rsi,%rbx,4), %xmm0
	movups	-32(%rsi,%rbx,4), %xmm1
	movups	%xmm0, -48(%rax,%rbx,4)
	movups	%xmm1, -32(%rax,%rbx,4)
	movups	-16(%rsi,%rbx,4), %xmm0
	movups	(%rsi,%rbx,4), %xmm1
	movups	%xmm0, -16(%rax,%rbx,4)
	movups	%xmm1, (%rax,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rdi
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r9b
	je	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%rdx), %rax
	addq	%r15, %rbx
	movups	(%rcx,%rax,4), %xmm0
	movups	16(%rcx,%rax,4), %xmm1
	movups	%xmm0, (%rcx,%rbx,4)
	movups	%xmm1, 16(%rcx,%rbx,4)
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%r8, %r15
	cmpq	%r8, %r13
	je	LBB0_3
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	%r8, %rdx
	subl	%r8d, %r10d
	jmp	LBB0_27
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	movq	%r11, %r14
	testb	$1, %r9b
	jne	LBB0_24
	jmp	LBB0_25
LBB0_36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_38
LBB0_37:
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_38:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_av_log
LBB0_39:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempting to write out of bounds\n"

L_.str.1:                               ## @.str.1
	.asciz	"Attempting to read out of bounds\n"

	.no_dead_strip	_unpack_intraframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpack_intraframe
_unpack_intraframe:                     ; @unpack_intraframe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	x23, [x0]
	stp	wzr, wzr, [sp, #4]
	add	x0, sp, #12
	bl	_bytestream2_init
	add	x0, sp, #12
	bl	_bytestream2_tell
	cmp	w0, w20
	b.ge	LBB0_25
; %bb.1:
	mov	w25, #0
Lloh0:
	adrp	x24, l_.str.1@PAGE
Lloh1:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_tell
	cmp	w0, w20
	b.ge	LBB0_25
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_getbit
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [x23]
	mul	w8, w9, w8
	cmp	w25, w8
	b.ge	LBB0_24
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	ldr	x8, [x23, #8]
	str	w0, [x8, w25, sxtw #2]
	add	w8, w25, #1
	mov	x25, x8
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_getbit
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_le16
	asr	w8, w0, #3
	sub	w26, w8, #2, lsl #12            ; =8192
	and	w22, w0, #0x7
	cbnz	w22, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	mov	x22, x0
	cbnz	w0, LBB0_11
	b	LBB0_25
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_getbit
	mov	x22, x0
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_getbit
	add	w22, w0, w22, lsl #1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	sub	w26, w0, #256
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	adds	w11, w26, w25
	b.mi	LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w22, #2
	ldp	w9, w10, [x23]
	mul	w9, w10, w9
	add	w10, w11, w8
	cmp	w10, w9
	b.ge	LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w10, w8, w25
	cmp	w10, w9
	b.ge	LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w8, LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x23, #8]
	sxtw	x14, w25
	add	w10, w22, #1
	cmp	w10, #15
	b.lo	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x9, x14, lsl #2
	add	x13, x9, x11, lsl #2
	sub	x12, x12, x13
	cmp	x12, #64
	b.hs	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x14
	mov	x10, x11
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x10, x10, #2
	mov	x11, x25
LBB0_19:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x9, x10]
	add	x25, x11, #1
	str	w12, [x9, x11, lsl #2]
	add	x10, x10, #4
	mov	x11, x25
	subs	w8, w8, #1
	b.ne	LBB0_19
	b	LBB0_2
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x10, #1
	and	x13, x12, #0x1fffffff0
	add	x25, x13, x14
	add	x10, x13, x11
	sub	w8, w8, w13
	add	x15, x9, #32
	add	x11, x15, x11, lsl #2
	add	x14, x15, x14, lsl #2
	mov	x15, x13
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x14, #-32]
	stp	q2, q3, [x14], #64
	subs	x15, x15, #16
	b.ne	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, x13
	b.eq	LBB0_2
	b	LBB0_18
LBB0_23:
	mov	x21, x24
LBB0_24:
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_av_log
LBB0_25:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempting to write out of bounds\n"

l_.str.1:                               ; @.str.1
	.asciz	"Attempting to read out of bounds\n"

	.no_dead_strip	_unpack_intraframe
.subsections_via_symbols
