	.file	"865521.c"
	.intel_syntax noprefix
	.text
	.globl	maxsites
	.data
	.align 4
	.type	maxsites, @object
	.size	maxsites, 4
maxsites:
	.long	1000
	.section	.rodata
.LC0:
	.string	" %s  %d %d"
.LC1:
	.string	"  prob: %lf"
.LC2:
	.string	"  segsites: %d"
.LC3:
	.string	" %s"
.LC4:
	.string	" %lf"
	.align 8
.LC5:
	.string	"pi: %lf ss: %d  D: %lf H: %lf thetah: %lf segsub: %d \n"
	.align 8
.LC6:
	.string	"pi:\t%lf\tss:\t%d\tD:\t%lf\tthetaH:\t%lf\tH:\t%lf\tprob:\t%g%s"
	.align 8
.LC7:
	.string	"pi:\t%lf\tss:\t%d\tD:\t%lf\tthetaH:\t%lf\tH:\t%lf%s"
	.text
	.globl	main
	.type	main, @function
main:
.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, 2304
	mov	DWORD PTR -2276[rbp], edi
	mov	QWORD PTR -2288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -2216[rbp], rax
	mov	rdx, QWORD PTR -2216[rbp]
	lea	rax, -2032[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	lea	rsi, -2260[rbp]
	lea	rcx, -2264[rbp]
	lea	rdx, -2176[rbp]
	lea	rax, -2032[rbp]
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rdx, QWORD PTR -2216[rbp]
	lea	rax, -2032[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	cmp	DWORD PTR -2276[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -2288[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2244[rbp], eax
.L2:
	mov	eax, DWORD PTR maxsites[rip]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -2264[rbp]
	mov	esi, edx
	mov	edi, eax
	mov	eax, 0
	call	cmatrix
	mov	QWORD PTR -2208[rbp], rax
	mov	eax, DWORD PTR maxsites[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -2224[rbp], rax
	mov	DWORD PTR -2248[rbp], 0
	mov	DWORD PTR -2240[rbp], 0
	jmp	.L3
.L7:
	mov	rdx, QWORD PTR -2216[rbp]
	lea	rax, -2032[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L4
	mov	edi, 0
	call	exit@PLT
.L4:
	movzx	eax, BYTE PTR -2032[rbp]
	cmp	al, 47
	jne	.L5
	lea	rax, -2032[rbp]
	add	rax, 2
	lea	rdx, -1024[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
.L5:
	movzx	eax, BYTE PTR -2032[rbp]
	cmp	al, 115
	je	.L6
	movzx	eax, BYTE PTR -2032[rbp]
	cmp	al, 112
	jne	.L7
.L6:
	movzx	eax, BYTE PTR -2032[rbp]
	cmp	al, 112
	jne	.L8
	lea	rdx, -2232[rbp]
	lea	rax, -2032[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -2240[rbp], 1
	mov	rdx, QWORD PTR -2216[rbp]
	lea	rax, -2032[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L8
	mov	edi, 0
	call	exit@PLT
.L8:
	lea	rdx, -2256[rbp]
	lea	rax, -2032[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	edx, DWORD PTR -2256[rbp]
	mov	eax, DWORD PTR maxsites[rip]
	cmp	edx, eax
	jl	.L9
	mov	eax, DWORD PTR -2256[rbp]
	add	eax, 10
	mov	DWORD PTR maxsites[rip], eax
	mov	eax, DWORD PTR maxsites[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -2224[rbp], rax
	mov	ecx, DWORD PTR maxsites[rip]
	mov	eax, DWORD PTR -2264[rbp]
	mov	rdx, QWORD PTR -2208[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	biggerlist
.L9:
	mov	eax, DWORD PTR -2256[rbp]
	test	eax, eax
	jle	.L10
	lea	rdx, -2144[rbp]
	mov	rax, QWORD PTR -2216[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -2252[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -2252[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2224[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -2216[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -2252[rbp], 1
.L11:
	mov	eax, DWORD PTR -2256[rbp]
	cmp	DWORD PTR -2252[rbp], eax
	jl	.L12
	mov	DWORD PTR -2252[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -2252[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2208[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -2216[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -2252[rbp], 1
.L13:
	mov	eax, DWORD PTR -2264[rbp]
	cmp	DWORD PTR -2252[rbp], eax
	jl	.L14
.L10:
	cmp	DWORD PTR -2276[rbp], 1
	jle	.L15
	mov	ecx, DWORD PTR -2256[rbp]
	mov	rdx, QWORD PTR -2208[rbp]
	mov	eax, DWORD PTR -2244[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	segsub
	mov	DWORD PTR -2236[rbp], eax
.L15:
	mov	ecx, DWORD PTR -2256[rbp]
	mov	eax, DWORD PTR -2264[rbp]
	mov	rdx, QWORD PTR -2208[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	nucdiv
	movq	rax, xmm0
	mov	QWORD PTR -2200[rbp], rax
	mov	ecx, DWORD PTR -2256[rbp]
	mov	eax, DWORD PTR -2264[rbp]
	mov	rdx, QWORD PTR -2208[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	hfay
	movq	rax, xmm0
	mov	QWORD PTR -2192[rbp], rax
	mov	ecx, DWORD PTR -2256[rbp]
	mov	eax, DWORD PTR -2264[rbp]
	mov	rdx, QWORD PTR -2208[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	thetah
	movq	rax, xmm0
	mov	QWORD PTR -2184[rbp], rax
	cmp	DWORD PTR -2276[rbp], 1
	jle	.L16
	mov	edx, DWORD PTR -2256[rbp]
	mov	eax, DWORD PTR -2264[rbp]
	mov	rcx, QWORD PTR -2200[rbp]
	movq	xmm0, rcx
	mov	esi, edx
	mov	edi, eax
	call	tajd@PLT
	movq	rsi, xmm0
	mov	ecx, DWORD PTR -2256[rbp]
	mov	edx, DWORD PTR -2236[rbp]
	movsd	xmm1, QWORD PTR -2184[rbp]
	movsd	xmm0, QWORD PTR -2192[rbp]
	mov	rax, QWORD PTR -2200[rbp]
	movapd	xmm3, xmm1
	movapd	xmm2, xmm0
	movq	xmm1, rsi
	mov	esi, ecx
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 4
	call	printf@PLT
	jmp	.L3
.L16:
	cmp	DWORD PTR -2240[rbp], 1
	jne	.L17
	movsd	xmm5, QWORD PTR -2232[rbp]
	movsd	QWORD PTR -2296[rbp], xmm5
	mov	edx, DWORD PTR -2256[rbp]
	mov	eax, DWORD PTR -2264[rbp]
	mov	rcx, QWORD PTR -2200[rbp]
	movq	xmm0, rcx
	mov	esi, edx
	mov	edi, eax
	call	tajd@PLT
	movq	rsi, xmm0
	mov	ecx, DWORD PTR -2256[rbp]
	lea	rdx, -1024[rbp]
	movsd	xmm1, QWORD PTR -2192[rbp]
	movsd	xmm0, QWORD PTR -2184[rbp]
	mov	rax, QWORD PTR -2200[rbp]
	movsd	xmm4, QWORD PTR -2296[rbp]
	movapd	xmm3, xmm1
	movapd	xmm2, xmm0
	movq	xmm1, rsi
	mov	esi, ecx
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 5
	call	printf@PLT
	jmp	.L3
.L17:
	mov	edx, DWORD PTR -2256[rbp]
	mov	eax, DWORD PTR -2264[rbp]
	mov	rcx, QWORD PTR -2200[rbp]
	movq	xmm0, rcx
	mov	esi, edx
	mov	edi, eax
	call	tajd@PLT
	movq	rsi, xmm0
	mov	ecx, DWORD PTR -2256[rbp]
	lea	rdx, -1024[rbp]
	movsd	xmm1, QWORD PTR -2192[rbp]
	movsd	xmm0, QWORD PTR -2184[rbp]
	mov	rax, QWORD PTR -2200[rbp]
	movapd	xmm3, xmm1
	movapd	xmm2, xmm0
	movq	xmm1, rsi
	mov	esi, ecx
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 4
	call	printf@PLT
.L3:
	mov	eax, DWORD PTR -2248[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -2248[rbp], edx
	mov	edx, DWORD PTR -2260[rbp]
	cmp	eax, edx
	jne	.L7
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC8:
	.string	"alloc error in cmatrix"
.LC9:
	.string	"alloc error in cmatric. 2"
	.text
	.globl	cmatrix
	.type	cmatrix, @function
cmatrix:
.LFB7:
	.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, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	eax, 3
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L21
	lea	rdi, .LC8[rip]
	call	perror@PLT
.L21:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L22
.L24:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rbx, [rcx+rax]
	mov	rdi, rdx
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L23
	lea	rdi, .LC9[rip]
	call	perror@PLT
.L23:
	add	DWORD PTR -28[rbp], 1
.L22:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cmatrix, .-cmatrix
	.section	.rodata
.LC10:
	.string	"realloc error. bigger"
	.text
	.globl	biggerlist
	.type	biggerlist, @function
biggerlist:
.LFB8:
	.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, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR maxsites[rip], eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L27
.L29:
	mov	eax, DWORD PTR maxsites[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -20[rbp]
	movsx	rcx, ecx
	lea	rsi, 0[0+rcx*8]
	mov	rcx, QWORD PTR -48[rbp]
	lea	rbx, [rsi+rcx]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L28
	lea	rdi, .LC10[rip]
	call	perror@PLT
.L28:
	add	DWORD PTR -20[rbp], 1
.L27:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L29
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	biggerlist, .-biggerlist
	.globl	nucdiv
	.type	nucdiv, @function
nucdiv:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	QWORD PTR -64[rbp], rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -52[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm2, QWORD PTR .LC12[rip]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR -24[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L31
.L32:
	mov	rcx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	mov	edi, 49
	call	frequency
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	divsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC12[rip]
	subsd	xmm0, QWORD PTR -8[rbp]
	mulsd	xmm0, xmm1
	mulsd	xmm0, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR -32[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	add	DWORD PTR -36[rbp], 1
.L31:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L32
	movsd	xmm0, QWORD PTR -32[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nucdiv, .-nucdiv
	.globl	hfay
	.type	hfay, @function
hfay:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	QWORD PTR -64[rbp], rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -52[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm2, QWORD PTR .LC12[rip]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR -24[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L35
.L36:
	mov	rcx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	mov	edi, 49
	call	frequency
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	divsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	addsd	xmm0, xmm0
	movsd	xmm2, QWORD PTR .LC12[rip]
	subsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	mulsd	xmm0, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR -32[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	add	DWORD PTR -36[rbp], 1
.L35:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L36
	movsd	xmm0, QWORD PTR -32[rbp]
	movq	xmm1, QWORD PTR .LC13[rip]
	xorpd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	hfay, .-hfay
	.globl	thetah
	.type	thetah, @function
thetah:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	QWORD PTR -64[rbp], rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -52[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm2, QWORD PTR .LC12[rip]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR -24[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L39
.L40:
	mov	rcx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	mov	edi, 49
	call	frequency
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	mulsd	xmm0, xmm0
	movsd	xmm1, QWORD PTR -32[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	add	DWORD PTR -36[rbp], 1
.L39:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L40
	movsd	xmm0, QWORD PTR -32[rbp]
	addsd	xmm0, xmm0
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm2, QWORD PTR .LC12[rip]
	subsd	xmm1, xmm2
	mulsd	xmm1, QWORD PTR -24[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	thetah, .-thetah
	.globl	frequency
	.type	frequency, @function
frequency:
.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, edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	BYTE PTR -20[rbp], al
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L43
.L44:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -20[rbp], al
	sete	al
	movzx	eax, al
	add	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L43:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L44
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	frequency, .-frequency
	.globl	segsub
	.type	segsub, @function
segsub:
.LFB13:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L47
.L49:
	mov	rcx, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	mov	edi, 49
	call	frequency
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L48
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jge	.L48
	add	DWORD PTR -8[rbp], 1
.L48:
	add	DWORD PTR -12[rbp], 1
.L47:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L49
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	segsub, .-segsub
	.section	.rodata
	.align 8
.LC12:
	.long	0
	.long	1072693248
	.align 16
.LC13:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.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	"865521.c"
	.text
	.global	maxsites
	.data
	.align	2
	.type	maxsites, %object
	.size	maxsites, 4
maxsites:
	.word	1000
	.section	.rodata
	.align	2
.LC0:
	.ascii	" %s  %d %d\000"
	.align	2
.LC1:
	.ascii	"  prob: %lf\000"
	.align	2
.LC2:
	.ascii	"  segsites: %d\000"
	.align	2
.LC3:
	.ascii	" %s\000"
	.align	2
.LC4:
	.ascii	" %lf\000"
	.align	2
.LC5:
	.ascii	"pi: %lf ss: %d  D: %lf H: %lf thetah: %lf segsub: %"
	.ascii	"d \012\000"
	.align	2
.LC6:
	.ascii	"pi:\011%lf\011ss:\011%d\011D:\011%lf\011thetaH:\011"
	.ascii	"%lf\011H:\011%lf\011prob:\011%g%s\000"
	.align	2
.LC7:
	.ascii	"pi:\011%lf\011ss:\011%d\011D:\011%lf\011thetaH:\011"
	.ascii	"%lf\011H:\011%lf%s\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2272
	sub	sp, sp, #4
	str	r0, [fp, #-2232]
	str	r1, [fp, #-2236]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L20+4
	ldr	r3, [r3]
	str	r3, [fp, #-2188]
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r2, [fp, #-2188]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #2208
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #2128
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #2000
	sub	r0, r0, #12
	sub	r0, r0, #12
	sub	r1, fp, #2208
	sub	r1, r1, #12
	str	r1, [sp]
	ldr	r1, .L20+8
	bl	__isoc99_sscanf
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r2, [fp, #-2188]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	ldr	r3, [fp, #-2232]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-2236]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2200]
.L2:
	ldr	r2, [fp, #-2224]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	cmatrix
	str	r0, [fp, #-2184]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-2208]
	mov	r3, #0
	str	r3, [fp, #-2204]
	mov	r3, #0
	str	r3, [fp, #-2196]
	b	.L3
.L7:
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r2, [fp, #-2188]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r0, #0
	bl	exit
.L4:
	ldrb	r3, [fp, #-2024]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L5
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, #2
	sub	r2, fp, #1020
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
.L5:
	ldrb	r3, [fp, #-2024]	@ zero_extendqisi2
	cmp	r3, #115
	beq	.L6
	ldrb	r3, [fp, #-2024]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L7
.L6:
	ldrb	r3, [fp, #-2024]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L8
	sub	r2, fp, #2160
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, .L20+16
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #1
	str	r3, [fp, #-2196]
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r2, [fp, #-2188]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r0, #0
	bl	exit
.L8:
	sub	r2, fp, #2192
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, .L20+20
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r2, [fp, #-2216]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-2216]
	add	r3, r3, #10
	ldr	r2, .L20+12
	str	r3, [r2]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r0, [fp, #-2208]
	bl	realloc
	str	r0, [fp, #-2208]
	ldr	r3, [fp, #-2224]
	ldr	r2, .L20+12
	ldr	r1, [r2]
	ldr	r2, [fp, #-2184]
	mov	r0, r3
	bl	biggerlist
.L9:
	ldr	r3, [fp, #-2216]
	cmp	r3, #0
	ble	.L10
	sub	r3, fp, #2112
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r1, .L20+24
	ldr	r0, [fp, #-2188]
	bl	__isoc99_fscanf
	mov	r3, #0
	str	r3, [fp, #-2212]
	b	.L11
.L12:
	ldr	r3, [fp, #-2212]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-2208]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L20+28
	ldr	r0, [fp, #-2188]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-2212]
	add	r3, r3, #1
	str	r3, [fp, #-2212]
.L11:
	ldr	r3, [fp, #-2216]
	ldr	r2, [fp, #-2212]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-2212]
	b	.L13
.L14:
	ldr	r3, [fp, #-2212]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2184]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L20+24
	ldr	r0, [fp, #-2188]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-2212]
	add	r3, r3, #1
	str	r3, [fp, #-2212]
.L13:
	ldr	r3, [fp, #-2224]
	ldr	r2, [fp, #-2212]
	cmp	r2, r3
	blt	.L14
.L10:
	ldr	r3, [fp, #-2232]
	cmp	r3, #1
	ble	.L15
	ldr	r3, [fp, #-2216]
	ldr	r2, [fp, #-2184]
	mov	r1, r3
	ldr	r0, [fp, #-2200]
	bl	segsub
	str	r0, [fp, #-2192]
.L15:
	ldr	r3, [fp, #-2224]
	ldr	r1, [fp, #-2216]
	ldr	r2, [fp, #-2184]
	mov	r0, r3
	bl	nucdiv
	str	r0, [fp, #-2172]
	str	r1, [fp, #-2168]
	ldr	r3, [fp, #-2224]
	ldr	r1, [fp, #-2216]
	ldr	r2, [fp, #-2184]
	mov	r0, r3
	bl	hfay
	str	r0, [fp, #-2164]
	str	r1, [fp, #-2160]
	ldr	r3, [fp, #-2224]
	ldr	r1, [fp, #-2216]
	ldr	r2, [fp, #-2184]
	mov	r0, r3
	bl	thetah
	str	r0, [fp, #-2156]
	str	r1, [fp, #-2152]
	ldr	r3, [fp, #-2232]
	cmp	r3, #1
	ble	.L16
	ldr	r4, [fp, #-2216]
	ldr	r0, [fp, #-2224]
	ldr	r1, [fp, #-2216]
	ldr	r2, [fp, #-2172]
	ldr	r3, [fp, #-2168]
	bl	tajd
	ldr	r3, [fp, #-2192]
	str	r3, [sp, #32]
	ldr	r2, [fp, #-2156]
	ldr	r3, [fp, #-2152]
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	ldr	r2, [fp, #-2164]
	ldr	r3, [fp, #-2160]
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	str	r4, [sp]
	ldr	r2, [fp, #-2172]
	ldr	r3, [fp, #-2168]
	ldr	r0, .L20+32
	bl	printf
	b	.L3
.L16:
	ldr	r3, [fp, #-2196]
	cmp	r3, #1
	bne	.L17
	ldr	r4, [fp, #-2216]
	ldr	r0, [fp, #-2224]
	ldr	r1, [fp, #-2216]
	ldr	r2, [fp, #-2172]
	ldr	r3, [fp, #-2168]
	bl	tajd
	ldr	r2, [fp, #-2180]
	ldr	r3, [fp, #-2176]
	sub	ip, fp, #1020
	str	ip, [sp, #40]
	str	r2, [sp, #32]
	str	r3, [sp, #36]
	ldr	r2, [fp, #-2164]
	ldr	r3, [fp, #-2160]
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	ldr	r2, [fp, #-2156]
	ldr	r3, [fp, #-2152]
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	str	r4, [sp]
	ldr	r2, [fp, #-2172]
	ldr	r3, [fp, #-2168]
	ldr	r0, .L20+36
	bl	printf
	b	.L3
.L17:
	ldr	r4, [fp, #-2216]
	ldr	r0, [fp, #-2224]
	ldr	r1, [fp, #-2216]
	ldr	r2, [fp, #-2172]
	ldr	r3, [fp, #-2168]
	bl	tajd
	sub	r3, fp, #1020
	str	r3, [sp, #32]
	ldr	r2, [fp, #-2164]
	ldr	r3, [fp, #-2160]
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	ldr	r2, [fp, #-2156]
	ldr	r3, [fp, #-2152]
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	str	r4, [sp]
	ldr	r2, [fp, #-2172]
	ldr	r3, [fp, #-2168]
	ldr	r0, .L20+40
	bl	printf
.L3:
	ldr	r3, [fp, #-2204]
	add	r2, r3, #1
	str	r2, [fp, #-2204]
	ldr	r2, [fp, #-2220]
	cmp	r3, r2
	bne	.L7
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC8
	.word	stdin
	.word	.LC0
	.word	maxsites
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
.LC9:
	.ascii	"alloc error in cmatrix\000"
	.align	2
.LC10:
	.ascii	"alloc error in cmatric. 2\000"
	.text
	.align	2
	.global	cmatrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmatrix, %function
cmatrix:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L28
	bl	perror
.L23:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L24
.L26:
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L28+4
	bl	perror
.L25:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L24:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L26
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC9
	.word	.LC10
	.size	cmatrix, .-cmatrix
	.section	.rodata
	.align	2
.LC11:
	.ascii	"realloc error. bigger\000"
	.text
	.align	2
	.global	biggerlist
	.syntax unified
	.arm
	.fpu softvfp
	.type	biggerlist, %function
biggerlist:
	@ 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
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	ldr	r2, .L34
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L31
.L33:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L34
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r4, r2, r3
	bl	realloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L32
	ldr	r0, .L34+4
	bl	perror
.L32:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L31:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L33
	nop
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	maxsites
	.word	.LC11
	.size	biggerlist, .-biggerlist
	.global	__aeabi_i2d
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.align	2
	.global	nucdiv
	.syntax unified
	.arm
	.fpu softvfp
	.type	nucdiv, %function
nucdiv:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	ldr	r3, .L40
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L37
.L38:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-48]
	mov	r0, #49
	bl	frequency
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L40
	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
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L37:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L38
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L41:
	.align	2
.L40:
	.word	1072693248
	.size	nucdiv, .-nucdiv
	.align	2
	.global	hfay
	.syntax unified
	.arm
	.fpu softvfp
	.type	hfay, %function
hfay:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #56
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	ldr	r3, .L46
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L43
.L44:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-56]
	mov	r0, #49
	bl	frequency
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r1, fp, #28
	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
	mov	r2, #0
	ldr	r3, .L46
	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, r2
	mov	r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L43:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L44
	ldr	r4, [fp, #-52]
	ldr	r3, [fp, #-48]
	eor	r5, r3, #-2147483648
	mov	r2, r4
	mov	r3, r5
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L47:
	.align	2
.L46:
	.word	1072693248
	.size	hfay, .-hfay
	.align	2
	.global	thetah
	.syntax unified
	.arm
	.fpu softvfp
	.type	thetah, %function
thetah:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	ldr	r3, .L52
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L49
.L50:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-48]
	mov	r0, #49
	bl	frequency
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L49:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L50
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	mov	r2, #0
	ldr	r3, .L52
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	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_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L53:
	.align	2
.L52:
	.word	1072693248
	.size	thetah, .-thetah
	.align	2
	.global	frequency
	.syntax unified
	.arm
	.fpu softvfp
	.type	frequency, %function
frequency:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L55
.L56:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L55:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L56
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	frequency, .-frequency
	.align	2
	.global	segsub
	.syntax unified
	.arm
	.fpu softvfp
	.type	segsub, %function
segsub:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L59
.L61:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-16]
	mov	r0, #49
	bl	frequency
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L60
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L60
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L60:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L59:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L61
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	segsub, .-segsub
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
