	.file	"extr_mandocdb.c_parse_cat.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
.LC1:
	.string	"&fopen"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Section \"%s\" manual in %s directory"
	.section	.rodata.str1.1
.LC3:
	.string	"Cannot find NAME section"
.LC4:
	.string	"- "
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"No dash in title line, reusing \"%s\" as one-line description"
	.text
	.p2align 4
	.type	parse_cat, @function
parse_cat:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 24[rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 16[rdi]
	mov	QWORD PTR 16[rsp], rax
	cmp	esi, -1
	je	.L72
	mov	ebp, esi
	lea	rsi, .LC0[rip]
	mov	edi, ebp
	call	fdopen@PLT
	mov	r12, rax
	test	rax, rax
	je	.L73
.L4:
	mov	QWORD PTR 40[rsp], 0
	lea	r14, 48[rsp]
	lea	r13, 40[rsp]
	mov	QWORD PTR 48[rsp], 0
.L6:
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, r13
	call	getline@PLT
	cmp	eax, -1
	je	.L11
	mov	rdi, QWORD PTR 40[rsp]
	cmp	BYTE PTR [rdi], 10
	je	.L6
	mov	esi, 40
	call	strchr@PLT
	test	rax, rax
	je	.L11
	lea	rbp, 1[rax]
	mov	esi, 41
	mov	rdi, rbp
	call	strchr@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L11
	mov	r15, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR [r15]
	call	free@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	sub	rsi, rbp
	call	mandoc_strndup@PLT
	cmp	QWORD PTR warnings[rip], 0
	mov	QWORD PTR [r15], rax
	jne	.L74
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 40[rsp]
	test	rax, rax
	je	.L12
	cmp	BYTE PTR [rax], 10
	je	.L15
.L12:
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, r13
	call	getline@PLT
	cmp	eax, -1
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, r13
	call	getline@PLT
	cmp	eax, -1
	je	.L36
	mov	rax, QWORD PTR 40[rsp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L15
	cmp	al, 32
	je	.L15
.L36:
	mov	QWORD PTR [rsp], 0
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, r13
	call	getline@PLT
	mov	r8, QWORD PTR 40[rsp]
	mov	DWORD PTR 8[rsp], eax
	cmp	eax, -1
	je	.L17
	movzx	edi, BYTE PTR [r8]
	cmp	dil, 32
	jne	.L17
	xor	ebp, ebp
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR 40[rsp]
	movzx	edi, BYTE PTR [rax+rbp]
.L18:
	call	isspace@PLT
	mov	ebx, ebp
	add	rbp, 1
	test	rax, rax
	jne	.L19
	mov	rax, QWORD PTR 40[rsp]
	movsx	rdx, ebx
	cmp	BYTE PTR [rax+rdx], 0
	je	.L20
	movsx	rsi, DWORD PTR 8[rsp]
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rdx
	mov	rbp, rsi
	sub	rsi, rdx
	add	rsi, QWORD PTR [rsp]
	call	mandoc_realloc@PLT
	sub	ebp, ebx
	mov	rdx, QWORD PTR 8[rsp]
	mov	rbx, QWORD PTR [rsp]
	add	rdx, QWORD PTR 40[rsp]
	mov	r15, rax
	mov	rsi, rdx
	mov	edx, ebp
	lea	rdi, [rax+rbx]
	movsx	rbp, ebp
	call	memcpy@PLT
	add	rbx, rbp
	mov	QWORD PTR [rsp], rbx
	mov	BYTE PTR -1[r15+rbx], 32
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r8
	call	free@PLT
	test	r15, r15
	je	.L23
	cmp	BYTE PTR [r15], 0
	je	.L23
	mov	rax, QWORD PTR [rsp]
	lea	rsi, .LC4[rip]
	mov	rdi, r15
	mov	BYTE PTR -1[r15+rax], 0
	call	strstr@PLT
	test	rax, rax
	je	.L26
	lea	rbp, 2[rax]
	movzx	eax, BYTE PTR 2[rax]
	cmp	al, 8
	je	.L59
	cmp	al, 32
	jne	.L27
	.p2align 4,,10
	.p2align 3
.L59:
	movzx	eax, BYTE PTR 1[rbp]
	add	rbp, 1
	cmp	al, 32
	je	.L59
	cmp	al, 8
	je	.L59
.L27:
	mov	rdi, rbp
	call	strlen@PLT
	mov	r13, rax
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, rbp
	mov	rdx, r13
	mov	esi, 8
	call	memchr@PLT
	mov	QWORD PTR 40[rsp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L75
	mov	rax, rdi
	lea	rsi, 1[rdi]
	sub	rax, rbp
	cmp	edi, ebp
	je	.L76
	cdqe
	mov	rdx, r13
	sub	rdi, 1
	sub	r13, 2
	sub	rdx, rax
	call	memmove@PLT
	jmp	.L30
.L23:
	cmp	QWORD PTR warnings[rip], 0
	jne	.L77
.L70:
	mov	rdi, r12
	call	fclose@PLT
	mov	rdi, r15
	call	free@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L78
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L76:
	.cfi_restore_state
	mov	rdx, r13
	lea	rbx, -1[r13]
	call	memmove@PLT
	mov	r13, rbx
	jmp	.L30
.L75:
	mov	esi, 150
	mov	rdi, rbp
	call	mandoc_strndup@PLT
	mov	rcx, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rcx], rax
	jmp	.L70
.L72:
	mov	edi, DWORD PTR 8[rax]
	lea	rsi, .LC0[rip]
	call	fopen@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L4
.L3:
	cmp	QWORD PTR warnings[rip], 0
	je	.L1
	mov	rax, QWORD PTR 16[rsp]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR 8[rax]
	xor	eax, eax
	call	say@PLT
	jmp	.L1
.L74:
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR [rcx]
	cmp	BYTE PTR [rsi], 0
	je	.L11
	mov	rdi, rax
	call	strcasecmp@PLT
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR 16[rsp]
	lea	rsi, .LC2[rip]
	mov	edi, DWORD PTR 8[rax]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR 24[rsp]
	mov	rdx, QWORD PTR [rax]
	xor	eax, eax
	call	say@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L26:
	cmp	QWORD PTR warnings[rip], 0
	mov	rbp, r15
	je	.L27
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, r15
	lea	rsi, .LC5[rip]
	mov	edi, DWORD PTR 8[rax]
	xor	eax, eax
	call	say@PLT
	jmp	.L27
.L77:
	mov	rax, QWORD PTR 16[rsp]
	lea	rsi, .LC3[rip]
	mov	edi, DWORD PTR 8[rax]
	xor	eax, eax
	call	say@PLT
	jmp	.L70
.L73:
	mov	edi, ebp
	call	close@PLT
	jmp	.L3
.L78:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_cat, .-parse_cat
	.comm	warnings,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mandocdb.c_parse_cat.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"&fopen\000"
	.align	2
.LC2:
	.ascii	"Section \"%s\" manual in %s directory\000"
	.align	2
.LC3:
	.ascii	"Cannot find NAME section\000"
	.align	2
.LC4:
	.ascii	"- \000"
	.align	2
.LC5:
	.ascii	"No dash in title line, reusing \"%s\" as one-line d"
	.ascii	"escription\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_cat, %function
parse_cat:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L86
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r3, [r0, #8]
	cmn	r1, #1
	mov	r9, r0
	str	r3, [sp, #4]
	beq	.L79
	mov	r4, r1
	ldr	r1, .L86+4
	mov	r0, r4
	bl	fdopen
	subs	r6, r0, #0
	beq	.L80
.L4:
	mov	r3, #0
	str	r3, [sp, #12]
	str	r3, [sp, #16]
.L6:
	mov	r2, r6
	add	r1, sp, #16
	add	r0, sp, #12
	bl	getline
	cmn	r0, #1
	beq	.L11
	ldr	r0, [sp, #12]
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L6
	mov	r1, #40
	bl	strchr
	cmp	r0, #0
	beq	.L11
	add	r4, r0, #1
	mov	r0, r4
	mov	r1, #41
	bl	strchr
	subs	r5, r0, #0
	beq	.L11
	ldr	r0, [r9]
	bl	free
	mov	r0, r4
	sub	r1, r5, r4
	bl	mandoc_strndup
	ldr	r3, .L86+8
	mov	r4, r0
	ldr	r3, [r3]
	str	r0, [r9]
	cmp	r3, #0
	bne	.L81
.L11:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	beq	.L12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L14
.L12:
	mov	r2, r6
	add	r1, sp, #16
	add	r0, sp, #12
	bl	getline
	cmn	r0, #1
	bne	.L11
	b	.L14
.L15:
	ldr	r3, [sp, #12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	cmpne	r3, #32
	bne	.L34
.L14:
	mov	r2, r6
	add	r1, sp, #16
	add	r0, sp, #12
	bl	getline
	cmn	r0, #1
	bne	.L15
.L34:
	mov	r8, #0
	mov	r10, #32
	mov	r7, r8
.L19:
	mov	r2, r6
	add	r1, sp, #16
	add	r0, sp, #12
	bl	getline
	cmn	r0, #1
	mov	r5, r0
	ldr	r3, [sp, #12]
	beq	.L16
	ldrb	r0, [r3]	@ zero_extendqisi2
	cmp	r0, #32
	bne	.L16
	mov	r4, #0
	b	.L17
.L18:
	add	r4, r4, #1
	ldrb	r0, [r3, r4]	@ zero_extendqisi2
.L17:
	bl	isspace
	cmp	r0, #0
	ldr	r3, [sp, #12]
	bne	.L18
	ldrb	r3, [r3, r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L19
	sub	r5, r5, r4
	add	fp, r5, r8
	mov	r0, r7
	mov	r1, fp
	bl	mandoc_realloc
	mov	r7, r0
	ldr	r1, [sp, #12]
	add	r0, r0, r8
	mov	r2, r5
	add	r1, r1, r4
	bl	memcpy
	add	r3, r7, fp
	mov	r8, fp
	strb	r10, [r3, #-1]
	b	.L19
.L16:
	mov	r0, r3
	bl	free
	cmp	r7, #0
	beq	.L22
	ldrb	r3, [r7]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L22
	mov	r3, #0
	add	r8, r7, r8
	mov	r0, r7
	ldr	r1, .L86+12
	strb	r3, [r8, #-1]
	bl	strstr
	cmp	r0, #0
	beq	.L25
	ldrb	r3, [r0, #2]	@ zero_extendqisi2
	add	r4, r0, #2
	cmp	r3, #32
	cmpne	r3, #8
	bne	.L26
.L27:
	ldrb	r3, [r4, #1]!	@ zero_extendqisi2
	cmp	r3, #8
	cmpne	r3, #32
	beq	.L27
.L26:
	mov	r0, r4
	bl	strlen
	mov	r5, r0
.L28:
	mov	r2, r5
	mov	r1, #8
	mov	r0, r4
	bl	memchr
	cmp	r0, #0
	mov	r3, r0
	str	r0, [sp, #12]
	beq	.L82
	subs	r2, r3, r4
	add	r1, r3, #1
	beq	.L83
	sub	r2, r5, r2
	sub	r0, r3, #1
	bl	memmove
	sub	r5, r5, #2
	b	.L28
.L22:
	ldr	r3, .L86+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L84
.L24:
	mov	r0, r6
	bl	fclose
	mov	r0, r7
	bl	free
.L1:
	ldr	r3, .L86
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L85
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L83:
	mov	r2, r5
	sub	r5, r5, #1
	bl	memmove
	b	.L28
.L82:
	mov	r1, #150
	mov	r0, r4
	bl	mandoc_strndup
	mov	r3, r0
	mov	r0, r6
	str	r3, [r9, #4]
	bl	fclose
	mov	r0, r7
	bl	free
	b	.L1
.L79:
	ldr	r1, .L86+4
	ldr	r0, [r3, #4]
	bl	fopen
	subs	r6, r0, #0
	bne	.L4
.L3:
	ldr	r3, .L86+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	ldr	r3, [sp, #4]
	ldr	r1, .L86+16
	ldr	r0, [r3, #4]
	bl	say
	b	.L1
.L81:
	ldr	r3, [sp, #4]
	ldr	r5, [r3]
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	mov	r1, r5
	bl	strcasecmp
	cmp	r0, #0
	beq	.L11
	ldr	r0, [sp, #4]
	mov	r3, r5
	mov	r2, r4
	ldr	r1, .L86+20
	ldr	r0, [r0, #4]
	bl	say
	b	.L11
.L25:
	ldr	r3, .L86+8
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r4, r7
	beq	.L26
	ldr	r3, [sp, #4]
	mov	r2, r7
	ldr	r0, [r3, #4]
	ldr	r1, .L86+24
	bl	say
	mov	r4, r7
	b	.L26
.L84:
	ldr	r3, [sp, #4]
	ldr	r1, .L86+28
	ldr	r0, [r3, #4]
	bl	say
	b	.L24
.L80:
	mov	r0, r4
	bl	close
	b	.L3
.L85:
	bl	__stack_chk_fail
.L87:
	.align	2
.L86:
	.word	.LC6
	.word	.LC0
	.word	warnings
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	.LC5
	.word	.LC3
	.size	parse_cat, .-parse_cat
	.comm	warnings,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
