	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function manpath_add
_manpath_add:                           ## @manpath_add
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movq	%r14, %rdi
	callq	_realpath
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	(%r13), %rbx
	jb	LBB0_4
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.6:
	movq	8(%r13), %rdi
	movl	(%r13), %esi
	incl	%esi
	movl	$4, %edx
	callq	_mandoc_reallocarray
	movq	%rax, 8(%r13)
	movq	%r12, %rdi
	callq	_mandoc_strdup
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, (%r13)
	movl	%eax, (%rdx,%rcx,4)
	jmp	LBB0_9
LBB0_7:
	testb	%r15b, %r15b
	je	LBB0_9
## %bb.8:
	movq	_MANDOCERR_BADARG_BAD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movsbl	%r15b, %r8d
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %r9
	pushq	%rax
	callq	_mandoc_msg
	addq	$16, %rsp
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_MANDOCERR_BADARG_BAD,4,2       ## @MANDOCERR_BADARG_BAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-%c %s: %s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_manpath_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function manpath_add
_manpath_add:                           ; @manpath_add
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x1, x9, x8
	mov	sp, x1
	mov	x0, x19
	bl	_realpath
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x23, lsl #2]
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x8, [x21]
	cmp	x23, x8
	b.lo	LBB0_3
LBB0_5:
	sub	x1, x29, #64
	mov	x0, x22
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.6:
	ldr	x0, [x21, #8]
	ldr	w8, [x21]
	add	w1, w8, #1
	mov	w2, #4
	bl	_mandoc_reallocarray
	str	x0, [x21, #8]
	mov	x0, x22
	bl	_mandoc_strdup
	ldp	x9, x8, [x21]
	add	x10, x9, #1
	str	x10, [x21]
	str	w0, [x8, x9, lsl #2]
	b	LBB0_9
LBB0_7:
	cbz	w20, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _MANDOCERR_BADARG_BAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MANDOCERR_BADARG_BAD@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
	mov	x6, x0
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	x4, x20
	mov	x5, x19
	bl	_mandoc_msg
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_MANDOCERR_BADARG_BAD,4,2       ; @MANDOCERR_BADARG_BAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-%c %s: %s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_manpath_add
.subsections_via_symbols
