	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbdget
_kbdget:                                ## @kbdget
	.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	%edx, %ebx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_UNUSED
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	leaq	-25(%rbp), %rsi
	movq	%r14, %rdi
	callq	_isc_keyboard_getchar
	movq	%rax, %rbx
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.3:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_TIME_NOW
	movq	%rbx, %rdi
	callq	_isc_time_nanoseconds
	movzbl	-25(%rbp), %edx
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_isc_entropy_addcallbacksample
	movq	%rax, %rbx
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	(%r14), %edi
	callq	_fflush
	jmp	LBB0_6
LBB0_1:
	movq	_ISC_R_NOTBLOCKING@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_NOTBLOCKING,8,3          ## @ISC_R_NOTBLOCKING
	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"."

	.no_dead_strip	_kbdget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbdget
_kbdget:                                ; @kbdget
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x0
	mov	x0, x1
	bl	_UNUSED
	cbz	w19, LBB0_4
; %bb.1:
	add	x1, sp, #11
	mov	x0, x20
	bl	_isc_keyboard_getchar
	mov	x19, x0
Lloh0:
	adrp	x21, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISC_R_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	add	x0, sp, #12
	bl	_TIME_NOW
	add	x0, sp, #12
	bl	_isc_time_nanoseconds
	mov	x1, x0
	ldrb	w2, [sp, #11]
	mov	x0, x20
	bl	_isc_entropy_addcallbacksample
	mov	x19, x0
	ldr	x8, [x21]
Lloh2:
	adrp	x20, _stderr@GOTPAGE
Lloh3:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
	cmp	x19, x8
	b.ne	LBB0_5
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x20]
	bl	_fflush
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ISC_R_NOTBLOCKING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISC_R_NOTBLOCKING@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_NOTBLOCKING,8,3          ; @ISC_R_NOTBLOCKING
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"."

	.no_dead_strip	_kbdget
.subsections_via_symbols
