	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_lag_median_prediction
_add_lag_median_prediction:             ## @add_lag_median_prediction
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	(%r8), %eax
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	(%r9), %edi
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%ecx, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r15,4), %esi
	movl	%eax, %edx
	subl	%edi, %edx
	addl	%esi, %edx
	movl	%eax, %edi
	callq	_mid_pred
	addl	(%r12,%r15,4), %eax
	movl	(%rbx,%r15,4), %edi
	movl	%eax, (%r13,%r15,4)
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_2
LBB0_3:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%edi, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_lag_median_prediction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_lag_median_prediction
_add_lag_median_prediction:             ; @add_lag_median_prediction
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x5
	mov	x20, x4
	mov	x23, x0
	ldr	w0, [x4]
	ldr	w8, [x5]
	cmp	w3, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	w24, w3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	sub	w8, w0, w8
	add	w2, w8, w1
	bl	_mid_pred
	ldr	w8, [x21], #4
	add	w0, w8, w0
	ldr	w8, [x22], #4
	str	w0, [x23], #4
	subs	x24, x24, #1
	b.ne	LBB0_2
LBB0_3:
	str	w0, [x20]
	str	w8, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_lag_median_prediction
.subsections_via_symbols
