	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLKeyboardEnd                 ## -- Begin function VGLKeyboardEnd
	.p2align	4, 0x90
_VGLKeyboardEnd:                        ## @VGLKeyboardEnd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_VGLKeyboardMode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_1
## %bb.2:
	movq	_KDSKBMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_ioctl
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movq	_TCSAFLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_VGLKeyboardTty@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	popq	%rbp
	jmp	_tcsetattr                      ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VGLKeyboardMode,4,2            ## @VGLKeyboardMode
	.comm	_KDSKBMODE,4,2                  ## @KDSKBMODE
	.comm	_TCSANOW,4,2                    ## @TCSANOW
	.comm	_TCSAFLUSH,4,2                  ## @TCSAFLUSH
	.comm	_VGLKeyboardTty,4,2             ## @VGLKeyboardTty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLKeyboardEnd                 ; -- Begin function VGLKeyboardEnd
	.p2align	2
_VGLKeyboardEnd:                        ; @VGLKeyboardEnd
	.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, _VGLKeyboardMode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VGLKeyboardMode@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	cmn	w2, #1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _KDSKBMODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KDSKBMODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_ioctl
Lloh6:
	adrp	x8, _TCSANOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCSANOW@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _TCSAFLUSH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TCSAFLUSH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh12:
	adrp	x2, _VGLKeyboardTty@GOTPAGE
Lloh13:
	ldr	x2, [x2, _VGLKeyboardTty@GOTPAGEOFF]
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_tcsetattr
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VGLKeyboardMode,4,2            ; @VGLKeyboardMode
	.comm	_KDSKBMODE,4,2                  ; @KDSKBMODE
	.comm	_TCSANOW,4,2                    ; @TCSANOW
	.comm	_TCSAFLUSH,4,2                  ; @TCSAFLUSH
	.comm	_VGLKeyboardTty,4,2             ; @VGLKeyboardTty
.subsections_via_symbols
