	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_gradient_planar_il
_restore_gradient_planar_il:            ## @restore_gradient_planar_il
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -100(%rbp)                ## 4-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	cmpl	$0, 16(%rbp)
	sete	%bl
	movl	%ecx, %edi
	movl	$32, %esi
	callq	_FFMIN
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_21
## %bb.1:
	movq	%r12, %r9
	xorl	%eax, %eax
	movb	%bl, %al
	addl	%eax, %eax
	orl	$-4, %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	leal	(%r12,%r12), %eax
	movslq	%r9d, %rsi
	negl	%r9d
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movslq	%eax, %rbx
	movl	%ebx, %r11d
	negl	%r11d
	movl	%ebx, %eax
	notl	%eax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	movslq	%r9d, %rdx
	movl	%esi, %eax
	notl	%eax
	subl	%esi, %eax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	addl	%r8d, %eax
	cltq
	movq	%rax, -288(%rbp)                ## 8-byte Spill
	leal	-1(%r8), %eax
	cltq
	movq	%rax, -280(%rbp)                ## 8-byte Spill
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r8d, %r12d
	leaq	-2(%r12), %rax
	decq	%r13
	movq	%rax, %rcx
	leal	(%rax,%rsi), %r15d
                                        ## kill: def $eax killed $eax killed $rax
	subl	%esi, %eax
	movq	%rdx, %rdi
	movq	%rdx, -296(%rbp)                ## 8-byte Spill
	cmpl	%edx, %eax
	setl	%al
	shrq	$32, %rcx
	setne	%cl
	orb	%cl, %al
	cmpl	%esi, %r15d
	setl	%dl
	orb	%cl, %dl
	orb	%al, %dl
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	leaq	1(%rbx), %rax
	movq	%r13, -240(%rbp)                ## 8-byte Spill
	andq	$-2, %r13
	negq	%r13
	movq	%r13, -216(%rbp)                ## 8-byte Spill
	subq	%rsi, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movslq	%r11d, %rax
	movq	%rax, -264(%rbp)                ## 8-byte Spill
	leal	-32(%r8), %eax
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	leaq	(%rsi,%rbx), %rax
	leaq	(,%rbx,4), %r8
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	leaq	4(%rcx,%rbx,4), %rdx
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	leaq	4(%rcx,%rax,4), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	%r12, -272(%rbp)                ## 8-byte Spill
	leaq	-1(%r12), %rax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movl	%esi, %eax
	movq	%rax, -248(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	%r14d, -96(%rbp)                ## 4-byte Spill
	movq	%r9, -128(%rbp)                 ## 8-byte Spill
	movq	%r11, -120(%rbp)                ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-96(%rbp), %r14d                ## 4-byte Reload
	movq	-208(%rbp), %rbx                ## 8-byte Reload
	cmpl	%r14d, %ebx
	je	LBB0_21
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_18 Depth 3
                                        ##       Child Loop BB0_16 Depth 3
	movl	%ebx, %eax
	movl	-100(%rbp), %esi                ## 4-byte Reload
	imull	%esi, %eax
	cltd
	idivl	%r14d
	movl	%eax, %ecx
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	andl	%edi, %ecx
	incl	%ebx
	movq	%rbx, -208(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	imull	%esi, %eax
	cltd
	idivl	%r14d
	andl	%edi, %eax
	movl	%eax, %edx
	subl	%ecx, %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	subl	%ecx, %eax
	je	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-144(%rbp), %r15                ## 8-byte Reload
	imull	%r15d, %ecx
	movslq	%ecx, %rbx
	movl	%eax, %r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,4), %r12
	subl	$-128, (%rax,%rbx,4)
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	movq	-136(%rbp), %r14                ## 8-byte Reload
	callq	*(%r14)
	leaq	(%r12,%r15,4), %rdi
	movq	%rdi, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%eax, %ecx
	callq	*(%r14)
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-120(%rbp), %r11                ## 8-byte Reload
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	cmpl	$4, %r13d
	jl	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	sarl	%r13d
	cmpl	$3, %r13d
	movl	$2, %eax
	cmovll	%eax, %r13d
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	-192(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rbx), %rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movq	-184(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rbx,4), %r13
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rbx,4), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	-200(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rbx,4), %r10
	leaq	(%rcx,%rbx,4), %r15
	addq	$-4, %r15
	movl	$1, %eax
	xorl	%ecx, %ecx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	-112(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	incq	-160(%rbp)                      ## 8-byte Folded Spill
	addq	%r8, %r13
	addq	%r8, -168(%rbp)                 ## 8-byte Folded Spill
	addq	%r8, %r10
	addq	%r8, %r15
	movq	%r14, %r12
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_20
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_18 Depth 3
                                        ##       Child Loop BB0_16 Depth 3
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movq	%r10, -88(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r8), %r14
	movq	-264(%rbp), %rax                ## 8-byte Reload
	movl	(%r14,%rax,4), %eax
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	addl	(%r12,%rdx,4), %eax
	movzbl	%al, %ecx
	movl	%ecx, (%r12,%rdx,4)
	cmpl	$2, -60(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	$1, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	$1, %eax
	movq	-216(%rbp), %r8                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r12,%rax,4), %edx
	leaq	(%r11,%rax), %rsi
	leal	-1(%rsi), %edi
	movslq	%edi, %rdi
	subl	(%r14,%rdi,4), %edx
	addl	%ecx, %edx
	addl	-4(%r13,%rax,4), %edx
	movzbl	%dl, %ecx
	movl	%ecx, -4(%r13,%rax,4)
	movl	4(%r12,%rax,4), %ecx
	movslq	%esi, %rsi
	subl	(%r14,%rsi,4), %ecx
	addl	%edx, %ecx
	addl	(%r13,%rax,4), %ecx
	movzbl	%cl, %ecx
	movl	%ecx, (%r13,%rax,4)
	leaq	(%r8,%rax), %rdx
	addq	$2, %rdx
	addq	$2, %rax
	cmpq	$1, %rdx
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	testb	$1, -240(%rbp)                  ## 1-byte Folded Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r12,%rax,4), %edx
	movq	-224(%rbp), %rsi                ## 8-byte Reload
	addl	%eax, %esi
	movslq	%esi, %rsi
	subl	(%r14,%rsi,4), %edx
	addl	%ecx, %edx
	addl	(%r14,%rax,4), %edx
	movzbl	%dl, %ecx
	movl	%ecx, (%r14,%rax,4)
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$33, -56(%rbp)                  ## 4-byte Folded Reload
	jl	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	leaq	128(%r14), %rdi
	movl	-108(%rbp), %esi                ## 4-byte Reload
	movl	-104(%rbp), %edx                ## 4-byte Reload
	movq	-136(%rbp), %rax                ## 8-byte Reload
	callq	*8(%rax)
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-120(%rbp), %r11                ## 8-byte Reload
	movq	-128(%rbp), %r9                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-296(%rbp), %rax                ## 8-byte Reload
	movl	(%r14,%rax,4), %eax
	movq	-288(%rbp), %rcx                ## 8-byte Reload
	subl	(%r14,%rcx,4), %eax
	movq	-280(%rbp), %rcx                ## 8-byte Reload
	addl	(%r14,%rcx,4), %eax
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	addl	(%r14,%rcx,4), %eax
	movzbl	%al, %eax
	movl	%eax, (%r14,%rcx,4)
	cmpl	$2, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-272(%rbp), %rdi                ## 8-byte Reload
	movq	-256(%rbp), %r12                ## 8-byte Reload
	movq	-248(%rbp), %rbx                ## 8-byte Reload
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	jl	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	$1, %eax
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-4(%r10,%rax,4), %ecx
	leal	(%r9,%rax), %edx
	decl	%edx
	movslq	%edx, %rdx
	leal	(%rbx,%rax), %esi
	decl	%esi
	movslq	%esi, %rsi
	subl	(%r14,%rdx,4), %ecx
	addl	(%r14,%rsi,4), %ecx
	addl	(%r15,%rax,4), %ecx
	movzbl	%cl, %ecx
	movl	%ecx, (%r15,%rax,4)
	incq	%rax
	cmpq	%rax, %rdi
	jne	LBB0_16
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-160(%rbp), %rax                ## 8-byte Reload
	imulq	-152(%rbp), %rax                ## 8-byte Folded Reload
	addq	-232(%rbp), %rax                ## 8-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ecx
	xorl	%eax, %eax
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r10,%rax,4), %edx
	leal	(%r9,%rax), %esi
	movslq	%esi, %rsi
	subl	(%r14,%rsi,4), %edx
	addl	%ecx, %edx
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	addl	(%rsi,%rax,4), %edx
	movzbl	%dl, %ecx
	movl	%ecx, (%rsi,%rax,4)
	incq	%rax
	cmpq	%rax, %r12
	jne	LBB0_18
	jmp	LBB0_19
LBB0_21:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_restore_gradient_planar_il
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restore_gradient_planar_il
_restore_gradient_planar_il:            ; @restore_gradient_planar_il
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x3
	mov	x27, x2
	str	x1, [sp, #72]                   ; 8-byte Folded Spill
	str	x0, [sp, #136]                  ; 8-byte Folded Spill
	mov	w8, #-4
	mov	w9, #-2
	cmp	w6, #0
	csel	w8, w9, w8, eq
	stp	w8, w4, [sp, #36]               ; 8-byte Folded Spill
	mov	x0, x3
	mov	w1, #32
	bl	_FFMIN
	stur	w0, [x29, #-100]                ; 4-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x15, x20
	mov	w13, #0
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	mov	w28, w8
	mov	w8, w20
	lsl	w12, w27, #1
	neg	w16, w27
	sxtw	x14, w27
	sxtw	x17, w12
	neg	w9, w12
	sxtw	x9, w9
	stur	x9, [x29, #-112]                ; 8-byte Folded Spill
	sub	w9, w20, #32
	str	w9, [sp, #92]                   ; 4-byte Folded Spill
	mov	x9, x16
	sxtw	x10, w9
	mvn	w9, w27
	sub	w9, w9, w27
	add	w9, w9, w20
	sxtw	x9, w9
	stp	x9, x10, [x29, #-128]           ; 16-byte Folded Spill
	sub	w9, w20, #1
	sxtw	x9, w9
	stur	x9, [x29, #-136]                ; 8-byte Folded Spill
	sub	x9, x8, #2
	add	x0, x14, x17
	sub	w10, w9, w27
	cmp	w10, w16
	cset	w10, lt
	tst	x9, #0xffffffff00000000
	cset	w11, ne
	orr	w10, w10, w11
	add	w9, w9, w27
	cmp	w9, w27
	cset	w9, lt
	orr	w9, w9, w11
	orr	w9, w10, w9
	str	w9, [sp, #88]                   ; 4-byte Folded Spill
	str	x12, [sp, #96]                  ; 8-byte Folded Spill
	sbfiz	x1, x12, #2, #32
	sbfiz	x9, x27, #2, #32
	add	x2, x1, #4
	add	x10, x9, x1
	add	x10, x10, #4
	str	x10, [sp, #56]                  ; 8-byte Folded Spill
	ldr	x12, [sp, #72]                  ; 8-byte Folded Reload
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	add	x10, x12, x0, lsl #2
	stur	x14, [x29, #-96]                ; 8-byte Folded Spill
	sub	x11, x17, x14
	add	x11, x12, x11, lsl #2
	str	x2, [sp, #80]                   ; 8-byte Folded Spill
	sub	x9, x2, x9
	str	x9, [sp, #48]                   ; 8-byte Folded Spill
	sub	x23, x8, #1
	add	x9, x10, #4
	add	x8, x11, #4
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	neg	w20, w27, lsl #1
	mov	w24, w27
	str	w19, [sp, #32]                  ; 4-byte Folded Spill
	stur	w15, [x29, #-140]               ; 4-byte Folded Spill
	stp	x17, x16, [sp, #120]            ; 16-byte Folded Spill
	str	x1, [sp, #112]                  ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w19, [sp, #32]                  ; 4-byte Folded Reload
	ldr	w13, [sp, #44]                  ; 4-byte Folded Reload
	cmp	w13, w19
	b.eq	LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
	ldp	w10, w9, [sp, #36]              ; 8-byte Folded Reload
	mul	w8, w13, w9
	sdiv	w8, w8, w19
	and	w8, w8, w10
	add	w13, w13, #1
	str	w13, [sp, #44]                  ; 4-byte Folded Spill
	mul	w9, w13, w9
	sdiv	w9, w9, w19
	and	w9, w9, w10
	subs	w21, w9, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w8
	ldur	x25, [x29, #-96]                ; 8-byte Folded Reload
	mul	x22, x8, x25
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x27, x8, x22, lsl #2
	ldr	w8, [x27]
	add	w8, w8, #128
	str	w8, [x27]
	ldr	x19, [sp, #136]                 ; 8-byte Folded Reload
	ldr	x8, [x19]
	mov	x0, x27
	mov	x1, x27
	ldur	w2, [x29, #-140]                ; 4-byte Folded Reload
	mov	w3, #0
	blr	x8
	mov	x3, x0
	ldr	x8, [x19]
	add	x0, x27, x25, lsl #2
	mov	x1, x0
	ldur	w2, [x29, #-140]                ; 4-byte Folded Reload
	blr	x8
	ldp	x1, x17, [sp, #112]             ; 16-byte Folded Reload
	ldr	x16, [sp, #128]                 ; 8-byte Folded Reload
	ldur	w15, [x29, #-140]               ; 4-byte Folded Reload
	cmp	w21, #4
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, #0
	asr	w8, w21, #1
	cmp	w8, #2
	mov	w9, #2
	csel	w0, w8, w9, gt
	ldp	x9, x8, [sp, #16]               ; 16-byte Folded Reload
	add	x8, x8, x22
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	lsl	x8, x22, #2
	add	x26, x9, x8
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x21, x9, x8
	mov	w25, #1
	str	w0, [sp, #108]                  ; 4-byte Folded Spill
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w25, w25, #1
	add	x2, x2, #1
	add	x26, x26, x1
	add	x21, x21, x1
	mov	x27, x22
	cmp	w25, w0
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
	add	x22, x27, x1
	lsl	x9, x17, #2
	ldr	w8, [x27, x9]
	ldur	x10, [x29, #-112]               ; 8-byte Folded Reload
	ldr	w10, [x22, x10, lsl #2]
	add	w8, w10, w8
	and	w8, w8, #0xff
	str	w8, [x27, x9]
	ldur	w9, [x29, #-100]                ; 4-byte Folded Reload
	cmp	w9, #2
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	mov	w10, #1
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w11, [x27, x10, lsl #2]
	add	w12, w20, w10
	sub	w12, w12, #1
	ldr	w12, [x22, w12, sxtw #2]
	sub	w11, w11, w12
	add	w8, w11, w8
	ldr	w11, [x27, x9]
	add	w8, w8, w11
	and	w8, w8, #0xff
	str	w8, [x27, x9]
	add	x10, x10, #1
	add	x9, x9, #4
	cmp	x28, x10
	b.ne	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w15, #33
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #136]                  ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x0, x22, #128
	ldr	x1, [sp, #96]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x19, x23
	mov	x23, x24
	mov	x24, x2
	ldr	w2, [sp, #92]                   ; 4-byte Folded Reload
	blr	x8
	mov	x2, x24
	mov	x24, x23
	mov	x23, x19
	ldr	w0, [sp, #108]                  ; 4-byte Folded Reload
	ldp	x1, x17, [sp, #112]             ; 16-byte Folded Reload
	ldr	x16, [sp, #128]                 ; 8-byte Folded Reload
	ldur	w15, [x29, #-140]               ; 4-byte Folded Reload
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	ldp	x9, x8, [x29, #-128]            ; 16-byte Folded Reload
	ldr	w8, [x22, x8, lsl #2]
	ldr	w9, [x22, x9, lsl #2]
	ldur	x10, [x29, #-136]               ; 8-byte Folded Reload
	ldr	w10, [x22, x10, lsl #2]
	ldur	x11, [x29, #-96]                ; 8-byte Folded Reload
	lsl	x11, x11, #2
	ldr	w12, [x22, x11]
	sub	w8, w8, w9
	add	w8, w8, w10
	add	w8, w8, w12
	and	w8, w8, #0xff
	str	w8, [x22, x11]
	cmp	w15, #2
	b.lt	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x8, #0
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	x9, x8, #2
	ldr	w10, [x21, x9]
	add	w11, w16, w8
	ldr	w11, [x22, w11, sxtw #2]
	add	w12, w24, w8
	ldr	w12, [x22, w12, sxtw #2]
	sub	w10, w10, w11
	add	w10, w10, w12
	ldr	w11, [x26, x9]
	add	w10, w10, w11
	and	w10, w10, #0xff
	str	w10, [x26, x9]
	add	x8, x8, #1
	cmp	x23, x8
	b.ne	LBB0_15
	b	LBB0_6
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=2
	ldp	x8, x9, [sp, #64]               ; 16-byte Folded Reload
	madd	x8, x2, x17, x8
	ldr	w10, [x9, x8, lsl #2]
	mov	x8, x23
	ldp	x9, x11, [sp, #48]              ; 16-byte Folded Reload
	mov	x12, x16
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w13, [x27, x9]
	ldr	w14, [x22, w12, sxtw #2]
	sub	w13, w13, w14
	add	w10, w13, w10
	ldr	w13, [x27, x11]
	add	w10, w10, w13
	and	w10, w10, #0xff
	str	w10, [x27, x11]
	add	w12, w12, #1
	add	x11, x11, #4
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_17
	b	LBB0_6
LBB0_18:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_restore_gradient_planar_il
.subsections_via_symbols
