	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_terminal                  ## -- Begin function init_terminal
	.p2align	4, 0x90
_init_terminal:                         ## @init_terminal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ttyobuf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ttyoring@GOTPCREL(%rip), %rdi
	movl	$4, %edx
	callq	_ring_init
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.1:
	movq	_ttyibuf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ttyiring@GOTPCREL(%rip), %rdi
	movl	$4, %edx
	callq	_ring_init
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_TerminalAutoFlush
	movq	_autoflush@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_ttyoring,4,2                   ## @ttyoring
	.comm	_ttyobuf,4,2                    ## @ttyobuf
	.comm	_ttyiring,4,2                   ## @ttyiring
	.comm	_ttyibuf,4,2                    ## @ttyibuf
	.comm	_autoflush,4,2                  ## @autoflush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_terminal                  ; -- Begin function init_terminal
	.p2align	2
_init_terminal:                         ; @init_terminal
	.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, _ttyobuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ttyobuf@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _ttyoring@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ttyoring@GOTPAGEOFF]
	mov	w2, #4
	bl	_ring_init
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _ttyibuf@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ttyibuf@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x0, _ttyiring@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ttyiring@GOTPAGEOFF]
	mov	w2, #4
	bl	_ring_init
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	bl	_TerminalAutoFlush
Lloh10:
	adrp	x8, _autoflush@GOTPAGE
Lloh11:
	ldr	x8, [x8, _autoflush@GOTPAGEOFF]
Lloh12:
	str	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ttyoring,4,2                   ; @ttyoring
	.comm	_ttyobuf,4,2                    ; @ttyobuf
	.comm	_ttyiring,4,2                   ; @ttyiring
	.comm	_ttyibuf,4,2                    ; @ttyibuf
	.comm	_autoflush,4,2                  ; @autoflush
.subsections_via_symbols
