	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_path_info
_parse_path_info:                       ## @parse_path_info
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	$0, 40(%rdi)
	movl	$1, (%rdi)
	movq	$0, 24(%rdi)
	movq	$0, 8(%rdi)
	movq	%rsi, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r15
	testq	%rax, %rax
	cmoveq	%r12, %r15
	movq	%r15, %rdi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movzbl	1(%rax), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	incq	%rbx
	movl	%r15d, %eax
	notl	%eax
	leal	(%rbx,%rax), %esi
	movq	%r15, %rdi
	callq	_mandoc_strndup
	movq	%rax, 32(%r14)
	movq	%rbx, %rdi
	callq	_mandoc_strdup
	movq	%rax, 16(%r14)
	cmpq	%r12, %r15
	jne	LBB0_5
	jmp	LBB0_7
LBB0_3:
	movq	%r15, %rdi
	callq	_mandoc_strdup
	movq	%rax, 32(%r14)
	movq	$0, 16(%r14)
	cmpq	%r12, %r15
	je	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %rbx
	movl	%ebx, %esi
	subl	%r12d, %esi
	movq	%r12, %rdi
	callq	_mandoc_strndup
	movq	%rax, 24(%r14)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_validate_manpath
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	incq	%rbx
	movq	%rbx, %r12
	cmpq	%rbx, %r15
	jne	LBB0_9
	jmp	LBB0_7
LBB0_8:
	movq	24(%r14), %rdi
	callq	_free
	movq	$0, 24(%r14)
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_12
LBB0_11:
	addq	$3, %r12
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %rbx
	movq	16(%r14), %rdi
	callq	_free
	movl	%ebx, %esi
	subl	%r12d, %esi
	movq	%r12, %rdi
	callq	_mandoc_strndup
	movq	%rax, 16(%r14)
	incq	%rbx
	movq	%rbx, %r12
	cmpq	%rbx, %r15
	je	LBB0_7
LBB0_12:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	leaq	1(%rax), %rcx
	cmpq	%r15, %rcx
	jne	LBB0_13
## %bb.15:
	subl	%r12d, %eax
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mandoc_strndup
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_validate_arch
	testq	%rax, %rax
	je	LBB0_16
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_14
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
LBB0_14:
	callq	_pg_error_badrequest
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"man"

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

L_.str.2:                               ## @.str.2
	.asciz	"You specified too many directory components."

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"You specified an invalid directory component."

	.no_dead_strip	_parse_path_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_path_info
_parse_path_info:                       ; @parse_path_info
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [x0, #40]
	mov	w8, #1
	str	w8, [x0]
	str	xzr, [x0, #24]
	str	xzr, [x0, #8]
	mov	x0, x1
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x21, x20, x0, eq
	mov	x0, x21
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldrb	w0, [x22, #1]!
	bl	_isdigit
	cbz	x0, LBB0_3
; %bb.2:
	mvn	w8, w21
	add	w1, w8, w22
	mov	x0, x21
	bl	_mandoc_strndup
	str	x0, [x19, #32]
	mov	x0, x22
	bl	_mandoc_strdup
	str	x0, [x19, #16]
	cmp	x21, x20
	b.ne	LBB0_4
	b	LBB0_12
LBB0_3:
	mov	x0, x21
	bl	_mandoc_strdup
	str	x0, [x19, #32]
	str	xzr, [x19, #16]
	cmp	x21, x20
	b.eq	LBB0_12
LBB0_4:
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	mov	x22, x0
	sub	w1, w22, w20
	mov	x0, x20
	bl	_mandoc_strndup
	mov	x1, x0
	str	x0, [x19, #24]
	mov	x0, x19
	bl	_validate_manpath
	cbz	x0, LBB0_6
; %bb.5:
	add	x20, x22, #1
	cmp	x21, x20
	b.ne	LBB0_7
	b	LBB0_12
LBB0_6:
	ldr	x0, [x19, #24]
	bl	_free
	str	xzr, [x19, #24]
LBB0_7:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_9
; %bb.8:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #3
	bl	_strncmp
	cbnz	x0, LBB0_10
LBB0_9:
	add	x20, x20, #3
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	mov	x22, x0
	ldr	x0, [x19, #16]
	bl	_free
	sub	w1, w22, w20
	mov	x0, x20
	bl	_mandoc_strndup
	str	x0, [x19, #16]
	add	x20, x22, #1
	cmp	x21, x20
	b.eq	LBB0_12
LBB0_10:
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	add	x8, x0, #1
	cmp	x8, x21
	b.ne	LBB0_13
; %bb.11:
	sub	w1, w0, w20
	mov	x0, x20
	bl	_mandoc_strndup
	str	x0, [x19, #8]
	bl	_validate_arch
	cbz	x0, LBB0_14
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_15:
	bl	_pg_error_badrequest
Lloh8:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"man"

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

l_.str.2:                               ; @.str.2
	.asciz	"You specified too many directory components."

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"You specified an invalid directory component."

	.no_dead_strip	_parse_path_info
.subsections_via_symbols
