	.file	"392493.c"
	.intel_syntax noprefix
	.text
	.local	ilog_table
	.comm	ilog_table,1148,32
	.type	init_ilog, @function
init_ilog:
.LFB6:
	.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 ilog_table[rip], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 1
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, ilog_table[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -12[rbp], 1
.L3:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, eax
	cmp	DWORD PTR -12[rbp], eax
	jl	.L4
	add	DWORD PTR -20[rbp], 1
	sal	DWORD PTR -16[rbp]
.L2:
	cmp	DWORD PTR -20[rbp], 7
	jle	.L5
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 1
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 256
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, ilog_table[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -8[rbp], 1
	sal	DWORD PTR -4[rbp]
.L6:
	cmp	DWORD PTR -8[rbp], 30
	jle	.L7
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init_ilog, .-init_ilog
	.globl	ilog
	.type	ilog, @function
ilog:
.LFB7:
	.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jns	.L9
	mov	eax, 0
	jmp	.L10
.L9:
	cmp	DWORD PTR -4[rbp], 255
	jg	.L11
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ilog_table[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L10
.L11:
	cmp	DWORD PTR -4[rbp], 65535
	jg	.L12
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 255[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 8
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ilog_table[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, 8
	jmp	.L10
.L12:
	cmp	DWORD PTR -4[rbp], 16777215
	jg	.L13
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 65535[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 16
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ilog_table[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, 16
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 16777215[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 24
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ilog_table[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, 24
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ilog, .-ilog
	.globl	exp
	.type	exp, @function
exp:
.LFB8:
	.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jns	.L15
	mov	eax, 0
	jmp	.L16
.L15:
	cmp	DWORD PTR -4[rbp], 30
	jg	.L17
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 256
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ilog_table[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L16
.L17:
	mov	eax, 0
.L16:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	exp, .-exp
	.local	isqrt_table
	.comm	isqrt_table,8192,32
	.type	init_isqrt, @function
init_isqrt:
.LFB9:
	.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 -8[rbp], 512
	mov	DWORD PTR -4[rbp], 512
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	imul	eax, edx
	mov	edx, DWORD PTR -4[rbp]
	sal	edx, 9
	cmp	eax, edx
	jg	.L20
	add	DWORD PTR -8[rbp], 1
.L20:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, isqrt_table[rip]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -4[rbp], 1
.L19:
	cmp	DWORD PTR -4[rbp], 2047
	jle	.L21
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	init_isqrt, .-init_isqrt
	.section	.rodata
.LC0:
	.string	"FAILURE(TI,%d,%d)\n"
.LC1:
	.string	"FAILURE(SV,%d(0x%X))\n"
	.text
	.globl	isqrt
	.type	isqrt, @function
isqrt:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	ilog
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 19
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sar	eax, 9
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 511
	jg	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, isqrt_table[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	imul	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	jl	.L24
	add	DWORD PTR -16[rbp], 1
.L24:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	imul	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	jl	.L25
	add	DWORD PTR -16[rbp], 1
.L25:
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, eax
	cmp	DWORD PTR -20[rbp], eax
	jl	.L26
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	imul	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	jl	.L27
.L26:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	eax, DWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	isqrt, .-isqrt
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	call	init_ilog
	call	init_isqrt
	mov	DWORD PTR -4[rbp], 1
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	isqrt
	add	DWORD PTR -4[rbp], 1
.L30:
	cmp	DWORD PTR -4[rbp], 1048575
	jle	.L31
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.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	"392493.c"
	.text
	.local	ilog_table
	.comm	ilog_table,1148,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_ilog, %function
init_ilog:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	ldr	r3, .L8
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L2
.L5:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L3
.L4:
	ldr	r1, .L8
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #7
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	add	r3, r3, #256
	ldr	r1, .L8
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #30
	ble	.L7
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	ilog_table
	.size	init_ilog, .-init_ilog
	.align	2
	.global	ilog
	.syntax unified
	.arm
	.fpu softvfp
	.type	ilog, %function
ilog:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L11
	mov	r3, #0
	b	.L12
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	bgt	.L13
	ldr	r2, .L16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	b	.L12
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #65536
	bge	.L14
	ldr	r3, [fp, #-8]
	add	r2, r3, #255
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #8
	mov	r2, r3
	ldr	r3, .L16
	ldr	r3, [r3, r2, lsl #2]
	add	r3, r3, #8
	b	.L12
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #16777216
	bge	.L15
	ldr	r3, [fp, #-8]
	add	r2, r3, #65280
	add	r2, r2, #255
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #16
	mov	r2, r3
	ldr	r3, .L16
	ldr	r3, [r3, r2, lsl #2]
	add	r3, r3, #16
	b	.L12
.L15:
	ldr	r3, [fp, #-8]
	add	r2, r3, #16777216
	sub	r2, r2, #1
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #24
	mov	r2, r3
	ldr	r3, .L16
	ldr	r3, [r3, r2, lsl #2]
	add	r3, r3, #24
.L12:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	ilog_table
	.size	ilog, .-ilog
	.align	2
	.global	exp
	.syntax unified
	.arm
	.fpu softvfp
	.type	exp, %function
exp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L19
	mov	r3, #0
	b	.L20
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #30
	bgt	.L21
	ldr	r3, [fp, #-8]
	add	r3, r3, #256
	ldr	r2, .L22
	ldr	r3, [r2, r3, lsl #2]
	b	.L20
.L21:
	mov	r3, #0
.L20:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	ilog_table
	.size	exp, .-exp
	.local	isqrt_table
	.comm	isqrt_table,8192,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_isqrt, %function
init_isqrt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #512
	str	r3, [fp, #-12]
	mov	r3, #512
	str	r3, [fp, #-8]
	b	.L25
.L27:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r2, r2, #1
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #9
	cmp	r2, r3
	bgt	.L26
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L26:
	ldr	r1, .L28
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r3, [fp, #-8]
	cmp	r3, #2048
	blt	.L27
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L29:
	.align	2
.L28:
	.word	isqrt_table
	.size	init_isqrt, .-init_isqrt
	.section	.rodata
	.align	2
.LC0:
	.ascii	"FAILURE(TI,%d,%d)\012\000"
	.align	2
.LC1:
	.ascii	"FAILURE(SV,%d(0x%X))\012\000"
	.text
	.align	2
	.global	isqrt
	.syntax unified
	.arm
	.fpu softvfp
	.type	isqrt, %function
isqrt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	ilog
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #19
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-24]
	lsl	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	asr	r3, r3, #9
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #512
	bge	.L31
	ldr	r3, .L37
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldr	r1, .L37+4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L31:
	ldr	r2, .L37+8
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	asr	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r2, r2, #1
	mul	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L32:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r2, r2, #1
	mul	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L33
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L33:
	ldr	r3, [fp, #-20]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r2, r2, #1
	mul	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L35
.L34:
	ldr	r3, .L37
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, .L37+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L35:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	stderr
	.word	.LC0
	.word	isqrt_table
	.word	.LC1
	.size	isqrt, .-isqrt
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	init_ilog
	bl	init_isqrt
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L40
.L41:
	ldr	r0, [fp, #-8]
	bl	isqrt
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L40:
	ldr	r3, [fp, #-8]
	cmp	r3, #1048576
	blt	.L41
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
