	.file	"976309.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 420
a:
	.zero	420
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 420
sum:
	.zero	420
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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, 2192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -2184[rbp]
	mov	rdx, rax
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -2180[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -2180[rbp], 1
.L2:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -2180[rbp], eax
	jl	.L3
	mov	DWORD PTR -2176[rbp], 0
	jmp	.L4
.L7:
	mov	DWORD PTR -2172[rbp], 0
	mov	DWORD PTR -2180[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -2172[rbp], eax
	add	DWORD PTR -2180[rbp], 1
.L5:
	mov	eax, DWORD PTR -2180[rbp]
	cmp	eax, DWORD PTR -2176[rbp]
	jle	.L6
	mov	eax, DWORD PTR -2176[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, sum[rip]
	mov	eax, DWORD PTR -2172[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -2176[rbp], 1
.L4:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -2176[rbp], eax
	jl	.L7
	mov	DWORD PTR -2180[rbp], 0
	jmp	.L8
.L9:
	lea	rdx, -1728[rbp]
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rcx, -2160[rbp]
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -2180[rbp], 1
.L8:
	mov	eax, DWORD PTR -2184[rbp]
	cmp	DWORD PTR -2180[rbp], eax
	jl	.L9
	mov	DWORD PTR -2180[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	mov	edx, DWORD PTR -1728[rbp+rax*4]
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	mov	eax, DWORD PTR -2160[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	Nnn
	mov	DWORD PTR -2168[rbp], eax
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	mov	edx, DWORD PTR -1728[rbp+rax*4]
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	mov	eax, DWORD PTR -2160[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	Mmm
	mov	DWORD PTR -2164[rbp], eax
	mov	eax, DWORD PTR -2164[rbp]
	cmp	DWORD PTR -2168[rbp], eax
	cmovle	eax, DWORD PTR -2168[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	mov	DWORD PTR -864[rbp+rax*4], edx
	mov	eax, DWORD PTR -2164[rbp]
	cmp	DWORD PTR -2168[rbp], eax
	cmovge	eax, DWORD PTR -2168[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	mov	DWORD PTR -432[rbp+rax*4], edx
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	mov	edx, DWORD PTR -432[rbp+rax*4]
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	mov	eax, DWORD PTR -864[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	Hhh
	mov	edx, DWORD PTR -2180[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -1296[rbp+rdx*4], eax
	mov	eax, DWORD PTR -2180[rbp]
	cdqe
	mov	eax, DWORD PTR -1296[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -2180[rbp], 1
.L10:
	mov	eax, DWORD PTR -2184[rbp]
	cmp	DWORD PTR -2180[rbp], eax
	jl	.L11
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	Nnn
	.type	Nnn, @function
Nnn:
.LFB1:
	.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 -24[rbp], esi
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sum[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, sum[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR n[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	ecx
	mov	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Nnn, .-Nnn
	.globl	Mmm
	.type	Mmm, @function
Mmm:
.LFB2:
	.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 -24[rbp], esi
	mov	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L17
.L18:
	mov	ecx, DWORD PTR n[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	ecx
	mov	esi, edx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR n[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	imul	eax, esi
	mov	ecx, DWORD PTR n[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -8[rbp], edx
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L18
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	Mmm, .-Mmm
	.globl	Hhh
	.type	Hhh, @function
Hhh:
.LFB3:
	.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 -24[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	xor	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L21:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L22
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	Hhh, .-Hhh
	.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	"976309.c"
	.text
	.comm	a,420,4
	.comm	n,4,4
	.comm	sum,420,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2128
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #2128
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L14+4
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-2128]
	b	.L2
.L3:
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	ldr	r2, .L14+12
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L14+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-2128]
	add	r3, r3, #1
	str	r3, [fp, #-2128]
.L2:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-2128]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-2124]
	b	.L4
.L7:
	mov	r3, #0
	str	r3, [fp, #-2120]
	mov	r3, #0
	str	r3, [fp, #-2128]
	b	.L5
.L6:
	ldr	r2, .L14+12
	ldr	r3, [fp, #-2128]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-2120]
	add	r3, r2, r3
	str	r3, [fp, #-2120]
	ldr	r3, [fp, #-2128]
	add	r3, r3, #1
	str	r3, [fp, #-2128]
.L5:
	ldr	r2, [fp, #-2128]
	ldr	r3, [fp, #-2124]
	cmp	r2, r3
	ble	.L6
	ldr	r1, .L14+20
	ldr	r3, [fp, #-2124]
	ldr	r2, [fp, #-2120]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-2124]
	add	r3, r3, #1
	str	r3, [fp, #-2124]
.L4:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-2124]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	str	r3, [fp, #-2128]
	b	.L8
.L9:
	sub	r3, fp, #2096
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-2128]
	lsl	r2, r2, #2
	add	r1, r3, r2
	sub	r3, fp, #1680
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2128]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r2, r3
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-2128]
	add	r3, r3, #1
	str	r3, [fp, #-2128]
.L8:
	ldr	r3, [fp, #-2132]
	ldr	r2, [fp, #-2128]
	cmp	r2, r3
	blt	.L9
	mov	r3, #0
	str	r3, [fp, #-2128]
	b	.L10
.L11:
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-2104]
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1684]
	mov	r1, r3
	mov	r0, r2
	bl	Nnn
	str	r0, [fp, #-2116]
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-2104]
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1684]
	mov	r1, r3
	mov	r0, r2
	bl	Mmm
	str	r0, [fp, #-2112]
	ldr	r2, [fp, #-2116]
	ldr	r3, [fp, #-2112]
	cmp	r2, r3
	movlt	r2, r2
	movge	r2, r3
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-844]
	ldr	r2, [fp, #-2116]
	ldr	r3, [fp, #-2112]
	cmp	r2, r3
	movge	r2, r2
	movlt	r2, r3
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-424]
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-844]
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-424]
	mov	r1, r3
	mov	r0, r2
	bl	Hhh
	mov	r2, r0
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1264]
	ldr	r3, [fp, #-2128]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1264]
	mov	r1, r3
	ldr	r0, .L14+24
	bl	printf
	ldr	r3, [fp, #-2128]
	add	r3, r3, #1
	str	r3, [fp, #-2128]
.L10:
	ldr	r3, [fp, #-2132]
	ldr	r2, [fp, #-2128]
	cmp	r2, r3
	blt	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	n
	.word	.LC0
	.word	a
	.word	.LC1
	.word	sum
	.word	.LC2
	.size	main, .-main
	.global	__aeabi_idivmod
	.align	2
	.global	Nnn
	.syntax unified
	.arm
	.fpu softvfp
	.type	Nnn, %function
Nnn:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, .L18
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L18
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
	sub	r2, r2, r3
	ldr	r1, .L18+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	sum
	.word	a
	.word	n
	.size	Nnn, .-Nnn
	.align	2
	.global	Mmm
	.syntax unified
	.arm
	.fpu softvfp
	.type	Mmm, %function
Mmm:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	b	.L21
.L22:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r4, r3
	ldr	r2, .L24+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mul	r3, r4, r3
	ldr	r2, .L24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L21:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L22
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	n
	.word	a
	.size	Mmm, .-Mmm
	.align	2
	.global	Hhh
	.syntax unified
	.arm
	.fpu softvfp
	.type	Hhh, %function
Hhh:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L27
.L28:
	ldr	r2, .L30
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-12]
	eor	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L27:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L28
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	a
	.size	Hhh, .-Hhh
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
