	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rl_set_prompt                  ## -- Begin function rl_set_prompt
	.p2align	4, 0x90
_rl_set_prompt:                         ## @rl_set_prompt
	.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
	testq	%rdi, %rdi
	leaq	L_.str(%rip), %rbx
	cmovneq	%rdi, %rbx
	movq	_rl_prompt@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_el_free
LBB0_4:
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_RL_PROMPT_END_IGNORE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_strchr
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.7:
	movq	_RL_PROMPT_START_IGNORE@GOTPCREL(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movb	%al, (%rbx)
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %rdi
	movl	(%r13), %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %eax
	cmpb	%al, 1(%rbx)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	2(%rbx), %r15
	movq	%r15, %rdi
	callq	_strlen
	leaq	1(%rax), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_memmove
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	movl	$-1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_rl_prompt,8,3                  ## @rl_prompt
	.comm	_RL_PROMPT_END_IGNORE,4,2       ## @RL_PROMPT_END_IGNORE
	.comm	_RL_PROMPT_START_IGNORE,1,0     ## @RL_PROMPT_START_IGNORE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rl_set_prompt                  ; -- Begin function rl_set_prompt
	.p2align	2
_rl_set_prompt:                         ; @rl_set_prompt
	.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
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x19, x8, x0, eq
Lloh2:
	adrp	x21, _rl_prompt@GOTPAGE
Lloh3:
	ldr	x21, [x21, _rl_prompt@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.2:
	ldr	x0, [x21]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_el_free
LBB0_4:
	mov	x0, x19
	bl	_strdup
	str	x0, [x21]
	cbz	x0, LBB0_11
; %bb.5:
Lloh4:
	adrp	x22, _RL_PROMPT_END_IGNORE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _RL_PROMPT_END_IGNORE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.6:
	mov	x19, x0
Lloh6:
	adrp	x23, _RL_PROMPT_START_IGNORE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _RL_PROMPT_START_IGNORE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w8, [x19]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x21]
	ldr	w1, [x22]
	bl	_strchr
	mov	x19, x0
	cbz	x0, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19, #1]
	ldrb	w8, [x23]
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x20, x19, #2
	mov	x0, x20
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_memmove
	b	LBB0_8
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_rl_prompt,8,3                  ; @rl_prompt
	.comm	_RL_PROMPT_END_IGNORE,4,2       ; @RL_PROMPT_END_IGNORE
	.comm	_RL_PROMPT_START_IGNORE,1,0     ; @RL_PROMPT_START_IGNORE
.subsections_via_symbols
