	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuv2ya8_X_c
_yuv2ya8_X_c:                           ## @yuv2ya8_X_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	48(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_29
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	40(%rbp), %r9
	movq	32(%rbp), %r10
	movl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	leaq	-1(%rax), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	andl	$3, %r14d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r11d
	andl	$-4, %r11d
	xorl	%r13d, %r13d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%r11, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$255, %eax
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edi, (%r9,%r13,8)
	movl	%eax, 4(%r9,%r13,8)
	incq	%r13
	cmpq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_29
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$3, -64(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$262144, %eax                   ## imm = 0x40000
	xorl	%esi, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	testq	%r10, %r10
	jne	LBB0_3
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$262144, %eax                   ## imm = 0x40000
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15,%rsi,8), %rdx
	movq	8(%r15,%rsi,8), %r8
	movl	(%r12,%rsi,4), %edi
	movl	4(%r12,%rsi,4), %ebx
	imull	(%rdx,%r13,4), %edi
	addl	%eax, %edi
	imull	(%r8,%r13,4), %ebx
	addl	%edi, %ebx
	movq	16(%r15,%rsi,8), %rax
	movl	8(%r12,%rsi,4), %edx
	imull	(%rax,%r13,4), %edx
	movq	24(%r15,%rsi,8), %rdi
	movl	12(%r12,%rsi,4), %eax
	imull	(%rdi,%r13,4), %eax
	addl	%ebx, %edx
	addl	%edx, %eax
	addq	$4, %rsi
	cmpq	%rsi, %r11
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%r14, %r14
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r12,%rsi,4), %r8
	leaq	(%r15,%rsi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rsi,8), %rdi
	movl	(%r8,%rsi,4), %ebx
	imull	(%rdi,%r13,4), %ebx
	addl	%ebx, %eax
	incq	%rsi
	cmpq	%rsi, %r14
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edi
	sarl	$19, %edi
	testl	$134217728, %eax                ## imm = 0x8000000
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	callq	_av_clip_uint8
	movq	32(%rbp), %r10
	movq	40(%rbp), %r9
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %edi
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	testq	%r10, %r10
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	cmpq	$3, -64(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$262144, %edx                   ## imm = 0x40000
	xorl	%eax, %eax
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$262144, %edx                   ## imm = 0x40000
	xorl	%eax, %eax
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r10,%rax,8), %rsi
	movq	8(%r10,%rax,8), %r8
	movl	(%r12,%rax,4), %edi
	movl	4(%r12,%rax,4), %ebx
	imull	(%rsi,%r13,4), %edi
	addl	%edx, %edi
	imull	(%r8,%r13,4), %ebx
	addl	%edi, %ebx
	movq	16(%r10,%rax,8), %rdx
	movl	8(%r12,%rax,4), %edi
	imull	(%rdx,%r13,4), %edi
	movq	24(%r10,%rax,8), %rsi
	movl	12(%r12,%rax,4), %edx
	imull	(%rsi,%r13,4), %edx
	addl	%ebx, %edi
	addl	%edi, %edx
	addq	$4, %rax
	cmpq	%rax, %r11
	jne	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$3, -72(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r12,%rax,4), %r8
	leaq	(%r10,%rax,8), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rsi,8), %rdi
	movl	(%r8,%rsi,4), %ebx
	imull	(%rdi,%r13,4), %ebx
	addl	%ebx, %edx
	incq	%rsi
	cmpq	%rsi, %r14
	jne	LBB0_25
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %eax
	sarl	$19, %eax
	testl	$134217728, %edx                ## imm = 0x8000000
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edi
	callq	_av_clip_uint8
	movq	32(%rbp), %r10
	movq	40(%rbp), %r9
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_4
LBB0_29:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_yuv2ya8_X_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuv2ya8_X_c
_yuv2ya8_X_c:                           ; @yuv2ya8_X_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w23, [x29, #32]
	cmp	w23, #1
	b.lt	LBB0_27
; %bb.1:
	mov	x19, x3
	mov	x21, x1
	mov	x24, #0
	mov	w25, w3
	ldp	x27, x26, [x29, #16]
	and	x28, x25, #0xfffffffe
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x9, x8, #8
	add	x8, x1, #4
	stp	x9, x8, [sp, #8]                ; 16-byte Folded Spill
	add	x8, x27, #8
	str	x8, [sp]                        ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #255
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x26, x24, lsl #3
	stp	w22, w0, [x8]
	add	x24, x24, #1
	cmp	x24, x23
	b.eq	LBB0_27
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x20, x24, #2
	cmp	w19, #1
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, #0
	mov	w8, #262144
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	cbnz	x27, LBB0_19
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	mov	w9, #262144
	mov	x10, x28
	ldp	x12, x11, [sp, #8]              ; 16-byte Folded Reload
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x13, x14, [x12, #-8]
	ldr	w13, [x13, x20]
	ldr	w14, [x14, x20]
	ldp	w15, w16, [x11, #-4]
	madd	w9, w15, w13, w9
	madd	w8, w16, w14, w8
	add	x12, x12, #16
	add	x11, x11, #8
	subs	x10, x10, #2
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, w9
	mov	x11, x28
	cmp	x28, x25
	b.eq	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x21, x11, lsl #2
	sub	x10, x25, x11
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
	add	x11, x12, x11, lsl #3
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11], #8
	ldr	w12, [x12, x24, lsl #2]
	ldr	w13, [x9], #4
	madd	w8, w13, w12, w8
	subs	x10, x10, #1
	b.ne	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	asr	w22, w8, #19
	tbz	w8, #27, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_av_clip_uint8
	mov	x22, x0
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x27, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, #1
	b.lt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, #1
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, #0
	mov	w8, #262144
	b	LBB0_23
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	mov	w9, #262144
	mov	x10, x28
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x12, [sp]                       ; 8-byte Folded Reload
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x13, x14, [x12, #-8]
	ldr	w13, [x13, x20]
	ldr	w14, [x14, x20]
	ldp	w15, w16, [x11, #-4]
	madd	w9, w15, w13, w9
	madd	w8, w16, w14, w8
	add	x12, x12, #16
	add	x11, x11, #8
	subs	x10, x10, #2
	b.ne	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, w9
	mov	x11, x28
	cmp	x28, x25
	b.eq	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x21, x11, lsl #2
	sub	x10, x25, x11
	add	x11, x27, x11, lsl #3
LBB0_24:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11], #8
	ldr	w12, [x12, x24, lsl #2]
	ldr	w13, [x9], #4
	madd	w8, w13, w12, w8
	subs	x10, x10, #1
	b.ne	LBB0_24
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	asr	w0, w8, #19
	tbz	w8, #27, LBB0_3
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_av_clip_uint8
	b	LBB0_3
LBB0_27:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_yuv2ya8_X_c
.subsections_via_symbols
