	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	4(%rdi), %ebx
	imull	(%rdi), %ebx
	leaq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	leal	(%rbx,%rbx), %esi
	cmpl	%esi, %eax
	jae	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	movq	%r14, %rdi
	callq	_bytestream2_skip
	testl	%ebx, %ebx
	je	LBB0_25
## %bb.5:
	movl	8(%r13), %ecx
	xorl	%edx, %edx
	xorl	%r15d, %r15d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
                                        ##       Child Loop BB0_19 Depth 3
                                        ##       Child Loop BB0_22 Depth 3
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	je	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=2
	movl	%ebx, %r12d
	movq	%rcx, %r15
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addl	%r12d, %ebx
	incl	%ebx
	movl	8(%r13), %ecx
	cmpl	%ecx, %ebx
	jae	LBB0_24
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
                                        ##       Child Loop BB0_19 Depth 3
                                        ##       Child Loop BB0_22 Depth 3
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, %r12
	testl	%r12d, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	jle	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	callq	_bytestream2_get_bytes_left
	cmpl	%r12d, %eax
	jl	LBB0_28
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	%r12d, %rax
	addq	%r15, %rax
	cmpq	16(%r13), %rax
	jae	LBB0_29
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movq	24(%r13), %rcx
	movq	%rax, (%rcx,%r15,8)
	incq	%r15
	incl	%ebx
	cmpl	%r12d, %ebx
	jbe	LBB0_14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_28
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%r12d, %ebx
	negl	%ebx
	movl	%ebx, %eax
	addq	%r15, %rax
	cmpq	16(%r13), %rax
	jae	LBB0_29
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movl	$1, %edx
	subl	%r12d, %edx
	movq	%r15, %rcx
	andl	$3, %edx
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	24(%r13), %rsi
	movq	%rax, (%rsi,%rcx,8)
	incq	%rcx
	decl	%edx
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpl	$3, %ebx
	jb	LBB0_8
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=2
	subl	%r12d, %r15d
	incl	%r15d
	movl	%r15d, %edx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	24(%r13), %rsi
	movq	%rax, (%rsi,%rcx,8)
	movq	24(%r13), %rsi
	movq	%rax, 8(%rsi,%rcx,8)
	movq	24(%r13), %rsi
	movq	%rax, 16(%rsi,%rcx,8)
	movq	24(%r13), %rsi
	movq	%rax, 24(%rsi,%rcx,8)
	addq	$4, %rcx
	cmpl	%ecx, %edx
	jne	LBB0_22
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ecx, %ecx
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	xorl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	%ebx, %edx
	jne	LBB0_6
	jmp	LBB0_3
LBB0_25:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_28:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_29:
	leaq	L_.str.2(%rip), %rdx
LBB0_2:
	movl	36(%r13), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough data for rle scanline table.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Not enough data for rle scanline.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid rle char.\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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldp	w8, w9, [x0]
	mul	w23, w9, w8
	add	x20, x0, #32
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	lsl	w1, w23, #1
	cmp	w0, w1
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_20
LBB0_2:
	mov	x0, x20
	bl	_bytestream2_skip
	cbz	w23, LBB0_18
; %bb.3:
	mov	w24, #0
	mov	x25, #0
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	add	w24, w24, #1
	cmp	w24, w23
	b.eq	LBB0_21
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;       Child Loop BB0_16 Depth 3
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w27, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w8, w27, w22
	add	w27, w8, #1
	ldr	w8, [x19, #8]
	cmp	w27, w8
	b.hs	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;       Child Loop BB0_16 Depth 3
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x22, x0
	mov	x0, x20
	cmp	w22, #0
	b.le	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	bl	_bytestream2_get_bytes_left
	cmp	w0, w22
	b.lt	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x25, w22, sxtw
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.hs	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w28, #0
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x26, x25
	mov	x0, x20
	bl	_bytestream2_get_byte
	ldr	x8, [x19, #24]
	add	x25, x25, #1
	str	x0, [x8, x26, lsl #3]
	add	w28, w28, #1
	cmp	w28, w22
	b.ls	LBB0_12
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=2
	bl	_bytestream2_get_bytes_left
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	neg	w28, w22
	add	x8, x25, w28, uxtw
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.hs	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x20
	bl	_bytestream2_get_byte
	sub	w8, w22, #1
LBB0_16:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x19, #24]
	str	x0, [x9, x25, lsl #3]
	add	x25, x25, #1
	adds	w8, w8, #1
	b.lo	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x22, x28
	b	LBB0_7
LBB0_18:
	mov	w0, #0
	b	LBB0_21
LBB0_19:
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_20:
	ldr	w0, [x19, #36]
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_av_log
Lloh9:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough data for rle scanline table.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Not enough data for rle scanline.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid rle char.\n"

	.no_dead_strip	_decode_rle
.subsections_via_symbols
