	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function filter_plane2d
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x26901d7d                      ## float 1.0E-15
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_filter_plane2d:                        ## @filter_plane2d
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,8), %edx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_11
## %bb.1:
	movl	(%rax,%rcx,8), %ebx
	movl	(%rdi), %edx
	imull	%ebx, %edx
	imull	%edx, %edx
	cvtsi2ss	%edx, %xmm2
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	subss	4(%rdi), %xmm3
	movq	16(%rax,%rcx,8), %rdx
	movq	_CURRENT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rdx,%rsi,8), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	4(%rax,%rcx,8), %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	12(%rax,%rcx,8), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	leal	(%rbx,%rbx), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %r15
	movl	%r15d, %eax
	imull	%ebx, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	shlq	$2, %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movss	LCPI0_1(%rip), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	xorl	%ecx, %ecx
	movss	%xmm2, -72(%rbp)                ## 4-byte Spill
	movss	%xmm3, -68(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##         Child Loop BB0_7 Depth 4
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##         Child Loop BB0_7 Depth 4
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_7 Depth 4
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_6 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movss	(%r13,%r12,8), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	4(%r13,%r12,8), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	mulss	%xmm0, %xmm0
	addss	%xmm1, %xmm0
	addss	%xmm4, %xmm0
	movaps	%xmm0, %xmm1
	subss	%xmm2, %xmm1
	divss	%xmm0, %xmm1
	movaps	%xmm3, %xmm0
	callq	_FFMAX
	movss	LCPI0_1(%rip), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	movss	-68(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-72(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	(%r13,%r12,8), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	%xmm1, (%r13,%r12,8)
	mulss	4(%r13,%r12,8), %xmm0
	movss	%xmm0, 4(%r13,%r12,8)
	incq	%r12
	cmpq	%r12, %rbx
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=3
	incl	%r14d
	addq	%r15, %r13
	cmpl	%ebx, %r14d
	jne	LBB0_6
	jmp	LBB0_9
LBB0_11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURRENT,8,3                    ## @CURRENT
	.no_dead_strip	_filter_plane2d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_plane2d
_filter_plane2d:                        ; @filter_plane2d
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x9, [x0, #8]
	mov	w8, #24
	smaddl	x10, w1, w8, x9
	ldr	w8, [x10, #8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w8, #0
	mov	x13, #0
	sxtw	x11, w1
	ldr	w21, [x10]
	ldr	w12, [x0]
	mul	w12, w12, w21
	mul	w12, w12, w12
	scvtf	s9, w12
	ldr	s0, [x0, #4]
	fmov	s1, #1.00000000
	fsub	s8, s1, s0
	ldr	x10, [x10, #16]
Lloh0:
	adrp	x12, _CURRENT@GOTPAGE
Lloh1:
	ldr	x12, [x12, _CURRENT@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	ldr	x10, [x10, x12, lsl #3]
	str	x10, [sp]                       ; 8-byte Folded Spill
	mov	w10, #24
	madd	x9, x11, x10, x9
	ldr	w10, [x9, #4]
	str	x10, [sp, #56]                  ; 8-byte Folded Spill
	ldr	w9, [x9, #12]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	lsl	w10, w21, #1
	str	w10, [sp, #52]                  ; 4-byte Folded Spill
	mul	w10, w21, w9
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	sbfiz	x26, x9, #2, #32
	lsl	x27, x21, #3
	mov	w28, #7549
	movk	w28, #9872, lsl #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	x13, x9, [sp, #24]              ; 16-byte Folded Reload
	add	x13, x13, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w8, w9, w8
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x13, x9
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;         Child Loop BB0_9 Depth 4
	sxtw	x8, w8
	stp	x13, x8, [sp, #24]              ; 16-byte Folded Spill
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #0
	mov	x25, #0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #2
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x25, x25, #1
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	add	w19, w19, w8
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cmp	x25, x8
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;         Child Loop BB0_9 Depth 4
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w20, #0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x22, x8, w19, sxtw #2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_9 Depth 4
	mov	x23, #0
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	add	x24, x22, x23
	ldp	s0, s1, [x24]
	fmul	s1, s1, s1
	fmadd	s0, s0, s0, s1
	fmov	s1, w28
	fadd	s0, s0, s1
	fsub	s1, s0, s9
	fdiv	s1, s1, s0
	fmov	s0, s8
	bl	_FFMAX
                                        ; kill: def $s0 killed $s0 def $q0
	ldr	d1, [x24]
	fmul.2s	v0, v1, v0[0]
	str	d0, [x24]
	add	x23, x23, #8
	cmp	x27, x23
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=3
	add	w20, w20, #1
	add	x22, x22, x26
	cmp	w20, w21
	b.ne	LBB0_8
	b	LBB0_5
LBB0_11:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CURRENT,8,3                    ; @CURRENT
	.no_dead_strip	_filter_plane2d
.subsections_via_symbols
