	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cl_vi_end
_cl_vi_end:                             ## @cl_vi_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_GCLP
	movq	%rax, %rbx
	movq	_stdscr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_keypad
	movq	_CL_IN_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_move
	xorl	%eax, %eax
	callq	_deleteln
	movq	_LINES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	decq	%rdi
	xorl	%esi, %esi
	callq	_move
	xorl	%eax, %eax
	callq	_refresh
LBB0_2:
	movq	%rbx, %rdi
	callq	_cl_freecap
	xorl	%eax, %eax
	callq	_endwin
	xorl	%edi, %edi
	callq	_set_term
	movl	%eax, %edi
	callq	_delscreen
	movq	_TE_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdscr,4,2                     ## @stdscr
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CL_IN_EX,4,2                   ## @CL_IN_EX
	.comm	_LINES,8,3                      ## @LINES
	.comm	_TE_SENT,4,2                    ## @TE_SENT
	.no_dead_strip	_cl_vi_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cl_vi_end
_cl_vi_end:                             ; @cl_vi_end
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_GCLP
	mov	x19, x0
Lloh0:
	adrp	x8, _stdscr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdscr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_keypad
Lloh6:
	adrp	x8, _CL_IN_EX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CL_IN_EX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, #0
	mov	w1, #0
	bl	_move
	bl	_deleteln
Lloh9:
	adrp	x8, _LINES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LINES@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sub	x0, x8, #1
	mov	w1, #0
	bl	_move
	bl	_refresh
LBB0_2:
	mov	x0, x19
	bl	_cl_freecap
	bl	_endwin
	mov	x0, #0
	bl	_set_term
	bl	_delscreen
Lloh12:
	adrp	x8, _TE_SENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TE_SENT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_stdscr,4,2                     ; @stdscr
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CL_IN_EX,4,2                   ; @CL_IN_EX
	.comm	_LINES,8,3                      ; @LINES
	.comm	_TE_SENT,4,2                    ; @TE_SENT
	.no_dead_strip	_cl_vi_end
.subsections_via_symbols
