	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_next_history                   ## -- Begin function next_history
	.p2align	4, 0x90
_next_history:                          ## @next_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_history_offset@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_history_length@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.1:
	movq	_h@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_H_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rsi
	callq	_history
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	incq	(%rbx)
	xorl	%eax, %eax
	callq	_current_history
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_history_offset,8,3             ## @history_offset
	.comm	_history_length,8,3             ## @history_length
	.comm	_h,4,2                          ## @h
	.comm	_H_LAST,4,2                     ## @H_LAST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_next_history                   ; -- Begin function next_history
	.p2align	2
_next_history:                          ; @next_history
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _history_offset@GOTPAGE
Lloh1:
	ldr	x19, [x19, _history_offset@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _history_length@GOTPAGE
Lloh3:
	ldr	x9, [x9, _history_length@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _h@GOTPAGE
Lloh6:
	ldr	x8, [x8, _h@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _H_LAST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H_LAST@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_history
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, #0
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	bl	_current_history
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_history_offset,8,3             ; @history_offset
	.comm	_history_length,8,3             ; @history_length
	.comm	_h,4,2                          ; @h
	.comm	_H_LAST,4,2                     ; @H_LAST
.subsections_via_symbols
