	.file	"82938.c"
	.intel_syntax noprefix
	.text
	.globl	tableau
	.bss
	.align 32
	.type	tableau, @object
	.size	tableau, 4000
tableau:
	.zero	4000
	.globl	cumulatif
	.align 32
	.type	cumulatif, @object
	.size	cumulatif, 4000
cumulatif:
	.zero	4000
	.globl	nbElement
	.align 4
	.type	nbElement, @object
	.size	nbElement, 4
nbElement:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d "
	.text
	.globl	initTab
	.type	initTab, @function
initTab:
.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, 16
	lea	rsi, nbElement[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tableau[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR nbElement[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	initTab, .-initTab
	.globl	initCumulatif
	.type	initCumulatif, @function
initCumulatif:
.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 -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tableau[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cumulatif[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cumulatif[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L5:
	mov	eax, DWORD PTR nbElement[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L6
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	initCumulatif, .-initCumulatif
	.globl	somme
	.type	somme, @function
somme:
.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L8
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cumulatif[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cumulatif[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	sub	edx, 1
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, cumulatif[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	sub	eax, edx
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	somme, .-somme
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	initTab
	call	initCumulatif
	mov	esi, 5
	mov	edi, 2
	call	somme
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 3
	mov	edi, 0
	call	somme
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 4
	mov	edi, 3
	call	somme
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 5
	mov	edi, 0
	call	somme
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"82938.c"
	.text
	.comm	tableau,4000,4
	.comm	cumulatif,4000,4
	.comm	nbElement,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.align	2
.LC1:
	.ascii	"%d \000"
	.text
	.align	2
	.global	initTab
	.syntax unified
	.arm
	.fpu softvfp
	.type	initTab, %function
initTab:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L4
	ldr	r0, .L4+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, .L4+8
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L4+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	nbElement
	.word	.LC0
	.word	tableau
	.word	.LC1
	.size	initTab, .-initTab
	.align	2
	.global	initCumulatif
	.syntax unified
	.arm
	.fpu softvfp
	.type	initCumulatif, %function
initCumulatif:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L8:
	ldr	r2, .L9
	ldr	r3, [fp, #-12]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r1, .L9+4
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L9+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L8
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	tableau
	.word	cumulatif
	.word	nbElement
	.size	initCumulatif, .-initCumulatif
	.align	2
	.global	somme
	.syntax unified
	.arm
	.fpu softvfp
	.type	somme, %function
somme:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L12
	ldr	r2, .L14
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	b	.L13
.L12:
	ldr	r2, .L14
	ldr	r3, [fp, #-12]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r1, .L14
	ldr	r3, [r1, r3, lsl #2]
	sub	r3, r2, r3
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	cumulatif
	.size	somme, .-somme
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	initTab
	bl	initCumulatif
	mov	r1, #5
	mov	r0, #2
	bl	somme
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L18
	bl	printf
	mov	r1, #3
	mov	r0, #0
	bl	somme
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L18
	bl	printf
	mov	r1, #4
	mov	r0, #3
	bl	somme
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L18
	bl	printf
	mov	r1, #5
	mov	r0, #0
	bl	somme
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L18
	bl	printf
	mov	r3, #0
	mov	r0, r3
	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
