	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function median_predict
_median_predict:                        ## @median_predict
	.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
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	movq	%rcx, %r12
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.1:
	movl	%r15d, %r9d
	leaq	-1(%r9), %rax
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rax
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %r9d
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %eax
	subl	%ebx, %eax
	movl	%eax, (%rdx,%rcx,4)
	movl	4(%rsi,%rcx,4), %eax
	subl	(%rsi,%rcx,4), %eax
	movl	%eax, 4(%rdx,%rcx,4)
	movl	8(%rsi,%rcx,4), %eax
	subl	4(%rsi,%rcx,4), %eax
	movl	%eax, 8(%rdx,%rcx,4)
	movl	12(%rsi,%rcx,4), %eax
	subl	8(%rsi,%rcx,4), %eax
	movl	%eax, 12(%rdx,%rcx,4)
	movl	12(%rsi,%rcx,4), %ebx
	addq	$4, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_4
LBB0_5:
	testq	%r8, %r8
	je	LBB0_8
## %bb.6:
	leaq	(%rdx,%rcx,4), %r9
	leaq	(%rsi,%rcx,4), %r14
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rax,4), %ecx
	subl	%ebx, %ecx
	movl	%ecx, (%r9,%rax,4)
	movl	(%r14,%rax,4), %ebx
	incq	%rax
	cmpq	%rax, %r8
	jne	LBB0_7
LBB0_8:
	cmpl	$2, %r13d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jl	LBB0_11
## %bb.9:
	movslq	%r15d, %rax
	decl	%r13d
	shlq	$2, %r12
	leaq	(%rdx,%rax,4), %rbx
	shlq	$2, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rsi,%r12), %r14
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)
	movl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	leaq	-48(%rbp), %r8
	leaq	-44(%rbp), %r9
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%r14, %rsi
	decl	%r13d
	jne	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_median_predict
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function median_predict
_median_predict:                        ; @median_predict
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x20, x0
	cmp	w4, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, #0
	mov	x9, x1
	mov	x10, x2
	mov	w11, w19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9]
	sub	w8, w12, w8
	str	w8, [x10], #4
	ldr	w8, [x9], #4
	subs	x11, x11, #1
	b.ne	LBB0_2
LBB0_3:
	subs	w23, w5, #1
	b.le	LBB0_6
; %bb.4:
	sxtw	x8, w19
	lsl	x24, x3, #2
	lsl	x25, x8, #2
	add	x21, x2, x25
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x1, x24
	ldr	w8, [x1]
	stp	w8, w8, [sp, #8]
	ldr	x8, [x20]
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x21
	mov	x2, x22
	mov	x3, x19
	blr	x8
	add	x21, x21, x25
	mov	x1, x22
	subs	w23, w23, #1
	b.ne	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_median_predict
.subsections_via_symbols
