	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function epic_decode_from_cache
_epic_decode_from_cache:                ## @epic_decode_from_cache
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r13
	addq	$20, %rdi
	callq	_epic_hash_find
	movq	%rax, %r15
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_10
## %bb.1:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%r13), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r14
	movq	(%rbx), %rax
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %esi
	movq	%r13, %rdi
	callq	_is_pixel_on_stack
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	12(%rbx), %rsi
	movq	%r12, %rdi
	callq	_ff_els_decode_bit
	movl	8(%rbx), %ecx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rax
	movslq	(%r13), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r13)
	movq	_EPIC_PIX_STACK_MAX@GOTPCREL(%rip), %rsi
	andq	(%rsi), %rdx
	movl	%ecx, (%rax,%rdx,4)
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	(%r15), %rcx
	movl	$1, %eax
	cmpq	%rcx, %rbx
	je	LBB0_10
## %bb.6:
	movq	(%rbx), %rdx
	movq	%rdx, (%r14)
	movq	%rcx, (%rbx)
	movq	%rbx, (%r15)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPIC_PIX_STACK_MAX,8,3         ## @EPIC_PIX_STACK_MAX
	.no_dead_strip	_epic_decode_from_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function epic_decode_from_cache
_epic_decode_from_cache:                ; @epic_decode_from_cache
	.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, x2
	mov	x21, x0
	add	x0, x0, #20
	bl	_epic_hash_find
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x23, [x0]
	cbz	x23, LBB0_9
; %bb.2:
	mov	x24, #0
	add	x22, x21, #16
Lloh0:
	adrp	x25, _EPIC_PIX_STACK_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EPIC_PIX_STACK_MAX@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x21, #8]
	ldrsw	x10, [x21]
	add	w11, w10, #1
	str	w11, [x21]
	ldr	x11, [x25]
	and	x10, x11, x10
	str	w8, [x9, x10, lsl #2]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	mov	x24, x23
	mov	x23, x8
	cbz	x8, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23, #8]
	mov	x0, x21
	bl	_is_pixel_on_stack
	cbnz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x23, #12
	mov	x0, x22
	bl	_ff_els_decode_bit
	ldr	w8, [x23, #8]
	cbz	x0, LBB0_3
; %bb.7:
	str	w8, [x20]
	ldr	x8, [x19]
	cmp	x23, x8
	b.eq	LBB0_11
; %bb.8:
	ldr	x9, [x23]
	str	x9, [x24]
	str	x8, [x23]
	str	x23, [x19]
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
	mov	w0, #1
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EPIC_PIX_STACK_MAX,8,3         ; @EPIC_PIX_STACK_MAX
	.no_dead_strip	_epic_decode_from_cache
.subsections_via_symbols
