	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lag_pred_line
_lag_pred_line:                         ## @lag_pred_line
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%edx, %eax
	movq	%rsi, %rdx
	testl	%r8d, %r8d
	je	LBB0_7
## %bb.1:
	movl	%ecx, %esi
	notl	%esi
	addl	%eax, %esi
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %esi
	movl	%esi, -8(%rbp)
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.2:
	movq	(%rdi), %rdi
	movq	(%rdi), %r8
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %r8
	jne	LBB0_6
## %bb.3:
	movl	%ecx, %esi
	negl	%esi
	jmp	LBB0_5
LBB0_7:
	movq	8(%rdi), %r8
	movq	%rdx, %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	addq	$16, %rsp
	popq	%rbp
	jmpq	*%r8                            ## TAILCALL
LBB0_4:
	leal	(%rcx,%rcx), %esi
	notl	%esi
	addl	%eax, %esi
LBB0_5:
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %esi
LBB0_6:
	movl	%esi, -4(%rbp)
	movslq	%ecx, %rcx
	shlq	$2, %rcx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	leaq	-8(%rbp), %r8
	leaq	-4(%rbp), %r9
	movq	%rdx, %rdi
	movl	%eax, %ecx
	callq	_add_lag_median_prediction
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_YUV420P,8,3         ## @AV_PIX_FMT_YUV420P
	.no_dead_strip	_lag_pred_line
.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
_lag_pred_line:                         ; @lag_pred_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x2
	mov	x2, x1
	cbz	w4, LBB0_4
; %bb.1:
	mvn	w9, w3
	add	w9, w9, w8
	ldr	w9, [x2, w9, sxtw #2]
	stur	w9, [x29, #-4]
	cmp	w4, #1
	b.ne	LBB0_5
; %bb.2:
	ldr	x10, [x0]
	ldr	x10, [x10]
Lloh0:
	adrp	x11, _AV_PIX_FMT_YUV420P@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AV_PIX_FMT_YUV420P@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.3:
	neg	w9, w3
	b	LBB0_6
LBB0_4:
	ldr	x4, [x0, #8]
	mov	x0, x2
	mov	x1, x2
	mov	x2, x8
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	br	x4
LBB0_5:
	mov	w9, #-1
	eor	w9, w9, w3, lsl #1
	add	w9, w9, w8
LBB0_6:
	ldr	w9, [x2, w9, sxtw #2]
LBB0_7:
	str	w9, [sp, #8]
	sub	x1, x2, w3, sxtw #2
	sub	x4, x29, #4
	add	x5, sp, #8
	mov	x0, x2
	mov	x3, x8
	bl	_add_lag_median_prediction
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_YUV420P,8,3         ; @AV_PIX_FMT_YUV420P
	.no_dead_strip	_lag_pred_line
.subsections_via_symbols
