	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MoveToLine                     ## -- Begin function MoveToLine
	.p2align	4, 0x90
_MoveToLine:                            ## @MoveToLine
	.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	_CursorV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	je	LBB0_25
## %bb.1:
	movq	_TermV@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jl	LBB0_25
## %bb.2:
	movl	%edi, %r12d
	subl	%eax, %r12d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_16
## %bb.3:
	movl	%edi, %ebx
	subl	%eax, %ebx
	incl	%ebx
	movq	_MARGIN_AUTO@GOTPCREL(%rip), %r13
	movq	_Display@GOTPCREL(%rip), %r15
	movq	_TermH@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_MoveToChar
	movq	(%r15), %rax
	movq	_CursorV@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	_CursorH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rcx,8), %rdi
	addq	%rdx, %rdi
	movq	(%r14), %rsi
	subq	%rdx, %rsi
	callq	_so_write
	leal	-1(%r12), %eax
	decl	%ebx
	cmpl	$1, %r12d
	movl	%eax, %r12d
	jle	LBB0_24
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%r13), %eax
	movq	_T_Margin@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movq	_CursorV@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	cmpb	$0, (%rax)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rcx
	movq	_CHAR_DBWIDTH@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	decq	%rcx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rdi
	subq	$1, %rcx
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpb	%dl, (%rax,%rdi)
	je	LBB0_7
	jmp	LBB0_9
LBB0_10:
	cmpl	$2, %r12d
	jb	LBB0_14
## %bb.11:
	movq	_T_DO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_GoodStr
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movl	(%r14), %edi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_putraw
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_14
## %bb.15:
	movq	_CursorH@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_24
LBB0_16:
	movq	_T_UP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_GoodStr
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	cmpl	$-1, %r12d
	jl	LBB0_19
## %bb.18:
	movq	_T_up@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GoodStr
	testq	%rax, %rax
	je	LBB0_19
LBB0_20:
	movq	_T_up@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_GoodStr
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	testl	%r12d, %r12d
	jns	LBB0_24
## %bb.22:
	negl	%r12d
	cmpl	$2, %r12d
	movl	$1, %eax
	cmovll	%eax, %r12d
	movq	_PUTPURE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_Str
	movl	(%rbx), %edx
	movl	%eax, %edi
	movl	$1, %esi
	callq	_tputs
	decl	%r12d
	jne	LBB0_23
	jmp	LBB0_24
LBB0_19:
	negl	%r12d
	movl	(%rbx), %edi
LBB0_13:
	callq	_Str
	movl	%eax, %edi
	movl	%r12d, %esi
	movl	%r12d, %edx
	callq	_tgoto
	movq	_PUTPURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_tputs
LBB0_24:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_CursorV@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CursorV,4,2                    ## @CursorV
	.comm	_TermV,4,2                      ## @TermV
	.comm	_T_Margin,4,2                   ## @T_Margin
	.comm	_MARGIN_AUTO,4,2                ## @MARGIN_AUTO
	.comm	_Display,8,3                    ## @Display
	.comm	_TermH,8,3                      ## @TermH
	.comm	_CHAR_DBWIDTH,1,0               ## @CHAR_DBWIDTH
	.comm	_CursorH,8,3                    ## @CursorH
	.comm	_T_DO,4,2                       ## @T_DO
	.comm	_PUTPURE,4,2                    ## @PUTPURE
	.comm	_T_UP,4,2                       ## @T_UP
	.comm	_T_up,4,2                       ## @T_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MoveToLine                     ; -- Begin function MoveToLine
	.p2align	2
_MoveToLine:                            ; @MoveToLine
	.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	x21, _CursorV@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CursorV@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _TermV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TermV@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #8, ne
	b.lt	LBB0_24
; %bb.1:
	mov	x19, x0
	sub	w20, w0, w8
	cmp	w20, #1
	b.lt	LBB0_14
; %bb.2:
	add	w22, w20, #1
Lloh5:
	adrp	x24, _T_Margin@GOTPAGE
Lloh6:
	ldr	x24, [x24, _T_Margin@GOTPAGEOFF]
Lloh7:
	adrp	x25, _MARGIN_AUTO@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MARGIN_AUTO@GOTPAGEOFF]
Lloh9:
	adrp	x26, _Display@GOTPAGE
Lloh10:
	ldr	x26, [x26, _Display@GOTPAGEOFF]
Lloh11:
	adrp	x27, _TermH@GOTPAGE
Lloh12:
	ldr	x27, [x27, _TermH@GOTPAGEOFF]
Lloh13:
	adrp	x28, _CHAR_DBWIDTH@GOTPAGE
Lloh14:
	ldr	x28, [x28, _CHAR_DBWIDTH@GOTPAGEOFF]
Lloh15:
	adrp	x23, _CursorH@GOTPAGE
Lloh16:
	ldr	x23, [x23, _CursorH@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_MoveToChar
	ldr	x8, [x26]
	ldrsw	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x23]
	add	x0, x8, x9
	ldr	x8, [x27]
	sub	x1, x8, x9
	bl	_so_write
	sub	w22, w22, #1
	subs	w20, w20, #1
	b.le	LBB0_23
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x24]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	ldrsw	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	ldrb	w9, [x8]
	cbz	w9, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x27]
	ldrb	w9, [x28]
	sub	x10, x10, #1
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x10
	cbz	x10, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w11, [x8, x0]
	sub	x10, x0, #1
	cmp	w11, w9
	b.eq	LBB0_7
	b	LBB0_3
LBB0_9:
	cmp	w20, #2
	b.lo	LBB0_12
; %bb.10:
Lloh17:
	adrp	x24, _T_DO@GOTPAGE
Lloh18:
	ldr	x24, [x24, _T_DO@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_GoodStr
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x24]
	b	LBB0_22
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_putraw
	sub	w22, w22, #1
	cmp	w22, #1
	b.hi	LBB0_12
; %bb.13:
	str	xzr, [x23]
	b	LBB0_23
LBB0_14:
Lloh19:
	adrp	x22, _T_UP@GOTPAGE
Lloh20:
	ldr	x22, [x22, _T_UP@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_GoodStr
	cbz	x0, LBB0_17
; %bb.15:
	cmn	w20, #1
	b.lt	LBB0_21
; %bb.16:
Lloh21:
	adrp	x8, _T_up@GOTPAGE
Lloh22:
	ldr	x8, [x8, _T_up@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_GoodStr
	cbz	x0, LBB0_21
LBB0_17:
Lloh24:
	adrp	x22, _T_up@GOTPAGE
Lloh25:
	ldr	x22, [x22, _T_up@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_GoodStr
	cbz	x0, LBB0_23
; %bb.18:
	tbz	w20, #31, LBB0_23
; %bb.19:
	neg	w8, w20
	cmp	w8, #1
	mov	w8, #1
	csneg	w20, w8, w20, le
Lloh26:
	adrp	x23, _PUTPURE@GOTPAGE
Lloh27:
	ldr	x23, [x23, _PUTPURE@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_Str
	ldr	w2, [x23]
	mov	w1, #1
	bl	_tputs
	subs	w20, w20, #1
	b.ne	LBB0_20
	b	LBB0_23
LBB0_21:
	neg	w20, w20
	ldr	w0, [x22]
LBB0_22:
	bl	_Str
	mov	x1, x20
	mov	x2, x20
	bl	_tgoto
Lloh28:
	adrp	x8, _PUTPURE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PUTPURE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_tputs
LBB0_23:
	str	w19, [x21]
LBB0_24:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CursorV,4,2                    ; @CursorV
	.comm	_TermV,4,2                      ; @TermV
	.comm	_T_Margin,4,2                   ; @T_Margin
	.comm	_MARGIN_AUTO,4,2                ; @MARGIN_AUTO
	.comm	_Display,8,3                    ; @Display
	.comm	_TermH,8,3                      ; @TermH
	.comm	_CHAR_DBWIDTH,1,0               ; @CHAR_DBWIDTH
	.comm	_CursorH,8,3                    ; @CursorH
	.comm	_T_DO,4,2                       ; @T_DO
	.comm	_PUTPURE,4,2                    ; @PUTPURE
	.comm	_T_UP,4,2                       ; @T_UP
	.comm	_T_up,4,2                       ; @T_up
.subsections_via_symbols
