	.file	"64114.c"
	.intel_syntax noprefix
	.text
	.globl	mySqrt
	.type	mySqrt, @function
mySqrt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	je	.L2
	cmp	DWORD PTR -20[rbp], 1
	jne	.L3
.L2:
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
.L10:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	je	.L5
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	cmp	eax, 1
	je	.L5
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	cmp	eax, -1
	jne	.L6
.L5:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jg	.L7
	mov	eax, DWORD PTR -8[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	esi
	cmp	DWORD PTR -8[rbp], eax
	jl	.L7
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	edi
	cmp	ecx, eax
	jg	.L8
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L8
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, -2[rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	esi, -2[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	esi
	cmp	ecx, eax
	jg	.L9
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	edi
	cmp	ecx, eax
	jle	.L9
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 2
	jmp	.L4
.L9:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L10
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	mySqrt, .-mySqrt
	.section	.rodata
.LC0:
	.string	"%d => %d, %f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], 0
	jmp	.L12
.L13:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -20[rbp]
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rbx, xmm0
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	mySqrt
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	movq	xmm0, rbx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -20[rbp], 1
.L12:
	cmp	DWORD PTR -20[rbp], 9999
	jle	.L13
	mov	edi, 2147483647
	call	mySqrt
	mov	edx, eax
	mov	rax, QWORD PTR .LC1[rip]
	movq	xmm0, rax
	mov	esi, 2147483647
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	1718131502
	.long	1088856222
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"64114.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	mySqrt
	.syntax unified
	.arm
	.fpu softvfp
	.type	mySqrt, %function
mySqrt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L3
.L2:
	ldr	r3, [fp, #-24]
	b	.L4
.L3:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
.L10:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	__aeabi_idiv
	mov	r3, r0
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r1, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	beq	.L5
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	cmp	r3, #1
	beq	.L5
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	cmn	r3, #1
	bne	.L6
.L5:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bgt	.L7
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	blt	.L7
	ldr	r3, [fp, #-20]
	b	.L4
.L7:
	ldr	r3, [fp, #-20]
	sub	r4, r3, #1
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	__aeabi_idiv
	mov	r3, r0
	cmp	r4, r3
	bgt	.L8
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	ble	.L8
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	b	.L4
.L8:
	ldr	r3, [fp, #-20]
	sub	r4, r3, #2
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	__aeabi_idiv
	mov	r3, r0
	cmp	r4, r3
	bgt	.L9
	ldr	r3, [fp, #-20]
	sub	r4, r3, #1
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	__aeabi_idiv
	mov	r3, r0
	cmp	r4, r3
	ble	.L9
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	b	.L4
.L9:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	b	.L4
.L6:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L10
.L4:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	mySqrt, .-mySqrt
	.global	__aeabi_i2d
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d => %d, %f\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L13:
	ldr	r0, [fp, #-16]
	bl	mySqrt
	mov	r4, r0
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	ldr	r1, [fp, #-16]
	ldr	r0, .L15
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldr	r3, [fp, #-16]
	ldr	r2, .L15+4
	cmp	r3, r2
	ble	.L13
	mvn	r0, #-2147483648
	bl	mySqrt
	mov	r1, r0
	ldr	r2, .L15+8
	ldr	r3, .L15+12
	stm	sp, {r2-r3}
	mov	r2, r1
	mvn	r1, #-2147483648
	ldr	r0, .L15
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	9999
	.word	1718131502
	.word	1088856222
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
