	.file	"769512.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%3d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jg	.L3
.L2:
	mov	DWORD PTR -16[rbp], 5
.L3:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	imul	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L4
.L12:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L5
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -16[rbp]
	add	eax, 1
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	mov	DWORD PTR -20[rbp], eax
	jmp	.L7
.L11:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	mov	edx, DWORD PTR -24[rbp]
	and	edx, 1
	test	edx, edx
	je	.L8
	mov	edx, DWORD PTR -16[rbp]
	sub	edx, 1
	mov	ecx, edx
	imul	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	add	edx, ecx
	movsx	rdx, edx
	sal	rdx, 2
	jmp	.L9
.L8:
	mov	edx, DWORD PTR -24[rbp]
	sub	edx, DWORD PTR -20[rbp]
	mov	ecx, edx
	imul	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	add	edx, ecx
	movsx	rdx, edx
	sal	rdx, 2
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -20[rbp], 1
.L7:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jg	.L10
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L11
.L10:
	add	DWORD PTR -24[rbp], 1
.L4:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, eax
	cmp	DWORD PTR -24[rbp], eax
	jl	.L12
	mov	DWORD PTR -24[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L14
	mov	eax, 32
	jmp	.L15
.L14:
	mov	eax, 10
.L15:
	mov	edi, eax
	call	putchar@PLT
.L13:
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, eax
	cmp	DWORD PTR -24[rbp], eax
	jl	.L16
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"769512.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%3d\000"
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L3
.L2:
	mov	r3, #5
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
	b	.L4
.L12:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L5
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r3, r3, #1
	b	.L6
.L5:
	mov	r3, #0
.L6:
	str	r3, [fp, #-20]
	b	.L7
.L11:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-24]
	and	r2, r2, #1
	cmp	r2, #0
	beq	.L8
	ldr	r2, [fp, #-16]
	sub	r2, r2, #1
	ldr	r1, [fp, #-20]
	mul	r1, r2, r1
	ldr	r2, [fp, #-24]
	add	r2, r1, r2
	lsl	r2, r2, #2
	b	.L9
.L8:
	ldr	r1, [fp, #-24]
	ldr	r2, [fp, #-20]
	sub	r2, r1, r2
	ldr	r1, [fp, #-16]
	mul	r1, r2, r1
	ldr	r2, [fp, #-20]
	add	r2, r1, r2
	lsl	r2, r2, #2
.L9:
	ldr	r1, [fp, #-8]
	add	r2, r1, r2
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bgt	.L10
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L11
.L10:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L13
.L16:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L14
	mov	r3, #32
	b	.L15
.L14:
	mov	r3, #10
.L15:
	mov	r0, r3
	bl	putchar
.L13:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L16
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
