	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pager_output                   ## -- Begin function pager_output
	.p2align	4, 0x90
_pager_output:                          ## @pager_output
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	movb	(%rdi), %cl
	testb	%cl, %cl
	je	LBB0_17
## %bb.2:
	movq	_p_freelines@GOTPCREL(%rip), %r12
	movq	_pager_prompt1@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r14
	movq	_pager_blank@GOTPCREL(%rip), %r15
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_p_maxlines@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%r12)
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movb	(%rbx), %cl
	testb	%cl, %cl
	je	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movsbl	%cl, %edi
	callq	_putchar
	cmpb	$10, (%rbx)
	jne	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r12)
	cmpq	$1, %rax
	jg	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_printf
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_getchar
	cmpl	$31, %eax
	jle	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$113, %eax
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$81, %eax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$32, %eax
	jne	LBB0_6
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$10, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$13, %eax
	jne	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %eax
	jmp	LBB0_14
LBB0_18:
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movl	$1, %eax
	jmp	LBB0_17
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_p_freelines,8,3                ## @p_freelines
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_pager_prompt1,8,3              ## @pager_prompt1
	.comm	_p_maxlines,8,3                 ## @p_maxlines
L_.str.1:                               ## @.str.1
	.asciz	"\r%s\r"

	.comm	_pager_blank,8,3                ## @pager_blank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pager_output                   ; -- Begin function pager_output
	.p2align	2
_pager_output:                          ; @pager_output
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_16
; %bb.2:
Lloh0:
	adrp	x22, _p_freelines@GOTPAGE
Lloh1:
	ldr	x22, [x22, _p_freelines@GOTPAGEOFF]
Lloh2:
	adrp	x23, _pager_prompt1@GOTPAGE
Lloh3:
	ldr	x23, [x23, _pager_prompt1@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
Lloh6:
	adrp	x24, _pager_blank@GOTPAGE
Lloh7:
	ldr	x24, [x24, _pager_blank@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh10:
	adrp	x25, _p_maxlines@GOTPAGE
Lloh11:
	ldr	x25, [x25, _p_maxlines@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x8, [x22]
	ldr	x1, [x24]
	mov	x0, x21
	bl	_printf
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x19]
	cbz	w8, LBB0_16
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	sxtb	w0, w8
	bl	_putchar
	ldrb	w8, [x19], #1
	cmp	w8, #10
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	subs	x8, x8, #1
	str	x8, [x22]
	b.gt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x23]
	mov	x0, x20
	bl	_printf
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_getchar
	cmp	w0, #31
	b.le	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w0, #113
	b.eq	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w0, #81
	b.eq	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w0, #32
	b.ne	LBB0_9
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=2
	cmp	w0, #10
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w0, #13
	b.ne	LBB0_9
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	b	LBB0_4
LBB0_16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
	ldr	x1, [x24]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_p_freelines,8,3                ; @p_freelines
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_pager_prompt1,8,3              ; @pager_prompt1
	.comm	_p_maxlines,8,3                 ; @p_maxlines
l_.str.1:                               ; @.str.1
	.asciz	"\r%s\r"

	.comm	_pager_blank,8,3                ; @pager_blank
.subsections_via_symbols
