	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function correlate_slice_buffered
_correlate_slice_buffered:              ## @correlate_slice_buffered
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	24(%rbp), %ebx
	movslq	(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rdi
	movslq	%ebx, %rax
	decq	%rax
	movslq	4(%r15), %rsi
	imulq	%rax, %rsi
	addq	16(%r15), %rsi
	callq	_slice_buffer_get_line
	movslq	8(%r15), %rcx
	leaq	(%rax,%rcx,8), %r14
	cmpl	32(%rbp), %ebx
	jl	LBB0_4
	jmp	LBB0_20
LBB0_1:
	xorl	%r14d, %r14d
	cmpl	32(%rbp), %ebx
	jge	LBB0_20
LBB0_4:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %r12d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	subq	%rax, %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	32(%rbp), %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_20
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%r14, %r13
	movslq	4(%r15), %rax
	movslq	%ebx, %rsi
	imulq	%rax, %rsi
	addq	16(%r15), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_slice_buffer_get_line
	movslq	8(%r15), %rcx
	leaq	(%rax,%rcx,8), %r14
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	addq	%rax, (%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$2, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-16(%r14,%r15,8), %rax
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	addq	%rax, -8(%r14,%r15,8)
	leaq	(%r12,%r15), %rax
	incq	%rax
	incq	%r15
	cmpq	$2, %rax
	je	LBB0_19
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, 16(%rbp)
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-16(%r14,%r15,8), %rdi
	movq	-8(%r13,%r15,8), %rsi
	movq	(%r13,%r15,8), %rdx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-16(%r14,%r15,8), %rax
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-8(%r13,%r15,8), %rsi
	leaq	(%rsi,%rax), %rdx
	subq	-16(%r13,%r15,8), %rdx
	movq	%rax, %rdi
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=2
	callq	_mid_pred
	jmp	LBB0_18
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_correlate_slice_buffered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function correlate_slice_buffered
_correlate_slice_buffered:              ; @correlate_slice_buffered
	.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
	mov	x19, x7
	mov	x20, x6
	mov	x21, x2
	mov	x27, x1
	ldr	w8, [x29, #16]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldrsw	x24, [x2]
	cbz	w7, LBB0_2
; %bb.1:
	mov	x8, x19
	sxtw	x8, w8
	sub	x8, x8, #1
	ldrsw	x9, [x21, #4]
	ldr	x10, [x21, #16]
	madd	x1, x9, x8, x10
	mov	x0, x27
	bl	_slice_buffer_get_line
	ldrsw	x8, [x21, #8]
	add	x26, x0, x8, lsl #3
	b	LBB0_3
LBB0_2:
	mov	x26, #0
LBB0_3:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w19, w8
	b.ge	LBB0_20
; %bb.4:
	and	x25, x24, #0xffffffff
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w19, w19, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w19, w8
	mov	x27, x23
	b.eq	LBB0_20
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x22, x26
	ldrsw	x8, [x21, #4]
	sxtw	x9, w19
	ldr	x10, [x21, #16]
	madd	x1, x8, x9, x10
	mov	x23, x27
	mov	x0, x27
	bl	_slice_buffer_get_line
	ldrsw	x8, [x21, #8]
	add	x26, x0, x8, lsl #3
	cmp	w24, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w19, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x26]
	add	x8, x9, x8
	str	x8, [x26]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w25, #1
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x22, #8
	mov	x28, x26
	mov	w22, #1
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x0, [x28]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x28, #8]!
	add	x8, x8, x0
	str	x8, [x28]
	add	x22, x22, #1
	add	x27, x27, #8
	cmp	x25, x22
	b.eq	LBB0_5
LBB0_13:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w20, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	cbz	w19, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x8, x22, #1
	cmp	x8, x24
	b.ge	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x0, [x28]
	ldp	x1, x2, [x27]
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x0, [x28]
	cbz	w19, LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=2
	ldp	x8, x1, [x27, #-8]
	add	x9, x1, x0
	sub	x2, x9, x8
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=2
	bl	_mid_pred
	b	LBB0_12
LBB0_20:
	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_slice_buffered
.subsections_via_symbols
