	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_interframe_v4
_decode_interframe_v4:                  ## @decode_interframe_v4
	.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
	movl	%edx, %ebx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_bytestream2_init
	movq	%r14, %rdi
	callq	_bytestream2_tell
	movl	%eax, %ecx
	xorl	%eax, %eax
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %ecx
	jge	LBB0_55
## %bb.1:
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_2:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r13,%rax,2), %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r15), %eax
	imull	(%r15), %eax
	cmpl	%eax, %ebx
	jg	LBB0_53
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_tell
	movl	%ebx, %r13d
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_48
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
                                        ##     Child Loop BB0_39 Depth 2
                                        ##     Child Loop BB0_44 Depth 2
	movq	%r14, %rdi
	callq	_bytestream2_peek_byte
	movl	%eax, %r12d
	movq	%r14, %rdi
	andl	$31, %r12d
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	callq	_bytestream2_peek_byte
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_bytestream2_peek_byte
	movq	%r14, %rbx
	movl	%eax, %r14d
	andl	$64, %r14d
	movq	%rbx, %rdi
	callq	_bytestream2_peek_byte
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_peek_byte
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
                                        ## kill: def $eax killed $eax def $rax
	andl	$65534, %eax                    ## imm = 0xFFFE
	leal	(%rax,%r13), %ecx
	addl	$-32768, %ecx                   ## imm = 0x8000
	testb	$-128, %r15b
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	(%rcx,%r12,2), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	movl	4(%r15), %esi
	imull	%edx, %esi
	cmpl	%esi, %edi
	jg	LBB0_47
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	(%r12,%r12), %r8d
	leal	(%r8,%r13), %edi
	cmpl	%esi, %edi
	jg	LBB0_51
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %esi
	shrl	$6, %esi
	addl	%edx, %edx
	decl	%edx
	imull	%esi, %edx
	movl	$2, %r10d
	cmpl	%edx, %ecx
	jge	LBB0_18
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_bytestream2_get_byte
                                        ## kill: def $eax killed $eax def $rax
	shrl	$5, %eax
	andl	$7, %eax
	cmpl	$3, %eax
	ja	LBB0_48
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	2(%r13), %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %eax
	imull	(%r15), %eax
	cmpl	%eax, %ebx
	jg	LBB0_53
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movq	8(%r15), %rcx
	movslq	%r13d, %r14
	movl	%eax, (%rcx,%r14,4)
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_byte
	movq	8(%r15), %rcx
	movl	%eax, 4(%rcx,%r14,4)
	leaq	-44(%rbp), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	(%rax,%r13), %edi
	addl	$-32767, %edi                   ## imm = 0x8001
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	movl	4(%r15), %esi
	imull	%edx, %esi
	cmpl	%esi, %edi
	jge	LBB0_47
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	leal	(%r13,%r12,2), %edi
	cmpl	%esi, %edi
	jg	LBB0_51
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	leal	(%r12,%r12), %r8d
	movl	%r14d, %esi
	shrl	$6, %esi
	addl	%edx, %edx
	decl	%edx
	imull	%esi, %edx
	addl	%r8d, %edx
	addl	$-2, %edx
	movq	$-2, %r10
	cmpl	%edx, %ecx
	jl	LBB0_47
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r13d, %rbx
	movslq	%ecx, %rdi
	testb	$32, -64(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %r11
	addl	%r13d, %eax
	addl	$-32767, %eax                   ## imm = 0x8001
	leal	1(%r12), %edx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=2
	leaq	1(%rdi), %rsi
	movq	%rdi, %rcx
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=2
	movl	(%r11,%rcx,4), %ecx
	movl	%ecx, (%r11,%rbx,4)
	movl	(%r11,%rsi,4), %ecx
	movl	%ecx, 4(%r11,%rbx,4)
	addq	$2, %rbx
	addq	%r10, %rdi
	addl	%r10d, %eax
	decl	%edx
	cmpl	$1, %edx
	jle	LBB0_29
LBB0_22:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movl	(%r15), %ecx
	addl	%ecx, %ecx
	movl	%eax, %esi
	subl	%ecx, %esi
	movslq	%esi, %rcx
	movq	%rdi, %rsi
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %r11
	movq	16(%r15), %r9
	addl	%r13d, %eax
	addl	$-32767, %eax                   ## imm = 0x8001
	leal	1(%r12), %edx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_27 Depth=2
	leaq	1(%rdi), %rsi
	movq	%rdi, %rcx
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=2
	movl	(%r9,%rcx,4), %ecx
	movl	%ecx, (%r11,%rbx,4)
	movl	(%r9,%rsi,4), %ecx
	movl	%ecx, 4(%r11,%rbx,4)
	addq	$2, %rbx
	addq	%r10, %rdi
	addl	%r10d, %eax
	decl	%edx
	cmpl	$1, %edx
	jle	LBB0_29
LBB0_27:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r14d, %r14d
	je	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	movl	(%r15), %ecx
	addl	%ecx, %ecx
	movl	%eax, %esi
	subl	%ecx, %esi
	movslq	%esi, %rcx
	movq	%rdi, %rsi
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	$1, -68(%rbp)                   ## 1-byte Folded Reload
	leaq	-44(%rbp), %r14
	je	LBB0_5
## %bb.30:                              ##   in Loop: Header=BB0_6 Depth=1
	subl	%r8d, %ebx
	movslq	%ebx, %rbx
	testl	%r12d, %r12d
	movl	$1, %eax
	cmovlel	%r12d, %eax
	cmpl	$2, %r12d
	jb	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %r9d
	subl	%eax, %r9d
	incq	%r9
	movq	%r9, %r8
	andq	$-2, %r8
	leaq	-2(%r8), %rax
	movq	%rax, %rdx
	shrq	%rdx
	incq	%rdx
	testq	%rax, %rax
	je	LBB0_46
## %bb.32:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, %rsi
	andq	$-2, %rsi
	leaq	(%r11,%rbx,4), %rax
	addq	$16, %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rax,%rdi,8), %xmm0
	movdqu	(%rax,%rdi,8), %xmm1
	pshufd	$177, %xmm0, %xmm0              ## xmm0 = xmm0[1,0,3,2]
	movdqu	%xmm0, -16(%rax,%rdi,8)
	pshufd	$177, %xmm1, %xmm0              ## xmm0 = xmm1[1,0,3,2]
	movdqu	%xmm0, (%rax,%rdi,8)
	addq	$4, %rdi
	addq	$-2, %rsi
	jne	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_6 Depth=1
	testb	$1, %dl
	je	LBB0_36
LBB0_35:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%rbx,%rdi,2), %rax
	movdqu	(%r11,%rax,4), %xmm0
	pshufd	$177, %xmm0, %xmm0              ## xmm0 = xmm0[1,0,3,2]
	movdqu	%xmm0, (%r11,%rax,4)
LBB0_36:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%rbx,%r8,2), %rbx
	cmpq	%r8, %r9
	je	LBB0_5
## %bb.37:                              ##   in Loop: Header=BB0_6 Depth=1
	subl	%r8d, %r12d
LBB0_38:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
	.p2align	4, 0x90
LBB0_39:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	rolq	$32, (%r11,%rbx,4)
	addq	$2, %rbx
	decl	%r12d
	cmpl	$1, %r12d
	jg	LBB0_39
	jmp	LBB0_5
LBB0_40:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_le16
	jmp	LBB0_3
LBB0_41:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %ebx
	leal	(%r13,%rbx,2), %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %ecx
	imull	(%r15), %ecx
	cmpl	%ecx, %eax
	jg	LBB0_53
## %bb.42:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	%ebx, %ebx
	movslq	%r13d, %r13
	incl	%ebx
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_bytestream2_peek_byte
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_44
LBB0_45:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bytestream2_skip
	movl	%r13d, %ebx
	jmp	LBB0_4
LBB0_46:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	testb	$1, %dl
	jne	LBB0_35
	jmp	LBB0_36
LBB0_47:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_54
LBB0_48:
	xorl	%eax, %eax
	jmp	LBB0_55
LBB0_51:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_54
LBB0_53:
	leaq	L_.str(%rip), %rdx
LBB0_54:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_55:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_40
	.long	L0_0_set_41
	.end_data_region
                                        ## -- 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"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
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_v4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_interframe_v4
_decode_interframe_v4:                  ; @decode_interframe_v4
	.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	x21, x2
	mov	x19, x0
	ldr	x25, [x0]
	add	x0, sp, #12
	bl	_bytestream2_init
	add	x0, sp, #12
	bl	_bytestream2_tell
	cmp	w0, w21
	b.ge	LBB0_46
; %bb.1:
	mov	w20, #0
	mov	w28, #-32767
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_le16
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, w0, lsl #1
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	w8, w9, [x25]
	mul	w8, w9, w8
	cmp	w20, w8
	b.gt	LBB0_49
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_tell
	cmp	w0, w21
	b.ge	LBB0_46
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_35 Depth 2
                                        ;     Child Loop BB0_38 Depth 2
                                        ;     Child Loop BB0_44 Depth 2
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	ands	w26, w0, #0x1f
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	mov	x23, x0
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	and	w27, w0, #0x40
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	mov	x24, x0
	add	x0, sp, #12
	mov	w1, #1
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	mov	x22, x0
	add	x0, sp, #12
	bl	_bytestream2_get_le16
	and	w13, w0, #0xfffe
	add	w8, w13, w20
	sub	w9, w8, #8, lsl #12             ; =32768
	tbnz	w24, #7, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w8, w26, #1
	ldp	w10, w11, [x25]
	mul	w11, w11, w10
	add	w12, w9, w8
	cmp	w12, w11
	b.gt	LBB0_47
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w12, w8, w20
	cmp	w12, w11
	b.gt	LBB0_48
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	lsr	w11, w27, #6
	lsl	w10, w10, #1
	sub	w10, w10, #1
	mul	w10, w10, w11
	cmp	w9, w10
	b.lt	LBB0_47
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w10, #2
	b	LBB0_20
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	ubfx	w8, w0, #5, #3
	cmp	w8, #3
	b.hi	LBB0_46
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_2
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w20, #2
	ldp	w8, w9, [x25]
	mul	w8, w9, w8
	cmp	w22, w8
	b.gt	LBB0_49
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	ldr	x8, [x25, #8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sbfiz	x20, x20, #2, #32
	str	w0, [x8, x20]
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	ldr	x8, [x25, #8]
	add	x8, x20, x8
	str	w0, [x8, #4]
	mov	x20, x22
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w10, w11, [x25]
	mul	w11, w11, w10
	add	w8, w8, w28
	cmp	w8, w11
	b.ge	LBB0_47
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	lsl	w8, w26, #1
	add	w12, w8, w20
	cmp	w12, w11
	b.gt	LBB0_48
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	lsr	w11, w27, #6
	lsl	w10, w10, #1
	sub	w10, w10, #1
	madd	w10, w10, w11, w8
	sub	w10, w10, #2
	cmp	w9, w10
	b.lt	LBB0_47
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x10, #-2
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x11, w20
	sxtw	x12, w9
	mov	x14, #0
	tbnz	w23, #5, LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x25, #8]
	add	w13, w20, w13
	add	w13, w13, w28
	add	w15, w26, #1
	mov	x16, x12
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x17
	add	x17, x16, #1
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	ldr	w0, [x9, x0, lsl #2]
	add	x1, x9, x11, lsl #2
	str	w0, [x1]
	ldr	w17, [x9, x17, lsl #2]
	str	w17, [x1, #4]
	add	x11, x11, #2
	add	x16, x16, x10
	add	x14, x14, x10
	sub	w15, w15, #1
	cmp	w15, #1
	b.le	LBB0_31
LBB0_24:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x17, x12, x14
	cbz	w27, LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	w0, [x25]
	add	w1, w13, w14
	sub	w0, w1, w0, lsl #1
	sxtw	x0, w0
	b	LBB0_23
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x9, x15, [x25, #8]
	add	w13, w20, w13
	add	w13, w13, w28
	add	w16, w26, #1
	mov	x17, x12
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=2
	mov	x1, x0
	add	x0, x17, #1
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	w1, [x15, x1, lsl #2]
	add	x2, x9, x11, lsl #2
	str	w1, [x2]
	ldr	w0, [x15, x0, lsl #2]
	str	w0, [x2, #4]
	add	x11, x11, #2
	add	x17, x17, x10
	add	x14, x14, x10
	sub	w16, w16, #1
	cmp	w16, #1
	b.le	LBB0_31
LBB0_29:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x12, x14
	cbz	w27, LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	w1, [x25]
	add	w2, w13, w14
	sub	w1, w2, w1, lsl #1
	sxtw	x1, w1
	b	LBB0_28
LBB0_31:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x11
	tbz	w22, #0, LBB0_5
; %bb.32:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w20, w8
	sxtw	x11, w8
	cmp	w26, #1
	csinc	w8, w26, wzr, lt
	sub	w8, w26, w8
	cmp	w8, #3
	b.hs	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x11
	b	LBB0_37
LBB0_34:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
	and	x10, x8, #0x1fffffffc
	add	x20, x11, x10, lsl #1
	sub	w26, w26, w10
	add	x11, x9, x11, lsl #2
	mov	x12, x10
LBB0_35:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ld2.4s	{ v0, v1 }, [x11]
	mov.16b	v2, v0
	st2.4s	{ v1, v2 }, [x11], #32
	subs	x12, x12, #4
	b.ne	LBB0_35
; %bb.36:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x8, x10
	b.eq	LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x9, x20, lsl #2
	add	w9, w26, #1
LBB0_38:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x8]
	rev64.2s	v0, v0
	str	d0, [x8], #8
	add	x20, x20, #2
	sub	w9, w9, #1
	cmp	w9, #1
	b.gt	LBB0_38
LBB0_39:                                ;   in Loop: Header=BB0_6 Depth=1
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_5
LBB0_40:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	b	LBB0_3
LBB0_41:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	lsl	w8, w0, #1
	ldp	w9, w10, [x25]
	mul	w9, w10, w9
	add	w10, w8, w20
	cmp	w10, w9
	b.gt	LBB0_49
; %bb.42:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #1
	b.lt	LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, x20
	sbfiz	x22, x9, #2, #32
	add	w23, w8, #1
LBB0_44:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	ldr	x8, [x25, #8]
	str	w0, [x8, x22]
	add	x22, x22, #4
	add	w20, w20, #1
	sub	w23, w23, #1
	cmp	w23, #1
	b.gt	LBB0_44
LBB0_45:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	mov	w1, #1
	bl	_bytestream2_skip
	b	LBB0_4
LBB0_46:
	mov	w0, #0
	b	LBB0_51
LBB0_47:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_50
LBB0_48:
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_50
LBB0_49:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
LBB0_50:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_51:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_40-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_41-LBB0_2)>>2
                                        ; -- 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"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
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_v4
.subsections_via_symbols
