	.file	"995565.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 40000000
x:
	.zero	40000000
	.text
	.globl	sprinkle
	.type	sprinkle, @function
sprinkle:
.LFB6:
	.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
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC0[rip]
	divss	xmm0, xmm1
	movaps	xmm1, xmm0
	addss	xmm1, xmm0
	movss	xmm0, DWORD PTR .LC1[rip]
	subss	xmm0, xmm1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	movss	DWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sprinkle, .-sprinkle
	.globl	alg1
	.type	alg1, @function
alg1:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L5
.L12:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L6
.L11:
	pxor	xmm0, xmm0
	movss	DWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	movss	xmm1, DWORD PTR -8[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L7:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jle	.L8
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L9
	movss	xmm0, DWORD PTR -8[rbp]
	movss	DWORD PTR -4[rbp], xmm0
.L9:
	add	DWORD PTR -16[rbp], 1
.L6:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L11
	add	DWORD PTR -20[rbp], 1
.L5:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L12
	movss	xmm0, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	alg1, .-alg1
	.globl	alg2
	.type	alg2, @function
alg2:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L16
.L21:
	pxor	xmm0, xmm0
	movss	DWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	movss	xmm1, DWORD PTR -8[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L18
	movss	xmm0, DWORD PTR -8[rbp]
	movss	DWORD PTR -4[rbp], xmm0
.L18:
	add	DWORD PTR -12[rbp], 1
.L17:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L20
	add	DWORD PTR -16[rbp], 1
.L16:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L21
	movss	xmm0, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	alg2, .-alg2
	.globl	cumvec
	.bss
	.align 32
	.type	cumvec, @object
	.size	cumvec, 40000004
cumvec:
	.zero	40000004
	.text
	.globl	alg2b
	.type	alg2b, @function
alg2b:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	pxor	xmm0, xmm0
	movss	DWORD PTR -16[rbp], xmm0
	lea	rax, cumvec[rip+4]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 4
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	mov	DWORD PTR -24[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -24[rbp], 1
.L25:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L26
	mov	DWORD PTR -24[rbp], 0
	jmp	.L27
.L32:
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L28
.L31:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	subss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	movss	xmm0, DWORD PTR -12[rbp]
	comiss	xmm0, DWORD PTR -16[rbp]
	jbe	.L29
	movss	xmm0, DWORD PTR -12[rbp]
	movss	DWORD PTR -16[rbp], xmm0
.L29:
	add	DWORD PTR -20[rbp], 1
.L28:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L31
	add	DWORD PTR -24[rbp], 1
.L27:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L32
	movss	xmm0, DWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	alg2b, .-alg2b
	.globl	maxfun
	.type	maxfun, @function
maxfun:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movss	DWORD PTR -4[rbp], xmm0
	movss	DWORD PTR -8[rbp], xmm1
	movss	xmm0, DWORD PTR -4[rbp]
	comiss	xmm0, DWORD PTR -8[rbp]
	jbe	.L41
	movss	xmm0, DWORD PTR -4[rbp]
	jmp	.L39
.L41:
	movss	xmm0, DWORD PTR -8[rbp]
.L39:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	maxfun, .-maxfun
	.globl	recmax
	.type	recmax, @function
recmax:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jle	.L43
	mov	eax, DWORD PTR .LC2[rip]
	jmp	.L44
.L43:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jne	.L45
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	movaps	xmm1, xmm0
	pxor	xmm0, xmm0
	call	maxfun
	movd	eax, xmm0
	jmp	.L44
.L45:
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -20[rbp], eax
	pxor	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR -24[rbp]
	movss	DWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L46
.L49:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	movss	xmm1, DWORD PTR -24[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR -24[rbp]
	comiss	xmm0, DWORD PTR -32[rbp]
	jbe	.L47
	movss	xmm0, DWORD PTR -24[rbp]
	movss	DWORD PTR -32[rbp], xmm0
.L47:
	sub	DWORD PTR -36[rbp], 1
.L46:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jge	.L49
	pxor	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR -24[rbp]
	movss	DWORD PTR -28[rbp], xmm0
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
	jmp	.L50
.L53:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	movss	xmm1, DWORD PTR -24[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR -24[rbp]
	comiss	xmm0, DWORD PTR -28[rbp]
	jbe	.L51
	movss	xmm0, DWORD PTR -24[rbp]
	movss	DWORD PTR -28[rbp], xmm0
.L51:
	add	DWORD PTR -36[rbp], 1
.L50:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jle	.L53
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	mov	edi, edx
	call	recmax
	movd	ebx, xmm0
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	recmax
	movd	eax, xmm0
	movd	xmm1, ebx
	movd	xmm0, eax
	call	maxfun
	movd	edx, xmm0
	movss	xmm0, DWORD PTR -32[rbp]
	addss	xmm0, DWORD PTR -28[rbp]
	movd	eax, xmm0
	movd	xmm1, edx
	movd	xmm0, eax
	call	maxfun
	movd	eax, xmm0
.L44:
	movd	xmm0, eax
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	recmax, .-recmax
	.globl	alg3
	.type	alg3, @function
alg3:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	mov	esi, eax
	mov	edi, 0
	call	recmax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	alg3, .-alg3
	.globl	alg4
	.type	alg4, @function
alg4:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	pxor	xmm0, xmm0
	movss	DWORD PTR -8[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L59
.L64:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L60
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
.L60:
	movss	xmm0, DWORD PTR -4[rbp]
	comiss	xmm0, DWORD PTR -8[rbp]
	jbe	.L62
	movss	xmm0, DWORD PTR -4[rbp]
	movss	DWORD PTR -8[rbp], xmm0
.L62:
	add	DWORD PTR -12[rbp], 1
.L59:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L64
	movss	xmm0, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	alg4, .-alg4
	.globl	alg4b
	.type	alg4b, @function
alg4b:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	pxor	xmm0, xmm0
	movss	DWORD PTR -8[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L69
.L76:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	pxor	xmm1, xmm1
	comiss	xmm0, xmm1
	jbe	.L80
	movss	xmm0, DWORD PTR -4[rbp]
	jmp	.L72
.L80:
	pxor	xmm0, xmm0
.L72:
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L81
	movss	xmm0, DWORD PTR -8[rbp]
	jmp	.L75
.L81:
	movss	xmm0, DWORD PTR -4[rbp]
.L75:
	movss	DWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L69:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L76
	movss	xmm0, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	alg4b, .-alg4b
	.globl	alg4c
	.type	alg4c, @function
alg4c:
.LFB15:
	.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
	pxor	xmm0, xmm0
	movss	DWORD PTR -8[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L83
.L84:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	mov	eax, DWORD PTR -4[rbp]
	pxor	xmm1, xmm1
	movd	xmm0, eax
	call	maxfun
	movd	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	movss	xmm0, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	maxfun
	movd	eax, xmm0
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L83:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L84
	movss	xmm0, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	alg4c, .-alg4c
	.section	.rodata
.LC5:
	.string	"%d\t%d\t%f\t%d\t%f\n"
	.align 8
.LC6:
	.string	" maxsum error: mismatch with alg4: %f\n"
.LC7:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.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
	jmp	.L87
.L99:
	mov	eax, 0
	call	sprinkle
	call	clock@PLT
	mov	DWORD PTR -16[rbp], eax
	movss	xmm0, DWORD PTR .LC3[rip]
	movss	DWORD PTR -20[rbp], xmm0
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 43
	ja	.L103
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L90[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L90[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L90:
	.long	.L103-.L90
	.long	.L96-.L90
	.long	.L95-.L90
	.long	.L94-.L90
	.long	.L93-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L92-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L103-.L90
	.long	.L91-.L90
	.long	.L89-.L90
	.text
.L96:
	mov	eax, 0
	call	alg1
	movd	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	jmp	.L97
.L95:
	mov	eax, 0
	call	alg2
	movd	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	jmp	.L97
.L92:
	mov	eax, 0
	call	alg2b
	movd	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	jmp	.L97
.L94:
	mov	eax, 0
	call	alg3
	movd	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	jmp	.L97
.L93:
	mov	eax, 0
	call	alg4
	movd	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	jmp	.L97
.L91:
	mov	eax, 0
	call	alg4b
	movd	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	jmp	.L97
.L89:
	mov	eax, 0
	call	alg4c
	movd	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	jmp	.L97
.L103:
	nop
.L97:
	call	clock@PLT
	mov	edx, DWORD PTR -16[rbp]
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -12[rbp]
	movss	xmm1, DWORD PTR .LC4[rip]
	divss	xmm0, xmm1
	cvtss2sd	xmm0, xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -20[rbp]
	movq	rsi, xmm2
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rsi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, 0
	call	alg4
	movd	eax, xmm0
	movd	xmm3, eax
	ucomiss	xmm3, DWORD PTR -20[rbp]
	jp	.L102
	movd	xmm4, eax
	comiss	xmm4, DWORD PTR -20[rbp]
	jne	.L102
	jmp	.L87
.L102:
	mov	eax, 0
	call	alg4
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, xmm0
	movq	rax, xmm5
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
.L87:
	lea	rax, -24[rbp]
	lea	rdx, n[rip]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L99
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L101
	call	__stack_chk_fail@PLT
.L101:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1325400064
	.align 4
.LC1:
	.long	1065353216
	.align 4
.LC2:
	.long	0
	.align 4
.LC3:
	.long	-1082130432
	.align 4
.LC4:
	.long	1232348160
	.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	"995565.c"
	.text
	.comm	n,4,4
	.comm	x,40000000,4
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fadd
	.global	__aeabi_fsub
	.align	2
	.global	sprinkle
	.syntax unified
	.arm
	.fpu softvfp
	.type	sprinkle, %function
sprinkle:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, #1325400064
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L4
	ldr	r3, [fp, #-8]
	str	r1, [r2, r3, lsl #2]	@ float
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L4+4
	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	x
	.word	n
	.size	sprinkle, .-sprinkle
	.global	__aeabi_fcmpgt
	.align	2
	.global	alg1
	.syntax unified
	.arm
	.fpu softvfp
	.type	alg1, %function
alg1:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L7
.L14:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	b	.L8
.L13:
	mov	r3, #0
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	b	.L9
.L10:
	ldr	r2, .L17
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L10
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-12]	@ float
	str	r3, [fp, #-8]	@ float
.L11:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L8:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L7:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-8]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	x
	.word	n
	.size	alg1, .-alg1
	.align	2
	.global	alg2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alg2, %function
alg2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L20
.L25:
	mov	r3, #0
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L21
.L24:
	ldr	r2, .L28
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-12]	@ float
	str	r3, [fp, #-8]	@ float
.L22:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L21:
	ldr	r3, .L28+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L24
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L20:
	ldr	r3, .L28+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-8]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	x
	.word	n
	.size	alg2, .-alg2
	.comm	cumvec,40000004,4
	.align	2
	.global	alg2b
	.syntax unified
	.arm
	.fpu softvfp
	.type	alg2b, %function
alg2b:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	mov	r3, #0
	str	r3, [fp, #-24]	@ float
	ldr	r3, .L41
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]	@ float
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L31
.L32:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r2, .L41+4
	ldr	r3, [fp, #-32]
	ldr	r1, [r2, r3, lsl #2]	@ float
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L31:
	ldr	r3, .L41+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L32
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L33
.L38:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	b	.L34
.L37:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r3, [fp, #-32]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-16]	@ float
	str	r3, [fp, #-24]	@ float
.L35:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L34:
	ldr	r3, .L41+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L37
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L33:
	ldr	r3, .L41+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L38
	ldr	r3, [fp, #-24]	@ float
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L42:
	.align	2
.L41:
	.word	cumvec+4
	.word	x
	.word	n
	.size	alg2b, .-alg2b
	.align	2
	.global	maxfun
	.syntax unified
	.arm
	.fpu softvfp
	.type	maxfun, %function
maxfun:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]	@ float
	str	r1, [fp, #-12]	@ float
	ldr	r1, [fp, #-12]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-8]	@ float
	b	.L47
.L49:
	ldr	r3, [fp, #-12]	@ float
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	maxfun, .-maxfun
	.align	2
	.global	recmax
	.syntax unified
	.arm
	.fpu softvfp
	.type	recmax, %function
recmax:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L51
	mov	r3, #0
	b	.L52
.L51:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bne	.L53
	ldr	r2, .L64
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	mov	r0, #0
	bl	maxfun
	mov	r3, r0
	b	.L52
.L53:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #-20]	@ float
	str	r3, [fp, #-28]	@ float
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-32]
	b	.L54
.L57:
	ldr	r2, .L64
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r1, [fp, #-28]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-20]	@ float
	str	r3, [fp, #-28]	@ float
.L55:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L54:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bge	.L57
	mov	r3, #0
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #-20]	@ float
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L58
.L61:
	ldr	r2, .L64
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r3, [fp, #-20]	@ float
	str	r3, [fp, #-24]	@ float
.L59:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L58:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L61
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r5, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-40]
	bl	recmax
	mov	r4, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	recmax
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	maxfun
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	maxfun
	mov	r3, r0
.L52:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L65:
	.align	2
.L64:
	.word	x
	.size	recmax, .-recmax
	.align	2
	.global	alg3
	.syntax unified
	.arm
	.fpu softvfp
	.type	alg3, %function
alg3:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L68
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, #0
	bl	recmax
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	n
	.size	alg3, .-alg3
	.global	__aeabi_fcmplt
	.align	2
	.global	alg4
	.syntax unified
	.arm
	.fpu softvfp
	.type	alg4, %function
alg4:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-12]	@ float
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L71
.L76:
	ldr	r2, .L80
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	mov	r1, #0
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
.L72:
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L74
	ldr	r3, [fp, #-8]	@ float
	str	r3, [fp, #-12]	@ float
.L74:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L71:
	ldr	r3, .L80+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L76
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	x
	.word	n
	.size	alg4, .-alg4
	.align	2
	.global	alg4b
	.syntax unified
	.arm
	.fpu softvfp
	.type	alg4b, %function
alg4b:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-12]	@ float
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L83
.L90:
	ldr	r2, .L96
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	mov	r1, #0
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L94
	ldr	r3, [fp, #-8]	@ float
	b	.L86
.L94:
	mov	r3, #0
.L86:
	str	r3, [fp, #-8]	@ float
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L95
	ldr	r3, [fp, #-12]	@ float
	b	.L89
.L95:
	ldr	r3, [fp, #-8]	@ float
.L89:
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L83:
	ldr	r3, .L96+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L90
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L97:
	.align	2
.L96:
	.word	x
	.word	n
	.size	alg4b, .-alg4b
	.align	2
	.global	alg4c
	.syntax unified
	.arm
	.fpu softvfp
	.type	alg4c, %function
alg4c:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-12]	@ float
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L99
.L100:
	ldr	r2, .L102
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	mov	r1, #0
	ldr	r0, [fp, #-8]	@ float
	bl	maxfun
	str	r0, [fp, #-8]	@ float
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	maxfun
	str	r0, [fp, #-12]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L99:
	ldr	r3, .L102+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L100
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	x
	.word	n
	.size	alg4c, .-alg4c
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\011%d\011%f\011%d\011%f\012\000"
	.global	__aeabi_fcmpeq
	.align	2
.LC1:
	.ascii	" maxsum error: mismatch with alg4: %f\012\000"
	.align	2
.LC2:
	.ascii	"%d %d\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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #48
	ldr	r3, .L122
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	b	.L105
.L117:
	bl	sprinkle
	bl	clock
	str	r0, [fp, #-32]
	ldr	r3, .L122+4
	str	r3, [fp, #-36]	@ float
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #42
	ldrls	pc, [pc, r3, asl #2]
	b	.L121
.L108:
	.word	.L114
	.word	.L113
	.word	.L112
	.word	.L111
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L110
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L109
	.word	.L107
.L114:
	bl	alg1
	str	r0, [fp, #-36]	@ float
	b	.L115
.L113:
	bl	alg2
	str	r0, [fp, #-36]	@ float
	b	.L115
.L110:
	bl	alg2b
	str	r0, [fp, #-36]	@ float
	b	.L115
.L112:
	bl	alg3
	str	r0, [fp, #-36]	@ float
	b	.L115
.L111:
	bl	alg4
	str	r0, [fp, #-36]	@ float
	b	.L115
.L109:
	bl	alg4b
	str	r0, [fp, #-36]	@ float
	b	.L115
.L107:
	bl	alg4c
	str	r0, [fp, #-36]	@ float
	b	.L115
.L121:
	nop
.L115:
	bl	clock
	mov	r2, r0
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r6, [fp, #-40]
	ldr	r3, .L122+8
	ldr	r7, [r3]
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L122+12
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	ldr	r3, [fp, #-28]
	str	r3, [sp, #8]
	stm	sp, {r4-r5}
	mov	r2, r7
	mov	r1, r6
	ldr	r0, .L122+16
	bl	printf
	bl	alg4
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L120
	b	.L105
.L120:
	bl	alg4
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L122+20
	bl	printf
.L105:
	sub	r3, fp, #40
	ldr	r2, .L122+8
	mov	r1, r3
	ldr	r0, .L122+24
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L117
	mov	r3, #0
	ldr	r2, .L122
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L119
	bl	__stack_chk_fail
.L119:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L123:
	.align	2
.L122:
	.word	.LC3
	.word	-1082130432
	.word	n
	.word	1232348160
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
