	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decorrelate_sm
_decorrelate_sm:                        ## @decorrelate_sm
	.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, %r8d
	cmpl	$8, %edx
	jb	LBB0_2
## %bb.3:
	leaq	(%rsi,%r8,4), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%rdi,%r8,4), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
LBB0_2:
	xorl	%ecx, %ecx
LBB0_9:
	movq	%rcx, %r10
	notq	%r10
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	movl	(%rdi,%rcx,4), %edx
	movl	(%rsi,%rcx,4), %r9d
	movl	%r9d, %eax
	sarl	%eax
	subl	%eax, %edx
	movl	%edx, (%rdi,%rcx,4)
	addl	%r9d, %edx
	movl	%edx, (%rsi,%rcx,4)
	orq	$1, %rcx
LBB0_11:
	addq	%r8, %r10
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rcx,4), %eax
	movl	(%rsi,%rcx,4), %r9d
	movl	%r9d, %edx
	sarl	%edx
	subl	%edx, %eax
	movl	%eax, (%rdi,%rcx,4)
	addl	%r9d, %eax
	movl	%eax, (%rsi,%rcx,4)
	movl	4(%rdi,%rcx,4), %eax
	movl	4(%rsi,%rcx,4), %r9d
	movl	%r9d, %edx
	sarl	%edx
	subl	%edx, %eax
	movl	%eax, 4(%rdi,%rcx,4)
	addl	%r9d, %eax
	movl	%eax, 4(%rsi,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_12
	jmp	LBB0_13
LBB0_6:
	movl	%r8d, %ecx
	andl	$-8, %ecx
	leaq	(,%r8,4), %rdx
	andq	$-32, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rax), %xmm0
	movdqu	16(%rdi,%rax), %xmm1
	movdqu	(%rsi,%rax), %xmm2
	movdqu	16(%rsi,%rax), %xmm3
	movdqa	%xmm2, %xmm4
	psrad	$1, %xmm4
	psubd	%xmm4, %xmm0
	movdqa	%xmm3, %xmm4
	psrad	$1, %xmm4
	psubd	%xmm4, %xmm1
	movdqu	%xmm0, (%rdi,%rax)
	movdqu	%xmm1, 16(%rdi,%rax)
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	movdqu	%xmm0, (%rsi,%rax)
	movdqu	%xmm1, 16(%rsi,%rax)
	addq	$32, %rax
	cmpq	%rax, %rdx
	jne	LBB0_7
## %bb.8:
	cmpq	%r8, %rcx
	jne	LBB0_9
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decorrelate_sm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decorrelate_sm
_decorrelate_sm:                        ; @decorrelate_sm
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w8, w2
	cmp	w2, #8
	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, #0xfffffff8
	add	x10, x0, #16
	add	x11, x1, #16
	mov	x12, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x10, #-16]
	ldp	q2, q3, [x11, #-16]
	sshr.4s	v4, v2, #1
	sshr.4s	v5, v3, #1
	sub.4s	v0, v0, v4
	sub.4s	v1, v1, v5
	stp	q0, q1, [x10, #-16]
	add.4s	v0, v0, v2
	add.4s	v1, v1, v3
	stp	q0, q1, [x11, #-16]
	add	x10, x10, #32
	add	x11, x11, #32
	subs	x12, x12, #8
	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
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x11]
	ldr	w12, [x10]
	sub	w9, w9, w12, asr #1
	str	w9, [x11], #4
	add	w9, w9, w12
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decorrelate_sm
.subsections_via_symbols
