	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LagTrackerRead
_LagTrackerRead:                        ## @LagTrackerRead
	.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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movslq	%edi, %r11
	movq	_lag_tracker@GOTPCREL(%rip), %r8
	movq	(%r8), %rcx
	movq	(%rcx), %r14
	movq	8(%rcx), %rax
	movq	(%r14,%r11,8), %rdx
	cmpq	%rax, %rdx
	jne	LBB0_2
## %bb.1:
	xorl	%r13d, %r13d
LBB0_10:
	movq	24(%rcx), %rax
	movq	%r11, %rsi
	shlq	$4, %rsi
	movq	$0, 8(%rax,%rsi)
	movq	%rdx, %rax
	jmp	LBB0_11
LBB0_2:
	movq	16(%rcx), %rbx
	movq	%rdx, %rsi
	shlq	$4, %rsi
	cmpq	%r15, (%rbx,%rsi)
	jle	LBB0_4
## %bb.3:
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_4:
	addq	%rbx, %rsi
	movq	%r11, %r10
	shlq	$4, %r10
	movq	_LAG_TRACKER_BUFFER_SIZE@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	shlq	$4, %rdx
	movq	8(%rbx,%rdx), %r13
	movq	24(%rcx), %rax
	movupd	(%rsi), %xmm0
	movupd	%xmm0, (%rax,%r10)
	movq	(%r8), %rcx
	movq	(%rcx), %r14
	movq	(%r14,%r11,8), %rax
	incq	%rax
	movslq	(%r9), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, (%r14,%r11,8)
	movq	8(%rcx), %rax
	cmpq	%rax, %rdx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rcx), %rbx
	movq	%rdx, %rdi
	shlq	$4, %rdi
	leaq	(%rbx,%rdi), %rsi
	cmpq	%r15, (%rbx,%rdi)
	jle	LBB0_6
LBB0_11:
	movl	$-1, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r13
	jg	LBB0_21
## %bb.12:
	testq	%r13, %r13
	je	LBB0_13
LBB0_20:
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_Assert
	subl	%r13d, %ebx
	movl	%ebx, %r12d
	jmp	LBB0_21
LBB0_13:
	movq	(%r14,%r11,8), %rdx
	cmpq	%rax, %rdx
	je	LBB0_21
## %bb.14:
	movq	24(%rcx), %rax
	shlq	$4, %r11
	movq	8(%rax,%r11), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.15:
	movq	(%rax,%r11), %r13
	cmpq	%r15, %r13
	jg	LBB0_21
## %bb.16:
	movq	16(%rcx), %rax
	shlq	$4, %rdx
	movq	(%rax,%rdx), %rcx
	movq	8(%rax,%rdx), %r14
	xorl	%edi, %edi
	subq	%r13, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	setg	%dil
	callq	_Assert
	subq	%rbx, %r14
	jge	LBB0_17
LBB0_21:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	16(%rcx), %rax
	shlq	$4, %rdx
	movq	8(%rax,%rdx), %r13
	jmp	LBB0_19
LBB0_17:
	subq	%r13, %r15
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	cvtsi2sdq	-56(%rbp), %xmm1        ## 8-byte Folded Reload
	divsd	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rbx, %xmm1
	cvtsi2sd	%r14, %xmm2
	mulsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %r13
LBB0_19:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_lag_tracker,8,3                ## @lag_tracker
	.comm	_LAG_TRACKER_BUFFER_SIZE,4,2    ## @LAG_TRACKER_BUFFER_SIZE
	.no_dead_strip	_LagTrackerRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LagTrackerRead
_LagTrackerRead:                        ; @LagTrackerRead
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x9, w0
Lloh0:
	adrp	x12, _lag_tracker@GOTPAGE
Lloh1:
	ldr	x12, [x12, _lag_tracker@GOTPAGEOFF]
	ldr	x8, [x12]
	ldp	x10, x13, [x8]
	ldr	x11, [x10, w0, sxtw #3]
	cmp	x11, x13
	b.ne	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:
	ldr	x12, [x8, #24]
	add	x12, x12, x9, lsl #4
	str	xzr, [x12, #8]
	cmp	x21, x19
	b.le	LBB0_9
	b	LBB0_15
LBB0_3:
	ldr	x16, [x8, #16]
	add	x15, x16, x11, lsl #4
	ldr	x14, [x15]
	cmp	x14, x20
	b.le	LBB0_5
; %bb.4:
	mov	x21, #0
	mov	x11, x13
	cmp	x21, x19
	b.le	LBB0_9
	b	LBB0_15
LBB0_5:
	lsl	x13, x9, #3
Lloh2:
	adrp	x14, _LAG_TRACKER_BUFFER_SIZE@GOTPAGE
Lloh3:
	ldr	x14, [x14, _LAG_TRACKER_BUFFER_SIZE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x16, x11, lsl #4
	ldr	x21, [x10, #8]
	ldr	x8, [x8, #24]
	ldr	q0, [x15]
	str	q0, [x8, x9, lsl #4]
	ldr	x8, [x12]
	ldr	x10, [x8]
	ldr	x11, [x10, x13]
	add	x11, x11, #1
	ldrsw	x15, [x14]
	udiv	x16, x11, x15
	msub	x11, x16, x15, x11
	str	x11, [x10, x13]
	ldr	x17, [x8, #8]
	cmp	x11, x17
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x16, [x8, #16]
	add	x15, x16, x11, lsl #4
	ldr	x0, [x15]
	cmp	x0, x20
	b.le	LBB0_6
; %bb.8:
	mov	x11, x17
	cmp	x21, x19
	b.gt	LBB0_15
LBB0_9:
	cbz	x21, LBB0_11
LBB0_10:
	cmp	x21, #0
	cset	w0, ne
	bl	_Assert
	sub	w0, w19, w21
	b	LBB0_16
LBB0_11:
	ldr	x10, [x10, x9, lsl #3]
	cmp	x10, x11
	b.eq	LBB0_15
; %bb.12:
	ldr	x11, [x8, #24]
	add	x12, x11, x9, lsl #4
	ldr	x21, [x12, #8]
	cbz	x21, LBB0_17
; %bb.13:
	lsl	x9, x9, #4
	ldr	x22, [x11, x9]
	cmp	x22, x20
	b.gt	LBB0_15
; %bb.14:
	ldr	x8, [x8, #16]
	add	x8, x8, x10, lsl #4
	ldp	x9, x24, [x8]
	subs	x23, x9, x22
	cset	w0, gt
	bl	_Assert
	subs	x8, x24, x21
	b.ge	LBB0_18
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	x8, [x8, #16]
	add	x8, x8, x10, lsl #4
	ldr	x21, [x8, #8]
	b	LBB0_10
LBB0_18:
	sub	x9, x20, x22
	scvtf	d0, x9
	scvtf	d1, x23
	scvtf	d2, x21
	fdiv	d0, d0, d1
	scvtf	d1, x8
	fmadd	d0, d1, d0, d2
	fcvtzs	x21, d0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_lag_tracker,8,3                ; @lag_tracker
	.comm	_LAG_TRACKER_BUFFER_SIZE,4,2    ; @LAG_TRACKER_BUFFER_SIZE
	.no_dead_strip	_LagTrackerRead
.subsections_via_symbols
