	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuv2nv12cX_c
_yuv2nv12cX_c:                          ## @yuv2nv12cX_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, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rsi, %r14
	movl	16(%rbp), %eax
	movl	(%rdi), %ecx
	movq	8(%rdi), %rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	_AV_PIX_FMT_NV12@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_11
## %bb.1:
	movq	_AV_PIX_FMT_NV24@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	je	LBB0_11
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_21
## %bb.3:
	movl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r11d
	andl	$-2, %r11d
	xorl	%r15d, %r15d
	movq	%r11, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	sarl	$19, %edi
	callq	_av_clip_uint8
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx,%r15,8)
	sarl	$19, %r12d
	movl	%r12d, %edi
	callq	_av_clip_uint8
	movl	%eax, 4(%rbx,%r15,8)
	incq	%r15
	cmpq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_21
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	%r15d, %eax
	andl	$7, %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %r12d
	shll	$12, %r12d
	leal	3(%r15), %eax
	andl	$7, %eax
	movl	(%rcx,%rax,4), %edi
	shll	$12, %edi
	testl	%edx, %edx
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	cmpl	$1, %edx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, %ecx
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rax,8), %rdx
	movq	8(%r13,%rax,8), %r8
	movl	(%r14,%rax,4), %ebx
	movl	4(%r14,%rax,4), %edi
	movl	(%rdx,%r15,4), %edx
	imull	%ebx, %edx
	addl	%r12d, %edx
	movq	(%r10,%rax,8), %rsi
	movq	8(%r10,%rax,8), %r9
	imull	(%rsi,%r15,4), %ebx
	addl	%ecx, %ebx
	movl	(%r8,%r15,4), %r12d
	imull	%edi, %r12d
	imull	(%r9,%r15,4), %edi
	addl	%edx, %r12d
	addl	%ebx, %edi
	addq	$2, %rax
	movl	%edi, %ecx
	cmpq	%rax, %r11
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13,%rax,8), %rcx
	movl	(%r14,%rax,4), %edx
	movl	(%rcx,%r15,4), %ecx
	imull	%edx, %ecx
	addl	%ecx, %r12d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	imull	(%rax,%r15,4), %edx
	addl	%edx, %edi
	jmp	LBB0_10
LBB0_11:
	testl	%eax, %eax
	jle	LBB0_21
## %bb.12:
	movl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r11d
	andl	$-2, %r11d
	xorl	%r12d, %r12d
	movq	%r11, -64(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	sarl	$19, %edi
	callq	_av_clip_uint8
	movl	%eax, (%r15,%r12,8)
	sarl	$19, %ebx
	movl	%ebx, %edi
	callq	_av_clip_uint8
	movl	%eax, 4(%r15,%r12,8)
	incq	%r12
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_21
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movl	%r12d, %eax
	andl	$7, %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %edi
	shll	$12, %edi
	leal	3(%r12), %eax
	andl	$7, %eax
	movl	(%rcx,%rax,4), %ebx
	shll	$12, %ebx
	testl	%edx, %edx
	jle	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$1, %edx
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	movl	%ebx, %ecx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rax,8), %rdx
	movq	8(%r13,%rax,8), %r8
	movl	(%r14,%rax,4), %esi
	movl	4(%r14,%rax,4), %ebx
	movl	(%rdx,%r12,4), %edx
	imull	%esi, %edx
	addl	%edi, %edx
	movq	(%r10,%rax,8), %rdi
	movq	8(%r10,%rax,8), %r9
	imull	(%rdi,%r12,4), %esi
	addl	%ecx, %esi
	movl	(%r8,%r12,4), %edi
	imull	%ebx, %edi
	imull	(%r9,%r12,4), %ebx
	addl	%edx, %edi
	addl	%esi, %ebx
	addq	$2, %rax
	movl	%ebx, %ecx
	cmpq	%rax, %r11
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r13,%rax,8), %rcx
	movl	(%r14,%rax,4), %edx
	movl	(%rcx,%r12,4), %ecx
	imull	%edx, %ecx
	addl	%ecx, %edi
	movq	(%r10,%rax,8), %rax
	imull	(%rax,%r12,4), %edx
	addl	%edx, %ebx
	jmp	LBB0_20
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NV12,4,2            ## @AV_PIX_FMT_NV12
	.comm	_AV_PIX_FMT_NV24,4,2            ## @AV_PIX_FMT_NV24
	.no_dead_strip	_yuv2nv12cX_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuv2nv12cX_c
_yuv2nv12cX_c:                          ; @yuv2nv12cX_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x5
	stp	x3, x4, [sp, #32]               ; 16-byte Folded Spill
	mov	x22, x2
	mov	x23, x1
	ldr	w8, [x0]
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x9, _AV_PIX_FMT_NV12@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_NV12@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _AV_PIX_FMT_NV24@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_PIX_FMT_NV24@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_12
; %bb.1:
	cmp	w6, #1
	b.lt	LBB0_23
; %bb.2:
	mov	x25, #0
	mov	w26, w6
	mov	w27, w22
	and	x28, x27, #0xfffffffe
	add	x9, x23, #4
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x8, #8
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x8, x8, #8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	asr	w0, w8, #19
	bl	_av_clip_uint8
	add	x21, x19, x25, lsl #3
	str	w0, [x21]
	asr	w0, w20, #19
	bl	_av_clip_uint8
	str	w0, [x21, #4]
	add	x25, x25, #1
	cmp	x25, x26
	b.eq	LBB0_23
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	and	x8, x25, #0x7
	ldr	w8, [x24, x8, lsl #2]
	lsl	w8, w8, #12
	add	w9, w25, #3
	and	x9, x9, #0x7
	ldr	w9, [x24, x9, lsl #2]
	lsl	w20, w9, #12
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x9, x25, #2
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x13, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #0
	mov	w11, #0
	ldp	x12, x13, [sp, #8]              ; 16-byte Folded Reload
	ldr	x14, [sp, #24]                  ; 8-byte Folded Reload
	mov	x15, x28
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x16, x17, [x12, #-8]
	ldr	w16, [x16, x9]
	ldr	w17, [x17, x9]
	ldp	w0, w1, [x14, #-4]
	madd	w8, w0, w16, w8
	madd	w11, w1, w17, w11
	ldp	x16, x17, [x13, #-8]
	ldr	w16, [x16, x9]
	ldr	w17, [x17, x9]
	madd	w20, w16, w0, w20
	madd	w10, w17, w1, w10
	add	x14, x14, #8
	add	x13, x13, #16
	add	x12, x12, #16
	subs	x15, x15, #2
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w11, w8
	add	w20, w10, w20
	mov	x13, x28
	cmp	x28, x27
	b.eq	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x12, x13, #3
	ldp	x14, x10, [sp, #32]             ; 16-byte Folded Reload
	add	x10, x10, x12
	add	x11, x23, x13, lsl #2
	add	x12, x14, x12
	sub	x13, x27, x13
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x12], #8
	ldr	w14, [x14, x9]
	ldr	w15, [x11], #4
	madd	w8, w15, w14, w8
	ldr	x14, [x10], #8
	ldr	w14, [x14, x9]
	madd	w20, w14, w15, w20
	subs	x13, x13, #1
	b.ne	LBB0_11
	b	LBB0_3
LBB0_12:
	cmp	w6, #1
	b.lt	LBB0_23
; %bb.13:
	mov	x25, #0
	mov	w26, w6
	mov	w27, w22
	and	x28, x27, #0xfffffffe
	add	x9, x23, #4
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x8, #8
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x8, x8, #8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	asr	w0, w8, #19
	bl	_av_clip_uint8
	add	x21, x19, x25, lsl #3
	str	w0, [x21]
	asr	w0, w20, #19
	bl	_av_clip_uint8
	str	w0, [x21, #4]
	add	x25, x25, #1
	cmp	x25, x26
	b.eq	LBB0_23
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	and	x8, x25, #0x7
	ldr	w8, [x24, x8, lsl #2]
	lsl	w20, w8, #12
	add	w8, w25, #3
	and	x8, x8, #0x7
	ldr	w8, [x24, x8, lsl #2]
	lsl	w8, w8, #12
	cmp	w22, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	lsl	x9, x25, #2
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x13, #0
	b	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w10, #0
	mov	w11, #0
	ldp	x12, x13, [sp, #8]              ; 16-byte Folded Reload
	ldr	x14, [sp, #24]                  ; 8-byte Folded Reload
	mov	x15, x28
LBB0_19:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x16, x17, [x12, #-8]
	ldr	w16, [x16, x9]
	ldr	w17, [x17, x9]
	ldp	w0, w1, [x14, #-4]
	madd	w20, w0, w16, w20
	madd	w11, w1, w17, w11
	ldp	x16, x17, [x13, #-8]
	ldr	w16, [x16, x9]
	ldr	w17, [x17, x9]
	madd	w8, w16, w0, w8
	madd	w10, w17, w1, w10
	add	x14, x14, #8
	add	x13, x13, #16
	add	x12, x12, #16
	subs	x15, x15, #2
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w20, w11, w20
	add	w8, w10, w8
	mov	x13, x28
	cmp	x28, x27
	b.eq	LBB0_14
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	lsl	x12, x13, #3
	ldp	x14, x10, [sp, #32]             ; 16-byte Folded Reload
	add	x10, x10, x12
	add	x11, x23, x13, lsl #2
	add	x12, x14, x12
	sub	x13, x27, x13
LBB0_22:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x12], #8
	ldr	w14, [x14, x9]
	ldr	w15, [x11], #4
	madd	w20, w15, w14, w20
	ldr	x14, [x10], #8
	ldr	w14, [x14, x9]
	madd	w8, w14, w15, w8
	subs	x13, x13, #1
	b.ne	LBB0_22
	b	LBB0_14
LBB0_23:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NV12,4,2            ; @AV_PIX_FMT_NV12
	.comm	_AV_PIX_FMT_NV24,4,2            ; @AV_PIX_FMT_NV24
	.no_dead_strip	_yuv2nv12cX_c
.subsections_via_symbols
