	.file	"383705.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, 2[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -20[rbp]
	add	edx, 2
	sub	eax, edx
	mov	DWORD PTR -28[rbp], eax
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jns	.L3
	mov	DWORD PTR -24[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -28[rbp]
	neg	edx
	cmp	eax, edx
	jne	.L5
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	DWORD PTR [rdx+rax], -1
.L5:
	add	DWORD PTR -24[rbp], 1
.L4:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L6
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, -1
	jne	.L7
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 2
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 2
	add	ecx, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	DWORD PTR [rdx+rax], -1
.L7:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L9
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	add	DWORD PTR -24[rbp], 1
.L8:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L10
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR bgi.0[rip], 1
	mov	DWORD PTR -24[rbp], 0
	jmp	.L11
.L20:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	js	.L25
	mov	DWORD PTR -12[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, num.1[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, bgi.0[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -12[rbp], 1
.L14:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L15
	mov	DWORD PTR -12[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	sub	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	add	ecx, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	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	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	DWORD PTR -12[rbp], 1
.L16:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L17
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	sub	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	add	ecx, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	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	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	DWORD PTR -16[rbp], 1
.L18:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L19
	jmp	.L13
.L25:
	nop
.L13:
	add	DWORD PTR -24[rbp], 1
.L11:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L20
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	mov	DWORD PTR -24[rbp], eax
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bgi.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, 48
	mov	edi, eax
	call	putchar@PLT
	sub	DWORD PTR -24[rbp], 1
.L21:
	cmp	DWORD PTR -24[rbp], 0
	jns	.L22
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.local	num.1
	.comm	num.1,40036,32
	.local	bgi.0
	.comm	bgi.0,400036,32
	.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	"383705.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d \000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L26+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L3:
	ldr	r3, [fp, #-20]
	add	r2, r3, #2
	ldr	r1, .L26+8
	ldr	r3, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L3
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L4
.L6:
	ldr	r2, .L26+8
	ldr	r3, [fp, #-24]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #0
	cmp	r2, r3
	bne	.L5
	ldr	r2, .L26+8
	ldr	r3, [fp, #-24]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
.L5:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L7
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	ldr	r2, .L26+8
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, .L26+8
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	add	r2, r1, r2
	ldr	r1, .L26+8
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, .L26+8
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
.L7:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L8
.L10:
	ldr	r2, .L26+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L9
	ldr	r2, .L26+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L26+12
	bl	printf
.L9:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L8:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L10
	mov	r0, #10
	bl	putchar
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L26+16
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L11
.L20:
	ldr	r2, .L26+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	blt	.L25
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L14
.L15:
	ldr	r2, .L26+16
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, .L26+8
	ldr	r2, [fp, #-24]
	ldr	r2, [r1, r2, lsl #2]
	mul	r2, r3, r2
	ldr	r1, .L26+16
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L16
.L17:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, .L26+16
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L26+16
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L26+20
	smull	r0, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	add	r2, r1, r2
	ldr	r1, .L26+16
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L26+16
	ldr	r3, [fp, #-12]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L26+20
	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	r1, .L26+16
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L17
	b	.L18
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, .L26+16
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L26+16
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L26+20
	smull	r0, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	add	r2, r1, r2
	ldr	r1, .L26+16
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L26+16
	ldr	r3, [fp, #-16]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L26+20
	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	r1, .L26+16
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	ldr	r2, .L26+16
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L19
	b	.L13
.L25:
	nop
.L13:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L11:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L21
.L22:
	ldr	r2, .L26+16
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #48
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L21:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L22
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC2
	.word	.LC0
	.word	num.4606
	.word	.LC1
	.word	bgi.4604
	.word	1717986919
	.size	main, .-main
	.local	num.4606
	.comm	num.4606,40036,4
	.local	bgi.4604
	.comm	bgi.4604,400036,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
