	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_interframe_v4a
_decode_interframe_v4a:                 ## @decode_interframe_v4a
	.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, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_bytestream2_init
	movq	%r14, %rdi
	callq	_bytestream2_tell
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %rax
	jae	LBB0_27
## %bb.1:
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %r15
	jmp	LBB0_5
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rax
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	%rax, %r13
	movq	8(%r12), %rax
	imulq	(%r12), %rax
	cmpq	%rax, %r13
	ja	LBB0_24
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_tell
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_27
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	%r15, %rdi
	callq	_bytestream2_peek_byte
	movl	%eax, %ebx
	movq	%r15, %rdi
	andl	$63, %ebx
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_bytestream2_peek_byte
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_bytestream2_peek_byte
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_le16
	addq	%r13, %rax
	testb	$-128, %r14b
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$65536, %rax                    ## imm = 0x10000
	jb	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$-65536, %rax                   ## imm = 0xFFFF0000
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rcx
	movl	%ebx, %edx
	addq	%rcx, %rdx
	leaq	(%rdx,%rax), %rsi
	imulq	8(%r12), %rcx
	cmpq	%rcx, %rsi
	jae	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	%r13, %rdx
	cmpq	%rcx, %rdx
	jae	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	testb	$64, -60(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rcx
	incl	%ebx
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rax,8), %rdx
	movq	%rdx, (%rcx,%r13,8)
	movq	(%r12), %rdx
	leaq	(%rax,%rdx), %rsi
	movq	(%rcx,%rsi,8), %rsi
	addq	%r13, %rdx
	movq	%rsi, (%rcx,%rdx,8)
	incq	%r13
	incq	%rax
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	callq	_bytestream2_get_byte
	shrl	$6, %eax
	andl	$3, %eax
	cmpl	$2, %eax
	je	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, %eax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jne	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rcx
	movq	24(%r12), %rdx
	incl	%ebx
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rax,8), %rsi
	movq	%rsi, (%rcx,%r13,8)
	movq	(%r12), %rsi
	leaq	(%rax,%rsi), %rdi
	movq	(%rdx,%rdi,8), %rdi
	addq	%r13, %rsi
	movq	%rdi, (%rcx,%rsi,8)
	incq	%r13
	incq	%rax
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_19
	jmp	LBB0_4
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rax
	leaq	(%rax,%r13), %rcx
	imulq	8(%r12), %rax
	cmpq	%rax, %rcx
	jae	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	16(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	16(%r12), %rcx
	movq	(%r12), %rdx
	addq	%r13, %rdx
	movq	%rax, (%rcx,%rdx,8)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_26
LBB0_23:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_25
LBB0_24:
	leaq	L_.str(%rip), %rdx
LBB0_25:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_26:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_av_log
LBB0_27:
	addq	$40, %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	"writeoffset out of bounds\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Attempting to write out of bounds\n"

	.no_dead_strip	_decode_interframe_v4a
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_interframe_v4a
_decode_interframe_v4a:                 ; @decode_interframe_v4a
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	x24, [x0]
	add	x0, sp, #12
	bl	_bytestream2_init
	add	x0, sp, #12
	bl	_bytestream2_tell
	cmp	x0, x20
	b.hs	LBB0_24
; %bb.1:
	mov	x25, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x26, l_.str.1@PAGE
Lloh3:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh4:
	adrp	x27, l_.str.2@PAGE
Lloh5:
	add	x27, x27, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x24]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x24]
	mul	x8, x9, x8
	add	x25, x0, x25
	cmp	x25, x8
	b.hi	LBB0_23
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_tell
	cmp	x0, x20
	b.hs	LBB0_24
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	ands	w28, w0, #0x3f
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	mov	x23, x0
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	mov	x22, x0
	add	x0, sp, #12
	mov	w1, #1
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_le16
	add	x8, x0, x25
	tbz	w23, #7, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	subs	x8, x8, #16, lsl #12            ; =65536
	b.lo	LBB0_21
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	x9, x11, [x24]
	add	x10, x9, w28, uxtw
	mul	x9, x11, x9
	add	x11, x10, x8
	cmp	x11, x9
	b.hs	LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, x25
	cmp	x10, x9
	b.hs	LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w22, #6, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x24, #16]
	add	w10, w28, #1
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x9, x8, lsl #3]
	str	x11, [x9, x25, lsl #3]
	ldr	x11, [x24]
	add	x12, x8, x11
	ldr	x12, [x9, x12, lsl #3]
	add	x11, x25, x11
	str	x12, [x9, x11, lsl #3]
	add	x25, x25, #1
	add	x8, x8, #1
	sub	w10, w10, #1
	cmp	w10, #1
	b.hi	LBB0_12
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	ubfx	w8, w0, #6, #2
	cmp	w8, #2
	b.eq	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #1
	b.eq	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	b	LBB0_3
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x10, x9, [x24, #16]
	add	w11, w28, #1
LBB0_18:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x9, x8, lsl #3]
	str	x12, [x10, x25, lsl #3]
	ldr	x12, [x24]
	add	x13, x8, x12
	ldr	x13, [x9, x13, lsl #3]
	add	x12, x25, x12
	str	x13, [x10, x12, lsl #3]
	add	x25, x25, #1
	add	x8, x8, #1
	sub	w11, w11, #1
	cmp	w11, #1
	b.hi	LBB0_18
	b	LBB0_4
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x24]
	mul	x9, x9, x8
	add	x8, x8, x25
	cmp	x8, x9
	b.hs	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	ldr	x8, [x24, #16]
	str	x0, [x8, x25, lsl #3]
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	ldr	x8, [x24, #16]
	ldr	x9, [x24]
	add	x9, x9, x25
	str	x0, [x8, x9, lsl #3]
	mov	w0, #1
	b	LBB0_3
LBB0_21:
	mov	x21, x26
	b	LBB0_23
LBB0_22:
	mov	x21, x27
LBB0_23:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_av_log
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writeoffset out of bounds\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Attempting to write out of bounds\n"

	.no_dead_strip	_decode_interframe_v4a
.subsections_via_symbols
