	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_man_page
_show_man_page:                         ## @show_man_page
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_cmd_to_page
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_setup_man_path
	movq	_man_viewer_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_exec_viewer
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_exec_viewer
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_exec_viewer
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PERF_MAN_VIEWER"

	.comm	_man_viewer_list,8,3            ## @man_viewer_list
L_.str.1:                               ## @.str.1
	.asciz	"man"

L_.str.2:                               ## @.str.2
	.asciz	"no man viewer handled the request"

	.no_dead_strip	_show_man_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_man_page
_show_man_page:                         ; @show_man_page
	.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
	bl	_cmd_to_page
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x20, x0
	bl	_setup_man_path
Lloh2:
	adrp	x8, _man_viewer_list@GOTPAGE
Lloh3:
	ldr	x8, [x8, _man_viewer_list@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
	cbz	x21, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	mov	x1, x19
	bl	_exec_viewer
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_1
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_exec_viewer
LBB0_4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_exec_viewer
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	mov	w0, #-1
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PERF_MAN_VIEWER"

	.comm	_man_viewer_list,8,3            ; @man_viewer_list
l_.str.1:                               ; @.str.1
	.asciz	"man"

l_.str.2:                               ; @.str.2
	.asciz	"no man viewer handled the request"

	.no_dead_strip	_show_man_page
.subsections_via_symbols
