	.file	"502548.c"
	.intel_syntax noprefix
	.text
	.globl	markov_chain
	.bss
	.align 16
	.type	markov_chain, @object
	.size	markov_chain, 16
markov_chain:
	.zero	16
	.globl	markov_chain_start
	.align 16
	.type	markov_chain_start, @object
	.size	markov_chain_start, 16
markov_chain_start:
	.zero	16
	.section	.rodata
.LC0:
	.string	"en_US.utf8"
.LC1:
	.string	"--help"
.LC2:
	.string	"-help"
.LC3:
	.string	"-h"
.LC4:
	.string	"?"
.LC5:
	.string	"-i"
.LC6:
	.string	"-m"
.LC7:
	.string	"-o"
.LC8:
	.string	"-sz"
.LC9:
	.string	"-sm"
.LC10:
	.string	"-s"
	.align 8
.LC11:
	.string	"S"
	.string	""
	.string	""
	.string	"t"
	.string	""
	.string	""
	.string	"a"
	.string	""
	.string	""
	.string	"t"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	":"
	.string	""
	.string	""
	.string	"\n"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"\n"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 8
.LC12:
	.string	"P"
	.string	""
	.string	""
	.string	"r"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"f"
	.string	""
	.string	""
	.string	"i"
	.string	""
	.string	""
	.string	"x"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	":"
	.string	""
	.string	""
	.string	" "
	.string	""
	.string	""
	.string	"%"
	.string	""
	.string	""
	.string	"d"
	.string	""
	.string	""
	.string	"\n"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 8
.LC13:
	.string	"A"
	.string	""
	.string	""
	.string	"v"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"r"
	.string	""
	.string	""
	.string	"a"
	.string	""
	.string	""
	.string	"g"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	" "
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	"u"
	.string	""
	.string	""
	.string	"f"
	.string	""
	.string	""
	.string	"f"
	.string	""
	.string	""
	.string	"i"
	.string	""
	.string	""
	.string	"x"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	":"
	.string	""
	.string	""
	.string	" "
	.string	""
	.string	""
	.string	"%"
	.string	""
	.string	""
	.string	"l"
	.string	""
	.string	""
	.string	"f"
	.string	""
	.string	""
	.string	"\n"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 8
.LC14:
	.string	"M"
	.string	""
	.string	""
	.string	"a"
	.string	""
	.string	""
	.string	"x"
	.string	""
	.string	""
	.string	" "
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	"u"
	.string	""
	.string	""
	.string	"f"
	.string	""
	.string	""
	.string	"f"
	.string	""
	.string	""
	.string	"i"
	.string	""
	.string	""
	.string	"x"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	":"
	.string	""
	.string	""
	.string	" "
	.string	""
	.string	""
	.string	"%"
	.string	""
	.string	""
	.string	"d"
	.string	""
	.string	""
	.string	"\n"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 8
.LC15:
	.string	"M"
	.string	""
	.string	""
	.string	"i"
	.string	""
	.string	""
	.string	"n"
	.string	""
	.string	""
	.string	" "
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	"u"
	.string	""
	.string	""
	.string	"f"
	.string	""
	.string	""
	.string	"f"
	.string	""
	.string	""
	.string	"i"
	.string	""
	.string	""
	.string	"x"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	":"
	.string	""
	.string	""
	.string	" "
	.string	""
	.string	""
	.string	"%"
	.string	""
	.string	""
	.string	"d"
	.string	""
	.string	""
	.string	"\n"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 8
.LC16:
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"-"
	.string	""
	.string	""
	.string	"\n"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	lea	rsi, .LC0[rip]
	mov	edi, 6
	call	setlocale@PLT
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -68[rbp], 2
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 1
	jmp	.L2
.L23:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
.L3:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	print_help
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	add	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jge	.L7
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	mov	QWORD PTR -32[rbp], rax
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	add	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jge	.L10
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	mov	QWORD PTR -16[rbp], rax
	jmp	.L5
.L9:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	add	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jge	.L13
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	jmp	.L14
.L13:
	mov	eax, 0
.L14:
	mov	QWORD PTR -8[rbp], rax
	jmp	.L5
.L12:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	add	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jge	.L16
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	jmp	.L17
.L16:
	mov	eax, 0
.L17:
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -68[rbp], eax
	jmp	.L5
.L15:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	add	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jge	.L19
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	jmp	.L20
.L19:
	mov	eax, 0
.L20:
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -40[rbp], eax
	jmp	.L5
.L18:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	add	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jge	.L21
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	jmp	.L22
.L21:
	mov	eax, 0
.L22:
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -64[rbp], eax
.L5:
	add	DWORD PTR -60[rbp], 1
.L2:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L23
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	chain_generate
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	wprintf@PLT
	mov	eax, DWORD PTR markov_chain[rip]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	wprintf@PLT
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -56[rbp], -2147483648
	mov	DWORD PTR -52[rbp], 2147483647
	mov	DWORD PTR -48[rbp], 0
	jmp	.L24
.L27:
	mov	rdx, QWORD PTR markov_chain[rip+8]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 5
	add	rax, rdx
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jle	.L25
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -56[rbp], eax
.L25:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jge	.L26
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -52[rbp], eax
.L26:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	QWORD PTR -24[rbp], rax
	add	DWORD PTR -48[rbp], 1
.L24:
	mov	edx, DWORD PTR markov_chain[rip]
	mov	eax, DWORD PTR -48[rbp]
	cmp	edx, eax
	ja	.L27
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR markov_chain[rip]
	mov	eax, eax
	test	rax, rax
	js	.L28
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L29
.L28:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L29:
	divsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	wprintf@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	wprintf@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	wprintf@PLT
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	wprintf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	sentence_generate
	add	DWORD PTR -44[rbp], 1
.L30:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L31
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC17:
	.string	"%s usage:\n%s -i filename [-o filename] [-sz state_size]\n   -i\tfile to generate chain from\n   -o\tfile to write output to (stdout if not provided)\n   -sz\tstate size, number of words to consider, 2 by default\n"
	.text
	.type	print_help, @function
print_help:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_help, .-print_help
	.section	.rodata
.LC18:
	.string	"rb"
	.text
	.type	chain_generate, @function
chain_generate:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR markov_chain[rip+4], 128
	mov	DWORD PTR markov_chain[rip], 0
	mov	eax, DWORD PTR markov_chain[rip+4]
	mov	eax, eax
	sal	rax, 5
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR markov_chain[rip+8], rax
	mov	DWORD PTR markov_chain_start[rip+4], 128
	mov	DWORD PTR markov_chain_start[rip], 0
	mov	eax, DWORD PTR markov_chain_start[rip+4]
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR markov_chain_start[rip+8], rax
	mov	DWORD PTR -44[rbp], 128
	mov	DWORD PTR -48[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
.L46:
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	wchar_read_line
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L49
	mov	DWORD PTR -72[rbp], 0
	jmp	.L37
.L45:
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	cmp	DWORD PTR -60[rbp], eax
	jle	.L50
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -68[rbp], eax
	jmp	.L40
.L42:
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	ecx, ecx
	sal	rcx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cmp	edx, eax
	jne	.L41
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, -128
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -24[rbp], rax
.L41:
	add	DWORD PTR -68[rbp], 1
.L40:
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	cmp	DWORD PTR -68[rbp], eax
	jl	.L42
	mov	edi, 0
	call	btowc@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	cmp	DWORD PTR -60[rbp], eax
	jle	.L43
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], eax
.L43:
	cmp	DWORD PTR -72[rbp], 0
	sete	al
	movzx	ecx, al
	mov	edx, DWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rsi
	mov	rsi, rax
	call	entry_add
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L39
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L39
.L50:
	nop
.L39:
	add	DWORD PTR -72[rbp], 1
.L37:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L45
	jmp	.L36
.L49:
	nop
.L36:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 1
	ja	.L46
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	je	.L51
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
.L51:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	chain_generate, .-chain_generate
	.type	wchar_read_line, @function
wchar_read_line:
.LFB9:
	.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetwc@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L53
.L56:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jne	.L54
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 128[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rdx], rax
.L54:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetwc@PLT
	mov	DWORD PTR -20[rbp], eax
.L53:
	mov	edi, 10
	call	btowc@PLT
	cmp	DWORD PTR -20[rbp], eax
	je	.L55
	cmp	DWORD PTR -20[rbp], -1
	jne	.L56
.L55:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 2
	lea	rbx, [rdx+rax]
	mov	edi, 0
	call	btowc@PLT
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jne	.L58
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 128[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rdx], rax
.L58:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	wchar_read_line, .-wchar_read_line
	.type	entry_add, @function
entry_add:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, rsi
	mov	r8, rdi
	mov	rsi, r8
	mov	rdi, r9
	mov	rdi, rax
	mov	QWORD PTR -112[rbp], rsi
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -116[rbp], edx
	mov	DWORD PTR -120[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L60
.L73:
	mov	rdx, QWORD PTR markov_chain[rip+8]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	sal	rax, 5
	add	rax, rdx
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -88[rbp], 1
	mov	DWORD PTR -84[rbp], 0
	jmp	.L61
.L64:
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L62
	mov	DWORD PTR -88[rbp], 0
	jmp	.L63
.L62:
	add	DWORD PTR -84[rbp], 1
.L61:
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cmp	edx, eax
	ja	.L64
.L63:
	cmp	DWORD PTR -88[rbp], 0
	je	.L65
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	jmp	.L66
.L69:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -116[rbp], eax
	jne	.L67
	mov	DWORD PTR -88[rbp], 1
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR 4[rax], edx
	jmp	.L68
.L67:
	add	DWORD PTR -80[rbp], 1
.L66:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	eax, DWORD PTR -80[rbp]
	cmp	edx, eax
	ja	.L69
.L68:
	cmp	DWORD PTR -88[rbp], 0
	jne	.L81
	mov	eax, DWORD PTR -116[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	DWORD PTR -44[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	eax, eax
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	jne	.L81
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	lea	edx, 128[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR 24[rdx], rax
	jmp	.L59
.L65:
	add	DWORD PTR -92[rbp], 1
.L60:
	mov	edx, DWORD PTR markov_chain[rip]
	mov	eax, DWORD PTR -92[rbp]
	cmp	edx, eax
	ja	.L73
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -44[rbp], 128
	mov	DWORD PTR -48[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L74
.L76:
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	ecx, ecx
	sal	rcx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	DWORD PTR -48[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cmp	edx, eax
	jne	.L75
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, -128
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
.L75:
	add	DWORD PTR -76[rbp], 1
.L74:
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -76[rbp]
	cmp	edx, eax
	ja	.L76
	mov	DWORD PTR -28[rbp], 128
	mov	DWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	eax, eax
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -116[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	DWORD PTR -52[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	edx, edx
	sal	rdx, 3
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cmp	edx, eax
	jne	.L77
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, -128
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -24[rbp], rax
.L77:
	mov	rax, QWORD PTR markov_chain[rip+8]
	mov	edx, DWORD PTR markov_chain[rip]
	mov	edx, edx
	sal	rdx, 5
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR 24[rcx], rdx
	mov	eax, DWORD PTR markov_chain[rip]
	add	eax, 1
	mov	DWORD PTR markov_chain[rip], eax
	mov	edx, DWORD PTR markov_chain[rip]
	mov	eax, DWORD PTR markov_chain[rip+4]
	cmp	edx, eax
	jne	.L78
	mov	eax, DWORD PTR markov_chain[rip+4]
	sub	eax, -128
	mov	DWORD PTR markov_chain[rip+4], eax
	mov	eax, DWORD PTR markov_chain[rip+4]
	mov	eax, eax
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR markov_chain[rip+8]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR markov_chain[rip+8], rax
.L78:
	cmp	DWORD PTR -120[rbp], 0
	je	.L59
	mov	eax, DWORD PTR markov_chain[rip]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR markov_chain_start[rip+8]
	mov	ecx, DWORD PTR markov_chain_start[rip]
	mov	ecx, ecx
	sal	rcx, 2
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR markov_chain_start[rip]
	add	eax, 1
	mov	DWORD PTR markov_chain_start[rip], eax
	mov	edx, DWORD PTR markov_chain_start[rip]
	mov	eax, DWORD PTR markov_chain_start[rip+4]
	cmp	edx, eax
	jne	.L59
	mov	eax, DWORD PTR markov_chain_start[rip+4]
	sub	eax, -128
	mov	DWORD PTR markov_chain_start[rip+4], eax
	mov	eax, DWORD PTR markov_chain_start[rip+4]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR markov_chain_start[rip+8]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR markov_chain_start[rip+8], rax
	jmp	.L59
.L81:
	nop
.L59:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L80
	call	__stack_chk_fail@PLT
.L80:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	entry_add, .-entry_add
	.section	.rodata
	.align 4
.LC19:
	.string	"%"
	.string	""
	.string	""
	.string	"l"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	"\n"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.text
	.type	sentence_generate, @function
sentence_generate:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	DWORD PTR -64[rbp], 0
	mov	eax, DWORD PTR -60[rbp]
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -44[rbp], 128
	mov	DWORD PTR -48[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rbx, QWORD PTR markov_chain_start[rip+8]
	call	rand@PLT
	mov	ecx, DWORD PTR markov_chain_start[rip]
	mov	edx, 0
	div	ecx
	mov	eax, edx
	mov	eax, eax
	sal	rax, 2
	add	rax, rbx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -84[rbp], eax
	mov	rdx, QWORD PTR markov_chain[rip+8]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 5
	add	rax, rdx
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L83
.L85:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -80[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	ecx, ecx
	sal	rcx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	DWORD PTR -48[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cmp	edx, eax
	jne	.L84
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, -128
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
.L84:
	add	DWORD PTR -92[rbp], 1
.L83:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	cmp	edx, eax
	ja	.L85
	jmp	.L86
.L90:
	mov	rbx, QWORD PTR markov_chain[rip+8]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	prefix_find
	cdqe
	sal	rax, 5
	add	rax, rbx
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rdx
	mov	rsi, rax
	call	prefix_choose_random
	mov	DWORD PTR -84[rbp], eax
	mov	edi, 0
	call	btowc@PLT
	mov	edx, DWORD PTR -84[rbp]
	cmp	eax, edx
	je	.L87
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	edx, edx
	sal	rdx, 2
	add	rdx, rax
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	DWORD PTR -48[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cmp	edx, eax
	jne	.L87
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, -128
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
.L87:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L88
.L89:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -80[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -88[rbp], 1
.L88:
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, 1
	cmp	DWORD PTR -88[rbp], eax
	jl	.L89
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR [rdx], eax
.L86:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	ebx, DWORD PTR [rax]
	mov	edi, 0
	call	btowc@PLT
	cmp	ebx, eax
	jne	.L90
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	edx, edx
	sal	rdx, 2
	lea	rbx, [rax+rdx]
	mov	edi, 0
	call	btowc@PLT
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	DWORD PTR -48[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cmp	edx, eax
	jne	.L91
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, -128
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
.L91:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	wprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	je	.L94
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
.L94:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L93
	call	__stack_chk_fail@PLT
.L93:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sentence_generate, .-sentence_generate
	.type	prefix_find, @function
prefix_find:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -20[rbp], 0
	jmp	.L96
.L103:
	mov	rdx, QWORD PTR markov_chain[rip+8]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L97
.L100:
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L98
	mov	DWORD PTR -16[rbp], 0
	jmp	.L99
.L98:
	add	DWORD PTR -12[rbp], 1
.L97:
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -12[rbp]
	cmp	edx, eax
	ja	.L100
.L99:
	cmp	DWORD PTR -16[rbp], 0
	je	.L101
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L102
.L101:
	add	DWORD PTR -20[rbp], 1
.L96:
	mov	edx, DWORD PTR markov_chain[rip]
	mov	eax, DWORD PTR -20[rbp]
	cmp	edx, eax
	ja	.L103
	mov	eax, -1
.L102:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	prefix_find, .-prefix_find
	.type	prefix_choose_random, @function
prefix_choose_random:
.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	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 128
	mov	DWORD PTR -48[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L105
.L109:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L106
.L108:
	mov	rdx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	ecx, ecx
	sal	rcx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	DWORD PTR -48[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cmp	edx, eax
	jne	.L107
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, -128
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
.L107:
	add	DWORD PTR -56[rbp], 1
.L106:
	mov	rdx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -56[rbp]
	cmp	edx, eax
	ja	.L108
	add	DWORD PTR -60[rbp], 1
.L105:
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -60[rbp]
	cmp	edx, eax
	ja	.L109
	mov	rbx, QWORD PTR -40[rbp]
	call	rand@PLT
	mov	ecx, DWORD PTR -48[rbp]
	mov	edx, 0
	div	ecx
	mov	eax, edx
	mov	eax, eax
	sal	rax, 2
	add	rax, rbx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	je	.L110
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
.L110:
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L112
	call	__stack_chk_fail@PLT
.L112:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	prefix_choose_random, .-prefix_choose_random
	.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	"502548.c"
	.text
	.global	markov_chain
	.bss
	.align	2
	.type	markov_chain, %object
	.size	markov_chain, 12
markov_chain:
	.space	12
	.global	markov_chain_start
	.align	2
	.type	markov_chain_start, %object
	.size	markov_chain_start, 12
markov_chain_start:
	.space	12
	.section	.rodata
	.align	2
.LC0:
	.ascii	"en_US.utf8\000"
	.align	2
.LC1:
	.ascii	"--help\000"
	.align	2
.LC2:
	.ascii	"-help\000"
	.align	2
.LC3:
	.ascii	"-h\000"
	.align	2
.LC4:
	.ascii	"?\000"
	.align	2
.LC5:
	.ascii	"-i\000"
	.align	2
.LC6:
	.ascii	"-m\000"
	.align	2
.LC7:
	.ascii	"-o\000"
	.align	2
.LC8:
	.ascii	"-sz\000"
	.align	2
.LC9:
	.ascii	"-sm\000"
	.align	2
.LC10:
	.ascii	"-s\000"
	.align	2
.LC11:
	.ascii	"S\000\000\000t\000\000\000a\000\000\000t\000\000\000"
	.ascii	"s\000\000\000:\000\000\000\012\000\000\000-\000\000"
	.ascii	"\000-\000\000\000-\000\000\000-\000\000\000-\000\000"
	.ascii	"\000-\000\000\000-\000\000\000-\000\000\000-\000\000"
	.ascii	"\000-\000\000\000-\000\000\000-\000\000\000-\000\000"
	.ascii	"\000-\000\000\000-\000\000\000-\000\000\000-\000\000"
	.ascii	"\000-\000\000\000-\000\000\000-\000\000\000-\000\000"
	.ascii	"\000-\000\000\000-\000\000\000-\000\000\000-\000\000"
	.ascii	"\000-\000\000\000-\000\000\000-\000\000\000-\000\000"
	.ascii	"\000-\000\000\000-\000\000\000\012\000\000\000\000\000"
	.ascii	"\000\000"
	.align	2
.LC12:
	.ascii	"P\000\000\000r\000\000\000e\000\000\000f\000\000\000"
	.ascii	"i\000\000\000x\000\000\000e\000\000\000s\000\000\000"
	.ascii	":\000\000\000 \000\000\000%\000\000\000d\000\000\000"
	.ascii	"\012\000\000\000\000\000\000\000"
	.global	__aeabi_l2d
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.align	2
.LC13:
	.ascii	"A\000\000\000v\000\000\000e\000\000\000r\000\000\000"
	.ascii	"a\000\000\000g\000\000\000e\000\000\000 \000\000\000"
	.ascii	"s\000\000\000u\000\000\000f\000\000\000f\000\000\000"
	.ascii	"i\000\000\000x\000\000\000e\000\000\000s\000\000\000"
	.ascii	":\000\000\000 \000\000\000%\000\000\000l\000\000\000"
	.ascii	"f\000\000\000\012\000\000\000\000\000\000\000"
	.align	2
.LC14:
	.ascii	"M\000\000\000a\000\000\000x\000\000\000 \000\000\000"
	.ascii	"s\000\000\000u\000\000\000f\000\000\000f\000\000\000"
	.ascii	"i\000\000\000x\000\000\000e\000\000\000s\000\000\000"
	.ascii	":\000\000\000 \000\000\000%\000\000\000d\000\000\000"
	.ascii	"\012\000\000\000\000\000\000\000"
	.align	2
.LC15:
	.ascii	"M\000\000\000i\000\000\000n\000\000\000 \000\000\000"
	.ascii	"s\000\000\000u\000\000\000f\000\000\000f\000\000\000"
	.ascii	"i\000\000\000x\000\000\000e\000\000\000s\000\000\000"
	.ascii	":\000\000\000 \000\000\000%\000\000\000d\000\000\000"
	.ascii	"\012\000\000\000\000\000\000\000"
	.align	2
.LC16:
	.ascii	"-\000\000\000-\000\000\000-\000\000\000-\000\000\000"
	.ascii	"-\000\000\000-\000\000\000-\000\000\000-\000\000\000"
	.ascii	"-\000\000\000-\000\000\000-\000\000\000-\000\000\000"
	.ascii	"-\000\000\000-\000\000\000-\000\000\000-\000\000\000"
	.ascii	"-\000\000\000-\000\000\000-\000\000\000-\000\000\000"
	.ascii	"-\000\000\000-\000\000\000-\000\000\000-\000\000\000"
	.ascii	"-\000\000\000-\000\000\000-\000\000\000-\000\000\000"
	.ascii	"-\000\000\000-\000\000\000-\000\000\000\012\000\000"
	.ascii	"\000\000\000\000\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #64
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r1, .L31
	mov	r0, #6
	bl	setlocale
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #2
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L2
.L23:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L31+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L31+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L31+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L31+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
.L3:
	ldr	r0, [fp, #-76]
	bl	print_help
	b	.L5
.L4:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L31+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bge	.L7
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L8
.L7:
	mov	r3, #0
.L8:
	str	r3, [fp, #-68]
	b	.L5
.L6:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L31+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bge	.L10
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L11
.L10:
	mov	r3, #0
.L11:
	str	r3, [fp, #-36]
	b	.L5
.L9:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L31+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bge	.L13
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L14
.L13:
	mov	r3, #0
.L14:
	str	r3, [fp, #-32]
	b	.L5
.L12:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L31+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bge	.L16
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L17
.L16:
	mov	r3, #0
.L17:
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-64]
	b	.L5
.L15:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L31+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bge	.L19
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L20
.L19:
	mov	r3, #0
.L20:
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-28]
	b	.L5
.L18:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L31+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bge	.L21
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L22
.L21:
	mov	r3, #0
.L22:
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-60]
.L5:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L2:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L23
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-68]
	bl	chain_generate
	ldr	r0, .L31+44
	bl	wprintf
	ldr	r3, .L31+48
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L31+52
	bl	wprintf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #-2147483648
	str	r3, [fp, #-52]
	mvn	r3, #-2147483648
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L24
.L27:
	ldr	r3, .L31+48
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #12]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	ble	.L25
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-52]
.L25:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bge	.L26
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-48]
.L26:
	ldr	r3, [fp, #-24]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L24:
	ldr	r3, .L31+48
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bhi	.L27
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L31+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L31+56
	bl	wprintf
	ldr	r1, [fp, #-52]
	ldr	r0, .L31+60
	bl	wprintf
	ldr	r1, [fp, #-48]
	ldr	r0, .L31+64
	bl	wprintf
	ldr	r0, .L31+68
	bl	wprintf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L28
.L29:
	ldr	r0, [fp, #-64]
	bl	sentence_generate
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L28:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L29
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	markov_chain
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.section	.rodata
	.align	2
.LC17:
	.ascii	"%s usage:\012%s -i filename [-o filename] [-sz stat"
	.ascii	"e_size]\012   -i\011file to generate chain from\012"
	.ascii	"   -o\011file to write output to (stdout if not pro"
	.ascii	"vided)\012   -sz\011state size, number of words to "
	.ascii	"consider, 2 by default\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_help, %function
print_help:
	@ 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, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L34
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC17
	.size	print_help, .-print_help
	.section	.rodata
	.align	2
.LC18:
	.ascii	"rb\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chain_generate, %function
chain_generate:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L54+4
	mov	r2, #128
	str	r2, [r3, #4]
	ldr	r3, .L54+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L54+4
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L54+4
	str	r2, [r3, #8]
	ldr	r3, .L54+8
	mov	r2, #128
	str	r2, [r3, #4]
	ldr	r3, .L54+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L54+8
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L54+8
	str	r2, [r3, #8]
	mov	r3, #128
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, .L54+12
	ldr	r0, [fp, #-56]
	bl	fopen
	str	r0, [fp, #-40]
.L48:
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	wchar_read_line
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L51
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L39
.L47:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	ble	.L52
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L42
.L44:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L43
	ldr	r3, [fp, #-16]
	add	r3, r3, #128
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	str	r3, [fp, #-12]
.L43:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L42:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L44
	mov	r0, #0
	bl	btowc
	str	r0, [fp, #-44]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	ble	.L45
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-52]
	ldr	r3, [fp, #-60]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-44]
.L45:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [sp]
	ldr	r3, [fp, #-44]
	sub	r2, fp, #20
	ldm	r2, {r0, r1, r2}
	bl	entry_add
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L41
.L52:
	nop
.L41:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L39:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L47
	b	.L38
.L51:
	nop
.L38:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bhi	.L48
	ldr	r0, [fp, #-40]
	bl	fclose
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
.L53:
	nop
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC19
	.word	markov_chain
	.word	markov_chain_start
	.word	.LC18
	.size	chain_generate, .-chain_generate
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wchar_read_line, %function
wchar_read_line:
	@ 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, #-28]
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-24]
	bl	fgetwc
	str	r0, [fp, #-16]
	b	.L57
.L60:
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L58
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	add	r2, r3, #128
	ldr	r3, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r2, [r3, #8]
.L58:
	ldr	r0, [fp, #-24]
	bl	fgetwc
	str	r0, [fp, #-16]
.L57:
	mov	r0, #10
	bl	btowc
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L59
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L60
.L59:
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #0
	bl	btowc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L62
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	add	r2, r3, #128
	ldr	r3, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r2, [r3, #8]
.L62:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	wchar_read_line, .-wchar_read_line
	.section	.rodata
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	entry_add, %function
entry_add:
	@ args = 4, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	sub	ip, fp, #80
	stm	ip, {r0, r1, r2}
	str	r3, [fp, #-84]
	ldr	r3, .L86
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L64
.L77:
	ldr	r3, .L86+4
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r3, [fp, #-48]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L65
.L68:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L66
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L67
.L66:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L65:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bhi	.L68
.L67:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L69
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L70
.L73:
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	bne	.L71
	mov	r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3, #4]
	b	.L72
.L71:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L70:
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bhi	.L73
.L72:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L85
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #32
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #12]
	add	r2, r3, #1
	ldr	r3, [fp, #-48]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	cmp	r2, r3
	bne	.L85
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	add	r2, r3, #128
	ldr	r3, [fp, #-48]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	lsl	r3, r3, #3
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r2, [r3, #20]
	b	.L63
.L69:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L64:
	ldr	r3, .L86+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bhi	.L77
	sub	r3, fp, #32
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	mov	r3, #128
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L78
.L80:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L79
	ldr	r3, [fp, #-28]
	add	r3, r3, #128
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	str	r3, [fp, #-24]
.L79:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L78:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bhi	.L80
	mov	r3, #128
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #40
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L81
	ldr	r3, [fp, #-16]
	add	r3, r3, #128
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	str	r3, [fp, #-12]
.L81:
	ldr	r3, .L86+4
	ldr	r1, [r3, #8]
	ldr	r3, .L86+4
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	lr, r3
	sub	ip, fp, #32
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	ldr	r3, .L86+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L86+4
	str	r3, [r2]
	ldr	r3, .L86+4
	ldr	r2, [r3]
	ldr	r3, .L86+4
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L82
	ldr	r3, .L86+4
	ldr	r3, [r3, #4]
	add	r3, r3, #128
	ldr	r2, .L86+4
	str	r3, [r2, #4]
	ldr	r3, .L86+4
	ldr	r0, [r3, #8]
	ldr	r3, .L86+4
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L86+4
	str	r3, [r2, #8]
.L82:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L86+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, .L86+8
	ldr	r2, [r3, #8]
	ldr	r3, .L86+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, .L86+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L86+8
	str	r3, [r2]
	ldr	r3, .L86+8
	ldr	r2, [r3]
	ldr	r3, .L86+8
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L63
	ldr	r3, .L86+8
	ldr	r3, [r3, #4]
	add	r3, r3, #128
	ldr	r2, .L86+8
	str	r3, [r2, #4]
	ldr	r3, .L86+8
	ldr	r2, [r3, #8]
	ldr	r3, .L86+8
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	ldr	r2, .L86+8
	str	r3, [r2, #8]
	b	.L63
.L85:
	nop
.L63:
	ldr	r3, .L86
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L84
	bl	__stack_chk_fail
.L84:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC20
	.word	markov_chain
	.word	markov_chain_start
	.size	entry_add, .-entry_add
	.global	__aeabi_uidivmod
	.section	.rodata
	.align	2
.LC21:
	.ascii	"%\000\000\000l\000\000\000s\000\000\000\012\000\000"
	.ascii	"\000\000\000\000\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sentence_generate, %function
sentence_generate:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	ldr	r3, .L101
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #128
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-52]
	ldr	r3, .L101+4
	ldr	r4, [r3, #8]
	bl	rand
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	str	r3, [fp, #-48]
	ldr	r3, .L101+8
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L89
.L91:
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-52]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r2, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L90
	ldr	r3, [fp, #-24]
	add	r3, r3, #128
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	str	r3, [fp, #-20]
.L90:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L89:
	ldr	r3, [fp, #-44]
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bhi	.L91
	b	.L92
.L96:
	ldr	r3, .L101+8
	ldr	r4, [r3, #8]
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2}
	bl	prefix_find
	mov	r3, r0
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r4, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	add	r3, r3, #12
	ldm	r3, {r0, r1, r2}
	bl	prefix_choose_random
	mov	r3, r0
	str	r3, [fp, #-48]
	mov	r0, #0
	bl	btowc
	mov	r2, r0
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	beq	.L93
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L93
	ldr	r3, [fp, #-24]
	add	r3, r3, #128
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	str	r3, [fp, #-20]
.L93:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L94
.L95:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-52]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L94:
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L95
	ldr	r3, [fp, #-64]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	str	r2, [r3]
.L92:
	ldr	r3, [fp, #-64]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r4, [r3]
	mov	r0, #0
	bl	btowc
	mov	r3, r0
	cmp	r4, r3
	bne	.L96
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #0
	bl	btowc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L97
	ldr	r3, [fp, #-24]
	add	r3, r3, #128
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	str	r3, [fp, #-20]
.L97:
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L101+12
	bl	wprintf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L100
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
.L100:
	nop
	ldr	r3, .L101
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L99
	bl	__stack_chk_fail
.L99:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC22
	.word	markov_chain_start
	.word	markov_chain
	.word	.LC21
	.size	sentence_generate, .-sentence_generate
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prefix_find, %function
prefix_find:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	sub	r3, fp, #32
	stm	r3, {r0, r1, r2}
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L104
.L111:
	ldr	r3, .L112
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L105
.L108:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L106
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L107
.L106:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L105:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bhi	.L108
.L107:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L109
	ldr	r3, [fp, #-20]
	b	.L110
.L109:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L104:
	ldr	r3, .L112
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bhi	.L111
	mvn	r3, #0
.L110:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L113:
	.align	2
.L112:
	.word	markov_chain
	.size	prefix_find, .-prefix_find
	.section	.rodata
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prefix_choose_random, %function
prefix_choose_random:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	sub	r3, fp, #56
	stm	r3, {r0, r1, r2}
	ldr	r3, .L123
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #128
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L115
.L119:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L116
.L118:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L117
	ldr	r3, [fp, #-24]
	add	r3, r3, #128
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	str	r3, [fp, #-20]
.L117:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L116:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bhi	.L118
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L115:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bhi	.L119
	ldr	r4, [fp, #-20]
	bl	rand
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
.L120:
	ldr	r3, [fp, #-32]
	ldr	r2, .L123
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L122
	bl	__stack_chk_fail
.L122:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L124:
	.align	2
.L123:
	.word	.LC23
	.size	prefix_choose_random, .-prefix_choose_random
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
