	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function really_getch
_really_getch:                          ## @really_getch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_wgetch
	movq	_last_getc@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_KEY_MIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setg	%cl
	movq	_KEY_MAX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setl	%dl
	andb	%cl, %dl
	movzbl	%dl, %ecx
	movl	%ecx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_getc,4,2                  ## @last_getc
	.comm	_KEY_MIN,4,2                    ## @KEY_MIN
	.comm	_KEY_MAX,4,2                    ## @KEY_MAX
	.comm	_have_last_getc,8,3             ## @have_last_getc
	.comm	_last_getc_bytes,8,3            ## @last_getc_bytes
	.comm	_used_last_getc,8,3             ## @used_last_getc
	.no_dead_strip	_really_getch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function really_getch
_really_getch:                          ; @really_getch
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_wgetch
Lloh0:
	adrp	x8, _last_getc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _last_getc@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x8, _KEY_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _KEY_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KEY_MAX@GOTPAGEOFF]
	cmp	w0, w8
Lloh8:
	ldr	w8, [x9]
	ccmp	w0, w8, #0, gt
	cset	w8, lt
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_last_getc,4,2                  ; @last_getc
	.comm	_KEY_MIN,4,2                    ; @KEY_MIN
	.comm	_KEY_MAX,4,2                    ; @KEY_MAX
	.comm	_have_last_getc,8,3             ; @have_last_getc
	.comm	_last_getc_bytes,8,3            ; @last_getc_bytes
	.comm	_used_last_getc,8,3             ; @used_last_getc
	.no_dead_strip	_really_getch
.subsections_via_symbols
