	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_pager                    ## -- Begin function setup_pager
	.p2align	4, 0x90
_setup_pager:                           ## @setup_pager
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.2:
	movq	_pager_program@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.3:
	movq	_perf_default_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_perf_config
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	cmpb	$0, (%rbx)
	je	LBB0_13
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
LBB0_9:
	movq	_spawned_pager@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_pager_argv@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, 16(%rax)
	movq	_pager_process@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movl	$-1, 8(%rbx)
	movq	_pager_preexec@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_start_command
	testq	%rax, %rax
	je	LBB0_10
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movl	8(%rbx), %edi
	movl	$1, %esi
	callq	_dup2
	movl	$2, %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	8(%rbx), %edi
	movl	$2, %esi
	callq	_dup2
LBB0_12:
	movl	8(%rbx), %edi
	callq	_close
	movq	_wait_for_pager_signal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sigchain_push_common
	movq	_wait_for_pager@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_atexit                         ## TAILCALL
LBB0_5:
	movq	_X_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rdi
	callq	_access
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rbx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PERF_PAGER"

	.comm	_pager_program,8,3              ## @pager_program
	.comm	_perf_default_config,4,2        ## @perf_default_config
L_.str.1:                               ## @.str.1
	.asciz	"PAGER"

L_.str.2:                               ## @.str.2
	.asciz	"/usr/bin/pager"

	.comm	_X_OK,4,2                       ## @X_OK
L_.str.3:                               ## @.str.3
	.asciz	"less"

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

	.comm	_spawned_pager,4,2              ## @spawned_pager
	.comm	_pager_argv,8,3                 ## @pager_argv
	.comm	_pager_process,16,3             ## @pager_process
	.comm	_pager_preexec,4,2              ## @pager_preexec
	.comm	_wait_for_pager_signal,4,2      ## @wait_for_pager_signal
	.comm	_wait_for_pager,4,2             ## @wait_for_pager
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_pager                    ; -- Begin function setup_pager
	.p2align	2
_setup_pager:                           ; @setup_pager
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x19, x0
	mov	w0, #1
	bl	_isatty
	cbz	x0, LBB0_8
; %bb.1:
	cbnz	x19, LBB0_5
; %bb.2:
Lloh2:
	adrp	x20, _pager_program@GOTPAGE
Lloh3:
	ldr	x20, [x20, _pager_program@GOTPAGEOFF]
	ldr	x19, [x20]
	cbnz	x19, LBB0_5
; %bb.3:
Lloh4:
	adrp	x8, _perf_default_config@GOTPAGE
Lloh5:
	ldr	x8, [x8, _perf_default_config@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_perf_config
	ldr	x19, [x20]
	cbnz	x19, LBB0_5
; %bb.4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x19, x0
	cbz	x0, LBB0_12
LBB0_5:
	ldrb	w8, [x19]
	cbz	w8, LBB0_8
; %bb.6:
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _spawned_pager@GOTPAGE
Lloh12:
	ldr	x8, [x8, _spawned_pager@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	adrp	x10, _pager_argv@GOTPAGE
Lloh14:
	ldr	x10, [x10, _pager_argv@GOTPAGEOFF]
Lloh15:
	str	w9, [x8]
Lloh16:
	ldr	x8, [x10]
	str	x19, [x8, #16]
Lloh17:
	adrp	x19, _pager_process@GOTPAGE
Lloh18:
	ldr	x19, [x19, _pager_process@GOTPAGEOFF]
	str	x8, [x19]
	mov	w8, #-1
Lloh19:
	adrp	x9, _pager_preexec@GOTPAGE
Lloh20:
	ldr	x9, [x9, _pager_preexec@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #8]
	mov	x0, x19
	bl	_start_command
	cbz	x0, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x19, #8]
	mov	w1, #1
	bl	_dup2
	mov	w0, #2
	bl	_isatty
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x19, #8]
	mov	w1, #2
	bl	_dup2
LBB0_11:
	ldr	w0, [x19, #8]
	bl	_close
Lloh22:
	adrp	x8, _wait_for_pager_signal@GOTPAGE
Lloh23:
	ldr	x8, [x8, _wait_for_pager_signal@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_sigchain_push_common
Lloh25:
	adrp	x8, _wait_for_pager@GOTPAGE
Lloh26:
	ldr	x8, [x8, _wait_for_pager@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atexit
LBB0_12:
Lloh28:
	adrp	x8, _X_OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _X_OK@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x19, l_.str.2@PAGE
Lloh32:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_access
	cbz	w0, LBB0_5
; %bb.13:
Lloh33:
	adrp	x19, l_.str.3@PAGE
Lloh34:
	add	x19, x19, l_.str.3@PAGEOFF
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PERF_PAGER"

	.comm	_pager_program,8,3              ; @pager_program
	.comm	_perf_default_config,4,2        ; @perf_default_config
l_.str.1:                               ; @.str.1
	.asciz	"PAGER"

l_.str.2:                               ; @.str.2
	.asciz	"/usr/bin/pager"

	.comm	_X_OK,4,2                       ; @X_OK
l_.str.3:                               ; @.str.3
	.asciz	"less"

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

	.comm	_spawned_pager,4,2              ; @spawned_pager
	.comm	_pager_argv,8,3                 ; @pager_argv
	.comm	_pager_process,16,3             ; @pager_process
	.comm	_pager_preexec,4,2              ; @pager_preexec
	.comm	_wait_for_pager_signal,4,2      ; @wait_for_pager_signal
	.comm	_wait_for_pager,4,2             ; @wait_for_pager
.subsections_via_symbols
