	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_lookup
_fs_lookup:                             ## @fs_lookup
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	_FORM_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	8(%rdi), %rax
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movslq	(%rax,%rsi,4), %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rcx
	movq	%r15, %r9
	xorl	%eax, %eax
	callq	_mandoc_asprintf
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_1:
	movl	%r13d, %r14d
	jmp	LBB0_4
LBB0_2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi
	callq	_free
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	8(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rdx
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rcx
	movq	%rbx, %r14
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_mandoc_asprintf
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.3:
	movq	_FORM_CAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rbx
	movl	%eax, %r14d
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_4:
	movq	_BINM_MAKEWHATIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%r12), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rax,%rdx,4), %r8d
	leaq	L_.str.6(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_warnx
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movq	16(%rbp), %r13
	movq	(%rbx), %rdi
	movq	(%r13), %rsi
	incq	%rsi
	movq	%rsi, (%r13)
	movl	$48, %edx
	callq	_mandoc_reallocarray
	movq	%rax, (%rbx)
	movq	(%r13), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movq	-48(%rbp), %rdx
	movq	%rdx, -48(%rcx,%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -16(%rcx,%rax)
	movq	_NAME_FILE@GOTPCREL(%rip), %rdx
	movq	_NAME_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	(%rdx), %esi
	movl	%esi, -40(%rcx,%rax)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, -32(%rcx,%rax)
	movb	(%r15), %dl
	leal	-49(%rdx), %esi
	addb	$-48, %dl
	cmpb	$9, %sil
	movzbl	%dl, %edx
	movl	$10, %esi
	cmovbl	%edx, %esi
	movb	%sil, -24(%rcx,%rax)
	movl	%r14d, -20(%rcx,%rax)
	jmp	LBB0_7
LBB0_6:
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-48(%rbp), %rdi
	callq	_free
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	testq	%r8, %r8
	movq	%r14, %rbx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_13
## %bb.10:
	movq	8(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rdx
	movq	%r15, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rcx
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_mandoc_asprintf
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	jne	LBB0_1
## %bb.12:
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_13:
	movq	8(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rdx
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_mandoc_asprintf
	movq	-48(%rbp), %rdi
	leaq	-88(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_glob
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movq	_GLOB_NOMATCH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_16
## %bb.15:
	movq	_MANDOCERR_GLOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rcx
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, %r9d
	callq	_mandoc_msg
LBB0_16:
	movq	-48(%rbp), %rdi
	callq	_free
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.17:
	leaq	-88(%rbp), %rdi
	callq	_globfree
LBB0_18:
	movl	$-1, %r15d
	cmpq	$0, -112(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.19:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.20:
	leaq	L_.str.5(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mandoc_asprintf
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_stat
	movl	%eax, %r15d
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_8
LBB0_21:
	movl	%r13d, %r14d
	movq	-88(%rbp), %rax
	movl	(%rax), %edi
	callq	_mandoc_strdup
	movq	%rax, -48(%rbp)
	leaq	-88(%rbp), %rdi
	callq	_globfree
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.22:
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_FORM_SRC,4,2                   ## @FORM_SRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/man%s/%s.%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s/cat%s/%s.0"

	.comm	_FORM_CAT,4,2                   ## @FORM_CAT
L_.str.2:                               ## @.str.2
	.asciz	"%s/man%s/%s/%s.%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s/man%s/%s.[01-9]*"

	.comm	_GLOB_NOMATCH,4,2               ## @GLOB_NOMATCH
	.comm	_MANDOCERR_GLOB,4,2             ## @MANDOCERR_GLOB
L_.str.4:                               ## @.str.4
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.5:                               ## @.str.5
	.asciz	"%s.%s"

L_.str.6:                               ## @.str.6
	.asciz	"outdated mandoc.db lacks %s(%s) entry, run %s %s"

	.comm	_BINM_MAKEWHATIS,4,2            ## @BINM_MAKEWHATIS
	.comm	_NAME_FILE,4,2                  ## @NAME_FILE
	.comm	_NAME_MASK,4,2                  ## @NAME_MASK
	.no_dead_strip	_fs_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_lookup
_fs_lookup:                             ; @fs_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x6
	mov	x21, x5
	mov	x22, x4
	mov	x25, x3
	mov	x19, x2
	mov	x20, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _FORM_SRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORM_SRC@GOTPAGEOFF]
Lloh2:
	ldr	w28, [x8]
	ldr	x8, [x0, #8]
	ldrsw	x2, [x8, x1, lsl #2]
	stp	x4, x19, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	x3, x19
	bl	_mandoc_asprintf
	ldr	x0, [sp, #24]
	add	x1, sp, #40
	bl	_stat
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [sp, #24]
	bl	_free
	ldr	x8, [x24, #8]
	ldrsw	x2, [x8, x20, lsl #2]
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	x3, x19
	bl	_mandoc_asprintf
	ldr	x0, [sp, #24]
	add	x1, sp, #40
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
Lloh7:
	adrp	x8, _FORM_CAT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FORM_CAT@GOTPAGEOFF]
Lloh9:
	ldr	w28, [x8]
LBB0_3:
Lloh10:
	adrp	x8, _BINM_MAKEWHATIS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BINM_MAKEWHATIS@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	ldr	x8, [x24, #8]
	ldr	w4, [x8, x20, lsl #2]
Lloh13:
	adrp	x0, l_.str.6@PAGE
Lloh14:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	bl	_warnx
	cbz	x21, LBB0_5
; %bb.4:
	ldr	x0, [x21]
	ldr	x8, [x23]
	add	x1, x8, #1
	str	x1, [x23]
	mov	w24, #48
	mov	w2, #48
	bl	_mandoc_reallocarray
	mov	w22, #0
	str	x0, [x21]
	ldr	x8, [x23]
	madd	x8, x8, x24, x0
	ldr	x9, [sp, #24]
	stur	x9, [x8, #-48]
	stp	xzr, xzr, [x8, #-16]
Lloh15:
	adrp	x9, _NAME_FILE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NAME_FILE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _NAME_MASK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _NAME_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	and	w9, w10, w9
	stur	w9, [x8, #-40]
	stur	x20, [x8, #-32]
	ldrb	w9, [x19]
	sub	w10, w9, #49
	sub	w9, w9, #48
	mov	w11, #10
	cmp	w10, #9
	csel	w9, w9, w11, lo
	sturb	w9, [x8, #-24]
	stur	w28, [x8, #-20]
	b	LBB0_6
LBB0_5:
	ldr	x0, [sp, #24]
	bl	_free
	mov	w22, #0
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	ldr	x0, [sp, #24]
	bl	_free
	cbz	x25, LBB0_10
; %bb.8:
	ldr	x8, [x24, #8]
	ldrsw	x2, [x8, x20, lsl #2]
	stp	x22, x19, [sp, #8]
	str	x25, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	x3, x19
	bl	_mandoc_asprintf
	ldr	x0, [sp, #24]
	add	x1, sp, #40
	bl	_stat
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.9:
	ldr	x0, [sp, #24]
	bl	_free
LBB0_10:
	ldr	x8, [x24, #8]
	ldrsw	x2, [x8, x20, lsl #2]
	str	x22, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #24
	mov	x3, x19
	bl	_mandoc_asprintf
	ldr	x0, [sp, #24]
	add	x3, sp, #32
	mov	w1, #0
	mov	x2, #0
	bl	_glob
	mov	x25, x0
	cbz	w0, LBB0_13
; %bb.11:
Lloh25:
	adrp	x8, _GLOB_NOMATCH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GLOB_NOMATCH@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w25, w8
	b.eq	LBB0_13
; %bb.12:
Lloh28:
	adrp	x8, _MANDOCERR_GLOB@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MANDOCERR_GLOB@GOTPAGEOFF]
Lloh30:
	ldr	w26, [x8]
	ldr	x27, [sp, #24]
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_strerror
	mov	x5, x0
Lloh34:
	adrp	x3, l_.str.4@PAGE
Lloh35:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x26
	mov	w1, #0
	mov	w2, #0
	mov	x4, x27
	bl	_mandoc_msg
LBB0_13:
	ldr	x0, [sp, #24]
	bl	_free
	cbz	w25, LBB0_17
; %bb.14:
	add	x0, sp, #32
	bl	_globfree
	cbnz	x21, LBB0_19
LBB0_15:
	add	x8, x20, #1
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.16:
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #24
	mov	x2, x22
	mov	x3, x19
	bl	_mandoc_asprintf
	ldr	x0, [sp, #24]
	add	x1, sp, #40
	bl	_stat
	mov	x22, x0
	ldr	x0, [sp, #24]
	bl	_free
	b	LBB0_6
LBB0_17:
	ldr	x8, [sp, #32]
	ldr	w0, [x8]
	bl	_mandoc_strdup
	str	x0, [sp, #24]
	add	x0, sp, #32
	bl	_globfree
	ldr	x0, [sp, #24]
	add	x1, sp, #40
	bl	_stat
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.18:
	ldr	x0, [sp, #24]
	bl	_free
	cbz	x21, LBB0_15
LBB0_19:
	mov	w22, #-1
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_FORM_SRC,4,2                   ; @FORM_SRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/man%s/%s.%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s/cat%s/%s.0"

	.comm	_FORM_CAT,4,2                   ; @FORM_CAT
l_.str.2:                               ; @.str.2
	.asciz	"%s/man%s/%s/%s.%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s/man%s/%s.[01-9]*"

	.comm	_GLOB_NOMATCH,4,2               ; @GLOB_NOMATCH
	.comm	_MANDOCERR_GLOB,4,2             ; @MANDOCERR_GLOB
l_.str.4:                               ; @.str.4
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.5:                               ; @.str.5
	.asciz	"%s.%s"

l_.str.6:                               ; @.str.6
	.asciz	"outdated mandoc.db lacks %s(%s) entry, run %s %s"

	.comm	_BINM_MAKEWHATIS,4,2            ; @BINM_MAKEWHATIS
	.comm	_NAME_FILE,4,2                  ; @NAME_FILE
	.comm	_NAME_MASK,4,2                  ; @NAME_MASK
	.no_dead_strip	_fs_lookup
.subsections_via_symbols
