	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rle_uncompress
_rle_uncompress:                        ## @rle_uncompress
	.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
	movl	%r9d, %ebx
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	16(%rbp), %r14d
	leal	-1(%r8), %esi
	imull	%r14d, %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_bytestream2_seek_p
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_bytestream2_get_bytes_left
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	addl	%ebx, %r14d
	negl	%r14d
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	addl	24(%rbp), %ebx
	negl	%ebx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	testq	%rax, %rax
	jle	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movq	%rbx, %rdi
	callq	_bytestream2_get_le24
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_bytestream2_get_byte
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
	cmpl	$255, %eax
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_bytestream2_tell_p
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bytestream2_seek
	testl	%r14d, %r14d
	jle	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_le24
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_bytestream2_put_le24
	incl	%r12d
	decl	%r14d
	je	LBB0_20
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_SEEK_CUR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_bytestream2_seek_p
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bytestream2_seek
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_bytestream2_get_le32
	testl	%eax, %eax
	je	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_bytestream2_put_le24
	incl	%r12d
	decl	%ebx
	je	LBB0_20
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_bytestream2_seek_p
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_bytestream2_put_le24
	incl	%r12d
	decl	%r15d
	je	LBB0_20
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_bytestream2_seek_p
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_1:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_21:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.no_dead_strip	_rle_uncompress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rle_uncompress
_rle_uncompress:                        ; @rle_uncompress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x7
	mov	x23, x6
	mov	x25, x5
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	sub	w8, w4, #1
	mul	w1, w8, w6
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_bytestream2_seek_p
	mov	x0, x22
	bl	_bytestream2_get_bytes_left
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.1:
	mov	w26, #0
	add	w8, w25, w23
	neg	w23, w8
	add	w8, w25, w24
	neg	w24, w8
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x28, _SEEK_CUR@GOTPAGE
Lloh4:
	ldr	x28, [x28, _SEEK_CUR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_bytestream2_get_bytes_left
	cmp	x0, #0
	b.le	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	mov	x0, x22
	bl	_bytestream2_get_le24
	mov	x25, x0
	mov	x0, x22
	bl	_bytestream2_get_byte
	cbz	w0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	cmp	w0, #255
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_bytestream2_tell_p
	mov	x1, x0
Lloh5:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_bytestream2_seek
	cmp	w25, #1
	b.ge	LBB0_11
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x21
	mov	x1, x25
	bl	_bytestream2_put_le24
	add	w26, w26, #1
	subs	w27, w27, #1
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w26, w19
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w2, [x28]
	mov	x0, x21
	mov	x1, x23
	bl	_bytestream2_seek_p
	mov	w26, #0
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x20
	bl	_bytestream2_get_le24
	mov	x1, x0
	mov	x0, x21
	bl	_bytestream2_put_le24
	add	w26, w26, #1
	subs	w25, w25, #1
	b.eq	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w26, w19
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w2, [x28]
	mov	x0, x21
	mov	x1, x23
	bl	_bytestream2_seek_p
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x24
	bl	_bytestream2_seek
	mov	w26, #0
	b	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_bytestream2_get_le32
	cbz	w0, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x21
	mov	x1, x25
	bl	_bytestream2_put_le24
	add	w26, w26, #1
	subs	w27, w27, #1
	b.eq	LBB0_3
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w26, w19
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w2, [x28]
	mov	x0, x21
	mov	x1, x23
	bl	_bytestream2_seek_p
	mov	w26, #0
	b	LBB0_15
LBB0_18:
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
LBB0_19:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.no_dead_strip	_rle_uncompress
.subsections_via_symbols
