	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_show
_pg_show:                               ## @pg_show
	.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, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movl	%r12d, %esi
	subl	%ebx, %esi
	movq	%rbx, %rdi
	callq	_mandoc_strndup
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_validate_manpath
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	%r15, %rdi
	callq	_chdir
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	incq	%r12
	movq	%r15, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_validate_filename
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	$200, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_resp_begin_html
	movq	_FOCUS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_resp_searchform
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_resp_show
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_resp_end_html                  ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pg_error_badrequest
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_warn
	xorl	%eax, %eax
	callq	_pg_error_internal
LBB0_5:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pg_error_badrequest            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"You did not specify a page to show."

L_.str.1:                               ## @.str.1
	.asciz	"You specified an invalid manpath."

L_.str.2:                               ## @.str.2
	.asciz	"chdir %s"

L_.str.3:                               ## @.str.3
	.asciz	"You specified an invalid manual file."

	.comm	_FOCUS_NONE,4,2                 ## @FOCUS_NONE
	.no_dead_strip	_pg_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_show
_pg_show:                               ; @pg_show
	.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
	mov	x0, x1
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	sub	w1, w21, w20
	mov	x0, x20
	bl	_mandoc_strndup
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_validate_manpath
	cbz	w0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_chdir
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.3:
	add	x21, x21, #1
	mov	x0, x20
	bl	_free
	mov	x0, x21
	bl	_validate_filename
	cbz	w0, LBB0_9
; %bb.4:
	mov	w0, #200
	mov	x1, #0
	mov	x2, x21
	bl	_resp_begin_html
Lloh0:
	adrp	x8, _FOCUS_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FOCUS_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_resp_searchform
	mov	x0, x19
	mov	x1, x21
	bl	_resp_show
	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
	b	_resp_end_html
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pg_error_badrequest
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_warn
	bl	_pg_error_internal
LBB0_8:
	mov	x0, x20
	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
	b	_free
LBB0_9:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	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
	b	_pg_error_badrequest
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"You did not specify a page to show."

l_.str.1:                               ; @.str.1
	.asciz	"You specified an invalid manpath."

l_.str.2:                               ; @.str.2
	.asciz	"chdir %s"

l_.str.3:                               ; @.str.3
	.asciz	"You specified an invalid manual file."

	.comm	_FOCUS_NONE,4,2                 ; @FOCUS_NONE
	.no_dead_strip	_pg_show
.subsections_via_symbols
