	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function find_inliers
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_find_inliers:                          ## @find_inliers
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movq	%rcx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_compute_error
	testl	%r15d, %r15d
	jle	LBB0_1
## %bb.2:
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movl	%r15d, %ecx
	xorl	%edx, %edx
	cmpl	$8, %r15d
	jb	LBB0_3
## %bb.4:
	movq	%rbx, %rsi
	subq	%r14, %rsi
	movl	$0, %eax
	cmpq	$32, %rsi
	jb	LBB0_12
## %bb.5:
	movl	%ecx, %edx
	andl	$-8, %edx
	movaps	%xmm0, %xmm2
	shufps	$0, %xmm0, %xmm2                ## xmm2 = xmm2[0,0],xmm0[0,0]
	leaq	-8(%rdx), %rax
	movq	%rax, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	movaps	LCPI0_0(%rip), %xmm4            ## xmm4 = [1,1,1,1]
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%r14,%rax,4), %xmm5
	movups	16(%r14,%rax,4), %xmm6
	cmpleps	%xmm2, %xmm5
	cmpleps	%xmm2, %xmm6
	psubd	%xmm5, %xmm1
	andps	%xmm4, %xmm5
	psubd	%xmm6, %xmm3
	andps	%xmm4, %xmm6
	movups	%xmm5, (%rbx,%rax,4)
	movups	%xmm6, 16(%rbx,%rax,4)
	movups	32(%r14,%rax,4), %xmm5
	movups	48(%r14,%rax,4), %xmm6
	cmpleps	%xmm2, %xmm5
	cmpleps	%xmm2, %xmm6
	psubd	%xmm5, %xmm1
	andps	%xmm4, %xmm5
	psubd	%xmm6, %xmm3
	andps	%xmm4, %xmm6
	movups	%xmm5, 32(%rbx,%rax,4)
	movups	%xmm6, 48(%rbx,%rax,4)
	addq	$16, %rax
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %sil
	je	LBB0_11
LBB0_10:
	movups	(%r14,%rax,4), %xmm4
	movups	16(%r14,%rax,4), %xmm5
	cmpleps	%xmm2, %xmm4
	movaps	LCPI0_0(%rip), %xmm6            ## xmm6 = [1,1,1,1]
	psubd	%xmm4, %xmm1
	andps	%xmm6, %xmm4
	cmpleps	%xmm2, %xmm5
	andps	%xmm5, %xmm6
	psubd	%xmm5, %xmm3
	movups	%xmm4, (%rbx,%rax,4)
	movups	%xmm6, 16(%rbx,%rax,4)
LBB0_11:
	paddd	%xmm3, %xmm1
	pshufd	$238, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm2
	pshufd	$85, %xmm2, %xmm1               ## xmm1 = xmm2[1,1,1,1]
	paddd	%xmm2, %xmm1
	movd	%xmm1, %eax
	cmpq	%rcx, %rdx
	jne	LBB0_12
	jmp	LBB0_16
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_3:
	xorl	%eax, %eax
LBB0_12:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %cl
	je	LBB0_14
## %bb.13:
	xorl	%edi, %edi
	ucomiss	(%r14,%rdx,4), %xmm0
	setae	%dil
	addl	%edi, %eax
	movl	%edi, (%rbx,%rdx,4)
	orq	$1, %rdx
LBB0_14:
	addq	%rcx, %rsi
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	ucomiss	(%r14,%rdx,4), %xmm0
	setae	%sil
	addl	%esi, %eax
	movl	%esi, (%rbx,%rdx,4)
	xorl	%esi, %esi
	ucomiss	4(%r14,%rdx,4), %xmm0
	setae	%sil
	addl	%esi, %eax
	movl	%esi, 4(%rbx,%rdx,4)
	addq	$2, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_15
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	pxor	%xmm3, %xmm3
	testb	$1, %sil
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_inliers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_inliers
_find_inliers:                          ; @find_inliers
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	fmov	d8, d0
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	bl	_compute_error
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w0, #0
	mov	x8, #0
	fmul	d0, d8, d8
	fcvt	s0, d0
	mov	w9, w21
	cmp	w21, #16
	b.lo	LBB0_6
; %bb.2:
	sub	x10, x20, x19
	cmp	x10, #64
	b.lo	LBB0_6
; %bb.3:
	and	x8, x9, #0xfffffff0
	dup.4s	v1, v0[0]
	add	x10, x20, #32
	add	x11, x19, #32
	movi.2d	v2, #0000000000000000
	movi.4s	v3, #1
	mov	x12, x8
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q7, q16, [x11, #-32]
	ldp	q17, q18, [x11], #64
	fcmge.4s	v7, v1, v7
	and.16b	v19, v7, v3
	fcmge.4s	v16, v1, v16
	and.16b	v20, v16, v3
	fcmge.4s	v17, v1, v17
	and.16b	v21, v17, v3
	fcmge.4s	v18, v1, v18
	and.16b	v22, v18, v3
	sub.4s	v2, v2, v7
	sub.4s	v4, v4, v16
	sub.4s	v5, v5, v17
	stp	q19, q20, [x10, #-32]
	sub.4s	v6, v6, v18
	stp	q21, q22, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	add.4s	v1, v4, v2
	add.4s	v1, v5, v1
	add.4s	v1, v6, v1
	addv.4s	s1, v1
	fmov	w0, s1
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_6:
	lsl	x11, x8, #2
	add	x10, x20, x11
	add	x11, x19, x11
	sub	x8, x9, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x11], #4
	fcmp	s1, s0
	cset	w9, ls
	cinc	w0, w0, ls
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_inliers
.subsections_via_symbols
