	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_access_value_history           ## -- Begin function access_value_history
	.p2align	4, 0x90
_access_value_history:                  ## @access_value_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %esi
	movq	_value_history_count@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	testl	%edi, %edi
	jg	LBB0_2
## %bb.1:
	movl	(%r14), %ebx
LBB0_2:
	addl	%esi, %ebx
	jg	LBB0_9
## %bb.3:
	cmpl	$1, %esi
	je	LBB0_7
## %bb.4:
	testl	%esi, %esi
	jne	LBB0_8
## %bb.5:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_9
LBB0_8:
	negl	%esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_9:
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jle	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_error
	movl	(%r14), %eax
LBB0_11:
	decl	%ebx
	decl	%eax
	movq	_VALUE_HISTORY_CHUNK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movq	_value_history_chain@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	subl	%eax, %ecx
	jle	LBB0_14
## %bb.12:
	incl	%ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rsi
	decl	%ecx
	cmpl	$1, %ecx
	ja	LBB0_13
LBB0_14:
	movq	(%rsi), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_value_copy                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_value_history_count,4,2        ## @value_history_count
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The history is empty."

L_.str.1:                               ## @.str.1
	.asciz	"There is only one value in the history."

L_.str.2:                               ## @.str.2
	.asciz	"History does not go back to $$%d."

L_.str.3:                               ## @.str.3
	.asciz	"History has not yet reached $%d."

	.comm	_value_history_chain,8,3        ## @value_history_chain
	.comm	_VALUE_HISTORY_CHUNK,4,2        ## @VALUE_HISTORY_CHUNK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_access_value_history           ; -- Begin function access_value_history
	.p2align	2
_access_value_history:                  ; @access_value_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, _value_history_count@GOTPAGE
Lloh1:
	ldr	x19, [x19, _value_history_count@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w0, #0
	csel	w8, wzr, w8, gt
	add	w20, w8, w0
	cmp	w20, #0
	b.gt	LBB0_7
; %bb.1:
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.2:
	cbnz	w0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	neg	w8, w0
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_error
LBB0_7:
	ldr	w9, [x19]
	cmp	w20, w9
	b.le	LBB0_9
; %bb.8:
	str	x20, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
	ldr	w9, [x19]
LBB0_9:
	sub	w8, w20, #1
	sub	w10, w9, #1
Lloh10:
	adrp	x9, _VALUE_HISTORY_CHUNK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VALUE_HISTORY_CHUNK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	sdiv	w11, w10, w9
	sdiv	w10, w8, w9
	sub	w12, w11, w10
Lloh13:
	adrp	x11, _value_history_chain@GOTPAGE
Lloh14:
	ldr	x11, [x11, _value_history_chain@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	cmp	w12, #1
	b.lt	LBB0_12
; %bb.10:
	add	w12, w12, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x11, #8]
	sub	w12, w12, #1
	cmp	w12, #1
	b.hi	LBB0_11
LBB0_12:
	ldr	x11, [x11]
	msub	w8, w10, w9, w8
	ldr	w0, [x11, w8, sxtw #2]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_value_copy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_value_history_count,4,2        ; @value_history_count
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The history is empty."

l_.str.1:                               ; @.str.1
	.asciz	"There is only one value in the history."

l_.str.2:                               ; @.str.2
	.asciz	"History does not go back to $$%d."

l_.str.3:                               ; @.str.3
	.asciz	"History has not yet reached $%d."

	.comm	_value_history_chain,8,3        ; @value_history_chain
	.comm	_VALUE_HISTORY_CHUNK,4,2        ; @VALUE_HISTORY_CHUNK
.subsections_via_symbols
