	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rl2_rle_decode
_rl2_rle_decode:                        ## @rl2_rle_decode
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %eax
	movl	%edx, %r9d
	movq	%rdi, %r10
	movq	(%rdi), %rdi
	movq	8(%r10), %r14
	movl	(%r14), %r11d
	cltd
	idivl	%r11d
	movl	%eax, %r12d
	movl	%r8d, %ebx
	subl	%r11d, %ebx
	movslq	4(%r14), %rax
	movslq	%r8d, %r15
	imulq	%r15, %rax
	testl	%r12d, %r12d
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	movl	%r9d, -72(%rbp)                 ## 4-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	js	LBB0_1
## %bb.2:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%r10, %r14
	leaq	(,%r15,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%r11d, %edx
	movq	%rdi, %r13
	testq	%rdi, %rdi
	je	LBB0_4
	.p2align	4, 0x90
LBB0_5:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_memcpy
	movq	%r14, %r10
	movq	8(%r14), %rax
	movl	(%rax), %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:
	movq	%r14, %r10
LBB0_6:
	movslq	%edx, %rax
	leaq	(%r13,%rax,4), %r13
	subl	$1, %r12d
	jb	LBB0_8
## %bb.7:
	movq	(%r10), %rdi
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	testq	%rdi, %rdi
	jne	LBB0_5
	jmp	LBB0_4
LBB0_8:
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	movl	%r11d, %edx
	movq	%rdi, %r13
	movq	%rcx, %rbx
LBB0_9:
	leaq	(%rcx,%rax,4), %r14
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %eax
	subl	%edx, %eax
	cltq
	leaq	(,%rax,4), %r12
	addq	%r13, %r12
	movslq	-60(%rbp), %r11                 ## 4-byte Folded Reload
	leaq	(,%r11,4), %rcx
	subl	-68(%rbp), %edi                 ## 4-byte Folded Reload
	movslq	%edi, %rdx
	leaq	(%rbx,%rdx,4), %rdi
	subq	%rcx, %rbx
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_10
## %bb.11:
	movslq	%eax, %rcx
	leaq	(%rsi,%rcx,4), %r8
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%r8, %rsi
	jae	LBB0_25
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	leaq	4(%rsi), %rax
	movl	(%rsi), %ecx
	movl	$1, %edx
	cmpl	$128, %ecx
	jl	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%r8, %rax
	jae	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	4(%rsi), %edx
	testl	%edx, %edx
	je	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	$8, %rsi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rsi
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movslq	%edx, %rdx
	movq	%r14, %rax
	subq	%rdi, %rax
	sarq	$2, %rax
	cmpq	%rdx, %rax
	jle	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	cmpq	$0, (%r10)
	setne	%al
	andl	$-129, %ecx
	shll	$7, %eax
	orl	%ecx, %eax
	addq	$4, %r12
	movq	%r12, %rcx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=2
	movl	%ecx, (%rdi)
	addq	$4, %rdi
	cmpq	%rbx, %rdi
	je	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=2
	decq	%rdx
	leaq	4(%r12), %rcx
	testl	%edx, %edx
	je	LBB0_24
LBB0_19:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %r12
	movl	%eax, %ecx
	cmpl	$128, %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	-4(%r12), %ecx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=2
	leaq	(%rbx,%r11,4), %rdi
	leaq	(%rbx,%r15,4), %rbx
	movq	%r14, %rcx
	subq	%rdi, %rcx
	sarq	$2, %rcx
	cmpq	%rdx, %rcx
	jge	LBB0_23
	jmp	LBB0_24
LBB0_10:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
LBB0_25:
	cmpq	$0, (%r10)
	je	LBB0_29
## %bb.26:
	cmpq	%r14, %rdi
	jae	LBB0_29
## %bb.27:
	movslq	%r9d, %rax
	shlq	$2, %r15
	shlq	$2, %rax
	movq	%rbx, %r13
	subq	%rax, %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r14
	movq	%rbx, %r15
	subq	%rdi, %r15
	movq	%r15, %rdx
	shrq	$2, %rdx
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	addq	%r15, %r12
	movq	%r14, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addq	%r15, %r13
	addq	%r15, %rbx
	movq	%r13, %rdi
	cmpq	%r14, %r13
	jb	LBB0_28
LBB0_29:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rl2_rle_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rl2_rle_decode
_rl2_rle_decode:                        ; @rl2_rle_decode
	.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
                                        ; kill: def $w4 killed $w4 def $x4
	mov	x22, x3
	mov	x11, x2
	mov	x21, x1
	mov	x20, x0
	ldp	x8, x9, [x0]
	ldp	w2, w9, [x9]
	sxtw	x10, w2
	sdiv	w23, w5, w2
	msub	w26, w23, w2, w5
	sxtw	x27, w4
	sub	x28, x27, x10
	mul	w9, w9, w4
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	tbnz	w23, #31, LBB0_6
; %bb.1:
	stp	w9, w11, [sp, #8]               ; 8-byte Folded Spill
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	mov	x9, x4
	sbfiz	x19, x9, #2, #32
	mov	x25, x22
	mov	x24, x8
	cbz	x8, LBB0_3
LBB0_2:
	mov	x0, x25
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x24, w2, sxtw #2
	cbz	w23, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	add	x25, x25, x19
	sub	w23, w23, #1
	cbnz	x8, LBB0_2
	b	LBB0_3
LBB0_5:
	add	x8, x25, x19
	ldr	x4, [sp, #16]                   ; 8-byte Folded Reload
	ldp	w9, w11, [sp, #8]               ; 8-byte Folded Reload
	b	LBB0_7
LBB0_6:
	mov	x24, x8
	mov	x8, x22
LBB0_7:
	add	x25, x22, w9, sxtw #2
	sub	w9, w26, w2
	add	x22, x24, w9, sxtw #2
	sub	x24, x8, x28, lsl #2
	sub	w9, w26, w4
	add	x0, x8, w9, sxtw #2
	cmp	w11, #1
	b.lt	LBB0_22
; %bb.8:
	add	x8, x21, w11, sxtw #2
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	cmp	x21, x8
	b.hs	LBB0_22
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	mov	x11, x21
	ldr	w9, [x11], #4
	cmp	w9, #128
	b.lt	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x11, x8
	b.hs	LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w10, [x21, #4]
	cbz	w10, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #8
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w10, #1
	mov	x21, x11
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	sxtw	x10, w10
	sub	x11, x25, x0
	cmp	x10, x11, asr #2
	b.ge	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x11, [x20]
	cmp	x11, #0
	cset	w11, ne
	bfi	w9, w11, #7, #1
	add	x11, x22, #4
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	str	w11, [x0], #4
	cmp	x0, x24
	b.eq	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x11, x22, #4
	sub	x10, x10, #1
	cbz	w10, LBB0_9
LBB0_19:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x11
	mov	x11, x9
	cmp	w9, #128
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	ldur	w11, [x22, #-4]
	b	LBB0_17
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x0, x24, x28, lsl #2
	add	x24, x24, x27, lsl #2
	sub	x11, x25, x0
	cmp	x10, x11, asr #2
	b.le	LBB0_18
	b	LBB0_9
LBB0_22:
	ldr	x8, [x20]
	cmp	x8, #0
	ccmp	x0, x25, #2, ne
	b.hs	LBB0_25
; %bb.23:
	mov	x8, x4
	mov	x19, #0
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sbfiz	x20, x8, #2, #32
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sub	x21, x24, x8, lsl #2
	add	x23, x21, x20
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x24, x19
	sub	x26, x8, x0
	lsr	x2, x26, #2
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	add	x22, x22, x26
	add	x0, x23, x19
	add	x19, x19, x20
	add	x8, x21, x19
	cmp	x8, x25
	b.lo	LBB0_24
LBB0_25:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rl2_rle_decode
.subsections_via_symbols
