	.file	"25136619.c"
	.intel_syntax noprefix
	.text
	.globl	sumOfNumbers
	.type	sumOfNumbers, @function
sumOfNumbers:
.LFB6:
	.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 -8[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	cdq
	mov	eax, edx
	xor	eax, DWORD PTR -20[rbp]
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	jmp	.L2
.L3:
	mov	ecx, DWORD PTR -4[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
	add	DWORD PTR -8[rbp], edx
	mov	eax, DWORD PTR -4[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 -4[rbp], eax
.L2:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L3
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sumOfNumbers, .-sumOfNumbers
	.globl	findElementWithMaxSumOfNumbers
	.type	findElementWithMaxSumOfNumbers, @function
findElementWithMaxSumOfNumbers:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -16[rbp], -1
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	mov	eax, 0
	call	sumOfNumbers
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jle	.L7
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jne	.L8
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -12[rbp], 1
.L8:
	add	DWORD PTR -8[rbp], 1
.L6:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L9
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	findElementWithMaxSumOfNumbers, .-findElementWithMaxSumOfNumbers
	.section	.rodata
.LC0:
	.string	"bad"
	.text
	.globl	checkThisTask
	.type	checkThisTask, @function
checkThisTask:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L13
.L12:
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	findElementWithMaxSumOfNumbers
	mov	DWORD PTR -12[rbp], eax
	mov	BYTE PTR -17[rbp], 1
	mov	DWORD PTR -16[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L15
	mov	BYTE PTR -17[rbp], 0
	jmp	.L16
.L15:
	add	DWORD PTR -16[rbp], 1
.L14:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L17
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	movzx	eax, BYTE PTR -17[rbp]
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	checkThisTask, .-checkThisTask
	.globl	standartTest
	.type	standartTest, @function
standartTest:
.LFB9:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 123
	mov	DWORD PTR -28[rbp], 454
	mov	DWORD PTR -24[rbp], -545
	mov	DWORD PTR -20[rbp], 77
	mov	DWORD PTR -16[rbp], 80
	mov	DWORD PTR -40[rbp], -545
	mov	DWORD PTR -36[rbp], 77
	lea	rdx, -40[rbp]
	lea	rax, -32[rbp]
	mov	esi, 5
	mov	rdi, rax
	call	checkThisTask
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	standartTest, .-standartTest
	.globl	testWithEqualNumbers
	.type	testWithEqualNumbers, @function
testWithEqualNumbers:
.LFB10:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 5
	mov	DWORD PTR -44[rbp], 140
	mov	DWORD PTR -40[rbp], 50
	mov	DWORD PTR -36[rbp], 500
	mov	DWORD PTR -32[rbp], 5
	mov	DWORD PTR -28[rbp], 140
	mov	DWORD PTR -24[rbp], 50
	mov	DWORD PTR -20[rbp], 500
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	checkThisTask
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	testWithEqualNumbers, .-testWithEqualNumbers
	.globl	testWithNegativeNumbers
	.type	testWithNegativeNumbers, @function
testWithNegativeNumbers:
.LFB11:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], -300
	mov	DWORD PTR -28[rbp], -10
	mov	DWORD PTR -24[rbp], -567
	mov	DWORD PTR -20[rbp], -8
	mov	DWORD PTR -16[rbp], -9
	mov	DWORD PTR -12[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -40[rbp], -567
	lea	rdx, -40[rbp]
	lea	rax, -32[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	checkThisTask
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	testWithNegativeNumbers, .-testWithNegativeNumbers
	.section	.rodata
.LC1:
	.string	"Tests failed"
.LC2:
	.string	"Starting array: "
.LC3:
	.string	"%d "
	.align 8
.LC4:
	.string	"\nElements with the largest summ of numbers: "
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	standartTest
	xor	eax, 1
	test	al, al
	jne	.L28
	mov	eax, 0
	call	testWithEqualNumbers
	xor	eax, 1
	test	al, al
	jne	.L28
	mov	eax, 0
	call	testWithNegativeNumbers
	xor	eax, 1
	test	al, al
	je	.L29
.L28:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L36
.L29:
	mov	DWORD PTR -48[rbp], -99
	mov	DWORD PTR -44[rbp], 40
	mov	DWORD PTR -40[rbp], 88
	mov	DWORD PTR -36[rbp], 10
	mov	DWORD PTR -32[rbp], 11111
	mov	DWORD PTR -28[rbp], 55
	mov	DWORD PTR -24[rbp], 36
	mov	DWORD PTR -20[rbp], 9
	mov	DWORD PTR -16[rbp], 20
	mov	DWORD PTR -64[rbp], 9
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -72[rbp], 1
.L31:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L32
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L33
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L36
.L33:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -64[rbp]
	lea	rax, -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	findElementWithMaxSumOfNumbers
	mov	DWORD PTR -60[rbp], eax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -68[rbp], 1
.L34:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L35
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L36:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"25136619.c"
	.text
	.align	2
	.global	sumOfNumbers
	.syntax unified
	.arm
	.fpu softvfp
	.type	sumOfNumbers, %function
sumOfNumbers:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r1, [fp, #-8]
	ldr	r3, .L5
	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, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, .L5
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	1717986919
	.size	sumOfNumbers, .-sumOfNumbers
	.align	2
	.global	findElementWithMaxSumOfNumbers
	.syntax unified
	.arm
	.fpu softvfp
	.type	findElementWithMaxSumOfNumbers, %function
findElementWithMaxSumOfNumbers:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mvn	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L8
.L11:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	sumOfNumbers
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L9
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
.L9:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L10:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L8:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	findElementWithMaxSumOfNumbers, .-findElementWithMaxSumOfNumbers
	.section	.rodata
	.align	2
.LC5:
	.ascii	"bad\000"
	.text
	.align	2
	.global	checkThisTask
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkThisTask, %function
checkThisTask:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L20
	bl	printf
	mov	r3, #1
	b	.L15
.L14:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	findElementWithMaxSumOfNumbers
	str	r0, [fp, #-8]
	mov	r3, #1
	strb	r3, [fp, #-17]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L16
.L19:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L17
	mov	r3, #0
	strb	r3, [fp, #-17]
	b	.L18
.L17:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L19
.L18:
	ldr	r0, [fp, #-12]
	bl	free
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.size	checkThisTask, .-checkThisTask
	.section	.rodata
	.align	2
.LC0:
	.word	123
	.word	454
	.word	-545
	.word	77
	.word	80
	.align	2
.LC1:
	.word	-545
	.word	77
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	standartTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	standartTest, %function
standartTest:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L25+4
	sub	ip, fp, #28
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r2, .L25+8
	sub	r3, fp, #36
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r2, fp, #36
	sub	r3, fp, #28
	mov	r1, #5
	mov	r0, r3
	bl	checkThisTask
	mov	r3, r0
	ldr	r2, .L25
	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}
.L26:
	.align	2
.L25:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.size	standartTest, .-standartTest
	.section	.rodata
	.align	2
.LC2:
	.word	5
	.word	140
	.word	50
	.word	500
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testWithEqualNumbers
	.syntax unified
	.arm
	.fpu softvfp
	.type	testWithEqualNumbers, %function
testWithEqualNumbers:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L30+4
	sub	ip, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L30+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r2, fp, #24
	sub	r3, fp, #40
	mov	r1, #4
	mov	r0, r3
	bl	checkThisTask
	mov	r3, r0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC7
	.word	.LC2
	.size	testWithEqualNumbers, .-testWithEqualNumbers
	.section	.rodata
	.align	2
.LC3:
	.word	-300
	.word	-10
	.word	-567
	.word	-8
	.word	-9
	.word	0
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testWithNegativeNumbers
	.syntax unified
	.arm
	.fpu softvfp
	.type	testWithNegativeNumbers, %function
testWithNegativeNumbers:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L35+4
	sub	ip, fp, #32
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #40
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r3, .L35+8
	str	r3, [fp, #-40]
	sub	r2, fp, #40
	sub	r3, fp, #32
	mov	r1, #6
	mov	r0, r3
	bl	checkThisTask
	mov	r3, r0
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC8
	.word	.LC3
	.word	-567
	.size	testWithNegativeNumbers, .-testWithNegativeNumbers
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Tests failed\000"
	.align	2
.LC10:
	.ascii	"Starting array: \000"
	.align	2
.LC11:
	.ascii	"%d \000"
	.align	2
.LC12:
	.ascii	"\012Elements with the largest summ of numbers: \000"
	.align	2
.LC4:
	.word	-99
	.word	40
	.word	88
	.word	10
	.word	11111
	.word	55
	.word	36
	.word	9
	.word	20
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	standartTest
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L38
	bl	testWithEqualNumbers
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L38
	bl	testWithNegativeNumbers
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L39
.L38:
	ldr	r0, .L48+4
	bl	printf
	mvn	r3, #0
	b	.L46
.L39:
	ldr	r3, .L48+8
	sub	ip, fp, #44
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #9
	str	r3, [fp, #-56]
	ldr	r0, .L48+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L41
.L42:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	mov	r1, r3
	ldr	r0, .L48+16
	bl	printf
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L41:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L42
	ldr	r3, [fp, #-56]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L43
	ldr	r0, .L48+20
	bl	printf
	mvn	r3, #0
	b	.L46
.L43:
	ldr	r0, .L48+24
	bl	printf
	sub	r3, fp, #44
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	findElementWithMaxSumOfNumbers
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L44
.L45:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L48+16
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L44:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L45
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-52]
	bl	free
	mov	r3, #0
.L46:
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC13
	.word	.LC9
	.word	.LC4
	.word	.LC10
	.word	.LC11
	.word	.LC5
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
