	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isqrt
_isqrt:                                 ## @isqrt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	callq	_fls
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	andb	$-2, %cl
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rbx, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%rbx), %rdi
	sarq	%rax
	cmpq	%rdi, %r14
	movq	%rbx, %rdx
	cmovlq	%rcx, %rdx
	cmovlq	%rcx, %rdi
	addq	%rdx, %rax
	subq	%rdi, %r14
	shrq	$2, %rsi
	cmpq	$3, %rbx
	movq	%rsi, %rbx
	ja	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_isqrt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isqrt
_isqrt:                                 ; @isqrt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_fls
	mov	x8, x0
	mov	x0, #0
	sub	w8, w8, #1
	and	w8, w8, #0xfffffffe
	mov	w9, #1
	lsl	w8, w9, w8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x0, x8
	cmp	x19, x9
	csel	x10, xzr, x8, lt
	add	x0, x10, x0, asr #1
	csel	x9, xzr, x9, lt
	sub	x19, x19, x9
	lsr	x9, x8, #2
	cmp	x8, #3
	mov	x8, x9
	b.hi	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_isqrt
.subsections_via_symbols
