	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_history                 ## -- Begin function remove_history
	.p2align	4, 0x90
_remove_history:                        ## @remove_history
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_h@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_e@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_rl_initialize
LBB0_3:
	movl	$8, %edi
	callq	_el_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	movq	(%r15), %rdi
	movq	_H_DELDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %r8
	addq	$4, %r8
	leaq	-32(%rbp), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_history
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_el_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-28(%rbp), %eax
	movl	%eax, (%rbx)
	movq	(%r15), %rdi
	movq	_H_GETSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	xorl	%eax, %eax
	callq	_history
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	-32(%rbp), %eax
	movq	_history_length@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_h,8,3                          ## @h
	.comm	_e,8,3                          ## @e
	.comm	_H_DELDATA,4,2                  ## @H_DELDATA
	.comm	_H_GETSIZE,4,2                  ## @H_GETSIZE
	.comm	_history_length,4,2             ## @history_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_history                 ; -- Begin function remove_history
	.p2align	2
_remove_history:                        ; @remove_history
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _h@GOTPAGE
Lloh1:
	ldr	x21, [x21, _h@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _e@GOTPAGE
Lloh3:
	ldr	x9, [x9, _e@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	bl	_rl_initialize
LBB0_2:
	mov	w0, #8
	bl	_el_malloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x21]
Lloh5:
	adrp	x8, _H_DELDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H_DELDATA@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x8, x19, #4
	stp	x20, x8, [sp]
	add	x1, sp, #24
	bl	_history
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_el_free
	mov	x19, #0
	b	LBB0_7
LBB0_5:
	ldr	w8, [sp, #28]
	str	w8, [x19]
	ldr	x0, [x21]
Lloh8:
	adrp	x8, _H_GETSIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H_GETSIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x1, sp, #24
	bl	_history
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w8, [sp, #24]
Lloh11:
	adrp	x9, _history_length@GOTPAGE
Lloh12:
	ldr	x9, [x9, _history_length@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_h,8,3                          ; @h
	.comm	_e,8,3                          ; @e
	.comm	_H_DELDATA,4,2                  ; @H_DELDATA
	.comm	_H_GETSIZE,4,2                  ; @H_GETSIZE
	.comm	_history_length,4,2             ; @history_length
.subsections_via_symbols
