	.file	"506097.c"
	.intel_syntax noprefix
	.text
	.globl	fgetarg
	.type	fgetarg, @function
fgetarg:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L2
.L4:
	cmp	DWORD PTR -4[rbp], 10
	jne	.L2
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 32
	je	.L4
	cmp	DWORD PTR -4[rbp], 9
	je	.L4
	cmp	DWORD PTR -4[rbp], 10
	je	.L4
	cmp	DWORD PTR -4[rbp], 44
	je	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L5
	mov	eax, -1
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 32
	je	.L7
	cmp	DWORD PTR -4[rbp], 9
	je	.L7
	cmp	DWORD PTR -4[rbp], 10
	je	.L7
	cmp	DWORD PTR -4[rbp], 44
	jne	.L8
.L7:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -4[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fgetarg, .-fgetarg
	.globl	fsize
	.type	fsize, @function
fsize:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -164[rbp], 0
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -164[rbp]
	jmp	.L12
.L10:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fsize, .-fsize
	.globl	cutstring
	.type	cutstring, @function
cutstring:
.LFB8:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L15
.L18:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L16
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	je	.L16
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L17
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
.L17:
	add	QWORD PTR -24[rbp], 1
.L15:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L18
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cutstring, .-cutstring
	.section	.rodata
.LC0:
	.string	"whatis"
.LC1:
	.string	"%s/%s"
.LC2:
	.string	"r"
.LC3:
	.string	"-"
	.text
	.globl	msearch
	.type	msearch, @function
msearch:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2080
	mov	QWORD PTR -2056[rbp], rdi
	mov	QWORD PTR -2064[rbp], rsi
	mov	QWORD PTR -2072[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -2056[rbp]
	lea	rax, -512[rbp]
	lea	rcx, .LC0[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -2036[rbp]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fsize
	test	eax, eax
	je	.L20
	mov	eax, 0
	jmp	.L33
.L20:
	lea	rax, -512[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2024[rbp], rax
	cmp	QWORD PTR -2024[rbp], 0
	jne	.L22
	mov	eax, 0
	jmp	.L33
.L22:
	mov	BYTE PTR -2037[rbp], 97
	jmp	.L23
.L32:
	mov	DWORD PTR -2032[rbp], 0
	mov	DWORD PTR -2028[rbp], 0
	mov	BYTE PTR -2037[rbp], 1
	jmp	.L24
.L27:
	lea	rcx, -2016[rbp]
	mov	eax, DWORD PTR -2032[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -2024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fgetarg
	mov	BYTE PTR -2037[rbp], al
	lea	rcx, -2016[rbp]
	mov	eax, DWORD PTR -2032[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
	mov	eax, DWORD PTR -2032[rbp]
	mov	DWORD PTR -2028[rbp], eax
.L25:
	add	DWORD PTR -2032[rbp], 1
.L24:
	cmp	BYTE PTR -2037[rbp], -1
	je	.L26
	cmp	BYTE PTR -2037[rbp], 10
	jne	.L27
.L26:
	cmp	DWORD PTR -2028[rbp], 0
	je	.L23
	sub	DWORD PTR -2028[rbp], 1
	mov	eax, DWORD PTR -2028[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	sub	rax, 2015
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -2037[rbp], al
	sub	DWORD PTR -2028[rbp], 1
	mov	eax, DWORD PTR -2028[rbp]
	mov	DWORD PTR -2032[rbp], eax
	jmp	.L28
.L31:
	lea	rcx, -2016[rbp]
	mov	eax, DWORD PTR -2032[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -2064[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -2072[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	je	.L30
	mov	rax, QWORD PTR -2072[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -2037[rbp], al
	jne	.L29
.L30:
	mov	rax, QWORD PTR -2072[rbp]
	movzx	edx, BYTE PTR -2037[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -2024[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L33
.L29:
	sub	DWORD PTR -2032[rbp], 1
.L28:
	cmp	DWORD PTR -2032[rbp], 0
	jns	.L31
.L23:
	cmp	BYTE PTR -2037[rbp], -1
	jne	.L32
	mov	rax, QWORD PTR -2072[rbp]
	mov	BYTE PTR [rax], 48
	mov	rax, QWORD PTR -2024[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	msearch, .-msearch
	.section	.rodata
.LC4:
	.string	"Usage: man [section] title\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.size	usage, .-usage
	.section	.rodata
.LC5:
	.string	"PAGER"
.LC6:
	.string	"less"
.LC7:
	.string	"MANPATH"
.LC8:
	.string	"/usr/man"
.LC9:
	.string	"%s/cat%c/%s.%c"
	.align 8
.LC10:
	.string	"Reformatting page. Please wait...\n"
.LC11:
	.string	"nroff -man"
.LC12:
	.string	"%s %s/man%c/%s.%c | %s"
.LC13:
	.string	"%s %s/cat%c/%s.%c"
.LC14:
	.string	"No manual on %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1152
	mov	DWORD PTR -1124[rbp], edi
	mov	QWORD PTR -1136[rbp], rsi
	mov	QWORD PTR -1144[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1124[rbp], 1
	jle	.L37
	cmp	DWORD PTR -1124[rbp], 3
	jle	.L38
.L37:
	mov	eax, 0
	call	usage
.L38:
	mov	BYTE PTR -1105[rbp], 48
	cmp	DWORD PTR -1124[rbp], 3
	jne	.L39
	mov	rax, QWORD PTR -1136[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1105[rbp], al
	cmp	BYTE PTR -1105[rbp], 48
	jle	.L40
	cmp	BYTE PTR -1105[rbp], 56
	jle	.L39
.L40:
	mov	eax, 0
	call	usage
.L39:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	getenv@PLT
	mov	QWORD PTR -1096[rbp], rax
	cmp	QWORD PTR -1096[rbp], 0
	jne	.L41
	lea	rax, .LC6[rip]
	mov	QWORD PTR -1096[rbp], rax
.L41:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	getenv@PLT
	mov	QWORD PTR -1088[rbp], rax
	cmp	QWORD PTR -1088[rbp], 0
	jne	.L42
	lea	rax, .LC8[rip]
	mov	QWORD PTR -1088[rbp], rax
.L42:
	lea	rdx, -1072[rbp]
	mov	rax, QWORD PTR -1088[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	cutstring
	mov	DWORD PTR -1100[rbp], 0
	jmp	.L43
.L47:
	movzx	eax, BYTE PTR -1105[rbp]
	mov	BYTE PTR -1106[rbp], al
	mov	eax, DWORD PTR -1124[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -1136[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1100[rbp]
	cdqe
	mov	rax, QWORD PTR -1072[rbp+rax*8]
	lea	rdx, -1106[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	msearch
	mov	QWORD PTR -1080[rbp], rax
	cmp	QWORD PTR -1080[rbp], 0
	je	.L44
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L44:
	movzx	eax, BYTE PTR -1106[rbp]
	cmp	al, 48
	je	.L45
	movzx	eax, BYTE PTR -1106[rbp]
	movsx	edi, al
	movzx	eax, BYTE PTR -1106[rbp]
	movsx	ecx, al
	mov	eax, DWORD PTR -1100[rbp]
	cdqe
	mov	rdx, QWORD PTR -1072[rbp+rax*8]
	lea	rsi, -272[rbp]
	lea	rax, -208[rbp]
	mov	r9d, edi
	mov	r8, rsi
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -1104[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fsize
	test	eax, eax
	je	.L46
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	movzx	eax, BYTE PTR -1106[rbp]
	movsx	ecx, al
	movzx	eax, BYTE PTR -1106[rbp]
	movsx	esi, al
	mov	eax, DWORD PTR -1100[rbp]
	cdqe
	mov	rdx, QWORD PTR -1072[rbp+rax*8]
	lea	rdi, -272[rbp]
	lea	rax, -208[rbp]
	push	QWORD PTR -1096[rbp]
	push	rcx
	mov	r9, rdi
	mov	r8d, esi
	mov	rcx, rdx
	lea	rdx, .LC11[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -208[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	system@PLT
	mov	edi, 0
	call	exit@PLT
.L46:
	movzx	eax, BYTE PTR -1106[rbp]
	movsx	esi, al
	movzx	eax, BYTE PTR -1106[rbp]
	movsx	edi, al
	mov	eax, DWORD PTR -1100[rbp]
	cdqe
	mov	rcx, QWORD PTR -1072[rbp+rax*8]
	lea	r8, -272[rbp]
	mov	rdx, QWORD PTR -1096[rbp]
	lea	rax, -208[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9, r8
	mov	r8d, edi
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -208[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	system@PLT
	mov	edi, 0
	call	exit@PLT
.L45:
	add	DWORD PTR -1100[rbp], 1
.L43:
	mov	eax, DWORD PTR -1100[rbp]
	cdqe
	mov	rax, QWORD PTR -1072[rbp+rax*8]
	test	rax, rax
	jne	.L47
	mov	eax, DWORD PTR -1124[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -1136[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.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	"506097.c"
	.text
	.align	2
	.global	fgetarg
	.syntax unified
	.arm
	.fpu softvfp
	.type	fgetarg, %function
fgetarg:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L2
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L2
	ldr	r3, [fp, #-8]
	b	.L3
.L2:
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #44
	beq	.L4
	ldr	r0, [fp, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	mvn	r3, #0
	b	.L3
.L5:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L6
.L8:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
.L6:
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	beq	.L7
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	beq	.L7
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L7
	ldr	r3, [fp, #-8]
	cmp	r3, #44
	bne	.L8
.L7:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fgetarg, .-fgetarg
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fsize
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsize, %function
fsize:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-104]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-104]
	b	.L12
.L10:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-116]
	str	r2, [r3]
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	fsize, .-fsize
	.align	2
	.global	cutstring
	.syntax unified
	.arm
	.fpu softvfp
	.type	cutstring, %function
cutstring:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	b	.L17
.L20:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L18
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L18
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L19
.L18:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, #1
	str	r2, [r3]
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L17:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cutstring, .-cutstring
	.section	.rodata
	.align	2
.LC1:
	.ascii	"whatis\000"
	.align	2
.LC2:
	.ascii	"%s/%s\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"-\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	msearch
	.syntax unified
	.arm
	.fpu softvfp
	.type	msearch, %function
msearch:
	@ args = 0, pretend = 0, frame = 2040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2032
	sub	sp, sp, #8
	str	r0, [fp, #-2032]
	str	r1, [fp, #-2036]
	str	r2, [fp, #-2040]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #508
	ldr	r3, .L36+4
	ldr	r2, [fp, #-2032]
	ldr	r1, .L36+8
	bl	sprintf
	sub	r3, fp, #2016
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #508
	mov	r1, r3
	mov	r0, r2
	bl	fsize
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	mov	r3, #0
	b	.L34
.L22:
	sub	r3, fp, #508
	ldr	r1, .L36+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-2012]
	ldr	r3, [fp, #-2012]
	cmp	r3, #0
	bne	.L24
	mov	r3, #0
	b	.L34
.L24:
	mov	r3, #97
	strb	r3, [fp, #-2025]
.L33:
	mov	r3, #0
	str	r3, [fp, #-2020]
	mov	r3, #0
	str	r3, [fp, #-2016]
	mov	r3, #1
	strb	r3, [fp, #-2025]
	b	.L25
.L27:
	sub	r2, fp, #2000
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-2020]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-2012]
	bl	fgetarg
	mov	r3, r0
	strb	r3, [fp, #-2025]
	sub	r2, fp, #2000
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-2020]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldr	r1, .L36+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-2020]
	str	r3, [fp, #-2016]
.L26:
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
.L25:
	ldrb	r3, [fp, #-2025]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L27
	ldr	r3, [fp, #-2016]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-2016]
	sub	r3, r3, #1
	str	r3, [fp, #-2016]
	ldr	r2, [fp, #-2016]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #2000
	sub	r3, r3, #3
	ldrb	r3, [r3]
	strb	r3, [fp, #-2025]
	ldr	r3, [fp, #-2016]
	sub	r3, r3, #1
	str	r3, [fp, #-2016]
	ldr	r3, [fp, #-2016]
	str	r3, [fp, #-2020]
	b	.L29
.L32:
	sub	r2, fp, #2000
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-2020]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldr	r1, [fp, #-2036]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-2040]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L31
	ldr	r3, [fp, #-2040]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-2025]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L30
.L31:
	ldr	r3, [fp, #-2040]
	ldrb	r2, [fp, #-2025]
	strb	r2, [r3]
	ldr	r0, [fp, #-2012]
	bl	fclose
	mov	r3, #0
	b	.L34
.L30:
	ldr	r3, [fp, #-2020]
	sub	r3, r3, #1
	str	r3, [fp, #-2020]
.L29:
	ldr	r3, [fp, #-2020]
	cmp	r3, #0
	bge	.L32
	b	.L33
.L34:
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	msearch, .-msearch
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Usage: man [section] title\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L39
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L39+4
	bl	fwrite
	mov	r0, #0
	bl	exit
.L40:
	.align	2
.L39:
	.word	stderr
	.word	.LC6
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC7:
	.ascii	"PAGER\000"
	.align	2
.LC8:
	.ascii	"less\000"
	.align	2
.LC9:
	.ascii	"MANPATH\000"
	.align	2
.LC10:
	.ascii	"/usr/man\000"
	.align	2
.LC11:
	.ascii	"%s/cat%c/%s.%c\000"
	.align	2
.LC12:
	.ascii	"Reformatting page. Please wait...\012\000"
	.align	2
.LC13:
	.ascii	"nroff -man\000"
	.align	2
.LC14:
	.ascii	"%s %s/man%c/%s.%c | %s\000"
	.align	2
.LC15:
	.ascii	"%s %s/cat%c/%s.%c\000"
	.align	2
.LC16:
	.ascii	"No manual on %s\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 696
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #712
	str	r0, [fp, #-688]
	str	r1, [fp, #-692]
	str	r2, [fp, #-696]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-688]
	cmp	r3, #1
	ble	.L42
	ldr	r3, [fp, #-688]
	cmp	r3, #3
	ble	.L43
.L42:
	bl	usage
.L43:
	mov	r3, #48
	strb	r3, [fp, #-681]
	ldr	r3, [fp, #-688]
	cmp	r3, #3
	bne	.L44
	ldr	r3, [fp, #-692]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]
	strb	r3, [fp, #-681]
	ldrb	r3, [fp, #-681]	@ zero_extendqisi2
	cmp	r3, #48
	bls	.L45
	ldrb	r3, [fp, #-681]	@ zero_extendqisi2
	cmp	r3, #56
	bls	.L44
.L45:
	bl	usage
.L44:
	ldr	r0, .L54+4
	bl	getenv
	str	r0, [fp, #-672]
	ldr	r3, [fp, #-672]
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L54+8
	str	r3, [fp, #-672]
.L46:
	ldr	r0, .L54+12
	bl	getenv
	str	r0, [fp, #-668]
	ldr	r3, [fp, #-668]
	cmp	r3, #0
	bne	.L47
	ldr	r3, .L54+16
	str	r3, [fp, #-668]
.L47:
	sub	r3, fp, #660
	mov	r1, r3
	ldr	r0, [fp, #-668]
	bl	cutstring
	mov	r3, #0
	str	r3, [fp, #-676]
	b	.L48
.L52:
	ldrb	r3, [fp, #-681]
	strb	r3, [fp, #-682]
	ldr	r3, [fp, #-676]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r0, [r3, #-656]
	ldr	r3, [fp, #-688]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-692]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #680
	sub	r3, r3, #2
	mov	r2, r3
	bl	msearch
	str	r0, [fp, #-664]
	ldr	r3, [fp, #-664]
	cmp	r3, #0
	beq	.L49
	sub	r3, fp, #260
	ldr	r1, [fp, #-664]
	mov	r0, r3
	bl	strcpy
.L49:
	ldrb	r3, [fp, #-682]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L50
	ldr	r3, [fp, #-676]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-656]
	ldrb	r3, [fp, #-682]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-682]	@ zero_extendqisi2
	sub	r0, fp, #208
	str	r3, [sp, #4]
	sub	r3, fp, #260
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L54+20
	bl	sprintf
	sub	r2, fp, #680
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	fsize
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L54+24
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L54+28
	bl	fwrite
	ldr	r3, [fp, #-676]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-656]
	ldrb	r3, [fp, #-682]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-682]	@ zero_extendqisi2
	mov	ip, r3
	sub	r0, fp, #208
	ldr	r3, [fp, #-672]
	str	r3, [sp, #12]
	str	ip, [sp, #8]
	sub	r3, fp, #260
	str	r3, [sp, #4]
	str	r1, [sp]
	mov	r3, r2
	ldr	r2, .L54+32
	ldr	r1, .L54+36
	bl	sprintf
	sub	r3, fp, #208
	mov	r0, r3
	bl	system
	mov	r0, #0
	bl	exit
.L51:
	ldr	r3, [fp, #-676]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-656]
	ldrb	r3, [fp, #-682]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-682]	@ zero_extendqisi2
	sub	r0, fp, #208
	str	r3, [sp, #8]
	sub	r3, fp, #260
	str	r3, [sp, #4]
	str	r1, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-672]
	ldr	r1, .L54+40
	bl	sprintf
	sub	r3, fp, #208
	mov	r0, r3
	bl	system
	mov	r0, #0
	bl	exit
.L50:
	ldr	r3, [fp, #-676]
	add	r3, r3, #1
	str	r3, [fp, #-676]
.L48:
	ldr	r3, [fp, #-676]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-656]
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-688]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-692]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L54+44
	bl	printf
	mov	r0, #1
	bl	exit
.L55:
	.align	2
.L54:
	.word	.LC17
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
