	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lag_pred_line_yuy2
_lag_pred_line_yuy2:                    ## @lag_pred_line_yuy2
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%edx, %r10d
	movq	%rsi, %r14
	cmpl	$1, %r8d
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rax
	testl	%r8d, %r8d
	jne	LBB0_15
## %bb.2:
	testl	%r9d, %r9d
	je	LBB0_4
## %bb.3:
	movl	(%r14), %ebx
	movl	$0, (%r14)
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	%r10d, %edx
	xorl	%ecx, %ecx
	callq	*8(%rax)
	movl	%ebx, (%r14)
	jmp	LBB0_16
LBB0_5:
	xorl	%edx, %edx
	testl	%r9d, %r9d
	setne	%dl
	leal	(%rdx,%rdx), %ebx
	addl	$2, %ebx
	movl	%ecx, %esi
	notl	%esi
	leal	(%rsi,%r10), %eax
	cltq
	movl	(%r14,%rax,4), %eax
	movl	%eax, -40(%rbp)
	leal	2(%rsi,%rdx,2), %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %edx
	movl	%edx, -36(%rbp)
	leaq	-1(%rbx), %rsi
	movl	%ebx, %r8d
	andl	$2, %r8d
	cmpq	$3, %rsi
	jae	LBB0_13
## %bb.6:
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_15:
	leal	(%rcx,%rcx), %edx
	notl	%edx
	addl	%r10d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %edx
	movl	%edx, -36(%rbp)
	movslq	%ecx, %rdx
	notl	%ecx
	addl	%r10d, %ecx
	movslq	%ecx, %rcx
	movl	(%r14,%rcx,4), %ecx
	movl	%ecx, -40(%rbp)
	shlq	$2, %rdx
	movq	%r14, %rsi
	subq	%rdx, %rsi
	leaq	-40(%rbp), %r8
	leaq	-36(%rbp), %r9
	movq	%r14, %rdi
	movq	%r14, %rdx
	movl	%r10d, %ecx
	callq	*(%rax)
	jmp	LBB0_16
LBB0_13:
	movl	%ebx, %esi
	andl	$-4, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addl	(%r14,%rdi,4), %eax
	movl	%eax, (%r14,%rdi,4)
	addl	4(%r14,%rdi,4), %eax
	movl	%eax, 4(%r14,%rdi,4)
	addl	8(%r14,%rdi,4), %eax
	movl	%eax, 8(%r14,%rdi,4)
	addl	12(%r14,%rdi,4), %eax
	movl	%eax, 12(%r14,%rdi,4)
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_14
LBB0_7:
	testq	%r8, %r8
	je	LBB0_10
## %bb.8:
	leaq	(%r14,%rdi,4), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%rsi,%rdi,4), %eax
	movl	%eax, (%rsi,%rdi,4)
	incq	%rdi
	cmpq	%rdi, %r8
	jne	LBB0_9
LBB0_10:
	cmpl	%r10d, %ebx
	jge	LBB0_16
## %bb.11:
	movslq	%ecx, %rcx
	movl	%r10d, %r15d
	shlq	$2, %rcx
	movq	%r14, %r12
	subq	%rcx, %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	movl	(%r12,%rbx,4), %esi
	addl	%esi, %eax
	subl	%edx, %eax
	movzbl	%al, %edx
	callq	_mid_pred
	addl	(%r14,%rbx,4), %eax
	movl	(%r12,%rbx,4), %edx
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_12
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rax), %rax
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	%r10d, %edx
	xorl	%ecx, %ecx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lag_pred_line_yuy2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lag_pred_line_yuy2
_lag_pred_line_yuy2:                    ; @lag_pred_line_yuy2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x8, x2
	mov	x19, x1
	cmp	w4, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w4, LBB0_9
; %bb.2:
	cbz	w5, LBB0_11
; %bb.3:
	ldr	w20, [x19]
	str	wzr, [x19]
	ldr	x9, [x0, #8]
	mov	x0, x19
	mov	x1, x19
	mov	x2, x8
	mov	w3, #0
	blr	x9
	str	w20, [x19]
	b	LBB0_10
LBB0_4:
	mov	w9, #4
	mov	w10, #2
	cmp	w5, #0
	csel	w11, w10, w9, eq
	mvn	w10, w3
	add	w9, w10, w8
	ldr	w9, [x19, w9, sxtw #2]
	add	w10, w11, w10
	ldr	w10, [x19, w10, sxtw #2]
	stp	w10, w9, [sp, #8]
	mov	x12, x11
	mov	x13, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x13]
	add	w9, w9, w14
	str	w9, [x13], #4
	subs	x12, x12, #1
	b.ne	LBB0_5
; %bb.6:
	cmp	w11, w8
	b.ge	LBB0_10
; %bb.7:
	mov	x12, #0
	mov	w8, w8
	sub	x20, x12, w3, sxtw #2
	add	x19, x19, x11, lsl #2
	sub	x21, x8, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w9, #0xff
	ldr	w1, [x19, x20]
	add	w8, w1, w9
	sub	w8, w8, w10
	and	w2, w8, #0xff
	bl	_mid_pred
	ldr	w8, [x19]
	add	w9, w8, w0
	ldr	w10, [x19, x20]
	str	w9, [x19], #4
	subs	x21, x21, #1
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	w9, #-1
	eor	w9, w9, w3, lsl #1
	add	w9, w9, w8
	ldr	w10, [x19, w9, sxtw #2]
	mvn	w9, w3
	add	w9, w9, w8
	ldr	w9, [x19, w9, sxtw #2]
	stp	w10, w9, [sp, #8]
	ldr	x9, [x0]
	sub	x1, x19, w3, sxtw #2
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x19
	mov	x2, x19
	mov	x3, x8
	blr	x9
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	x4, [x0, #8]
	mov	x0, x19
	mov	x1, x19
	mov	x2, x8
	mov	w3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	br	x4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lag_pred_line_yuy2
.subsections_via_symbols
