	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuv2gbrp16_full_X_c
_yuv2gbrp16_full_X_c:                   ## @yuv2gbrp16_full_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movl	48(%rbp), %r14d
	movq	40(%rbp), %r15
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	20(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movq	_AV_PIX_FMT_FLAG_ALPHA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	setne	%al
	cmpq	$0, 32(%rbp)
	setne	%cl
	andb	%al, %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movl	%r14d, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_31
## %bb.1:
	movq	%rbx, %r9
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	24(%rbp), %ecx
	leaq	-1(%rax), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r11d
	andl	$3, %r11d
	movq	%rax, -120(%rbp)                ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax def $rax
	andl	$-4, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	andl	$-2, %ecx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
                                        ## implicit-def: $r13d
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r11, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	-104(%rbp), %r14                ## 8-byte Folded Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	movq	-88(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_31
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
	movl	$-1073741824, %r12d             ## imm = 0xC0000000
	movl	$-1073741824, %ebx              ## imm = 0xC0000000
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-136(%rbp), %r10                ## 8-byte Reload
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, -72(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1073741824, %ebx              ## imm = 0xC0000000
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1073741824, %ebx              ## imm = 0xC0000000
	xorl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r8,%rax,8), %rcx
	movq	8(%r8,%rax,8), %rdx
	movl	(%r9,%rax,4), %esi
	movl	4(%r9,%rax,4), %edi
	imull	(%rcx,%r14,4), %esi
	addl	%ebx, %esi
	imull	(%rdx,%r14,4), %edi
	addl	%esi, %edi
	movq	16(%r8,%rax,8), %rcx
	movl	8(%r9,%rax,4), %edx
	imull	(%rcx,%r14,4), %edx
	movq	24(%r8,%rax,8), %rcx
	movl	12(%r9,%rax,4), %ebx
	imull	(%rcx,%r14,4), %ebx
	addl	%edi, %edx
	addl	%edx, %ebx
	addq	$4, %rax
	cmpq	%rax, %r15
	jne	LBB0_12
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r11, %r11
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r9,%rax,4), %rcx
	leaq	(%r8,%rax,8), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rdx,8), %rsi
	movl	(%rcx,%rdx,4), %edi
	imull	(%rsi,%r14,4), %edi
	addl	%edi, %ebx
	incq	%rdx
	cmpq	%rdx, %r11
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1073741824, %r15d             ## imm = 0xC0000000
	cmpl	$0, 24(%rbp)
	movq	16(%rbp), %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	jle	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, 24(%rbp)
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1073741824, %r15d             ## imm = 0xC0000000
	xorl	%eax, %eax
	movl	$-1073741824, %r12d             ## imm = 0xC0000000
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1073741824, %r11d             ## imm = 0xC0000000
	xorl	%eax, %eax
	movl	$-1073741824, %r12d             ## imm = 0xC0000000
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%rax,8), %rdx
	movq	8(%rdi,%rax,8), %r8
	movl	(%r10,%rax,4), %edi
	movl	4(%r10,%rax,4), %r15d
	movl	(%rdx,%r14,4), %edx
	imull	%edi, %edx
	addl	%r12d, %edx
	movq	16(%rbp), %rsi
	movq	(%rsi,%rax,8), %rsi
	movq	16(%rbp), %rcx
	movq	8(%rcx,%rax,8), %r9
	imull	(%rsi,%r14,4), %edi
	movq	16(%rbp), %rsi
	addl	%r11d, %edi
	movl	(%r8,%r14,4), %r12d
	imull	%r15d, %r12d
	imull	(%r9,%r14,4), %r15d
	addl	%edx, %r12d
	addl	%edi, %r15d
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	addq	$2, %rax
	movl	%r15d, %r11d
	cmpq	%rax, -144(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbp), %ecx
	testb	$1, %cl
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	movq	-88(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi,%rax,8), %rcx
	movl	(%r10,%rax,4), %edx
	movl	(%rcx,%r14,4), %ecx
	imull	%edx, %ecx
	addl	%r12d, %ecx
	movq	(%rsi,%rax,8), %rax
	imull	(%rax,%r14,4), %edx
	addl	%r15d, %edx
	movl	%ecx, %r12d
	movl	%edx, %r15d
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	sarl	$14, %ebx
	addl	$65536, %ebx                    ## imm = 0x10000
	sarl	$14, %r12d
	sarl	$14, %r15d
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_28
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, -72(%rbp)                   ## 8-byte Folded Reload
	movq	32(%rbp), %r8
	movl	$-1073741824, %r13d             ## imm = 0xC0000000
	jae	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1073741824, %r13d             ## imm = 0xC0000000
	jmp	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r8,%rax,8), %rcx
	movq	8(%r8,%rax,8), %rdx
	movl	(%r9,%rax,4), %esi
	movl	4(%r9,%rax,4), %edi
	imull	(%rcx,%r14,4), %esi
	addl	%r13d, %esi
	imull	(%rdx,%r14,4), %edi
	addl	%esi, %edi
	movq	16(%r8,%rax,8), %rcx
	movl	8(%r9,%rax,4), %edx
	imull	(%rcx,%r14,4), %edx
	movq	24(%r8,%rax,8), %rcx
	movl	12(%r9,%rax,4), %r13d
	imull	(%rcx,%r14,4), %r13d
	addl	%edi, %edx
	addl	%edx, %r13d
	addq	$4, %rax
	cmpq	%rax, %r10
	jne	LBB0_23
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$3, -120(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r9,%rax,4), %rcx
	leaq	(%r8,%rax,8), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rdx,8), %rsi
	movl	(%rcx,%rdx,4), %edi
	imull	(%rsi,%r14,4), %edi
	addl	%edi, %r13d
	incq	%rdx
	cmpq	%rdx, %r11
	jne	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	sarl	%r13d
	addl	$536879104, %r13d               ## imm = 0x20002000
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	subl	24(%rcx), %ebx
	imull	(%rcx), %ebx
	movl	4(%rcx), %eax
	imull	%r15d, %eax
	imull	8(%rcx), %r15d
	movl	12(%rcx), %edx
	imull	%r12d, %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	imull	16(%rcx), %r12d
	leal	(%rbx,%rax), %edi
	addl	$8192, %edi                     ## imm = 0x2000
	movl	$30, %esi
	callq	_av_clip_uintp2
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leal	(%rbx,%r15), %edi
	addl	$8192, %edi                     ## imm = 0x2000
	addl	-52(%rbp), %edi                 ## 4-byte Folded Reload
	movl	$30, %esi
	callq	_av_clip_uintp2
	movl	%eax, %r15d
	leal	(%r12,%rbx), %edi
	addl	$8192, %edi                     ## imm = 0x2000
	movl	$30, %esi
	callq	_av_clip_uintp2
	movl	%r15d, %edx
	sarl	$14, %edx
	movq	40(%rbp), %r15
	movq	(%r15), %rcx
	movl	%edx, (%rcx,%r14,4)
	sarl	$14, %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	sarl	$14, %ecx
	movq	16(%r15), %rax
	movl	%ecx, (%rax,%r14,4)
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	movl	$30, %esi
	callq	_av_clip_uintp2
	sarl	$14, %eax
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	jmp	LBB0_30
LBB0_31:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edi
	callq	_isBE
	testl	%eax, %eax
	sete	%al
	movq	_HAVE_BIGENDIAN@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	sete	%cl
	cmpb	%cl, %al
	je	LBB0_37
## %bb.32:
	cmpl	$0, 48(%rbp)
	jle	LBB0_37
## %bb.33:
	xorl	%ebx, %ebx
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_34 Depth=1
	incq	%rbx
	cmpq	%rbx, -104(%rbp)                ## 8-byte Folded Reload
	je	LBB0_37
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_av_bswap16
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_av_bswap16
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_av_bswap16
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_av_bswap16
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_36
LBB0_37:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_ALPHA,4,2      ## @AV_PIX_FMT_FLAG_ALPHA
	.comm	_HAVE_BIGENDIAN,4,2             ## @HAVE_BIGENDIAN
	.no_dead_strip	_yuv2gbrp16_full_X_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuv2gbrp16_full_X_c
_yuv2gbrp16_full_X_c:                   ; @yuv2gbrp16_full_X_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	stp	x5, x6, [sp, #72]               ; 16-byte Folded Spill
	stp	x2, x4, [sp, #56]               ; 16-byte Folded Spill
	mov	x24, x3
	str	x1, [sp, #96]                   ; 8-byte Folded Spill
	ldr	w20, [x29, #32]
	ldp	x21, x23, [x29, #16]
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	ldr	w0, [x0, #20]
	bl	_av_pix_fmt_desc_get
Lloh0:
	adrp	x8, _AV_PIX_FMT_FLAG_ALPHA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_FLAG_ALPHA@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	ccmp	x21, #0, #4, ne
	cset	w21, ne
	cmp	w20, #1
	b.lt	LBB0_34
; %bb.1:
	mov	x26, #0
	mov	w8, w24
	mov	w9, w19
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	and	x8, x8, #0xfffffffe
	stp	x9, x8, [sp, #104]              ; 16-byte Folded Spill
	and	x8, x9, #0xfffffffe
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x9, x8, #8
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	add	x8, x8, #4
	stp	x9, x8, [sp, #40]               ; 16-byte Folded Spill
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x9, x8, #4
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	add	x8, x8, #8
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x8, x8, #8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, #8
	str	x8, [sp]                        ; 8-byte Folded Spill
                                        ; implicit-def: $w8
                                        ; kill: killed $w8
	stp	x20, x23, [x29, #-120]          ; 16-byte Folded Spill
	stur	w19, [x29, #-124]               ; 4-byte Folded Spill
	str	w24, [sp, #128]                 ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	ldur	x20, [x29, #-120]               ; 8-byte Folded Reload
	cmp	x26, x20
	ldur	w19, [x29, #-124]               ; 4-byte Folded Reload
	ldr	w24, [sp, #128]                 ; 4-byte Folded Reload
	b.eq	LBB0_34
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
                                        ;     Child Loop BB0_27 Depth 2
                                        ;     Child Loop BB0_30 Depth 2
	lsl	x27, x26, #2
	cmp	w24, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #1
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	mov	w8, #-1073741824
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #-1073741824
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	mov	w9, #-1073741824
	ldr	x10, [sp, #112]                 ; 8-byte Folded Reload
	ldp	x12, x11, [sp, #40]             ; 16-byte Folded Reload
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x13, x14, [x12, #-8]
	ldr	w13, [x13, x27]
	ldr	w14, [x14, x27]
	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_8
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, w9
	ldr	x10, [sp, #112]                 ; 8-byte Folded Reload
	mov	x11, x10
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	cmp	x10, x9
	b.eq	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	add	x9, x9, x11, lsl #2
	ldur	x10, [x29, #-96]                ; 8-byte Folded Reload
	sub	x10, x10, x11
	ldr	x12, [sp, #56]                  ; 8-byte Folded Reload
	add	x11, x12, x11, lsl #3
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11], #8
	ldr	w12, [x12, x26, lsl #2]
	ldr	w13, [x9], #4
	madd	w8, w13, w12, w8
	subs	x10, x10, #1
	b.ne	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, #1
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	mov	w9, #-1073741824
	mov	w10, #-1073741824
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #-1073741824
	mov	w9, #-1073741824
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #0
	mov	w10, #0
	mov	w11, #-1073741824
	ldp	x12, x13, [sp, #16]             ; 16-byte Folded Reload
	ldr	x14, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x15, [sp, #88]                  ; 8-byte Folded Reload
	mov	w16, #-1073741824
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x17, x0, [x12, #-8]
	ldr	w17, [x17, x27]
	ldr	w0, [x0, x27]
	ldp	w1, w2, [x14, #-4]
	madd	w16, w1, w17, w16
	madd	w10, w2, w0, w10
	ldp	x17, x0, [x13, #-8]
	ldr	w17, [x17, x27]
	ldr	w0, [x0, x27]
	madd	w11, w17, w1, w11
	madd	w9, w0, w2, w9
	add	x14, x14, #8
	add	x13, x13, #16
	add	x12, x12, #16
	subs	x15, x15, #2
	b.ne	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w10, w16
	add	w9, w9, w11
	ldr	x12, [sp, #88]                  ; 8-byte Folded Reload
	mov	x14, x12
	ldr	x11, [sp, #104]                 ; 8-byte Folded Reload
	cmp	x12, x11
	b.eq	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x13, x14, #3
	ldp	x15, x11, [sp, #72]             ; 16-byte Folded Reload
	add	x11, x11, x13
	ldr	x12, [sp, #64]                  ; 8-byte Folded Reload
	add	x12, x12, x14, lsl #2
	add	x13, x15, x13
	ldr	x15, [sp, #104]                 ; 8-byte Folded Reload
	sub	x14, x15, x14
LBB0_20:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x13], #8
	ldr	w15, [x15, x27]
	ldr	w16, [x12], #4
	madd	w10, w16, w15, w10
	ldr	x15, [x11], #8
	ldr	w15, [x15, x27]
	madd	w9, w15, w16, w9
	subs	x14, x14, #1
	b.ne	LBB0_20
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w21, LBB0_32
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #1
	b.lt	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #1
	b.ne	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	mov	w11, #-1073741824
	b	LBB0_29
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w11, #-1073741824
	b	LBB0_31
LBB0_26:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w11, #0
	mov	w12, #-1073741824
	ldr	x13, [sp, #112]                 ; 8-byte Folded Reload
	ldr	x14, [sp, #48]                  ; 8-byte Folded Reload
	ldr	x15, [sp]                       ; 8-byte Folded Reload
LBB0_27:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x16, x17, [x15, #-8]
	ldr	w16, [x16, x27]
	ldr	w17, [x17, x27]
	ldp	w0, w1, [x14, #-4]
	madd	w12, w0, w16, w12
	madd	w11, w1, w17, w11
	add	x15, x15, #16
	add	x14, x14, #8
	subs	x13, x13, #2
	b.ne	LBB0_27
; %bb.28:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w11, w11, w12
	ldr	x13, [sp, #112]                 ; 8-byte Folded Reload
	mov	x14, x13
	ldur	x12, [x29, #-96]                ; 8-byte Folded Reload
	cmp	x13, x12
	b.eq	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [sp, #96]                  ; 8-byte Folded Reload
	add	x12, x12, x14, lsl #2
	ldur	x13, [x29, #-96]                ; 8-byte Folded Reload
	sub	x13, x13, x14
	ldr	x15, [sp, #8]                   ; 8-byte Folded Reload
	add	x14, x15, x14, lsl #3
LBB0_30:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x14], #8
	ldr	w15, [x15, x26, lsl #2]
	ldr	w16, [x12], #4
	madd	w11, w16, w15, w11
	subs	x13, x13, #1
	b.ne	LBB0_30
LBB0_31:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w12, #536879104
	add	w11, w12, w11, asr #1
	str	w11, [sp, #124]                 ; 4-byte Folded Spill
LBB0_32:                                ;   in Loop: Header=BB0_3 Depth=1
	asr	w8, w8, #14
	add	w8, w8, #16, lsl #12            ; =65536
	asr	w24, w10, #14
	asr	w20, w9, #14
	ldur	x11, [x29, #-104]               ; 8-byte Folded Reload
	ldr	w9, [x11, #24]
	sub	w8, w8, w9
	ldp	w9, w10, [x11]
	orr	w12, wzr, #0x2000
	madd	w19, w8, w9, w12
	ldp	w23, w22, [x11, #8]
	ldr	w25, [x11, #16]
	madd	w0, w10, w20, w19
	mov	w1, #30
	bl	_av_clip_uintp2
	mov	x28, x0
	madd	w8, w23, w20, w19
	madd	w0, w22, w24, w8
	mov	w1, #30
	bl	_av_clip_uintp2
	mov	x20, x0
	madd	w0, w25, w24, w19
	mov	w1, #30
	bl	_av_clip_uintp2
	asr	w8, w20, #14
	ldur	x23, [x29, #-112]               ; 8-byte Folded Reload
	ldp	x9, x10, [x23]
	str	w8, [x9, x27]
	asr	w8, w0, #14
	str	w8, [x10, x27]
	asr	w8, w28, #14
	ldr	x9, [x23, #16]
	str	w8, [x9, x27]
	cbz	w21, LBB0_2
; %bb.33:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #124]                  ; 4-byte Folded Reload
	mov	w1, #30
	bl	_av_clip_uintp2
	asr	w8, w0, #14
	ldr	x9, [x23, #24]
	str	w8, [x9, x26, lsl #2]
	b	LBB0_2
LBB0_34:
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	ldr	w0, [x8, #20]
	bl	_isBE
	cmp	w0, #0
Lloh3:
	adrp	x8, _HAVE_BIGENDIAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HAVE_BIGENDIAN@GOTPAGEOFF]
	cset	w9, eq
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w8, eq
	cmp	w9, w8
	ccmp	w20, #1, #8, ne
	b.ge	LBB0_36
LBB0_35:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_36:
	mov	x19, #0
	lsl	x20, x20, #2
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	add	x19, x19, #4
	cmp	x20, x19
	b.eq	LBB0_35
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x19]
	bl	_av_bswap16
	ldp	x8, x9, [x23]
	str	w0, [x8, x19]
	ldr	w0, [x9, x19]
	bl	_av_bswap16
	ldp	x8, x9, [x23, #8]
	str	w0, [x8, x19]
	ldr	w0, [x9, x19]
	bl	_av_bswap16
	ldr	x8, [x23, #16]
	str	w0, [x8, x19]
	cbz	w21, LBB0_37
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	ldr	x8, [x23, #24]
	ldr	w0, [x8, x19]
	bl	_av_bswap16
	ldr	x8, [x23, #24]
	str	w0, [x8, x19]
	b	LBB0_37
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_ALPHA,4,2      ; @AV_PIX_FMT_FLAG_ALPHA
	.comm	_HAVE_BIGENDIAN,4,2             ; @HAVE_BIGENDIAN
	.no_dead_strip	_yuv2gbrp16_full_X_c
.subsections_via_symbols
