	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esc_seq_to_key
_esc_seq_to_key:                        ## @esc_seq_to_key
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_EDIT_KEY_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	movq	%rdi, %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r13d
	movzbl	(%rcx), %eax
	incq	%rcx
	testb	%al, %al
	jne	LBB0_1
## %bb.2:
	movb	1(%rbx), %al
	addb	$-48, %al
	movl	$-1, %r15d
	cmpb	$9, %al
	ja	LBB0_3
## %bb.4:
	leaq	1(%rbx), %rdi
	callq	_atoi
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	incq	%rax
	movq	%rax, %rdi
	callq	_atoi
	movl	%eax, %r15d
	jmp	LBB0_6
LBB0_3:
	movl	$-1, %r12d
LBB0_6:
	movb	(%rbx), %al
	cmpb	$79, %al
	je	LBB0_9
## %bb.7:
	cmpb	$91, %al
	jne	LBB0_11
## %bb.8:
	movsbl	%r13b, %edx
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_esc_seq_to_key1
	jmp	LBB0_10
LBB0_9:
	movsbl	%r13b, %edx
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_esc_seq_to_key2
LBB0_10:
	movl	%eax, %r14d
LBB0_11:
	movq	_EDIT_KEY_NONE@GOTPCREL(%rip), %r15
	cmpl	(%r15), %r14d
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_edit_clear_line
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	xorl	%eax, %eax
	callq	_edit_redraw
	movl	(%r15), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDIT_KEY_NONE,4,2              ## @EDIT_KEY_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\rUnknown escape sequence '%s'\n"

	.no_dead_strip	_esc_seq_to_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esc_seq_to_key
_esc_seq_to_key:                        ; @esc_seq_to_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w8, #0
Lloh0:
	adrp	x22, _EDIT_KEY_NONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EDIT_KEY_NONE@GOTPAGEOFF]
	ldr	w20, [x22]
	mov	x9, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	ldrb	w8, [x9], #1
	cbnz	w8, LBB0_1
; %bb.2:
	mov	x0, x19
	ldrb	w8, [x0, #1]!
	sub	w8, w8, #48
	cmp	w8, #9
	b.hi	LBB0_5
; %bb.3:
	bl	_atoi
	mov	x21, x0
	mov	x0, x19
	mov	w1, #59
	bl	_os_strchr
	cbz	x0, LBB0_6
; %bb.4:
	add	x0, x0, #1
	bl	_atoi
	mov	x1, x0
	b	LBB0_7
LBB0_5:
	mov	w21, #-1
LBB0_6:
	mov	w1, #-1
LBB0_7:
	ldrb	w8, [x19]
	cmp	w8, #79
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #91
	b.ne	LBB0_12
; %bb.9:
	sxtb	w2, w23
	mov	x0, x21
	bl	_esc_seq_to_key1
	b	LBB0_11
LBB0_10:
	sxtb	w2, w23
	mov	x0, x21
	bl	_esc_seq_to_key2
LBB0_11:
	mov	x20, x0
LBB0_12:
	ldr	w8, [x22]
	cmp	w20, w8
	b.ne	LBB0_14
; %bb.13:
	bl	_edit_clear_line
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf
	bl	_edit_redraw
	ldr	w20, [x22]
LBB0_14:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EDIT_KEY_NONE,4,2              ; @EDIT_KEY_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\rUnknown escape sequence '%s'\n"

	.no_dead_strip	_esc_seq_to_key
.subsections_via_symbols
