	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_manpath_conf
_parse_manpath_conf:                    ## @parse_manpath_conf
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r14
	movq	$0, -40(%rbp)
	movq	$0, -48(%rbp)
	leaq	-40(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdx
	callq	_getline
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.2:
	leaq	-40(%rbp), %r15
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rcx
	cltq
	cmpb	$10, -1(%rax,%rcx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, -1(%rcx,%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdi
	movl	8(%rbx), %eax
	leal	8(,%rax,8), %esi
	callq	_mandoc_realloc
	movq	%rax, (%rbx)
	movq	-40(%rbp), %rdi
	callq	_validate_urifrag
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-40(%rbp), %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-40(%rbp), %rax
	movq	(%rbx), %rcx
	movslq	8(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%rbx)
	movq	%rax, (%rcx,%rdx,8)
	movq	$0, -40(%rbp)
	movq	$0, -48(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_getline
	cmpl	$-1, %eax
	jne	LBB0_3
LBB0_12:
	movq	-40(%rbp), %rdi
	callq	_free
	cmpq	$0, (%rbx)
	je	LBB0_13
## %bb.14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MAN_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-40(%rbp), %rdx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_7
LBB0_10:
	movq	_MAN_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-40(%rbp), %rdx
	leaq	L_.str.4(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	callq	_warnx
LBB0_8:
	xorl	%eax, %eax
	callq	_pg_error_internal
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_15:
	movq	_MAN_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
	jmp	LBB0_8
LBB0_13:
	movq	_MAN_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"manpath.conf"

L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"%s/manpath.conf"

	.comm	_MAN_DIR,4,2                    ## @MAN_DIR
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"%s/manpath.conf contains unsafe path \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"%s/manpath.conf contains path with slash \"%s\""

L_.str.5:                               ## @.str.5
	.asciz	"%s/manpath.conf is empty"

	.no_dead_strip	_parse_manpath_conf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_manpath_conf
_parse_manpath_conf:                    ; @parse_manpath_conf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [sp, #16]
	add	x0, sp, #24
	add	x1, sp, #16
	mov	x2, x20
	bl	_getline
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]
	sxtw	x9, w0
	sub	x9, x9, #1
	ldrb	w10, [x8, x9]
	cmp	w10, #10
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x8, x9]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19]
	ldr	w8, [x19, #8]
	lsl	w8, w8, #3
	add	w1, w8, #8
	bl	_mandoc_realloc
	str	x0, [x19]
	ldr	x0, [sp, #24]
	bl	_validate_urifrag
	cbz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #24]
	mov	w1, #47
	bl	_strchr
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x19]
	ldrsw	x10, [x19, #8]
	add	w11, w10, #1
	str	w11, [x19, #8]
	str	x8, [x9, x10, lsl #3]
	b	LBB0_2
LBB0_8:
	ldr	x0, [sp, #24]
	bl	_free
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
Lloh4:
	adrp	x8, _MAN_DIR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAN_DIR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _MAN_DIR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAN_DIR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_12:
	bl	_warnx
LBB0_13:
	bl	_pg_error_internal
Lloh14:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_exit
LBB0_14:
Lloh17:
	adrp	x8, _MAN_DIR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAN_DIR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	b	LBB0_13
LBB0_15:
Lloh22:
	adrp	x8, _MAN_DIR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAN_DIR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_12
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"manpath.conf"

l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"%s/manpath.conf"

	.comm	_MAN_DIR,4,2                    ; @MAN_DIR
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"%s/manpath.conf contains unsafe path \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"%s/manpath.conf contains path with slash \"%s\""

l_.str.5:                               ; @.str.5
	.asciz	"%s/manpath.conf is empty"

	.no_dead_strip	_parse_manpath_conf
.subsections_via_symbols
