	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function compute_user_ads
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x41ddcd6500000000              ## double 2.0E+9
LCPI0_2:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_compute_user_ads
	.p2align	4, 0x90
_compute_user_ads:                      ## @compute_user_ads
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %ebx
	callq	_get_user
	movl	$-1, %ecx
	testl	%ebx, %ebx
	jle	LBB0_21
## %bb.1:
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movl	%r12d, %r9d
	movq	_MAX_USERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	sarl	$2, %r12d
	cmpl	%ebx, %r12d
	cmovgel	%ebx, %r12d
	movl	%r13d, %edx
	shrl	$4, %edx
	andl	$1, %edx
	movq	%r14, %r8
	testb	$8, %r13b
	jne	LBB0_3
## %bb.4:
	movq	_heap_push_user_ad_std@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_heap_push_user_ad_ext@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movq	_heap_push_user_ad@GOTPCREL(%rip), %rsi
	movl	%ecx, (%rsi)
	movq	___use_factor@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	movq	___use_views_limit@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	movq	___exclude_ad_id@GOTPCREL(%rip), %rsi
	movzbl	%r15b, %edi
	orl	%edx, %edi
	movq	_ADF_SITES_MASK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	$0, (%rsi)
	movq	___and_mask@GOTPCREL(%rip), %r15
	movl	%edi, (%r15)
	movzbl	%r9b, %esi
	orl	%edx, %esi
	shll	%cl, %esi
	movq	___xor_mask@GOTPCREL(%rip), %r14
	movl	%esi, (%r14)
	movq	___cat_mask@GOTPCREL(%rip), %rbx
	movq	%r8, (%rbx)
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_build_user_ad_heap
	movq	___use_factor@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_ADF_SITES_MASK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$254, %eax
	shll	%cl, %eax
	movq	___use_views_limit@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movl	%eax, (%r15)
	movl	$0, (%r14)
	movq	$-1, (%rbx)
	movq	_HN@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	setns	%al
	cmpl	%r12d, %ebx
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	testb	$7, %r13b
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_6
## %bb.9:
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15), %ecx
	movl	%r13d, %r12d
	andl	$1, %r12d
	leal	1(%r12), %edx
	movl	%r13d, %esi
	shrl	%esi
	andl	$1, %esi
	btl	$2, %r13d
	adcl	%edx, %esi
	imull	%ecx, %esi
	movslq	%esi, %rdx
	leaq	(%rax,%rdx,4), %r14
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.10:
	movq	_H@GOTPCREL(%rip), %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, -4(%r14)
	addq	$-4, %r14
	xorl	%eax, %eax
	callq	_heap_pop
	movq	_HN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_18
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	24(%rax), %rbx
	testb	$4, %r13b
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	testb	$2, %r13b
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	testl	%r12d, %r12d
	je	LBB0_17
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	32(%rax), %eax
	movl	%eax, -4(%r14)
	addq	$-4, %r14
	testb	$2, %r13b
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_get_ad
	movl	(%rax), %eax
	movl	%eax, -4(%r14)
	addq	$-4, %r14
	testl	%r12d, %r12d
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r15), %rax
	movsd	40(%rax), %xmm0                 ## xmm0 = mem[0],zero
	movq	_EXPECTED_GAIN_USERADS_MULTIPLIER@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	movapd	%xmm0, %xmm1
	addsd	LCPI0_0(%rip), %xmm1
	movsd	LCPI0_1(%rip), %xmm4            ## xmm4 = mem[0],zero
	movapd	%xmm4, %xmm2
	cmpltsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm3
	andnpd	%xmm1, %xmm3
	andpd	%xmm4, %xmm2
	orpd	%xmm3, %xmm2
	cmpltsd	LCPI0_2(%rip), %xmm0
	andnpd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, -4(%r14)
	addq	$-4, %r14
	jmp	LBB0_17
LBB0_18:
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_19:
	xorl	%edi, %edi
	cmpq	%rax, %r14
	sete	%dil
	callq	_assert
	jmp	LBB0_20
LBB0_6:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.7:
	movq	_H@GOTPCREL(%rip), %r14
	movq	_R@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movl	24(%rcx), %ecx
	movq	(%rbx), %rdx
	decl	%eax
	movl	%ecx, (%rdx,%rax,4)
	xorl	%eax, %eax
	callq	_heap_pop
	movl	(%r15), %eax
	testl	%eax, %eax
	jg	LBB0_8
LBB0_20:
	movq	_R_cnt@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_21:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_heap_push_user_ad_ext,4,2      ## @heap_push_user_ad_ext
	.comm	_heap_push_user_ad_std,4,2      ## @heap_push_user_ad_std
	.comm	_heap_push_user_ad,4,2          ## @heap_push_user_ad
	.comm	___use_factor,4,2               ## @__use_factor
	.comm	___use_views_limit,4,2          ## @__use_views_limit
	.comm	___exclude_ad_id,8,3            ## @__exclude_ad_id
	.comm	_ADF_SITES_MASK_SHIFT,4,2       ## @ADF_SITES_MASK_SHIFT
	.comm	___and_mask,4,2                 ## @__and_mask
	.comm	___xor_mask,4,2                 ## @__xor_mask
	.comm	___cat_mask,8,3                 ## @__cat_mask
	.comm	_HN,4,2                         ## @HN
	.comm	_R,8,3                          ## @R
	.comm	_H,8,3                          ## @H
	.comm	_EXPECTED_GAIN_USERADS_MULTIPLIER,8,3 ## @EXPECTED_GAIN_USERADS_MULTIPLIER
	.comm	_R_cnt,4,2                      ## @R_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_user_ads               ; -- Begin function compute_user_ads
	.p2align	2
_compute_user_ads:                      ; @compute_user_ads
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x24, x1
	bl	_get_user
	mov	w20, #-1
	cmp	w24, #1
	b.lt	LBB0_18
; %bb.1:
	cbz	x0, LBB0_18
; %bb.2:
Lloh0:
	adrp	x8, _MAX_USERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_USERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w8, #2
	cmp	w8, w24
	csel	w24, w8, w24, lt
	ubfx	w8, w19, #4, #1
Lloh3:
	adrp	x9, _heap_push_user_ad_ext@GOTPAGE
Lloh4:
	ldr	x9, [x9, _heap_push_user_ad_ext@GOTPAGEOFF]
Lloh5:
	adrp	x10, _heap_push_user_ad_std@GOTPAGE
Lloh6:
	ldr	x10, [x10, _heap_push_user_ad_std@GOTPAGEOFF]
	tst	w19, #0x8
	csel	x9, x10, x9, eq
Lloh7:
	adrp	x10, _heap_push_user_ad@GOTPAGE
Lloh8:
	ldr	x10, [x10, _heap_push_user_ad@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh9:
	str	w9, [x10]
Lloh10:
	adrp	x20, ___use_factor@GOTPAGE
Lloh11:
	ldr	x20, [x20, ___use_factor@GOTPAGEOFF]
	mov	w9, #1
	str	w9, [x20]
Lloh12:
	adrp	x25, ___use_views_limit@GOTPAGE
Lloh13:
	ldr	x25, [x25, ___use_views_limit@GOTPAGEOFF]
	str	w9, [x25]
Lloh14:
	adrp	x9, ___exclude_ad_id@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___exclude_ad_id@GOTPAGEOFF]
Lloh16:
	str	xzr, [x9]
	and	w9, w23, #0xff
	orr	w9, w8, w9
Lloh17:
	adrp	x23, _ADF_SITES_MASK_SHIFT@GOTPAGE
Lloh18:
	ldr	x23, [x23, _ADF_SITES_MASK_SHIFT@GOTPAGEOFF]
	ldr	w10, [x23]
	lsl	w9, w9, w10
Lloh19:
	adrp	x26, ___and_mask@GOTPAGE
Lloh20:
	ldr	x26, [x26, ___and_mask@GOTPAGEOFF]
	str	w9, [x26]
	and	w9, w22, #0xff
	orr	w8, w9, w8
	lsl	w8, w8, w10
Lloh21:
	adrp	x22, ___xor_mask@GOTPAGE
Lloh22:
	ldr	x22, [x22, ___xor_mask@GOTPAGEOFF]
	str	w8, [x22]
Lloh23:
	adrp	x27, ___cat_mask@GOTPAGE
Lloh24:
	ldr	x27, [x27, ___cat_mask@GOTPAGEOFF]
	str	x21, [x27]
	mov	x1, x24
	bl	_build_user_ad_heap
	str	wzr, [x20]
	str	wzr, [x25]
	ldr	w8, [x23]
	mov	w9, #254
	lsl	w8, w9, w8
	str	w8, [x26]
	str	wzr, [x22]
	mov	x8, #-1
	str	x8, [x27]
Lloh25:
	adrp	x22, _HN@GOTPAGE
Lloh26:
	ldr	x22, [x22, _HN@GOTPAGEOFF]
	ldr	w20, [x22]
	cmp	w20, #0
	ccmp	w20, w24, #0, ge
	cset	w0, le
	bl	_assert
	tst	w19, #0x7
	b.eq	LBB0_14
; %bb.3:
Lloh27:
	adrp	x24, _R@GOTPAGE
Lloh28:
	ldr	x24, [x24, _R@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w9, [x22]
	and	w25, w19, #0x1
	ubfx	w10, w19, #1, #1
	ubfx	w11, w19, #2, #1
	add	w10, w25, w10
	add	w10, w10, w11
	madd	w10, w9, w10, w9
	add	x23, x8, w10, sxtw #2
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.4:
Lloh29:
	adrp	x26, _H@GOTPAGE
Lloh30:
	ldr	x26, [x26, _H@GOTPAGEOFF]
Lloh31:
	adrp	x27, _EXPECTED_GAIN_USERADS_MULTIPLIER@GOTPAGE
Lloh32:
	ldr	x27, [x27, _EXPECTED_GAIN_USERADS_MULTIPLIER@GOTPAGEOFF]
	fmov	d8, #0.50000000
	mov	x28, #225833675390976
	movk	x28, #16861, lsl #48
	movi	d9, #0000000000000000
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w21, [x23, #-4]!
	bl	_heap_pop
	ldr	w8, [x22]
	cmp	w8, #0
	b.le	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x21, [x8, #24]
	tbnz	w19, #2, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w19, #1, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	w25, LBB0_5
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x8, #32]
	str	w8, [x23, #-4]!
	tbz	w19, #1, LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_get_ad
	ldr	w8, [x0]
	str	w8, [x23, #-4]!
	cbz	w25, LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	ldr	d0, [x8, #40]
	ldr	d1, [x27]
	fmul	d0, d0, d1
	fadd	d1, d0, d8
	fmov	d2, x28
	fcmp	d0, d2
	fcsel	d1, d2, d1, gt
	fcmp	d0, #0.0
	fcsel	d0, d9, d1, mi
	fcvtzs	w8, d0
	str	w8, [x23, #-4]!
	b	LBB0_5
LBB0_12:
	ldr	x8, [x24]
LBB0_13:
	cmp	x23, x8
	cset	w0, eq
	bl	_assert
	b	LBB0_17
LBB0_14:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:
Lloh33:
	adrp	x19, _H@GOTPAGE
Lloh34:
	ldr	x19, [x19, _H@GOTPAGEOFF]
Lloh35:
	adrp	x21, _R@GOTPAGE
Lloh36:
	ldr	x21, [x21, _R@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x9, [x9, #24]
	ldr	x10, [x21]
	sub	w8, w8, #1
	str	w9, [x10, w8, uxtw #2]
	bl	_heap_pop
	ldr	w8, [x22]
	cmp	w8, #0
	b.gt	LBB0_16
LBB0_17:
Lloh37:
	adrp	x8, _R_cnt@GOTPAGE
Lloh38:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
Lloh39:
	str	w20, [x8]
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_heap_push_user_ad_ext,4,2      ; @heap_push_user_ad_ext
	.comm	_heap_push_user_ad_std,4,2      ; @heap_push_user_ad_std
	.comm	_heap_push_user_ad,4,2          ; @heap_push_user_ad
	.comm	___use_factor,4,2               ; @__use_factor
	.comm	___use_views_limit,4,2          ; @__use_views_limit
	.comm	___exclude_ad_id,8,3            ; @__exclude_ad_id
	.comm	_ADF_SITES_MASK_SHIFT,4,2       ; @ADF_SITES_MASK_SHIFT
	.comm	___and_mask,4,2                 ; @__and_mask
	.comm	___xor_mask,4,2                 ; @__xor_mask
	.comm	___cat_mask,8,3                 ; @__cat_mask
	.comm	_HN,4,2                         ; @HN
	.comm	_R,8,3                          ; @R
	.comm	_H,8,3                          ; @H
	.comm	_EXPECTED_GAIN_USERADS_MULTIPLIER,8,3 ; @EXPECTED_GAIN_USERADS_MULTIPLIER
	.comm	_R_cnt,4,2                      ; @R_cnt
.subsections_via_symbols
