	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_rle
_decode_rle:                            ## @decode_rle
	.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	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %r14d
	movl	16(%rbp), %eax
	movl	$-1, %r13d
	subl	%eax, %r14d
	jle	LBB0_18
## %bb.1:
	movl	%edx, %ebx
	testl	%edx, %edx
	jle	LBB0_18
## %bb.2:
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.3:
	movl	%esi, %r15d
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	shll	$3, %r14d
	cltq
	leaq	(%r9,%rax,4), %rsi
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_init_get_bits
	movq	%r12, %rdi
	callq	_get_bits_count
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	cmpl	%r14d, %eax
	jg	LBB0_18
## %bb.4:
	movslq	%r15d, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-44(%rbp), %rbx
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_get_bits_count
	movl	%r12d, %r13d
	cmpl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%r14d, %ebx
	jg	LBB0_17
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	cmpl	$0, 32(%rbp)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_decode_run_8bit
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	callq	_decode_run_2bit
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %esi
	subl	%r13d, %esi
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%esi, %eax
	jg	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edi
	callq	_FFMIN
	movl	%eax, %r12d
	movslq	%r13d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movl	-48(%rbp), %esi
	movl	%r12d, %edx
	callq	_memset
	movslq	-48(%rbp), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, (%rcx,%rax,4)
	addl	%r13d, %r12d
	movl	%ebx, %r14d
	cmpl	%ebx, %r12d
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	cmpl	-60(%rbp), %r15d                ## 4-byte Folded Reload
	leaq	-44(%rbp), %rbx
	jge	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_align_get_bits
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_18
LBB0_17:
	movl	$-1, %r13d
	jmp	LBB0_18
LBB0_14:
	xorl	%r13d, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_rle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_rle
_decode_rle:                            ; @decode_rle
	.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
	subs	w8, w7, w6
	b.le	LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x22, x0
	mov	w0, #-1
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x20, x3
	cmp	w3, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x19, x4
	mov	x24, x1
	lsl	w23, w8, #3
	add	x1, x5, w6, sxtw #2
	add	x0, sp, #12
	mov	x2, x23
	bl	_init_get_bits
	add	x0, sp, #12
	bl	_get_bits_count
	cmp	w0, w23
	b.le	LBB0_6
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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
LBB0_6:
	mov	w25, #0
	mov	w27, #0
	ldr	w26, [x29, #16]
	sxtw	x8, w24
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x28, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x28, [x28, _INT_MAX@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #12
	bl	_get_bits_count
	cmp	w0, w23
	b.gt	LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	add	x1, sp, #8
	cbz	w26, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_decode_run_8bit
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_decode_run_2bit
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x28]
	sub	w1, w21, w27
	cmp	w0, w8
	ccmp	w0, w1, #4, ne
	b.gt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_FFMIN
	mov	x24, x0
	add	x0, x22, w27, sxtw #2
	ldr	w1, [sp, #8]
	mov	x2, x24
	bl	_memset
	ldrsw	x8, [sp, #8]
	mov	w9, #1
	str	w9, [x19, x8, lsl #2]
	add	w27, w24, w27
	cmp	w27, w21
	b.lt	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w25, w25, #1
	cmp	w25, w20
	b.ge	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x22, x22, x8, lsl #2
	add	x0, sp, #12
	bl	_align_get_bits
	mov	w27, #0
	b	LBB0_7
LBB0_15:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_16:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_rle
.subsections_via_symbols
