	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuv2ya8_2_c
_yuv2ya8_2_c:                           ## @yuv2ya8_2_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
	movq	%r9, %r14
	movl	16(%rbp), %ebx
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	(%r8), %rcx
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	movq	8(%r8), %rcx
	movq	(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movb	$1, %al
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_2:
	movq	(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_6:
	xorl	%edi, %edi
	cmpl	$4097, 24(%rbp)                 ## imm = 0x1001
	setb	%dil
	callq	_av_assert2
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.7:
	movl	$4096, %r13d                    ## imm = 0x1000
	subl	24(%rbp), %r13d
	movl	%ebx, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, (%r14,%r15,8)
	movl	%eax, 4(%r14,%r15,8)
	incq	%r15
	cmpq	%r15, %r12
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %eax
	imull	%r13d, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r15,4), %edi
	imull	24(%rbp), %edi
	addl	%eax, %edi
	sarl	$19, %edi
	callq	_av_clip_uint8
	movl	%eax, %ebx
	movl	$255, %eax
	cmpb	$0, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %eax
	imull	%r13d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r15,4), %edi
	imull	24(%rbp), %edi
	addl	%eax, %edi
	sarl	$19, %edi
	callq	_av_clip_uint8
	jmp	LBB0_10
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_yuv2ya8_2_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuv2ya8_2_c
_yuv2ya8_2_c:                           ; @yuv2ya8_2_c
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x7
	mov	x21, x6
	mov	x20, x5
	cbz	x4, LBB0_3
; %bb.1:
	ldr	x8, [x4]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x9, [x4, #8]
	ldp	x22, x23, [x1]
	mov	w10, #1
	cmp	x9, #0
	csel	x24, xzr, x8, eq
	csel	w25, wzr, w10, eq
	csel	x26, xzr, x9, eq
	b	LBB0_4
LBB0_3:
	mov	x24, #0
	mov	w25, #0
	mov	x26, #0
	ldp	x22, x23, [x1]
LBB0_4:
	cmp	w19, #1, lsl #12                ; =4096
	cset	w0, ls
	bl	_av_assert2
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.5:
	mov	w8, #4096
	sub	w27, w8, w19
	mov	w21, w21
	add	x28, x20, #4
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x24]
	mul	w8, w8, w27
	ldr	w9, [x26]
	madd	w8, w9, w19, w8
	asr	w0, w8, #19
	bl	_av_clip_uint8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #4
	add	x24, x24, #4
	stp	w20, w0, [x28, #-4]
	add	x23, x23, #4
	add	x22, x22, #4
	add	x28, x28, #8
	subs	x21, x21, #1
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	mul	w8, w8, w27
	ldr	w9, [x23]
	madd	w8, w9, w19, w8
	asr	w0, w8, #19
	bl	_av_clip_uint8
	mov	x20, x0
	cbnz	w25, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #255
	b	LBB0_7
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_yuv2ya8_2_c
.subsections_via_symbols
