	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filescan
_filescan:                              ## @filescan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_use_all@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_strncmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leaq	(%rbx,%rcx,2), %rbx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lstat
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.1:
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	movq	_S_IFLNK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	-56(%rbp), %r13d
	testl	%r13d, %ecx
	je	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_realpath
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	_OP_TEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_op@GOTPCREL(%rip), %rcx
	movq	%r15, %r12
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.4:
	movq	_basedir@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movq	_MANDOCLEVEL_BADARG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_exitcode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_say
	jmp	LBB0_27
LBB0_6:
	movq	_MANDOCLEVEL_BADARG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_exitcode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_8:
	movq	_MANDOCLEVEL_BADARG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_exitcode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_say                            ## TAILCALL
LBB0_11:
	movq	_MANDOCLEVEL_BADARG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_exitcode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_26
LBB0_12:
	movq	%r12, %rdi
	callq	_strlen
	movslq	%eax, %r12
	addq	%r15, %r12
LBB0_13:
	movq	_S_IFLNK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_19
## %bb.14:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.15:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
	cltq
	cmpq	%r14, %rax
	jae	LBB0_25
## %bb.16:
	movq	_OP_TEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, %r12
	movq	_op@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.17:
	movq	_basedir@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	movq	%r15, %r12
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r12
	addq	%r15, %r12
LBB0_19:
	movl	$1, %edi
	movl	$48, %esi
	callq	_mandoc_calloc
	movq	%rax, %r14
	movq	_FORM_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	(%r14), %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_strlcpy
	cmpl	$8, %eax
	jb	LBB0_21
## %bb.20:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_say
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_27
LBB0_21:
	movq	_op@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OP_TEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
LBB0_22:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.23:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	leaq	5(%rax), %r12
	testq	%rax, %rax
	cmoveq	%r15, %r12
	jmp	LBB0_34
LBB0_24:
	movq	_MANDOCLEVEL_BADARG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_exitcode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_26
LBB0_25:
	leaq	L_.str.7(%rip), %rsi
LBB0_26:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_say
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.28:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	cmpq	%r15, %r12
	jne	LBB0_34
## %bb.30:
	cmpb	$47, (%r15)
	je	LBB0_22
	jmp	LBB0_33
LBB0_32:
	addq	$4, %r15
LBB0_33:
	movq	%r15, %r12
LBB0_34:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_45
## %bb.35:
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_39
## %bb.36:
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_40
## %bb.37:
	cmpq	$0, 8(%r14)
	jne	LBB0_42
	jmp	LBB0_44
LBB0_39:
	movq	_FORM_SRC@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_40:
	movq	_FORM_CAT@GOTPCREL(%rip), %rax
LBB0_41:
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	addq	$3, %r12
	movq	%r12, 8(%r14)
LBB0_42:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_44
## %bb.43:
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	movq	%rbx, 16(%r14)
	jmp	LBB0_45
LBB0_44:
	movq	%rbx, %r12
LBB0_45:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_strchr
	.p2align	4, 0x90
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdx
	movzbl	-1(%rax), %ecx
	decq	%rax
	cmpq	%r12, %rdx
	jbe	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	movl	%ecx, %edx
	andb	$-2, %dl
	cmpb	$46, %dl
	jne	LBB0_46
LBB0_48:
	cmpb	$46, %cl
	jne	LBB0_50
## %bb.49:
	movb	$0, (%rax)
	incq	%rax
	movq	%rax, 24(%r14)
LBB0_50:
	movq	%r12, 32(%r14)
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_52
## %bb.51:
	movq	%rax, %rcx
	incq	%rcx
	movq	%rcx, 32(%r14)
	movb	$0, (%rax)
LBB0_52:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mlink_add
	jmp	LBB0_27
LBB0_53:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_use_all,4,2                    ## @use_all
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"./"

	.comm	_MANDOCLEVEL_BADARG,8,3         ## @MANDOCLEVEL_BADARG
	.comm	_exitcode,4,2                   ## @exitcode
L_.str.1:                               ## @.str.1
	.asciz	"&lstat"

	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_S_IFLNK,4,2                    ## @S_IFLNK
L_.str.2:                               ## @.str.2
	.asciz	"Not a regular file"

L_.str.3:                               ## @.str.3
	.asciz	"&realpath"

	.comm	_OP_TEST,8,3                    ## @OP_TEST
	.comm	_op,8,3                         ## @op
	.comm	_basedir,8,3                    ## @basedir
L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"%s: outside base directory"

L_.str.6:                               ## @.str.6
	.asciz	"&stat"

L_.str.7:                               ## @.str.7
	.asciz	"Filename too long"

	.comm	_FORM_NONE,4,2                  ## @FORM_NONE
L_.str.8:                               ## @.str.8
	.asciz	"man/"

L_.str.9:                               ## @.str.9
	.asciz	"/man/"

L_.str.10:                              ## @.str.10
	.asciz	"man"

	.comm	_FORM_SRC,4,2                   ## @FORM_SRC
L_.str.11:                              ## @.str.11
	.asciz	"cat"

	.comm	_FORM_CAT,4,2                   ## @FORM_CAT
	.comm	_HOMEBREWDIR,8,3                ## @HOMEBREWDIR
	.no_dead_strip	_filescan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filescan
_filescan:                              ; @filescan
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x8, _use_all@GOTPAGE
Lloh9:
	ldr	x8, [x8, _use_all@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_assert
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_strncmp
	cmp	x0, #0
	cset	w8, eq
	add	x20, x20, w8, uxtw #1
	sub	x1, x29, #80
	mov	x0, x20
	bl	_lstat
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
Lloh13:
	adrp	x8, _S_IFREG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S_IFREG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x25, _S_IFLNK@GOTPAGE
Lloh17:
	ldr	x25, [x25, _S_IFLNK@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldur	w26, [x29, #-80]
	tst	w8, w26
	b.eq	LBB0_8
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_realpath
	cbz	x0, LBB0_11
; %bb.3:
Lloh18:
	adrp	x23, _OP_TEST@GOTPAGE
Lloh19:
	ldr	x23, [x23, _OP_TEST@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh20:
	adrp	x24, _op@GOTPAGE
Lloh21:
	ldr	x24, [x24, _op@GOTPAGEOFF]
	ldr	x9, [x24]
	mov	x21, x19
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.4:
Lloh22:
	adrp	x8, _basedir@GOTPAGE
Lloh23:
	ldr	x8, [x8, _basedir@GOTPAGEOFF]
Lloh24:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_strncmp
	cbz	w0, LBB0_12
; %bb.5:
Lloh25:
	adrp	x8, _MANDOCLEVEL_BADARG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MANDOCLEVEL_BADARG@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _exitcode@GOTPAGE
Lloh29:
	ldr	x9, [x9, _exitcode@GOTPAGEOFF]
Lloh30:
	str	w8, [x9]
	str	x19, [sp, #-16]!
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_say
	add	sp, sp, #16
	b	LBB0_27
LBB0_6:
Lloh35:
	adrp	x8, _MANDOCLEVEL_BADARG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MANDOCLEVEL_BADARG@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
Lloh38:
	adrp	x9, _exitcode@GOTPAGE
Lloh39:
	ldr	x9, [x9, _exitcode@GOTPAGEOFF]
Lloh40:
	str	w8, [x9]
	ldur	x8, [x29, #-72]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_51
; %bb.7:
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh46:
	adrp	x8, _MANDOCLEVEL_BADARG@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MANDOCLEVEL_BADARG@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
Lloh49:
	adrp	x9, _exitcode@GOTPAGE
Lloh50:
	ldr	x9, [x9, _exitcode@GOTPAGEOFF]
Lloh51:
	str	w8, [x9]
	ldur	x8, [x29, #-72]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_51
; %bb.9:
Lloh55:
	adrp	x1, l_.str.2@PAGE
Lloh56:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x20
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_say
LBB0_11:
Lloh57:
	adrp	x8, _MANDOCLEVEL_BADARG@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MANDOCLEVEL_BADARG@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
Lloh60:
	adrp	x9, _exitcode@GOTPAGE
Lloh61:
	ldr	x9, [x9, _exitcode@GOTPAGEOFF]
Lloh62:
	str	w8, [x9]
Lloh63:
	adrp	x1, l_.str.3@PAGE
Lloh64:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_26
LBB0_12:
	mov	x0, x21
	bl	_strlen
	add	x21, x19, w0, sxtw
LBB0_13:
	ldr	w8, [x25]
	tst	w26, w8
	b.eq	LBB0_19
; %bb.14:
	sub	x1, x29, #80
	mov	x0, x19
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_24
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_strlcpy
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x22
	b.hs	LBB0_25
; %bb.16:
	ldr	x8, [x23]
	ldr	x9, [x24]
	mov	x21, x19
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.17:
Lloh65:
	adrp	x8, _basedir@GOTPAGE
Lloh66:
	ldr	x8, [x8, _basedir@GOTPAGEOFF]
Lloh67:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_strncmp
	mov	x21, x19
	cbnz	w0, LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_strlen
	add	x21, x19, w0, sxtw
LBB0_19:
	mov	w0, #1
	mov	w1, #48
	bl	_mandoc_calloc
	mov	x20, x0
Lloh68:
	adrp	x8, _FORM_NONE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _FORM_NONE@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	ldr	x0, [x0]
	mov	x1, x21
	mov	w2, #8
	bl	_strlcpy
	cmp	w0, #8
	b.lo	LBB0_21
; %bb.20:
Lloh71:
	adrp	x1, l_.str.7@PAGE
Lloh72:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_say
	mov	x0, x20
	bl	_free
	b	LBB0_27
LBB0_21:
	ldr	x8, [x24]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_29
LBB0_22:
Lloh73:
	adrp	x1, l_.str.8@PAGE
Lloh74:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_32
; %bb.23:
Lloh75:
	adrp	x1, l_.str.9@PAGE
Lloh76:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_strstr
	add	x8, x0, #5
	cmp	x0, #0
	csel	x21, x19, x8, eq
	b	LBB0_33
LBB0_24:
Lloh77:
	adrp	x8, _MANDOCLEVEL_BADARG@GOTPAGE
Lloh78:
	ldr	x8, [x8, _MANDOCLEVEL_BADARG@GOTPAGEOFF]
Lloh79:
	ldr	x8, [x8]
Lloh80:
	adrp	x9, _exitcode@GOTPAGE
Lloh81:
	ldr	x9, [x9, _exitcode@GOTPAGEOFF]
Lloh82:
	str	w8, [x9]
Lloh83:
	adrp	x1, l_.str.6@PAGE
Lloh84:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_26
LBB0_25:
Lloh85:
	adrp	x1, l_.str.7@PAGE
Lloh86:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_26:
	mov	x0, x20
	bl	_say
LBB0_27:
	ldur	x8, [x29, #-72]
Lloh87:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh88:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh89:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_51
; %bb.28:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_29:
	cmp	x21, x19
	b.ne	LBB0_33
; %bb.30:
	ldrb	w8, [x19]
	cmp	w8, #47
	b.eq	LBB0_22
; %bb.31:
	mov	x21, x19
	b	LBB0_33
LBB0_32:
	add	x21, x19, #4
LBB0_33:
	mov	x0, x21
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_43
; %bb.34:
	mov	x19, x0
	strb	wzr, [x19], #1
Lloh90:
	adrp	x1, l_.str.10@PAGE
Lloh91:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_37
; %bb.35:
Lloh92:
	adrp	x1, l_.str.11@PAGE
Lloh93:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_38
; %bb.36:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_40
	b	LBB0_42
LBB0_37:
Lloh94:
	adrp	x8, _FORM_SRC@GOTPAGE
Lloh95:
	ldr	x8, [x8, _FORM_SRC@GOTPAGEOFF]
	b	LBB0_39
LBB0_38:
Lloh96:
	adrp	x8, _FORM_CAT@GOTPAGE
Lloh97:
	ldr	x8, [x8, _FORM_CAT@GOTPAGEOFF]
LBB0_39:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	add	x8, x21, #3
	str	x8, [x20, #8]
LBB0_40:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_42
; %bb.41:
	mov	x21, x0
	strb	wzr, [x21], #1
	str	x19, [x20, #16]
	b	LBB0_43
LBB0_42:
	mov	x21, x19
LBB0_43:
	mov	x0, x21
	mov	w1, #0
	bl	_strchr
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	cmp	x0, x21
	ldrb	w8, [x0, #-1]!
	b.ls	LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	and	w9, w8, #0xfe
	cmp	w9, #46
	b.ne	LBB0_44
LBB0_46:
	cmp	w8, #46
	b.ne	LBB0_48
; %bb.47:
	add	x8, x0, #1
	strb	wzr, [x0]
	str	x8, [x20, #24]
LBB0_48:
	str	x21, [x20, #32]
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_50
; %bb.49:
	add	x8, x0, #1
	str	x8, [x20, #32]
	strb	wzr, [x0]
LBB0_50:
	sub	x1, x29, #80
	mov	x0, x20
	bl	_mlink_add
	b	LBB0_27
LBB0_51:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotStr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotStr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGotStr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh96, Lloh97
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_use_all,4,2                    ; @use_all
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"./"

	.comm	_MANDOCLEVEL_BADARG,8,3         ; @MANDOCLEVEL_BADARG
	.comm	_exitcode,4,2                   ; @exitcode
l_.str.1:                               ; @.str.1
	.asciz	"&lstat"

	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_S_IFLNK,4,2                    ; @S_IFLNK
l_.str.2:                               ; @.str.2
	.asciz	"Not a regular file"

l_.str.3:                               ; @.str.3
	.asciz	"&realpath"

	.comm	_OP_TEST,8,3                    ; @OP_TEST
	.comm	_op,8,3                         ; @op
	.comm	_basedir,8,3                    ; @basedir
l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"%s: outside base directory"

l_.str.6:                               ; @.str.6
	.asciz	"&stat"

l_.str.7:                               ; @.str.7
	.asciz	"Filename too long"

	.comm	_FORM_NONE,4,2                  ; @FORM_NONE
l_.str.8:                               ; @.str.8
	.asciz	"man/"

l_.str.9:                               ; @.str.9
	.asciz	"/man/"

l_.str.10:                              ; @.str.10
	.asciz	"man"

	.comm	_FORM_SRC,4,2                   ; @FORM_SRC
l_.str.11:                              ; @.str.11
	.asciz	"cat"

	.comm	_FORM_CAT,4,2                   ; @FORM_CAT
	.comm	_HOMEBREWDIR,8,3                ; @HOMEBREWDIR
	.no_dead_strip	_filescan
.subsections_via_symbols
