	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decorrelate
_decorrelate:                           ## @decorrelate
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rsi), %r13d
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.1:
	movslq	(%rsi), %rsi
	movslq	%ecx, %rax
	movq	%rsi, %rcx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%rsi), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	-2(%r13), %rcx
	imulq	%rax, %rcx
	leaq	(%rdx,%rcx,8), %rbx
	addq	$-16, %rbx
	leaq	(,%rax,8), %rcx
	negq	%rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	-1(%r13), %rcx
	imulq	%rax, %rcx
	leaq	(%rdx,%rcx,8), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %rbx
	addq	%rax, %r12
	cmpq	$2, -80(%rbp)                   ## 8-byte Folded Reload
	jl	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	decq	%r13
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rbx,%r15,8), %rsi
	movq	8(%rbx,%r15,8), %rdx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, %rdi
	callq	_mid_pred
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	subq	%rax, -16(%r12,%r15,8)
	cmpq	$1, %r14
	jle	LBB0_2
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %r15
	cmpq	$2, %r14
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	-1(%r15), %r14
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-24(%r12,%r15,8), %rax
	testq	%r13, %r13
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	jl	LBB0_9
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-24(%r12,%r15,8), %rax
	testq	%r13, %r13
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rbx,%r15,8), %rsi
	leaq	(%rsi,%rax), %rdx
	subq	-8(%rbx,%r15,8), %rdx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx,%r15,8), %rax
	subq	%rax, -16(%r12,%r15,8)
	jmp	LBB0_2
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decorrelate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decorrelate
_decorrelate:                           ; @decorrelate
	.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	w20, [x1, #4]
	cmp	w20, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x19, x5
	mov	x8, #0
	ldrsw	x21, [x1]
	sxtw	x9, w3
	add	x10, x21, #1
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	sub	x10, x20, #2
	madd	x10, x10, x9, x21
	add	x10, x2, x10, lsl #3
	sub	x23, x10, #8
	sub	x24, x8, w3, sxtw #3
	sub	x8, x20, #1
	madd	x8, x8, x9, x21
	add	x8, x2, x8, lsl #3
	sub	x25, x8, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, x24
	add	x25, x25, x24
	cmp	x26, #2
	b.lt	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x26, x20
	sub	x20, x20, #1
	cmp	w21, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x25
	mov	x28, x23
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldp	x1, x2, [x28]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	bl	_mid_pred
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x27]
	sub	x8, x8, x0
	str	x8, [x27], #-8
	sub	x28, x28, #8
	cmp	x22, #1
	b.le	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x22, #2
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	sub	x22, x22, #1
	cbz	w19, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldur	x0, [x27, #-8]
	cbz	x20, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	x22, x21
	b.lt	LBB0_5
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldur	x0, [x27, #-8]
	cbz	x20, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldp	x8, x1, [x28, #-8]
	add	x9, x1, x0
	sub	x2, x9, x8
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x20, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x27]
	sub	x8, x9, x8
	str	x8, [x27]
	b	LBB0_2
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	_decorrelate
.subsections_via_symbols
