	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_recent_ad_viewers      ## -- Begin function compute_recent_ad_viewers
	.p2align	4, 0x90
_compute_recent_ad_viewers:             ## @compute_recent_ad_viewers
	.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, %ebx
	movq	_CYCLIC_VIEWS_BUFFER_SIZE@GOTPCREL(%rip), %r14
	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, (%r14)
	setle	%dil
	callq	_assert
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_CV_r@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_CV_w@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpq	%r9, %rdx
	jbe	LBB0_1
## %bb.7:
	movq	_CViews@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movslq	(%r14), %rax
	leaq	(%rsi,%rax,8), %rax
	movq	%r8, %rdi
	cmpq	%rax, %rdx
	jae	LBB0_12
## %bb.8:
	movq	%r8, %rdi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$8, %rdx
	cmpq	%rax, %rdx
	jae	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rdx)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	4(%rdx), %rcx
	movq	%rcx, (%rdi)
	addq	$8, %rdi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$8, %rsi
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r9, %rsi
	jae	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%ebx, (%rsi)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movslq	4(%rsi), %rax
	movq	%rax, (%rdi)
	addq	$8, %rdi
	jmp	LBB0_15
LBB0_1:
	movq	%r8, %rdi
	jae	LBB0_6
## %bb.2:
	movq	%r8, %rdi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rdx
	cmpq	%r9, %rdx
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rdx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	4(%rdx), %rax
	movq	%rax, (%rdi)
	addq	$8, %rdi
	jmp	LBB0_5
LBB0_6:
	subq	%r8, %rdi
	shrq	$3, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_postprocess_recent_list        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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_ad_viewers      ; -- Begin function compute_recent_ad_viewers
	.p2align	2
_compute_recent_ad_viewers:             ; @compute_recent_ad_viewers
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _CYCLIC_VIEWS_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CYCLIC_VIEWS_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x8, _MAX_USERS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_USERS@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w9, w8, asr #1
	cset	w0, le
	bl	_assert
Lloh5:
	adrp	x8, _R@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R@GOTPAGEOFF]
Lloh7:
	adrp	x9, _CV_r@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CV_r@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	ldr	x11, [x9]
Lloh11:
	adrp	x9, _CV_w@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CV_w@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x11, x9
	b.ls	LBB0_10
; %bb.1:
Lloh14:
	adrp	x10, _CViews@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CViews@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x10]
	ldrsw	x10, [x20]
	add	x13, x12, x10, lsl #3
	mov	x10, x8
	cmp	x11, x13
	b.hs	LBB0_7
; %bb.2:
	mov	x10, x8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #8
	cmp	x11, x13
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x11]
	cmp	w14, w19
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x14, [x11, #4]
	str	x14, [x10], #8
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x12, x12, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x12, x9
	b.hs	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w11, [x12]
	cmp	w11, w19
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x11, [x12, #4]
	str	x11, [x10], #8
	b	LBB0_6
LBB0_10:
	mov	x10, x8
	b.hs	LBB0_15
; %bb.11:
	mov	x10, x8
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x11, x11, #8
	cmp	x11, x9
	b.hs	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	cmp	w12, w19
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrsw	x12, [x11, #4]
	str	x12, [x10], #8
	b	LBB0_12
LBB0_15:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.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
