	.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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$1, %edi
	callq	_isatty
	movq	%rax, %rdi
	callq	_git_pager
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_term_columns
	leaq	L_.str(%rip), %rdx
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	movl	%eax, %ecx
	callq	_xsnprintf
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_setenv
	leaq	L_.str.2(%rip), %r15
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_setenv
	movq	_pager_process@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_prepare_pager_args
	movl	$-1, (%r14)
	leaq	4(%r14), %rdi
	movq	%r15, %rsi
	callq	_argv_array_push
	movq	%r14, %rdi
	callq	_start_command
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_dup2
	movl	$2, %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movl	$2, %esi
	callq	_dup2
LBB0_4:
	movl	(%r14), %edi
	callq	_close
	movq	_wait_for_pager_signal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sigchain_push_common
	movq	_wait_for_pager_atexit@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

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

L_.str.2:                               ## @.str.2
	.asciz	"GIT_PAGER_IN_USE"

L_.str.3:                               ## @.str.3
	.asciz	"true"

	.comm	_pager_process,8,2              ## @pager_process
	.comm	_wait_for_pager_signal,4,2      ## @wait_for_pager_signal
	.comm	_wait_for_pager_atexit,4,2      ## @wait_for_pager_atexit
.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:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w0, #1
	bl	_isatty
	bl	_git_pager
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_term_columns
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	bl	_xsnprintf
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	w2, #0
	bl	_setenv
Lloh7:
	adrp	x21, l_.str.2@PAGE
Lloh8:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	w2, #1
	bl	_setenv
Lloh11:
	adrp	x19, _pager_process@GOTPAGE
Lloh12:
	ldr	x19, [x19, _pager_process@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_prepare_pager_args
	mov	w8, #-1
	mov	x0, x19
	str	w8, [x0], #4
	mov	x1, x21
	bl	_argv_array_push
	mov	x0, x19
	bl	_start_command
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_dup2
	mov	w0, #2
	bl	_isatty
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	mov	w1, #2
	bl	_dup2
LBB0_4:
	ldr	w0, [x19]
	bl	_close
Lloh13:
	adrp	x8, _wait_for_pager_signal@GOTPAGE
Lloh14:
	ldr	x8, [x8, _wait_for_pager_signal@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_sigchain_push_common
Lloh16:
	adrp	x8, _wait_for_pager_atexit@GOTPAGE
Lloh17:
	ldr	x8, [x8, _wait_for_pager_atexit@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_atexit
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

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

l_.str.2:                               ; @.str.2
	.asciz	"GIT_PAGER_IN_USE"

l_.str.3:                               ; @.str.3
	.asciz	"true"

	.comm	_pager_process,8,2              ; @pager_process
	.comm	_wait_for_pager_signal,4,2      ; @wait_for_pager_signal
	.comm	_wait_for_pager_atexit,4,2      ; @wait_for_pager_atexit
.subsections_via_symbols
