	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_8
_decode_8:                              ## @decode_8
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	32(%rdi), %r12
	addq	$16, %rdi
	leaq	28(%r15), %rsi
	movq	%r14, %rdx
	callq	_av_fast_malloc
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_rle_decode
	testq	%rax, %rax
	je	LBB0_2
## %bb.10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	24(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	movq	8(%r15), %rcx
	leaq	-1(%r14), %rdx
	movq	%r14, %rsi
	andq	$3, %rsi
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decq	%r14
	movslq	(%rbx), %rdi
	addq	$4, %rbx
	movl	(%rcx,%rdi,4), %edi
	movl	%edi, (%r12)
	addq	$4, %r12
	decq	%rsi
	jne	LBB0_4
LBB0_5:
	cmpq	$3, %rdx
	jb	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx,%rdx,4), %rsi
	movl	(%rcx,%rsi,4), %esi
	movl	%esi, (%r12,%rdx,4)
	movslq	4(%rbx,%rdx,4), %rsi
	movl	(%rcx,%rsi,4), %esi
	movl	%esi, 4(%r12,%rdx,4)
	movslq	8(%rbx,%rdx,4), %rsi
	movl	(%rcx,%rsi,4), %esi
	movl	%esi, 8(%r12,%rdx,4)
	movslq	12(%rbx,%rdx,4), %rsi
	movl	(%rcx,%rsi,4), %esi
	movl	%esi, 12(%r12,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r14
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RLE buffer allocation failed.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_8
_decode_8:                              ; @decode_8
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	ldr	x22, [x0, #32]
	ldr	x19, [x0], #16
	add	x1, x21, #28
	mov	x2, x19
	bl	_av_fast_malloc
	ldr	x20, [x21, #16]
	cbz	x20, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_rle_decode
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_3:
	ldr	w0, [x21, #24]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_4:
	cbz	x19, LBB0_7
; %bb.5:
	ldr	x8, [x21, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x20], #4
	ldr	w9, [x8, x9, lsl #2]
	str	w9, [x22], #4
	subs	x19, x19, #1
	b.ne	LBB0_6
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RLE buffer allocation failed.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_8
.subsections_via_symbols
