	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)
	movl	(%rsi), %edi
	movl	4(%rsi), %esi
	callq	_av_malloc_array
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.4:
	movl	%r15d, %eax
	leaq	(%r14,%rax,4), %r14
	leaq	-48(%rbp), %rbx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	je	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-48(%rbp), %rbx
	cmpq	%r14, -48(%rbp)
	jae	LBB0_21
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	4(%r12), %eax
	jge	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_bytestream_get_byte
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r13d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_bytestream_get_byte
	movl	%eax, %r14d
	movl	%eax, %r13d
	andl	$63, %r13d
	testb	$64, %r14b
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	shll	$8, %r13d
	movq	%rbx, %rdi
	callq	_bytestream_get_byte
	addl	%r13d, %eax
	movl	%eax, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	testb	$-128, %r14b
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_bytestream_get_byte
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r13d, %r13d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	leal	(%r15,%r13), %ebx
	movl	4(%r12), %ecx
	imull	(%r12), %ecx
	cmpl	%ecx, %ebx
	jg	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %rcx
	movslq	%r15d, %rdi
	addq	(%rcx), %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_memset
	movl	%ebx, %r15d
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %r8d
	movl	%r15d, %eax
	cltd
	idivl	%r8d
	testl	%edx, %edx
	jle	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %ecx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_20
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	xorl	%r15d, %r15d
LBB0_21:
	movl	4(%r12), %ecx
	imull	(%r12), %ecx
	cmpl	%ecx, %r15d
	jge	LBB0_23
## %bb.22:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
LBB0_18:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_ff_dlog
	xorl	%eax, %eax
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decoded %d pixels, when line should be %d pixels\n"

	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Insufficient RLE data for subtitle\n"

L_.str.2:                               ## @.str.2
	.asciz	"Pixel Count = %d, Area = %d\n"

	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	str	x2, [sp, #24]
	ldp	w0, w1, [x1]
	bl	_av_malloc_array
	ldr	x8, [x20, #8]
	str	x0, [x8]
	cbz	x0, LBB0_18
; %bb.1:
Lloh0:
	adrp	x25, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AV_LOG_ERROR@GOTPAGEOFF]
	cbz	w22, LBB0_19
; %bb.2:
	mov	w26, #0
	mov	w21, #0
	add	x27, x23, w22, uxtw #2
Lloh2:
	adrp	x28, _AV_EF_EXPLODE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w23, LBB0_15
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]
	cmp	x8, x27
	b.hs	LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #4]
	cmp	w26, w8
	b.ge	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	bl	_bytestream_get_byte
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	mov	w23, #1
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	bl	_bytestream_get_byte
	mov	x24, x0
	and	w23, w0, #0x3f
	tbz	w0, #6, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	bl	_bytestream_get_byte
	add	w23, w0, w23, lsl #8
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w24, #7, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w1, #0
	cmp	w23, #1
	b.ge	LBB0_13
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	bl	_bytestream_get_byte
	mov	x1, x0
	cmp	w23, #1
	b.lt	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w9, [x20]
	mul	w8, w9, w8
	add	w24, w23, w21
	cmp	w24, w8
	b.gt	LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	add	x0, x8, w21, sxtw
	mov	x2, x23
	bl	_memset
	mov	x21, x24
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	sdiv	w9, w21, w8
	msub	w9, w9, w8, w21
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25]
	stp	x9, x8, [sp]
	mov	x0, x19
	mov	x2, x22
	bl	_av_log
	ldr	w8, [x19]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w26, #1
	b	LBB0_4
LBB0_18:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
LBB0_19:
	mov	w21, #0
LBB0_20:
	ldp	w8, w9, [x20]
	mul	w3, w9, w8
	cmp	w21, w3
	b.ge	LBB0_23
; %bb.21:
	ldr	w1, [x25]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_22:
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_23:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_ff_dlog
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decoded %d pixels, when line should be %d pixels\n"

	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Insufficient RLE data for subtitle\n"

l_.str.2:                               ; @.str.2
	.asciz	"Pixel Count = %d, Area = %d\n"

	.no_dead_strip	_decode_rle
.subsections_via_symbols
