	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_record_latest_value            ## -- Begin function record_latest_value
	.p2align	4, 0x90
_record_latest_value:                   ## @record_latest_value
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_VALUE_LAZY
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_value_fetch_lazy
LBB0_2:
	movq	$0, (%r15)
	movq	%r15, %rdi
	callq	_release_value
	movq	_value_history_count@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_VALUE_HISTORY_CHUNK@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	movl	%edx, %r14d
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movq	_value_history_chain@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_5
LBB0_4:
	movl	$16, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_value_history_chain@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movq	%rbx, (%rax)
	movl	(%r12), %ecx
LBB0_5:
	movq	(%rbx), %rax
	movslq	%r14d, %rdx
	movq	%r15, (%rax,%rdx,8)
	incl	%ecx
	movl	%ecx, (%r12)
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_value_history_count,4,2        ## @value_history_count
	.comm	_VALUE_HISTORY_CHUNK,4,2        ## @VALUE_HISTORY_CHUNK
	.comm	_value_history_chain,8,3        ## @value_history_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_record_latest_value            ; -- Begin function record_latest_value
	.p2align	2
_record_latest_value:                   ; @record_latest_value
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_VALUE_LAZY
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_value_fetch_lazy
LBB0_2:
	str	xzr, [x19]
	mov	x0, x19
	bl	_release_value
Lloh0:
	adrp	x21, _value_history_count@GOTPAGE
Lloh1:
	ldr	x21, [x21, _value_history_count@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _VALUE_HISTORY_CHUNK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VALUE_HISTORY_CHUNK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w22, w10, w9, w8
	cbz	w22, LBB0_4
; %bb.3:
Lloh5:
	adrp	x9, _value_history_chain@GOTPAGE
Lloh6:
	ldr	x9, [x9, _value_history_chain@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x9]
	b	LBB0_5
LBB0_4:
	mov	w0, #16
	bl	_xmalloc
	mov	x20, x0
	ldr	x0, [x0]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh8:
	adrp	x8, _value_history_chain@GOTPAGE
Lloh9:
	ldr	x8, [x8, _value_history_chain@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x20, #8]
	str	x20, [x8]
	ldr	w8, [x21]
LBB0_5:
	ldr	x9, [x20]
	str	x19, [x9, w22, sxtw #3]
	add	w0, w8, #1
	str	w0, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_value_history_count,4,2        ; @value_history_count
	.comm	_VALUE_HISTORY_CHUNK,4,2        ; @VALUE_HISTORY_CHUNK
	.comm	_value_history_chain,8,3        ; @value_history_chain
.subsections_via_symbols
