	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_keyboard_open              ## -- Begin function isc_keyboard_open
	.p2align	4, 0x90
_isc_keyboard_open:                     ## @isc_keyboard_open
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_REQUIRE
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%edx, %edx
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	%eax, (%r14)
	leaq	8(%r14), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_tcgetattr
	testq	%rax, %rax
	js	LBB0_5
## %bb.3:
	movq	_IGNBRK@GOTPCREL(%rip), %rax
	movq	_BRKINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PARMRK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ISTRIP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_INLCR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movq	_IGNCR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movaps	%xmm0, -64(%rbp)
	movq	_ICRNL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movaps	%xmm1, -48(%rbp)
	movq	_IXON@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, -64(%rbp)
	movq	_OPOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -40(%rbp)
	movq	_ECHO@GOTPCREL(%rip), %rax
	movq	_ECHONL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ICANON@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ISIG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IEXTEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, -60(%rbp)
	movq	_CSIZE@GOTPCREL(%rip), %rax
	movq	_PARENB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	-56(%rbp), %ecx
	movq	_CS8@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movq	-48(%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)
	movq	_TCSAFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movl	%r15d, %edi
	callq	_tcsetattr
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, 4(%r14)
	jmp	LBB0_6
LBB0_1:
	movq	_ISC_R_IOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_ISC_R_IOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_close
LBB0_6:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/tty"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_ISC_R_IOERROR,4,2              ## @ISC_R_IOERROR
	.comm	_IGNBRK,4,2                     ## @IGNBRK
	.comm	_BRKINT,4,2                     ## @BRKINT
	.comm	_PARMRK,4,2                     ## @PARMRK
	.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	_OPOST,4,2                      ## @OPOST
	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_ECHONL,4,2                     ## @ECHONL
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_ISIG,4,2                       ## @ISIG
	.comm	_IEXTEN,4,2                     ## @IEXTEN
	.comm	_CSIZE,4,2                      ## @CSIZE
	.comm	_PARENB,4,2                     ## @PARENB
	.comm	_CS8,4,2                        ## @CS8
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_VTIME,8,3                      ## @VTIME
	.comm	_TCSAFLUSH,4,2                  ## @TCSAFLUSH
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_keyboard_open              ; -- Begin function isc_keyboard_open
	.p2align	2
_isc_keyboard_open:                     ; @isc_keyboard_open
	.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
	cmp	x0, #0
	cset	w0, ne
	bl	_REQUIRE
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_open
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x21, x19
	str	w0, [x21], #8
	mov	x1, x21
	bl	_tcgetattr
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldp	q0, q1, [x21]
Lloh5:
	adrp	x8, _IGNBRK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IGNBRK@GOTPAGEOFF]
	stp	q0, q1, [sp]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _BRKINT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BRKINT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _PARMRK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PARMRK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _ISTRIP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ISTRIP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _INLCR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INLCR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _IGNCR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IGNCR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _ICRNL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ICRNL@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _IXON@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IXON@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldp	w9, w10, [sp]
	bic	w8, w9, w8
Lloh29:
	adrp	x9, _OPOST@GOTPAGE
Lloh30:
	ldr	x9, [x9, _OPOST@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	ldr	w11, [sp, #24]
	bic	w9, w11, w9
Lloh32:
	adrp	x11, _ECHO@GOTPAGE
Lloh33:
	ldr	x11, [x11, _ECHO@GOTPAGEOFF]
Lloh34:
	adrp	x12, _ECHONL@GOTPAGE
Lloh35:
	ldr	x12, [x12, _ECHONL@GOTPAGEOFF]
Lloh36:
	ldr	w11, [x11]
Lloh37:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh38:
	adrp	x12, _ICANON@GOTPAGE
Lloh39:
	ldr	x12, [x12, _ICANON@GOTPAGEOFF]
Lloh40:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh41:
	adrp	x12, _ISIG@GOTPAGE
Lloh42:
	ldr	x12, [x12, _ISIG@GOTPAGEOFF]
Lloh43:
	ldr	w12, [x12]
Lloh44:
	adrp	x13, _IEXTEN@GOTPAGE
Lloh45:
	ldr	x13, [x13, _IEXTEN@GOTPAGEOFF]
	orr	w11, w11, w12
Lloh46:
	ldr	w12, [x13]
	orr	w11, w11, w12
	bic	w10, w10, w11
	stp	w8, w10, [sp]
Lloh47:
	adrp	x8, _CSIZE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CSIZE@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x10, _PARENB@GOTPAGE
Lloh51:
	ldr	x10, [x10, _PARENB@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	orr	w8, w10, w8
	ldr	w10, [sp, #8]
	bic	w8, w10, w8
Lloh53:
	adrp	x10, _CS8@GOTPAGE
Lloh54:
	ldr	x10, [x10, _CS8@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w9, [sp, #24]
	str	w8, [sp, #8]
	ldr	x8, [sp, #16]
Lloh56:
	adrp	x9, _VMIN@GOTPAGE
Lloh57:
	ldr	x9, [x9, _VMIN@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
Lloh59:
	adrp	x9, _VTIME@GOTPAGE
Lloh60:
	ldr	x9, [x9, _VTIME@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	str	wzr, [x8, x9, lsl #2]
Lloh62:
	adrp	x8, _TCSAFLUSH@GOTPAGE
Lloh63:
	ldr	x8, [x8, _TCSAFLUSH@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_tcsetattr
	tbnz	x0, #63, LBB0_5
; %bb.3:
Lloh65:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
Lloh67:
	ldr	w21, [x8]
	str	w21, [x19, #4]
	b	LBB0_6
LBB0_4:
Lloh68:
	adrp	x8, _ISC_R_IOERROR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ISC_R_IOERROR@GOTPAGEOFF]
Lloh70:
	ldr	w21, [x8]
	b	LBB0_6
LBB0_5:
Lloh71:
	adrp	x8, _ISC_R_IOERROR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _ISC_R_IOERROR@GOTPAGEOFF]
Lloh73:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_close
LBB0_6:
	mov	x0, x21
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/tty"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_ISC_R_IOERROR,4,2              ; @ISC_R_IOERROR
	.comm	_IGNBRK,4,2                     ; @IGNBRK
	.comm	_BRKINT,4,2                     ; @BRKINT
	.comm	_PARMRK,4,2                     ; @PARMRK
	.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	_OPOST,4,2                      ; @OPOST
	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_ECHONL,4,2                     ; @ECHONL
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_ISIG,4,2                       ; @ISIG
	.comm	_IEXTEN,4,2                     ; @IEXTEN
	.comm	_CSIZE,4,2                      ; @CSIZE
	.comm	_PARENB,4,2                     ; @PARENB
	.comm	_CS8,4,2                        ; @CS8
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_VTIME,8,3                      ; @VTIME
	.comm	_TCSAFLUSH,4,2                  ; @TCSAFLUSH
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
.subsections_via_symbols
