	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keyhit                         ## -- Begin function keyhit
	.p2align	4, 0x90
_keyhit:                                ## @keyhit
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_RBX_NOINTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OPT_CHECK
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	_SECOND@GOTPCREL(%rip), %rax
	imull	(%rax), %r14d
	movl	$1, %ebx
	movl	$1, %edi
	callq	_xgetc
	testl	$-257, %eax                     ## imm = 0xFEFF
	je	LBB0_2
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ebx
	movl	$1, %edi
	callq	_xgetc
	testl	$-257, %eax                     ## imm = 0xFEFF
	jne	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1132, %edi                     ## imm = 0x46C
	callq	_PTOV
	movl	(%rax), %eax
	testl	%r15d, %r15d
	cmovel	%eax, %r15d
	xorl	%ebx, %ebx
	cmpl	%r15d, %eax
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r15,%r14), %ecx
	cmpl	%ecx, %eax
	jb	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_RBX_NOINTR,4,2                 ## @RBX_NOINTR
	.comm	_SECOND,4,2                     ## @SECOND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keyhit                         ; -- Begin function keyhit
	.p2align	2
_keyhit:                                ; @keyhit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
Lloh0:
	adrp	x8, _RBX_NOINTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RBX_NOINTR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_OPT_CHECK
	cbz	x0, LBB0_2
LBB0_1:
	mov	w19, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _SECOND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SECOND@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	w19, #1
	mov	w0, #1
	bl	_xgetc
	tst	w0, #0xfffffeff
	b.eq	LBB0_4
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w21, #0
	mul	w20, w22, w20
	mov	w19, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_xgetc
	tst	w0, #0xfffffeff
	b.ne	LBB0_3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w20, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1132
	bl	_PTOV
	ldr	w8, [x0]
	cmp	w21, #0
	csel	w21, w8, w21, eq
	add	w9, w21, w20
	cmp	w8, w21
	ccmp	w8, w9, #2, ge
	b.lo	LBB0_5
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RBX_NOINTR,4,2                 ; @RBX_NOINTR
	.comm	_SECOND,4,2                     ; @SECOND
.subsections_via_symbols
