	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_history_get                    ## -- Begin function history_get
	.p2align	4, 0x90
_history_get:                           ## @history_get
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_h@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	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:
	movq	_history_base@GOTPCREL(%rip), %r14
	cmpl	%ebx, (%r14)
	jle	LBB0_5
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_5:
	movq	(%r12), %rdi
	movq	_H_CURR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rsi
	xorl	%eax, %eax
	callq	_history
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movl	-56(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rdi
	movq	_H_DELDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	(%r14), %ebx
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rsi
	movl	%ebx, %ecx
	movq	$-1, %r8
	xorl	%eax, %eax
	callq	_history
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movq	(%r12), %rdi
	movl	(%r13), %edx
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rsi
	xorl	%eax, %eax
	callq	_history
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	(%r12), %rdi
	movq	_H_NEXT_EVDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-56(%rbp), %ecx
	leaq	_history_get.she+4(%rip), %r8
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rsi
	xorl	%eax, %eax
	callq	_history
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	-52(%rbp), %eax
	movl	%eax, _history_get.she(%rip)
	leaq	_history_get.she(%rip), %r15
LBB0_10:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	(%r12), %rdi
	movq	_H_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	xorl	%eax, %eax
	callq	_history
LBB0_11:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_history_get.she,8,2 ## @history_get.she
	.comm	_h,8,3                          ## @h
	.comm	_e,8,3                          ## @e
	.comm	_history_base,4,2               ## @history_base
	.comm	_H_CURR,4,2                     ## @H_CURR
	.comm	_H_DELDATA,4,2                  ## @H_DELDATA
	.comm	_H_NEXT_EVDATA,4,2              ## @H_NEXT_EVDATA
	.comm	_H_SET,4,2                      ## @H_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_history_get                    ; -- Begin function history_get
	.p2align	2
_history_get:                           ; @history_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x20, _h@GOTPAGE
Lloh1:
	ldr	x20, [x20, _h@GOTPAGEOFF]
	ldr	x8, [x20]
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:
Lloh5:
	adrp	x23, _history_base@GOTPAGE
Lloh6:
	ldr	x23, [x23, _history_base@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w19
	b.gt	LBB0_4
; %bb.3:
	ldr	x0, [x20]
Lloh7:
	adrp	x22, _H_CURR@GOTPAGE
Lloh8:
	ldr	x22, [x22, _H_CURR@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x1, sp, #24
	bl	_history
	cbz	x0, LBB0_6
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	w21, [sp, #24]
	ldr	x0, [x20]
Lloh9:
	adrp	x8, _H_DELDATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H_DELDATA@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w8, [x23]
	sub	w8, w19, w8
	mov	x9, #-1
	stp	x8, x9, [sp]
	add	x1, sp, #24
	bl	_history
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	x0, [x20]
	ldr	w2, [x22]
	add	x1, sp, #24
	bl	_history
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x20]
Lloh12:
	adrp	x8, _H_NEXT_EVDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _H_NEXT_EVDATA@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	w8, [sp, #24]
Lloh15:
	adrp	x9, _history_get.she@PAGE+4
Lloh16:
	add	x9, x9, _history_get.she@PAGEOFF+4
	stp	x8, x9, [sp]
	add	x1, sp, #24
	bl	_history
	cbz	x0, LBB0_11
LBB0_9:
	mov	x19, #0
LBB0_10:
	ldr	x0, [x20]
Lloh17:
	adrp	x8, _H_SET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _H_SET@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	str	x21, [sp]
	add	x1, sp, #24
	bl	_history
	b	LBB0_5
LBB0_11:
	ldr	w8, [sp, #28]
Lloh20:
	adrp	x19, _history_get.she@PAGE
Lloh21:
	add	x19, x19, _history_get.she@PAGEOFF
	str	w8, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_history_get.she,8,2 ; @history_get.she
	.comm	_h,8,3                          ; @h
	.comm	_e,8,3                          ; @e
	.comm	_history_base,4,2               ; @history_base
	.comm	_H_CURR,4,2                     ; @H_CURR
	.comm	_H_DELDATA,4,2                  ; @H_DELDATA
	.comm	_H_NEXT_EVDATA,4,2              ; @H_NEXT_EVDATA
	.comm	_H_SET,4,2                      ; @H_SET
.subsections_via_symbols
