	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expand_rle_row8
_expand_rle_row8:                       ## @expand_rle_row8
	.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
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movslq	%edx, %rax
	addq	%rsi, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	jae	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r12, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, %r15d
	andb	$127, %r15b
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subq	%rbx, %rax
	movzbl	%r15b, %ecx
	decl	%ecx
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%r13b, %r13b
	js	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	leal	-1(%r15), %ecx
	andb	$7, %r13b
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movb	%al, (%rbx)
	addq	%r14, %rbx
	incb	%dl
	cmpb	%dl, %r13b
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	subb	%dl, %r15b
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$7, %cl
	jb	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movb	%al, (%rbx)
	movb	%al, (%rbx,%r14)
	addq	%r14, %rbx
	movb	%al, (%r14,%rbx)
	addq	%r14, %rbx
	movb	%al, (%r14,%rbx)
	addq	%r14, %rbx
	movb	%al, (%r14,%rbx)
	addq	%r14, %rbx
	movb	%al, (%r14,%rbx)
	addq	%r14, %rbx
	movb	%al, (%r14,%rbx)
	addq	%r14, %rbx
	movb	%al, (%r14,%rbx)
	addq	%r14, %rbx
	addq	%r14, %rbx
	addb	$-8, %r15b
	jne	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r13
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	leaq	(%r14,%r13), %rbx
	movb	%al, (%r13)
	movq	%rbx, %r13
	decb	%r15b
	jne	LBB0_10
	jmp	LBB0_17
LBB0_1:
	movslq	%ecx, %r14
	movq	%rsi, %rbx
	jmp	LBB0_19
LBB0_18:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_19:
	subq	%rsi, %rbx
	movq	%rbx, %rax
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_20
## %bb.21:
	movq	%rbx, %rax
	cqto
	idivq	%r14
	jmp	LBB0_22
LBB0_20:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_22
LBB0_7:
	movl	4(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %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
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid pixel count.\n"

	.no_dead_strip	_expand_rle_row8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expand_rle_row8
_expand_rle_row8:                       ; @expand_rle_row8
	.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	x20, x3
	mov	x19, x1
	cmp	w2, #0
	b.le	LBB0_10
; %bb.1:
	mov	x21, x0
	add	x24, x19, w2, sxtw
	mov	x8, x20
	sxtw	x22, w8
	mov	x23, x19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x23, x24
	b.hs	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x21
	bl	_bytestream2_get_bytes_left
	cmp	w0, #0
	b.le	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_bytestream2_get_byteu
	ands	w25, w0, #0x7f
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x24, x23
	sub	w9, w25, #1
	mul	w9, w9, w20
	cmp	x8, w9, sxtw
	b.le	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtb	w8, w0
	tbnz	w8, #31, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_bytestream2_get_byte
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w25, w25, #1
	strb	w0, [x23]
	add	x23, x23, x22
	tst	w25, #0xff
	b.ne	LBB0_8
	b	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w25, w25, #1
	and	w26, w25, #0xff
	mov	x0, x21
	bl	_bytestream2_get_byte
	strb	w0, [x23]
	add	x23, x23, x22
	cbnz	w26, LBB0_9
	b	LBB0_2
LBB0_10:
	sxtw	x22, w20
	mov	x23, x19
LBB0_11:
	sub	x8, x23, x19
	sdiv	x0, x8, x22
	b	LBB0_14
LBB0_12:
	ldr	w0, [x21, #4]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_13:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid pixel count.\n"

	.no_dead_strip	_expand_rle_row8
.subsections_via_symbols
