	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function move_roll_up
_move_roll_up:                          ## @move_roll_up
	.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
	movq	(%rdi), %rax
	movl	(%rax), %ebx
	leal	-128(%rbx), %ecx
	cmpl	$2, %ecx
	ja	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	cmpl	%esi, 4(%rax)
	je	LBB0_8
## %bb.2:
	movq	%rdi, %r15
	callq	_get_current_visible_buffer
	movq	%rax, %r12
	movq	(%r15), %rax
	movslq	4(%rax), %r15
	cmpl	%r14d, %r15d
	jle	LBB0_3
## %bb.5:
	movl	$132, %ecx
	subl	%ebx, %ecx
	subl	%ecx, %r15d
	subl	%ecx, %r14d
	movslq	%r14d, %rsi
	movslq	%r15d, %rdi
	movq	16(%r12), %rax
	movq	_CC608_SCREEN_WIDTH@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	8(,%rdi,8), %rbx
	leaq	8(,%rsi,8), %r15
	movl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%r15), %rcx
	movq	(%rcx,%r13,8), %rdi
	addq	%rbx, %rax
	movq	(%rax,%r13,8), %rsi
	incl	%edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	32(%r12), %rax
	leaq	(%rax,%r15), %rcx
	movq	(%rcx,%r13,8), %rdi
	addq	%rbx, %rax
	movq	(%rax,%r13,8), %rsi
	movl	(%r14), %edx
	incl	%edx
	callq	_memcpy
	movq	24(%r12), %rax
	leaq	(%rax,%r15), %rcx
	movq	(%rcx,%r13,8), %rdi
	addq	%rbx, %rax
	movq	(%rax,%r13,8), %rsi
	movl	(%r14), %edx
	incl	%edx
	callq	_memcpy
	movq	8(%r12), %rax
	leaq	(%rax,%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	addq	%r15, %rax
	movq	%rcx, (%rax,%r13,8)
	movq	16(%r12), %rax
	addq	%rbx, %rax
	movq	(%rax,%r13,8), %rdi
	movl	(%r14), %edx
	movl	$32, %esi
	callq	_memset
	movq	32(%r12), %rax
	addq	%rbx, %rax
	movq	(%rax,%r13,8), %rdi
	movq	_COL_WHITE@GOTPCREL(%rip), %rax
	movsbl	(%rax), %esi
	movl	(%r14), %edx
	callq	_memset
	movq	24(%r12), %rax
	addq	%rbx, %rax
	movq	(%rax,%r13,8), %rdi
	movq	_FONT_REGULAR@GOTPCREL(%rip), %rax
	movsbl	(%rax), %esi
	movl	(%r14), %edx
	callq	_memset
	movq	16(%r12), %rax
	leaq	(%rax,%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movslq	(%r14), %rdx
	movq	$0, (%rcx,%rdx,8)
	movq	8(%r12), %rcx
	addq	%rbx, %rcx
	movq	$0, (%rcx,%r13,8)
	incq	%r13
	cmpl	%r13d, -48(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movslq	%r14d, %r14
	movq	16(%r12), %rax
	movq	_CC608_SCREEN_WIDTH@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	shlq	$3, %r15
	shlq	$3, %r14
	addl	$-132, %ebx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	%r15, %rax
	movq	(%rax,%rbx,8), %rsi
	incl	%edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	32(%r12), %rax
	leaq	(%rax,%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	%r15, %rax
	movq	(%rax,%rbx,8), %rsi
	movl	(%r13), %edx
	incl	%edx
	callq	_memcpy
	movq	24(%r12), %rax
	leaq	(%rax,%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	%r15, %rax
	movq	(%rax,%rbx,8), %rsi
	movl	(%r13), %edx
	incl	%edx
	callq	_memcpy
	movq	8(%r12), %rax
	leaq	(%rax,%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	addq	%r14, %rax
	movq	%rcx, (%rax,%rbx,8)
	movq	16(%r12), %rax
	addq	%r15, %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%r13), %edx
	movl	$32, %esi
	callq	_memset
	movq	32(%r12), %rax
	addq	%r15, %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_COL_WHITE@GOTPCREL(%rip), %rax
	movsbl	(%rax), %esi
	movl	(%r13), %edx
	callq	_memset
	movq	24(%r12), %rax
	addq	%r15, %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_FONT_REGULAR@GOTPCREL(%rip), %rax
	movsbl	(%rax), %esi
	movl	(%r13), %edx
	callq	_memset
	movq	16(%r12), %rax
	leaq	(%rax,%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movslq	(%r13), %rdx
	movq	$0, (%rcx,%rdx,8)
	movq	8(%r12), %rcx
	addq	%r15, %rcx
	movq	$0, (%rcx,%rbx,8)
	decq	%rbx
	cmpl	%ebx, -48(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_4
LBB0_7:
	movl	$1, (%r12)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CC608_SCREEN_WIDTH,4,2         ## @CC608_SCREEN_WIDTH
	.comm	_COL_WHITE,1,0                  ## @COL_WHITE
	.comm	_FONT_REGULAR,1,0               ## @FONT_REGULAR
	.no_dead_strip	_move_roll_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function move_roll_up
_move_roll_up:                          ; @move_roll_up
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	ldr	w24, [x8]
	sub	w9, w24, #128
	cmp	w9, #2
	b.hi	LBB0_8
; %bb.1:
	mov	x20, x1
	ldr	w8, [x8, #4]
	cmp	w8, w1
	b.eq	LBB0_8
; %bb.2:
	mov	x21, x0
	bl	_get_current_visible_buffer
	mov	x19, x0
	ldr	x8, [x21]
	ldrsw	x10, [x8, #4]
	cmp	w10, w20
	b.le	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	w8, #132
	sub	w22, w8, w24
	sub	w10, w10, w22
	sub	w11, w20, w22
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x20, _CC608_SCREEN_WIDTH@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CC608_SCREEN_WIDTH@GOTPAGEOFF]
	ldr	w9, [x20]
	sbfiz	x10, x10, #3, #32
	add	x23, x10, #8
	sbfiz	x10, x11, #3, #32
	add	x24, x10, #8
Lloh2:
	adrp	x25, _COL_WHITE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _COL_WHITE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _FONT_REGULAR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _FONT_REGULAR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x8, x24
	lsl	x27, x21, #3
	ldr	x0, [x10, x27]
	add	x8, x8, x23
	ldr	x1, [x8, x27]
	add	w2, w9, #1
	bl	_memcpy
	ldr	x8, [x19, #32]
	add	x9, x8, x24
	ldr	x0, [x9, x27]
	add	x8, x8, x23
	ldr	x1, [x8, x27]
	ldr	w8, [x20]
	add	w2, w8, #1
	bl	_memcpy
	ldr	x8, [x19, #24]
	add	x9, x8, x24
	ldr	x0, [x9, x27]
	add	x8, x8, x23
	ldr	x1, [x8, x27]
	ldr	w8, [x20]
	add	w2, w8, #1
	bl	_memcpy
	ldp	x8, x9, [x19, #8]
	add	x10, x8, x23
	ldr	x10, [x10, x27]
	add	x8, x8, x24
	str	x10, [x8, x27]
	add	x8, x9, x23
	ldr	x0, [x8, x27]
	ldr	w2, [x20]
	mov	w1, #32
	bl	_memset
	ldr	x8, [x19, #32]
	add	x8, x8, x23
	ldr	x0, [x8, x27]
	ldrsb	w1, [x25]
	ldr	w2, [x20]
	bl	_memset
	ldr	x8, [x19, #24]
	add	x8, x8, x23
	ldr	x0, [x8, x27]
	ldrsb	w1, [x26]
	ldr	w2, [x20]
	bl	_memset
	ldp	x10, x8, [x19, #8]
	add	x9, x8, x23
	ldr	x11, [x9, x27]
	ldrsw	x9, [x20]
	str	xzr, [x11, x9, lsl #3]
	add	x10, x10, x23
	str	xzr, [x10, x27]
	add	x21, x21, #1
	cmp	w22, w21
	b.ne	LBB0_4
	b	LBB0_7
LBB0_5:
	mov	x21, #0
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x22, _CC608_SCREEN_WIDTH@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CC608_SCREEN_WIDTH@GOTPAGEOFF]
	ldr	w9, [x22]
	lsl	x23, x10, #3
	sbfiz	x20, x20, #3, #32
	sub	w24, w24, #132
Lloh8:
	adrp	x25, _COL_WHITE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _COL_WHITE@GOTPAGEOFF]
Lloh10:
	adrp	x26, _FONT_REGULAR@GOTPAGE
Lloh11:
	ldr	x26, [x26, _FONT_REGULAR@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x8, x20
	lsl	x27, x21, #3
	ldr	x0, [x10, x27]
	add	x8, x8, x23
	ldr	x1, [x8, x27]
	add	w2, w9, #1
	bl	_memcpy
	ldr	x8, [x19, #32]
	add	x9, x8, x20
	ldr	x0, [x9, x27]
	add	x8, x8, x23
	ldr	x1, [x8, x27]
	ldr	w8, [x22]
	add	w2, w8, #1
	bl	_memcpy
	ldr	x8, [x19, #24]
	add	x9, x8, x20
	ldr	x0, [x9, x27]
	add	x8, x8, x23
	ldr	x1, [x8, x27]
	ldr	w8, [x22]
	add	w2, w8, #1
	bl	_memcpy
	ldp	x8, x9, [x19, #8]
	add	x10, x8, x23
	ldr	x10, [x10, x27]
	add	x8, x8, x20
	str	x10, [x8, x27]
	add	x8, x9, x23
	ldr	x0, [x8, x27]
	ldr	w2, [x22]
	mov	w1, #32
	bl	_memset
	ldr	x8, [x19, #32]
	add	x8, x8, x23
	ldr	x0, [x8, x27]
	ldrsb	w1, [x25]
	ldr	w2, [x22]
	bl	_memset
	ldr	x8, [x19, #24]
	add	x8, x8, x23
	ldr	x0, [x8, x27]
	ldrsb	w1, [x26]
	ldr	w2, [x22]
	bl	_memset
	ldp	x10, x8, [x19, #8]
	add	x9, x8, x23
	ldr	x11, [x9, x27]
	ldrsw	x9, [x22]
	str	xzr, [x11, x9, lsl #3]
	add	x10, x10, x23
	str	xzr, [x10, x27]
	sub	x21, x21, #1
	cmp	w24, w21
	b.ne	LBB0_6
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CC608_SCREEN_WIDTH,4,2         ; @CC608_SCREEN_WIDTH
	.comm	_COL_WHITE,1,0                  ; @COL_WHITE
	.comm	_FONT_REGULAR,1,0               ; @FONT_REGULAR
	.no_dead_strip	_move_roll_up
.subsections_via_symbols
