	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function getdrv
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x406fe00000000000              ## double 255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_getdrv:                                ## @getdrv
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r8
	movq	_n@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r10d, %r10d
	jle	LBB0_1
## %bb.2:
	cmpl	$8, %r10d
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	jmp	LBB0_12
LBB0_1:
	xorl	%r9d, %r9d
	jmp	LBB0_13
LBB0_4:
	movl	%r10d, %eax
	andl	$-8, %eax
	leaq	-8(%rax), %rbx
	movq	%rbx, %rdx
	shrq	$3, %rdx
	incq	%rdx
	movl	%edx, %r9d
	andl	$3, %r9d
	cmpq	$24, %rbx
	jae	LBB0_6
## %bb.5:
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rdx
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rbx,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rdi,%rbx,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%rdi,%rbx,4), %xmm1
	movdqu	48(%rdi,%rbx,4), %xmm3
	movdqu	64(%rdi,%rbx,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	80(%rdi,%rbx,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	96(%rdi,%rbx,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	112(%rdi,%rbx,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rbx
	addq	$-4, %rdx
	jne	LBB0_7
LBB0_8:
	testq	%r9, %r9
	je	LBB0_11
## %bb.9:
	leaq	(%rdi,%rbx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rdx,%rbx), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	(%rdx,%rbx), %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_10
LBB0_11:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r9d
	cmpq	%r10, %rax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rdi,%rax,4), %r9d
	incq	%rax
	cmpq	%rax, %r10
	jne	LBB0_12
LBB0_13:
	movl	%r9d, %eax
	cltd
	idivl	%r10d
	testl	%esi, %esi
	jle	LBB0_23
## %bb.14:
	cvtsi2sd	%eax, %xmm10
	movq	_eval@GOTPCREL(%rip), %rax
	cvtsi2sd	%r9d, %xmm9
	movq	(%rax), %rdx
	movl	%esi, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r10d, %r13d
	andl	$-2, %r13d
	leaq	4(%rdi), %rax
	leaq	(,%r10,4), %r15
	xorl	%r14d, %r14d
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm8            ## xmm8 = mem[0],zero
	movq	%rdi, %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r14
	addq	%r15, %rax
	addq	%r15, %rbx
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_23
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
	movl	(%rdx,%r14,4), %r12d
	xorps	%xmm5, %xmm5
	cvtsi2sd	%r12d, %xmm5
	movapd	%xmm2, %xmm4
	subsd	%xmm5, %xmm4
	divsd	%xmm8, %xmm4
	movq	$0, (%r8,%r14,8)
	movq	$0, (%rcx,%r14,8)
	testl	%r10d, %r10d
	jle	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	xorpd	%xmm5, %xmm5
	xorl	%esi, %esi
	xorpd	%xmm6, %xmm6
	cmpl	$1, %r10d
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorps	%xmm1, %xmm1
	cvtsi2sdl	-4(%rax,%rsi,4), %xmm1
	xorps	%xmm3, %xmm3
	cvtsi2sd	%esi, %xmm3
	movapd	%xmm1, %xmm7
	maxsd	%xmm6, %xmm7
	cmpltsd	%xmm1, %xmm6
	andpd	%xmm6, %xmm3
	xorps	%xmm1, %xmm1
	cvtsi2sdl	(%rax,%rsi,4), %xmm1
	andnpd	%xmm5, %xmm6
	movapd	%xmm6, %xmm5
	leal	1(%rsi), %r11d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r11d, %xmm0
	orpd	%xmm3, %xmm5
	movapd	%xmm1, %xmm6
	maxsd	%xmm7, %xmm6
	cmpltsd	%xmm1, %xmm7
	movapd	%xmm7, %xmm1
	andnpd	%xmm5, %xmm1
	andpd	%xmm0, %xmm7
	orpd	%xmm1, %xmm7
	movapd	%xmm7, %xmm5
	addq	$2, %rsi
	cmpq	%r13, %rsi
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	imull	%r9d, %r12d
	testb	$1, %r10b
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rdx, %r11
	movq	%r14, %rdx
	imulq	%r10, %rdx
	leaq	(%rdi,%rdx,4), %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rdx,%rsi,4), %xmm0
	movq	%r11, %rdx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%esi, %xmm1
	cmpltsd	%xmm0, %xmm6
	andpd	%xmm6, %xmm1
	andnpd	%xmm5, %xmm6
	orpd	%xmm1, %xmm6
	movapd	%xmm6, %xmm5
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	xorps	%xmm6, %xmm6
	cvtsi2sd	%r12d, %xmm6
	mulsd	%xmm9, %xmm4
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorps	%xmm0, %xmm0
	cvtsi2sd	%esi, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdl	(%rbx,%rsi,4), %xmm1
	cmpeqsd	%xmm5, %xmm0
	movapd	%xmm0, %xmm3
	andpd	%xmm6, %xmm3
	andnpd	%xmm4, %xmm0
	orpd	%xmm3, %xmm0
	movapd	%xmm1, %xmm3
	divsd	%xmm0, %xmm3
	movapd	%xmm2, %xmm0
	subsd	%xmm3, %xmm0
	mulsd	%xmm0, %xmm0
	addsd	(%rcx,%r14,8), %xmm0
	divsd	%xmm10, %xmm1
	movapd	%xmm2, %xmm3
	movsd	%xmm0, (%rcx,%r14,8)
	subsd	%xmm1, %xmm3
	mulsd	%xmm3, %xmm3
	addsd	(%r8,%r14,8), %xmm3
	movsd	%xmm3, (%r8,%r14,8)
	incq	%rsi
	cmpq	%rsi, %r10
	jne	LBB0_21
	jmp	LBB0_22
LBB0_23:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_n,4,2                          ## @n
	.comm	_eval,8,3                       ## @eval
	.no_dead_strip	_getdrv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getdrv
_getdrv:                                ; @getdrv
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _n@GOTPAGE
Lloh1:
	ldr	x8, [x8, _n@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w8, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w9, #0
	b	LBB0_7
LBB0_3:
	mov	w9, #0
	b	LBB0_9
LBB0_4:
	and	x10, x8, #0xfffffff0
	add	x9, x0, #32
	movi.2d	v0, #0000000000000000
	mov	x11, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x11, x11, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w9, s0
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_7:
	add	x11, x0, x10, lsl #2
	sub	x10, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	add	w9, w12, w9
	subs	x10, x10, #1
	b.ne	LBB0_8
LBB0_9:
	cmp	w1, #1
	b.lt	LBB0_17
; %bb.10:
	mov	x10, #0
	sdiv	w11, w9, w8
	scvtf	d0, w11
Lloh3:
	adrp	x11, _eval@GOTPAGE
Lloh4:
	ldr	x11, [x11, _eval@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	scvtf	d1, w9
	mov	w12, w1
	lsl	x13, x8, #2
	fmov	d2, #1.00000000
	mov	x14, #246290604621824
	movk	x14, #16495, lsl #48
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x10, x10, #1
	add	x0, x0, x13
	cmp	x10, x12
	b.eq	LBB0_17
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	ldr	w17, [x11, x10, lsl #2]
	lsl	x15, x10, #3
	str	xzr, [x2, x15]
	str	xzr, [x3, x15]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x16, #0
	mul	w1, w17, w9
	scvtf	d3, w1
	scvtf	d4, w17
	fsub	d4, d2, d4
	fmov	d5, x14
	fdiv	d4, d4, d5
	fmul	d4, d4, d1
	movi	d5, #0000000000000000
	movi	d6, #0000000000000000
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s7, [x0, x16, lsl #2]
	sshll.2d	v7, v7, #0
	scvtf	d16, w16
	scvtf	d7, d7
	fcmp	d6, d7
	fcsel	d6, d7, d6, mi
	fcsel	d5, d16, d5, mi
	add	x16, x16, #1
	cmp	x8, x16
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x16, #0
LBB0_16:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	scvtf	d6, w16
	ldr	s7, [x0, x16, lsl #2]
	sshll.2d	v7, v7, #0
	scvtf	d7, d7
	fcmp	d5, d6
	fcsel	d6, d3, d4, eq
	fdiv	d6, d7, d6
	fsub	d6, d2, d6
	fmul	d6, d6, d6
	ldr	d16, [x3, x15]
	fadd	d6, d16, d6
	str	d6, [x3, x15]
	fdiv	d6, d7, d0
	fsub	d6, d2, d6
	ldr	d7, [x2, x15]
	fmul	d6, d6, d6
	fadd	d6, d7, d6
	str	d6, [x2, x15]
	add	x16, x16, #1
	cmp	x8, x16
	b.ne	LBB0_16
	b	LBB0_11
LBB0_17:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_n,4,2                          ; @n
	.comm	_eval,8,3                       ; @eval
	.no_dead_strip	_getdrv
.subsections_via_symbols
