	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function decorrelate_sf
LCPI0_0:
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_decorrelate_sf:                        ## @decorrelate_sf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jle	LBB0_13
## %bb.1:
	movl	%edx, %r9d
	cmpl	$8, %edx
	jb	LBB0_2
## %bb.3:
	leaq	(%rsi,%r9,4), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%rdi,%r9,4), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
LBB0_2:
	xorl	%edx, %edx
LBB0_9:
	movq	%rdx, %r10
	notq	%r10
	testb	$1, %r9b
	je	LBB0_11
## %bb.10:
	movl	(%rsi,%rdx,4), %eax
	sarl	%cl, %eax
	imull	%r8d, %eax
	subl	$-128, %eax
	sarl	$8, %eax
	shll	%cl, %eax
	subl	(%rdi,%rdx,4), %eax
	movl	%eax, (%rdi,%rdx,4)
	orq	$1, %rdx
LBB0_11:
	addq	%r9, %r10
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx,4), %eax
	sarl	%cl, %eax
	imull	%r8d, %eax
	subl	$-128, %eax
	sarl	$8, %eax
	shll	%cl, %eax
	subl	(%rdi,%rdx,4), %eax
	movl	%eax, (%rdi,%rdx,4)
	movl	4(%rsi,%rdx,4), %eax
	sarl	%cl, %eax
	imull	%r8d, %eax
	subl	$-128, %eax
	sarl	$8, %eax
	shll	%cl, %eax
	subl	4(%rdi,%rdx,4), %eax
	movl	%eax, 4(%rdi,%rdx,4)
	addq	$2, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_12
	jmp	LBB0_13
LBB0_6:
	movl	%r9d, %edx
	andl	$-8, %edx
	movd	%ecx, %xmm1
	movd	%r8d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	(,%r9,4), %r10
	andq	$-32, %r10
	xorl	%eax, %eax
	pmovzxdq	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,xmm1[1],zero
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [128,128,128,128]
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rax), %xmm3
	movdqu	16(%rdi,%rax), %xmm4
	movdqu	(%rsi,%rax), %xmm5
	movdqu	16(%rsi,%rax), %xmm6
	psrad	%xmm1, %xmm5
	psrad	%xmm1, %xmm6
	pmulld	%xmm0, %xmm5
	pmulld	%xmm0, %xmm6
	paddd	%xmm2, %xmm5
	paddd	%xmm2, %xmm6
	psrad	$8, %xmm5
	psrad	$8, %xmm6
	pslld	%xmm1, %xmm5
	psubd	%xmm3, %xmm5
	pslld	%xmm1, %xmm6
	psubd	%xmm4, %xmm6
	movdqu	%xmm5, (%rdi,%rax)
	movdqu	%xmm6, 16(%rdi,%rax)
	addq	$32, %rax
	cmpq	%rax, %r10
	jne	LBB0_7
## %bb.8:
	cmpq	%r9, %rdx
	jne	LBB0_9
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decorrelate_sf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decorrelate_sf
_decorrelate_sf:                        ; @decorrelate_sf
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w8, w2
	cmp	w2, #16
	b.lo	LBB0_6
; %bb.2:
	lsl	x9, x8, #2
	add	x10, x0, x9
	add	x9, x1, x9
	cmp	x9, x0
	ccmp	x10, x1, #0, hi
	b.hi	LBB0_6
; %bb.3:
	and	x9, x8, #0xfffffff0
	dup.4s	v0, w3
	dup.4s	v1, w4
	add	x10, x1, #32
	add	x11, x0, #32
	neg.4s	v2, v0
	mov	x12, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q3, q4, [x11, #-32]
	ldp	q5, q6, [x11]
	ldp	q7, q16, [x10, #-32]
	ldp	q17, q18, [x10], #64
	sshl.4s	v7, v7, v2
	sshl.4s	v16, v16, v2
	sshl.4s	v17, v17, v2
	sshl.4s	v18, v18, v2
	movi.4s	v19, #128
	mla.4s	v19, v7, v1
	movi.4s	v7, #128
	mla.4s	v7, v16, v1
	movi.4s	v16, #128
	mla.4s	v16, v17, v1
	movi.4s	v17, #128
	mla.4s	v17, v18, v1
	sshr.4s	v18, v19, #8
	sshr.4s	v7, v7, #8
	sshr.4s	v16, v16, #8
	sshr.4s	v17, v17, #8
	ushl.4s	v18, v18, v0
	ushl.4s	v7, v7, v0
	ushl.4s	v16, v16, v0
	ushl.4s	v17, v17, v0
	sub.4s	v3, v18, v3
	sub.4s	v4, v7, v4
	sub.4s	v5, v16, v5
	stp	q3, q4, [x11, #-32]
	sub.4s	v3, v17, v6
	stp	q5, q3, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x9, #0
LBB0_7:
	lsl	x11, x9, #2
	add	x10, x1, x11
	add	x11, x0, x11
	sub	x8, x8, x9
	orr	w9, wzr, #0x80
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	ldr	w13, [x10], #4
	asr	w13, w13, w3
	madd	w13, w13, w4, w9
	asr	w13, w13, #8
	lsl	w13, w13, w3
	sub	w12, w13, w12
	str	w12, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decorrelate_sf
.subsections_via_symbols
