	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 4(%rdi)
	jle	LBB0_35
## %bb.1:
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	(%rdi), %r12d
	imull	%ecx, %r12d
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	subl	%r12d, %r13d
	xorl	%eax, %eax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rax
	movslq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	cmpl	4(%rdi), %eax
	jge	LBB0_35
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_19 Depth 3
                                        ##       Child Loop BB0_8 Depth 3
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_get_be16
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	cmpl	%r8d, %eax
	jl	LBB0_37
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r8d, %r8d
	jle	LBB0_34
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	subl	-96(%rbp), %r8d                 ## 4-byte Folded Reload
	addl	$-2, %r8d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	testl	%r8d, %r8d
	jle	LBB0_34
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_19 Depth 3
                                        ##       Child Loop BB0_8 Depth 3
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
                                        ## kill: def $eax killed $eax def $rax
	testb	$-128, %al
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	testl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	js	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	leal	1(%rax), %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=3
	cmpl	$2, %ebx
	cmovgel	%ecx, %eax
	addl	%eax, %r14d
	decl	%r15d
	je	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_bytestream2_get_byte
	cmpl	%r12d, %r14d
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	movslq	%r14d, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	addl	%ebx, %r14d
	xorl	%eax, %eax
	movl	%r13d, %ecx
	cmpl	%r12d, %r14d
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=3
	xorl	%ecx, %ecx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	movq	%rax, %r15
	callq	_bytestream2_get_byte
	cmpl	$256, %r15d                     ## imm = 0x100
	jg	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	$257, %ecx                      ## imm = 0x101
	subl	%r15d, %ecx
	cmpl	$2, %ecx
	movl	$1, %edx
	cmovll	%edx, %ecx
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=2
	testb	$1, %cl
	je	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	%r12d, %r14d
	jge	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_5 Depth=2
	movslq	%r14d, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=2
	addl	%ebx, %r14d
	cmpl	%r12d, %r14d
	movl	$0, %eax
	cmovgel	%r13d, %eax
	cmpl	$2, %ebx
	movl	$0, %ecx
	cmovll	%ecx, %eax
	addl	%eax, %r14d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=2
	addl	$-2, %r8d
	testl	%r8d, %r8d
	jg	LBB0_5
	jmp	LBB0_34
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	%ecx, %edx
	andl	$2147483646, %edx               ## imm = 0x7FFFFFFE
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_19 Depth=3
	cmpl	$2, %ebx
	cmovgel	%edi, %esi
	addl	%esi, %r14d
	addl	$-2, %edx
	je	LBB0_28
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r12d, %r14d
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=3
	movslq	%r14d, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi,%rsi,4)
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=3
	addl	%ebx, %r14d
	xorl	%esi, %esi
	movl	%r13d, %edi
	cmpl	%r12d, %r14d
	jge	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=3
	xorl	%edi, %edi
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=3
	cmpl	$2, %ebx
	cmovgel	%edi, %esi
	addl	%esi, %r14d
	cmpl	%r12d, %r14d
	jge	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=3
	movslq	%r14d, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi,%rsi,4)
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=3
	addl	%ebx, %r14d
	xorl	%esi, %esi
	movl	%r13d, %edi
	cmpl	%r12d, %r14d
	jge	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=3
	xorl	%edi, %edi
	jmp	LBB0_27
LBB0_35:
	xorl	%eax, %eax
	jmp	LBB0_36
LBB0_37:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_36:
	addq	$56, %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	_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
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w25, #0
	ldr	w8, [x0]
	mul	w26, w8, w3
	ldr	x8, [x1]
	ldr	x27, [x8]
	mov	w8, #1
	sub	w28, w8, w26
	stp	x0, x1, [sp]                    ; 16-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	x22, x21, [sp]                  ; 16-byte Folded Reload
	ldr	x8, [x21, #8]
	ldrsw	x8, [x8]
	add	x27, x27, x8, lsl #2
	add	w25, w25, #1
	ldr	w8, [x22, #4]
	cmp	w25, w8
	b.ge	LBB0_19
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
                                        ;       Child Loop BB0_11 Depth 3
	mov	x0, x20
	bl	_bytestream2_get_be16
	mov	x23, x0
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	cmp	w0, w23
	b.lt	LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w23, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	sub	w23, w23, #2
	cmp	w23, #0
	b.le	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
                                        ;       Child Loop BB0_11 Depth 3
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x24, x0
	tbnz	w0, #7, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	tbnz	w24, #31, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w21, w24, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	add	w8, w22, w19
	cmp	w8, w26
	ccmp	w19, #1, #4, ge
	csel	w9, w28, wzr, gt
	add	w22, w8, w9
	subs	w21, w21, #1
	b.eq	LBB0_18
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x20
	bl	_bytestream2_get_byte
	cmp	w22, w26
	b.ge	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	str	w0, [x27, w22, sxtw #2]
	b	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x20
	bl	_bytestream2_get_byte
	cmp	w24, #256
	b.gt	LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	w8, #257
	sub	w8, w8, w24
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=3
	add	w9, w22, w19
	cmp	w9, w26
	ccmp	w19, #1, #4, ge
	csel	w10, w28, wzr, gt
	add	w22, w9, w10
	subs	w8, w8, #1
	b.eq	LBB0_6
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w22, w26
	b.ge	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=3
	str	w0, [x27, w22, sxtw #2]
	b	LBB0_15
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=2
	sub	w8, w23, w24
	sub	w23, w8, #2
	cmp	w23, #0
	b.gt	LBB0_7
	b	LBB0_2
LBB0_19:
	mov	w0, #0
	b	LBB0_21
LBB0_20:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_21:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_rle
.subsections_via_symbols
