	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scroll                         ## -- Begin function scroll
	.p2align	4, 0x90
_scroll:                                ## @scroll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -12(%rbp)
	xorl	%eax, %eax
	callq	_screensize
	movq	_screen@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movsbl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$45, %esi
	je	LBB0_6
## %bb.2:
	cmpl	$43, %esi
	jne	LBB0_8
LBB0_3:
	incl	%edx
	imull	%edx, %eax
	movq	_msgCount@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jl	LBB0_10
## %bb.4:
	leaq	L_str.3(%rip), %rdi
	jmp	LBB0_5
LBB0_6:
	testl	%edx, %edx
	jle	LBB0_7
## %bb.9:
	decl	%edx
LBB0_10:
	movl	%edx, (%rcx)
	leaq	-12(%rbp), %rdi
	callq	_headers
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %eax
	jmp	LBB0_11
LBB0_7:
	leaq	L_str(%rip), %rdi
LBB0_5:
	callq	_puts
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_screen,4,2                     ## @screen
	.comm	_msgCount,4,2                   ## @msgCount
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Unrecognized scrolling command \"%s\"\n"

L_str:                                  ## @str
	.asciz	"On first screenful of messages"

L_str.3:                                ## @str.3
	.asciz	"On last screenful of messages"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scroll                         ; -- Begin function scroll
	.p2align	2
_scroll:                                ; @scroll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_screensize
Lloh0:
	adrp	x8, _screen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _screen@GOTPAGEOFF]
	ldr	w9, [x8]
	ldrsb	w10, [x19]
	cbz	w10, LBB0_3
; %bb.1:
	cmp	w10, #45
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #43
	b.ne	LBB0_8
LBB0_3:
	add	w9, w9, #1
	mul	w10, w9, w0
Lloh2:
	adrp	x11, _msgCount@GOTPAGE
Lloh3:
	ldr	x11, [x11, _msgCount@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	cmp	w10, w11
	b.lt	LBB0_7
; %bb.4:
Lloh5:
	adrp	x0, l_str.3@PAGE
Lloh6:
	add	x0, x0, l_str.3@PAGEOFF
	b	LBB0_10
LBB0_5:
	cmp	w9, #0
	b.le	LBB0_9
; %bb.6:
	sub	w9, w9, #1
LBB0_7:
	str	w9, [x8]
	add	x0, sp, #12
	bl	_headers
	b	LBB0_11
LBB0_8:
	str	x19, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	w0, #1
	b	LBB0_11
LBB0_9:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
LBB0_10:
	bl	_puts
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_screen,4,2                     ; @screen
	.comm	_msgCount,4,2                   ; @msgCount
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Unrecognized scrolling command \"%s\"\n"

l_str:                                  ; @str
	.asciz	"On first screenful of messages"

l_str.3:                                ; @str.3
	.asciz	"On last screenful of messages"

.subsections_via_symbols
