	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_end_screen                     ## -- Begin function end_screen
	.p2align	4, 0x90
_end_screen:                            ## @end_screen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_smart_terminal@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_lower_left@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_putcap
	movq	_clear_line@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_putcap
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_terminal_end@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_putcap
LBB0_2:
	movq	_is_a_terminal@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_old_settings@GOTPCREL(%rip), %rdx
	popq	%rbp
	jmp	_tcsetattr                      ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smart_terminal,8,3             ## @smart_terminal
	.comm	_lower_left,4,2                 ## @lower_left
	.comm	_clear_line,4,2                 ## @clear_line
	.comm	_stdout,4,2                     ## @stdout
	.comm	_terminal_end,4,2               ## @terminal_end
	.comm	_is_a_terminal,8,3              ## @is_a_terminal
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_old_settings,4,2               ## @old_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_end_screen                     ; -- Begin function end_screen
	.p2align	2
_end_screen:                            ; @end_screen
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _smart_terminal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _smart_terminal@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _lower_left@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lower_left@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_putcap
Lloh6:
	adrp	x8, _clear_line@GOTPAGE
Lloh7:
	ldr	x8, [x8, _clear_line@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_putcap
Lloh9:
	adrp	x8, _stdout@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_fflush
Lloh12:
	adrp	x8, _terminal_end@GOTPAGE
Lloh13:
	ldr	x8, [x8, _terminal_end@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_putcap
LBB0_2:
Lloh15:
	adrp	x8, _is_a_terminal@GOTPAGE
Lloh16:
	ldr	x8, [x8, _is_a_terminal@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, _old_settings@GOTPAGE
Lloh25:
	ldr	x2, [x2, _old_settings@GOTPAGEOFF]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_tcsetattr
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_smart_terminal,8,3             ; @smart_terminal
	.comm	_lower_left,4,2                 ; @lower_left
	.comm	_clear_line,4,2                 ; @clear_line
	.comm	_stdout,4,2                     ; @stdout
	.comm	_terminal_end,4,2               ; @terminal_end
	.comm	_is_a_terminal,8,3              ; @is_a_terminal
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_old_settings,4,2               ; @old_settings
.subsections_via_symbols
