	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_substitute
_c_substitute:                          ## @c_substitute
	.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	_Cursor@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_InputBuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_HIST@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	decq	%rsi
	movabsq	$4294967809, %rdx               ## imm = 0x100000201
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rdi), %rsi
	cmpb	%al, %bl
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rdi
	cmpq	%rcx, %rsi
	jbe	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%rdi), %ebx
	cmpq	$32, %rbx
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	btq	%rbx, %rdx
	jae	LBB0_4
LBB0_5:
	xorl	%ebx, %ebx
	cmpq	%rcx, %rdi
	jb	LBB0_9
## %bb.6:
	testb	%al, %al
	je	LBB0_9
## %bb.7:
	cmpb	%al, (%rdi)
	jne	LBB0_9
## %bb.8:
	callq	_c_excl
	movl	%eax, %ebx
LBB0_9:
	xorl	%eax, %eax
	callq	_Refresh
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cursor,8,3                     ## @Cursor
	.comm	_InputBuf,8,3                   ## @InputBuf
	.comm	_HIST,1,0                       ## @HIST
	.no_dead_strip	_c_substitute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_substitute
_c_substitute:                          ; @c_substitute
	.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
Lloh0:
	adrp	x8, _Cursor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Cursor@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _InputBuf@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InputBuf@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
Lloh6:
	adrp	x8, _HIST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HIST@GOTPAGEOFF]
	ldrb	w8, [x8]
	sub	x12, x10, #1
	mov	w10, #1
	mov	x11, #513
	movk	x11, #1, lsl #32
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x12
	cmp	x12, x9
	b.ls	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w13, [x0]
	cmp	w13, #32
	lsl	x12, x10, x13
	and	x12, x12, x11
	ccmp	x12, #0, #4, ls
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x12, x0, #1
	cmp	w13, w8
	b.ne	LBB0_1
LBB0_4:
	mov	w19, #0
	cmp	x0, x9
	b.lo	LBB0_9
; %bb.5:
	cbz	w8, LBB0_9
; %bb.6:
	ldrb	w9, [x0]
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.7:
	bl	_c_excl
	mov	x19, x0
	b	LBB0_9
LBB0_8:
	mov	w19, #0
LBB0_9:
	bl	_Refresh
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Cursor,8,3                     ; @Cursor
	.comm	_InputBuf,8,3                   ; @InputBuf
	.comm	_HIST,1,0                       ; @HIST
	.no_dead_strip	_c_substitute
.subsections_via_symbols
