	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_recent_views_stats     ## -- Begin function compute_recent_views_stats
	.p2align	4, 0x90
_compute_recent_views_stats:            ## @compute_recent_views_stats
	.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	_Q_limit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_38
## %bb.1:
	movq	_CYCLIC_VIEWS_BUFFER_SIZE@GOTPCREL(%rip), %rbx
	movq	_MAX_USERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorl	%edi, %edi
	cmpl	%ecx, (%rbx)
	setle	%dil
	callq	_assert
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CV_r@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_CV_w@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	cmpq	%r8, %rdx
	jbe	LBB0_2
## %bb.14:
	movq	_CViews@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movslq	(%rbx), %rcx
	leaq	(%rsi,%rcx,4), %rcx
	movq	%rax, %rdi
	cmpq	%rcx, %rdx
	jae	LBB0_26
## %bb.15:
	leaq	4(%rdx), %rdi
	cmpq	%rdi, %rcx
	cmovaq	%rcx, %rdi
	movq	%rdx, %r9
	notq	%r9
	addq	%rdi, %r9
	cmpq	$12, %r9
	jae	LBB0_17
## %bb.16:
	movq	%rax, %rdi
	jmp	LBB0_25
LBB0_38:
	movq	_R_cnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_get_recent_views_num           ## TAILCALL
LBB0_2:
	movq	%rax, %rdi
	jae	LBB0_37
## %bb.3:
	leaq	4(%rdx), %rsi
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	movq	%rdx, %rcx
	notq	%rcx
	addq	%rsi, %rcx
	cmpq	$12, %rcx
	jae	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	jmp	LBB0_13
LBB0_17:
	shrq	$2, %r9
	incq	%r9
	movq	%r9, %r10
	andq	$-4, %r10
	leaq	-4(%r10), %rdi
	movq	%rdi, %r11
	shrq	$2, %r11
	incq	%r11
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.19:
	movabsq	$9223372036854775804, %rbx      ## imm = 0x7FFFFFFFFFFFFFFC
	addq	$2, %rbx
	andq	%r11, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	pmovsxdq	(%rdx,%rdi,4), %xmm0
	pmovsxdq	8(%rdx,%rdi,4), %xmm1
	movdqu	%xmm0, (%rax,%rdi,8)
	movdqu	%xmm1, 16(%rax,%rdi,8)
	pmovsxdq	16(%rdx,%rdi,4), %xmm0
	pmovsxdq	24(%rdx,%rdi,4), %xmm1
	movdqu	%xmm0, 32(%rax,%rdi,8)
	movdqu	%xmm1, 48(%rax,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rbx
	jne	LBB0_20
## %bb.21:
	testb	$1, %r11b
	je	LBB0_23
LBB0_22:
	pmovsxdq	(%rdx,%rdi,4), %xmm0
	pmovsxdq	8(%rdx,%rdi,4), %xmm1
	movdqu	%xmm0, (%rax,%rdi,8)
	movdqu	%xmm1, 16(%rax,%rdi,8)
LBB0_23:
	leaq	(%rax,%r10,8), %rdi
	cmpq	%r10, %r9
	je	LBB0_26
## %bb.24:
	leaq	(%rdx,%r10,4), %rdx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rdx), %rbx
	movq	%rbx, (%rdi)
	addq	$8, %rdi
	addq	$4, %rdx
	cmpq	%rcx, %rdx
	jb	LBB0_25
LBB0_26:
	cmpq	%r8, %rsi
	jae	LBB0_37
## %bb.27:
	leaq	4(%rsi), %rdx
	cmpq	%rdx, %r8
	cmovaq	%r8, %rdx
	movq	%rsi, %rcx
	notq	%rcx
	addq	%rdx, %rcx
	cmpq	$12, %rcx
	jb	LBB0_36
## %bb.28:
	shrq	$2, %rcx
	incq	%rcx
	movq	%rcx, %r9
	andq	$-4, %r9
	leaq	-4(%r9), %rdx
	movq	%rdx, %r10
	shrq	$2, %r10
	incq	%r10
	testq	%rdx, %rdx
	je	LBB0_29
## %bb.30:
	movabsq	$9223372036854775804, %rbx      ## imm = 0x7FFFFFFFFFFFFFFC
	addq	$2, %rbx
	andq	%r10, %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	pmovsxdq	(%rsi,%rdx,4), %xmm0
	pmovsxdq	8(%rsi,%rdx,4), %xmm1
	movdqu	%xmm0, (%rdi,%rdx,8)
	movdqu	%xmm1, 16(%rdi,%rdx,8)
	pmovsxdq	16(%rsi,%rdx,4), %xmm0
	pmovsxdq	24(%rsi,%rdx,4), %xmm1
	movdqu	%xmm0, 32(%rdi,%rdx,8)
	movdqu	%xmm1, 48(%rdi,%rdx,8)
	addq	$8, %rdx
	addq	$-2, %rbx
	jne	LBB0_31
## %bb.32:
	testb	$1, %r10b
	je	LBB0_34
LBB0_33:
	pmovsxdq	(%rsi,%rdx,4), %xmm0
	pmovsxdq	8(%rsi,%rdx,4), %xmm1
	movdqu	%xmm0, (%rdi,%rdx,8)
	movdqu	%xmm1, 16(%rdi,%rdx,8)
LBB0_34:
	leaq	(%rdi,%r9,8), %rdi
	cmpq	%r9, %rcx
	je	LBB0_37
## %bb.35:
	leaq	(%rsi,%r9,4), %rsi
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rsi), %rcx
	movq	%rcx, (%rdi)
	addq	$8, %rdi
	addq	$4, %rsi
	cmpq	%r8, %rsi
	jb	LBB0_36
	jmp	LBB0_37
LBB0_5:
	shrq	$2, %rcx
	incq	%rcx
	movq	%rcx, %r9
	andq	$-4, %r9
	leaq	-4(%r9), %rsi
	movq	%rsi, %rdi
	shrq	$2, %rdi
	incq	%rdi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movabsq	$9223372036854775804, %rbx      ## imm = 0x7FFFFFFFFFFFFFFC
	addq	$2, %rbx
	andq	%rdi, %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	pmovsxdq	(%rdx,%rsi,4), %xmm0
	pmovsxdq	8(%rdx,%rsi,4), %xmm1
	movdqu	%xmm0, (%rax,%rsi,8)
	movdqu	%xmm1, 16(%rax,%rsi,8)
	pmovsxdq	16(%rdx,%rsi,4), %xmm0
	pmovsxdq	24(%rdx,%rsi,4), %xmm1
	movdqu	%xmm0, 32(%rax,%rsi,8)
	movdqu	%xmm1, 48(%rax,%rsi,8)
	addq	$8, %rsi
	addq	$-2, %rbx
	jne	LBB0_8
## %bb.9:
	testb	$1, %dil
	je	LBB0_11
LBB0_10:
	pmovsxdq	(%rdx,%rsi,4), %xmm0
	pmovsxdq	8(%rdx,%rsi,4), %xmm1
	movdqu	%xmm0, (%rax,%rsi,8)
	movdqu	%xmm1, 16(%rax,%rsi,8)
LBB0_11:
	leaq	(%rax,%r9,8), %rdi
	cmpq	%r9, %rcx
	je	LBB0_37
## %bb.12:
	leaq	(%rdx,%r9,4), %rdx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rdx), %rcx
	movq	%rcx, (%rdi)
	addq	$8, %rdi
	addq	$4, %rdx
	cmpq	%r8, %rdx
	jb	LBB0_13
LBB0_37:
	subq	%rax, %rdi
	shrq	$3, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_postprocess_recent_list        ## TAILCALL
LBB0_18:
	xorl	%edi, %edi
	testb	$1, %r11b
	jne	LBB0_22
	jmp	LBB0_23
LBB0_29:
	xorl	%edx, %edx
	testb	$1, %r10b
	jne	LBB0_33
	jmp	LBB0_34
LBB0_6:
	xorl	%esi, %esi
	testb	$1, %dil
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_limit,4,2                    ## @Q_limit
	.comm	_R_cnt,8,3                      ## @R_cnt
	.comm	_CYCLIC_VIEWS_BUFFER_SIZE,4,2   ## @CYCLIC_VIEWS_BUFFER_SIZE
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_R,8,3                          ## @R
	.comm	_CV_r,8,3                       ## @CV_r
	.comm	_CV_w,8,3                       ## @CV_w
	.comm	_CViews,8,3                     ## @CViews
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_recent_views_stats     ; -- Begin function compute_recent_views_stats
	.p2align	2
_compute_recent_views_stats:            ; @compute_recent_views_stats
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _Q_limit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Q_limit@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.1:
Lloh3:
	adrp	x19, _CYCLIC_VIEWS_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x19, [x19, _CYCLIC_VIEWS_BUFFER_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x8, _MAX_USERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_USERS@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w9, w8, asr #1
	cset	w0, le
	bl	_assert
Lloh8:
	adrp	x8, _R@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R@GOTPAGEOFF]
Lloh10:
	adrp	x9, _CV_r@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CV_r@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	ldr	x11, [x9]
Lloh14:
	adrp	x9, _CV_w@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CV_w@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x11, x9
	b.ls	LBB0_12
; %bb.2:
Lloh17:
	adrp	x10, _CViews@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CViews@GOTPAGEOFF]
Lloh19:
	ldr	x12, [x10]
	ldrsw	x10, [x19]
	add	x10, x12, x10, lsl #2
	mov	x13, x8
	cmp	x11, x10
	b.hs	LBB0_8
; %bb.3:
	add	x13, x11, #4
	cmp	x10, x13
	csel	x13, x10, x13, hi
	mvn	x14, x11
	add	x14, x13, x14
	mov	x13, x8
	cmp	x14, #28
	b.lo	LBB0_7
; %bb.4:
	lsr	x13, x14, #2
	add	x14, x13, #1
	and	x15, x14, #0x7ffffffffffffff8
	add	x13, x8, x15, lsl #3
	add	x16, x11, x15, lsl #2
	add	x17, x8, #32
	add	x11, x11, #16
	mov	x0, x15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d0, d1, [x11, #-16]
	ldp	d2, d3, [x11], #32
	sshll.2d	v0, v0, #0
	sshll.2d	v1, v1, #0
	sshll.2d	v2, v2, #0
	sshll.2d	v3, v3, #0
	stp	q0, q1, [x17, #-32]
	stp	q2, q3, [x17], #64
	subs	x0, x0, #8
	b.ne	LBB0_5
; %bb.6:
	mov	x11, x16
	cmp	x14, x15
	b.eq	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x14, [x11], #4
	str	x14, [x13], #8
	cmp	x11, x10
	b.lo	LBB0_7
LBB0_8:
	cmp	x12, x9
	b.hs	LBB0_18
; %bb.9:
	add	x10, x12, #4
	cmp	x9, x10
	csel	x10, x9, x10, hi
	mvn	x11, x12
	add	x10, x10, x11
	cmp	x10, #28
	b.hs	LBB0_19
; %bb.10:
	mov	x10, x13
	mov	x11, x12
	b	LBB0_22
LBB0_11:
Lloh20:
	adrp	x8, _R_cnt@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
Lloh22:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_get_recent_views_num
LBB0_12:
	mov	x10, x8
	b.hs	LBB0_23
; %bb.13:
	add	x10, x11, #4
	cmp	x9, x10
	csel	x10, x9, x10, hi
	mvn	x12, x11
	add	x12, x10, x12
	mov	x10, x8
	cmp	x12, #28
	b.lo	LBB0_17
; %bb.14:
	lsr	x10, x12, #2
	add	x12, x10, #1
	and	x13, x12, #0x7ffffffffffffff8
	add	x10, x8, x13, lsl #3
	add	x14, x11, x13, lsl #2
	add	x15, x8, #32
	add	x11, x11, #16
	mov	x16, x13
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldp	d0, d1, [x11, #-16]
	ldp	d2, d3, [x11], #32
	sshll.2d	v0, v0, #0
	sshll.2d	v1, v1, #0
	sshll.2d	v2, v2, #0
	sshll.2d	v3, v3, #0
	stp	q0, q1, [x15, #-32]
	stp	q2, q3, [x15], #64
	subs	x16, x16, #8
	b.ne	LBB0_15
; %bb.16:
	mov	x11, x14
	cmp	x12, x13
	b.eq	LBB0_23
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x12, [x11], #4
	str	x12, [x10], #8
	cmp	x11, x9
	b.lo	LBB0_17
	b	LBB0_23
LBB0_18:
	mov	x10, x13
	b	LBB0_23
LBB0_19:
	lsr	x10, x10, #2
	add	x14, x10, #1
	and	x15, x14, #0x7ffffffffffffff8
	add	x10, x13, x15, lsl #3
	add	x11, x12, x15, lsl #2
	add	x13, x13, #32
	add	x12, x12, #16
	mov	x16, x15
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldp	d0, d1, [x12, #-16]
	ldp	d2, d3, [x12], #32
	sshll.2d	v0, v0, #0
	sshll.2d	v1, v1, #0
	sshll.2d	v2, v2, #0
	sshll.2d	v3, v3, #0
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x16, x16, #8
	b.ne	LBB0_20
; %bb.21:
	cmp	x14, x15
	b.eq	LBB0_23
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x12, [x11], #4
	str	x12, [x10], #8
	cmp	x11, x9
	b.lo	LBB0_22
LBB0_23:
	sub	x8, x10, x8
	lsr	x0, x8, #3
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_postprocess_recent_list
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_limit,4,2                    ; @Q_limit
	.comm	_R_cnt,8,3                      ; @R_cnt
	.comm	_CYCLIC_VIEWS_BUFFER_SIZE,4,2   ; @CYCLIC_VIEWS_BUFFER_SIZE
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_R,8,3                          ; @R
	.comm	_CV_r,8,3                       ; @CV_r
	.comm	_CV_w,8,3                       ; @CV_w
	.comm	_CViews,8,3                     ; @CViews
.subsections_via_symbols
