	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqrt                           ## -- Begin function sqrt
	.p2align	4, 0x90
_sqrt:                                  ## @sqrt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	callq	___HI
	movl	%eax, %ebx
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	___LO
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, %ecx
	notl	%ecx
	testl	$2146435072, %ecx               ## imm = 0x7FF00000
	jne	LBB0_2
## %bb.1:
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	addsd	%xmm1, %xmm0
	jmp	LBB0_29
LBB0_2:
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.11:
	movl	$1, %esi
	cmpl	$1048576, %ebx                  ## imm = 0x100000
	jb	LBB0_8
## %bb.12:
	movl	%ebx, %esi
	shrl	$20, %esi
	jmp	LBB0_16
LBB0_3:
	movl	%ebx, %ecx
	andl	$2147483647, %ecx               ## imm = 0x7FFFFFFF
	orl	%eax, %ecx
	je	LBB0_29
## %bb.4:
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.5:
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	shll	$21, %eax
	addl	$-21, %esi
	cmpl	$2048, %ebx                     ## imm = 0x800
	jb	LBB0_6
## %bb.7:
	shrl	$11, %ebx
LBB0_8:
	xorl	%edx, %edx
	testl	$1048576, %ebx                  ## imm = 0x100000
	jne	LBB0_9
## %bb.13:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%rbx), %edi
	incl	%edx
	testl	$524288, %ebx                   ## imm = 0x80000
	movl	%edi, %ebx
	je	LBB0_14
	jmp	LBB0_15
LBB0_9:
	movl	%ebx, %edi
LBB0_15:
	subl	%edx, %esi
	movl	%edx, %ecx
	negb	%cl
	movl	%eax, %ebx
	shrl	%cl, %ebx
	orl	%edi, %ebx
	movl	%edx, %ecx
	shll	%cl, %eax
LBB0_16:
	andl	$1048575, %ebx                  ## imm = 0xFFFFF
	orl	$1048576, %ebx                  ## imm = 0x100000
	testb	$1, %sil
	jne	LBB0_18
## %bb.17:
	shldl	$1, %eax, %ebx
	addl	%eax, %eax
LBB0_18:
	shldl	$1, %eax, %ebx
	addl	%eax, %eax
	xorl	%r8d, %r8d
	movl	$2097152, %esi                  ## imm = 0x200000
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%rcx), %edi
	leal	(%rdi,%rsi), %edx
	cmpl	%edi, %ebx
	cmovll	%r8d, %edi
	cmovll	%ecx, %edx
	subl	%edi, %ebx
	shldl	$1, %eax, %ebx
	movl	%esi, %ecx
	shrl	%ecx
	leal	(%rcx,%rdx), %edi
	addl	%edi, %ecx
	cmpl	%edi, %ebx
	cmovll	%r8d, %edi
	cmovll	%edx, %ecx
	leal	(%rax,%rax), %edx
	subl	%edi, %ebx
	shldl	$1, %edx, %ebx
	movl	%esi, %edx
	shrl	$2, %edx
	shll	$2, %eax
	cmpl	$3, %esi
	movl	%edx, %esi
	ja	LBB0_19
## %bb.20:
	xorl	%r9d, %r9d
	movl	$-2147483648, %esi              ## imm = 0x80000000
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	testl	%edi, %edi
	sets	%r8b
	movl	%edi, %r9d
	addl	%esi, %r9d
	setns	%dl
	andb	%r8b, %dl
	movzbl	%dl, %edx
	addl	%ecx, %edx
	subl	%edi, %eax
	sbbl	%ecx, %ebx
	movl	%edx, %ecx
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	shldl	$1, %eax, %ebx
	addl	%eax, %eax
	movl	%esi, %edx
	shrl	%edx
	cmpl	$1, %esi
	movl	%edx, %esi
	jbe	LBB0_26
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%r9), %edi
	cmpl	%ecx, %ebx
	jg	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	%edi, %eax
	jae	LBB0_24
	jmp	LBB0_25
LBB0_26:
	orl	%eax, %ebx
	je	LBB0_27
## %bb.28:
	movq	_one@GOTPCREL(%rip), %rax
	movq	_tiny@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rdx
	negq	%rdx
	cmovnsq	%rcx, %rdx
	addq	(%rax), %rdx
	cvtsi2sd	%rdx, %xmm0
	jmp	LBB0_29
LBB0_27:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_29
LBB0_10:
	subsd	%xmm0, %xmm0
	divsd	%xmm0, %xmm0
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_one,8,3                        ## @one
	.comm	_tiny,8,3                       ## @tiny
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqrt                           ; -- Begin function sqrt
	.p2align	2
_sqrt:                                  ; @sqrt
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	fmov	d8, d0
	bl	___HI
	mov	x19, x0
	mvn	w20, w0
	fmov	d0, d8
	bl	___LO
	tst	w20, #0x7ff00000
	b.ne	LBB0_2
; %bb.1:
	fmadd	d0, d8, d8, d8
	b	LBB0_25
LBB0_2:
	cmp	w19, #0
	b.le	LBB0_5
; %bb.3:
	cmp	w19, #256, lsl #12              ; =1048576
	b.hs	LBB0_11
; %bb.4:
	mov	w8, #1
	b	LBB0_10
LBB0_5:
	and	w8, w19, #0x7fffffff
	orr	w8, w8, w0
	cbz	w8, LBB0_22
; %bb.6:
	tbnz	w19, #31, LBB0_24
; %bb.7:
	mov	w8, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x0
	lsl	w0, w0, #21
	sub	w8, w8, #21
	cmp	w9, #2048
	b.lo	LBB0_8
; %bb.9:
	lsr	w19, w9, #11
LBB0_10:
	and	w9, w19, #0xfffff
	clz	w9, w9
	sub	w9, w9, #11
	tst	w19, #0x100000
	csel	w10, w9, wzr, eq
	lsl	w11, w19, w10
	sub	w9, w8, w10
	neg	w8, w10
	lsr	w8, w0, w8
	orr	w19, w8, w11
	lsl	w0, w0, w10
	b	LBB0_12
LBB0_11:
	lsr	w9, w19, #20
LBB0_12:
	mov	w8, #0
	mov	w10, #1048576
	bfxil	w10, w19, #0, #20
	extr	w11, w10, w0, #31
	lsl	w12, w0, #1
	tst	w9, #0x1
	csel	w9, w0, w12, ne
	csel	w10, w10, w11, ne
	extr	w10, w10, w9, #31
	lsl	w9, w9, #1
	mov	w11, #2097152
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	w12, w11, w8
	add	w13, w12, w11
	cmp	w10, w12
	csel	w12, wzr, w12, lt
	csel	w8, w8, w13, lt
	sub	w10, w10, w12
	extr	w10, w10, w9, #31
	lsr	w12, w11, #1
	lsl	w9, w9, #1
	cmp	w11, #1
	mov	x11, x12
	b.hi	LBB0_13
; %bb.14:
	mov	w11, #0
	mov	w12, #-2147483648
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w11, w14, w12
	cmp	w14, #0
	ccmp	w11, #0, #8, lt
	cinc	w8, w8, ge
	subs	w9, w9, w14
	cset	w10, lo
	sub	w10, w13, w10
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	extr	w10, w10, w9, #31
	lsl	w9, w9, #1
	lsr	w13, w12, #1
	cmp	w12, #1
	mov	x12, x13
	b.ls	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	w14, w12, w11
	subs	w13, w10, w8
	b.gt	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	b.ne	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w9, w14
	b.hs	LBB0_15
	b	LBB0_16
LBB0_20:
	orr	w8, w10, w9
	cbz	w8, LBB0_23
; %bb.21:
Lloh0:
	adrp	x8, _one@GOTPAGE
Lloh1:
	ldr	x8, [x8, _one@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _tiny@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tiny@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, #0
	cneg	x9, x9, mi
	sub	x8, x8, x9
	scvtf	d8, x8
LBB0_22:
	fmov	d0, d8
	b	LBB0_25
LBB0_23:
	movi	d0, #0000000000000000
	b	LBB0_25
LBB0_24:
	fsub	d0, d8, d8
	fdiv	d0, d0, d0
LBB0_25:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_one,8,3                        ; @one
	.comm	_tiny,8,3                       ; @tiny
.subsections_via_symbols
