	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rle_uncompress
_rle_uncompress:                        ## @rle_uncompress
	.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	%ecx, %r12d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	(%r8), %r10
	movq	%r10, %rax
	testl	%edx, %edx
	jle	LBB0_46
## %bb.1:
	movl	%r12d, %r13d
	movq	%r10, %rax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rsi
	movq	%rsi, %rdi
LBB0_45:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %rsi
	testl	%edx, %edx
	jle	LBB0_46
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_33 Depth 2
                                        ##     Child Loop BB0_40 Depth 2
                                        ##     Child Loop BB0_43 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
	leaq	4(%rsi), %rdi
	movl	(%rsi), %r11d
	testl	%r11d, %r11d
	js	LBB0_3
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r11), %r14d
	subl	%r14d, %r13d
	js	LBB0_47
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	subl	$2, %edx
	jb	LBB0_47
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$7, %r11d
	jb	LBB0_38
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%rsi), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%r11,4), %rcx
	addq	$4, %rcx
	cmpq	%rcx, %rdi
	jb	LBB0_38
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
	movq	%r11, %r8
	movabsq	$8589934584, %rcx               ## imm = 0x1FFFFFFF8
	andq	%rcx, %r8
	leaq	-8(%r8), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_2 Depth=1
	movabsq	$4611686018427387900, %rcx      ## imm = 0x3FFFFFFFFFFFFFFC
	leaq	2(%rcx), %rbx
	andq	%r9, %rbx
	movd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%rax,%rcx,4)
	movdqu	%xmm0, 16(%rax,%rcx,4)
	movdqu	%xmm0, 32(%rax,%rcx,4)
	movdqu	%xmm0, 48(%rax,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %rbx
	jne	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r9b
	je	LBB0_36
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rax,%rcx,4)
	movdqu	%xmm0, 16(%rax,%rcx,4)
LBB0_36:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%r8,4), %rax
	cmpq	%r8, %r11
	je	LBB0_44
## %bb.37:                              ##   in Loop: Header=BB0_2 Depth=1
	subl	%r8d, %r14d
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r14), %r8d
	movl	%r14d, %r9d
	andl	$7, %r9d
	je	LBB0_42
## %bb.39:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_40:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %ebx
	movl	%ebx, (%rax)
	addq	$4, %rax
	incl	%ecx
	cmpl	%ecx, %r9d
	jne	LBB0_40
## %bb.41:                              ##   in Loop: Header=BB0_2 Depth=1
	subl	%ecx, %r14d
LBB0_42:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$7, %r8d
	jb	LBB0_44
	.p2align	4, 0x90
LBB0_43:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %ecx
	movl	%ecx, (%rax)
	movl	(%rdi), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rdi), %ecx
	movl	%ecx, 8(%rax)
	movl	(%rdi), %ecx
	movl	%ecx, 12(%rax)
	movl	(%rdi), %ecx
	movl	%ecx, 16(%rax)
	movl	(%rdi), %ecx
	movl	%ecx, 20(%rax)
	movl	(%rdi), %ecx
	movl	%ecx, 24(%rax)
	movl	(%rdi), %ecx
	movl	%ecx, 28(%rax)
	addq	$32, %rax
	addl	$-8, %r14d
	jne	LBB0_43
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%r11d, %r13d
	js	LBB0_47
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%r11d, %edx
	decl	%edx
	js	LBB0_47
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r11d, %r15d
	negl	%r15d
	cmpl	$-8, %r11d
	ja	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rcx
	subq	%rsi, %rcx
	addq	$-4, %rcx
	cmpq	$32, %rcx
	jb	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r10, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r10d
	notl	%r11d
	incq	%r11
	movq	%r11, %r12
	movabsq	$8589934584, %rcx               ## imm = 0x1FFFFFFF8
	andq	%rcx, %r12
	leaq	-8(%r12), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	movl	%r8d, %r9d
	andl	$3, %r9d
	cmpq	$24, %rcx
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	testb	$1, %r9b
	jne	LBB0_35
	jmp	LBB0_36
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movabsq	$4611686018427387900, %rcx      ## imm = 0x3FFFFFFFFFFFFFFC
	andq	%rcx, %r8
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	4(%rsi,%r14,4), %xmm0
	movups	20(%rsi,%r14,4), %xmm1
	movups	%xmm0, (%rax,%r14,4)
	movups	%xmm1, 16(%rax,%r14,4)
	movups	36(%rsi,%r14,4), %xmm0
	movups	52(%rsi,%r14,4), %xmm1
	movups	%xmm0, 32(%rax,%r14,4)
	movups	%xmm1, 48(%rax,%r14,4)
	movups	68(%rsi,%r14,4), %xmm0
	movups	84(%rsi,%r14,4), %xmm1
	movups	%xmm0, 64(%rax,%r14,4)
	movups	%xmm1, 80(%rax,%r14,4)
	movdqu	100(%rsi,%r14,4), %xmm0
	movups	116(%rsi,%r14,4), %xmm1
	movdqu	%xmm0, 96(%rax,%r14,4)
	movups	%xmm1, 112(%rax,%r14,4)
	addq	$32, %r14
	addq	$-4, %r8
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r9, %r9
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%r14,4), %rcx
	addq	$16, %rcx
	leaq	(%rsi,%r14,4), %rsi
	addq	$20, %rsi
	shlq	$5, %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rsi,%rbx), %xmm0
	movups	(%rsi,%rbx), %xmm1
	movdqu	%xmm0, -16(%rcx,%rbx)
	movups	%xmm1, (%rcx,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdi,%r12,4), %rdi
	leaq	(%rax,%r12,4), %rax
	cmpq	%r12, %r11
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, %r12d
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_45
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	subl	%r12d, %r15d
	movl	%r10d, %r12d
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r15), %r8d
	movl	%r15d, %esi
	andl	$7, %esi
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %ecx
	addq	$4, %rdi
	movl	%ecx, (%rax)
	addq	$4, %rax
	incl	%ebx
	cmpl	%ebx, %esi
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	subl	%ebx, %r15d
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$7, %r8d
	jb	LBB0_45
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %r8d
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%rbx,4), %esi
	movl	%esi, (%rax,%rbx,4)
	movl	4(%rdi,%rbx,4), %esi
	movl	%esi, 4(%rax,%rbx,4)
	movl	8(%rdi,%rbx,4), %esi
	movl	%esi, 8(%rax,%rbx,4)
	movl	12(%rdi,%rbx,4), %esi
	movl	%esi, 12(%rax,%rbx,4)
	movl	16(%rdi,%rbx,4), %esi
	movl	%esi, 16(%rax,%rbx,4)
	movl	20(%rdi,%rbx,4), %esi
	movl	%esi, 20(%rax,%rbx,4)
	movl	24(%rdi,%rbx,4), %esi
	movl	%esi, 24(%rax,%rbx,4)
	movl	28(%rdi,%rbx,4), %esi
	movl	%esi, 28(%rax,%rbx,4)
	addq	$8, %rbx
	addq	$-32, %rcx
	cmpl	%ebx, %r8d
	jne	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	subq	%rcx, %rdi
	subq	%rcx, %rax
	jmp	LBB0_45
LBB0_46:
	movslq	%r12d, %rcx
	leaq	(%r10,%rcx,4), %rcx
	cmpq	%rax, %rcx
	je	LBB0_48
LBB0_47:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_49
LBB0_48:
	movl	%r12d, %edi
	notl	%edi
	andl	$1, %edi
	callq	_av_assert1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movl	%r12d, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	callq	*8(%r14)
	movl	8(%rbx), %edi
	movq	(%rbx), %rsi
	movl	%r12d, %edx
	callq	*(%r14)
	xorl	%eax, %eax
LBB0_49:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_rle_uncompress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rle_uncompress
_rle_uncompress:                        ; @rle_uncompress
	.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	x20, x4
	mov	x19, x3
	mov	x21, x0
	ldr	x8, [x4]
	cmp	w2, #1
	b.lt	LBB0_26
; %bb.1:
	mov	x9, x19
	mov	x12, x8
	mov	x10, x1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x1, #8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x10
	mov	x12, x11
	cmp	w2, #0
	b.le	LBB0_27
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	ldr	w11, [x10], #4
	tbnz	w11, #31, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w13, w11, #1
	subs	w9, w9, w13
	b.mi	LBB0_28
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	w2, w2, #2
	b.lo	LBB0_28
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #15
	b.hs	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x12
	b	LBB0_21
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	adds	w9, w11, w9
	b.mi	LBB0_28
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w13, w2, w11
	subs	w2, w13, #1
	b.mi	LBB0_28
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	neg	w13, w11
	cmn	w11, #16
	b.ls	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x12
	b	LBB0_25
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x1, #8
	cmp	x12, x14
	b.hs	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x12, x11, lsl #2
	add	x14, x14, #4
	cmp	x10, x14
	b.hs	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x12
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x14, x12, x1
	sub	x14, x14, #4
	cmp	x14, #64
	b.hs	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x12
	b	LBB0_25
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x11, #1
	and	x15, x14, #0x1fffffff0
	sub	w13, w13, w15
	add	x11, x12, x15, lsl #2
	ld1r.4s	{ v0 }, [x10]
	add	x12, x12, #32
	mov	x16, x15
LBB0_19:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x16, x16, #16
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x14, x15
	b.eq	LBB0_2
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x10]
	str	w12, [x11], #4
	subs	w13, w13, #1
	b.ne	LBB0_21
	b	LBB0_2
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	mvn	w11, w11
	add	x14, x11, #1
	and	x15, x14, #0x1fffffff0
	sub	w13, w13, w15
	lsl	x11, x15, #2
	add	x10, x10, x11
	add	x11, x12, x11
	add	x16, x1, #36
	add	x12, x12, #32
	mov	x17, x15
LBB0_23:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x16, #-32]
	ldp	q2, q3, [x16], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x17, x17, #16
	b.ne	LBB0_23
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x14, x15
	b.eq	LBB0_3
LBB0_25:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x10], #4
	str	w12, [x11], #4
	subs	w13, w13, #1
	b.ne	LBB0_25
	b	LBB0_3
LBB0_26:
	mov	x11, x8
LBB0_27:
	add	x8, x8, w19, sxtw #2
	cmp	x8, x11
	b.eq	LBB0_29
LBB0_28:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_30
LBB0_29:
	mvn	w8, w19
	and	w0, w8, #0x1
	bl	_av_assert1
	ldr	x8, [x21, #8]
	ldr	x0, [x20]
	mov	x1, x19
	blr	x8
	ldr	x8, [x21]
	ldr	w0, [x20, #8]
	ldr	x1, [x20]
	mov	x2, x19
	blr	x8
	mov	w0, #0
LBB0_30:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_rle_uncompress
.subsections_via_symbols
