	.file	"841219.c"
	.intel_syntax noprefix
	.text
	.globl	ignore
	.bss
	.align 4
	.type	ignore, @object
	.size	ignore, 4
ignore:
	.zero	4
	.globl	spaces
	.align 4
	.type	spaces, @object
	.size	spaces, 4
spaces:
	.zero	4
	.text
	.globl	dospace
	.type	dospace, @function
dospace:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, DWORD PTR spaces[rip]
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rcx
	mov	BYTE PTR [rax], 32
.L2:
	mov	DWORD PTR spaces[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dospace, .-dospace
	.section	.rodata
.LC0:
	.string	"ALIGN"
.LC1:
	.string	"CENTER"
.LC2:
	.string	"RIGHT"
	.text
	.globl	check_align
	.type	check_align, @function
check_align:
.LFB1:
	.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]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L4
	jmp	.L5
.L7:
	add	QWORD PTR -8[rbp], 1
.L5:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L6
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 61
	jne	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 61
	jne	.L4
	add	QWORD PTR -8[rbp], 1
	jmp	.L8
.L10:
	add	QWORD PTR -8[rbp], 1
.L8:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L9
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L10
.L9:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	jne	.L11
	add	QWORD PTR -8[rbp], 1
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 6
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L12
	mov	eax, 11
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	eax, 14
	jmp	.L13
.L4:
	mov	eax, 13
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	check_align, .-check_align
	.globl	big
	.bss
	.align 4
	.type	big, @object
	.size	big, 4
big:
	.zero	4
	.globl	heading
	.align 4
	.type	heading, @object
	.size	heading, 4
heading:
	.zero	4
	.globl	paragraph
	.data
	.align 4
	.type	paragraph, @object
	.size	paragraph, 4
paragraph:
	.long	1
	.globl	inpara
	.bss
	.align 4
	.type	inpara, @object
	.size	inpara, 4
inpara:
	.zero	4
	.section	.rodata
.LC3:
	.string	"P"
.LC4:
	.string	"P "
.LC5:
	.string	"BLOCKQUOTE"
.LC6:
	.string	"/P"
.LC7:
	.string	"/H"
.LC8:
	.string	"LI"
.LC9:
	.string	"B"
.LC10:
	.string	"/B"
.LC11:
	.string	"I"
.LC12:
	.string	"/I"
.LC13:
	.string	"BR"
.LC14:
	.string	"TITLE"
.LC15:
	.string	"/TITLE"
	.text
	.globl	handle_tag
	.type	handle_tag, @function
handle_tag:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
.L15:
	mov	eax, DWORD PTR inpara[rip]
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
	mov	eax, DWORD PTR big[rip]
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
.L17:
	mov	DWORD PTR inpara[rip], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	check_align
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	DWORD PTR spaces[rip], 0
	mov	eax, DWORD PTR paragraph[rip]
	cmp	eax, 1
	jne	.L18
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
	jmp	.L37
.L18:
	mov	eax, DWORD PTR paragraph[rip]
	cmp	eax, 2
	jne	.L37
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 32
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 32
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 32
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 32
	jmp	.L37
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
	mov	eax, DWORD PTR big[rip]
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
.L22:
	mov	DWORD PTR inpara[rip], 0
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 72
	jne	.L23
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cmp	eax, 9
	ja	.L23
	mov	DWORD PTR heading[rip], 1
	mov	DWORD PTR spaces[rip], 0
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	check_align
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 50
	jg	.L24
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 4
	mov	DWORD PTR big[rip], 1
	jmp	.L20
.L24:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 2
	jmp	.L20
.L23:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L26
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cmp	eax, 9
	ja	.L26
	mov	DWORD PTR spaces[rip], 0
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
	mov	eax, DWORD PTR big[rip]
	test	eax, eax
	je	.L27
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
.L27:
	mov	DWORD PTR big[rip], 0
	jmp	.L20
.L26:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	stricmp@PLT
	test	eax, eax
	jne	.L28
	mov	DWORD PTR spaces[rip], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 706748426
	mov	WORD PTR 4[rax], 32
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 5
	mov	QWORD PTR -16[rbp], rax
	jmp	.L20
.L28:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	dospace
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 2
	jmp	.L20
.L29:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	dospace
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 1
	jmp	.L20
.L37:
	nop
.L20:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L30
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	dospace
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 3
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	dospace
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 1
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
	mov	eax, DWORD PTR big[rip]
	test	eax, eax
	je	.L34
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 10
.L34:
	mov	DWORD PTR spaces[rip], 0
	jmp	.L31
.L33:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	stricmp@PLT
	test	eax, eax
	jne	.L35
	mov	DWORD PTR ignore[rip], 1
	jmp	.L31
.L35:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	stricmp@PLT
	test	eax, eax
	jne	.L31
	mov	DWORD PTR ignore[rip], 0
.L31:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	handle_tag, .-handle_tag
	.section	.rodata
.LC16:
	.string	"quot"
.LC17:
	.string	"nbsp"
	.text
	.globl	handle_spec
	.type	handle_spec, @function
handle_spec:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L39
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 34
	jmp	.L40
.L39:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 32
.L40:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	handle_spec, .-handle_spec
	.globl	tag_mode
	.bss
	.align 4
	.type	tag_mode, @object
	.size	tag_mode, 4
tag_mode:
	.zero	4
	.globl	dest
	.align 8
	.type	dest, @object
	.size	dest, 8
dest:
	.zero	8
	.text
	.globl	parse_line
	.type	parse_line, @function
parse_line:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1328
	mov	QWORD PTR -1320[rbp], rdi
	mov	QWORD PTR -1328[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR tag_mode[rip]
	test	eax, eax
	je	.L62
	jmp	.L43
.L60:
	mov	rax, QWORD PTR -1328[rbp]
	mov	QWORD PTR -1304[rbp], rax
	mov	rax, QWORD PTR -1320[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 60
	je	.L45
	cmp	eax, 60
	jg	.L46
	cmp	eax, 38
	je	.L47
	cmp	eax, 38
	jg	.L46
	cmp	eax, 32
	je	.L48
	cmp	eax, 32
	jg	.L46
	cmp	eax, 10
	je	.L48
	cmp	eax, 13
	je	.L48
	jmp	.L46
.L47:
	mov	eax, DWORD PTR spaces[rip]
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR -1328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1328[rbp], rdx
	mov	BYTE PTR [rax], 32
.L49:
	mov	DWORD PTR spaces[rip], 0
	add	QWORD PTR -1320[rbp], 1
	lea	rax, -1296[rbp]
	mov	QWORD PTR dest[rip], rax
	jmp	.L50
.L52:
	mov	rdx, QWORD PTR -1320[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -1320[rbp], rax
	mov	rax, QWORD PTR dest[rip]
	lea	rcx, 1[rax]
	mov	QWORD PTR dest[rip], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L50:
	mov	rax, QWORD PTR -1320[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L51
	mov	rax, QWORD PTR -1320[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 59
	jne	.L52
.L51:
	mov	rax, QWORD PTR dest[rip]
	mov	BYTE PTR [rax], 0
	lea	rdx, -1328[rbp]
	lea	rax, -1296[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	handle_spec
	jmp	.L53
.L45:
	add	QWORD PTR -1320[rbp], 1
	lea	rax, -1296[rbp]
	mov	QWORD PTR dest[rip], rax
.L43:
	jmp	.L54
.L56:
	mov	rax, QWORD PTR -1320[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1320[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR dest[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR dest[rip], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
.L54:
	mov	rax, QWORD PTR -1320[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L55
	mov	rax, QWORD PTR -1320[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	jne	.L56
.L55:
	mov	rax, QWORD PTR -1320[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L57
	mov	rax, QWORD PTR dest[rip]
	mov	BYTE PTR [rax], 0
	lea	rdx, -1328[rbp]
	lea	rax, -1296[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	handle_tag
	mov	DWORD PTR tag_mode[rip], 0
	jmp	.L53
.L57:
	mov	DWORD PTR tag_mode[rip], 1
	jmp	.L53
.L48:
	mov	eax, DWORD PTR spaces[rip]
	add	eax, 1
	mov	DWORD PTR spaces[rip], eax
	jmp	.L53
.L46:
	mov	eax, DWORD PTR spaces[rip]
	test	eax, eax
	je	.L59
	mov	rax, QWORD PTR -1328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1328[rbp], rdx
	mov	BYTE PTR [rax], 32
.L59:
	mov	rax, QWORD PTR -1328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1328[rbp], rdx
	mov	rdx, QWORD PTR -1320[rbp]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	mov	DWORD PTR spaces[rip], 0
	nop
.L53:
	add	QWORD PTR -1320[rbp], 1
	mov	eax, DWORD PTR ignore[rip]
	test	eax, eax
	je	.L44
	mov	rax, QWORD PTR -1304[rbp]
	mov	QWORD PTR -1328[rbp], rax
	jmp	.L44
.L62:
	nop
.L44:
	mov	rax, QWORD PTR -1320[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L60
	mov	eax, DWORD PTR spaces[rip]
	add	eax, 1
	mov	DWORD PTR spaces[rip], eax
	mov	rax, QWORD PTR -1328[rbp]
	mov	BYTE PTR [rax], 0
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	parse_line, .-parse_line
	.globl	buf1
	.bss
	.align 32
	.type	buf1, @object
	.size	buf1, 16384
buf1:
	.zero	16384
	.globl	buf2
	.align 32
	.type	buf2, @object
	.size	buf2, 16384
buf2:
	.zero	16384
	.section	.rodata
	.align 8
.LC18:
	.string	"Minimum chapter size set to %d\n"
.LC19:
	.string	"r"
.LC20:
	.string	"%s%d.txt"
.LC21:
	.string	"wb"
.LC22:
	.string	"No input file"
.LC23:
	.string	"No output file"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	DWORD PTR -140[rbp], 0
	mov	DWORD PTR -136[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	mov	DWORD PTR -124[rbp], 1
	mov	DWORD PTR -132[rbp], 1
	jmp	.L64
.L73:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L65
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 115
	je	.L66
	cmp	eax, 115
	jg	.L71
	cmp	eax, 112
	je	.L68
	cmp	eax, 112
	jg	.L71
	cmp	eax, 83
	je	.L69
	cmp	eax, 109
	je	.L70
	jmp	.L71
.L68:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	QWORD PTR -104[rbp], rax
	jmp	.L71
.L66:
	mov	DWORD PTR -140[rbp], 1
	jmp	.L71
.L69:
	mov	DWORD PTR -140[rbp], 2
	jmp	.L71
.L70:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	mov	DWORD PTR -136[rbp], eax
	mov	eax, DWORD PTR -136[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L71
.L65:
	cmp	QWORD PTR -120[rbp], 0
	jne	.L72
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -120[rbp], rax
	jmp	.L71
.L72:
	cmp	QWORD PTR -112[rbp], 0
	jne	.L71
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -112[rbp], rax
.L71:
	add	DWORD PTR -132[rbp], 1
.L64:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L73
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	DWORD PTR -140[rbp], 0
	je	.L74
	mov	ecx, DWORD PTR -124[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	lea	rax, -80[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L75
.L74:
	mov	rdx, QWORD PTR -112[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L75:
	lea	rax, -80[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L76
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L86
.L76:
	cmp	QWORD PTR -96[rbp], 0
	jne	.L79
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L86
.L85:
	mov	DWORD PTR -132[rbp], 1
	lea	rdi, buf1[rip]
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rax, buf1[rip]
	mov	BYTE PTR [rdx+rax], 0
	lea	rsi, buf2[rip]
	lea	rdi, buf1[rip]
	call	parse_line
	cmp	QWORD PTR -104[rbp], 0
	je	.L80
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, buf1[rip]
	call	strstr@PLT
	test	rax, rax
	je	.L81
	mov	DWORD PTR -132[rbp], 2
	jmp	.L80
.L81:
	mov	DWORD PTR -132[rbp], 0
.L80:
	cmp	DWORD PTR -132[rbp], 0
	je	.L82
	cmp	DWORD PTR -140[rbp], 0
	je	.L82
	mov	eax, DWORD PTR heading[rip]
	test	eax, eax
	je	.L83
	mov	DWORD PTR -132[rbp], 2
	jmp	.L82
.L83:
	mov	DWORD PTR -132[rbp], 0
.L82:
	cmp	DWORD PTR -132[rbp], 2
	jne	.L84
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jle	.L84
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -124[rbp], 1
	mov	ecx, DWORD PTR -124[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	lea	rax, -80[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -80[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -128[rbp], 0
.L84:
	mov	DWORD PTR heading[rip], 0
	lea	rdi, buf2[rip]
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, rax
	mov	esi, 1
	lea	rdi, buf2[rip]
	call	fwrite@PLT
	lea	rdi, buf2[rip]
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -128[rbp]
	add	eax, edx
	mov	DWORD PTR -128[rbp], eax
.L79:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, rax
	mov	esi, 16384
	lea	rdi, buf1[rip]
	call	fgets@PLT
	test	rax, rax
	jne	.L85
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L86:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L87
	call	__stack_chk_fail@PLT
.L87:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.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	"841219.c"
	.text
	.global	ignore
	.bss
	.align	2
	.type	ignore, %object
	.size	ignore, 4
ignore:
	.space	4
	.global	spaces
	.align	2
	.type	spaces, %object
	.size	spaces, 4
spaces:
	.space	4
	.text
	.align	2
	.global	dospace
	.syntax unified
	.arm
	.fpu softvfp
	.type	dospace, %function
dospace:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r2, [fp, #-8]
	str	r1, [r2]
	mov	r2, #32
	strb	r2, [r3]
.L2:
	ldr	r3, .L3
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	spaces
	.size	dospace, .-dospace
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ALIGN\000"
	.align	2
.LC1:
	.ascii	"CENTER\000"
	.align	2
.LC2:
	.ascii	"RIGHT\000"
	.text
	.align	2
	.global	check_align
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_align, %function
check_align:
	@ 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	r1, .L16
	ldr	r0, [fp, #-8]
	bl	strstr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	b	.L7
.L9:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L9
.L8:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L6
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L10
.L12:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L12
.L11:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L13
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	mov	r2, #6
	ldr	r1, .L16+4
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	mov	r3, #11
	b	.L15
.L14:
	ldr	r1, .L16+8
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	mov	r3, #14
	b	.L15
.L6:
	mov	r3, #13
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	check_align, .-check_align
	.global	big
	.bss
	.align	2
	.type	big, %object
	.size	big, 4
big:
	.space	4
	.global	heading
	.align	2
	.type	heading, %object
	.size	heading, 4
heading:
	.space	4
	.global	paragraph
	.data
	.align	2
	.type	paragraph, %object
	.size	paragraph, 4
paragraph:
	.word	1
	.global	inpara
	.bss
	.align	2
	.type	inpara, %object
	.size	inpara, 4
inpara:
	.space	4
	.section	.rodata
	.align	2
.LC3:
	.ascii	"P\000"
	.align	2
.LC4:
	.ascii	"P \000"
	.align	2
.LC5:
	.ascii	"BLOCKQUOTE\000"
	.align	2
.LC6:
	.ascii	"/P\000"
	.align	2
.LC7:
	.ascii	"/H\000"
	.align	2
.LC8:
	.ascii	"LI\000"
	.align	2
.LC9:
	.ascii	"\012  * \000"
	.align	2
.LC10:
	.ascii	"B\000"
	.align	2
.LC11:
	.ascii	"/B\000"
	.align	2
.LC12:
	.ascii	"I\000"
	.align	2
.LC13:
	.ascii	"/I\000"
	.align	2
.LC14:
	.ascii	"BR\000"
	.align	2
.LC15:
	.ascii	"TITLE\000"
	.align	2
.LC16:
	.ascii	"/TITLE\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_tag
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_tag, %function
handle_tag:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r1, .L42+4
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	mov	r2, #2
	ldr	r1, .L42+8
	ldr	r0, [fp, #-16]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r1, .L42+12
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
.L19:
	ldr	r3, .L42+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, .L42+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
.L21:
	ldr	r3, .L42+16
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	check_align
	mov	r1, r0
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, .L42+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L42+28
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L22
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
	b	.L41
.L22:
	ldr	r3, .L42+28
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L41
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #32
	strb	r2, [r3]
	b	.L41
.L20:
	mov	r2, #2
	ldr	r1, .L42+32
	ldr	r0, [fp, #-16]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, .L42+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
.L26:
	ldr	r3, .L42+16
	mov	r2, #0
	str	r2, [r3]
	b	.L24
.L25:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #72
	bne	.L27
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L27
	ldr	r3, .L42+36
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L42+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	check_align
	mov	r1, r0
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #50
	bhi	.L28
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #4
	strb	r2, [r3]
	ldr	r3, .L42+20
	mov	r2, #1
	str	r2, [r3]
	b	.L24
.L28:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #2
	strb	r2, [r3]
	b	.L24
.L27:
	mov	r2, #2
	ldr	r1, .L42+40
	ldr	r0, [fp, #-16]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L30
	ldr	r3, .L42+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, .L42+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
.L31:
	ldr	r3, .L42+20
	mov	r2, #0
	str	r2, [r3]
	b	.L24
.L30:
	ldr	r1, .L42+44
	ldr	r0, [fp, #-16]
	bl	stricmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L42+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, .L42+48
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	add	r3, r3, #5
	str	r3, [fp, #-12]
	b	.L24
.L32:
	ldr	r1, .L42+52
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	sub	r3, fp, #12
	mov	r0, r3
	bl	dospace
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #2
	strb	r2, [r3]
	b	.L24
.L33:
	ldr	r1, .L42+56
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	sub	r3, fp, #12
	mov	r0, r3
	bl	dospace
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #1
	strb	r2, [r3]
	b	.L24
.L41:
	nop
.L24:
	ldr	r1, .L42+60
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	sub	r3, fp, #12
	mov	r0, r3
	bl	dospace
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #3
	strb	r2, [r3]
	b	.L35
.L34:
	ldr	r1, .L42+64
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	sub	r3, fp, #12
	mov	r0, r3
	bl	dospace
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #1
	strb	r2, [r3]
	b	.L35
.L36:
	ldr	r1, .L42+68
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, .L42+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #10
	strb	r2, [r3]
.L38:
	ldr	r3, .L42+24
	mov	r2, #0
	str	r2, [r3]
	b	.L35
.L37:
	ldr	r1, .L42+72
	ldr	r0, [fp, #-16]
	bl	stricmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	ldr	r3, .L42+76
	mov	r2, #1
	str	r2, [r3]
	b	.L35
.L39:
	ldr	r1, .L42+80
	ldr	r0, [fp, #-16]
	bl	stricmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L42+76
	mov	r2, #0
	str	r2, [r3]
.L35:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	nop
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC17
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	inpara
	.word	big
	.word	spaces
	.word	paragraph
	.word	.LC6
	.word	heading
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	ignore
	.word	.LC16
	.size	handle_tag, .-handle_tag
	.section	.rodata
	.align	2
.LC18:
	.ascii	"quot\000"
	.align	2
.LC19:
	.ascii	"nbsp\000"
	.text
	.align	2
	.global	handle_spec
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_spec, %function
handle_spec:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r1, .L47
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, #34
	strb	r2, [r3]
	b	.L46
.L45:
	ldr	r1, .L47+4
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, #32
	strb	r2, [r3]
.L46:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC18
	.word	.LC19
	.size	handle_spec, .-handle_spec
	.global	tag_mode
	.bss
	.align	2
	.type	tag_mode, %object
	.size	tag_mode, 4
tag_mode:
	.space	4
	.comm	dest,4,4
	.section	.rodata
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_line, %function
parse_line:
	@ args = 0, pretend = 0, frame = 1296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1296
	str	r0, [fp, #-1296]
	str	r1, [fp, #-1300]
	ldr	r3, .L77
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L76
	b	.L51
.L74:
	ldr	r3, [fp, #-1300]
	str	r3, [fp, #-1292]
	ldr	r3, [fp, #-1296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #151
	beq	.L53
	cmp	r3, #151
	bgt	.L54
	cmp	r3, #149
	bgt	.L54
	cmp	r3, #148
	bge	.L55
	cmp	r3, #38
	bgt	.L56
	cmp	r3, #10
	blt	.L54
	sub	r3, r3, #10
	cmp	r3, #28
	ldrls	pc, [pc, r3, asl #2]
	b	.L54
.L58:
	.word	.L59
	.word	.L54
	.word	.L54
	.word	.L59
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L59
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L54
	.word	.L57
.L56:
	cmp	r3, #60
	beq	.L60
	b	.L54
.L57:
	ldr	r3, .L77+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-1300]
	add	r2, r3, #1
	str	r2, [fp, #-1300]
	mov	r2, #32
	strb	r2, [r3]
.L61:
	ldr	r3, .L77+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-1296]
	add	r3, r3, #1
	str	r3, [fp, #-1296]
	ldr	r2, .L77+12
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [r2]
	b	.L62
.L64:
	ldr	r2, [fp, #-1296]
	add	r3, r2, #1
	str	r3, [fp, #-1296]
	ldr	r3, .L77+12
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L77+12
	str	r1, [r0]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L62:
	ldr	r3, [fp, #-1296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-1296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L64
.L63:
	ldr	r3, .L77+12
	ldr	r3, [r3]
	mov	r2, #0
	strb	r2, [r3]
	sub	r2, fp, #1296
	sub	r2, r2, #4
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	handle_spec
	b	.L65
.L60:
	ldr	r3, [fp, #-1296]
	add	r3, r3, #1
	str	r3, [fp, #-1296]
	ldr	r2, .L77+12
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [r2]
.L51:
	b	.L66
.L68:
	ldr	r3, [fp, #-1296]
	add	r2, r3, #1
	str	r2, [fp, #-1296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r1, r0
	ldr	r3, .L77+12
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r0, .L77+12
	str	r2, [r0]
	and	r2, r1, #255
	strb	r2, [r3]
.L66:
	ldr	r3, [fp, #-1296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-1296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L68
.L67:
	ldr	r3, [fp, #-1296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L69
	ldr	r3, .L77+12
	ldr	r3, [r3]
	mov	r2, #0
	strb	r2, [r3]
	sub	r2, fp, #1296
	sub	r2, r2, #4
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	handle_tag
	ldr	r3, .L77+4
	mov	r2, #0
	str	r2, [r3]
	b	.L65
.L69:
	ldr	r3, .L77+4
	mov	r2, #1
	str	r2, [r3]
	b	.L65
.L53:
	ldr	r3, .L77+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #-1300]
	add	r2, r3, #1
	str	r2, [fp, #-1300]
	mov	r2, #32
	strb	r2, [r3]
.L71:
	ldr	r3, [fp, #-1300]
	add	r2, r3, #1
	str	r2, [fp, #-1300]
	mov	r2, #45
	strb	r2, [r3]
	ldr	r3, .L77+8
	mov	r2, #0
	str	r2, [r3]
	b	.L65
.L55:
	ldr	r3, .L77+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L72
	ldr	r3, [fp, #-1300]
	add	r2, r3, #1
	str	r2, [fp, #-1300]
	mov	r2, #32
	strb	r2, [r3]
.L72:
	ldr	r3, [fp, #-1300]
	add	r2, r3, #1
	str	r2, [fp, #-1300]
	mov	r2, #34
	strb	r2, [r3]
	ldr	r3, .L77+8
	mov	r2, #0
	str	r2, [r3]
	b	.L65
.L59:
	ldr	r3, .L77+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L77+8
	str	r3, [r2]
	b	.L65
.L54:
	ldr	r3, .L77+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L73
	ldr	r3, [fp, #-1300]
	add	r2, r3, #1
	str	r2, [fp, #-1300]
	mov	r2, #32
	strb	r2, [r3]
.L73:
	ldr	r3, [fp, #-1300]
	add	r2, r3, #1
	str	r2, [fp, #-1300]
	ldr	r2, [fp, #-1296]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, .L77+8
	mov	r2, #0
	str	r2, [r3]
	nop
.L65:
	ldr	r3, [fp, #-1296]
	add	r3, r3, #1
	str	r3, [fp, #-1296]
	ldr	r3, .L77+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-1292]
	str	r3, [fp, #-1300]
	b	.L52
.L76:
	nop
.L52:
	ldr	r3, [fp, #-1296]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L74
	ldr	r3, .L77+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L77+8
	str	r3, [r2]
	ldr	r3, [fp, #-1300]
	mov	r2, #0
	strb	r2, [r3]
	nop
	ldr	r3, .L77
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC20
	.word	tag_mode
	.word	spaces
	.word	dest
	.word	ignore
	.size	parse_line, .-parse_line
	.comm	buf1,16384,4
	.comm	buf2,16384,4
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Minimum chapter size set to %d\012\000"
	.align	2
.LC22:
	.ascii	"r\000"
	.align	2
.LC23:
	.ascii	"%s%d.txt\000"
	.align	2
.LC24:
	.ascii	"wb\000"
	.align	2
.LC25:
	.ascii	"No input file\000"
	.align	2
.LC26:
	.ascii	"No output file\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L104
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #1
	str	r3, [fp, #-84]
	mov	r3, #1
	str	r3, [fp, #-92]
	b	.L80
.L89:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L81
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #115
	beq	.L82
	cmp	r3, #115
	bgt	.L87
	cmp	r3, #112
	beq	.L84
	cmp	r3, #112
	bgt	.L87
	cmp	r3, #83
	beq	.L85
	cmp	r3, #109
	beq	.L86
	b	.L87
.L84:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	str	r3, [fp, #-104]
	b	.L87
.L82:
	mov	r3, #1
	str	r3, [fp, #-100]
	b	.L87
.L85:
	mov	r3, #2
	str	r3, [fp, #-100]
	b	.L87
.L86:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-96]
	ldr	r1, [fp, #-96]
	ldr	r0, .L104+4
	bl	printf
	b	.L87
.L81:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L88
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-112]
	b	.L87
.L88:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L87
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-108]
.L87:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L80:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	blt	.L89
	ldr	r1, .L104+8
	ldr	r0, [fp, #-112]
	bl	fopen
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	beq	.L90
	sub	r0, fp, #72
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-108]
	ldr	r1, .L104+12
	bl	sprintf
	b	.L91
.L90:
	sub	r3, fp, #72
	ldr	r1, [fp, #-108]
	mov	r0, r3
	bl	strcpy
.L91:
	sub	r3, fp, #72
	ldr	r1, .L104+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L92
	ldr	r0, .L104+20
	bl	puts
	mov	r3, #0
	b	.L102
.L92:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L95
	ldr	r0, .L104+24
	bl	puts
	mov	r3, #0
	b	.L102
.L101:
	mov	r3, #1
	str	r3, [fp, #-92]
	ldr	r0, .L104+28
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L104+28
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r1, .L104+32
	ldr	r0, .L104+28
	bl	parse_line
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L96
	ldr	r1, [fp, #-104]
	ldr	r0, .L104+28
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L97
	mov	r3, #2
	str	r3, [fp, #-92]
	b	.L96
.L97:
	mov	r3, #0
	str	r3, [fp, #-92]
.L96:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	beq	.L98
	ldr	r3, .L104+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L99
	mov	r3, #2
	str	r3, [fp, #-92]
	b	.L98
.L99:
	mov	r3, #0
	str	r3, [fp, #-92]
.L98:
	ldr	r3, [fp, #-92]
	cmp	r3, #2
	bne	.L100
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	ble	.L100
	ldr	r0, [fp, #-80]
	bl	fclose
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
	sub	r0, fp, #72
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-108]
	ldr	r1, .L104+12
	bl	sprintf
	sub	r3, fp, #72
	ldr	r1, .L104+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-88]
.L100:
	ldr	r3, .L104+36
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L104+32
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-80]
	mov	r1, #1
	ldr	r0, .L104+32
	bl	fwrite
	ldr	r0, .L104+32
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-88]
.L95:
	ldr	r2, [fp, #-76]
	mov	r1, #16384
	ldr	r0, .L104+28
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L101
	ldr	r0, [fp, #-76]
	bl	fclose
	ldr	r0, [fp, #-80]
	bl	fclose
	mov	r3, #0
.L102:
	ldr	r2, .L104
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L103
	bl	__stack_chk_fail
.L103:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L105:
	.align	2
.L104:
	.word	.LC27
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	buf1
	.word	buf2
	.word	heading
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
