	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ed_Init                        ## -- Begin function ed_Init
	.p2align	4, 0x90
_ed_Init:                               ## @ed_Init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$1, %edi
	callq	_ResetInLine
	movq	_GettingInput@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%edi, %edi
	callq	_ed_Setup
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.1:
	movq	_GotTermCaps@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_GetTermCaps
LBB0_3:
	movq	_T_Tabs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_ttylist@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ED_IO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rcx
	movq	_M_CONTROL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	(%rcx,%rsi,8), %edx
	je	LBB0_5
## %bb.4:
	movq	_XTABS@GOTPCREL(%rip), %rdi
	orl	(%rdi), %edx
	notl	%edx
	movq	_edtty@GOTPCREL(%rip), %rdi
	andl	20(%rdi), %edx
	orl	4(%rcx,%rsi,8), %edx
	jmp	LBB0_6
LBB0_7:
	popq	%rbp
	retq
LBB0_5:
	notl	%edx
	movq	_edtty@GOTPCREL(%rip), %rdi
	andl	20(%rdi), %edx
	movq	_XTABS@GOTPCREL(%rip), %rdi
	orl	4(%rcx,%rsi,8), %edx
	orl	(%rdi), %edx
LBB0_6:
	movq	_edtty@GOTPCREL(%rip), %rdi
	movl	%edx, 20(%rdi)
	movq	_M_LOCAL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,8), %esi
	notl	%esi
	andl	(%rdi), %esi
	orl	4(%rcx,%rdx,8), %esi
	movl	%esi, (%rdi)
	movq	_ttychars@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %esi
	popq	%rbp
	jmp	_tty_setchar                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GettingInput,8,3               ## @GettingInput
	.comm	_GotTermCaps,4,2                ## @GotTermCaps
	.comm	_T_Tabs,8,3                     ## @T_Tabs
	.comm	_ttylist,8,3                    ## @ttylist
	.comm	_ED_IO,8,3                      ## @ED_IO
	.comm	_M_CONTROL,8,3                  ## @M_CONTROL
	.comm	_XTABS,4,2                      ## @XTABS
	.comm	_edtty,28,2                     ## @edtty
	.comm	_M_LOCAL,8,3                    ## @M_LOCAL
	.comm	_ttychars,8,3                   ## @ttychars
	.comm	_KillPos,8,3                    ## @KillPos
	.comm	_KillRing,8,3                   ## @KillRing
	.comm	_KillRingLen,8,3                ## @KillRingLen
	.comm	_KillRingMax,4,2                ## @KillRingMax
	.comm	_M_INPUT,8,3                    ## @M_INPUT
	.comm	_M_LINED,8,3                    ## @M_LINED
	.comm	_M_OUTPUT,8,3                   ## @M_OUTPUT
	.comm	_NTTYDISC,4,2                   ## @NTTYDISC
	.comm	_YankPos,8,3                    ## @YankPos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ed_Init                        ; -- Begin function ed_Init
	.p2align	2
_ed_Init:                               ; @ed_Init
	.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
	mov	w0, #1
	bl	_ResetInLine
Lloh0:
	adrp	x8, _GettingInput@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GettingInput@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	mov	w0, #0
	bl	_ed_Setup
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _GotTermCaps@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GotTermCaps@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.2:
	bl	_GetTermCaps
LBB0_3:
Lloh6:
	adrp	x8, _T_Tabs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _T_Tabs@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x8]
Lloh9:
	adrp	x8, _ttylist@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ttylist@GOTPAGEOFF]
Lloh11:
	adrp	x9, _ED_IO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ED_IO@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x8]
Lloh14:
	ldr	x8, [x9]
	ldr	x9, [x10, x8, lsl #3]
Lloh15:
	adrp	x10, _M_CONTROL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _M_CONTROL@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	lsl	x11, x10, #3
	ldr	w11, [x9, x11]
Lloh18:
	adrp	x0, _edtty@GOTPAGE
Lloh19:
	ldr	x0, [x0, _edtty@GOTPAGEOFF]
	cbz	x12, LBB0_6
; %bb.4:
Lloh20:
	adrp	x12, _XTABS@GOTPAGE
Lloh21:
	ldr	x12, [x12, _XTABS@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
	orr	w11, w12, w11
	ldr	w12, [x0, #20]
	bic	w11, w12, w11
	add	x10, x9, x10, lsl #3
	ldr	w10, [x10, #4]
	orr	w10, w10, w11
	b	LBB0_7
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w12, [x0, #20]
	bic	w11, w12, w11
	add	x10, x9, x10, lsl #3
	ldr	w10, [x10, #4]
Lloh23:
	adrp	x12, _XTABS@GOTPAGE
Lloh24:
	ldr	x12, [x12, _XTABS@GOTPAGEOFF]
Lloh25:
	ldr	w12, [x12]
	orr	w10, w10, w11
	orr	w10, w10, w12
LBB0_7:
	str	w10, [x0, #20]
Lloh26:
	adrp	x10, _M_LOCAL@GOTPAGE
Lloh27:
	ldr	x10, [x10, _M_LOCAL@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #3
	ldr	w10, [x0]
	ldp	w11, w9, [x9]
	bic	w10, w10, w11
	orr	w9, w9, w10
Lloh29:
	adrp	x10, _ttychars@GOTPAGE
Lloh30:
	ldr	x10, [x10, _ttychars@GOTPAGEOFF]
	str	w9, [x0]
Lloh31:
	ldr	x9, [x10]
	ldr	w1, [x9, x8, lsl #2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_tty_setchar
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GettingInput,8,3               ; @GettingInput
	.comm	_GotTermCaps,4,2                ; @GotTermCaps
	.comm	_T_Tabs,8,3                     ; @T_Tabs
	.comm	_ttylist,8,3                    ; @ttylist
	.comm	_ED_IO,8,3                      ; @ED_IO
	.comm	_M_CONTROL,8,3                  ; @M_CONTROL
	.comm	_XTABS,4,2                      ; @XTABS
	.comm	_edtty,28,2                     ; @edtty
	.comm	_M_LOCAL,8,3                    ; @M_LOCAL
	.comm	_ttychars,8,3                   ; @ttychars
	.comm	_KillPos,8,3                    ; @KillPos
	.comm	_KillRing,8,3                   ; @KillRing
	.comm	_KillRingLen,8,3                ; @KillRingLen
	.comm	_KillRingMax,4,2                ; @KillRingMax
	.comm	_M_INPUT,8,3                    ; @M_INPUT
	.comm	_M_LINED,8,3                    ; @M_LINED
	.comm	_M_OUTPUT,8,3                   ; @M_OUTPUT
	.comm	_NTTYDISC,4,2                   ; @NTTYDISC
	.comm	_YankPos,8,3                    ; @YankPos
.subsections_via_symbols
