	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_hsetpat
_c_hsetpat:                             ## @c_hsetpat
	.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	_LastCmd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_F_UP_SEARCH_HIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_F_DOWN_SEARCH_HIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	_patbuf@GOTPCREL(%rip), %rbx
	movq	$0, 8(%rbx)
	movq	_InputBuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_Cursor@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	subq	%rsi, %rdx
	movq	%rbx, %rdi
	callq	_Strbuf_appendn
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Strbuf_terminate               ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LastCmd,8,3                    ## @LastCmd
	.comm	_F_UP_SEARCH_HIST,8,3           ## @F_UP_SEARCH_HIST
	.comm	_F_DOWN_SEARCH_HIST,8,3         ## @F_DOWN_SEARCH_HIST
	.comm	_patbuf,16,3                    ## @patbuf
	.comm	_InputBuf,8,3                   ## @InputBuf
	.comm	_Cursor,8,3                     ## @Cursor
	.comm	_Hist_num,4,2                   ## @Hist_num
	.comm	_LastChar,8,3                   ## @LastChar
	.no_dead_strip	_c_hsetpat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_hsetpat
_c_hsetpat:                             ; @c_hsetpat
	.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, _LastCmd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LastCmd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _F_UP_SEARCH_HIST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _F_UP_SEARCH_HIST@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _F_DOWN_SEARCH_HIST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _F_DOWN_SEARCH_HIST@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh9:
	adrp	x19, _patbuf@GOTPAGE
Lloh10:
	ldr	x19, [x19, _patbuf@GOTPAGEOFF]
Lloh11:
	adrp	x8, _InputBuf@GOTPAGE
Lloh12:
	ldr	x8, [x8, _InputBuf@GOTPAGEOFF]
	str	xzr, [x19, #8]
Lloh13:
	ldr	x1, [x8]
Lloh14:
	adrp	x8, _Cursor@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Cursor@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	sub	x2, x8, x1
	mov	x0, x19
	bl	_Strbuf_appendn
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Strbuf_terminate
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LastCmd,8,3                    ; @LastCmd
	.comm	_F_UP_SEARCH_HIST,8,3           ; @F_UP_SEARCH_HIST
	.comm	_F_DOWN_SEARCH_HIST,8,3         ; @F_DOWN_SEARCH_HIST
	.comm	_patbuf,16,3                    ; @patbuf
	.comm	_InputBuf,8,3                   ; @InputBuf
	.comm	_Cursor,8,3                     ; @Cursor
	.comm	_Hist_num,4,2                   ; @Hist_num
	.comm	_LastChar,8,3                   ; @LastChar
	.no_dead_strip	_c_hsetpat
.subsections_via_symbols
