	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RefCursor                      ## -- Begin function RefCursor
	.p2align	4, 0x90
_RefCursor:                             ## @RefCursor
	.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	_TermH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_Prompt@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	xorl	%r14d, %r14d
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movl	(%r13), %edi
	movl	$0, %ebx
	testl	%edi, %edi
	je	LBB0_16
## %bb.3:
	movq	_LITERAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%rax), %eax
	addq	$4, %r13
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%edi, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r13), %edi
	addq	$4, %r13
	testl	%edi, %edi
	jne	LBB0_5
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_CHAR@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	leaq	-4(%r13), %rax
	xorl	%esi, %esi
	cmpq	(%r12), %rax
	sete	%sil
	xorl	%edx, %edx
	callq	_NLSClassify
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$6, %ecx
	ja	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %edi
	callq	_NLSCLASS_ILLEGAL_SIZE
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r14,%rax,2), %r14d
	addl	$3, %r14d
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	%r14d, %eax
	movl	%eax, %r14d
	jmp	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %eax
	orl	$-8, %eax
	subl	%eax, %r14d
	jmp	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	$4, %r14d
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	$2, %r14d
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	cmpl	%r15d, %r14d
	setge	%al
	movl	%r15d, %ecx
	movl	$0, %edx
	cmovll	%edx, %ecx
	subl	%ecx, %r14d
	addl	%eax, %ebx
	movl	(%r13), %edi
	testl	%edi, %edi
	movq	_LITERAL@GOTPCREL(%rip), %rax
	jne	LBB0_4
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
LBB0_16:
	movq	_InputBuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Cursor@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_28
## %bb.17:
	leaq	LJTI0_1(%rip), %r12
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	_CHAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%r13), %edi
	xorl	%esi, %esi
	cmpq	%rax, %r13
	sete	%sil
	xorl	%edx, %edx
	callq	_NLSClassify
                                        ## kill: def $eax killed $eax def $rax
	addq	$4, %r13
	leal	-128(%rax), %ecx
	cmpl	$6, %ecx
	ja	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	(%r12,%rcx,4), %rcx
	addq	%r12, %rcx
	jmpq	*%rcx
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%eax, %edi
	callq	_NLSCLASS_ILLEGAL_SIZE
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r14,%rax,2), %r14d
	addl	$3, %r14d
	jmp	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=1
	addl	%r14d, %eax
	movl	%eax, %r14d
	jmp	LBB0_26
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%r14d, %eax
	orl	$-8, %eax
	subl	%eax, %r14d
	jmp	LBB0_26
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%ebx
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	addl	$4, %r14d
	jmp	LBB0_26
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	addl	$2, %r14d
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_Cursor@GOTPCREL(%rip), %rdx
	movl	%ebx, %eax
	xorl	%ebx, %ebx
	cmpl	%r15d, %r14d
	setge	%bl
	movl	%r15d, %ecx
	movl	$0, %esi
	cmovll	%esi, %ecx
	subl	%ecx, %r14d
	addl	%eax, %ebx
	cmpq	(%rdx), %r13
	jae	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_InputBuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_18
LBB0_28:
	movl	%ebx, %edi
	callq	_MoveToLine
	movl	%r14d, %edi
	callq	_MoveToChar
	movq	_STRhighlight@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_adrof
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:
	movq	_MarkIsSet@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_31
## %bb.30:
	xorl	%eax, %eax
	callq	_ClearLines
	xorl	%eax, %eax
	callq	_ClearDisp
	xorl	%eax, %eax
	callq	_Refresh
LBB0_31:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flush                          ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_11
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_24, LBB0_24-LJTI0_1
.set L0_1_set_23, LBB0_23-LJTI0_1
.set L0_1_set_22, LBB0_22-LJTI0_1
LJTI0_1:
	.long	L0_1_set_20
	.long	L0_1_set_21
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_24
	.long	L0_1_set_23
	.long	L0_1_set_22
	.end_data_region
                                        ## -- End function
	.comm	_TermH,4,2                      ## @TermH
	.comm	_Prompt,8,3                     ## @Prompt
	.comm	_LITERAL,4,2                    ## @LITERAL
	.comm	_CHAR,4,2                       ## @CHAR
	.comm	_InputBuf,8,3                   ## @InputBuf
	.comm	_Cursor,8,3                     ## @Cursor
	.comm	_STRhighlight,4,2               ## @STRhighlight
	.comm	_MarkIsSet,8,3                  ## @MarkIsSet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RefCursor                      ; -- Begin function RefCursor
	.p2align	2
_RefCursor:                             ; @RefCursor
	.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
Lloh0:
	adrp	x8, _TermH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TermH@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x22, _Prompt@GOTPAGE
Lloh4:
	ldr	x22, [x22, _Prompt@GOTPAGEOFF]
	ldr	x23, [x22]
	cbz	x23, LBB0_15
; %bb.1:
	ldr	w8, [x23]
	cbz	w8, LBB0_15
; %bb.2:
	mov	w20, #0
	mov	w19, #0
Lloh5:
	adrp	x24, _LITERAL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _LITERAL@GOTPAGEOFF]
Lloh7:
	adrp	x25, _CHAR@GOTPAGE
Lloh8:
	ldr	x25, [x25, _CHAR@GOTPAGEOFF]
Lloh9:
	adrp	x26, lJTI0_0@PAGE
Lloh10:
	add	x26, x26, lJTI0_0@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w9, [x24]
	add	x23, x23, #4
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x23], #4
	cbnz	w8, LBB0_4
	b	LBB0_16
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x25]
	and	w0, w9, w8
	ldr	x8, [x22]
	sub	x9, x23, #4
	cmp	x9, x8
	cset	w1, eq
	mov	w2, #0
	bl	_NLSClassify
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_8
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_NLSCLASS_ILLEGAL_SIZE
	add	w8, w20, w0, lsl #1
	add	w8, w8, #3
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w0, w20
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w8, w20, #0xfffffff8
	sub	w8, w20, w8
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	add	w19, w19, #1
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w20, #4
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w20, #2
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w21
	csel	w9, wzr, w21, lt
	cinc	w19, w19, ge
	sub	w20, w8, w9
	ldr	w8, [x23]
	cbnz	w8, LBB0_3
	b	LBB0_16
LBB0_15:
	mov	w20, #0
	mov	w19, #0
LBB0_16:
Lloh11:
	adrp	x22, _InputBuf@GOTPAGE
Lloh12:
	ldr	x22, [x22, _InputBuf@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh13:
	adrp	x23, _Cursor@GOTPAGE
Lloh14:
	ldr	x23, [x23, _Cursor@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.hs	LBB0_28
; %bb.17:
Lloh15:
	adrp	x24, _CHAR@GOTPAGE
Lloh16:
	ldr	x24, [x24, _CHAR@GOTPAGEOFF]
Lloh17:
	adrp	x25, lJTI0_1@PAGE
Lloh18:
	add	x25, x25, lJTI0_1@PAGEOFF
	mov	x26, x8
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	cmp	x26, x8
	ldr	w8, [x26], #4
	ldr	w9, [x24]
	and	w0, w9, w8
	cset	w1, eq
	mov	w2, #0
	bl	_NLSClassify
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	adr	x9, LBB0_20
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	bl	_NLSCLASS_ILLEGAL_SIZE
	add	w8, w20, w0, lsl #1
	add	w8, w8, #3
	b	LBB0_26
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w8, w0, w20
	b	LBB0_26
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	orr	w8, w20, #0xfffffff8
	sub	w8, w20, w8
	b	LBB0_26
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w8, #0
	add	w19, w19, #1
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w8, w20, #4
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w8, w20, #2
LBB0_26:                                ;   in Loop: Header=BB0_18 Depth=1
	cmp	w8, w21
	csel	w9, wzr, w21, lt
	cinc	w19, w19, ge
	sub	w20, w8, w9
	ldr	x8, [x23]
	cmp	x26, x8
	b.hs	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x22]
	b	LBB0_18
LBB0_28:
	mov	x0, x19
	bl	_MoveToLine
	mov	x0, x20
	bl	_MoveToChar
Lloh19:
	adrp	x8, _STRhighlight@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STRhighlight@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_adrof
Lloh22:
	adrp	x8, _MarkIsSet@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MarkIsSet@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_30
; %bb.29:
	bl	_ClearLines
	bl	_ClearDisp
	bl	_Refresh
LBB0_30:
	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
	b	_flush
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
lJTI0_1:
	.byte	(LBB0_22-LBB0_20)>>2
	.byte	(LBB0_23-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_24-LBB0_20)>>2
	.byte	(LBB0_25-LBB0_20)>>2
                                        ; -- End function
	.comm	_TermH,4,2                      ; @TermH
	.comm	_Prompt,8,3                     ; @Prompt
	.comm	_LITERAL,4,2                    ; @LITERAL
	.comm	_CHAR,4,2                       ; @CHAR
	.comm	_InputBuf,8,3                   ; @InputBuf
	.comm	_Cursor,8,3                     ; @Cursor
	.comm	_STRhighlight,4,2               ; @STRhighlight
	.comm	_MarkIsSet,8,3                  ; @MarkIsSet
.subsections_via_symbols
