	.file	"184518131.c"
	.intel_syntax noprefix
	.text
	.globl	count
	.type	count, @function
count:
.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 -20[rbp], edi
	mov	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L2
.L3:
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	count, .-count
	.globl	square_digits
	.type	square_digits, @function
square_digits:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 1112
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -1140[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -1140[rbp]
	mov	DWORD PTR -1124[rbp], eax
	mov	eax, DWORD PTR -1140[rbp]
	mov	edi, eax
	call	count
	mov	DWORD PTR -1120[rbp], eax
	mov	eax, DWORD PTR -1120[rbp]
	mov	DWORD PTR -1128[rbp], eax
	mov	eax, DWORD PTR -1120[rbp]
	sub	eax, 1
	mov	DWORD PTR -1116[rbp], eax
	mov	eax, DWORD PTR -1120[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -1112[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L6:
	cmp	rsp, rdx
	je	.L7
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L6
.L7:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L8
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L8:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -1104[rbp], rax
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR -1096[rbp], rax
	jmp	.L9
.L10:
	sub	DWORD PTR -1128[rbp], 1
	mov	ecx, DWORD PTR -1124[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	rax, QWORD PTR -1104[rbp]
	mov	ecx, DWORD PTR -1128[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rax+rcx*4], edx
	mov	eax, DWORD PTR -1124[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -1124[rbp], eax
.L9:
	cmp	DWORD PTR -1128[rbp], 0
	jns	.L10
	mov	DWORD PTR -1128[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -1104[rbp]
	mov	edx, DWORD PTR -1128[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -1104[rbp]
	mov	edx, DWORD PTR -1128[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	imul	ecx, eax
	mov	rax, QWORD PTR -1104[rbp]
	mov	edx, DWORD PTR -1128[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -1128[rbp], 1
.L11:
	mov	eax, DWORD PTR -1128[rbp]
	cmp	eax, DWORD PTR -1120[rbp]
	jl	.L12
	mov	DWORD PTR -1128[rbp], 0
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -1104[rbp]
	mov	edx, DWORD PTR -1128[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	rcx, QWORD PTR -1096[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	itoa@PLT
	mov	rdx, QWORD PTR -1096[rbp]
	lea	rax, -1088[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	add	DWORD PTR -1128[rbp], 1
.L13:
	mov	eax, DWORD PTR -1128[rbp]
	cmp	eax, DWORD PTR -1120[rbp]
	jl	.L14
	lea	rax, -1088[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	square_digits, .-square_digits
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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
	mov	DWORD PTR -4[rbp], 945
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	square_digits
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"184518131.c"
	.text
	.align	2
	.global	count
	.syntax unified
	.arm
	.fpu softvfp
	.type	count, %function
count:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-8]
	ldr	r2, .L5
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	1717986919
	.size	count, .-count
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	square_digits
	.syntax unified
	.arm
	.fpu softvfp
	.type	square_digits, %function
square_digits:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1056
	sub	sp, sp, #12
	str	r0, [fp, #-1072]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-1072]
	str	r3, [fp, #-1064]
	ldr	r3, [fp, #-1072]
	mov	r0, r3
	bl	count
	str	r0, [fp, #-1060]
	ldr	r3, [fp, #-1060]
	str	r3, [fp, #-1068]
	ldr	r3, [fp, #-1060]
	sub	r3, r3, #1
	str	r3, [fp, #-1056]
	ldr	ip, [fp, #-1060]
	sub	r3, ip, #1
	str	r3, [fp, #-1052]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-1048]
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1044]
	b	.L8
.L9:
	ldr	r3, [fp, #-1068]
	sub	r3, r3, #1
	str	r3, [fp, #-1068]
	ldr	r1, [fp, #-1064]
	ldr	r3, .L16+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, [fp, #-1048]
	ldr	r1, [fp, #-1068]
	str	r2, [r3, r1, lsl #2]
	ldr	r3, [fp, #-1064]
	ldr	r2, .L16+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-1064]
.L8:
	ldr	r3, [fp, #-1068]
	cmp	r3, #0
	bge	.L9
	mov	r3, #0
	str	r3, [fp, #-1068]
	b	.L10
.L11:
	ldr	r3, [fp, #-1048]
	ldr	r2, [fp, #-1068]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-1048]
	ldr	r1, [fp, #-1068]
	ldr	r2, [r2, r1, lsl #2]
	mul	r1, r2, r3
	ldr	r3, [fp, #-1048]
	ldr	r2, [fp, #-1068]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-1068]
	add	r3, r3, #1
	str	r3, [fp, #-1068]
.L10:
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1060]
	cmp	r2, r3
	blt	.L11
	mov	r3, #0
	str	r3, [fp, #-1068]
	b	.L12
.L13:
	ldr	r3, [fp, #-1048]
	ldr	r2, [fp, #-1068]
	ldr	r3, [r3, r2, lsl #2]
	mov	r2, #10
	ldr	r1, [fp, #-1044]
	mov	r0, r3
	bl	itoa
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [fp, #-1044]
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #-1068]
	add	r3, r3, #1
	str	r3, [fp, #-1068]
.L12:
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1060]
	cmp	r2, r3
	blt	.L13
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	mov	sp, r4
	ldr	r1, .L16
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	1717986919
	.size	square_digits, .-square_digits
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L20
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	square_digits
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L20+4
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	945
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
