	.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, %r15d
	movl	%r8d, %r13d
	movq	%rdx, %rbx
	movq	%rdi, %r12
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.1:
	movl	%r13d, %r9d
	leaq	-1(%r9), %rdx
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rdx
	jae	LBB0_3
## %bb.2:
	movl	$128, %edx
	xorl	%edi, %edi
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %r9d
	movl	$128, %edx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %eax
	subl	%edx, %eax
	movl	%eax, (%rbx)
	movl	4(%rsi,%rdi,4), %eax
	subl	(%rsi,%rdi,4), %eax
	movl	%eax, 4(%rbx)
	movl	8(%rsi,%rdi,4), %eax
	subl	4(%rsi,%rdi,4), %eax
	movl	%eax, 8(%rbx)
	movl	12(%rsi,%rdi,4), %eax
	subl	8(%rsi,%rdi,4), %eax
	movl	%eax, 12(%rbx)
	addq	$16, %rbx
	movl	12(%rsi,%rdi,4), %edx
	addq	$4, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_4
LBB0_5:
	testq	%r8, %r8
	je	LBB0_9
## %bb.6:
	leaq	(%rsi,%rdi,4), %r9
	shlq	$2, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rdi), %eax
	subl	%edx, %eax
	movl	%eax, (%rbx,%rdi)
	movl	(%r9,%rdi), %edx
	addq	$4, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_7
## %bb.8:
	addq	%rdi, %rbx
LBB0_9:
	cmpl	$1, %r15d
	je	LBB0_13
## %bb.10:
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	jle	LBB0_13
## %bb.11:
	movslq	%ecx, %rax
	movslq	%r13d, %rcx
	decl	%r15d
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rsi,%rax), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	leaq	-48(%rbp), %r8
	leaq	-44(%rbp), %r9
	callq	*(%r12)
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%r14, %rsi
	decl	%r15d
	jne	LBB0_12
LBB0_13:
	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
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x20, x2
	mov	x21, x0
	cmp	w4, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w19
	mov	w10, #128
	mov	x9, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	sub	w10, w11, w10
	str	w10, [x20], #4
	ldr	w10, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_3:
	subs	w23, w5, #1
	b.eq	LBB0_7
; %bb.4:
	str	xzr, [sp, #8]
	cmp	w5, #2
	b.lt	LBB0_7
; %bb.5:
	sxtw	x8, w3
	lsl	x24, x8, #2
	sbfiz	x25, x19, #2, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x1, x24
	ldr	x8, [x21]
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x20
	mov	x2, x22
	mov	x3, x19
	blr	x8
	add	x20, x20, x25
	mov	x1, x22
	subs	w23, w23, #1
	b.ne	LBB0_6
LBB0_7:
	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
