	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ulti_convert_yuv
_ulti_convert_yuv:                      ## @ulti_convert_yuv
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movslq	%esi, %rbx
	leaq	(,%rbx,8), %r14
	movq	(%rdi), %r10
	movq	8(%rdi), %r11
	addq	(%r10), %r14
	movslq	(%r11), %rax
	movslq	%edx, %rsi
	movq	%rax, %r13
	imulq	%rsi, %r13
	leaq	(%r14,%r13,8), %r9
	leal	3(%rbx), %edx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edx
	sarl	$2, %edx
	movslq	%edx, %rdx
	shlq	$3, %rdx
	movq	8(%r10), %r15
	addq	%rdx, %r15
	leal	3(%rsi), %ebx
	testl	%esi, %esi
	cmovnsl	%esi, %ebx
	sarl	$2, %ebx
	movslq	4(%r11), %rsi
	movslq	%ebx, %r12
	addq	16(%r10), %rdx
	imulq	%r12, %rsi
	movslq	8(%r11), %rbx
	imulq	%r12, %rbx
	movq	_ulti_chromas@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r10
	movl	%r8d, %edi
	sarl	$4, %edi
	movslq	%edi, %rdi
	movq	(%r10,%rdi,8), %rdi
	movq	%rdi, (%r15,%rsi,8)
	andl	$15, %r8d
	movq	(%r10,%r8,8), %rsi
	movq	%rsi, (%rdx,%rbx,8)
	movq	_ulti_lumas@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rsi, (%r14,%r13,8)
	movq	8(%rcx), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rsi, 8(%r14,%r13,8)
	movq	16(%rcx), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rsi, 16(%r14,%r13,8)
	movq	24(%rcx), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rsi, 24(%r14,%r13,8)
	leaq	(%r9,%rax,8), %rsi
	movq	32(%rcx), %rdi
	movq	(%rdx,%rdi,8), %rdi
	movq	%rdi, (%r9,%rax,8)
	movq	40(%rcx), %rdi
	movq	(%rdx,%rdi,8), %rdi
	movq	%rdi, 8(%r9,%rax,8)
	movq	48(%rcx), %rdi
	movq	(%rdx,%rdi,8), %rdi
	movq	%rdi, 16(%r9,%rax,8)
	movq	56(%rcx), %rdi
	movq	(%rdx,%rdi,8), %rdi
	movq	%rdi, 24(%r9,%rax,8)
	leaq	(%rsi,%rax,8), %rdi
	movq	64(%rcx), %rbx
	movq	(%rdx,%rbx,8), %rbx
	movq	%rbx, (%rsi,%rax,8)
	movq	72(%rcx), %rbx
	movq	(%rdx,%rbx,8), %rbx
	movq	%rbx, 8(%rsi,%rax,8)
	movq	80(%rcx), %rbx
	movq	(%rdx,%rbx,8), %rbx
	movq	%rbx, 16(%rsi,%rax,8)
	movq	88(%rcx), %rbx
	movq	(%rdx,%rbx,8), %rbx
	movq	%rbx, 24(%rsi,%rax,8)
	movq	96(%rcx), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rsi, (%rdi,%rax,8)
	movq	104(%rcx), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rsi, 8(%rdi,%rax,8)
	movq	112(%rcx), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rsi, 16(%rdi,%rax,8)
	movq	120(%rcx), %rcx
	movq	(%rdx,%rcx,8), %rcx
	movq	%rcx, 24(%rdi,%rax,8)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ulti_chromas,8,3               ## @ulti_chromas
	.comm	_ulti_lumas,8,3                 ## @ulti_lumas
	.no_dead_strip	_ulti_convert_yuv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ulti_convert_yuv
_ulti_convert_yuv:                      ; @ulti_convert_yuv
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0]
	ldp	x10, x11, [x8]
	add	x10, x10, w1, sxtw #3
	ldp	w12, w13, [x9]
                                        ; kill: def $w12 killed $w12 def $x12
	sxtw	x12, w12
	mul	w14, w12, w2
	add	x10, x10, w14, sxtw #3
	add	w14, w1, #3
	cmp	w1, #0
	csel	w14, w14, w1, lt
	add	w15, w2, #3
	cmp	w2, #0
	csel	w15, w15, w2, lt
	asr	w14, w14, #2
	sbfiz	x14, x14, #3, #32
	add	x11, x11, x14
	asr	w15, w15, #2
	mul	w13, w13, w15
	ldr	x8, [x8, #16]
	add	x8, x8, x14
	ldr	w9, [x9, #8]
	mul	w9, w9, w15
Lloh0:
	adrp	x14, _ulti_chromas@GOTPAGE
Lloh1:
	ldr	x14, [x14, _ulti_chromas@GOTPAGEOFF]
Lloh2:
	ldr	x14, [x14]
	asr	w15, w4, #4
	ldr	x15, [x14, w15, sxtw #3]
	str	x15, [x11, w13, sxtw #3]
	and	w11, w4, #0xf
	ldr	x11, [x14, w11, uxtw #3]
	str	x11, [x8, w9, sxtw #3]
Lloh3:
	adrp	x8, _ulti_lumas@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ulti_lumas@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x3]
	ldr	x9, [x8, x9, lsl #3]
	str	x9, [x10]
	ldr	x9, [x3, #8]
	ldr	x9, [x8, x9, lsl #3]
	str	x9, [x10, #8]
	ldr	x9, [x3, #16]
	ldr	x9, [x8, x9, lsl #3]
	str	x9, [x10, #16]
	ldr	x9, [x3, #24]
	ldr	x9, [x8, x9, lsl #3]
	str	x9, [x10, #24]
	lsl	x9, x12, #3
	ldr	x11, [x3, #32]
	ldr	x11, [x8, x11, lsl #3]
	add	x10, x10, x9
	add	x12, x10, x9
	str	x11, [x10]
	ldr	x11, [x3, #40]
	ldr	x11, [x8, x11, lsl #3]
	str	x11, [x10, #8]
	ldr	x11, [x3, #48]
	ldr	x11, [x8, x11, lsl #3]
	str	x11, [x10, #16]
	ldr	x11, [x3, #56]
	ldr	x11, [x8, x11, lsl #3]
	str	x11, [x10, #24]
	ldr	x10, [x3, #64]
	ldr	x10, [x8, x10, lsl #3]
	str	x10, [x12]
	ldr	x10, [x3, #72]
	ldr	x10, [x8, x10, lsl #3]
	str	x10, [x12, #8]
	ldr	x10, [x3, #80]
	ldr	x10, [x8, x10, lsl #3]
	str	x10, [x12, #16]
	ldr	x10, [x3, #88]
	ldr	x10, [x8, x10, lsl #3]
	str	x10, [x12, #24]
	add	x9, x12, x9
	ldr	x10, [x3, #96]
	ldr	x10, [x8, x10, lsl #3]
	str	x10, [x9]
	ldr	x10, [x3, #104]
	ldr	x10, [x8, x10, lsl #3]
	str	x10, [x9, #8]
	ldr	x10, [x3, #112]
	ldr	x10, [x8, x10, lsl #3]
	str	x10, [x9, #16]
	ldr	x10, [x3, #120]
	ldr	x8, [x8, x10, lsl #3]
	str	x8, [x9, #24]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ulti_chromas,8,3               ; @ulti_chromas
	.comm	_ulti_lumas,8,3                 ; @ulti_lumas
	.no_dead_strip	_ulti_convert_yuv
.subsections_via_symbols
