	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function revert_inter_ch_decorr
_revert_inter_ch_decorr:                ## @revert_inter_ch_decorr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, (%rdi)
	jne	LBB0_16
## %bb.1:
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rax)
	je	LBB0_16
LBB0_3:
	testl	%esi, %esi
	jle	LBB0_16
## %bb.4:
	movq	8(%rdi), %rcx
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	%esi, %r8d
	cmpl	$8, %esi
	jb	LBB0_5
## %bb.6:
	leaq	(%rcx,%r8,4), %rdx
	cmpq	%rdx, %rax
	jae	LBB0_9
## %bb.7:
	leaq	(%rax,%r8,4), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_9
LBB0_5:
	xorl	%esi, %esi
LBB0_12:
	movq	%rsi, %rdx
	notq	%rdx
	testb	$1, %r8b
	je	LBB0_14
## %bb.13:
	movl	(%rcx,%rsi,4), %r9d
	sarl	%r9d
	movl	(%rax,%rsi,4), %edi
	subl	%r9d, %edi
	movl	%edi, (%rax,%rsi,4)
	addl	%edi, (%rcx,%rsi,4)
	orq	$1, %rsi
LBB0_14:
	addq	%r8, %rdx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edx
	sarl	%edx
	movl	(%rax,%rsi,4), %edi
	subl	%edx, %edi
	movl	%edi, (%rax,%rsi,4)
	addl	%edi, (%rcx,%rsi,4)
	movl	4(%rcx,%rsi,4), %edx
	sarl	%edx
	movl	4(%rax,%rsi,4), %edi
	subl	%edx, %edi
	movl	%edi, 4(%rax,%rsi,4)
	addl	%edi, 4(%rcx,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_15
	jmp	LBB0_16
LBB0_9:
	movl	%r8d, %esi
	andl	$-8, %esi
	leaq	(,%r8,4), %rdi
	andq	$-32, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdx), %xmm0
	movdqu	16(%rcx,%rdx), %xmm1
	psrad	$1, %xmm0
	psrad	$1, %xmm1
	movdqu	(%rax,%rdx), %xmm2
	psubd	%xmm0, %xmm2
	movdqu	16(%rax,%rdx), %xmm0
	psubd	%xmm1, %xmm0
	movdqu	%xmm2, (%rax,%rdx)
	movdqu	%xmm0, 16(%rax,%rdx)
	movdqu	(%rcx,%rdx), %xmm1
	movdqu	16(%rcx,%rdx), %xmm3
	paddd	%xmm2, %xmm1
	paddd	%xmm0, %xmm3
	movdqu	%xmm1, (%rcx,%rdx)
	movdqu	%xmm3, 16(%rcx,%rdx)
	addq	$32, %rdx
	cmpq	%rdx, %rdi
	jne	LBB0_10
## %bb.11:
	cmpq	%r8, %rsi
	jne	LBB0_12
LBB0_16:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_revert_inter_ch_decorr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function revert_inter_ch_decorr
_revert_inter_ch_decorr:                ; @revert_inter_ch_decorr
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_12
; %bb.1:
	ldr	x8, [x0, #16]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.2:
	cmp	w1, #1
	b.ge	LBB0_4
	b	LBB0_12
LBB0_3:
	ldr	x8, [x8, #8]
	cmp	x8, #0
	ccmp	w1, #0, #4, ne
	b.le	LBB0_12
LBB0_4:
	ldr	x8, [x0, #8]
	ldp	x10, x9, [x8]
	mov	w8, w1
	cmp	w1, #8
	b.lo	LBB0_9
; %bb.5:
	lsl	x11, x8, #2
	add	x12, x10, x11
	add	x11, x9, x11
	cmp	x10, x11
	ccmp	x9, x12, #2, lo
	b.lo	LBB0_9
; %bb.6:
	and	x11, x8, #0xfffffff8
	add	x12, x9, #16
	add	x13, x10, #16
	mov	x14, x11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-16]
	sshr.4s	v2, v0, #1
	sshr.4s	v3, v1, #1
	ldp	q4, q5, [x13, #-16]
	sub.4s	v2, v4, v2
	sub.4s	v3, v5, v3
	stp	q2, q3, [x13, #-16]
	add.4s	v0, v0, v2
	add.4s	v1, v1, v3
	stp	q0, q1, [x12, #-16]
	add	x12, x12, #32
	add	x13, x13, #32
	subs	x14, x14, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x11, x8
	b.ne	LBB0_10
	b	LBB0_12
LBB0_9:
	mov	x11, #0
LBB0_10:
	lsl	x12, x11, #2
	add	x10, x10, x12
	add	x9, x9, x12
	sub	x8, x8, x11
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	ldr	w12, [x10]
	sub	w11, w12, w11, asr #1
	str	w11, [x10], #4
	ldr	w12, [x9]
	add	w11, w12, w11
	str	w11, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_revert_inter_ch_decorr
.subsections_via_symbols
