	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_ad_user_list
_compute_ad_user_list:                  ## @compute_ad_user_list
	.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, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_tot_userlists@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	8(%r14), %eax
	movq	_tot_userlists_size@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	callq	_free
	movq	$0, (%r14)
	movl	$0, 8(%r14)
LBB0_2:
	xorl	%eax, %eax
	callq	_process_lru_ads
	movq	_aux_userlist_tag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	28(%r14), %edi
	callq	_compile_query
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	_R_position@GOTPCREL(%rip), %r15
	movl	$-1, (%r15)
	movq	_MAX_USERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Q_limit@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_Q_order@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_global_birthday_in_query@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movl	24(%r14), %edi
	callq	_perform_query
	movl	%eax, %ebx
	movl	$0, (%r15)
	cmpq	$0, (%r12)
	movq	_ADF_PERIODIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_4
## %bb.3:
	orl	%eax, 20(%r14)
	jmp	LBB0_5
LBB0_4:
	notl	%eax
	andl	%eax, 20(%r14)
LBB0_5:
	testl	%ebx, %ebx
	setns	%al
	movq	_R_cnt@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	%ebx, 8(%r14)
	leal	(,%rbx,4), %r15d
	leal	4(,%rbx,4), %edi
	callq	_malloc
	movq	%rax, (%r14)
	movq	_R@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movslq	%ebx, %rcx
	movl	$2147483647, (%rax,%rcx,4)      ## imm = 0x7FFFFFFF
	movq	_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_user_creations@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_tot_userlists@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_tot_userlists_size@GOTPCREL(%rip), %rax
	addl	%ebx, (%rax)
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tot_userlists,4,2              ## @tot_userlists
	.comm	_tot_userlists_size,4,2         ## @tot_userlists_size
	.comm	_aux_userlist_tag,8,3           ## @aux_userlist_tag
	.comm	_R_position,4,2                 ## @R_position
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_Q_limit,4,2                    ## @Q_limit
	.comm	_Q_order,8,3                    ## @Q_order
	.comm	_global_birthday_in_query,8,3   ## @global_birthday_in_query
	.comm	_ADF_PERIODIC,4,2               ## @ADF_PERIODIC
	.comm	_R_cnt,4,2                      ## @R_cnt
	.comm	_R,4,2                          ## @R
	.comm	_now,4,2                        ## @now
	.comm	_user_creations,4,2             ## @user_creations
	.no_dead_strip	_compute_ad_user_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_ad_user_list
_compute_ad_user_list:                  ; @compute_ad_user_list
	.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, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x23, _tot_userlists@GOTPAGE
Lloh1:
	ldr	x23, [x23, _tot_userlists@GOTPAGEOFF]
Lloh2:
	adrp	x22, _tot_userlists_size@GOTPAGE
Lloh3:
	ldr	x22, [x22, _tot_userlists_size@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x23]
	sub	w8, w8, #1
	str	w8, [x23]
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	sub	w8, w9, w8
	str	w8, [x22]
	bl	_free
	str	xzr, [x19]
	str	wzr, [x19, #8]
LBB0_2:
	bl	_process_lru_ads
Lloh4:
	adrp	x8, _aux_userlist_tag@GOTPAGE
Lloh5:
	ldr	x8, [x8, _aux_userlist_tag@GOTPAGEOFF]
Lloh6:
	str	xzr, [x8]
	ldr	w0, [x19, #28]
	bl	_compile_query
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
Lloh7:
	adrp	x21, _R_position@GOTPAGE
Lloh8:
	ldr	x21, [x21, _R_position@GOTPAGEOFF]
	mov	w8, #-1
Lloh9:
	adrp	x9, _MAX_USERS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_USERS@GOTPAGEOFF]
	str	w8, [x21]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _Q_limit@GOTPAGE
Lloh13:
	ldr	x9, [x9, _Q_limit@GOTPAGEOFF]
Lloh14:
	adrp	x10, _Q_order@GOTPAGE
Lloh15:
	ldr	x10, [x10, _Q_order@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
Lloh17:
	str	xzr, [x10]
Lloh18:
	adrp	x24, _global_birthday_in_query@GOTPAGE
Lloh19:
	ldr	x24, [x24, _global_birthday_in_query@GOTPAGEOFF]
	str	xzr, [x24]
	ldr	w0, [x19, #24]
	bl	_perform_query
	mov	x20, x0
	str	wzr, [x21]
	ldr	x9, [x24]
Lloh20:
	adrp	x8, _ADF_PERIODIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ADF_PERIODIC@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [x19, #20]
	bic	w8, w9, w8
LBB0_5:
	str	w8, [x19, #20]
	cmp	w20, #0
Lloh23:
	adrp	x8, _R_cnt@GOTPAGE
Lloh24:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ccmp	w20, w8, #0, ge
	cset	w0, eq
	bl	_assert
	str	w20, [x19, #8]
	lsl	w21, w20, #2
	add	w0, w21, #4
	bl	_malloc
	str	x0, [x19]
Lloh26:
	adrp	x8, _R@GOTPAGE
Lloh27:
	ldr	x8, [x8, _R@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19]
	mov	w9, #2147483647
	str	w9, [x8, w20, sxtw #2]
Lloh29:
	adrp	x8, _now@GOTPAGE
Lloh30:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _user_creations@GOTPAGE
Lloh33:
	ldr	x9, [x9, _user_creations@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	ldr	w8, [x22]
	add	w8, w8, w20
	str	w8, [x22]
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_tot_userlists,4,2              ; @tot_userlists
	.comm	_tot_userlists_size,4,2         ; @tot_userlists_size
	.comm	_aux_userlist_tag,8,3           ; @aux_userlist_tag
	.comm	_R_position,4,2                 ; @R_position
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_Q_limit,4,2                    ; @Q_limit
	.comm	_Q_order,8,3                    ; @Q_order
	.comm	_global_birthday_in_query,8,3   ; @global_birthday_in_query
	.comm	_ADF_PERIODIC,4,2               ; @ADF_PERIODIC
	.comm	_R_cnt,4,2                      ; @R_cnt
	.comm	_R,4,2                          ; @R
	.comm	_now,4,2                        ; @now
	.comm	_user_creations,4,2             ; @user_creations
	.no_dead_strip	_compute_ad_user_list
.subsections_via_symbols
