	.file	"707613.c"
	.intel_syntax noprefix
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 8000
A:
	.zero	8000
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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 -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 30
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	mov	DWORD PTR [rdx+rax], 2
	add	DWORD PTR -36[rbp], 1
.L2:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L3
	mov	DWORD PTR -32[rbp], 1
	jmp	.L4
.L14:
	mov	DWORD PTR -24[rbp], 0
	cmp	DWORD PTR -32[rbp], 3
	jne	.L5
	mov	edi, 44
	call	putchar@PLT
.L5:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, eax
	lea	esi, -1[rax]
	mov	eax, DWORD PTR -36[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	esi
	mov	esi, edx
	movsx	rax, ecx
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	mov	DWORD PTR [rdx+rax], esi
	mov	eax, DWORD PTR -36[rbp]
	add	eax, eax
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	edi
	mov	DWORD PTR -24[rbp], eax
	sub	DWORD PTR -36[rbp], 1
.L6:
	cmp	DWORD PTR -36[rbp], 0
	jg	.L7
	mov	ecx, DWORD PTR -24[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	DWORD PTR A[rip], edx
	mov	eax, DWORD PTR -24[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 -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 10
	jne	.L8
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L9
.L10:
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L9:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L10
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L11
.L8:
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L11
	mov	DWORD PTR -28[rbp], 0
	jmp	.L12
.L13:
	mov	esi, 9
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L12:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L13
	mov	DWORD PTR -20[rbp], 0
.L11:
	add	DWORD PTR -32[rbp], 1
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jge	.L14
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"707613.c"
	.text
	.comm	A,8000,4
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #30
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, .L15
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L2
.L3:
	ldr	r2, .L15+4
	ldr	r3, [fp, #-48]
	mov	r1, #2
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L2:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L3
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L4
.L14:
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	bne	.L5
	mov	r0, #44
	bl	putchar
.L5:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-48]
	b	.L6
.L7:
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, .L15+4
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	sub	r2, r3, #1
	ldr	r3, [fp, #-48]
	sub	r4, r3, #1
	ldr	r3, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L15+4
	str	r2, [r3, r4, lsl #2]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
.L6:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bgt	.L7
	ldr	r1, [fp, #-36]
	ldr	r3, .L15+8
	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, .L15+4
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r2, .L15+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #10
	bne	.L8
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L9
.L10:
	mov	r1, #0
	ldr	r0, .L15+12
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L9:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L10
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L11
.L8:
	ldr	r1, [fp, #-28]
	ldr	r0, .L15+12
	bl	printf
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L11
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L12
.L13:
	mov	r1, #9
	ldr	r0, .L15+12
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L12:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L13
	mov	r3, #0
	str	r3, [fp, #-32]
.L11:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L4:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bge	.L14
	ldr	r1, [fp, #-28]
	ldr	r0, .L15+12
	bl	printf
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	1431655766
	.word	A
	.word	1717986919
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
