	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_unit3
_decode_unit3:                          ## @decode_unit3
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	(%rsi), %eax
	cmpq	$7, %rax
	ja	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	4(%rdi), %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, (%r14)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movl	(%r14), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_9
LBB0_3:
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_decode_static1
	jmp	LBB0_9
LBB0_4:
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_decode_static2
	jmp	LBB0_9
LBB0_5:
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_decode_static3
	jmp	LBB0_9
LBB0_6:
	movq	32(%rbx), %rax
	movl	8(%rax), %ecx
	addl	(%rax), %ecx
	addl	16(%rax), %ecx
	addl	24(%rax), %ecx
	subl	4(%rbx), %ecx
	addl	$256, %ecx                      ## imm = 0x100
	movl	%ecx, -44(%rbp)
	movl	$4, (%rsp)
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	leaq	-44(%rbp), %r9
	movq	%rbx, %rdi
	movl	%edx, %esi
	movq	%r14, %rdx
	callq	_decode_adaptive45
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_update_model4_to_5
	jmp	LBB0_8
LBB0_12:
	leaq	16(%rbx), %r9
	movl	$16, (%rsp)
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movq	%rbx, %rdi
	movl	%edx, %esi
	movq	%r14, %rdx
	callq	_decode_adaptive45
	testl	%eax, %eax
	jne	LBB0_8
## %bb.13:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_update_model5_to_6
	jmp	LBB0_8
LBB0_14:
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movq	%rbx, %rdi
	movl	%edx, %esi
	movq	%r14, %rdx
	callq	_decode_adaptive6
	testl	%eax, %eax
	jne	LBB0_8
## %bb.15:
	movq	%rbx, %rdi
	callq	_update_model6_to_7
LBB0_8:
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_decode3
LBB0_9:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sync_code3
LBB0_10:
	xorl	%eax, %eax
	cmpl	$256, (%r14)                    ## imm = 0x100
	jl	LBB0_17
## %bb.11:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	16(%rbx), %rdx
	movq	32(%rbx), %rcx
	movl	28(%rbx), %r8d
	movl	20(%rbx), %eax
	movl	24(%rbx), %r9d
	movq	%r14, 8(%rsp)
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movl	$255, %esi
	callq	_decode_value3
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_unit3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_unit3
_decode_unit3:                          ; @decode_unit3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	str	xzr, [sp, #8]
	ldr	w8, [x1]
	cmp	w8, #7
	b.hi	LBB0_14
; %bb.1:
	mov	x22, x1
	mov	x20, x0
	add	x21, x0, #4
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x20
	bl	_bytestream2_get_byte
	str	w0, [x19]
	movi.2s	v0, #1
	str	d0, [x22]
	ldr	w8, [x19]
	ldr	x9, [x22, #8]
	str	w8, [x9]
	b	LBB0_13
LBB0_3:
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x1, x0
	str	w0, [x19]
	mov	x0, x22
	bl	_decode_static1
	b	LBB0_13
LBB0_4:
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x1, x0
	str	w0, [x19]
	mov	x0, x22
	bl	_decode_static2
	b	LBB0_13
LBB0_5:
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x1, x0
	str	w0, [x19]
	mov	x0, x22
	bl	_decode_static3
	b	LBB0_13
LBB0_6:
	ldr	x8, [x22, #32]
	ldr	w9, [x8]
	ldr	w10, [x8, #8]
	ldr	w11, [x8, #16]
	add	w9, w10, w9
	add	w9, w9, w11
	ldr	w8, [x8, #24]
	ldr	w10, [x22, #4]
	add	w8, w9, w8
	sub	w8, w8, w10
	add	w8, w8, #256
	str	w8, [sp, #4]
	add	x3, sp, #12
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x0, x22
	mov	x1, x2
	mov	x2, x19
	mov	w6, #4
	bl	_decode_adaptive45
	cbnz	w0, LBB0_12
; %bb.7:
	ldr	w1, [x19]
	mov	x0, x22
	bl	_update_model4_to_5
	b	LBB0_12
LBB0_8:
	add	x5, x22, #16
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x2
	mov	x2, x19
	mov	w6, #16
	bl	_decode_adaptive45
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	w1, [x19]
	mov	x0, x22
	bl	_update_model5_to_6
	b	LBB0_12
LBB0_10:
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x2
	mov	x2, x19
	bl	_decode_adaptive6
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_update_model6_to_7
LBB0_12:
	ldp	w3, w2, [sp, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_decode3
LBB0_13:
	mov	x0, x20
	mov	x1, x21
	bl	_sync_code3
LBB0_14:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, #255
	csel	w0, w9, wzr, gt
	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
	add	sp, sp, #64
	ret
LBB0_15:
	add	x2, x22, #16
	ldr	x3, [x22, #32]
	ldp	w5, w4, [x22, #24]
	ldr	w6, [x22, #20]
	mov	x0, x20
	mov	w1, #255
	mov	x7, 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
	add	sp, sp, #64
	b	_decode_value3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_unit3
.subsections_via_symbols
