	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_command
_handle_command:                        ## @handle_command
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdx), %rax
	movq	16(%rdx), %rcx
	movq	%rax, (%rcx)
	movq	_cc_channel@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_72
## %bb.1:
	movq	%rdx, %r12
	movq	_COM_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpb	$21, %dil
	movzbl	%dil, %ecx
	movl	$20, %eax
	cmovnel	%ecx, %eax
	movl	%eax, %ecx
	andb	$-9, %cl
	cmpb	$20, %cl
	movl	$137, %edi
	cmovnel	%edx, %edi
	cmpb	$44, %sil
	cmovnel	%edx, %edi
	cmpb	$20, %cl
	movl	$135, %edx
	cmovnel	%edi, %edx
	cmpb	$32, %sil
	cmovnel	%edi, %edx
	cmpb	$20, %cl
	movl	$138, %edi
	cmovnel	%edx, %edi
	cmpb	$47, %sil
	cmovnel	%edx, %edi
	cmpb	$23, %cl
	movl	$130, %edx
	cmovnel	%edi, %edx
	cmpb	$33, %sil
	cmovnel	%edi, %edx
	cmpb	$23, %cl
	movl	$129, %edi
	cmovnel	%edx, %edi
	cmpb	$34, %sil
	cmovnel	%edx, %edi
	cmpb	$23, %cl
	movl	$128, %edx
	cmovnel	%edi, %edx
	cmpb	$35, %sil
	cmovnel	%edi, %edx
	cmpb	$20, %cl
	movl	$133, %edi
	cmovnel	%edx, %edi
	cmpb	$37, %sil
	cmovnel	%edx, %edi
	cmpb	$20, %cl
	movl	$132, %edx
	cmovnel	%edi, %edx
	cmpb	$38, %sil
	cmovnel	%edi, %edx
	cmpb	$20, %cl
	movl	$131, %edi
	cmovnel	%edx, %edi
	cmpb	$39, %sil
	cmovnel	%edx, %edi
	cmpb	$20, %cl
	movl	$139, %edx
	cmovnel	%edi, %edx
	cmpb	$45, %sil
	cmovnel	%edi, %edx
	cmpb	$20, %cl
	movl	$136, %edi
	cmovnel	%edx, %edi
	cmpb	$46, %sil
	cmovnel	%edx, %edi
	cmpb	$20, %cl
	movl	$140, %edx
	cmovnel	%edi, %edx
	cmpb	$33, %sil
	cmovnel	%edi, %edx
	cmpb	$20, %cl
	movl	$134, %ebx
	cmovnel	%edx, %ebx
	cmpb	$43, %sil
	cmovnel	%edx, %ebx
	movq	_debug_608@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movzbl	%sil, %edx
	movzbl	%al, %esi
	movq	_command_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
LBB0_3:
	addl	$-128, %ebx
	cmpl	$12, %ebx
	ja	LBB0_71
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	movq	16(%r12), %rax
	movq	8(%rax), %rcx
	addq	$3, %rcx
	jmp	LBB0_11
LBB0_71:
	cmpq	$0, (%r14)
	je	LBB0_72
## %bb.73:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_log                         ## TAILCALL
LBB0_10:
	movq	16(%r12), %rax
	movq	8(%rax), %rcx
	addq	$2, %rcx
LBB0_11:
	cmpq	$31, %rcx
	movl	$31, %edx
	cmovbq	%rcx, %rdx
	movq	%rdx, 8(%rax)
	jmp	LBB0_72
LBB0_8:
	movq	16(%r12), %rax
	movq	8(%rax), %rcx
	cmpq	$30, %rcx
	ja	LBB0_72
## %bb.9:
	incq	%rcx
	movq	%rcx, 8(%rax)
	jmp	LBB0_72
LBB0_39:
	movq	16(%r12), %rax
	cmpl	$2, 24(%rax)
	jg	LBB0_41
## %bb.40:
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_move_roll_up
	movq	16(%r12), %rax
	movl	$3, 24(%rax)
LBB0_41:
	movl	48(%rax), %ecx
	movq	_MODE_POPUP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_45
## %bb.42:
	movq	%r12, %rdi
	callq	_write_cc_buffer
	testl	%eax, %eax
	je	LBB0_44
## %bb.43:
	movq	16(%r12), %rax
	incl	52(%rax)
LBB0_44:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_erase_memory
	movq	16(%r12), %rax
	movl	48(%rax), %ecx
LBB0_45:
	movq	_default_color@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 40(%rax)
	movq	_FONT_REGULAR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 32(%rax)
	movq	_MODE_ROLLUP_4@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ecx
	jne	LBB0_50
## %bb.46:
	movq	%r12, %rdi
	callq	_is_current_row_empty
	testl	%eax, %eax
	jne	LBB0_50
## %bb.47:
	cmpq	$0, (%r14)
	je	LBB0_49
## %bb.48:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
LBB0_49:
	movl	$20, %edi
	movl	$45, %esi
	movq	%r12, %rdx
	callq	_handle_command
	movl	$1, 8(%r12)
LBB0_50:
	movl	28(%r12), %eax
	movq	16(%r12), %rcx
	movl	%eax, 60(%rcx)
	movl	24(%r12), %eax
	movl	%eax, 56(%rcx)
	movl	(%r15), %eax
	movl	%eax, 48(%rcx)
	movq	$0, 8(%rcx)
	movslq	24(%rcx), %rax
	movq	%rax, 16(%rcx)
LBB0_51:
	movq	%r12, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_erase_memory                   ## TAILCALL
LBB0_29:
	movq	16(%r12), %rax
	cmpl	$1, 24(%rax)
	jg	LBB0_31
## %bb.30:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_move_roll_up
	movq	16(%r12), %rax
	movl	$2, 24(%rax)
LBB0_31:
	movl	48(%rax), %ecx
	movq	_MODE_POPUP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_35
## %bb.32:
	movq	%r12, %rdi
	callq	_write_cc_buffer
	testl	%eax, %eax
	je	LBB0_34
## %bb.33:
	movq	16(%r12), %rax
	incl	52(%rax)
LBB0_34:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_erase_memory
	movq	16(%r12), %rax
	movl	48(%rax), %ecx
LBB0_35:
	movq	_default_color@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 40(%rax)
	movq	_FONT_REGULAR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 32(%rax)
	movq	_MODE_ROLLUP_3@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ecx
	jne	LBB0_28
## %bb.36:
	movq	%r12, %rdi
	callq	_is_current_row_empty
	testl	%eax, %eax
	jne	LBB0_28
## %bb.37:
	cmpq	$0, (%r14)
	je	LBB0_27
## %bb.38:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_26
LBB0_16:
	movq	16(%r12), %rax
	cmpl	$0, 24(%rax)
	jg	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_move_roll_up
	movq	16(%r12), %rax
	movl	$1, 24(%rax)
LBB0_18:
	movl	48(%rax), %ecx
	movq	_MODE_POPUP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_22
## %bb.19:
	movq	%r12, %rdi
	callq	_swap_visible_buffer
	movq	%r12, %rdi
	callq	_write_cc_buffer
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	16(%r12), %rax
	incl	52(%rax)
LBB0_21:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_erase_memory
	movq	16(%r12), %rax
	movl	48(%rax), %ecx
LBB0_22:
	movq	_default_color@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 40(%rax)
	movq	_FONT_REGULAR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 32(%rax)
	movq	_MODE_ROLLUP_2@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ecx
	jne	LBB0_28
## %bb.23:
	movq	%r12, %rdi
	callq	_is_current_row_empty
	testl	%eax, %eax
	jne	LBB0_28
## %bb.24:
	cmpq	$0, (%r14)
	je	LBB0_27
## %bb.25:
	leaq	L_.str.1(%rip), %rdi
LBB0_26:
	xorl	%eax, %eax
	callq	_hb_log
LBB0_27:
	movl	$20, %edi
	movl	$45, %esi
	movq	%r12, %rdx
	callq	_handle_command
	movl	$1, 8(%r12)
LBB0_28:
	movl	28(%r12), %eax
	movq	16(%r12), %rcx
	movl	%eax, 60(%rcx)
	movl	24(%r12), %eax
	movl	%eax, 56(%rcx)
	movl	(%r15), %eax
	movl	%eax, 48(%rcx)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_erase_memory
	movq	16(%r12), %rax
	movq	$0, 8(%rax)
	movslq	24(%rax), %rcx
	movq	%rcx, 16(%rax)
	jmp	LBB0_72
LBB0_15:
	movq	_MODE_TEXT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_MODE_POPUP@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movq	16(%r12), %rcx
	movl	%eax, 48(%rcx)
	movl	28(%r12), %eax
LBB0_55:
	movl	%eax, 60(%rcx)
	movl	24(%r12), %eax
	movl	%eax, 56(%rcx)
	jmp	LBB0_72
LBB0_59:
	movq	16(%r12), %rax
	movl	48(%rax), %eax
	movq	_MODE_ROLLUP_2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_62
## %bb.60:
	movq	_MODE_ROLLUP_3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_62
## %bb.61:
	movq	_MODE_ROLLUP_4@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_63
LBB0_62:
	movq	%r12, %rdi
	callq	_write_cc_buffer
LBB0_63:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_erase_memory
	movl	28(%r12), %eax
	movq	16(%r12), %rcx
	movl	%eax, 60(%rcx)
	movl	24(%r12), %eax
	movl	%eax, 56(%rcx)
	movq	%r12, %rdi
	callq	_get_current_visible_buffer
	movl	$1, 8(%rax)
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_cc_buffer                ## TAILCALL
LBB0_64:
	movq	16(%r12), %rax
	movl	48(%rax), %eax
	movq	_MODE_POPUP@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_66
## %bb.65:
	movq	%r12, %rdi
	callq	_swap_visible_buffer
	movl	28(%r12), %eax
	movq	16(%r12), %rcx
	movl	%eax, 60(%rcx)
	movl	24(%r12), %eax
	movl	%eax, 56(%rcx)
LBB0_66:
	movq	%r12, %rdi
	callq	_write_cc_buffer
	movq	16(%r12), %rcx
	testl	%eax, %eax
	je	LBB0_68
## %bb.67:
	incl	52(%rcx)
LBB0_68:
	movl	48(%rcx), %eax
	cmpl	(%rbx), %eax
	je	LBB0_70
## %bb.69:
	movq	%r12, %rdi
	callq	_swap_visible_buffer
	movq	16(%r12), %rcx
LBB0_70:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rcx)
	movq	_default_color@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rcx)
	movq	_FONT_REGULAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rcx)
	jmp	LBB0_72
LBB0_52:
	cmpl	$0, 8(%r12)
	je	LBB0_56
## %bb.53:
	movq	%r12, %rdi
	callq	_is_current_row_empty
	testl	%eax, %eax
	je	LBB0_56
## %bb.54:
	movl	$0, 8(%r12)
	movl	28(%r12), %eax
	movq	16(%r12), %rcx
	jmp	LBB0_55
LBB0_5:
	movq	16(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_72
## %bb.6:
	movq	%r12, %rdi
	callq	_get_writing_buffer
	testq	%rax, %rax
	je	LBB0_72
## %bb.7:
	movq	16(%r12), %rcx
	movq	8(%rcx), %rdx
	movq	16(%rcx), %rsi
	leaq	-1(%rdx), %rdi
	movq	%rdi, 8(%rcx)
	movq	(%rax), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movb	$32, -1(%rcx,%rdx)
	movl	$1, 8(%rax)
	jmp	LBB0_72
LBB0_56:
	movq	%r12, %rdi
	callq	_write_cc_buffer
	testl	%eax, %eax
	je	LBB0_58
## %bb.57:
	movq	16(%r12), %rax
	incl	52(%rax)
LBB0_58:
	movq	%r12, %rdi
	callq	_roll_up
	movq	16(%r12), %rax
	movq	$0, 8(%rax)
	movl	28(%r12), %ecx
	movl	%ecx, 60(%rax)
	movl	24(%r12), %ecx
	movl	%ecx, 56(%rax)
LBB0_72:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_51, LBB0_51-LJTI0_0
.set L0_0_set_59, LBB0_59-LJTI0_0
.set L0_0_set_64, LBB0_64-LJTI0_0
.set L0_0_set_52, LBB0_52-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_39
	.long	L0_0_set_29
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_51
	.long	L0_0_set_59
	.long	L0_0_set_64
	.long	L0_0_set_52
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_cc_channel,8,3                 ## @cc_channel
	.comm	_COM_UNKNOWN,4,2                ## @COM_UNKNOWN
	.comm	_debug_608,8,3                  ## @debug_608
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\rCommand: %02X %02X (%s)\n"

	.comm	_command_type,8,3               ## @command_type
	.comm	_MODE_POPUP,4,2                 ## @MODE_POPUP
	.comm	_MODE_TEXT,4,2                  ## @MODE_TEXT
	.comm	_default_color,8,3              ## @default_color
	.comm	_FONT_REGULAR,8,3               ## @FONT_REGULAR
	.comm	_MODE_ROLLUP_2,4,2              ## @MODE_ROLLUP_2
L_.str.1:                               ## @.str.1
	.asciz	"Two RU2, current line not empty. Simulating a CR\n"

	.comm	_MODE_ROLLUP_3,4,2              ## @MODE_ROLLUP_3
L_.str.2:                               ## @.str.2
	.asciz	"Two RU3, current line not empty. Simulating a CR\n"

	.comm	_MODE_ROLLUP_4,4,2              ## @MODE_ROLLUP_4
L_.str.3:                               ## @.str.3
	.asciz	"Two RU4, current line not empty. Simulating a CR\n"

L_.str.4:                               ## @.str.4
	.asciz	"\rNot yet implemented.\n"

	.no_dead_strip	_handle_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_command
_handle_command:                        ; @handle_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	x8, [x2]
	ldr	x9, [x2, #16]
	str	x8, [x9]
Lloh0:
	adrp	x9, _cc_channel@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cc_channel@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_73
; %bb.1:
	mov	x19, x2
Lloh3:
	adrp	x8, _COM_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COM_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	mov	w8, #20
	cmp	w0, #21
	csel	w8, w8, w0, eq
	and	w11, w8, #0xfffffff7
	cmp	w11, #20
	cset	w9, eq
	cmp	w1, #44
	cset	w12, eq
	tst	w12, w9
	mov	w12, #137
	csel	w10, w12, w10, ne
	cmp	w1, #32
	cset	w12, eq
	tst	w12, w9
	mov	w12, #135
	csel	w10, w12, w10, ne
	cmp	w1, #47
	cset	w12, eq
	tst	w12, w9
	mov	w12, #138
	csel	w10, w12, w10, ne
	cmp	w11, #23
	cset	w11, eq
	cmp	w1, #33
	cset	w12, eq
	tst	w12, w11
	mov	w13, #130
	csel	w10, w13, w10, ne
	cmp	w1, #34
	cset	w13, eq
	tst	w13, w11
	mov	w13, #129
	csel	w10, w13, w10, ne
	cmp	w1, #35
	cset	w13, eq
	tst	w13, w11
	mov	w11, #128
	csel	w10, w11, w10, ne
	cmp	w1, #37
	cset	w11, eq
	tst	w11, w9
	mov	w11, #133
	csel	w10, w11, w10, ne
	cmp	w1, #38
	cset	w11, eq
	tst	w11, w9
	mov	w11, #132
	csel	w10, w11, w10, ne
	cmp	w1, #39
	cset	w11, eq
	tst	w11, w9
	mov	w11, #131
	csel	w10, w11, w10, ne
	cmp	w1, #45
	cset	w11, eq
	tst	w11, w9
	mov	w11, #139
	csel	w10, w11, w10, ne
	cmp	w1, #46
	cset	w11, eq
	tst	w11, w9
	mov	w11, #136
	csel	w10, w11, w10, ne
	tst	w12, w9
	mov	w11, #140
	csel	w10, w11, w10, ne
	cmp	w1, #43
	cset	w11, eq
	tst	w11, w9
	mov	w9, #134
	csel	w21, w9, w10, ne
Lloh6:
	adrp	x20, _debug_608@GOTPAGE
Lloh7:
	ldr	x20, [x20, _debug_608@GOTPAGEOFF]
	ldr	x9, [x20]
	cbz	x9, LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _command_type@GOTPAGE
Lloh9:
	ldr	x9, [x9, _command_type@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w10, [x9, w21, uxtw #2]
	mov	w9, w1
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
LBB0_3:
	sub	w8, w21, #128
	cmp	w8, #12
	b.hi	LBB0_6
; %bb.4:
Lloh13:
	adrp	x9, lJTI0_0@PAGE
Lloh14:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrh	w11, [x9, x8, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	add	x9, x9, #3
	b	LBB0_9
LBB0_6:
	ldr	x8, [x20]
	cbz	x8, LBB0_73
; %bb.7:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	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
	add	sp, sp, #80
	b	_hb_log
LBB0_8:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	add	x9, x9, #2
LBB0_9:
	mov	w10, #31
	cmp	x9, #31
	csel	x9, x9, x10, lo
	str	x9, [x8, #8]
	b	LBB0_73
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	cmp	x9, #30
	b.hi	LBB0_73
; %bb.11:
	add	x9, x9, #1
	str	x9, [x8, #8]
	b	LBB0_73
LBB0_12:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #24]
	cmp	w9, #2
	b.gt	LBB0_14
; %bb.13:
	mov	w21, #3
	mov	x0, x19
	mov	w1, #3
	bl	_move_roll_up
	ldr	x8, [x19, #16]
	str	w21, [x8, #24]
LBB0_14:
	ldr	w9, [x8, #48]
Lloh17:
	adrp	x10, _MODE_POPUP@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MODE_POPUP@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_18
; %bb.15:
	mov	x0, x19
	bl	_write_cc_buffer
	cbz	w0, LBB0_17
; %bb.16:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #52]
	add	w9, w9, #1
	str	w9, [x8, #52]
LBB0_17:
	mov	x0, x19
	mov	w1, #1
	bl	_erase_memory
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #48]
LBB0_18:
Lloh20:
	adrp	x10, _default_color@GOTPAGE
Lloh21:
	ldr	x10, [x10, _default_color@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
Lloh23:
	adrp	x11, _FONT_REGULAR@GOTPAGE
Lloh24:
	ldr	x11, [x11, _FONT_REGULAR@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
	stp	x11, x10, [x8, #32]
Lloh26:
	adrp	x21, _MODE_ROLLUP_4@GOTPAGE
Lloh27:
	ldr	x21, [x21, _MODE_ROLLUP_4@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w9, w8
	b.ne	LBB0_23
; %bb.19:
	mov	x0, x19
	bl	_is_current_row_empty
	cbnz	w0, LBB0_23
; %bb.20:
	ldr	x8, [x20]
	cbz	x8, LBB0_22
; %bb.21:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_log
LBB0_22:
	mov	w0, #20
	mov	w1, #45
	mov	x2, x19
	bl	_handle_command
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_23:
	ldr	x8, [x19, #16]
	ldr	d0, [x19, #24]
	str	d0, [x8, #56]
	ldr	w9, [x21]
	str	w9, [x8, #48]
	ldrsw	x9, [x8, #24]
	stp	xzr, x9, [x8, #8]
LBB0_24:
	mov	x0, x19
	mov	w1, #0
	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
	add	sp, sp, #80
	b	_erase_memory
LBB0_25:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #24]
	cmp	w9, #1
	b.gt	LBB0_27
; %bb.26:
	mov	w21, #2
	mov	x0, x19
	mov	w1, #2
	bl	_move_roll_up
	ldr	x8, [x19, #16]
	str	w21, [x8, #24]
LBB0_27:
	ldr	w9, [x8, #48]
Lloh30:
	adrp	x10, _MODE_POPUP@GOTPAGE
Lloh31:
	ldr	x10, [x10, _MODE_POPUP@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_31
; %bb.28:
	mov	x0, x19
	bl	_write_cc_buffer
	cbz	w0, LBB0_30
; %bb.29:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #52]
	add	w9, w9, #1
	str	w9, [x8, #52]
LBB0_30:
	mov	x0, x19
	mov	w1, #1
	bl	_erase_memory
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #48]
LBB0_31:
Lloh33:
	adrp	x10, _default_color@GOTPAGE
Lloh34:
	ldr	x10, [x10, _default_color@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
Lloh36:
	adrp	x11, _FONT_REGULAR@GOTPAGE
Lloh37:
	ldr	x11, [x11, _FONT_REGULAR@GOTPAGEOFF]
Lloh38:
	ldr	x11, [x11]
	stp	x11, x10, [x8, #32]
Lloh39:
	adrp	x21, _MODE_ROLLUP_3@GOTPAGE
Lloh40:
	ldr	x21, [x21, _MODE_ROLLUP_3@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w9, w8
	b.ne	LBB0_47
; %bb.32:
	mov	x0, x19
	bl	_is_current_row_empty
	cbnz	w0, LBB0_47
; %bb.33:
	ldr	x8, [x20]
	cbz	x8, LBB0_46
; %bb.34:
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_45
LBB0_35:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #24]
	cmp	w9, #0
	b.gt	LBB0_37
; %bb.36:
	mov	w21, #1
	mov	x0, x19
	mov	w1, #1
	bl	_move_roll_up
	ldr	x8, [x19, #16]
	str	w21, [x8, #24]
LBB0_37:
	ldr	w9, [x8, #48]
Lloh43:
	adrp	x10, _MODE_POPUP@GOTPAGE
Lloh44:
	ldr	x10, [x10, _MODE_POPUP@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_41
; %bb.38:
	mov	x0, x19
	bl	_swap_visible_buffer
	mov	x0, x19
	bl	_write_cc_buffer
	cbz	w0, LBB0_40
; %bb.39:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #52]
	add	w9, w9, #1
	str	w9, [x8, #52]
LBB0_40:
	mov	x0, x19
	mov	w1, #1
	bl	_erase_memory
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #48]
LBB0_41:
Lloh46:
	adrp	x10, _default_color@GOTPAGE
Lloh47:
	ldr	x10, [x10, _default_color@GOTPAGEOFF]
Lloh48:
	ldr	x10, [x10]
Lloh49:
	adrp	x11, _FONT_REGULAR@GOTPAGE
Lloh50:
	ldr	x11, [x11, _FONT_REGULAR@GOTPAGEOFF]
Lloh51:
	ldr	x11, [x11]
	stp	x11, x10, [x8, #32]
Lloh52:
	adrp	x21, _MODE_ROLLUP_2@GOTPAGE
Lloh53:
	ldr	x21, [x21, _MODE_ROLLUP_2@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w9, w8
	b.ne	LBB0_47
; %bb.42:
	mov	x0, x19
	bl	_is_current_row_empty
	cbnz	w0, LBB0_47
; %bb.43:
	ldr	x8, [x20]
	cbz	x8, LBB0_46
; %bb.44:
Lloh54:
	adrp	x0, l_.str.1@PAGE
Lloh55:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_45:
	bl	_hb_log
LBB0_46:
	mov	w0, #20
	mov	w1, #45
	mov	x2, x19
	bl	_handle_command
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_47:
	ldr	x8, [x19, #16]
	ldr	d0, [x19, #24]
	str	d0, [x8, #56]
	ldr	w9, [x21]
	str	w9, [x8, #48]
	mov	x0, x19
	mov	w1, #0
	bl	_erase_memory
	ldr	x8, [x19, #16]
	ldrsw	x9, [x8, #24]
	stp	xzr, x9, [x8, #8]
	b	LBB0_73
LBB0_48:
Lloh56:
	adrp	x8, _MODE_TEXT@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MODE_TEXT@GOTPAGEOFF]
	b	LBB0_50
LBB0_49:
Lloh58:
	adrp	x8, _MODE_POPUP@GOTPAGE
Lloh59:
	ldr	x8, [x8, _MODE_POPUP@GOTPAGEOFF]
LBB0_50:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9, #48]
	ldr	d0, [x19, #24]
	str	d0, [x9, #56]
	b	LBB0_73
LBB0_51:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #48]
Lloh60:
	adrp	x9, _MODE_ROLLUP_2@GOTPAGE
Lloh61:
	ldr	x9, [x9, _MODE_ROLLUP_2@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_54
; %bb.52:
Lloh63:
	adrp	x9, _MODE_ROLLUP_3@GOTPAGE
Lloh64:
	ldr	x9, [x9, _MODE_ROLLUP_3@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_54
; %bb.53:
Lloh66:
	adrp	x9, _MODE_ROLLUP_4@GOTPAGE
Lloh67:
	ldr	x9, [x9, _MODE_ROLLUP_4@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_55
LBB0_54:
	mov	x0, x19
	bl	_write_cc_buffer
LBB0_55:
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_erase_memory
	ldr	x8, [x19, #16]
	ldr	d0, [x19, #24]
	str	d0, [x8, #56]
	mov	x0, x19
	bl	_get_current_visible_buffer
	str	w20, [x0, #8]
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_write_cc_buffer
LBB0_56:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #48]
Lloh69:
	adrp	x20, _MODE_POPUP@GOTPAGE
Lloh70:
	ldr	x20, [x20, _MODE_POPUP@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_58
; %bb.57:
	mov	x0, x19
	bl	_swap_visible_buffer
	ldr	x8, [x19, #16]
	ldr	d0, [x19, #24]
	str	d0, [x8, #56]
LBB0_58:
	mov	x0, x19
	bl	_write_cc_buffer
	ldr	x8, [x19, #16]
	cbz	w0, LBB0_60
; %bb.59:
	ldr	w9, [x8, #52]
	add	w9, w9, #1
	str	w9, [x8, #52]
LBB0_60:
	ldr	w9, [x8, #48]
	ldr	w10, [x20]
	cmp	w9, w10
	b.eq	LBB0_62
; %bb.61:
	mov	x0, x19
	bl	_swap_visible_buffer
	ldr	x8, [x19, #16]
LBB0_62:
	stp	xzr, xzr, [x8, #8]
Lloh71:
	adrp	x9, _default_color@GOTPAGE
Lloh72:
	ldr	x9, [x9, _default_color@GOTPAGEOFF]
Lloh73:
	ldr	x9, [x9]
Lloh74:
	adrp	x10, _FONT_REGULAR@GOTPAGE
Lloh75:
	ldr	x10, [x10, _FONT_REGULAR@GOTPAGEOFF]
Lloh76:
	ldr	x10, [x10]
	stp	x10, x9, [x8, #32]
	b	LBB0_73
LBB0_63:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_69
; %bb.64:
	mov	x0, x19
	bl	_is_current_row_empty
	cbz	w0, LBB0_69
; %bb.65:
	str	wzr, [x19, #8]
	ldr	x8, [x19, #16]
	b	LBB0_72
LBB0_66:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_73
; %bb.67:
	mov	x0, x19
	bl	_get_writing_buffer
	cbz	x0, LBB0_73
; %bb.68:
	ldr	x8, [x19, #16]
	ldp	x9, x10, [x8, #8]
	sub	x9, x9, #1
	ldr	x11, [x0]
	ldr	x10, [x11, x10, lsl #3]
	str	x9, [x8, #8]
	mov	w8, #32
	strb	w8, [x10, x9]
	mov	w8, #1
	str	w8, [x0, #8]
	b	LBB0_73
LBB0_69:
	mov	x0, x19
	bl	_write_cc_buffer
	cbz	w0, LBB0_71
; %bb.70:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #52]
	add	w9, w9, #1
	str	w9, [x8, #52]
LBB0_71:
	mov	x0, x19
	bl	_roll_up
	ldr	x8, [x19, #16]
	str	xzr, [x8, #8]
LBB0_72:
	ldr	d0, [x19, #24]
	str	d0, [x8, #56]
LBB0_73:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_5-LBB0_5)>>2
	.short	(LBB0_8-LBB0_5)>>2
	.short	(LBB0_10-LBB0_5)>>2
	.short	(LBB0_12-LBB0_5)>>2
	.short	(LBB0_25-LBB0_5)>>2
	.short	(LBB0_35-LBB0_5)>>2
	.short	(LBB0_48-LBB0_5)>>2
	.short	(LBB0_49-LBB0_5)>>2
	.short	(LBB0_24-LBB0_5)>>2
	.short	(LBB0_51-LBB0_5)>>2
	.short	(LBB0_56-LBB0_5)>>2
	.short	(LBB0_63-LBB0_5)>>2
	.short	(LBB0_66-LBB0_5)>>2
                                        ; -- End function
	.comm	_cc_channel,8,3                 ; @cc_channel
	.comm	_COM_UNKNOWN,4,2                ; @COM_UNKNOWN
	.comm	_debug_608,8,3                  ; @debug_608
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\rCommand: %02X %02X (%s)\n"

	.comm	_command_type,8,3               ; @command_type
	.comm	_MODE_POPUP,4,2                 ; @MODE_POPUP
	.comm	_MODE_TEXT,4,2                  ; @MODE_TEXT
	.comm	_default_color,8,3              ; @default_color
	.comm	_FONT_REGULAR,8,3               ; @FONT_REGULAR
	.comm	_MODE_ROLLUP_2,4,2              ; @MODE_ROLLUP_2
l_.str.1:                               ; @.str.1
	.asciz	"Two RU2, current line not empty. Simulating a CR\n"

	.comm	_MODE_ROLLUP_3,4,2              ; @MODE_ROLLUP_3
l_.str.2:                               ; @.str.2
	.asciz	"Two RU3, current line not empty. Simulating a CR\n"

	.comm	_MODE_ROLLUP_4,4,2              ; @MODE_ROLLUP_4
l_.str.3:                               ; @.str.3
	.asciz	"Two RU4, current line not empty. Simulating a CR\n"

l_.str.4:                               ; @.str.4
	.asciz	"\rNot yet implemented.\n"

	.no_dead_strip	_handle_command
.subsections_via_symbols
