	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp_yuv_to_rgb
_mp_yuv_to_rgb:                         ## @mp_yuv_to_rgb
	.cfi_startproc
## %bb.0:
	imull	$1000, %edi, %eax               ## imm = 0x3E8
	imull	$701, %esi, %edi                ## imm = 0x2BD
	addl	%eax, %edi
	movslq	%edi, %rdi
	imulq	$274877907, %rdi, %r8           ## imm = 0x10624DD3
	movq	%r8, %rdi
	shrq	$63, %rdi
	sarq	$38, %r8
	addl	%edi, %r8d
	imull	$-357, %esi, %esi               ## imm = 0xFE9B
	addl	%eax, %esi
	imull	$-172, %edx, %edi
	addl	%esi, %edi
	movslq	%edi, %rsi
	imulq	$274877907, %rsi, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$38, %rsi
	addl	%edi, %esi
	imull	$886, %edx, %edx                ## imm = 0x376
	addl	%eax, %edx
	movslq	%edx, %rax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$38, %rdx
	addl	%eax, %edx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ff_crop_tab@GOTPCREL(%rip), %rax
	movq	_MAX_NEG_CROP@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	shll	$3, %r8d
	movslq	%r8d, %rax
	movl	(%rcx,%rax,4), %eax
	shll	$7, %eax
	andl	$31744, %eax                    ## imm = 0x7C00
	shll	$3, %esi
	movslq	%esi, %rsi
	movl	$248, %edi
	andl	(%rcx,%rsi,4), %edi
	leal	(%rax,%rdi,4), %esi
	shll	$3, %edx
	movslq	%edx, %rax
	movl	(%rcx,%rax,4), %eax
	sarl	$3, %eax
	orl	%esi, %eax
	popq	%rbp
	retq
LBB0_2:
	movl	$32768, %eax                    ## imm = 0x8000
	cmpl	$31, %r8d
	ja	LBB0_6
## %bb.3:
	cmpl	$31, %esi
	ja	LBB0_6
## %bb.4:
	cmpl	$31, %edx
	ja	LBB0_6
## %bb.5:
	shll	$10, %r8d
	shll	$5, %esi
	orl	%r8d, %edx
	orl	%esi, %edx
	movl	%edx, %eax
LBB0_6:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_crop_tab,8,3                ## @ff_crop_tab
	.comm	_MAX_NEG_CROP,4,2               ## @MAX_NEG_CROP
	.no_dead_strip	_mp_yuv_to_rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp_yuv_to_rgb
_mp_yuv_to_rgb:                         ; @mp_yuv_to_rgb
	.cfi_startproc
; %bb.0:
	mov	w8, #1000
	mul	w10, w0, w8
	mov	w8, #701
	madd	w8, w1, w8, w10
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x8, w8, w11
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mov	w9, #-357
	madd	w9, w1, w9, w10
	mov	w12, #-172
	madd	w9, w2, w12, w9
	smull	x9, w9, w11
	lsr	x12, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w12
	mov	w12, #886
	madd	w10, w2, w12, w10
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	cbz	w3, LBB0_2
; %bb.1:
Lloh0:
	adrp	x11, _ff_crop_tab@GOTPAGE
Lloh1:
	ldr	x11, [x11, _ff_crop_tab@GOTPAGEOFF]
Lloh2:
	adrp	x12, _MAX_NEG_CROP@GOTPAGE
Lloh3:
	ldr	x12, [x12, _MAX_NEG_CROP@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
Lloh5:
	ldrsw	x12, [x12]
	add	x11, x11, x12, lsl #2
	lsl	w8, w8, #3
	ldr	w8, [x11, w8, sxtw #2]
	lsl	w8, w8, #7
	and	w8, w8, #0x7c00
	lsl	w9, w9, #3
	ldr	w9, [x11, w9, sxtw #2]
	lsr	w9, w9, #3
	bfi	w8, w9, #5, #5
	lsl	w9, w10, #3
	ldr	w9, [x11, w9, sxtw #2]
	orr	w0, w8, w9, asr #3
	ret
LBB0_2:
	mov	w11, #32768
	cmp	w8, #31
	ccmp	w9, #31, #2, ls
	ccmp	w10, #31, #2, ls
	orr	w8, w10, w8, lsl #10
	orr	w8, w8, w9, lsl #5
	csel	w0, w11, w8, hi
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_crop_tab,8,3                ; @ff_crop_tab
	.comm	_MAX_NEG_CROP,4,2               ; @MAX_NEG_CROP
	.no_dead_strip	_mp_yuv_to_rgb
.subsections_via_symbols
