	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_runlen_rgb
_decode_runlen_rgb:                     ## @decode_runlen_rgb
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	(%rdx), %rax
	movq	16(%rdx), %rcx
	movq	(%rcx), %r14
	movslq	(%rdi), %r13
	movslq	(%rax), %r12
	movq	%rsi, %rdi
	callq	_bytestream2_get_bytes_left
	testq	%rax, %rax
	jle	LBB0_31
## %bb.1:
	decq	%r13
	imulq	%r13, %r12
	leaq	(%r14,%r12,8), %r12
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rsi), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	subq	%rax, %r12
	xorl	%r14d, %r14d
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_bytestream2_get_bytes_left
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testq	%rax, %rax
	jle	LBB0_31
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	%r15, %rdi
	callq	_bytestream2_peek_le32
	movl	%eax, %ebx
	andl	$-16777216, %eax                ## imm = 0xFF000000
	cmpl	$1996488704, %eax               ## imm = 0x77000000
	jne	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	andl	$16777215, %ebx                 ## imm = 0xFFFFFF
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	testl	%ebx, %ebx
	je	LBB0_30
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	8(%rsi), %ecx
	leal	(%rcx,%rcx,2), %ecx
	incl	%ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_17 Depth=2
	decl	%ebx
	cmpl	$1, %ebx
	jbe	LBB0_30
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r14d, %rdx
	addq	%rdi, (%r12,%rdx,8)
	incl	%edx
	cmpl	%ecx, %edx
	jl	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	incl	%r13d
	cmpl	12(%rsi), %r13d
	jge	LBB0_31
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	(%rsi), %rdx
	movslq	(%rdx), %rdx
	shlq	$3, %rdx
	subq	%rdx, %r12
	xorl	%edx, %edx
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=2
	movslq	%edx, %rdx
	addq	%r8, (%r12,%rdx,8)
	incl	%edx
	cmpl	%ecx, %edx
	jl	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=2
	incl	%r13d
	cmpl	12(%rsi), %r13d
	jge	LBB0_31
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	(%rsi), %rdx
	movslq	(%rdx), %rdx
	shlq	$3, %rdx
	subq	%rdx, %r12
	xorl	%edx, %edx
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=2
	movslq	%edx, %rdx
	addq	%r9, (%r12,%rdx,8)
	incl	%edx
	cmpl	%ecx, %edx
	jl	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=2
	incl	%r13d
	cmpl	12(%rsi), %r13d
	jge	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	(%rsi), %rdx
	movslq	(%rdx), %rdx
	shlq	$3, %rdx
	subq	%rdx, %r12
	xorl	%edx, %edx
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=2
	movslq	%edx, %r14
	addq	%rax, (%r12,%r14,8)
	incl	%r14d
	cmpl	%ecx, %r14d
	jl	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=2
	incl	%r13d
	cmpl	12(%rsi), %r13d
	jge	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	(%rsi), %rdx
	movslq	(%rdx), %rdx
	shlq	$3, %rdx
	subq	%rdx, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	8(%rsi), %ecx
	movslq	%r14d, %rdx
	addq	%rbx, (%r12,%rdx,8)
	leal	(%rcx,%rcx,2), %ecx
	incl	%edx
	cmpl	%ecx, %edx
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	12(%rsi), %r13d
	jge	LBB0_31
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rsi), %rdx
	movslq	(%rdx), %rdx
	shlq	$3, %rdx
	subq	%rdx, %r12
	xorl	%edx, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%edx, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	%rdi, (%r12,%rdx,8)
	incl	%edx
	cmpl	%ecx, %edx
	jl	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	12(%rsi), %r13d
	jge	LBB0_31
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rsi), %rdx
	movslq	(%rdx), %rdx
	shlq	$3, %rdx
	subq	%rdx, %r12
	xorl	%edx, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%edx, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	%rdi, (%r12,%rdx,8)
	incl	%edx
	cmpl	%ecx, %edx
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	12(%rsi), %r13d
	jge	LBB0_31
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rsi), %rdx
	movslq	(%rdx), %rdx
	shlq	$3, %rdx
	subq	%rdx, %r12
	xorl	%edx, %edx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%edx, %r14
	addq	%rax, (%r12,%r14,8)
	incl	%r14d
	cmpl	%ecx, %r14d
	jl	LBB0_30
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	12(%rsi), %r13d
	jl	LBB0_14
LBB0_31:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_runlen_rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_runlen_rgb
_decode_runlen_rgb:                     ; @decode_runlen_rgb
	.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, x2
	mov	x20, x1
	ldr	x8, [x2, #16]
	ldr	x21, [x8]
	ldr	w22, [x0]
	ldr	x8, [x2]
	ldr	w23, [x8]
	mov	x0, x1
	bl	_bytestream2_get_bytes_left
	cmp	x0, #1
	b.lt	LBB0_31
; %bb.1:
	mov	w26, #0
	mov	w24, #0
	sub	w8, w22, #1
	mul	w8, w23, w8
	add	x25, x21, w8, sxtw #3
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	sub	x25, x25, x8, lsl #3
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	cmp	x0, #0
	b.le	LBB0_31
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x20
	bl	_bytestream2_peek_le32
	lsr	w8, w0, #24
	cmp	w8, #119
	b.ne	LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w27, w0, #0xffffff
	mov	x0, x20
	mov	w1, #4
	bl	_bytestream2_skip
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x21, x0
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x22, x0
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x23, x0
	mov	x0, x20
	bl	_bytestream2_get_byte
	cbz	w27, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, w8, lsl #1
	add	w9, w27, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	sub	w9, w9, #1
	cmp	w9, #1
	b.ls	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sbfiz	x10, x26, #3, #32
	ldr	x11, [x25, x10]
	add	x11, x11, x21
	str	x11, [x25, x10]
	add	w10, w26, #1
	cmp	w10, w8
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w24, w24, #1
	ldr	w10, [x19, #12]
	cmp	w24, w10
	b.ge	LBB0_31
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w10, #0
	ldr	x11, [x19]
	ldrsw	x11, [x11]
	sub	x25, x25, x11, lsl #3
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	sbfiz	x11, x10, #3, #32
	ldr	x12, [x25, x11]
	add	x12, x12, x22
	str	x12, [x25, x11]
	add	w10, w10, #1
	cmp	w10, w8
	b.lt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	add	w24, w24, #1
	ldr	w10, [x19, #12]
	cmp	w24, w10
	b.ge	LBB0_31
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w10, #0
	ldr	x11, [x19]
	ldrsw	x11, [x11]
	sub	x25, x25, x11, lsl #3
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
	sbfiz	x11, x10, #3, #32
	ldr	x12, [x25, x11]
	add	x12, x12, x23
	str	x12, [x25, x11]
	add	w10, w10, #1
	cmp	w10, w8
	b.lt	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	add	w24, w24, #1
	ldr	w10, [x19, #12]
	cmp	w24, w10
	b.ge	LBB0_31
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w10, #0
	ldr	x11, [x19]
	ldrsw	x11, [x11]
	sub	x25, x25, x11, lsl #3
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	sbfiz	x11, x10, #3, #32
	ldr	x12, [x25, x11]
	add	x12, x12, x0
	str	x12, [x25, x11]
	add	w26, w10, #1
	cmp	w26, w8
	b.lt	LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=2
	add	w24, w24, #1
	ldr	w10, [x19, #12]
	cmp	w24, w10
	b.ge	LBB0_31
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w26, #0
	ldr	x10, [x19]
	ldrsw	x10, [x10]
	sub	x25, x25, x10, lsl #3
	b	LBB0_7
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x23, x0
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x22, x0
	mov	x0, x20
	bl	_bytestream2_get_byte
	mov	x21, x0
	mov	x0, x20
	bl	_bytestream2_get_byte
	ldr	w8, [x19, #8]
	mov	x9, x26
	sbfiz	x9, x9, #3, #32
	ldr	x10, [x25, x9]
	add	w8, w8, w8, lsl #1
	add	x10, x10, x23
	str	x10, [x25, x9]
	add	w9, w26, #1
	cmp	w9, w8
	b.lt	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	ldr	w9, [x19, #12]
	cmp	w24, w9
	b.ge	LBB0_31
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
	ldr	x10, [x19]
	ldrsw	x10, [x10]
	sub	x25, x25, x10, lsl #3
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	sbfiz	x10, x9, #3, #32
	ldr	x11, [x25, x10]
	add	x11, x11, x22
	str	x11, [x25, x10]
	add	w9, w9, #1
	cmp	w9, w8
	b.lt	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	ldr	w9, [x19, #12]
	cmp	w24, w9
	b.ge	LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
	ldr	x10, [x19]
	ldrsw	x10, [x10]
	sub	x25, x25, x10, lsl #3
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	sbfiz	x10, x9, #3, #32
	ldr	x11, [x25, x10]
	add	x11, x11, x21
	str	x11, [x25, x10]
	add	w9, w9, #1
	cmp	w9, w8
	b.lt	LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	ldr	w9, [x19, #12]
	cmp	w24, w9
	b.ge	LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
	ldr	x10, [x19]
	ldrsw	x10, [x10]
	sub	x25, x25, x10, lsl #3
LBB0_29:                                ;   in Loop: Header=BB0_4 Depth=1
	sbfiz	x10, x9, #3, #32
	ldr	x11, [x25, x10]
	add	x11, x11, x0
	str	x11, [x25, x10]
	add	w26, w9, #1
	cmp	w26, w8
	b.lt	LBB0_3
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	ldr	w8, [x19, #12]
	cmp	w24, w8
	b.lt	LBB0_2
LBB0_31:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_runlen_rgb
.subsections_via_symbols
