	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function Newton_Raphson
LCPI0_0:
	.quad	0x3bc79ca10c924223              ## double 9.9999999999999995E-21
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_Newton_Raphson:                        ## @Newton_Raphson
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leal	(,%r15,8), %edi
	callq	_alloca
	movl	%r15d, %r12d
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.1:
	cmpl	$4, %r15d
	jae	LBB0_4
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_4:
	movl	%r12d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	%r8, %rsi
	andq	$-2, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cvtps2pd	(%r14,%rdi,4), %xmm0
	cvtps2pd	8(%r14,%rdi,4), %xmm1
	movups	%xmm0, (%rax,%rdi,8)
	movups	%xmm1, 16(%rax,%rdi,8)
	cvtps2pd	16(%r14,%rdi,4), %xmm0
	cvtps2pd	24(%r14,%rdi,4), %xmm1
	movups	%xmm0, 32(%rax,%rdi,8)
	movupd	%xmm1, 48(%rax,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	cvtps2pd	(%r14,%rdi,4), %xmm0
	cvtps2pd	8(%r14,%rdi,4), %xmm1
	movups	%xmm0, (%rax,%rdi,8)
	movupd	%xmm1, 16(%rax,%rdi,8)
LBB0_10:
	cmpq	%r12, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%r14,%rdx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	movsd	%xmm0, (%rax,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %r12
	jne	LBB0_3
LBB0_11:
	movslq	%r15d, %r8
	leaq	-1(%r12), %r11
	movl	%r11d, %r10d
	xorl	%r9d, %r9d
	movsd	LCPI0_0(%rip), %xmm8            ## xmm8 = mem[0],zero
	.p2align	4, 0x90
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
	testl	%r15d, %r15d
	jle	LBB0_32
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movss	(%rbx,%r8,4), %xmm1             ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm2, %xmm2
	cvtss2sd	%xmm1, %xmm2
	xorps	%xmm3, %xmm3
	movlhps	%xmm2, %xmm3                    ## xmm3 = xmm3[0],xmm2[0]
	xorps	%xmm1, %xmm1
	xorl	%edi, %edi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	movapd	%xmm6, %xmm0
	unpckhpd	%xmm6, %xmm0                    ## xmm0 = xmm0[1],xmm6[1]
	divsd	%xmm6, %xmm0
	subsd	%xmm0, %xmm4
	movsd	%xmm4, (%rax,%rdi,8)
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	incq	%rdi
	cmpq	%r12, %rdi
	je	LBB0_20
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
	movsd	(%rax,%rdi,8), %xmm4            ## xmm4 = mem[0],zero
	movddup	%xmm4, %xmm5                    ## xmm5 = xmm4[0,0]
	movq	%r12, %rdx
	movaps	%xmm3, %xmm6
	testb	$1, %r12b
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movss	(%rbx,%r10,4), %xmm6            ## xmm6 = mem[0],zero,zero,zero
	cvtss2sd	%xmm6, %xmm6
	movaps	%xmm2, %xmm7
	movlhps	%xmm6, %xmm7                    ## xmm7 = xmm7[0],xmm6[0]
	movaps	%xmm3, %xmm6
	mulpd	%xmm5, %xmm6
	addpd	%xmm7, %xmm6
	movq	%r11, %rdx
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	cmpl	$1, %r15d
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	-1(%rdx), %esi
	movss	(%rbx,%rsi,4), %xmm7            ## xmm7 = mem[0],zero,zero,zero
	cvtss2sd	%xmm7, %xmm7
	movaps	%xmm6, %xmm0
	shufps	$78, %xmm7, %xmm0               ## xmm0 = xmm0[2,3],xmm7[0,1]
	mulpd	%xmm5, %xmm6
	addpd	%xmm0, %xmm6
	leaq	-2(%rdx), %rsi
	movl	%esi, %ecx
	movss	(%rbx,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	movapd	%xmm6, %xmm7
	shufpd	$1, %xmm0, %xmm7                ## xmm7 = xmm7[1],xmm0[0]
	mulpd	%xmm5, %xmm6
	addpd	%xmm7, %xmm6
	cmpq	$2, %rdx
	movq	%rsi, %rdx
	jg	LBB0_18
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$41, %r9d
	je	LBB0_33
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	incl	%r9d
	ucomisd	%xmm8, %xmm1
	ja	LBB0_13
## %bb.21:
	cmpl	$4, %r15d
	jae	LBB0_23
## %bb.22:
	xorl	%esi, %esi
	jmp	LBB0_30
LBB0_32:
	xorl	%edx, %edx
	cmpl	$41, %r9d
	jne	LBB0_34
LBB0_33:
	movl	$-1, %edx
	jmp	LBB0_34
LBB0_23:
	movl	%r12d, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rdx
	movq	%rdx, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rdx, %rdx
	je	LBB0_24
## %bb.25:
	movq	%rbx, %rdx
	andq	$-2, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movupd	(%rax,%rdi,8), %xmm0
	movupd	16(%rax,%rdi,8), %xmm1
	cvtpd2ps	%xmm0, %xmm0
	cvtpd2ps	%xmm1, %xmm1
	unpcklpd	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movupd	%xmm0, (%r14,%rdi,4)
	movupd	32(%rax,%rdi,8), %xmm0
	movupd	48(%rax,%rdi,8), %xmm1
	cvtpd2ps	%xmm0, %xmm0
	cvtpd2ps	%xmm1, %xmm1
	unpcklpd	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movupd	%xmm0, 16(%r14,%rdi,4)
	addq	$8, %rdi
	addq	$-2, %rdx
	jne	LBB0_26
## %bb.27:
	testb	$1, %bl
	je	LBB0_29
LBB0_28:
	movupd	(%rax,%rdi,8), %xmm0
	movupd	16(%rax,%rdi,8), %xmm1
	cvtpd2ps	%xmm0, %xmm0
	cvtpd2ps	%xmm1, %xmm1
	unpcklpd	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movupd	%xmm0, (%r14,%rdi,4)
LBB0_29:
	xorl	%edx, %edx
	cmpq	%r12, %rsi
	je	LBB0_34
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movsd	(%rax,%rsi,8), %xmm0            ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, (%r14,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %r12
	jne	LBB0_30
## %bb.31:
	xorl	%edx, %edx
LBB0_34:
	movl	%edx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
LBB0_24:
	xorl	%edi, %edi
	testb	$1, %bl
	jne	LBB0_28
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_Newton_Raphson
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Newton_Raphson
_Newton_Raphson:                        ; @Newton_Raphson
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	lsl	w0, w1, #3
	bl	_alloca
	mov	w8, w20
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.1:
	cmp	w20, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	and	x9, x8, #0xfffffff8
	add	x10, x0, #32
	add	x11, x19, #16
	mov	x12, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d0, d1, [x11, #-16]
	ldp	d2, d3, [x11], #32
	fcvtl	v0.2d, v0.2s
	fcvtl	v1.2d, v1.2s
	fcvtl	v2.2d, v2.2s
	fcvtl	v3.2d, v3.2s
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	add	x10, x0, x9, lsl #3
	sub	x11, x8, x9
	add	x9, x19, x9, lsl #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x9], #4
	fcvt	d0, s0
	str	d0, [x10], #8
	subs	x11, x11, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w9, #0
	sxtw	x10, w20
	add	x11, x8, #1
	mov	x12, #16931
	movk	x12, #3218, lsl #16
	movk	x12, #40097, lsl #32
	movk	x12, #15303, lsl #48
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x13, #0
	ldr	s0, [x21, x10, lsl #2]
	fcvt	d1, s0
	movi	d0, #0000000000000000
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	d2, [x0, x13, lsl #3]
	mov	x14, x11
	fmov	d3, d1
	movi	d4, #0000000000000000
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sub	w15, w14, #2
	fmadd	d4, d4, d2, d3
	ldr	s5, [x21, w15, uxtw #2]
	fcvt	d5, s5
	fmadd	d3, d3, d2, d5
	sub	x14, x14, #1
	cmp	x14, #1
	b.gt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	fdiv	d3, d3, d4
	fsub	d2, d2, d3
	str	d2, [x0, x13, lsl #3]
	fmadd	d0, d3, d3, d0
	add	x13, x13, #1
	cmp	x13, x8
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w9, #41
	b.eq	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w9, w9, #1
	fmov	d1, x12
	fcmp	d0, d1
	b.gt	LBB0_9
; %bb.16:
	cmp	w20, #8
	b.hs	LBB0_20
; %bb.17:
	mov	x9, #0
	b	LBB0_23
LBB0_18:
	cmp	w9, #41
	b.ne	LBB0_25
LBB0_19:
	mov	w0, #-1
	b	LBB0_26
LBB0_20:
	and	x9, x8, #0xfffffff8
	add	x10, x19, #16
	add	x11, x0, #32
	mov	x12, x9
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	fcvtn	v0.2s, v0.2d
	fcvtn	v1.2s, v1.2d
	fcvtn	v2.2s, v2.2d
	fcvtn	v3.2s, v3.2d
	stp	d0, d1, [x10, #-16]
	stp	d2, d3, [x10], #32
	subs	x12, x12, #8
	b.ne	LBB0_21
; %bb.22:
	cmp	x9, x8
	b.eq	LBB0_25
LBB0_23:
	add	x10, x19, x9, lsl #2
	sub	x8, x8, x9
	add	x9, x0, x9, lsl #3
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9], #8
	fcvt	s0, d0
	str	s0, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_24
LBB0_25:
	mov	w0, #0
LBB0_26:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_Newton_Raphson
.subsections_via_symbols
