	.file	"211080546.c"
	.intel_syntax noprefix
	.text
	.globl	funct
	.type	funct, @function
funct:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	movsd	QWORD PTR -40[rbp], xmm0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L12:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L3
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm2, QWORD PTR [rax]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR -40[rbp]
	comisd	xmm0, xmm1
	jb	.L4
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	subsd	xmm0, xmm1
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jb	.L4
	mov	eax, 0
	jmp	.L7
.L4:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm2, QWORD PTR [rax]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR -40[rbp]
	comisd	xmm0, xmm1
	jb	.L8
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	subsd	xmm0, xmm1
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jb	.L8
	mov	eax, 0
	jmp	.L7
.L8:
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L11
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L12
	mov	eax, 1
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	funct, .-funct
	.section	.rodata
.LC1:
	.string	"Enter input array"
.LC2:
	.string	"%d"
.LC3:
	.string	"Array inputed is"
.LC4:
	.string	"%d "
.LC6:
	.string	"Final output is : "
.LC7:
	.string	"%f "
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 296
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	QWORD PTR -328[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -140[rbp], eax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -136[rbp], eax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -140[rbp]
	imul	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	r12d, DWORD PTR -136[rbp]
	movsx	rax, r12d
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	mov	r13d, DWORD PTR -140[rbp]
	movsx	rax, r13d
	mov	r14, rax
	mov	r15d, 0
	mov	rbx, QWORD PTR -224[rbp]
	mov	rsi, QWORD PTR -216[rbp]
	mov	rdx, rsi
	imul	rdx, r14
	mov	rax, rbx
	imul	rax, r15
	lea	rcx, [rdx+rax]
	mov	rax, rbx
	mul	r14
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rax, r12d
	sub	rax, 1
	mov	QWORD PTR -96[rbp], rax
	movsx	rax, r12d
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	movsx	rax, r12d
	lea	rbx, 0[0+rax*8]
	movsx	rax, r13d
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	movsx	rax, r12d
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	movsx	rax, r13d
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	mov	rsi, QWORD PTR -240[rbp]
	mov	rdi, QWORD PTR -232[rbp]
	mov	rdx, rdi
	mov	r8, QWORD PTR -256[rbp]
	mov	r9, QWORD PTR -248[rbp]
	imul	rdx, r8
	mov	rax, r9
	imul	rax, rsi
	lea	rcx, [rdx+rax]
	mov	rax, rsi
	mul	r8
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rdx, r12d
	movsx	rax, r13d
	imul	rax, rdx
	sal	rax, 3
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], 0
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -80[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -304[rbp], rdx
	mov	QWORD PTR -296[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -320[rbp], rdx
	mov	QWORD PTR -312[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L18:
	cmp	rsp, rdx
	je	.L19
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L18
.L19:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L20
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L20:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -184[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -184[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -184[rbp], 1
.L21:
	mov	eax, DWORD PTR -184[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L22
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -180[rbp], 0
	jmp	.L23
.L26:
	mov	DWORD PTR -176[rbp], 0
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -176[rbp], 1
.L24:
	mov	eax, DWORD PTR -176[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jl	.L25
	add	DWORD PTR -180[rbp], 1
.L23:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L26
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -172[rbp], 0
	jmp	.L27
.L30:
	mov	DWORD PTR -168[rbp], 0
	jmp	.L28
.L29:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -168[rbp], 1
.L28:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jl	.L29
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -172[rbp], 1
.L27:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L30
	movsx	rdx, r12d
	movsx	rax, r13d
	imul	rax, rdx
	sal	rax, 3
	mov	edx, 950
	mov	rsi, rax
	mov	edi, 0
	call	shmget@PLT
	mov	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -188[rbp], 1
	jmp	.L31
.L50:
	mov	DWORD PTR -164[rbp], 0
	jmp	.L32
.L45:
	mov	DWORD PTR -160[rbp], 0
	jmp	.L33
.L44:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -128[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -120[rbp], xmm0
	call	fork@PLT
	test	eax, eax
	jne	.L34
	cmp	DWORD PTR -164[rbp], 0
	jle	.L35
	cmp	DWORD PTR -160[rbp], 0
	jle	.L35
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 2
	sub	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -120[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	xmm1, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -128[rbp], xmm0
.L35:
	cmp	DWORD PTR -164[rbp], 0
	jle	.L36
	cmp	DWORD PTR -160[rbp], 0
	js	.L36
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -120[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	xmm1, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -128[rbp], xmm0
.L36:
	cmp	DWORD PTR -164[rbp], 0
	jle	.L37
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 1
	cmp	DWORD PTR -136[rbp], eax
	jle	.L37
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -120[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	xmm1, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -128[rbp], xmm0
.L37:
	cmp	DWORD PTR -164[rbp], 0
	js	.L38
	cmp	DWORD PTR -160[rbp], 0
	jle	.L38
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 2
	sub	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -120[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	xmm1, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -128[rbp], xmm0
.L38:
	cmp	DWORD PTR -164[rbp], 0
	js	.L39
	cmp	DWORD PTR -160[rbp], 0
	js	.L39
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -120[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	xmm1, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -128[rbp], xmm0
.L39:
	cmp	DWORD PTR -164[rbp], 0
	js	.L40
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 1
	cmp	DWORD PTR -136[rbp], eax
	jle	.L40
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -120[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	xmm1, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -128[rbp], xmm0
.L40:
	mov	eax, DWORD PTR -164[rbp]
	add	eax, 1
	cmp	DWORD PTR -140[rbp], eax
	jle	.L41
	cmp	DWORD PTR -160[rbp], 0
	jle	.L41
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 2
	sub	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -120[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	xmm1, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -128[rbp], xmm0
.L41:
	mov	eax, DWORD PTR -164[rbp]
	add	eax, 1
	cmp	DWORD PTR -140[rbp], eax
	jle	.L42
	cmp	DWORD PTR -160[rbp], 0
	js	.L42
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -120[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	xmm1, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -128[rbp], xmm0
.L42:
	mov	eax, DWORD PTR -164[rbp]
	add	eax, 1
	cmp	DWORD PTR -140[rbp], eax
	jle	.L43
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 1
	cmp	DWORD PTR -136[rbp], eax
	jle	.L43
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -120[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	xmm1, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -128[rbp], xmm0
.L43:
	shr	rbx, 3
	mov	rcx, rbx
	movsd	xmm0, QWORD PTR -120[rbp]
	divsd	xmm0, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -160[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	movsd	QWORD PTR [rax+rdx*8], xmm0
	mov	edi, 0
	call	exit@PLT
.L34:
	mov	edi, 0
	call	wait@PLT
	add	DWORD PTR -160[rbp], 1
.L33:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jl	.L44
	add	DWORD PTR -164[rbp], 1
.L32:
	mov	eax, DWORD PTR -164[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L45
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -136[rbp]
	mov	ecx, DWORD PTR -140[rbp]
	movq	xmm0, rsi
	mov	esi, ecx
	mov	rdi, rax
	call	funct
	mov	DWORD PTR -188[rbp], eax
	cmp	DWORD PTR -188[rbp], 1
	jne	.L31
	mov	DWORD PTR -156[rbp], 0
	jmp	.L46
.L49:
	mov	DWORD PTR -152[rbp], 0
	jmp	.L47
.L48:
	mov	rcx, rbx
	shr	rcx, 3
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -156[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	movsd	xmm0, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -156[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	cvttsd2si	eax, xmm0
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -152[rbp], 1
.L47:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jl	.L48
	add	DWORD PTR -156[rbp], 1
.L46:
	mov	eax, DWORD PTR -156[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L49
.L31:
	cmp	DWORD PTR -188[rbp], 0
	jne	.L50
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -148[rbp], 0
	jmp	.L51
.L54:
	mov	DWORD PTR -144[rbp], 0
	jmp	.L52
.L53:
	mov	rcx, rbx
	shr	rcx, 3
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -144[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	rax, QWORD PTR [rax+rdx*8]
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -144[rbp], 1
.L52:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jl	.L53
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -148[rbp], 1
.L51:
	mov	eax, DWORD PTR -148[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L54
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	shmdt@PLT
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	mov	eax, 0
	mov	rsp, QWORD PTR -328[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1072693248
	.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	"211080546.c"
	.text
	.global	__aeabi_dsub
	.global	__aeabi_dcmpge
	.align	2
	.global	funct
	.syntax unified
	.arm
	.fpu softvfp
	.type	funct, %function
funct:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L12:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L3
.L11:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldmib	fp, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	mov	r3, #0
	b	.L7
.L4:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldmib	fp, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	mov	r3, #0
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L12
	mov	r3, #1
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	funct, .-funct
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter input array\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Array inputed is\000"
	.align	2
.LC3:
	.ascii	"%d \000"
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.align	2
.LC4:
	.ascii	"Final output is : \000"
	.align	2
.LC5:
	.ascii	"%f \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #136
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r9, r3
	ldr	r3, [fp, #-156]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-156]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-156]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-92]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-88]
	ldr	r7, [fp, #-92]
	mov	r3, r7
	mov	r4, r3
	mov	r5, #0
	ldr	r8, [fp, #-96]
	mov	r3, r8
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	sub	r3, r7, #1
	str	r3, [fp, #-84]
	mov	r3, r7
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, r7
	lsl	r6, r3, #3
	sub	r3, r8, #1
	str	r3, [fp, #-80]
	mov	r3, r7
	mov	r4, r3
	mov	r5, #0
	mov	r3, r8
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r3, r7
	mov	r2, r8
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	ip, [fp, #-96]
	sub	r3, ip, #1
	str	r3, [fp, #-76]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L18
.L19:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-140]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L18:
	ldr	r2, [fp, #-140]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L19
	ldr	r0, .L54+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L20
.L23:
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L21
.L22:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-136]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L54+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L21:
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L20:
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L23
	ldr	r0, .L54+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L24
.L27:
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L25
.L26:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-128]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L54+16
	bl	printf
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L25:
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L26
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L24:
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L27
	mov	r3, r7
	mov	r2, r8
	mul	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, .L54+20
	mov	r1, r3
	mov	r0, #0
	bl	shmget
	str	r0, [fp, #-68]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-68]
	bl	shmat
	str	r0, [fp, #-64]
	mov	r3, #1
	str	r3, [fp, #-144]
	b	.L28
.L47:
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L29
.L42:
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L30
.L41:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	ble	.L32
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	ble	.L32
	ldr	r3, [fp, #-120]
	sub	r2, r3, #1
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L54+24
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L32:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	ble	.L33
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	blt	.L33
	ldr	r3, [fp, #-120]
	sub	r2, r3, #1
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L54+24
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L33:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	ble	.L34
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	ble	.L34
	ldr	r3, [fp, #-120]
	sub	r2, r3, #1
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L54+24
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L34:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	blt	.L35
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	ble	.L35
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-120]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L54+24
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L35:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	blt	.L36
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	blt	.L36
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-120]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L54+24
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L36:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	blt	.L37
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	ble	.L37
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-120]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L54+24
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L37:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	ble	.L38
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	ble	.L38
	ldr	r3, [fp, #-120]
	add	r2, r3, #1
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L54+24
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L38:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	ble	.L39
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	blt	.L39
	ldr	r3, [fp, #-120]
	add	r2, r3, #1
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L54+24
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L39:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	ble	.L40
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	ble	.L40
	ldr	r3, [fp, #-120]
	add	r2, r3, #1
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L54+24
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L40:
	lsr	r4, r6, #3
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [fp, #-64]
	ldr	r1, [fp, #-120]
	mul	ip, r1, r4
	ldr	r1, [fp, #-116]
	add	r1, ip, r1
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	mov	r0, #0
	bl	exit
.L31:
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L30:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L41
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L29:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L42
	ldr	r0, [fp, #-64]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-92]
	ldr	r1, [fp, #-96]
	bl	funct
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #1
	bne	.L28
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L43
.L46:
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L44
.L45:
	lsr	r3, r6, #3
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-112]
	mul	r1, r3, r1
	ldr	r3, [fp, #-108]
	add	r3, r1, r3
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-112]
	ldr	r0, [r1, r0, lsl #2]
	ldr	r1, [fp, #-108]
	lsl	r1, r1, #2
	add	r4, r0, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L44:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L45
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L43:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L46
.L28:
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bne	.L47
	ldr	r0, .L54+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L48
.L51:
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L49
.L50:
	lsr	r3, r6, #3
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-104]
	mul	r1, r3, r1
	ldr	r3, [fp, #-100]
	add	r3, r1, r3
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L54+32
	bl	printf
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L49:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L50
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L48:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L51
	ldr	r0, [fp, #-64]
	bl	shmdt
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-68]
	bl	shmctl
	mov	r3, #0
	mov	sp, r9
	ldr	r2, .L54
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	950
	.word	1072693248
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
