	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spatial_compensation_8
_spatial_compensation_8:                ## @spatial_compensation_8
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	%edx, %r10
	movq	_area1@GOTPCREL(%rip), %r8
	movl	(%r8), %r15d
	movq	_area2@GOTPCREL(%rip), %r9
	movl	(%r9), %eax
	addq	$28, %rsi
	shlq	$2, %r10
	movl	$7, %r11d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r11d, %r15d
	movslq	%r15d, %rcx
	movl	(%rdi,%rcx,4), %ecx
	addl	%r11d, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	addl	%ecx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, -28(%rsi)
	movl	(%r8), %r15d
	leal	(%r11,%r15), %eax
	movslq	%eax, %rcx
	movl	(%rdi,%rcx,4), %r14d
	movl	(%r9), %eax
	leal	(%r11,%rax), %ebx
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %edx
	addl	%r14d, %edx
	incl	%edx
	sarl	%edx
	movl	%edx, -24(%rsi)
	movl	(%rdi,%rcx,4), %r14d
	movl	(%rdi,%rbx,4), %edx
	addl	%r14d, %edx
	incl	%edx
	sarl	%edx
	movl	%edx, -20(%rsi)
	movl	(%rdi,%rcx,4), %r14d
	movl	(%rdi,%rbx,4), %edx
	addl	%r14d, %edx
	incl	%edx
	sarl	%edx
	movl	%edx, -16(%rsi)
	movl	(%rdi,%rcx,4), %r14d
	movl	(%rdi,%rbx,4), %edx
	addl	%r14d, %edx
	incl	%edx
	sarl	%edx
	movl	%edx, -12(%rsi)
	movl	(%rdi,%rcx,4), %r14d
	movl	(%rdi,%rbx,4), %edx
	addl	%r14d, %edx
	incl	%edx
	sarl	%edx
	movl	%edx, -8(%rsi)
	movl	(%rdi,%rcx,4), %r14d
	movl	(%rdi,%rbx,4), %edx
	addl	%r14d, %edx
	incl	%edx
	sarl	%edx
	movl	%edx, -4(%rsi)
	movl	(%rdi,%rcx,4), %ecx
	movl	(%rdi,%rbx,4), %edx
	addl	%edx, %ecx
	incl	%ecx
	sarl	%ecx
	movl	%ecx, (%rsi)
	addq	%r10, %rsi
	addl	$-1, %r11d
	jb	LBB0_1
## %bb.2:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_area1,4,2                      ## @area1
	.comm	_area2,4,2                      ## @area2
	.no_dead_strip	_spatial_compensation_8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spatial_compensation_8
_spatial_compensation_8:                ; @spatial_compensation_8
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, _area1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _area1@GOTPAGEOFF]
	ldr	w12, [x8]
Lloh2:
	adrp	x9, _area2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _area2@GOTPAGEOFF]
	ldr	w14, [x9]
	add	x10, x1, #16
	sbfiz	x11, x2, #2, #32
	mov	w13, #7
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w12, w13
	ldr	w12, [x0, w12, sxtw #2]
	add	w14, w14, w13
	ldr	w14, [x0, w14, sxtw #2]
	add	w12, w12, w14
	add	w12, w12, #1
	asr	w12, w12, #1
	stur	w12, [x10, #-16]
	ldr	w12, [x8]
	add	w14, w13, w12
	sbfiz	x15, x14, #2, #32
	ldr	w16, [x0, x15]
	ldr	w14, [x9]
	add	w17, w13, w14
	sbfiz	x17, x17, #2, #32
	ldr	w1, [x0, x17]
	add	w16, w16, w1
	add	w16, w16, #1
	asr	w16, w16, #1
	stur	w16, [x10, #-12]
	ldr	w16, [x0, x15]
	ldr	w1, [x0, x17]
	add	w16, w16, w1
	add	w16, w16, #1
	asr	w16, w16, #1
	stur	w16, [x10, #-8]
	ldr	w16, [x0, x15]
	ldr	w1, [x0, x17]
	add	w16, w16, w1
	add	w16, w16, #1
	asr	w16, w16, #1
	stur	w16, [x10, #-4]
	ldr	w16, [x0, x15]
	ldr	w1, [x0, x17]
	add	w16, w16, w1
	add	w16, w16, #1
	asr	w16, w16, #1
	str	w16, [x10]
	ldr	w16, [x0, x15]
	ldr	w1, [x0, x17]
	add	w16, w16, w1
	add	w16, w16, #1
	asr	w16, w16, #1
	str	w16, [x10, #4]
	ldr	w16, [x0, x15]
	ldr	w1, [x0, x17]
	add	w16, w16, w1
	add	w16, w16, #1
	asr	w16, w16, #1
	str	w16, [x10, #8]
	ldr	w15, [x0, x15]
	ldr	w16, [x0, x17]
	add	w15, w15, w16
	add	w15, w15, #1
	asr	w15, w15, #1
	str	w15, [x10, #12]
	sub	w13, w13, #1
	add	x10, x10, x11
	cmn	w13, #1
	b.ne	LBB0_1
; %bb.2:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_area1,4,2                      ; @area1
	.comm	_area2,4,2                      ; @area2
	.no_dead_strip	_spatial_compensation_8
.subsections_via_symbols
