	.file	"75138733.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"error: %s\n"
	.text
	.type	error, @function
error:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
.LC1:
	.string	"xmalloc: zero size"
.LC2:
	.string	"xmalloc: out of memory"
	.text
	.type	xmalloc, @function
xmalloc:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	error
.L3:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	error
.L4:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	xmalloc, .-xmalloc
	.type	greater, @function
greater:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	QWORD PTR -16[rbp], xmm1
	movsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	jb	.L14
	mov	eax, 0
	jmp	.L9
.L14:
	movsd	xmm0, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	subsd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	comisd	xmm0, xmm1
	jbe	.L15
	mov	eax, 0
	jmp	.L9
.L15:
	mov	eax, 1
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	greater, .-greater
	.type	dist, @function
dist:
.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, 32
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	QWORD PTR -16[rbp], xmm1
	movsd	QWORD PTR -24[rbp], xmm2
	movsd	QWORD PTR -32[rbp], xmm3
	movsd	xmm0, QWORD PTR -24[rbp]
	movapd	xmm1, xmm0
	subsd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR -24[rbp]
	subsd	xmm0, QWORD PTR -8[rbp]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movapd	xmm2, xmm0
	subsd	xmm2, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR -32[rbp]
	subsd	xmm0, QWORD PTR -16[rbp]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dist, .-dist
	.section	.rodata
	.align 8
.LC5:
	.string	"gaussian_kernel: kernel not allocated"
	.align 8
.LC6:
	.string	"gaussian_kernel: sigma must be positive"
	.text
	.type	gaussian_kernel, @function
gaussian_kernel:
.LFB10:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	QWORD PTR -80[rbp], xmm1
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	cmp	QWORD PTR -56[rbp], 0
	jne	.L19
	lea	rdi, .LC5[rip]
	call	error
.L19:
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -72[rbp]
	jb	.L20
	lea	rdi, .LC6[rip]
	call	error
.L20:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L22
.L23:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -36[rbp]
	subsd	xmm0, QWORD PTR -80[rbp]
	divsd	xmm0, QWORD PTR -72[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	mulsd	xmm0, QWORD PTR -24[rbp]
	movq	rax, xmm0
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rbx, [rcx+rdx]
	movq	xmm0, rax
	call	exp@PLT
	movq	rax, xmm0
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR -32[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	add	DWORD PTR -36[rbp], 1
.L22:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L23
	movsd	xmm0, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	ja	.L29
	jmp	.L30
.L29:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	divsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -36[rbp], 1
.L26:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L27
.L30:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	gaussian_kernel, .-gaussian_kernel
	.section	.rodata
	.align 8
.LC8:
	.string	"gaussian_filter: sigma must be positive"
	.align 8
.LC9:
	.string	"gaussian_filter: invalid image"
	.text
	.type	gaussian_filter, @function
gaussian_filter:
.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, 112
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	DWORD PTR -96[rbp], edx
	movsd	QWORD PTR -104[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -104[rbp]
	jb	.L32
	lea	rdi, .LC8[rip]
	call	error
.L32:
	cmp	QWORD PTR -88[rbp], 0
	je	.L34
	cmp	DWORD PTR -92[rbp], 0
	jle	.L34
	cmp	DWORD PTR -96[rbp], 0
	jg	.L35
.L34:
	lea	rdi, .LC9[rip]
	call	error
.L35:
	mov	eax, DWORD PTR -92[rbp]
	imul	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -92[rbp]
	imul	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -24[rbp], rax
	movsd	xmm0, QWORD PTR .LC10[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC11[rip]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movq	xmm2, rax
	mulsd	xmm2, QWORD PTR -104[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	ceil@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, eax
	add	eax, 1
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -8[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rcx
	mov	esi, edx
	mov	rdi, rax
	call	gaussian_kernel
	mov	eax, DWORD PTR -92[rbp]
	add	eax, eax
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -96[rbp]
	add	eax, eax
	mov	DWORD PTR -44[rbp], eax
	mov	DWORD PTR -72[rbp], 0
	jmp	.L36
.L46:
	mov	DWORD PTR -68[rbp], 0
	jmp	.L37
.L45:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	mov	DWORD PTR -64[rbp], 0
	jmp	.L38
.L44:
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -56[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	jmp	.L39
.L40:
	mov	eax, DWORD PTR -48[rbp]
	add	DWORD PTR -60[rbp], eax
.L39:
	cmp	DWORD PTR -60[rbp], 0
	js	.L40
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -48[rbp]
	sub	DWORD PTR -60[rbp], eax
.L41:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jge	.L42
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L43
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -60[rbp], eax
.L43:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -40[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	add	DWORD PTR -64[rbp], 1
.L38:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L44
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -68[rbp], 1
.L37:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L45
	add	DWORD PTR -72[rbp], 1
.L36:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L46
	mov	DWORD PTR -72[rbp], 0
	jmp	.L47
.L57:
	mov	DWORD PTR -68[rbp], 0
	jmp	.L48
.L56:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	mov	DWORD PTR -64[rbp], 0
	jmp	.L49
.L55:
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -56[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	jmp	.L50
.L51:
	mov	eax, DWORD PTR -44[rbp]
	add	DWORD PTR -60[rbp], eax
.L50:
	cmp	DWORD PTR -60[rbp], 0
	js	.L51
	jmp	.L52
.L53:
	mov	eax, DWORD PTR -44[rbp]
	sub	DWORD PTR -60[rbp], eax
.L52:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jge	.L53
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L54
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -60[rbp], eax
.L54:
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -40[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	add	DWORD PTR -64[rbp], 1
.L49:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L55
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -68[rbp], 1
.L48:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L56
	add	DWORD PTR -72[rbp], 1
.L47:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L57
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	gaussian_filter, .-gaussian_filter
	.section	.rodata
.LC12:
	.string	"chain: invalid input"
	.align 8
.LC13:
	.string	"chain: one of the points is out the image"
	.text
	.type	chain, @function
chain:
.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, 64
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -40[rbp], rcx
	mov	QWORD PTR -48[rbp], r8
	mov	QWORD PTR -56[rbp], r9
	cmp	QWORD PTR -32[rbp], 0
	je	.L61
	cmp	QWORD PTR -40[rbp], 0
	je	.L61
	cmp	QWORD PTR -48[rbp], 0
	je	.L61
	cmp	QWORD PTR -56[rbp], 0
	jne	.L62
.L61:
	lea	rdi, .LC12[rip]
	call	error
.L62:
	cmp	DWORD PTR -20[rbp], 0
	js	.L63
	cmp	DWORD PTR -24[rbp], 0
	js	.L63
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR 24[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L63
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR 24[rbp]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L64
.L63:
	lea	rdi, .LC13[rip]
	call	error
.L64:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jne	.L65
	pxor	xmm0, xmm0
	jmp	.L66
.L65:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	ja	.L67
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	ja	.L67
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	ja	.L67
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	jbe	.L76
.L67:
	pxor	xmm0, xmm0
	jmp	.L66
.L76:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mulsd	xmm1, QWORD PTR -8[rbp]
	movapd	xmm2, xmm0
	subsd	xmm2, xmm1
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mulsd	xmm1, QWORD PTR -8[rbp]
	subsd	xmm0, xmm1
	mulsd	xmm2, xmm0
	movapd	xmm1, xmm2
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	jb	.L77
	pxor	xmm0, xmm0
	jmp	.L66
.L77:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mulsd	xmm1, QWORD PTR -8[rbp]
	subsd	xmm0, xmm1
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jb	.L78
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm2, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movapd	xmm3, xmm2
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	dist
	movapd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	jmp	.L66
.L78:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm2, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movapd	xmm3, xmm2
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	dist
	movapd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC15[rip]
	divsd	xmm0, xmm1
.L66:
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	chain, .-chain
	.section	.rodata
	.align 8
.LC16:
	.string	"compute_gradient: invalid input"
	.text
	.type	compute_gradient, @function
compute_gradient:
.LFB13:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	DWORD PTR -68[rbp], r8d
	mov	DWORD PTR -72[rbp], r9d
	cmp	QWORD PTR -40[rbp], 0
	je	.L80
	cmp	QWORD PTR -48[rbp], 0
	je	.L80
	cmp	QWORD PTR -56[rbp], 0
	je	.L80
	cmp	QWORD PTR -64[rbp], 0
	jne	.L81
.L80:
	lea	rdi, .LC16[rip]
	call	error
.L81:
	mov	DWORD PTR -24[rbp], 1
	jmp	.L82
.L85:
	mov	DWORD PTR -20[rbp], 1
	jmp	.L83
.L84:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -68[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -68[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	subsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	subsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm1, xmm0
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm2, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	movq	rax, xmm1
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, edx
	imul	ecx, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR -24[rbp]
	add	edx, ecx
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rbx, [rcx+rdx]
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -20[rbp], 1
.L83:
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jl	.L84
	add	DWORD PTR -24[rbp], 1
.L82:
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	jl	.L85
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	compute_gradient, .-compute_gradient
	.section	.rodata
	.align 8
.LC17:
	.string	"compute_edge_points: invalid input"
	.text
	.type	compute_edge_points, @function
compute_edge_points:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	QWORD PTR -136[rbp], rdx
	mov	QWORD PTR -144[rbp], rcx
	mov	QWORD PTR -152[rbp], r8
	mov	DWORD PTR -156[rbp], r9d
	cmp	QWORD PTR -120[rbp], 0
	je	.L87
	cmp	QWORD PTR -128[rbp], 0
	je	.L87
	cmp	QWORD PTR -136[rbp], 0
	je	.L87
	cmp	QWORD PTR -144[rbp], 0
	je	.L87
	cmp	QWORD PTR -152[rbp], 0
	jne	.L88
.L87:
	lea	rdi, .LC17[rip]
	call	error
.L88:
	mov	DWORD PTR -100[rbp], 0
	jmp	.L89
.L90:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR .LC15[rip]
	movsd	QWORD PTR [rax], xmm0
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -120[rbp]
	add	rdx, rcx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR [rdx], xmm0
	add	DWORD PTR -100[rbp], 1
.L89:
	mov	eax, DWORD PTR -156[rbp]
	imul	eax, DWORD PTR 16[rbp]
	cmp	DWORD PTR -100[rbp], eax
	jl	.L90
	mov	DWORD PTR -108[rbp], 2
	jmp	.L91
.L100:
	mov	DWORD PTR -104[rbp], 2
	jmp	.L92
.L99:
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	mov	eax, DWORD PTR -104[rbp]
	imul	eax, DWORD PTR -156[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -88[rbp], xmm0
	mov	eax, DWORD PTR -108[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -104[rbp]
	imul	eax, DWORD PTR -156[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -80[rbp], xmm0
	mov	eax, DWORD PTR -108[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -104[rbp]
	imul	eax, DWORD PTR -156[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -72[rbp], xmm0
	mov	eax, DWORD PTR -104[rbp]
	add	eax, 1
	imul	eax, DWORD PTR -156[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -64[rbp], xmm0
	mov	eax, DWORD PTR -104[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -156[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -56[rbp], xmm0
	mov	eax, DWORD PTR -104[rbp]
	imul	eax, DWORD PTR -156[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movq	xmm1, QWORD PTR .LC18[rip]
	andpd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	mov	eax, DWORD PTR -104[rbp]
	imul	eax, DWORD PTR -156[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movq	xmm1, QWORD PTR .LC18[rip]
	andpd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	xmm0, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -88[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	greater
	test	eax, eax
	je	.L93
	movsd	xmm0, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -72[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	greater
	test	eax, eax
	jne	.L93
	movsd	xmm0, QWORD PTR -48[rbp]
	comisd	xmm0, QWORD PTR -40[rbp]
	jb	.L93
	mov	DWORD PTR -96[rbp], 1
	jmp	.L95
.L93:
	movsd	xmm0, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -88[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	greater
	test	eax, eax
	je	.L95
	movsd	xmm0, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -64[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	greater
	test	eax, eax
	jne	.L95
	movsd	xmm0, QWORD PTR -40[rbp]
	comisd	xmm0, QWORD PTR -48[rbp]
	jb	.L95
	mov	DWORD PTR -92[rbp], 1
.L95:
	cmp	DWORD PTR -96[rbp], 0
	jg	.L97
	cmp	DWORD PTR -92[rbp], 0
	jle	.L98
.L97:
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, DWORD PTR -96[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -104[rbp]
	sub	eax, DWORD PTR -92[rbp]
	imul	eax, DWORD PTR -156[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -104[rbp]
	imul	eax, DWORD PTR -156[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -24[rbp], xmm0
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -96[rbp]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	imul	eax, DWORD PTR -156[rbp]
	add	eax, ecx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movapd	xmm1, xmm0
	subsd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR .LC19[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -32[rbp]
	subsd	xmm1, QWORD PTR -24[rbp]
	subsd	xmm1, QWORD PTR -24[rbp]
	addsd	xmm1, QWORD PTR -16[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -108[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -96[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -104[rbp]
	imul	eax, DWORD PTR -156[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -104[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -92[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -104[rbp]
	imul	eax, DWORD PTR -156[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
.L98:
	add	DWORD PTR -104[rbp], 1
.L92:
	mov	eax, DWORD PTR 16[rbp]
	sub	eax, 2
	cmp	DWORD PTR -104[rbp], eax
	jl	.L99
	add	DWORD PTR -108[rbp], 1
.L91:
	mov	eax, DWORD PTR -156[rbp]
	sub	eax, 2
	cmp	DWORD PTR -108[rbp], eax
	jl	.L100
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	compute_edge_points, .-compute_edge_points
	.section	.rodata
	.align 8
.LC20:
	.string	"chain_edge_points: invalid input"
	.text
	.type	chain_edge_points, @function
chain_edge_points:
.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, 112
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -96[rbp], rcx
	mov	QWORD PTR -104[rbp], r8
	mov	QWORD PTR -112[rbp], r9
	cmp	QWORD PTR -72[rbp], 0
	je	.L104
	cmp	QWORD PTR -80[rbp], 0
	je	.L104
	cmp	QWORD PTR -88[rbp], 0
	je	.L104
	cmp	QWORD PTR -96[rbp], 0
	je	.L104
	cmp	QWORD PTR -104[rbp], 0
	je	.L104
	cmp	QWORD PTR -112[rbp], 0
	jne	.L105
.L104:
	lea	rdi, .LC20[rip]
	call	error
.L105:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L106
.L107:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -72[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -52[rbp], 1
.L106:
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR 24[rbp]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L107
	mov	DWORD PTR -60[rbp], 2
	jmp	.L108
.L131:
	mov	DWORD PTR -56[rbp], 2
	jmp	.L109
.L130:
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, DWORD PTR 16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jb	.L110
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, DWORD PTR 16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jb	.L110
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, DWORD PTR 16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -44[rbp], -1
	mov	DWORD PTR -40[rbp], -1
	mov	DWORD PTR -52[rbp], -2
	jmp	.L113
.L120:
	mov	DWORD PTR -48[rbp], -2
	jmp	.L114
.L119:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	imul	eax, DWORD PTR 16[rbp]
	add	eax, ecx
	mov	DWORD PTR -28[rbp], eax
	mov	r9, QWORD PTR -112[rbp]
	mov	r8, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, DWORD PTR 24[rbp]
	push	rdi
	mov	edi, DWORD PTR 16[rbp]
	push	rdi
	mov	edi, eax
	call	chain
	add	rsp, 16
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, QWORD PTR -24[rbp]
	jbe	.L115
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -44[rbp], eax
.L115:
	movsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L117
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -40[rbp], eax
.L117:
	add	DWORD PTR -48[rbp], 1
.L114:
	cmp	DWORD PTR -48[rbp], 2
	jle	.L119
	add	DWORD PTR -52[rbp], 1
.L113:
	cmp	DWORD PTR -52[rbp], 2
	jle	.L120
	cmp	DWORD PTR -44[rbp], 0
	js	.L121
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	je	.L121
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	js	.L122
	mov	r9, QWORD PTR -112[rbp]
	mov	r8, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, DWORD PTR 24[rbp]
	push	rdi
	mov	edi, DWORD PTR 16[rbp]
	push	rdi
	mov	edi, eax
	call	chain
	add	rsp, 16
	movsd	xmm1, QWORD PTR -24[rbp]
	comisd	xmm1, xmm0
	jbe	.L121
.L122:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L124
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
.L124:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR [rdx], eax
	cmp	DWORD PTR -32[rbp], 0
	js	.L125
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
.L125:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rdx], eax
.L121:
	cmp	DWORD PTR -40[rbp], 0
	js	.L110
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -40[rbp], eax
	je	.L110
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	js	.L126
	mov	r9, QWORD PTR -112[rbp]
	mov	r8, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	esi, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, DWORD PTR 24[rbp]
	push	rdi
	mov	edi, DWORD PTR 16[rbp]
	push	rdi
	mov	edi, eax
	call	chain
	add	rsp, 16
	movq	rax, xmm0
	movq	xmm2, rax
	comisd	xmm2, QWORD PTR -16[rbp]
	jbe	.L110
.L126:
	cmp	DWORD PTR -32[rbp], 0
	js	.L128
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
.L128:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L129
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
.L129:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
.L110:
	add	DWORD PTR -56[rbp], 1
.L109:
	mov	eax, DWORD PTR 24[rbp]
	sub	eax, 2
	cmp	DWORD PTR -56[rbp], eax
	jl	.L130
	add	DWORD PTR -60[rbp], 1
.L108:
	mov	eax, DWORD PTR 16[rbp]
	sub	eax, 2
	cmp	DWORD PTR -60[rbp], eax
	jl	.L131
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	chain_edge_points, .-chain_edge_points
	.section	.rodata
	.align 8
.LC21:
	.string	"thresholds_with_hysteresis: invalid input"
	.text
	.type	thresholds_with_hysteresis, @function
thresholds_with_hysteresis:
.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, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	DWORD PTR -64[rbp], r8d
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	QWORD PTR -80[rbp], xmm1
	cmp	QWORD PTR -40[rbp], 0
	je	.L137
	cmp	QWORD PTR -48[rbp], 0
	je	.L137
	cmp	QWORD PTR -56[rbp], 0
	jne	.L138
.L137:
	lea	rdi, .LC21[rip]
	call	error
.L138:
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L139
.L140:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -20[rbp], 1
.L139:
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L140
	mov	DWORD PTR -20[rbp], 0
	jmp	.L141
.L156:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L142
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L143
.L142:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L143
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	comisd	xmm0, QWORD PTR -72[rbp]
	jb	.L143
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L145
.L150:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -80[rbp]
	comisd	xmm0, xmm1
	jbe	.L164
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	jmp	.L148
.L164:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L148:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
.L145:
	cmp	DWORD PTR -16[rbp], 0
	js	.L149
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L149
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L150
.L149:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L151
.L155:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -80[rbp]
	comisd	xmm0, xmm1
	jbe	.L165
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	jmp	.L154
.L165:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L154:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
.L151:
	cmp	DWORD PTR -16[rbp], 0
	js	.L143
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L143
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L155
.L143:
	add	DWORD PTR -20[rbp], 1
.L141:
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L156
	mov	DWORD PTR -20[rbp], 0
	jmp	.L157
.L160:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L158
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L159
.L158:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L159
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -48[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L159:
	add	DWORD PTR -20[rbp], 1
.L157:
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L160
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	thresholds_with_hysteresis, .-thresholds_with_hysteresis
	.type	list_chained_edge_points, @function
list_chained_edge_points:
.LFB17:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	QWORD PTR -64[rbp], r9
	mov	eax, DWORD PTR 40[rbp]
	imul	eax, DWORD PTR 48[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	xmalloc
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR 40[rbp]
	imul	eax, DWORD PTR 48[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	xmalloc
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR 40[rbp]
	imul	eax, DWORD PTR 48[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	xmalloc
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L167
.L174:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR 16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L168
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L169
.L168:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L170
.L172:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
.L170:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR 16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L173
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L172
.L173:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR 24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 3
	add	rax, rcx
	movsd	xmm0, QWORD PTR [rdx]
	movsd	QWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR 32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 3
	add	rax, rcx
	movsd	xmm0, QWORD PTR [rdx]
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR 16[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L173
.L169:
	add	DWORD PTR -12[rbp], 1
.L167:
	mov	eax, DWORD PTR 40[rbp]
	imul	eax, DWORD PTR 48[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L174
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	list_chained_edge_points, .-list_chained_edge_points
	.globl	devernay
	.type	devernay, @function
devernay:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -96[rbp], rcx
	mov	QWORD PTR -104[rbp], r8
	mov	QWORD PTR -112[rbp], r9
	movsd	QWORD PTR -120[rbp], xmm0
	movsd	QWORD PTR -128[rbp], xmm1
	movsd	QWORD PTR -136[rbp], xmm2
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR 24[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR 24[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR 24[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR 24[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR 24[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR 24[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR 16[rbp]
	imul	eax, DWORD PTR 24[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	xmalloc
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -64[rbp], 0
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -120[rbp]
	jp	.L176
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -120[rbp]
	jne	.L176
	mov	edi, DWORD PTR 24[rbp]
	mov	rcx, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r9d, edi
	mov	r8d, DWORD PTR 16[rbp]
	mov	rdi, rax
	call	compute_gradient
	jmp	.L178
.L176:
	mov	rcx, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR 24[rbp]
	mov	rax, QWORD PTR -112[rbp]
	movq	xmm0, rcx
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, rax
	call	gaussian_filter
	mov	QWORD PTR -64[rbp], rax
	mov	edi, DWORD PTR 24[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r9d, edi
	mov	r8d, DWORD PTR 16[rbp]
	mov	rdi, rax
	call	compute_gradient
.L178:
	mov	r8, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	sub	rsp, 8
	mov	edi, DWORD PTR 24[rbp]
	push	rdi
	mov	r9d, DWORD PTR 16[rbp]
	mov	rdi, rax
	call	compute_edge_points
	add	rsp, 16
	mov	r9, QWORD PTR -48[rbp]
	mov	r8, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edi, DWORD PTR 24[rbp]
	push	rdi
	mov	edi, DWORD PTR 16[rbp]
	push	rdi
	mov	rdi, rax
	call	chain_edge_points
	add	rsp, 16
	movsd	xmm0, QWORD PTR -136[rbp]
	mov	rcx, QWORD PTR -128[rbp]
	mov	edi, DWORD PTR 24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rcx
	mov	r8d, edi
	mov	ecx, DWORD PTR 16[rbp]
	mov	rdi, rax
	call	thresholds_with_hysteresis
	mov	r9, QWORD PTR -16[rbp]
	mov	r8, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	sub	rsp, 8
	mov	edi, DWORD PTR 24[rbp]
	push	rdi
	mov	edi, DWORD PTR 16[rbp]
	push	rdi
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -8[rbp]
	mov	rdi, rax
	call	list_chained_edge_points
	add	rsp, 48
	cmp	QWORD PTR -64[rbp], 0
	je	.L179
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
.L179:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	devernay, .-devernay
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1028603904
	.align 8
.LC7:
	.long	0
	.long	-1075838976
	.align 8
.LC10:
	.long	0
	.long	1074266112
	.align 8
.LC11:
	.long	-1145744106
	.long	1073900465
	.align 8
.LC14:
	.long	0
	.long	1072693248
	.align 8
.LC15:
	.long	0
	.long	-1074790400
	.align 16
.LC18:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC19:
	.long	0
	.long	1071644672
	.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	"75138733.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	error, .-error
	.section	.rodata
	.align	2
.LC1:
	.ascii	"xmalloc: zero size\000"
	.align	2
.LC2:
	.ascii	"xmalloc: out of memory\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmalloc, %function
xmalloc:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L8
	bl	error
.L5:
	ldr	r0, [fp, #-16]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L8+4
	bl	error
.L6:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	.LC2
	.size	xmalloc, .-xmalloc
	.global	__aeabi_dcmple
	.global	__aeabi_dsub
	.global	__aeabi_dcmplt
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	greater, %function
greater:
	@ 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, #-12]
	str	r1, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	mov	r3, #0
	b	.L13
.L18:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L20
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	mov	r3, #0
	b	.L13
.L19:
	mov	r3, #1
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	1028603904
	.size	greater, .-greater
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dist, %function
dist:
	@ args = 16, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	add	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	add	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	dist, .-dist
	.section	.rodata
	.align	2
.LC3:
	.ascii	"gaussian_kernel: kernel not allocated\000"
	.align	2
.LC4:
	.ascii	"gaussian_kernel: sigma must be positive\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dcmpgt
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gaussian_kernel, %function
gaussian_kernel:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L37
	bl	error
.L25:
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L37+4
	bl	error
.L26:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L28
.L29:
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	ldmib	fp, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r2, #0
	ldr	r3, .L37+8
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	bl	exp
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L28:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L29
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	b	.L36
.L35:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L32
.L33:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L32:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L33
.L36:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC3
	.word	.LC4
	.word	-1075838976
	.size	gaussian_kernel, .-gaussian_kernel
	.section	.rodata
	.align	2
.LC5:
	.ascii	"gaussian_filter: sigma must be positive\000"
	.align	2
.LC6:
	.ascii	"gaussian_filter: invalid image\000"
	.global	__aeabi_d2iz
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gaussian_filter, %function
gaussian_filter:
	@ args = 8, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	mov	r2, #0
	mov	r3, #0
	ldmib	fp, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r0, .L68
	bl	error
.L40:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	ble	.L42
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bgt	.L43
.L42:
	ldr	r0, .L68+4
	bl	error
.L43:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-80]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-80]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-44]
	mov	r2, #0
	ldr	r3, .L68+8
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L68+12
	ldr	r3, .L68+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	ldmib	fp, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	ldmib	fp, {r2-r3}
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	gaussian_kernel
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L44
.L54:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L45
.L53:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L46
.L52:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	b	.L47
.L48:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-52]
.L47:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	blt	.L48
	b	.L49
.L50:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
.L49:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L50
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L51
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
.L51:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L46:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L52
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r1, r2, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L45:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L53
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L44:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L54
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L55
.L65:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L56
.L64:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L57
.L63:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	b	.L58
.L59:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-52]
.L58:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	blt	.L59
	b	.L60
.L61:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
.L60:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L61
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L62
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
.L62:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L57:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L63
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r1, r2, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L56:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L64
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L55:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L65
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r3, [fp, #-44]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC5
	.word	.LC6
	.word	1074266112
	.word	-1145744106
	.word	1073900465
	.size	gaussian_filter, .-gaussian_filter
	.section	.rodata
	.align	2
.LC7:
	.ascii	"chain: invalid input\000"
	.align	2
.LC8:
	.ascii	"chain: one of the points is out the image\000"
	.global	__aeabi_dcmpge
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chain, %function
chain:
	@ args = 16, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #8]
	cmp	r3, #0
	bne	.L72
.L71:
	ldr	r0, .L89
	bl	error
.L72:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	blt	.L73
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	blt	.L73
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #16]
	mul	r3, r2, r3
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bge	.L73
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #16]
	mul	r3, r2, r3
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L74
.L73:
	ldr	r0, .L89+4
	bl	error
.L74:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bne	.L75
	mov	r2, #0
	mov	r3, #0
	b	.L76
.L75:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L86
.L77:
	mov	r2, #0
	mov	r3, #0
	b	.L76
.L86:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L87
	mov	r2, #0
	mov	r3, #0
	b	.L76
.L87:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	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	.L88
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldmia	r3, {r6-r7}
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-44]
	lsl	r1, r1, #3
	ldr	r0, [fp, #-52]
	add	r1, r0, r1
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r6
	mov	r3, r7
	mov	r0, r4
	mov	r1, r5
	bl	dist
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L89+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	b	.L76
.L88:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldmia	r3, {r6-r7}
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-44]
	lsl	r1, r1, #3
	ldr	r0, [fp, #-52]
	add	r1, r0, r1
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r6
	mov	r3, r7
	mov	r0, r4
	mov	r1, r5
	bl	dist
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L89+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
.L76:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L90:
	.align	2
.L89:
	.word	.LC7
	.word	.LC8
	.word	1072693248
	.word	-1074790400
	.size	chain, .-chain
	.section	.rodata
	.align	2
.LC9:
	.ascii	"compute_gradient: invalid input\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_gradient, %function
compute_gradient:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L92
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L92
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L92
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L93
.L92:
	ldr	r0, .L98
	bl	error
.L93:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L94
.L97:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L95
.L96:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #4]
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	ip, [fp, #4]
	mul	r3, ip, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-16]
	ldr	lr, [fp, #4]
	mul	lr, ip, lr
	ldr	ip, [fp, #-20]
	add	ip, lr, ip
	lsl	ip, ip, #3
	ldr	lr, [fp, #-24]
	add	r4, lr, ip
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-16]
	ldr	lr, [fp, #4]
	mul	lr, ip, lr
	ldr	ip, [fp, #-20]
	add	ip, lr, ip
	lsl	ip, ip, #3
	ldr	lr, [fp, #-28]
	add	r4, lr, ip
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r4, r2, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L95:
	ldr	r3, [fp, #8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L96
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L94:
	ldr	r3, [fp, #4]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L97
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC9
	.size	compute_gradient, .-compute_gradient
	.section	.rodata
	.align	2
.LC10:
	.ascii	"compute_edge_points: invalid input\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_edge_points, %function
compute_edge_points:
	@ args = 12, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #132
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	str	r2, [fp, #-144]
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L102
.L101:
	ldr	r0, .L117
	bl	error
.L102:
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L103
.L104:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	mov	r0, #0
	ldr	r1, .L117+4
	stm	r3, {r0-r1}
	ldr	r2, [fp, #-120]
	lsl	r2, r2, #3
	ldr	r1, [fp, #-136]
	add	r1, r1, r2
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L103:
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #12]
	mul	r3, r2, r3
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	blt	.L104
	mov	r3, #2
	str	r3, [fp, #-128]
	b	.L105
.L114:
	mov	r3, #2
	str	r3, [fp, #-124]
	b	.L106
.L113:
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-128]
	sub	r2, r3, #1
	ldr	r3, [fp, #-124]
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-128]
	add	r2, r3, #1
	ldr	r3, [fp, #-124]
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-124]
	sub	r3, r3, #1
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r1, r2
	str	r1, [fp, #-68]
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r1, r2
	str	r1, [fp, #-60]
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-56]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	sub	r1, fp, #108
	ldmia	r1, {r0-r1}
	bl	greater
	mov	r3, r0
	cmp	r3, #0
	beq	.L107
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	greater
	mov	r3, r0
	cmp	r3, #0
	bne	.L107
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L107
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L109
.L107:
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	sub	r1, fp, #108
	ldmia	r1, {r0-r1}
	bl	greater
	mov	r3, r0
	cmp	r3, #0
	beq	.L109
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	greater
	mov	r3, r0
	cmp	r3, #0
	bne	.L109
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L109
	mov	r3, #1
	str	r3, [fp, #-112]
.L109:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bgt	.L111
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	ble	.L112
.L111:
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-116]
	sub	r2, r2, r3
	ldr	r1, [fp, #-124]
	ldr	r3, [fp, #-112]
	sub	r3, r1, r3
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-116]
	add	r2, r2, r3
	ldr	r1, [fp, #-124]
	ldr	r3, [fp, #-112]
	add	r3, r1, r3
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L117+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-128]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-116]
	bl	__aeabi_i2d
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-136]
	add	r6, r2, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
	ldr	r0, [fp, #-124]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-112]
	bl	__aeabi_i2d
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-140]
	add	r6, r2, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
.L112:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L106:
	ldr	r3, [fp, #12]
	sub	r3, r3, #2
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	blt	.L113
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L105:
	ldr	r3, [fp, #8]
	sub	r3, r3, #2
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	blt	.L114
	nop
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L118:
	.align	2
.L117:
	.word	.LC10
	.word	-1074790400
	.word	1071644672
	.size	compute_edge_points, .-compute_edge_points
	.section	.rodata
	.align	2
.LC11:
	.ascii	"chain_edge_points: invalid input\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chain_edge_points, %function
chain_edge_points:
	@ args = 16, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #8]
	cmp	r3, #0
	bne	.L121
.L120:
	ldr	r0, .L152
	bl	error
.L121:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L122
.L123:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-56]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-72]
	add	r2, r1, r2
	ldr	r3, [r3]
	str	r3, [r2]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L122:
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #16]
	mul	r3, r2, r3
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L123
	mov	r3, #2
	str	r3, [fp, #-64]
	b	.L124
.L147:
	mov	r3, #2
	str	r3, [fp, #-60]
	b	.L125
.L146:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L126
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L126
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #12]
	mul	r3, r2, r3
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-48]
	mvn	r3, #0
	str	r3, [fp, #-44]
	mvn	r3, #1
	str	r3, [fp, #-56]
	b	.L129
.L136:
	mvn	r3, #1
	str	r3, [fp, #-52]
	b	.L130
.L135:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r2, r2, r3
	ldr	r1, [fp, #-60]
	ldr	r3, [fp, #-52]
	add	r3, r1, r3
	ldr	r1, [fp, #12]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #16]
	str	r3, [sp, #12]
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	chain
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L131
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-48]
.L131:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L133
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-44]
.L133:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L130:
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	ble	.L135
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L129:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L136
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	blt	.L137
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	beq	.L137
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	blt	.L138
	ldr	r3, [fp, #16]
	str	r3, [sp, #12]
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-36]
	bl	chain
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L137
.L138:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L140
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
.L140:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	blt	.L141
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
.L141:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3]
.L137:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	blt	.L126
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	beq	.L126
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	blt	.L142
	ldr	r3, [fp, #16]
	str	r3, [sp, #12]
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-36]
	bl	chain
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L126
.L142:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	blt	.L144
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
.L144:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L145
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
.L145:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r2, [fp, #-44]
	str	r2, [r3]
.L126:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L125:
	ldr	r3, [fp, #16]
	sub	r3, r3, #2
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L146
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L124:
	ldr	r3, [fp, #12]
	sub	r3, r3, #2
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L147
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L153:
	.align	2
.L152:
	.word	.LC11
	.size	chain_edge_points, .-chain_edge_points
	.section	.rodata
	.align	2
.LC12:
	.ascii	"thresholds_with_hysteresis: invalid input\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thresholds_with_hysteresis, %function
thresholds_with_hysteresis:
	@ args = 24, 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]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L155
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L155
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L156
.L155:
	ldr	r0, .L184
	bl	error
.L156:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #4]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L157
.L158:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L157:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #4]
	mul	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L158
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L159
.L174:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L160
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L161
.L160:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L161
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	add	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L161
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L163
.L168:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L182
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	b	.L166
.L182:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L166:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
.L163:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L167
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L167
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L168
.L167:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L169
.L173:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L183
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	b	.L172
.L183:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L172:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
.L169:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L161
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L161
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L173
.L161:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L159:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #4]
	mul	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L174
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L175
.L178:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L176
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L177
.L176:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L177
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-20]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-28]
	add	r2, r1, r2
	ldr	r3, [r3]
	str	r3, [r2]
.L177:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L175:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #4]
	mul	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L178
	ldr	r0, [fp, #-12]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L185:
	.align	2
.L184:
	.word	.LC12
	.size	thresholds_with_hysteresis, .-thresholds_with_hysteresis
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	list_chained_edge_points, %function
list_chained_edge_points:
	@ args = 28, 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]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #24]
	ldr	r2, [fp, #28]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	xmalloc
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #24]
	ldr	r2, [fp, #28]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	xmalloc
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #24]
	ldr	r2, [fp, #28]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	xmalloc
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L187
.L194:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #12]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L188
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L189
.L188:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L190
.L192:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L190:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #12]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L193
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L192
.L193:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #16]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	ldr	r2, [r2]
	lsl	r2, r2, #3
	add	r1, r1, r2
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	ldr	r2, [r2]
	lsl	r2, r2, #3
	add	r1, r1, r2
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #12]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L193
.L189:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L187:
	ldr	r3, [fp, #24]
	ldr	r2, [fp, #28]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L194
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	ldr	r2, [r2]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	list_chained_edge_points, .-list_chained_edge_points
	.global	__aeabi_dcmpeq
	.align	2
	.global	devernay
	.syntax unified
	.arm
	.fpu softvfp
	.type	devernay, %function
devernay:
	@ args = 40, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #16]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-32]
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #16]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-28]
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #16]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-24]
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #16]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #16]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #16]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #16]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r2, #0
	mov	r3, #0
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L201
	ldr	r3, [fp, #16]
	str	r3, [sp, #4]
	ldr	r3, [fp, #12]
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	compute_gradient
	b	.L198
.L201:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #16]
	ldr	r1, [fp, #12]
	ldr	r0, [fp, #8]
	bl	gaussian_filter
	str	r0, [fp, #-36]
	ldr	r3, [fp, #16]
	str	r3, [sp, #4]
	ldr	r3, [fp, #12]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	compute_gradient
.L198:
	ldr	r3, [fp, #16]
	str	r3, [sp, #8]
	ldr	r3, [fp, #12]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	compute_edge_points
	ldr	r3, [fp, #16]
	str	r3, [sp, #12]
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-28]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	chain_edge_points
	add	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	add	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #16]
	str	r3, [sp]
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	thresholds_with_hysteresis
	ldr	r3, [fp, #16]
	str	r3, [sp, #24]
	ldr	r3, [fp, #12]
	str	r3, [sp, #20]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #16]
	ldr	r3, [fp, #-20]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-8]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-12]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	list_chained_edge_points
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L199
	ldr	r0, [fp, #-36]
	bl	free
.L199:
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	devernay, .-devernay
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
