	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enableRawMode                  ## -- Begin function enableRawMode
	.p2align	4, 0x90
_enableRawMode:                         ## @enableRawMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_E@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	jne	LBB0_6
## %bb.1:
	movl	%edi, %r14d
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isatty
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_editorAtExit@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	movq	_orig_termios@GOTPCREL(%rip), %r15
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_tcgetattr
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:
	movups	(%r15), %xmm0
	movq	_BRKINT@GOTPCREL(%rip), %rax
	movq	_ICRNL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movaps	%xmm0, -64(%rbp)
	movq	_INPCK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	16(%r15), %rax
	movq	_ISTRIP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	%rax, -48(%rbp)
	movq	_IXON@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, -64(%rbp)
	movq	_OPOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, -44(%rbp)
	movq	_CS8@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ECHO@GOTPCREL(%rip), %rcx
	movq	_ICANON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%eax, -48(%rbp)
	movq	_IEXTEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ISIG@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	%edx, -60(%rbp)
	movq	-56(%rbp), %rax
	movq	_VMIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	_VTIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	_TCSAFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movl	%r14d, %edi
	callq	_tcsetattr
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:
	movl	$1, (%r12)
	jmp	LBB0_6
LBB0_5:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E,4,2                          ## @E
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_editorAtExit,4,2               ## @editorAtExit
	.comm	_orig_termios,24,3              ## @orig_termios
	.comm	_BRKINT,4,2                     ## @BRKINT
	.comm	_ICRNL,4,2                      ## @ICRNL
	.comm	_INPCK,4,2                      ## @INPCK
	.comm	_ISTRIP,4,2                     ## @ISTRIP
	.comm	_IXON,4,2                       ## @IXON
	.comm	_OPOST,4,2                      ## @OPOST
	.comm	_CS8,4,2                        ## @CS8
	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_IEXTEN,4,2                     ## @IEXTEN
	.comm	_ISIG,4,2                       ## @ISIG
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_VTIME,8,3                      ## @VTIME
	.comm	_TCSAFLUSH,4,2                  ## @TCSAFLUSH
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enableRawMode                  ; -- Begin function enableRawMode
	.p2align	2
_enableRawMode:                         ; @enableRawMode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, _E@GOTPAGE
Lloh1:
	ldr	x21, [x21, _E@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x19, x0
Lloh2:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_isatty
	cbz	w0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _editorAtExit@GOTPAGE
Lloh6:
	ldr	x8, [x8, _editorAtExit@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_atexit
Lloh8:
	adrp	x20, _orig_termios@GOTPAGE
Lloh9:
	ldr	x20, [x20, _orig_termios@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_tcgetattr
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	ldr	q0, [x20]
	str	q0, [sp]
	ldr	x8, [x20, #16]
	str	x8, [sp, #16]
Lloh10:
	adrp	x9, _BRKINT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BRKINT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _ICRNL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ICRNL@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh16:
	adrp	x10, _INPCK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _INPCK@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _ISTRIP@GOTPAGE
Lloh20:
	ldr	x11, [x11, _ISTRIP@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh21:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh22:
	adrp	x10, _IXON@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IXON@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldp	w10, w11, [sp]
	bic	w9, w10, w9
Lloh25:
	adrp	x10, _OPOST@GOTPAGE
Lloh26:
	ldr	x10, [x10, _OPOST@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	ldr	w12, [sp, #20]
	bic	w10, w12, w10
Lloh28:
	adrp	x12, _CS8@GOTPAGE
Lloh29:
	ldr	x12, [x12, _CS8@GOTPAGEOFF]
Lloh30:
	ldr	w12, [x12]
	orr	w8, w8, w12
	stp	w8, w10, [sp, #16]
Lloh31:
	adrp	x8, _ECHO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ECHO@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x10, _ICANON@GOTPAGE
Lloh35:
	ldr	x10, [x10, _ICANON@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh37:
	adrp	x10, _IEXTEN@GOTPAGE
Lloh38:
	ldr	x10, [x10, _IEXTEN@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh40:
	adrp	x10, _ISIG@GOTPAGE
Lloh41:
	ldr	x10, [x10, _ISIG@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w8, w11, w8
	stp	w9, w8, [sp]
	ldr	x8, [sp, #8]
Lloh43:
	adrp	x9, _VMIN@GOTPAGE
Lloh44:
	ldr	x9, [x9, _VMIN@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	str	wzr, [x8, x9, lsl #2]
Lloh46:
	adrp	x9, _VTIME@GOTPAGE
Lloh47:
	ldr	x9, [x9, _VTIME@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	mov	w20, #1
	str	w20, [x8, x9, lsl #2]
Lloh49:
	adrp	x8, _TCSAFLUSH@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TCSAFLUSH@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_tcsetattr
	tbnz	x0, #63, LBB0_6
; %bb.5:
	mov	w0, #0
	str	w20, [x21]
	b	LBB0_7
LBB0_6:
Lloh52:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x9, _errno@GOTPAGE
Lloh56:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh57:
	str	w8, [x9]
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_E,4,2                          ; @E
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_editorAtExit,4,2               ; @editorAtExit
	.comm	_orig_termios,24,3              ; @orig_termios
	.comm	_BRKINT,4,2                     ; @BRKINT
	.comm	_ICRNL,4,2                      ; @ICRNL
	.comm	_INPCK,4,2                      ; @INPCK
	.comm	_ISTRIP,4,2                     ; @ISTRIP
	.comm	_IXON,4,2                       ; @IXON
	.comm	_OPOST,4,2                      ; @OPOST
	.comm	_CS8,4,2                        ; @CS8
	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_IEXTEN,4,2                     ; @IEXTEN
	.comm	_ISIG,4,2                       ; @ISIG
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_VTIME,8,3                      ; @VTIME
	.comm	_TCSAFLUSH,4,2                  ; @TCSAFLUSH
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
