	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enter_raw_mode                 ## -- Begin function enter_raw_mode
	.p2align	4, 0x90
_enter_raw_mode:                        ## @enter_raw_mode
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_stdin@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_fileno
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_tcgetattr
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movq	_IGNPAR@GOTPCREL(%rip), %rax
	movl	-40(%rbp), %ecx
	orl	(%rax), %ecx
	movq	_ISTRIP@GOTPCREL(%rip), %rdx
	movq	_INLCR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	movq	_IGNCR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_ICRNL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_IXON@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_IXANY@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_IXOFF@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	notl	%eax
	andl	%ecx, %eax
	movq	_ISIG@GOTPCREL(%rip), %rcx
	movq	_ICANON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_ECHO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ECHOE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	-24(%rbp), %rcx
	movups	-40(%rbp), %xmm0
	movl	%eax, -40(%rbp)
	movq	_ECHOK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ECHONL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	__saved_tio@GOTPCREL(%rip), %rax
	notl	%edx
	andl	%edx, -36(%rbp)
	movq	%rcx, 16(%rax)
	movups	%xmm0, (%rax)
	movq	_OPOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -24(%rbp)
	movq	-32(%rbp), %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
	callq	_fileno
	movq	_TCSADRAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-40(%rbp), %rdx
	movl	%eax, %edi
	callq	_tcsetattr
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.6:
	movq	__in_raw_mode@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_7
LBB0_1:
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_7
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_5
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_stdin,4,2                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcgetattr"

	.comm	__saved_tio,24,3                ## @_saved_tio
	.comm	_IGNPAR,4,2                     ## @IGNPAR
	.comm	_ISTRIP,4,2                     ## @ISTRIP
	.comm	_INLCR,4,2                      ## @INLCR
	.comm	_IGNCR,4,2                      ## @IGNCR
	.comm	_ICRNL,4,2                      ## @ICRNL
	.comm	_IXON,4,2                       ## @IXON
	.comm	_IXANY,4,2                      ## @IXANY
	.comm	_IXOFF,4,2                      ## @IXOFF
	.comm	_ISIG,4,2                       ## @ISIG
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_ECHOE,4,2                      ## @ECHOE
	.comm	_ECHOK,4,2                      ## @ECHOK
	.comm	_ECHONL,4,2                     ## @ECHONL
	.comm	_OPOST,4,2                      ## @OPOST
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_VTIME,8,3                      ## @VTIME
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
L_.str.1:                               ## @.str.1
	.asciz	"tcsetattr"

	.comm	__in_raw_mode,4,2               ## @_in_raw_mode
	.comm	_IEXTEN,4,2                     ## @IEXTEN
	.comm	_IUCLC,4,2                      ## @IUCLC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enter_raw_mode                 ; -- Begin function enter_raw_mode
	.p2align	2
_enter_raw_mode:                        ; @enter_raw_mode
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _stdin@GOTPAGE
Lloh1:
	ldr	x20, [x20, _stdin@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_fileno
	add	x1, sp, #8
	bl	_tcgetattr
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, __saved_tio@GOTPAGE
Lloh3:
	ldr	x8, [x8, __saved_tio@GOTPAGEOFF]
	ldur	q0, [sp, #8]
	str	q0, [x8]
	ldp	x10, x9, [sp, #16]
	str	x9, [x8, #16]
Lloh4:
	adrp	x8, _IGNPAR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IGNPAR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldp	w9, w11, [sp, #8]
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _ISTRIP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ISTRIP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x12, _INLCR@GOTPAGE
Lloh11:
	ldr	x12, [x12, _INLCR@GOTPAGEOFF]
Lloh12:
	ldr	w12, [x12]
	orr	w9, w12, w9
Lloh13:
	adrp	x12, _IGNCR@GOTPAGE
Lloh14:
	ldr	x12, [x12, _IGNCR@GOTPAGEOFF]
Lloh15:
	ldr	w12, [x12]
Lloh16:
	adrp	x13, _ICRNL@GOTPAGE
Lloh17:
	ldr	x13, [x13, _ICRNL@GOTPAGEOFF]
	orr	w9, w9, w12
Lloh18:
	ldr	w12, [x13]
	orr	w9, w9, w12
Lloh19:
	adrp	x12, _IXON@GOTPAGE
Lloh20:
	ldr	x12, [x12, _IXON@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
	orr	w9, w9, w12
Lloh22:
	adrp	x12, _IXANY@GOTPAGE
Lloh23:
	ldr	x12, [x12, _IXANY@GOTPAGEOFF]
Lloh24:
	ldr	w12, [x12]
Lloh25:
	adrp	x13, _IXOFF@GOTPAGE
Lloh26:
	ldr	x13, [x13, _IXOFF@GOTPAGEOFF]
	orr	w9, w9, w12
Lloh27:
	ldr	w12, [x13]
	orr	w9, w9, w12
	bic	w8, w8, w9
Lloh28:
	adrp	x9, _ISIG@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ISIG@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x12, _ICANON@GOTPAGE
Lloh32:
	ldr	x12, [x12, _ICANON@GOTPAGEOFF]
Lloh33:
	ldr	w12, [x12]
Lloh34:
	adrp	x13, _ECHO@GOTPAGE
Lloh35:
	ldr	x13, [x13, _ECHO@GOTPAGEOFF]
	orr	w9, w12, w9
Lloh36:
	ldr	w12, [x13]
	orr	w9, w9, w12
Lloh37:
	adrp	x12, _ECHOE@GOTPAGE
Lloh38:
	ldr	x12, [x12, _ECHOE@GOTPAGEOFF]
Lloh39:
	ldr	w12, [x12]
	orr	w9, w9, w12
Lloh40:
	adrp	x12, _ECHOK@GOTPAGE
Lloh41:
	ldr	x12, [x12, _ECHOK@GOTPAGEOFF]
Lloh42:
	ldr	w12, [x12]
Lloh43:
	adrp	x13, _ECHONL@GOTPAGE
Lloh44:
	ldr	x13, [x13, _ECHONL@GOTPAGEOFF]
	orr	w9, w9, w12
Lloh45:
	ldr	w12, [x13]
	orr	w9, w9, w12
	bic	w9, w11, w9
	stp	w8, w9, [sp, #8]
Lloh46:
	adrp	x8, _OPOST@GOTPAGE
Lloh47:
	ldr	x8, [x8, _OPOST@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	bic	w8, w9, w8
	str	w8, [sp, #24]
Lloh49:
	adrp	x8, _VMIN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _VMIN@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	mov	w21, #1
	str	w21, [x10, x8, lsl #2]
Lloh52:
	adrp	x8, _VTIME@GOTPAGE
Lloh53:
	ldr	x8, [x8, _VTIME@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	str	wzr, [x10, x8, lsl #2]
	ldr	w0, [x20]
	bl	_fileno
Lloh55:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh56:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_tcsetattr
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
Lloh58:
	adrp	x8, __in_raw_mode@GOTPAGE
Lloh59:
	ldr	x8, [x8, __in_raw_mode@GOTPAGEOFF]
Lloh60:
	str	w21, [x8]
	b	LBB0_6
LBB0_3:
	cbnz	w19, LBB0_6
; %bb.4:
Lloh61:
	adrp	x0, l_.str@PAGE
Lloh62:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_6
LBB0_5:
	cbz	w19, LBB0_7
LBB0_6:
	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
LBB0_7:
Lloh63:
	adrp	x0, l_.str.1@PAGE
Lloh64:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_stdin,4,2                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcgetattr"

	.comm	__saved_tio,24,3                ; @_saved_tio
	.comm	_IGNPAR,4,2                     ; @IGNPAR
	.comm	_ISTRIP,4,2                     ; @ISTRIP
	.comm	_INLCR,4,2                      ; @INLCR
	.comm	_IGNCR,4,2                      ; @IGNCR
	.comm	_ICRNL,4,2                      ; @ICRNL
	.comm	_IXON,4,2                       ; @IXON
	.comm	_IXANY,4,2                      ; @IXANY
	.comm	_IXOFF,4,2                      ; @IXOFF
	.comm	_ISIG,4,2                       ; @ISIG
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_ECHOE,4,2                      ; @ECHOE
	.comm	_ECHOK,4,2                      ; @ECHOK
	.comm	_ECHONL,4,2                     ; @ECHONL
	.comm	_OPOST,4,2                      ; @OPOST
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_VTIME,8,3                      ; @VTIME
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
l_.str.1:                               ; @.str.1
	.asciz	"tcsetattr"

	.comm	__in_raw_mode,4,2               ; @_in_raw_mode
	.comm	_IEXTEN,4,2                     ; @IEXTEN
	.comm	_IUCLC,4,2                      ; @IUCLC
.subsections_via_symbols
