	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function correlate
_correlate:                             ## @correlate
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_16
## %bb.1:
	movl	(%rsi), %eax
	movslq	%eax, %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rcx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	leaq	8(%r12), %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	subq	%rcx, %r12
	movl	$1, %r15d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	subq	%rax, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r14
	addq	%rax, %r12
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	imulq	%rdx, %rax
	movq	%rax, %rcx
	subq	%rdx, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %rcx
	addq	%rcx, (%rdx,%rax,8)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, %rdi
	callq	_mid_pred
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	%rax, -16(%r14,%rbx,8)
	leaq	(%r15,%rbx), %rax
	incq	%rax
	incq	%rbx
	cmpq	$2, %rax
	je	LBB0_15
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-24(%r14,%rbx,8), %rax
	testq	%r13, %r13
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	jge	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-8(%r12,%rbx,8), %rsi
	movq	(%r12,%rbx,8), %rdx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-24(%r14,%rbx,8), %rax
	testq	%r13, %r13
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-8(%r12,%rbx,8), %rsi
	leaq	(%rsi,%rax), %rdx
	subq	-16(%r12,%rbx,8), %rdx
	jmp	LBB0_13
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_correlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function correlate
_correlate:                             ; @correlate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w3 killed $w3 def $x3
	ldr	w8, [x1, #4]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x19, x5
	mov	x25, x2
	mov	x22, #0
	ldr	w23, [x1]
	sxtw	x24, w23
	sxtw	x8, w3
	str	x8, [sp]                        ; 8-byte Folded Spill
	sbfiz	x26, x3, #3, #32
	neg	x27, x26
	mov	x20, x2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x20, x20, x26
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x22, x8
	b.eq	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w24, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x22, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	mul	x8, x22, x9
	sub	x9, x8, x9
	ldr	x9, [x25, x9, lsl #3]
	lsl	x8, x8, #3
	ldr	x10, [x25, x8]
	add	x9, x10, x9
	str	x9, [x25, x8]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #1
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x20
	mov	w21, #1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	bl	_mid_pred
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x28, #8]!
	add	x8, x8, x0
	str	x8, [x28]
	add	x21, x21, #1
	cmp	x23, x21
	b.eq	LBB0_2
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w19, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x0, [x28]
	cbz	x22, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x8, x21, #1
	cmp	x8, x24
	b.ge	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x8, x28, x27
	ldp	x1, x2, [x8, #8]
	b	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x0, [x28]
	cbz	x22, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x8, x28, x27
	ldp	x8, x1, [x8]
	add	x9, x1, x0
	sub	x2, x9, x8
	b	LBB0_8
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_correlate
.subsections_via_symbols
