	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function epic_handle_edges
_epic_handle_edges:                     ## @epic_handle_edges
	.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	%r9, %r14
	movq	%rdi, %r13
	movl	%edx, %eax
	orl	%esi, %eax
	je	LBB0_1
## %bb.2:
	movq	%r8, %r15
	movl	%edx, %r12d
	movslq	%esi, %rbx
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movq	-8(%rcx,%rbx,8), %rcx
	leaq	16(%r13), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_epic_predict_pixel
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
LBB0_4:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.5:
	movq	(%r15,%rbx,8), %rcx
	cmpl	$0, 12(%r13)
	je	LBB0_7
## %bb.6:
	movq	(%r13), %rax
	cmpq	%rcx, (%rax)
	je	LBB0_8
LBB0_7:
	leaq	8(%r13), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_epic_predict_pixel
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	leaq	24(%r13), %r15
	addq	$20, %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ff_els_decode_unsigned
	movq	%rax, %r12
	movq	_R_shift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r12
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ff_els_decode_unsigned
	movq	%rax, %rbx
	movq	_G_shift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rbx
	orq	%r12, %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ff_els_decode_unsigned
	movq	_B_shift@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	orq	%rbx, %rax
	movq	%rax, (%r14)
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_shift,8,3                    ## @R_shift
	.comm	_G_shift,8,3                    ## @G_shift
	.comm	_B_shift,8,3                    ## @B_shift
	.no_dead_strip	_epic_handle_edges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function epic_handle_edges
_epic_handle_edges:                     ; @epic_handle_edges
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x5
	mov	x20, x0
	orr	w8, w2, w1
	cbz	w8, LBB0_8
; %bb.1:
	mov	x21, x4
	mov	x23, x2
	mov	x22, x1
	cbz	w1, LBB0_3
; %bb.2:
	add	x8, x3, w22, sxtw #3
	ldur	x3, [x8, #-8]
	add	x1, x20, #16
	mov	x0, x20
	mov	x2, x19
	bl	_epic_predict_pixel
	cbnz	x0, LBB0_7
LBB0_3:
	cbz	w23, LBB0_9
; %bb.4:
	ldr	x3, [x21, w22, sxtw #3]
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x8, x3
	b.eq	LBB0_9
LBB0_6:
	add	x1, x20, #8
	mov	x0, x20
	mov	x2, x19
	bl	_epic_predict_pixel
	cbz	x0, LBB0_9
LBB0_7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
	add	x21, x20, #24
	add	x20, x20, #20
	mov	x0, x21
	mov	x1, x20
	bl	_ff_els_decode_unsigned
Lloh0:
	adrp	x8, _R_shift@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_shift@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x22, x0, x8
	mov	x0, x21
	mov	x1, x20
	bl	_ff_els_decode_unsigned
Lloh3:
	adrp	x8, _G_shift@GOTPAGE
Lloh4:
	ldr	x8, [x8, _G_shift@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	x8, x0, x8
	orr	x22, x8, x22
	mov	x0, x21
	mov	x1, x20
	bl	_ff_els_decode_unsigned
Lloh6:
	adrp	x8, _B_shift@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B_shift@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	lsl	x8, x0, x8
	orr	x8, x22, x8
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R_shift,8,3                    ; @R_shift
	.comm	_G_shift,8,3                    ; @G_shift
	.comm	_B_shift,8,3                    ; @B_shift
	.no_dead_strip	_epic_handle_edges
.subsections_via_symbols
