	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_editorReadKey                  ## -- Begin function editorReadKey
	.p2align	4, 0x90
_editorReadKey:                         ## @editorReadKey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	leaq	-17(%rbp), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_read
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movsbl	-17(%rbp), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_DEL_KEY,4,2                    ## @DEL_KEY
	.comm	_PAGE_UP,4,2                    ## @PAGE_UP
	.comm	_PAGE_DOWN,4,2                  ## @PAGE_DOWN
	.comm	_ARROW_UP,4,2                   ## @ARROW_UP
	.comm	_ARROW_DOWN,4,2                 ## @ARROW_DOWN
	.comm	_ARROW_RIGHT,4,2                ## @ARROW_RIGHT
	.comm	_ARROW_LEFT,4,2                 ## @ARROW_LEFT
	.comm	_HOME_KEY,4,2                   ## @HOME_KEY
	.comm	_END_KEY,4,2                    ## @END_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_editorReadKey                  ; -- Begin function editorReadKey
	.p2align	2
_editorReadKey:                         ; @editorReadKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	bl	_read
	cbz	w0, LBB0_1
; %bb.2:
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	ldrsb	w0, [sp, #15]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	mov	w0, #1
	bl	_exit
	.cfi_endproc
                                        ; -- End function
	.comm	_DEL_KEY,4,2                    ; @DEL_KEY
	.comm	_PAGE_UP,4,2                    ; @PAGE_UP
	.comm	_PAGE_DOWN,4,2                  ; @PAGE_DOWN
	.comm	_ARROW_UP,4,2                   ; @ARROW_UP
	.comm	_ARROW_DOWN,4,2                 ; @ARROW_DOWN
	.comm	_ARROW_RIGHT,4,2                ; @ARROW_RIGHT
	.comm	_ARROW_LEFT,4,2                 ; @ARROW_LEFT
	.comm	_HOME_KEY,4,2                   ; @HOME_KEY
	.comm	_END_KEY,4,2                    ; @END_KEY
.subsections_via_symbols
