	.file	"extr_sqrt.c_sqrt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sqrt
	.type	sqrt, @function
sqrt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	movsd	QWORD PTR 8[rsp], xmm0
	call	__HI@PLT
	movsd	xmm0, QWORD PTR 8[rsp]
	mov	ebp, eax
	call	__LO@PLT
	mov	edx, ebp
	movsd	xmm0, QWORD PTR 8[rsp]
	and	edx, 2146435072
	cmp	edx, 2146435072
	je	.L50
	test	ebp, ebp
	jle	.L51
	mov	esi, ebp
	sar	esi, 20
	je	.L6
.L7:
	and	ebp, 1048575
	mov	edx, eax
	shr	edx, 31
	or	ebp, 1048576
	and	esi, 1
	lea	ecx, [rdx+rbp*2]
	lea	edx, [rax+rax]
	jne	.L10
	shr	edx, 31
	lea	ecx, [rdx+rcx*2]
	lea	edx, 0[0+rax*4]
.L10:
	mov	edi, 22
	xor	eax, eax
	mov	esi, 2097152
	.p2align 4,,10
	.p2align 3
.L12:
	lea	r8d, [rax+rsi]
	cmp	r8d, ecx
	jg	.L11
	lea	eax, [r8+rsi]
	sub	ecx, r8d
.L11:
	mov	r8d, edx
	shr	esi
	add	edx, edx
	shr	r8d, 31
	lea	ecx, [r8+rcx*2]
	sub	edi, 1
	jne	.L12
	mov	r9d, 32
	mov	r8d, -2147483648
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L53:
	jne	.L16
	cmp	esi, edx
	ja	.L16
	lea	edi, [rsi+r8]
	test	esi, esi
	js	.L21
	mov	r10d, eax
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L18:
	sub	edx, esi
	mov	eax, r10d
.L16:
	mov	esi, edx
	shr	r8d
	add	edx, edx
	shr	esi, 31
	lea	ecx, [rsi+rcx*2]
	sub	r9d, 1
	je	.L52
.L19:
	lea	esi, [r8+rdi]
	cmp	ecx, eax
	jle	.L53
	lea	edi, [rsi+r8]
	mov	r10d, eax
	test	esi, esi
	js	.L21
.L17:
	cmp	edx, esi
	sbb	ecx, eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L51:
	mov	edx, ebp
	and	edx, 2147483647
	or	edx, eax
	je	.L1
	xor	esi, esi
	test	ebp, ebp
	jne	.L54
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, eax
	sub	esi, 21
	sal	eax, 21
	shr	edx, 11
	mov	ebp, edx
	test	edx, edx
	je	.L5
	test	edx, 1048576
	jne	.L24
.L6:
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L9:
	add	ebp, ebp
	mov	edi, ecx
	lea	ecx, 1[rcx]
	test	ebp, 1048576
	je	.L9
	mov	r8d, 32
	mov	edx, ebp
	mov	ebp, eax
	sal	eax, cl
	sub	r8d, ecx
.L8:
	mov	ecx, r8d
	sub	esi, edi
	shr	ebp, cl
	or	ebp, edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	edi, -2147483648
	mov	r10d, eax
	adc	r10d, 0
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L52:
	or	ecx, edx
	je	.L20
	mov	rdx, QWORD PTR one[rip]
	mov	rax, QWORD PTR tiny[rip]
	mov	rbx, rdx
	sub	rbx, rax
	add	rax, rdx
	cmp	rdx, rbx
	cmovle	rbx, rax
.L20:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rbx
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L50:
	.cfi_restore_state
	movapd	xmm1, xmm0
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mulsd	xmm1, xmm0
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	addsd	xmm0, xmm1
	ret
.L54:
	.cfi_restore_state
	subsd	xmm0, xmm0
	divsd	xmm0, xmm0
	jmp	.L1
.L24:
	mov	ebp, eax
	mov	r8d, 32
	mov	edi, -1
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	sqrt, .-sqrt
	.comm	tiny,8,8
	.comm	one,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sqrt.c_sqrt.c"
	.text
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.global	__aeabi_i2d
	.align	2
	.global	sqrt
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqrt, %function
sqrt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r7, r1
	bl	__HI
	mov	r4, r0
	mov	r1, r7
	mov	r0, r6
	bl	__LO
	ldr	r3, .L48
	bics	r3, r3, r4
	beq	.L43
	cmp	r4, #0
	ble	.L44
	asrs	r2, r4, #20
	beq	.L6
.L7:
	bic	r4, r4, #-16777216
	bic	r4, r4, #15728640
	tst	r2, #1
	lsr	r3, r0, #31
	lsl	r2, r0, #1
	orr	r4, r4, #1048576
	lsreq	r2, r2, #31
	add	r3, r3, r4, lsl #1
	addeq	r3, r2, r3, lsl #1
	mov	ip, #22
	lsleq	r2, r0, #2
	mov	r1, #2097152
	mov	r0, #0
.L12:
	add	lr, r0, r1
	cmp	lr, r3
	suble	r3, r3, lr
	addle	r0, lr, r1
	lsl	r3, r3, #1
	subs	ip, ip, #1
	add	r3, r3, r2, lsr #31
	lsr	r1, r1, #1
	lsl	r2, r2, #1
	bne	.L12
	mov	r4, #32
	mov	lr, #-2147483648
	b	.L18
.L46:
	moveq	r6, #1
	movne	r6, #0
	cmp	r1, r2
	movhi	r6, #0
	andls	r6, r6, #1
	cmp	r6, #0
	beq	.L15
	cmp	r1, #0
	movge	r6, r0
	movge	r3, #0
	add	ip, r1, lr
	blt	.L20
.L17:
	mov	r0, r6
	sub	r2, r2, r1
.L15:
	lsr	r1, r2, #31
	subs	r4, r4, #1
	lsr	lr, lr, #1
	add	r3, r1, r3, lsl #1
	lsl	r2, r2, #1
	beq	.L45
.L18:
	cmp	r3, r0
	add	r1, lr, ip
	ble	.L46
	cmp	r1, #0
	add	ip, r1, lr
	blt	.L20
.L25:
	mov	r6, r0
.L16:
	cmp	r1, r2
	sub	r3, r3, r0
	subhi	r3, r3, #1
	b	.L17
.L44:
	bic	r3, r4, #-2147483648
	orrs	r3, r3, r0
	beq	.L21
	cmp	r4, #0
	moveq	r2, r4
	bne	.L47
.L5:
	lsr	r3, r0, #11
	cmp	r3, #0
	mov	r4, r3
	sub	r2, r2, #21
	lsl	r0, r0, #21
	beq	.L5
	tst	r3, #1048576
	bne	.L23
.L6:
	mov	r1, #0
.L9:
	lsl	r4, r4, #1
	tst	r4, #1048576
	mov	ip, r1
	add	r1, r1, #1
	beq	.L9
	mov	r3, r4
	mov	r4, r0
	lsl	r0, r0, r1
	rsb	r1, r1, #32
.L8:
	sub	r2, r2, ip
	orr	r4, r3, r4, lsr r1
	b	.L7
.L20:
	cmp	ip, #0
	addge	r6, r0, #1
	bge	.L16
	b	.L25
.L45:
	orrs	r3, r3, r2
	beq	.L19
	ldr	r3, .L48+4
	ldr	r2, .L48+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	sub	r5, r3, r2
	cmp	r3, r5
	addle	r5, r3, r2
.L19:
	mov	r0, r5
	bl	__aeabi_i2d
	pop	{r4, r5, r6, r7, r8, pc}
.L43:
	mov	r2, r6
	mov	r3, r7
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r6
	mov	r3, r7
	bl	__aeabi_dadd
	pop	{r4, r5, r6, r7, r8, pc}
.L47:
	mov	r2, r6
	mov	r3, r7
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_ddiv
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r0, r6
	mov	r1, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	mov	r4, r0
	mov	r1, #32
	mvn	ip, #0
	b	.L8
.L49:
	.align	2
.L48:
	.word	2146435072
	.word	one
	.word	tiny
	.size	sqrt, .-sqrt
	.comm	tiny,4,4
	.comm	one,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
