	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_cursor
_check_cursor:                          ## @check_cursor
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_hard_copy@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_check_noaddress
	jmp	LBB0_13
LBB0_2:
	movq	_generic_type@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	callq	_check_noaddress
	jmp	LBB0_13
LBB0_4:
	movl	(%rdi), %edi
	movl	$43, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:
	movq	_column_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_PRESENT
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	movq	_cursor_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_PRESENT
	xorl	%ebx, %ebx
	testq	%rax, %rax
	movl	$10, %r15d
	cmovnel	%r15d, %r14d
	cmovnel	%r15d, %ebx
	movq	_cursor_home@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_PRESENT
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	addl	%ecx, %r14d
	orl	%ecx, %ebx
	movq	_cursor_mem_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	cmovnel	%r15d, %r14d
	cmovnel	%r15d, %ebx
	movq	_cursor_to_ll@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_PRESENT
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	addl	%ecx, %r14d
	addl	%ecx, %ebx
	movq	_row_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_PRESENT
	cmpq	$1, %rax
	sbbl	$-1, %ebx
	movq	_cursor_down@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_PRESENT
	cmpq	$1, %rax
	sbbl	$-1, %r14d
	movq	_cursor_up@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_PRESENT
	cmpq	$1, %rax
	sbbl	$-1, %r14d
	movq	_cursor_left@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_PRESENT
	cmpq	$1, %rax
	sbbl	$-1, %ebx
	movq	_cursor_right@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_PRESENT
	cmpq	$1, %rax
	sbbl	$-1, %ebx
	cmpl	$1, %ebx
	jg	LBB0_8
## %bb.6:
	cmpl	$1, %r14d
	ja	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
LBB0_8:
	cmpl	$1, %ebx
	jg	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	__nc_warning
LBB0_10:
	cmpl	$1, %r14d
	ja	LBB0_13
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
LBB0_12:
	callq	__nc_warning
LBB0_13:
	movq	_parm_insert_line@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_insert_line@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ANDMISSING
	movq	_parm_delete_line@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_delete_line@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ANDMISSING
	movq	(%r14), %rdi
	movq	(%rbx), %rsi
	callq	_ANDMISSING
	movq	_parm_down_cursor@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_cursor_down@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ANDMISSING
	movq	_parm_up_cursor@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_cursor_up@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ANDMISSING
	movq	_parm_left_cursor@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_cursor_left@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ANDMISSING
	movq	_parm_right_cursor@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_cursor_right@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ANDMISSING
	movq	(%rbx), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	(%rbx), %rax
	movq	%rax, -80(%rbp)
	movl	$1, %r13d
	jmp	LBB0_16
LBB0_14:
	xorl	%r13d, %r13d
LBB0_16:
	movq	(%r14), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	(%r14), %rax
	movl	%r13d, %ecx
	incl	%r13d
	movq	%rax, -80(%rbp,%rcx,8)
LBB0_18:
	movq	(%r15), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	(%r15), %rax
	movl	%r13d, %ecx
	incl	%r13d
	movq	%rax, -80(%rbp,%rcx,8)
LBB0_20:
	movq	(%r12), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	(%r12), %rax
	movl	%r13d, %ecx
	incl	%r13d
	movq	%rax, -80(%rbp,%rcx,8)
LBB0_22:
	testl	%r13d, %r13d
	je	LBB0_26
## %bb.23:
	cmpl	$4, %r13d
	jne	LBB0_25
## %bb.24:
	leaq	-80(%rbp), %rdi
	callq	_check_ansi_cursor
	jmp	LBB0_26
LBB0_25:
	movq	(%rbx), %rdi
	callq	_EXPECTED
	movq	(%r14), %rdi
	callq	_EXPECTED
	movq	(%r15), %rdi
	callq	_EXPECTED
	movq	(%r12), %rdi
	callq	_EXPECTED
LBB0_26:
	movq	_cursor_down@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_27
## %bb.28:
	movq	(%r14), %rax
	movq	%rax, -80(%rbp)
	movl	$1, %ebx
	jmp	LBB0_29
LBB0_27:
	xorl	%ebx, %ebx
LBB0_29:
	movq	_cursor_up@GOTPCREL(%rip), %r15
	movq	_cursor_left@GOTPCREL(%rip), %r12
	movq	_cursor_right@GOTPCREL(%rip), %r13
	movq	(%r15), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	(%r15), %rax
	movl	%ebx, %ecx
	incl	%ebx
	movq	%rax, -80(%rbp,%rcx,8)
LBB0_31:
	movq	(%r12), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	(%r12), %rax
	movl	%ebx, %ecx
	incl	%ebx
	movq	%rax, -80(%rbp,%rcx,8)
LBB0_33:
	movq	(%r13), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movq	(%r13), %rax
	movl	%ebx, %ecx
	incl	%ebx
	movq	%rax, -80(%rbp,%rcx,8)
LBB0_35:
	testl	%ebx, %ebx
	je	LBB0_49
## %bb.36:
	cmpl	$4, %ebx
	jne	LBB0_38
## %bb.37:
	leaq	-80(%rbp), %rdi
	callq	_check_ansi_cursor
	jmp	LBB0_49
LBB0_38:
	movq	(%r14), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_39
## %bb.40:
	movq	(%r14), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	jmp	LBB0_41
LBB0_39:
	xorl	%ebx, %ebx
LBB0_41:
	movq	(%r12), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	movq	(%r12), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	cmpq	$1, %rax
	sbbl	$-1, %ebx
LBB0_43:
	movq	(%r15), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:
	movq	(%r15), %rdi
	callq	_strlen
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	setge	%cl
	addl	%ecx, %ebx
LBB0_45:
	movq	(%r13), %rdi
	callq	_PRESENT
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	movq	(%r13), %rdi
	callq	_strlen
	cmpl	$1, %eax
	jg	LBB0_48
LBB0_47:
	testl	%ebx, %ebx
	je	LBB0_49
LBB0_48:
	movq	(%r14), %rdi
	callq	_EXPECTED
	movq	(%r15), %rdi
	callq	_EXPECTED
	movq	(%r12), %rdi
	callq	_EXPECTED
	movq	(%r13), %rdi
	callq	_EXPECTED
LBB0_49:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_51
## %bb.50:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_51:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hard_copy,8,3                  ## @hard_copy
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hard_copy"

	.comm	_generic_type,8,3               ## @generic_type
L_.str.1:                               ## @.str.1
	.asciz	"generic_type"

	.comm	_column_address,8,3             ## @column_address
	.comm	_cursor_address,8,3             ## @cursor_address
	.comm	_cursor_home,8,3                ## @cursor_home
	.comm	_cursor_mem_address,8,3         ## @cursor_mem_address
	.comm	_cursor_to_ll,8,3               ## @cursor_to_ll
	.comm	_row_address,8,3                ## @row_address
	.comm	_cursor_down,8,3                ## @cursor_down
	.comm	_cursor_up,8,3                  ## @cursor_up
	.comm	_cursor_left,8,3                ## @cursor_left
	.comm	_cursor_right,8,3               ## @cursor_right
L_.str.2:                               ## @.str.2
	.asciz	"terminal lacks cursor addressing"

L_.str.3:                               ## @.str.3
	.asciz	"terminal lacks cursor column-addressing"

L_.str.4:                               ## @.str.4
	.asciz	"terminal lacks cursor row-addressing"

	.comm	_parm_insert_line,8,3           ## @parm_insert_line
	.comm	_insert_line,8,3                ## @insert_line
	.comm	_parm_delete_line,8,3           ## @parm_delete_line
	.comm	_delete_line,8,3                ## @delete_line
	.comm	_parm_down_cursor,8,3           ## @parm_down_cursor
	.comm	_parm_up_cursor,8,3             ## @parm_up_cursor
	.comm	_parm_left_cursor,8,3           ## @parm_left_cursor
	.comm	_parm_right_cursor,8,3          ## @parm_right_cursor
L_.str.5:                               ## @.str.5
	.asciz	"\n"

L_.str.6:                               ## @.str.6
	.asciz	"\b"

	.no_dead_strip	_check_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_cursor
_check_cursor:                          ; @check_cursor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _hard_copy@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hard_copy@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x22, _cursor_down@GOTPAGE
Lloh7:
	ldr	x22, [x22, _cursor_down@GOTPAGEOFF]
Lloh8:
	adrp	x21, _cursor_up@GOTPAGE
Lloh9:
	ldr	x21, [x21, _cursor_up@GOTPAGEOFF]
Lloh10:
	adrp	x20, _cursor_left@GOTPAGE
Lloh11:
	ldr	x20, [x20, _cursor_left@GOTPAGEOFF]
Lloh12:
	adrp	x19, _cursor_right@GOTPAGE
Lloh13:
	ldr	x19, [x19, _cursor_right@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_check_noaddress
	b	LBB0_12
LBB0_2:
Lloh16:
	adrp	x8, _generic_type@GOTPAGE
Lloh17:
	ldr	x8, [x8, _generic_type@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_check_noaddress
	b	LBB0_12
LBB0_4:
	ldr	w0, [x0]
	mov	w1, #43
	bl	_strchr
	cbnz	x0, LBB0_12
; %bb.5:
Lloh21:
	adrp	x8, _column_address@GOTPAGE
Lloh22:
	ldr	x8, [x8, _column_address@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	bl	_PRESENT
	cmp	x0, #0
	cset	w23, ne
Lloh24:
	adrp	x8, _cursor_address@GOTPAGE
Lloh25:
	ldr	x8, [x8, _cursor_address@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
	bl	_PRESENT
	cmp	x0, #0
	mov	w24, #10
	csel	w23, w23, w24, eq
	csel	w25, wzr, w24, eq
Lloh27:
	adrp	x8, _cursor_home@GOTPAGE
Lloh28:
	ldr	x8, [x8, _cursor_home@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
	bl	_PRESENT
	cmp	x0, #0
	cset	w8, ne
	cinc	w23, w23, ne
	orr	w25, w25, w8
Lloh30:
	adrp	x8, _cursor_mem_address@GOTPAGE
Lloh31:
	ldr	x8, [x8, _cursor_mem_address@GOTPAGEOFF]
Lloh32:
	ldr	x0, [x8]
	bl	_PRESENT
	cmp	x0, #0
	csel	w23, w23, w24, eq
	csel	w24, w25, w24, eq
Lloh33:
	adrp	x8, _cursor_to_ll@GOTPAGE
Lloh34:
	ldr	x8, [x8, _cursor_to_ll@GOTPAGEOFF]
Lloh35:
	ldr	x0, [x8]
	bl	_PRESENT
	cmp	x0, #0
	cinc	w23, w23, ne
	cinc	w24, w24, ne
Lloh36:
	adrp	x8, _row_address@GOTPAGE
Lloh37:
	ldr	x8, [x8, _row_address@GOTPAGEOFF]
Lloh38:
	ldr	x0, [x8]
	bl	_PRESENT
	cmp	x0, #0
	cinc	w24, w24, ne
	ldr	x0, [x22]
	bl	_PRESENT
	cmp	x0, #0
	cinc	w23, w23, ne
	ldr	x0, [x21]
	bl	_PRESENT
	cmp	x0, #0
	cinc	w23, w23, ne
	ldr	x0, [x20]
	bl	_PRESENT
	cmp	x0, #0
	cinc	w24, w24, ne
	ldr	x0, [x19]
	bl	_PRESENT
	cmp	x0, #0
	cinc	w8, w24, ne
	cmp	w8, #1
	ccmp	w23, #1, #2, le
	b.ls	LBB0_10
; %bb.6:
	cmp	w8, #1
	b.gt	LBB0_8
; %bb.7:
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__nc_warning
LBB0_8:
	cmp	w23, #1
	b.hi	LBB0_12
; %bb.9:
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	__nc_warning
LBB0_12:
Lloh45:
	adrp	x23, _parm_insert_line@GOTPAGE
Lloh46:
	ldr	x23, [x23, _parm_insert_line@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh47:
	adrp	x8, _insert_line@GOTPAGE
Lloh48:
	ldr	x8, [x8, _insert_line@GOTPAGEOFF]
Lloh49:
	ldr	x1, [x8]
	bl	_ANDMISSING
Lloh50:
	adrp	x24, _parm_delete_line@GOTPAGE
Lloh51:
	ldr	x24, [x24, _parm_delete_line@GOTPAGEOFF]
	ldr	x0, [x24]
Lloh52:
	adrp	x8, _delete_line@GOTPAGE
Lloh53:
	ldr	x8, [x8, _delete_line@GOTPAGEOFF]
Lloh54:
	ldr	x1, [x8]
	bl	_ANDMISSING
	ldr	x0, [x23]
	ldr	x1, [x24]
	bl	_ANDMISSING
Lloh55:
	adrp	x23, _parm_down_cursor@GOTPAGE
Lloh56:
	ldr	x23, [x23, _parm_down_cursor@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x1, [x22]
	bl	_ANDMISSING
Lloh57:
	adrp	x24, _parm_up_cursor@GOTPAGE
Lloh58:
	ldr	x24, [x24, _parm_up_cursor@GOTPAGEOFF]
	ldr	x0, [x24]
	ldr	x1, [x21]
	bl	_ANDMISSING
Lloh59:
	adrp	x25, _parm_left_cursor@GOTPAGE
Lloh60:
	ldr	x25, [x25, _parm_left_cursor@GOTPAGEOFF]
	ldr	x0, [x25]
	ldr	x1, [x20]
	bl	_ANDMISSING
Lloh61:
	adrp	x26, _parm_right_cursor@GOTPAGE
Lloh62:
	ldr	x26, [x26, _parm_right_cursor@GOTPAGEOFF]
	ldr	x0, [x26]
	ldr	x1, [x19]
	bl	_ANDMISSING
	ldr	x0, [x23]
	bl	_PRESENT
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x23]
	str	x8, [sp, #8]
	mov	w27, #1
	b	LBB0_15
LBB0_14:
	mov	w27, #0
LBB0_15:
	ldr	x0, [x24]
	bl	_PRESENT
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x8, [x24]
	add	x9, sp, #8
	str	x8, [x9, w27, uxtw #3]
	add	w27, w27, #1
LBB0_17:
	ldr	x0, [x25]
	bl	_PRESENT
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x8, [x25]
	add	x9, sp, #8
	str	x8, [x9, w27, uxtw #3]
	add	w27, w27, #1
LBB0_19:
	ldr	x0, [x26]
	bl	_PRESENT
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x8, [x26]
	add	x9, sp, #8
	str	x8, [x9, w27, uxtw #3]
	add	w27, w27, #1
LBB0_21:
	cbz	w27, LBB0_25
; %bb.22:
	cmp	w27, #4
	b.ne	LBB0_24
; %bb.23:
	add	x0, sp, #8
	bl	_check_ansi_cursor
	b	LBB0_25
LBB0_24:
	ldr	x0, [x23]
	bl	_EXPECTED
	ldr	x0, [x24]
	bl	_EXPECTED
	ldr	x0, [x25]
	bl	_EXPECTED
	ldr	x0, [x26]
	bl	_EXPECTED
LBB0_25:
	ldr	x0, [x22]
	bl	_PRESENT
	cbz	x0, LBB0_27
; %bb.26:
	ldr	x8, [x22]
	str	x8, [sp, #8]
	mov	w23, #1
	b	LBB0_28
LBB0_27:
	mov	w23, #0
LBB0_28:
	ldr	x0, [x21]
	bl	_PRESENT
	cbz	x0, LBB0_30
; %bb.29:
	ldr	x8, [x21]
	add	x9, sp, #8
	str	x8, [x9, w23, uxtw #3]
	add	w23, w23, #1
LBB0_30:
	ldr	x0, [x20]
	bl	_PRESENT
	cbz	x0, LBB0_32
; %bb.31:
	ldr	x8, [x20]
	add	x9, sp, #8
	str	x8, [x9, w23, uxtw #3]
	add	w23, w23, #1
LBB0_32:
	ldr	x0, [x19]
	bl	_PRESENT
	cbz	x0, LBB0_34
; %bb.33:
	ldr	x8, [x19]
	add	x9, sp, #8
	str	x8, [x9, w23, uxtw #3]
	add	w23, w23, #1
LBB0_34:
	cbz	w23, LBB0_48
; %bb.35:
	cmp	w23, #4
	b.ne	LBB0_37
; %bb.36:
	add	x0, sp, #8
	bl	_check_ansi_cursor
	b	LBB0_48
LBB0_37:
	ldr	x0, [x22]
	bl	_PRESENT
	cbz	x0, LBB0_39
; %bb.38:
	ldr	x0, [x22]
Lloh63:
	adrp	x1, l_.str.5@PAGE
Lloh64:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cset	w23, ne
	b	LBB0_40
LBB0_39:
	mov	w23, #0
LBB0_40:
	ldr	x0, [x20]
	bl	_PRESENT
	cbz	x0, LBB0_42
; %bb.41:
	ldr	x0, [x20]
Lloh65:
	adrp	x1, l_.str.6@PAGE
Lloh66:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cinc	w23, w23, ne
LBB0_42:
	ldr	x0, [x21]
	bl	_PRESENT
	cbz	x0, LBB0_44
; %bb.43:
	ldr	x0, [x21]
	bl	_strlen
	cmp	w0, #1
	cinc	w23, w23, gt
LBB0_44:
	ldr	x0, [x19]
	bl	_PRESENT
	cbz	x0, LBB0_46
; %bb.45:
	ldr	x0, [x19]
	bl	_strlen
	cmp	w0, #1
	b.gt	LBB0_47
LBB0_46:
	cbz	w23, LBB0_48
LBB0_47:
	ldr	x0, [x22]
	bl	_EXPECTED
	ldr	x0, [x21]
	bl	_EXPECTED
	ldr	x0, [x20]
	bl	_EXPECTED
	ldr	x0, [x19]
	bl	_EXPECTED
LBB0_48:
	ldr	x8, [sp, #40]
Lloh67:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh68:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_50
; %bb.49:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_50:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_hard_copy,8,3                  ; @hard_copy
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hard_copy"

	.comm	_generic_type,8,3               ; @generic_type
l_.str.1:                               ; @.str.1
	.asciz	"generic_type"

	.comm	_column_address,8,3             ; @column_address
	.comm	_cursor_address,8,3             ; @cursor_address
	.comm	_cursor_home,8,3                ; @cursor_home
	.comm	_cursor_mem_address,8,3         ; @cursor_mem_address
	.comm	_cursor_to_ll,8,3               ; @cursor_to_ll
	.comm	_row_address,8,3                ; @row_address
	.comm	_cursor_down,8,3                ; @cursor_down
	.comm	_cursor_up,8,3                  ; @cursor_up
	.comm	_cursor_left,8,3                ; @cursor_left
	.comm	_cursor_right,8,3               ; @cursor_right
l_.str.2:                               ; @.str.2
	.asciz	"terminal lacks cursor addressing"

l_.str.3:                               ; @.str.3
	.asciz	"terminal lacks cursor column-addressing"

l_.str.4:                               ; @.str.4
	.asciz	"terminal lacks cursor row-addressing"

	.comm	_parm_insert_line,8,3           ; @parm_insert_line
	.comm	_insert_line,8,3                ; @insert_line
	.comm	_parm_delete_line,8,3           ; @parm_delete_line
	.comm	_delete_line,8,3                ; @delete_line
	.comm	_parm_down_cursor,8,3           ; @parm_down_cursor
	.comm	_parm_up_cursor,8,3             ; @parm_up_cursor
	.comm	_parm_left_cursor,8,3           ; @parm_left_cursor
	.comm	_parm_right_cursor,8,3          ; @parm_right_cursor
l_.str.5:                               ; @.str.5
	.asciz	"\n"

l_.str.6:                               ; @.str.6
	.asciz	"\b"

	.no_dead_strip	_check_cursor
.subsections_via_symbols
