	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function epic_decode_pixel_pred
_epic_decode_pixel_pred:                ## @epic_decode_pixel_pred
	.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	%esi, %eax
	addl	$-1, %eax
	cltq
	leaq	(%rcx,%rax,4), %rcx
	jae	LBB0_3
## %bb.1:
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movl	(%rcx), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rcx
	movl	(%r8,%rcx,4), %r14d
	movl	(%r8,%rax,4), %r13d
	movq	_G_shift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r14d, %eax
	sarl	%cl, %eax
	movzbl	%al, %esi
	movl	%edx, %eax
	sarl	%cl, %eax
	movzbl	%al, %r15d
	movl	%r13d, %eax
	sarl	%cl, %eax
	movzbl	%al, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edx
	callq	_epic_decode_component_pred
	movl	%eax, %r12d
	movq	_R_shift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r14d, %eax
	sarl	%cl, %eax
	movzbl	%al, %esi
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	sarl	%cl, %eax
	subl	%ebx, %esi
	movl	%r13d, %edi
	sarl	%cl, %edi
	movzbl	%al, %edx
	subl	%r15d, %edx
	movl	%r15d, %ebx
	movzbl	%dil, %ecx
	subl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_epic_decode_component_pred
	movl	%eax, %r15d
	addl	%r12d, %r15d
	movq	_B_shift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movzbl	%r14b, %esi
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	sarl	%cl, %eax
	subl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	sarl	%cl, %r13d
	movzbl	%al, %edx
	subl	%ebx, %edx
	movzbl	%r13b, %ecx
	subl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_epic_decode_component_pred
	movl	%eax, %ebx
	addl	%r12d, %ebx
	testl	%r15d, %r15d
	jns	LBB0_5
	jmp	LBB0_10
LBB0_3:
	testl	%esi, %esi
	cmovneq	%rcx, %r8
	movl	(%r8), %ebx
	leaq	4(%rdi), %r14
	movq	%rdi, %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ff_els_decode_unsigned
	movq	_R_shift@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%ebx, %edx
	sarl	%cl, %edx
	movzbl	%dl, %r15d
	movl	%eax, %edi
	callq	_TOSIGNED
	subl	%eax, %r15d
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ff_els_decode_unsigned
	movq	_G_shift@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%ebx, %edx
	sarl	%cl, %edx
	movzbl	%dl, %r12d
	movl	%eax, %edi
	callq	_TOSIGNED
	subl	%eax, %r12d
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ff_els_decode_unsigned
	movq	_B_shift@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	movzbl	%bl, %ebx
	movl	%eax, %edi
	callq	_TOSIGNED
	subl	%eax, %ebx
	testl	%r15d, %r15d
	js	LBB0_10
LBB0_5:
	testl	%r12d, %r12d
	js	LBB0_10
## %bb.6:
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.7:
	cmpl	$255, %r15d
	jg	LBB0_10
## %bb.8:
	cmpl	$255, %r12d
	jg	LBB0_10
## %bb.9:
	cmpl	$256, %ebx                      ## imm = 0x100
	jge	LBB0_10
## %bb.11:
	movq	_R_shift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	_G_shift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	orl	%r15d, %r12d
	movq	_B_shift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r12d, %ebx
	movl	%ebx, %r14d
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_avpriv_request_sample
LBB0_12:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_G_shift,4,2                    ## @G_shift
	.comm	_R_shift,4,2                    ## @R_shift
	.comm	_B_shift,4,2                    ## @B_shift
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RGB %d %d %d is out of range\n"

	.no_dead_strip	_epic_decode_pixel_pred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function epic_decode_pixel_pred
_epic_decode_pixel_pred:                ; @epic_decode_pixel_pred
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	sxtw	x8, w1
	sub	x9, x8, #1
	add	x10, x3, x9, lsl #2
Lloh0:
	adrp	x21, _R_shift@GOTPAGE
Lloh1:
	ldr	x21, [x21, _R_shift@GOTPAGEOFF]
Lloh2:
	adrp	x27, _G_shift@GOTPAGE
Lloh3:
	ldr	x27, [x27, _G_shift@GOTPAGEOFF]
Lloh4:
	adrp	x24, _B_shift@GOTPAGE
Lloh5:
	ldr	x24, [x24, _B_shift@GOTPAGEOFF]
	cbz	w1, LBB0_3
; %bb.1:
	cbz	w2, LBB0_3
; %bb.2:
	ldr	w28, [x10]
	ldr	w25, [x4, x8, lsl #2]
	ldr	w26, [x4, x9, lsl #2]
	ldr	w8, [x27]
	asr	w9, w25, w8
	and	w22, w9, #0xff
	asr	w9, w28, w8
	and	w23, w9, #0xff
	asr	w8, w26, w8
	mov	x27, x24
	and	w24, w8, #0xff
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_epic_decode_component_pred
	mov	x20, x0
	ldr	w8, [x21]
	asr	w9, w25, w8
	and	w9, w9, #0xff
	sub	w1, w9, w22
	asr	w9, w28, w8
	and	w9, w9, #0xff
	sub	w2, w9, w23
	asr	w8, w26, w8
	and	w8, w8, #0xff
	sub	w3, w8, w24
	mov	x0, x19
	bl	_epic_decode_component_pred
	add	w21, w0, w20
	ldr	w8, [x27]
	asr	w9, w25, w8
	and	w9, w9, #0xff
	sub	w1, w9, w22
	asr	w9, w28, w8
	and	w9, w9, #0xff
	sub	w2, w9, w23
	asr	w8, w26, w8
	and	w8, w8, #0xff
	sub	w3, w8, w24
	mov	x24, x27
Lloh6:
	adrp	x27, _G_shift@GOTPAGE
Lloh7:
	ldr	x27, [x27, _G_shift@GOTPAGEOFF]
	mov	x0, x19
	bl	_epic_decode_component_pred
	add	w4, w0, w20
	tbz	w21, #31, LBB0_4
	b	LBB0_10
LBB0_3:
	cmp	w1, #0
	csel	x8, x10, x4, ne
	ldr	w23, [x8]
	add	x22, x19, #4
	mov	x0, x22
	mov	x1, x19
	bl	_ff_els_decode_unsigned
	ldr	w8, [x21]
	asr	w8, w23, w8
	and	w20, w8, #0xff
	bl	_TOSIGNED
	sub	w21, w20, w0
	mov	x0, x22
	mov	x1, x19
	bl	_ff_els_decode_unsigned
	ldr	w8, [x27]
	asr	w8, w23, w8
	and	w20, w8, #0xff
	bl	_TOSIGNED
	sub	w20, w20, w0
	mov	x0, x22
	mov	x1, x19
	bl	_ff_els_decode_unsigned
	ldr	w8, [x24]
	asr	w8, w23, w8
	and	w19, w8, #0xff
	bl	_TOSIGNED
	sub	w4, w19, w0
	tbnz	w21, #31, LBB0_10
LBB0_4:
	tbnz	w20, #31, LBB0_10
; %bb.5:
	tbnz	w4, #31, LBB0_10
; %bb.6:
	cmp	w21, #255
	b.gt	LBB0_10
; %bb.7:
	cmp	w20, #255
	b.gt	LBB0_10
; %bb.8:
	cmp	w4, #256
	b.ge	LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _R_shift@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R_shift@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w8, w21, w8
	ldr	w9, [x27]
	lsl	w9, w20, w9
	orr	w8, w9, w8
	ldr	w9, [x24]
	lsl	w9, w4, w9
	orr	w0, w8, w9
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	mov	x2, x21
	mov	x3, x20
	bl	_avpriv_request_sample
	mov	w0, #0
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_G_shift,4,2                    ; @G_shift
	.comm	_R_shift,4,2                    ; @R_shift
	.comm	_B_shift,4,2                    ; @B_shift
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RGB %d %d %d is out of range\n"

	.no_dead_strip	_epic_decode_pixel_pred
.subsections_via_symbols
