	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MoveToChar                     ## -- Begin function MoveToChar
	.p2align	4, 0x90
_MoveToChar:                            ## @MoveToChar
	.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	_CursorH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	je	LBB0_31
## %bb.1:
	movl	%edi, %r14d
	movq	_TermH@GOTPCREL(%rip), %r13
	cmpl	%edi, (%r13)
	jle	LBB0_31
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_16
## %bb.3:
	movl	%r14d, %ecx
	sarl	$3, %ecx
	movl	%r14d, %r12d
	andl	$7, %r12d
	addl	%ecx, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r14d, %r15d
	jle	LBB0_13
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$13, %edi
	callq	_putraw
	movq	_CursorH@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
	cmpl	%r14d, (%r13)
	jle	LBB0_31
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %ebx
	subl	%eax, %ebx
	leal	-5(%rbx), %eax
	cmpl	$-9, %eax
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_T_ch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GoodStr
	testq	%rax, %rax
	jne	LBB0_27
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	%ebx, %ebx
	jg	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %r15d
	negl	%r15d
	cmpl	$-5, %ebx
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_T_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GoodStr
	testq	%rax, %rax
	jne	LBB0_28
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_T_Tabs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r15d, %r12d
	jl	LBB0_5
LBB0_13:
	testl	%ebx, %ebx
	jns	LBB0_30
## %bb.14:
	cmpl	$2, %r15d
	movl	$1, %ebx
	cmovgel	%r15d, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	$8, %edi
	callq	_putraw
	decl	%ebx
	jne	LBB0_15
	jmp	LBB0_30
LBB0_16:
	movl	$13, %edi
	callq	_putraw
	xorl	%r14d, %r14d
	jmp	LBB0_30
LBB0_17:
	cmpl	$5, %ebx
	jb	LBB0_20
## %bb.18:
	movq	_T_RI@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_GoodStr
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	(%r15), %edi
	callq	_Str
	movl	%eax, %edi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_tgoto
	movq	_PUTPURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %esi
	jmp	LBB0_29
LBB0_20:
	movq	_T_Tabs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_CursorH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_26
## %bb.21:
	movl	%eax, %ebx
	andl	$248, %ebx
	movl	%r14d, %r15d
	andl	$-8, %r15d
	cmpl	%r15d, %ebx
	je	LBB0_26
## %bb.22:
	movq	_Display@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CursorV@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movslq	%r15d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	_CHAR_DBWIDTH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_26
## %bb.23:
	cmpl	%r15d, %ebx
	jge	LBB0_25
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	$9, %edi
	callq	_putraw
	addl	$8, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_24
LBB0_25:
	movq	_CursorH@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movl	%r15d, %eax
LBB0_26:
	movq	_Display@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CursorV@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cltq
	leaq	(,%rax,8), %rdi
	addq	(%rcx,%rdx,8), %rdi
	movl	%r14d, %esi
	subl	%eax, %esi
	callq	_so_write
	jmp	LBB0_30
LBB0_27:
	movq	_T_ch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Str
	movl	%eax, %edi
	movl	%r14d, %esi
	movl	%r14d, %edx
	callq	_tgoto
	movq	_PUTPURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%r14d, %esi
	jmp	LBB0_29
LBB0_28:
	movq	_T_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Str
	movl	%eax, %edi
	movl	%r15d, %esi
	movl	%r15d, %edx
	callq	_tgoto
	movq	_PUTPURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%r15d, %esi
LBB0_29:
	callq	_tputs
LBB0_30:
	movq	_CursorH@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CursorH,4,2                    ## @CursorH
	.comm	_TermH,4,2                      ## @TermH
	.comm	_T_ch,4,2                       ## @T_ch
	.comm	_PUTPURE,4,2                    ## @PUTPURE
	.comm	_T_RI,4,2                       ## @T_RI
	.comm	_T_Tabs,8,3                     ## @T_Tabs
	.comm	_Display,8,3                    ## @Display
	.comm	_CursorV,8,3                    ## @CursorV
	.comm	_CHAR_DBWIDTH,8,3               ## @CHAR_DBWIDTH
	.comm	_T_LE,4,2                       ## @T_LE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MoveToChar                     ; -- Begin function MoveToChar
	.p2align	2
_MoveToChar:                            ; @MoveToChar
	.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
Lloh0:
	adrp	x22, _CursorH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CursorH@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x24, _TermH@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TermH@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.le	LBB0_25
; %bb.1:
	mov	x19, x0
	cbz	w0, LBB0_15
; %bb.2:
	and	w9, w19, #0x7
	add	w27, w9, w19, asr #3
Lloh4:
	adrp	x25, _T_ch@GOTPAGE
Lloh5:
	ldr	x25, [x25, _T_ch@GOTPAGEOFF]
Lloh6:
	adrp	x26, _T_LE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _T_LE@GOTPAGEOFF]
Lloh8:
	adrp	x23, _T_Tabs@GOTPAGE
Lloh9:
	ldr	x23, [x23, _T_Tabs@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w21, w19
	b.le	LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #13
	bl	_putraw
	mov	w8, #0
	str	wzr, [x22]
	ldr	w9, [x24]
	cmp	w9, w19
	b.le	LBB0_25
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w19, w8
	sub	w8, w20, #5
	cmn	w8, #9
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	bl	_GoodStr
	cbnz	x0, LBB0_21
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #1
	b.ge	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	neg	w21, w20
	cmn	w20, #5
	b.gt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	bl	_GoodStr
	cbnz	x0, LBB0_22
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, w21
	b.lt	LBB0_4
LBB0_12:
	tbz	w20, #31, LBB0_24
; %bb.13:
	cmp	w21, #1
	csinc	w20, w21, wzr, gt
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #8
	bl	_putraw
	subs	w20, w20, #1
	b.ne	LBB0_14
	b	LBB0_24
LBB0_15:
	mov	w0, #13
	bl	_putraw
	b	LBB0_24
LBB0_16:
	cmp	w20, #5
	b.lo	LBB0_19
; %bb.17:
Lloh10:
	adrp	x21, _T_RI@GOTPAGE
Lloh11:
	ldr	x21, [x21, _T_RI@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_GoodStr
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w0, [x21]
	bl	_Str
	mov	x1, x20
	mov	x2, x20
	bl	_tgoto
Lloh12:
	adrp	x8, _PUTPURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PUTPURE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x20
	b	LBB0_23
LBB0_19:
	ldr	x9, [x23]
	ldr	w8, [x22]
	cmp	x9, #0
	and	w24, w8, #0xf8
	and	w23, w19, #0xfffffff8
	ccmp	w24, w23, #4, ne
Lloh15:
	adrp	x20, _Display@GOTPAGE
Lloh16:
	ldr	x20, [x20, _Display@GOTPAGEOFF]
Lloh17:
	adrp	x21, _CursorV@GOTPAGE
Lloh18:
	ldr	x21, [x21, _CursorV@GOTPAGEOFF]
	b.ne	LBB0_26
LBB0_20:
	ldr	x9, [x20]
	ldr	x10, [x21]
	ldr	x9, [x9, x10, lsl #3]
	add	x0, x9, w8, sxtw #3
	sub	w1, w19, w8
	bl	_so_write
	b	LBB0_24
LBB0_21:
	ldr	w0, [x25]
	bl	_Str
	mov	x1, x19
	mov	x2, x19
	bl	_tgoto
Lloh19:
	adrp	x8, _PUTPURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PUTPURE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x1, x19
	b	LBB0_23
LBB0_22:
	ldr	w0, [x26]
	bl	_Str
	mov	x1, x21
	mov	x2, x21
	bl	_tgoto
Lloh22:
	adrp	x8, _PUTPURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PUTPURE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x1, x21
LBB0_23:
	bl	_tputs
LBB0_24:
	str	w19, [x22]
LBB0_25:
	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
LBB0_26:
	ldr	x9, [x20]
	ldr	x10, [x21]
	ldr	x9, [x9, x10, lsl #3]
	ldr	x9, [x9, w23, sxtw #3]
Lloh25:
	adrp	x10, _CHAR_DBWIDTH@GOTPAGE
Lloh26:
	ldr	x10, [x10, _CHAR_DBWIDTH@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_20
; %bb.27:
	cmp	w24, w23
	b.ge	LBB0_29
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #9
	bl	_putraw
	add	w24, w24, #8
	cmp	w24, w23
	b.lt	LBB0_28
LBB0_29:
	str	w23, [x22]
	mov	x8, x23
	b	LBB0_20
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CursorH,4,2                    ; @CursorH
	.comm	_TermH,4,2                      ; @TermH
	.comm	_T_ch,4,2                       ; @T_ch
	.comm	_PUTPURE,4,2                    ; @PUTPURE
	.comm	_T_RI,4,2                       ; @T_RI
	.comm	_T_Tabs,8,3                     ; @T_Tabs
	.comm	_Display,8,3                    ; @Display
	.comm	_CursorV,8,3                    ; @CursorV
	.comm	_CHAR_DBWIDTH,8,3               ; @CHAR_DBWIDTH
	.comm	_T_LE,4,2                       ; @T_LE
.subsections_via_symbols
