	.file	"3221.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%.4d"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3056
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -11224[rbp], 0
	mov	DWORD PTR -11236[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -11236[rbp]
	cdqe
	mov	DWORD PTR -11216[rbp+rax*4], 2000
	add	DWORD PTR -11236[rbp], 1
.L2:
	cmp	DWORD PTR -11236[rbp], 2799
	jle	.L3
	mov	DWORD PTR -11232[rbp], 2800
	jmp	.L4
.L8:
	mov	DWORD PTR -11228[rbp], 0
	mov	eax, DWORD PTR -11232[rbp]
	mov	DWORD PTR -11236[rbp], eax
.L7:
	mov	eax, DWORD PTR -11236[rbp]
	cdqe
	mov	eax, DWORD PTR -11216[rbp+rax*4]
	imul	eax, eax, 10000
	add	DWORD PTR -11228[rbp], eax
	mov	eax, DWORD PTR -11236[rbp]
	add	eax, eax
	sub	eax, 1
	mov	DWORD PTR -11220[rbp], eax
	mov	eax, DWORD PTR -11228[rbp]
	cdq
	idiv	DWORD PTR -11220[rbp]
	mov	eax, DWORD PTR -11236[rbp]
	cdqe
	mov	DWORD PTR -11216[rbp+rax*4], edx
	mov	eax, DWORD PTR -11228[rbp]
	cdq
	idiv	DWORD PTR -11220[rbp]
	mov	DWORD PTR -11228[rbp], eax
	sub	DWORD PTR -11236[rbp], 1
	cmp	DWORD PTR -11236[rbp], 0
	je	.L12
	mov	eax, DWORD PTR -11228[rbp]
	imul	eax, DWORD PTR -11236[rbp]
	mov	DWORD PTR -11228[rbp], eax
	jmp	.L7
.L12:
	nop
	mov	eax, DWORD PTR -11228[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 12
	sar	eax, 31
	sub	edx, eax
	mov	eax, DWORD PTR -11224[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -11228[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 12
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	edx, edx, 10000
	sub	eax, edx
	mov	DWORD PTR -11224[rbp], eax
	sub	DWORD PTR -11232[rbp], 14
.L4:
	cmp	DWORD PTR -11232[rbp], 0
	jg	.L8
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"3221.c"
	.text
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%.4d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 11232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #11200
	sub	sp, sp, #36
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3024]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3036]
	b	.L2
.L3:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3036]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #2000
	str	r2, [r3, #-3016]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3036]
	add	r3, r3, #1
	str	r3, [r2, #-3036]
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3036]
	cmp	r3, #2800
	blt	.L3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2800
	str	r3, [r2, #-3032]
	b	.L4
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3028]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3032]
	str	r3, [r2, #-3036]
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3036]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3016]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3028]
	add	r3, r3, r1
	str	r3, [r2, #-3028]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3036]
	lsl	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r3, r3, #1
	str	r3, [r2, #-3020]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r3, [r3, #-3028]
	ldr	r1, [r2, #-3020]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3036]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-3016]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r1, [r2, #-3020]
	ldr	r0, [r3, #-3028]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [r4, #-3028]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3036]
	sub	r3, r3, #1
	str	r3, [r2, #-3036]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3036]
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r3, [r3, #-3028]
	ldr	r2, [r2, #-3036]
	mul	r3, r2, r3
	str	r3, [r1, #-3028]
	b	.L7
.L12:
	nop
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3028]
	ldr	r2, .L13+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #12
	asr	r3, r3, #31
	sub	r2, r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3024]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L13+8
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-3028]
	ldr	r3, .L13+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #12
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	sub	r3, r2, r3
	str	r3, [r0, #-3024]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3032]
	sub	r3, r3, #14
	str	r3, [r2, #-3032]
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-3032]
	cmp	r3, #0
	bgt	.L8
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	1759218605
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
