	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uyvytoyuv420_c
_uyvytoyuv420_c:                        ## @uyvytoyuv420_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
	movl	%r9d, %r15d
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %edi
	movl	$1, %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.1:
	movslq	32(%rbp), %rax
	movslq	24(%rbp), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movslq	16(%rbp), %rcx
	shlq	$2, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	negq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	addq	-80(%rbp), %r14                 ## 8-byte Folded Reload
	addq	-88(%rbp), %rbx                 ## 8-byte Folded Reload
	cmpl	%r15d, -52(%rbp)                ## 4-byte Folded Reload
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rbx), %rdi
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_extract_even_c
	testb	$1, %r15b
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_extract_even2avg_c
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r13,%rax,4), %r13
	leaq	(%r12,%rax,4), %r12
	jmp	LBB0_4
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_uyvytoyuv420_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uyvytoyuv420_c
_uyvytoyuv420_c:                        ; @uyvytoyuv420_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
	mov	x27, x7
	mov	x26, x6
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	x0, x4
	mov	w1, #1
	bl	_AV_CEIL_RSHIFT
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w28, #0
	ldr	w8, [x29, #16]
	sxtw	x9, w27
	sbfiz	x26, x26, #2, #32
	sbfiz	x27, x8, #2, #32
	neg	x8, x27
	str	x8, [sp]                        ; 8-byte Folded Spill
	lsl	x25, x9, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w28, w28, #1
	add	x24, x24, x26
	add	x21, x21, x27
	cmp	w19, w28
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, #4
	mov	x1, x24
	mov	x2, x20
	bl	_extract_even_c
	tbz	w28, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x0, x21, x8
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	bl	_extract_even2avg_c
	add	x23, x23, x25
	add	x22, x22, x25
	b	LBB0_2
LBB0_5:
	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	_uyvytoyuv420_c
.subsections_via_symbols
