	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuvPlanartouyvy_c
_yuvPlanartouyvy_c:                     ## @yuvPlanartouyvy_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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	%r9d, -72(%rbp)                 ## 4-byte Spill
	testl	%r9d, %r9d
	jle	LBB0_17
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r11
	movl	40(%rbp), %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	sarl	%eax
	decl	%ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movslq	16(%rbp), %rcx
	movslq	32(%rbp), %rdx
	cmpl	$2, %eax
	movl	$1, %esi
	cmovgel	%eax, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leal	-1(%rsi), %eax
	leaq	1(%rax), %rsi
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	addq	%rax, %rax
	addq	$2, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	andq	$-8, %rsi
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	leaq	(%rsi,%rsi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	leaq	(,%rdx,4), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	leaq	(,%rcx,4), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %eax
	notl	%eax
	testl	%eax, -68(%rbp)                 ## 4-byte Folded Reload
	movl	$0, %eax
	cmovel	24(%rbp), %eax
	cltq
	leaq	(%r14,%rax,4), %r14
	leaq	(%r11,%rax,4), %r11
	addq	-152(%rbp), %r10                ## 8-byte Folded Reload
	addq	-160(%rbp), %r9                 ## 8-byte Folded Reload
	incq	%rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpl	-72(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	cmpl	$7, -144(%rbp)                  ## 4-byte Folded Reload
	jae	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r15
	movq	%r11, %r13
	movq	%r10, %rdi
	movq	%r9, %r8
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %edx
	subl	%r12d, %edx
	leal	1(%r12), %esi
	testb	$1, %dl
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %edx
	movl	4(%rdi), %r12d
	shll	$8, %edx
	addl	(%r13), %edx
	movl	(%r15), %ebx
	shll	$16, %ebx
	addl	%edx, %ebx
	shll	$24, %r12d
	addl	%ebx, %r12d
	movl	%r12d, (%r8)
	addq	$4, %r8
	addq	$8, %rdi
	addq	$4, %r13
	addq	$4, %r15
	movl	%esi, %r12d
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%esi, -56(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	subl	%r12d, %ebx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%rdx,8), %esi
	shll	$8, %esi
	addl	(%r13,%rdx,4), %esi
	movl	4(%rdi,%rdx,8), %ecx
	movl	(%r15,%rdx,4), %eax
	shll	$16, %eax
	addl	%esi, %eax
	shll	$24, %ecx
	addl	%eax, %ecx
	movl	%ecx, (%r8,%rdx,4)
	movl	8(%rdi,%rdx,8), %eax
	movl	12(%rdi,%rdx,8), %ecx
	shll	$8, %eax
	addl	4(%r13,%rdx,4), %eax
	movl	4(%r15,%rdx,4), %esi
	shll	$16, %esi
	addl	%eax, %esi
	shll	$24, %ecx
	addl	%esi, %ecx
	movl	%ecx, 4(%r8,%rdx,4)
	addq	$2, %rdx
	cmpl	%edx, %ebx
	jne	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rcx
	imulq	-128(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	addq	%rdi, %rcx
	imulq	-136(%rbp), %rdx                ## 8-byte Folded Reload
	addq	-120(%rbp), %rdx                ## 8-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rdx,4), %rcx
	leaq	(%r11,%rdi,4), %rdx
	leaq	(%r14,%rdi,4), %rdi
	cmpq	%rdx, %r9
	setb	%r13b
	cmpq	%rsi, %r11
	setb	%bl
	cmpq	%rcx, %r9
	setb	%cl
	cmpq	%rsi, %r10
	setb	%r15b
	cmpq	%rdi, %r9
	setb	%dl
	cmpq	%rsi, %r14
	setb	%al
	testb	%bl, %r13b
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	andb	%r15b, %cl
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r15
	movq	%r11, %r13
	movq	%r10, %rdi
	movq	%r9, %r8
	andb	%al, %dl
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%r14,%rax,4), %r15
	leaq	(%r11,%rax,4), %r13
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%r10,%rcx,4), %rdi
	leaq	(%r9,%rax,4), %r8
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%r11,%rbx,4), %xmm2
	movdqu	16(%r11,%rbx,4), %xmm3
	movups	(%r10,%rbx,8), %xmm0
	movups	16(%r10,%rbx,8), %xmm4
	movups	32(%r10,%rbx,8), %xmm1
	movups	48(%r10,%rbx,8), %xmm5
	movaps	%xmm0, %xmm6
	shufps	$136, %xmm4, %xmm6              ## xmm6 = xmm6[0,2],xmm4[0,2]
	movaps	%xmm1, %xmm7
	shufps	$136, %xmm5, %xmm7              ## xmm7 = xmm7[0,2],xmm5[0,2]
	shufps	$221, %xmm4, %xmm0              ## xmm0 = xmm0[1,3],xmm4[1,3]
	shufps	$221, %xmm5, %xmm1              ## xmm1 = xmm1[1,3],xmm5[1,3]
	pslld	$8, %xmm6
	pslld	$8, %xmm7
	movdqu	(%r14,%rbx,4), %xmm4
	movdqu	16(%r14,%rbx,4), %xmm5
	pslld	$16, %xmm4
	paddd	%xmm2, %xmm4
	paddd	%xmm6, %xmm4
	pslld	$16, %xmm5
	paddd	%xmm3, %xmm5
	paddd	%xmm7, %xmm5
	pslld	$24, %xmm0
	paddd	%xmm4, %xmm0
	pslld	$24, %xmm1
	paddd	%xmm5, %xmm1
	movdqu	%xmm0, (%r9,%rbx,4)
	movdqu	%xmm1, 16(%r9,%rbx,4)
	addq	$8, %rbx
	cmpq	%rbx, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	cmpq	%rax, -96(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_16
	jmp	LBB0_11
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_yuvPlanartouyvy_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuvPlanartouyvy_c
_yuvPlanartouyvy_c:                     ; @yuvPlanartouyvy_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	.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 $w6 killed $w6 def $x6
	cmp	w5, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x8, #0
	ldp	w19, w9, [sp, #112]
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	asr	w12, w4, #1
	sub	w9, w9, #1
	sxtw	x10, w6
	sxtw	x30, w19
	cmp	w12, #1
	csinc	w3, w12, wzr, gt
	ldr	x12, [sp, #8]                   ; 8-byte Folded Reload
	sub	w13, w3, #1
	add	x14, x13, #1
	lsl	x15, x13, #1
	add	x15, x15, #2
	and	x16, x14, #0x1fffffff0
	lsl	x11, x16, #1
	str	x11, [sp]                       ; 8-byte Folded Spill
	sbfiz	x19, x19, #2, #32
	add	x20, x0, #64
	sbfiz	x6, x6, #2, #32
	mov	x21, x12
	mov	x22, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bics	wzr, w9, w8
	csel	w11, w7, wzr, eq
	sbfiz	x11, x11, #2, #32
	add	x2, x2, x11
	add	x1, x1, x11
	add	x22, x22, x10, lsl #2
	add	x21, x21, x19
	add	x8, x8, #1
	add	x20, x20, x6
	cmp	w8, w5
	b.eq	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w4, #2
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w13, #15
	b.hs	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x2
	mov	x24, x1
	mov	x26, x22
	mov	x25, x21
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w27, w3, w27
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x24], #4
	ldp	w17, w28, [x26], #8
	add	w11, w11, w17, lsl #8
	ldr	w17, [x23], #4
	add	w11, w11, w17, lsl #16
	add	w11, w11, w28, lsl #24
	str	w11, [x25], #4
	subs	w27, w27, #1
	b.ne	LBB0_8
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
	madd	x23, x8, x30, x14
	add	x24, x12, x23, lsl #2
	madd	x23, x8, x10, x15
	add	x23, x0, x23, lsl #2
	lsl	x25, x14, #2
	cmp	x21, x23
	ccmp	x22, x24, #2, lo
	cset	w23, lo
	add	x26, x2, x25
	cmp	x21, x26
	ccmp	x2, x24, #2, lo
	cset	w28, lo
	cmp	x1, x24
	add	x24, x1, x25
	ccmp	x21, x24, #2, lo
	b.lo	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w23, #0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x2
	mov	x24, x1
	mov	x26, x22
	mov	x25, x21
	tbnz	w28, #0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, x15
	mov	x15, x30
	mov	x27, #0
	lsl	x25, x16, #2
	add	x23, x2, x25
	add	x24, x1, x25
	add	x25, x21, x25
	mov	x28, x20
	mov	x30, x16
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	add	x26, x22, x11, lsl #2
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x17, x1, x27
	ldp	q0, q1, [x17]
	sub	x11, x28, #64
	ld2.4s	{ v2, v3 }, [x11]
	ldp	q4, q5, [x17, #32]
	sub	x11, x28, #32
	ld2.4s	{ v6, v7 }, [x11]
	mov	x11, x28
	ld2.4s	{ v16, v17 }, [x11], #32
	ld2.4s	{ v18, v19 }, [x11]
	shl.4s	v20, v2, #8
	shl.4s	v21, v6, #8
	shl.4s	v22, v16, #8
	shl.4s	v23, v18, #8
	add.4s	v0, v20, v0
	add.4s	v1, v21, v1
	add.4s	v4, v22, v4
	add.4s	v5, v23, v5
	add	x11, x2, x27
	ldp	q20, q21, [x11]
	ldp	q22, q23, [x11, #32]
	shl.4s	v20, v20, #16
	shl.4s	v21, v21, #16
	shl.4s	v22, v22, #16
	shl.4s	v23, v23, #16
	add.4s	v0, v0, v20
	add.4s	v1, v1, v21
	add.4s	v4, v4, v22
	add.4s	v5, v5, v23
	shl.4s	v2, v3, #24
	shl.4s	v3, v7, #24
	shl.4s	v6, v17, #24
	shl.4s	v7, v19, #24
	add.4s	v0, v0, v2
	add.4s	v1, v1, v3
	add.4s	v2, v4, v6
	add	x11, x21, x27
	stp	q0, q1, [x11]
	add.4s	v0, v5, v7
	stp	q2, q0, [x11, #32]
	add	x27, x27, #64
	add	x28, x28, #128
	subs	x30, x30, #16
	b.ne	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x16
	cmp	x14, x16
	mov	x30, x15
	mov	x15, x12
	ldr	x12, [sp, #8]                   ; 8-byte Folded Reload
	b.eq	LBB0_2
	b	LBB0_7
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_yuvPlanartouyvy_c
.subsections_via_symbols
