	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuv2planeX_8_c
_yuv2planeX_8_c:                        ## @yuv2planeX_8_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.1:
	movq	%rdx, %r13
	movq	%rdi, %r14
	movl	%r8d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	leaq	-1(%r8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r15d
	andl	$3, %r15d
	andl	$-4, %r8d
	xorl	%r12d, %r12d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	sarl	$19, %edi
	callq	_av_clip_uint8
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movl	16(%rbp), %eax
	addl	%r12d, %eax
	andl	$7, %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %edi
	shll	$12, %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, -56(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rax,8), %rcx
	movq	8(%r13,%rax,8), %rdx
	movl	(%r14,%rax,4), %esi
	movl	4(%r14,%rax,4), %ebx
	imull	(%rcx,%r12,4), %esi
	addl	%edi, %esi
	imull	(%rdx,%r12,4), %ebx
	addl	%esi, %ebx
	movq	16(%r13,%rax,8), %rcx
	movl	8(%r14,%rax,4), %edx
	imull	(%rcx,%r12,4), %edx
	movq	24(%r13,%rax,8), %rcx
	movl	12(%r14,%rax,4), %edi
	imull	(%rcx,%r12,4), %edi
	addl	%ebx, %edx
	addl	%edx, %edi
	addq	$4, %rax
	cmpq	%rax, %r8
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rax,4), %rcx
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rdx,8), %rsi
	movl	(%rcx,%rdx,4), %ebx
	imull	(%rsi,%r12,4), %ebx
	addl	%ebx, %edi
	incq	%rdx
	cmpq	%rdx, %r15
	jne	LBB0_9
	jmp	LBB0_10
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_yuv2planeX_8_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuv2planeX_8_c
_yuv2planeX_8_c:                        ; @yuv2planeX_8_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
	add	x29, sp, #96
	.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
	cmp	w4, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x6
	mov	x20, x5
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	x25, #0
	mov	w26, w4
	mov	w27, w1
	and	x28, x27, #0xfffffffe
	add	x9, x2, #8
	add	x8, x0, #4
	stp	x8, x9, [sp]                    ; 16-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	asr	w0, w8, #19
	bl	_av_clip_uint8
	str	w0, [x21, x25, lsl #2]
	add	x25, x25, #1
	cmp	x25, x26
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	add	w8, w25, w19
	and	w8, w8, #0x7
	ldr	w8, [x20, w8, uxtw #2]
	lsl	w8, w8, #12
	cmp	w23, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #0
	mov	x10, x28
	ldp	x11, x12, [sp]                  ; 16-byte Folded Reload
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x13, x14, [x12, #-8]
	lsl	x15, x25, #2
	ldr	w13, [x13, x15]
	ldr	w14, [x14, x15]
	ldp	w15, w16, [x11, #-4]
	madd	w8, w15, w13, w8
	madd	w9, w16, w14, w9
	add	x12, x12, #16
	add	x11, x11, #8
	subs	x10, x10, #2
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w9, w8
	mov	x11, x28
	cmp	x28, x27
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x24, x11, lsl #2
	sub	x10, x27, x11
	add	x11, x22, x11, lsl #3
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11], #8
	ldr	w12, [x12, x25, lsl #2]
	ldr	w13, [x9], #4
	madd	w8, w13, w12, w8
	subs	x10, x10, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	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	_yuv2planeX_8_c
.subsections_via_symbols
