	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function isDone
LCPI0_0:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3f1a36e2eb1c432d              ## double 1.0E-4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_isDone:                                ## @isDone
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rsi), %rax
	movsd	(%rdx,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	andpd	LCPI0_0(%rip), %xmm0
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	movl	%edi, %r8d
	cmpl	$1, %edi
	jne	LBB0_4
## %bb.3:
	movl	$1, %ecx
	movapd	%xmm0, %xmm1
	jmp	LBB0_6
LBB0_1:
	movapd	%xmm0, %xmm1
	jmp	LBB0_8
LBB0_4:
	movl	%r8d, %edi
	andl	$-2, %edi
	negq	%rdi
	movl	$1, %ecx
	movapd	LCPI0_0(%rip), %xmm2            ## xmm2 = [NaN,NaN]
	movapd	%xmm0, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rsi,%rcx,4), %rax
	movsd	(%rdx,%rax,8), %xmm3            ## xmm3 = mem[0],zero
	andpd	%xmm2, %xmm3
	movapd	%xmm3, %xmm4
	minsd	%xmm1, %xmm4
	maxsd	%xmm0, %xmm3
	movslq	4(%rsi,%rcx,4), %rax
	movsd	(%rdx,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	andpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm1
	minsd	%xmm4, %xmm1
	maxsd	%xmm3, %xmm0
	leaq	(%rdi,%rcx), %rax
	addq	$2, %rax
	addq	$2, %rcx
	cmpq	$1, %rax
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	movslq	(%rsi,%rcx,4), %rax
	movsd	(%rdx,%rax,8), %xmm2            ## xmm2 = mem[0],zero
	andpd	LCPI0_0(%rip), %xmm2
	movapd	%xmm2, %xmm3
	minsd	%xmm1, %xmm3
	maxsd	%xmm0, %xmm2
	movapd	%xmm3, %xmm1
	movapd	%xmm2, %xmm0
LBB0_8:
	movapd	%xmm0, %xmm2
	subsd	%xmm1, %xmm2
	divsd	%xmm0, %xmm2
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	xorl	%eax, %eax
	ucomisd	%xmm2, %xmm0
	seta	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_isDone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isDone
_isDone:                                ; @isDone
	.cfi_startproc
; %bb.0:
	ldrsw	x8, [x1]
	ldr	d0, [x2, x8, lsl #3]
	fabs	d0, d0
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	add	w9, w0, #1
	add	x8, x1, #4
	sub	x9, x9, #1
	fmov	d1, d0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x8], #4
	ldr	d2, [x2, x10, lsl #3]
	fabs	d2, d2
	fcmp	d2, d1
	fcsel	d1, d2, d1, mi
	fcmp	d2, d0
	fcsel	d0, d2, d0, gt
	subs	x9, x9, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	fmov	d1, d0
LBB0_4:
	fsub	d1, d0, d1
	fdiv	d0, d1, d0
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	cset	w0, mi
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_isDone
.subsections_via_symbols
