	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reinit_screen                  ## -- Begin function reinit_screen
	.p2align	4, 0x90
_reinit_screen:                         ## @reinit_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	_is_a_terminal@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_new_settings@GOTPCREL(%rip), %rdx
	callq	_tcsetattr
LBB0_2:
	movq	_smart_terminal@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_terminal_init@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_putcap                         ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_is_a_terminal,8,3              ## @is_a_terminal
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_new_settings,4,2               ## @new_settings
	.comm	_smart_terminal,8,3             ## @smart_terminal
	.comm	_terminal_init,4,2              ## @terminal_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reinit_screen                  ; -- Begin function reinit_screen
	.p2align	2
_reinit_screen:                         ; @reinit_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, _is_a_terminal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _is_a_terminal@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, _new_settings@GOTPAGE
Lloh10:
	ldr	x2, [x2, _new_settings@GOTPAGEOFF]
	bl	_tcsetattr
LBB0_2:
Lloh11:
	adrp	x8, _smart_terminal@GOTPAGE
Lloh12:
	ldr	x8, [x8, _smart_terminal@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _terminal_init@GOTPAGE
Lloh15:
	ldr	x8, [x8, _terminal_init@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_putcap
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_is_a_terminal,8,3              ; @is_a_terminal
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_new_settings,4,2               ; @new_settings
	.comm	_smart_terminal,8,3             ; @smart_terminal
	.comm	_terminal_init,4,2              ; @terminal_init
.subsections_via_symbols
