	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spatial_compensation_7
_spatial_compensation_7:                ## @spatial_compensation_7
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movslq	%edx, %r8
	addq	$28, %rsi
	shlq	$2, %r8
	movl	$8, %ecx
	xorl	%edx, %edx
	movq	_area2@GOTPCREL(%rip), %r9
	movq	_area3@GOTPCREL(%rip), %r10
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9), %eax
	addl	%ecx, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, -28(%rsi)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r9), %eax
	addl	%ecx, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, -24(%rsi)
	movl	(%r9), %eax
	leal	1(%rcx,%rax), %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, -20(%rsi)
	cmpq	$-2, %rdx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r9), %eax
	addl	%ecx, %eax
	incl	%eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, -16(%rsi)
	movl	(%r9), %eax
	leal	2(%rcx,%rax), %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, -12(%rsi)
	cmpq	$2, %r11
	jbe	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r9), %eax
	addl	%ecx, %eax
	addl	$2, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, -8(%rsi)
	movl	(%r9), %eax
	leal	3(%rcx,%rax), %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, -4(%rsi)
	cmpq	$-6, %rdx
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r9), %eax
	addl	%ecx, %eax
	addl	$3, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r10), %rax
	leal	1(%rax), %ebx
	addq	%rdx, %rax
	movl	(%rdi,%rax,4), %eax
	movslq	%ebx, %rbx
	addq	%rdx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	addl	%ebx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, -24(%rsi)
	movl	(%r10), %eax
	leal	(%rdx,%rax), %ebx
	incl	%ebx
                                        ## kill: def $eax killed $eax killed $rax
	addl	$2, %eax
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	cltq
	addq	%rdx, %rax
	movl	(%rdi,%rax,4), %eax
	addl	%ebx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, -20(%rsi)
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r10), %eax
	leal	(%rdx,%rax), %ebx
	addl	$2, %ebx
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	leal	3(%rdx,%rax), %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	addl	%ebx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, -16(%rsi)
	movl	(%r10), %eax
	leal	(%rdx,%rax), %ebx
	addl	$3, %ebx
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	leal	4(%rdx,%rax), %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	addl	%ebx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, -12(%rsi)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r10), %eax
	leal	(%rdx,%rax), %ebx
	addl	$4, %ebx
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	leal	5(%rdx,%rax), %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	addl	%ebx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, -8(%rsi)
	movl	(%r10), %eax
	leal	(%rdx,%rax), %ebx
	addl	$5, %ebx
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	leal	6(%rdx,%rax), %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	addl	%ebx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, -4(%rsi)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r10), %eax
	leal	(%rdx,%rax), %ebx
	addl	$6, %ebx
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	leal	7(%rdx,%rax), %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	addl	%ebx, %eax
	incl	%eax
	sarl	%eax
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, (%rsi)
	incq	%r11
	decl	%ecx
	addq	$-2, %rdx
	addq	%r8, %rsi
	cmpq	$-16, %rdx
	jne	LBB0_1
## %bb.11:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_area3,4,2                      ## @area3
	.comm	_area2,4,2                      ## @area2
	.no_dead_strip	_spatial_compensation_7
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spatial_compensation_7
_spatial_compensation_7:                ; @spatial_compensation_7
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x8, #0
	mov	x9, #0
	add	x10, x1, #16
	sbfiz	x11, x2, #2, #32
	mov	w12, #8
Lloh0:
	adrp	x13, _area2@GOTPAGE
Lloh1:
	ldr	x13, [x13, _area2@GOTPAGEOFF]
Lloh2:
	adrp	x14, _area3@GOTPAGE
Lloh3:
	ldr	x14, [x14, _area3@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13]
	add	w15, w12, w15
	ldr	w15, [x0, w15, sxtw #2]
	stur	w15, [x10, #-16]
	cbz	x8, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w15, [x13]
	add	w15, w12, w15
	ldr	w15, [x0, w15, sxtw #2]
	stur	w15, [x10, #-12]
	ldr	w15, [x13]
	add	w15, w12, w15
	add	w15, w15, #1
	ldr	w15, [x0, w15, sxtw #2]
	stur	w15, [x10, #-8]
	cmn	x8, #2
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w15, [x13]
	add	w15, w12, w15
	add	w15, w15, #1
	ldr	w15, [x0, w15, sxtw #2]
	stur	w15, [x10, #-4]
	ldr	w15, [x13]
	add	w15, w12, w15
	add	w15, w15, #2
	ldr	w15, [x0, w15, sxtw #2]
	str	w15, [x10]
	cmp	x9, #2
	b.ls	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w15, [x13]
	add	w15, w12, w15
	add	w15, w15, #2
	ldr	w15, [x0, w15, sxtw #2]
	str	w15, [x10, #4]
	ldr	w15, [x13]
	add	w15, w12, w15
	add	w15, w15, #3
	ldr	w15, [x0, w15, sxtw #2]
	str	w15, [x10, #8]
	cmn	x8, #6
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w15, [x13]
	add	w15, w12, w15
	add	w15, w15, #3
	ldr	w15, [x0, w15, sxtw #2]
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldrsw	x15, [x14]
	add	w16, w15, #1
	add	x15, x8, x15
	ldr	w15, [x0, x15, lsl #2]
	add	x16, x8, w16, sxtw
	ldr	w16, [x0, x16, lsl #2]
	add	w15, w15, w16
	add	w15, w15, #1
	asr	w15, w15, #1
	stur	w15, [x10, #-12]
	ldr	w15, [x14]
	add	w16, w15, #2
	add	w15, w8, w15
	add	w15, w15, #1
	ldr	w15, [x0, w15, sxtw #2]
	add	x16, x8, w16, sxtw
	ldr	w16, [x0, x16, lsl #2]
	add	w15, w15, w16
	add	w15, w15, #1
	asr	w15, w15, #1
	stur	w15, [x10, #-8]
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w15, [x14]
	add	w15, w8, w15
	add	w16, w15, #2
	ldr	w16, [x0, w16, sxtw #2]
	add	w15, w15, #3
	ldr	w15, [x0, w15, sxtw #2]
	add	w15, w16, w15
	add	w15, w15, #1
	asr	w15, w15, #1
	stur	w15, [x10, #-4]
	ldr	w15, [x14]
	add	w15, w8, w15
	add	w16, w15, #3
	ldr	w16, [x0, w16, sxtw #2]
	add	w15, w15, #4
	ldr	w15, [x0, w15, sxtw #2]
	add	w15, w16, w15
	add	w15, w15, #1
	asr	w15, w15, #1
	str	w15, [x10]
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w15, [x14]
	add	w15, w8, w15
	add	w16, w15, #4
	ldr	w16, [x0, w16, sxtw #2]
	add	w15, w15, #5
	ldr	w15, [x0, w15, sxtw #2]
	add	w15, w16, w15
	add	w15, w15, #1
	asr	w15, w15, #1
	str	w15, [x10, #4]
	ldr	w15, [x14]
	add	w15, w8, w15
	add	w16, w15, #5
	ldr	w16, [x0, w16, sxtw #2]
	add	w15, w15, #6
	ldr	w15, [x0, w15, sxtw #2]
	add	w15, w16, w15
	add	w15, w15, #1
	asr	w15, w15, #1
	str	w15, [x10, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w15, [x14]
	add	w15, w8, w15
	add	w16, w15, #6
	ldr	w16, [x0, w16, sxtw #2]
	add	w15, w15, #7
	ldr	w15, [x0, w15, sxtw #2]
	add	w15, w16, w15
	add	w15, w15, #1
	asr	w15, w15, #1
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w15, [x10, #12]
	add	x9, x9, #1
	sub	w12, w12, #1
	sub	x8, x8, #2
	add	x10, x10, x11
	cmn	x8, #16
	b.ne	LBB0_1
; %bb.11:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_area3,4,2                      ; @area3
	.comm	_area2,4,2                      ; @area2
	.no_dead_strip	_spatial_compensation_7
.subsections_via_symbols
