	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scroll
_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_vidmem@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_cols@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	addl	%eax, %eax
	movslq	%eax, %rdx
	leaq	(%rdi,%rdx), %rsi
	movq	_lines@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	decl	%eax
	imull	%eax, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movl	(%rbx), %ecx
	leal	-1(%rcx), %eax
	movl	(%r15), %edx
	imull	%edx, %eax
	addl	%eax, %eax
	imull	%edx, %ecx
	addl	%ecx, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_3
## %bb.1:
	cltq
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movb	$32, (%rcx,%rax)
	movl	(%rbx), %ecx
	imull	(%r15), %ecx
	addq	$2, %rax
	addl	%ecx, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vidmem,8,3                     ## @vidmem
	.comm	_cols,4,2                       ## @cols
	.comm	_lines,4,2                      ## @lines
	.no_dead_strip	_scroll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scroll
_scroll:                                ; @scroll
	.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
Lloh0:
	adrp	x19, _vidmem@GOTPAGE
Lloh1:
	ldr	x19, [x19, _vidmem@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x20, _cols@GOTPAGE
Lloh3:
	ldr	x20, [x20, _cols@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w8, w8, #1
	add	x1, x0, w8, sxtw
Lloh4:
	adrp	x21, _lines@GOTPAGE
Lloh5:
	ldr	x21, [x21, _lines@GOTPAGEOFF]
	ldr	w9, [x21]
	sub	w9, w9, #1
	mul	w2, w8, w9
	bl	_memcpy
	ldr	w9, [x21]
	sub	w8, w9, #1
	ldr	w10, [x20]
	mul	w8, w10, w8
	lsl	w8, w8, #1
	mul	w9, w9, w10
	cmp	w8, w9, lsl #1
	b.ge	LBB0_3
; %bb.1:
	sxtw	x8, w8
	mov	w9, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19]
	strb	w9, [x10, x8]
	add	x8, x8, #2
	ldr	w10, [x21]
	ldr	w11, [x20]
	mul	w10, w10, w11
	lsl	w10, w10, #1
	cmp	x8, w10, sxtw
	b.lt	LBB0_2
LBB0_3:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_vidmem,8,3                     ; @vidmem
	.comm	_cols,4,2                       ; @cols
	.comm	_lines,4,2                      ; @lines
	.no_dead_strip	_scroll
.subsections_via_symbols
