	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuy2ToUV_c
_yuy2ToUV_c:                            ## @yuy2ToUV_c
	.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
	testl	%r9d, %r9d
	jle	LBB0_13
## %bb.1:
	movl	%r9d, %r10d
	cmpl	$5, %r9d
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_3:
	leaq	(%rdi,%r10,4), %rdx
	leaq	(%rsi,%r10,4), %rbx
	movq	%r10, %rax
	shlq	$4, %rax
	addq	%rcx, %rax
	cmpq	%rdi, %rbx
	seta	%r13b
	leaq	4(%rcx), %r9
	cmpq	%rsi, %rdx
	seta	%r14b
	cmpq	%rdi, %rax
	seta	%r12b
	cmpq	%rdx, %r9
	setb	%r15b
	cmpq	%rsi, %rax
	seta	%r11b
	cmpq	%rbx, %r9
	setb	%al
	xorl	%edx, %edx
	testb	%r14b, %r13b
	jne	LBB0_8
## %bb.4:
	andb	%r15b, %r12b
	jne	LBB0_8
## %bb.5:
	andb	%al, %r11b
	jne	LBB0_8
## %bb.6:
	movl	%r10d, %eax
	andl	$3, %eax
	testq	%rax, %rax
	movl	$4, %ebx
	cmovneq	%rax, %rbx
	movq	%r10, %rdx
	subq	%rbx, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r9), %xmm0
	movdqu	16(%r9), %xmm1
	movdqu	32(%r9), %xmm2
	movdqu	48(%r9), %xmm3
	pshufd	$170, %xmm3, %xmm4              ## xmm4 = xmm3[2,2,2,2]
	pblendw	$63, %xmm2, %xmm4               ## xmm4 = xmm2[0,1,2,3,4,5],xmm4[6,7]
	punpckldq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm1, %xmm3            ## xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
	punpcklqdq	%xmm2, %xmm3            ## xmm3 = xmm3[0],xmm2[0]
	punpckhdq	%xmm1, %xmm0            ## xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3]
	pblendw	$240, %xmm4, %xmm0              ## xmm0 = xmm0[0,1,2,3],xmm4[4,5,6,7]
	movdqu	%xmm3, (%rdi,%rax,4)
	movdqu	%xmm0, (%rsi,%rax,4)
	addq	$4, %rax
	addq	$64, %r9
	cmpq	%rax, %rdx
	jne	LBB0_7
LBB0_8:
	movl	%r10d, %ebx
	subl	%edx, %ebx
	movq	%rdx, %rax
	notq	%rax
	testb	$1, %bl
	je	LBB0_10
## %bb.9:
	movq	%rdx, %r9
	shlq	$4, %r9
	movl	4(%rcx,%r9), %ebx
	movl	%ebx, (%rdi,%rdx,4)
	movl	12(%rcx,%r9), %ebx
	movl	%ebx, (%rsi,%rdx,4)
	incq	%rdx
LBB0_10:
	addq	%r10, %rax
	je	LBB0_13
## %bb.11:
	movq	%rdx, %rax
	shlq	$4, %rax
	addq	%rcx, %rax
	addq	$28, %rax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	-24(%rax), %ebx
	movl	%ebx, (%rdi,%rdx,4)
	movl	-16(%rax), %ebx
	movl	%ebx, (%rsi,%rdx,4)
	movl	-8(%rax), %ebx
	movl	%ebx, 4(%rdi,%rdx,4)
	movl	(%rax), %ebx
	movl	%ebx, 4(%rsi,%rdx,4)
	addq	$2, %rdx
	addq	$32, %rax
	cmpq	%rdx, %r10
	jne	LBB0_12
LBB0_13:
	xorl	%edi, %edi
	cmpq	%r8, %rcx
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_assert1                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_yuy2ToUV_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuy2ToUV_c
_yuy2ToUV_c:                            ; @yuy2ToUV_c
	.cfi_startproc
; %bb.0:
	cmp	w5, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w8, w5
	cmp	w5, #9
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_8
LBB0_3:
	mov	x9, #0
	lsl	x10, x8, #2
	add	x12, x1, x10
	add	x11, x3, #4
	add	x13, x3, x8, lsl #4
	cmp	x13, x0
	add	x14, x0, x10
	ccmp	x11, x14, #2, hi
	cset	w10, lo
	cmp	x13, x1
	ccmp	x11, x12, #2, hi
	cset	w11, lo
	cmp	x14, x1
	ccmp	x12, x0, #0, hi
	b.hi	LBB0_8
; %bb.4:
	tbnz	w10, #0, LBB0_8
; %bb.5:
	tbnz	w11, #0, LBB0_8
; %bb.6:
	ands	x9, x8, #0x7
	mov	w10, #8
	csel	x9, x10, x9, eq
	sub	x9, x8, x9
	add	x10, x3, #68
	add	x11, x0, #16
	add	x12, x1, #16
	mov	x13, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x10, #64
	ld4.4s	{ v0, v1, v2, v3 }, [x14]
	ld4.4s	{ v4, v5, v6, v7 }, [x10]
	stp	q0, q4, [x11, #-16]
	stp	q2, q6, [x12, #-16]
	add	x10, x10, #128
	add	x11, x11, #32
	add	x12, x12, #32
	subs	x13, x13, #8
	b.ne	LBB0_7
LBB0_8:
	add	x10, x3, x9, lsl #4
	lsl	x11, x9, #2
	add	x10, x10, #12
	sub	x8, x8, x9
	add	x9, x1, x11
	add	x11, x0, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x10, #-8]
	str	w12, [x11], #4
	ldr	w12, [x10], #16
	str	w12, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	cmp	x3, x4
	cset	w0, eq
	b	_av_assert1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_yuy2ToUV_c
.subsections_via_symbols
