	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_screen                    ## -- Begin function init_screen
	.p2align	4, 0x90
_init_screen:                           ## @init_screen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_old_settings@GOTPCREL(%rip), %rbx
	movq	%rbx, %rsi
	callq	_tcgetattr
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	movups	(%rbx), %xmm0
	movq	_new_settings@GOTPCREL(%rip), %rdx
	movups	%xmm0, (%rdx)
	movq	16(%rbx), %rax
	movq	%rax, 16(%rdx)
	movq	_ICANON@GOTPCREL(%rip), %rcx
	movq	_ECHO@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%esi, (%rdx)
	movq	_TAB3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 16(%rdx)
	movq	8(%rdx), %rax
	movq	_VMIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	_VTIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, (%rax,%rcx,4)
	movl	(%r14), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tcsetattr
	movq	8(%rbx), %rax
	movq	_VERASE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_ch_erase@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_VKILL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_ch_kill@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_is_a_terminal@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_terminal_init@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_putcap
LBB0_2:
	movq	_is_a_terminal@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_smart_terminal@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_old_settings,24,3              ## @old_settings
	.comm	_new_settings,24,3              ## @new_settings
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_TAB3,4,2                       ## @TAB3
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_VTIME,8,3                      ## @VTIME
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_VERASE,8,3                     ## @VERASE
	.comm	_ch_erase,4,2                   ## @ch_erase
	.comm	_VKILL,8,3                      ## @VKILL
	.comm	_ch_kill,4,2                    ## @ch_kill
	.comm	_is_a_terminal,4,2              ## @is_a_terminal
	.comm	_terminal_init,4,2              ## @terminal_init
	.comm	_smart_terminal,4,2             ## @smart_terminal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_screen                    ; -- Begin function init_screen
	.p2align	2
_init_screen:                           ; @init_screen
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _STDOUT_FILENO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STDOUT_FILENO@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x19, _old_settings@GOTPAGE
Lloh3:
	ldr	x19, [x19, _old_settings@GOTPAGEOFF]
	mov	x1, x19
	bl	_tcgetattr
Lloh4:
	adrp	x20, _is_a_terminal@GOTPAGE
Lloh5:
	ldr	x20, [x20, _is_a_terminal@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	q0, [x19]
Lloh6:
	adrp	x2, _new_settings@GOTPAGE
Lloh7:
	ldr	x2, [x2, _new_settings@GOTPAGEOFF]
	str	q0, [x2]
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _ICANON@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ICANON@GOTPAGEOFF]
	str	x8, [x2, #16]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _ECHO@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ECHO@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x2]
	bic	w9, w10, w9
	str	w9, [x2]
Lloh14:
	adrp	x9, _TAB3@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TAB3@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x2, #16]
	ldr	x8, [x2, #8]
Lloh17:
	adrp	x9, _VMIN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VMIN@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	mov	w22, #1
	str	w22, [x8, x9, lsl #2]
Lloh20:
	adrp	x9, _VTIME@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VTIME@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	str	wzr, [x8, x9, lsl #2]
	ldr	w0, [x21]
Lloh23:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_tcsetattr
	ldr	x8, [x19, #8]
Lloh26:
	adrp	x9, _VERASE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _VERASE@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh29:
	adrp	x10, _ch_erase@GOTPAGE
Lloh30:
	ldr	x10, [x10, _ch_erase@GOTPAGEOFF]
Lloh31:
	adrp	x11, _VKILL@GOTPAGE
Lloh32:
	ldr	x11, [x11, _VKILL@GOTPAGEOFF]
Lloh33:
	str	w9, [x10]
Lloh34:
	ldr	x9, [x11]
	ldr	w8, [x8, x9, lsl #2]
Lloh35:
	adrp	x9, _ch_kill@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ch_kill@GOTPAGEOFF]
Lloh37:
	str	w8, [x9]
	str	w22, [x20]
Lloh38:
	adrp	x8, _terminal_init@GOTPAGE
Lloh39:
	ldr	x8, [x8, _terminal_init@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_putcap
LBB0_2:
	ldr	w8, [x20]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh41:
	adrp	x8, _smart_terminal@GOTPAGE
Lloh42:
	ldr	x8, [x8, _smart_terminal@GOTPAGEOFF]
Lloh43:
	str	wzr, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_old_settings,24,3              ; @old_settings
	.comm	_new_settings,24,3              ; @new_settings
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_TAB3,4,2                       ; @TAB3
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_VTIME,8,3                      ; @VTIME
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_VERASE,8,3                     ; @VERASE
	.comm	_ch_erase,4,2                   ; @ch_erase
	.comm	_VKILL,8,3                      ; @VKILL
	.comm	_ch_kill,4,2                    ; @ch_kill
	.comm	_is_a_terminal,4,2              ; @is_a_terminal
	.comm	_terminal_init,4,2              ; @terminal_init
	.comm	_smart_terminal,4,2             ; @smart_terminal
.subsections_via_symbols
