	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spatial_compensation_5
_spatial_compensation_5:                ## @spatial_compensation_5
	.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, %r9
	shlq	$2, %r9
	xorl	%eax, %eax
	movq	_area4@GOTPCREL(%rip), %r10
	movq	_area2@GOTPCREL(%rip), %r8
	xorl	%edx, %edx
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rdx), %ecx
	shrl	%ecx
	subq	$1, %r11
	jae	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r10), %eax
	subl	%ecx, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, (%rsi)
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r8), %ebx
	addl	%eax, %ebx
	addl	$9, %ebx
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	movl	%ebx, (%rsi)
	cmpq	$2, %rdx
	jbe	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r8), %ebx
	addl	%eax, %ebx
	addl	$11, %ebx
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	movl	%ebx, 4(%rsi)
	cmpq	$4, %rdx
	jbe	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r8), %ebx
	addl	%eax, %ebx
	addl	$13, %ebx
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	movl	%ebx, 8(%rsi)
	cmpq	$6, %rdx
	jbe	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r8), %ebx
	addl	%ebx, %eax
	addl	$15, %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r10), %eax
	movl	%ecx, %ebx
	negl	%ebx
	addl	%ebx, %eax
	incl	%eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, 4(%rsi)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r10), %eax
	movl	%ecx, %ebx
	negl	%ebx
	addl	%ebx, %eax
	addl	$2, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, 8(%rsi)
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r10), %eax
	subl	%ecx, %eax
	addl	$3, %eax
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, 12(%rsi)
	movl	(%r10), %eax
	subl	%ecx, %eax
	addl	$4, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, 16(%rsi)
	movl	(%r10), %eax
	subl	%ecx, %eax
	addl	$5, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, 20(%rsi)
	movl	(%r10), %eax
	subl	%ecx, %eax
	addl	$6, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, 24(%rsi)
	movl	(%r10), %eax
	subl	%ecx, %eax
	addl	$7, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	movl	%eax, 28(%rsi)
	addq	%r9, %rsi
	incq	%rdx
	movq	%r11, %rax
	cmpq	$-8, %r11
	jne	LBB0_1
## %bb.11:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_area2,4,2                      ## @area2
	.comm	_area4,4,2                      ## @area4
	.no_dead_strip	_spatial_compensation_5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spatial_compensation_5
_spatial_compensation_5:                ; @spatial_compensation_5
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, _area4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _area4@GOTPAGEOFF]
	ldrsw	x9, [x8]
	ldr	w9, [x0, x9, lsl #2]
	str	w9, [x1]
	ldr	w9, [x8]
	add	w10, w9, #1
	ldr	w10, [x0, w10, sxtw #2]
	str	w10, [x1, #4]
	add	w10, w9, #2
	ldr	w10, [x0, w10, sxtw #2]
	str	w10, [x1, #8]
	add	w10, w9, #3
	ldr	w10, [x0, w10, sxtw #2]
	str	w10, [x1, #12]
	add	w10, w9, #4
	ldr	w10, [x0, w10, sxtw #2]
	str	w10, [x1, #16]
	add	w10, w9, #5
	ldr	w10, [x0, w10, sxtw #2]
	str	w10, [x1, #20]
	add	w10, w9, #6
	ldr	w10, [x0, w10, sxtw #2]
	str	w10, [x1, #24]
	add	w9, w9, #7
	ldr	w9, [x0, w9, sxtw #2]
	str	w9, [x1, #28]
	sbfiz	x9, x2, #2, #32
	add	x10, x9, x1
	add	x10, x10, #16
	mov	w11, #14
	mov	w15, #1
Lloh2:
	adrp	x12, _area2@GOTPAGE
Lloh3:
	ldr	x12, [x12, _area2@GOTPAGEOFF]
	b	LBB0_5
LBB0_1:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w15, [x8]
	sub	w15, w15, w14
	add	w15, w15, #1
	ldr	w15, [x0, w15, sxtw #2]
	stur	w15, [x10, #-12]
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w15, [x8]
	sub	w15, w15, w14
	add	w15, w15, #2
	ldr	w15, [x0, w15, sxtw #2]
	stur	w15, [x10, #-8]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w15, [x8]
	sub	w15, w15, w14
	add	w15, w15, #3
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w15, [x0, w15, sxtw #2]
	stur	w15, [x10, #-4]
	ldr	w15, [x8]
	sub	w15, w15, w14
	add	w15, w15, #4
	ldr	w15, [x0, w15, sxtw #2]
	str	w15, [x10]
	ldr	w15, [x8]
	sub	w15, w15, w14
	add	w15, w15, #5
	ldr	w15, [x0, w15, sxtw #2]
	str	w15, [x10, #4]
	ldr	w15, [x8]
	sub	w15, w15, w14
	add	w15, w15, #6
	ldr	w15, [x0, w15, sxtw #2]
	str	w15, [x10, #8]
	ldr	w15, [x8]
	sub	w14, w15, w14
	add	w14, w14, #7
	ldr	w14, [x0, w14, sxtw #2]
	str	w14, [x10, #12]
	sub	w11, w11, #1
	add	x10, x10, x9
	mov	x15, x13
	cmp	x13, #8
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x13, x15, #1
	ubfx	x14, x13, #1, #31
	ldr	w16, [x12]
	add	w16, w11, w16
	sub	w16, w16, #6
	ldr	w16, [x0, w16, sxtw #2]
	stur	w16, [x10, #-16]
	cmp	x15, #2
	b.ls	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w16, [x12]
	add	w16, w11, w16
	sub	w16, w16, #4
	ldr	w16, [x0, w16, sxtw #2]
	stur	w16, [x10, #-12]
	cmp	x15, #4
	b.ls	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w16, [x12]
	add	w16, w11, w16
	sub	w16, w16, #2
	ldr	w16, [x0, w16, sxtw #2]
	stur	w16, [x10, #-8]
	cmp	x15, #6
	b.ls	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w15, [x12]
	add	w15, w11, w15
	b	LBB0_4
LBB0_9:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_area2,4,2                      ; @area2
	.comm	_area4,4,2                      ; @area4
	.no_dead_strip	_spatial_compensation_5
.subsections_via_symbols
