	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cin_decode_rle
_cin_decode_rle:                        ## @cin_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	%rdx, %r12
	movslq	%ecx, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rax), %r14
	cmpl	$2, %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jl	LBB0_10
## %bb.1:
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.2:
	movq	%rdi, %r15
	movslq	%esi, %rax
	addq	%rdi, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%rdi), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %ebx
	testb	$-128, %bl
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	subq	%r13, %rdx
	cmpq	%rbx, %rdx
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %esi
	subl	%r12d, %esi
	movl	%ebx, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_FFMIN3
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_memcpy
	addq	%rbx, %r13
	movq	%r13, %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	$-127, %ebx
	addq	$2, %r15
	movzbl	(%r13), %r13d
	movl	%r14d, %esi
	subl	%r12d, %esi
	movl	%ebx, %edi
	callq	_FFMIN
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_memset
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %r12
	leaq	1(%r15), %r13
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %r12
	jb	LBB0_3
LBB0_10:
	subq	%r12, %r14
	imulq	$-1717986919, -64(%rbp), %rax   ## 8-byte Folded Reload
                                        ## imm = 0x99999999
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movslq	%eax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r14
	jg	LBB0_11
	jmp	LBB0_12
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
LBB0_11:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	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	"RLE overread\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_cin_decode_rle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cin_decode_rle
_cin_decode_rle:                        ; @cin_decode_rle
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	add	x24, x2, w3, sxtw
	cmp	w1, #2
	b.lt	LBB0_9
; %bb.1:
	cmp	w19, #0
	b.le	LBB0_9
; %bb.2:
	mov	x21, x0
	add	x25, x0, w1, sxtw
	add	x22, x0, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	tbnz	w8, #7, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x8, #1
	sub	x2, x25, x22
	cmp	x2, x23
	b.lt	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w1, w24, w20
	mov	x0, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_FFMIN3
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_memcpy
	add	x21, x22, x23
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w23, w8, #127
	add	x21, x21, #2
	ldrb	w22, [x22]
	sub	w1, w24, w20
	mov	x0, x23
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_memset
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, x23
	add	x22, x21, #1
	cmp	x22, x25
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x20, x24
	b.lo	LBB0_3
LBB0_9:
	sub	x8, x24, x20
	mov	w9, #-1717986919
	smull	x9, w19, w9
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	w9, w9, w19
Lloh0:
	adrp	x10, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	x8, w9, sxtw
	csel	w0, w10, wzr, gt
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RLE overread\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_cin_decode_rle
.subsections_via_symbols
