	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function epic_decode_run_length
_epic_decode_run_length:                ## @epic_decode_run_length
	.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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	32(%rbp), %rax
	movl	$0, (%rax)
	movl	%esi, %edi
	callq	_LOAD_NEIGHBOURS
	movl	$1, %r14d
	movq	%rbx, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	%ebx, (%r12)
	je	LBB0_4
## %bb.1:
	leaq	16(%r12), %rdi
	movq	8(%r12), %rsi
	callq	_ff_els_decode_bit
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_21
## %bb.2:
	je	LBB0_3
LBB0_4:
	incl	48(%r12)
	xorl	%eax, %eax
LBB0_5:
	leaq	16(%r12), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	decl	-48(%rbp)                       ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, %ebx
	movl	%eax, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%rbp), %rax
	movl	(%rax), %r13d
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	setne	%r15b
	leal	(%r15,%r15), %eax
	orl	%ebx, %eax
	leal	-5(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$3, %eax
	jne	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_is_pixel_on_stack
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	testl	%r13d, %r13d
	setne	%al
	movl	%ebx, %ecx
	shll	$8, %ecx
	movq	32(%rbp), %rdx
	movl	(%rdx), %edx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	shll	$7, %esi
	testl	%edx, %edx
	cmovel	%edx, %esi
	shll	$6, %eax
	orl	%ecx, %eax
	orl	%esi, %eax
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	64(%r12), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_els_decode_bit
	movl	$0, %r15d
	testl	%eax, %eax
	je	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_is_pixel_on_stack
	xorl	%r14d, %r14d
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	48(%r12)
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%rbp), %rdx
	movl	(%rdx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rdx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx), %edi
	incl	%edi
	cmpl	-48(%rbp), %edi                 ## 4-byte Folded Reload
	jge	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	callq	_UPDATE_NEIGHBOURS
	shll	$6, %r15d
	shll	$7, %ebx
	orl	%r15d, %ebx
	movslq	%ebx, %rsi
	shlq	$2, %rsi
	addq	8(%r12), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_els_decode_bit
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_6
	jmp	LBB0_19
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r14d
	jmp	LBB0_17
LBB0_19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rbp), %rcx
	addl	(%rcx), %eax
	movl	%eax, %edi
LBB0_20:
	movl	%edi, (%r12)
LBB0_21:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EPIC_PIX_STACK_MAX,8,3         ## @EPIC_PIX_STACK_MAX
	.no_dead_strip	_epic_decode_run_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function epic_decode_run_length
_epic_decode_run_length:                ; @epic_decode_run_length
	.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	x23, x3
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x29, #16]
	str	wzr, [x24]
	mov	x0, x1
	bl	_LOAD_NEIGHBOURS
	ldr	w8, [x19]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w22, #1
	b	LBB0_4
LBB0_2:
	add	x0, x19, #16
	ldr	x1, [x19, #8]
	bl	_ff_els_decode_bit
	mov	x22, x0
	tbnz	w0, #31, LBB0_20
; %bb.3:
	cbz	w22, LBB0_21
LBB0_4:
	mov	w8, #0
	ldr	w9, [x19, #48]
	add	w9, w9, #1
	str	w9, [x19, #48]
LBB0_5:
	mov	w25, #0
	add	x21, x19, #16
	sub	w23, w23, #1
	mov	x26, x22
	mov	x22, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w22, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w27, #0
	mov	w22, #1
	b	LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w28, [x24]
	cmp	w28, #0
	cset	w27, ne
	orr	w22, w26, w27, lsl #1
	sub	w8, w22, #5
	cmp	w8, #3
	b.lo	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w22, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #3
	b.ne	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_is_pixel_on_stack
	cbnz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w28, #0
	cset	w8, ne
	lsl	w9, w26, #8
	ldr	w10, [x24]
	lsl	w11, w25, #7
	cmp	w10, #0
	csel	w10, wzr, w11, eq
	bfi	w9, w8, #6, #1
	orr	w8, w9, w10
	ldr	x9, [x19, #64]
	add	x1, x9, w8, sxtw #2
	mov	x0, x21
	bl	_ff_els_decode_bit
	cbz	w0, LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_is_pixel_on_stack
	mov	w22, #0
	cbnz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w27, #1
	mov	x25, x26
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	add	w0, w8, w20
	cmp	w0, w23
	b.ge	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_UPDATE_NEIGHBOURS
	lsl	w8, w26, #7
	bfi	w8, w27, #6, #1
	ldr	x9, [x19, #8]
	add	x1, x9, w8, sxtw #2
	mov	x0, x21
	bl	_ff_els_decode_bit
	mov	w26, #0
	cbz	w0, LBB0_6
; %bb.18:
	ldr	w8, [x24]
	add	w0, w8, w20
LBB0_19:
	str	w0, [x19]
LBB0_20:
	mov	x0, x22
	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
LBB0_21:
	mov	w8, #1
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.comm	_EPIC_PIX_STACK_MAX,8,3         ; @EPIC_PIX_STACK_MAX
	.no_dead_strip	_epic_decode_run_length
.subsections_via_symbols
