	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function register_user_click
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_register_user_click:                   ## @register_user_click
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_LEV_TARG_CLICK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_LEV_TARG_CLICK_EXT@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	_targeting_disabled@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_38:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	16(%r13), %edi
	callq	_get_user
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_account_user_online
	movl	$-1, %ebx
	testq	%r15, %r15
	je	LBB0_38
## %bb.2:
	movl	8(%r13), %r12d
	testl	%r12d, %r12d
	jle	LBB0_38
## %bb.3:
	movq	_MAX_ADS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_38
## %bb.4:
	movl	%r12d, %edi
	callq	_get_ad
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movl	%r12d, %edi
	callq	_ad_is_ancient
	testl	%eax, %eax
	je	LBB0_38
## %bb.6:
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_get_ad_f
LBB0_7:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_AdSpace@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%r12d, %edx
	callq	_intree_lookup
	movl	$0, %ebx
	testq	%rax, %rax
	jne	LBB0_38
## %bb.8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_load_ancient_ad
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	_AdSpace@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	16(%r15), %rsi
	leaq	-48(%rbp), %rcx
	movl	%r12d, %edx
	callq	_intree_remove
	movq	%rax, 16(%r15)
	cmpq	$0, -48(%rbp)
	je	LBB0_12
## %bb.11:
	movq	_ADF_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ADF_ANCIENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	andl	(%rdx), %ecx
	xorl	%edi, %edi
	cmpl	%eax, %ecx
	sete	%dil
	callq	_assert
	movq	_active_ad_nodes@GOTPCREL(%rip), %rax
	decl	(%rax)
	jmp	LBB0_15
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_38
LBB0_12:
	movl	(%rbx), %edi
	movq	8(%r15), %rsi
	leaq	-48(%rbp), %rcx
	movl	%r12d, %edx
	callq	_intree_remove
	movq	%rax, 8(%r15)
	cmpq	$0, -48(%rbp)
	je	LBB0_14
## %bb.13:
	movq	_inactive_ad_nodes@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_ADF_ANCIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	andl	(%rcx), %eax
	sete	%dil
	callq	_assert
	jmp	LBB0_15
LBB0_14:
	movl	(%rbx), %edi
	callq	_new_intree_node
	movq	%rax, -48(%rbp)
	movl	(%rbx), %edi
	movq	%rax, %rsi
	callq	_TNODE
	movl	%r12d, (%rax)
	movl	(%rbx), %edi
	movq	-48(%rbp), %rsi
	callq	_TNODE
	movl	$0, 4(%rax)
LBB0_15:
	movl	(%rbx), %edi
	movq	-48(%rbp), %rsi
	callq	_TNODE
	movl	4(%rax), %r12d
	testl	%r12d, %r12d
	jg	LBB0_17
## %bb.16:
	sete	%al
	movzbl	%al, %edi
	callq	_assert
LBB0_17:
	movq	(%r13), %rax
	addq	$12, %r13
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	4(%rdx), %rcx
	cmpq	(%r14), %rax
	cmoveq	%r13, %rcx
	movl	(%rcx), %r13d
	movl	4(%rdx), %ebx
	movl	%ebx, %edi
	callq	_assert
	testl	%r13d, %r13d
	je	LBB0_19
## %bb.18:
	xorl	%r13d, %ebx
	js	LBB0_19
## %bb.20:
	movq	_AdSpace@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movq	-48(%rbp), %rdx
	callq	_intree_insert
	movl	%eax, (%r15)
	movq	_clicked_ad_nodes@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_ADF_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	jne	LBB0_22
## %bb.21:
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	jns	LBB0_38
LBB0_22:
	incl	68(%rcx)
	incl	64(%rcx)
	incl	60(%rcx)
	movupd	8(%rcx), %xmm0
	addpd	LCPI0_0(%rip), %xmm0
	movupd	%xmm0, 8(%rcx)
	movq	_MAX_AD_VIEWS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leal	-1(%rax), %ecx
	cmpl	%eax, %r12d
	cmovll	%r12d, %ecx
	movq	_AdStats@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%ecx, %r12
	movq	%r12, %rcx
	shlq	$4, %rcx
	xorl	%edi, %edi
	cmpl	$0, (%rax,%rcx)
	sete	%dil
	callq	_unlikely
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %r12d
	movq	(%r15), %rax
	movslq	%r12d, %rbx
	shlq	$4, %rbx
	movl	(%rax,%rbx), %edi
	callq	_likely
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_32
## %bb.23:
	movq	(%r15), %rax
	cvtsi2sdq	8(%rax,%rbx), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax,%rbx), %xmm0
	divsd	%xmm0, %xmm1
	movsd	24(%rdi), %xmm0                 ## xmm0 = mem[0],zero
	movq	%rdi, %rbx
	xorl	%edi, %edi
	movapd	%xmm1, -80(%rbp)                ## 16-byte Spill
	ucomisd	%xmm1, %xmm0
	setae	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movapd	-80(%rbp), %xmm0                ## 16-byte Reload
	mulsd	%xmm0, %xmm0
	movsd	32(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	xorl	%edi, %edi
	ucomisd	%xmm0, %xmm1
	setae	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_28
## %bb.25:
	movsd	24(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	movsd	40(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	movapd	-80(%rbp), %xmm3                ## 16-byte Reload
	subsd	%xmm3, %xmm0
	movsd	%xmm0, 24(%rbx)
	subsd	%xmm3, %xmm1
	movsd	%xmm1, 40(%rbx)
	movapd	LCPI0_1(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0]
	xorpd	%xmm3, %xmm0
	movapd	%xmm0, %xmm1
	mulsd	%xmm3, %xmm1
	movsd	32(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	addsd	%xmm1, %xmm2
	movsd	%xmm2, 32(%rbx)
	addsd	48(%rbx), %xmm1
	movsd	%xmm1, 48(%rbx)
	testl	%r13d, %r13d
	movq	%rbx, %rdi
	jle	LBB0_36
## %bb.26:
	movq	_ADF_NEWVIEWS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_33
## %bb.27:
	movapd	%xmm3, %xmm2
	movq	_total_sump0@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_total_sump1@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	subsd	%xmm3, %xmm1
	movsd	%xmm1, (%rax)
	movq	_total_sump2@GOTPCREL(%rip), %rax
	mulsd	%xmm3, %xmm0
	addsd	(%rax), %xmm0
	movsd	%xmm0, (%rax)
	jmp	LBB0_33
LBB0_19:
	notl	%r12d
	movq	_AdSpace@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	-48(%rbp), %rsi
	callq	_TNODE
	movl	%r12d, 4(%rax)
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	-48(%rbp), %rdx
	callq	_intree_insert
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
	movq	_clicked_ad_nodes@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_28:
	leaq	24(%rbx), %rax
	movupd	24(%rbx), %xmm0
	movupd	40(%rbx), %xmm1
	subpd	%xmm0, %xmm1
	movupd	%xmm1, 40(%rbx)
	testl	%r13d, %r13d
	movq	%rbx, %rdi
	jle	LBB0_31
## %bb.29:
	movq	_ADF_NEWVIEWS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_31
## %bb.30:
	movq	_total_sump0@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	movq	_total_sump1@GOTPCREL(%rip), %rcx
	movsd	(%rcx), %xmm1                   ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, (%rcx)
	movq	_total_sump2@GOTPCREL(%rip), %rcx
	movsd	(%rcx), %xmm1                   ## xmm1 = mem[0],zero
	unpckhpd	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	subsd	%xmm0, %xmm1
	movsd	%xmm1, (%rcx)
LBB0_31:
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, (%rax)
LBB0_32:
	testl	%r13d, %r13d
	jle	LBB0_36
LBB0_33:
	movq	_MONEY_SCALE@GOTPCREL(%rip), %rax
	imull	(%rax), %r13d
	addl	%r13d, 56(%rdi)
	movq	_tot_click_money@GOTPCREL(%rip), %rax
	addl	%r13d, (%rax)
	testl	%r12d, %r12d
	jle	LBB0_36
## %bb.34:
	movq	_ADF_NEWVIEWS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_36
## %bb.35:
	movq	8(%r15), %rax
	incl	(%rax)
	movq	(%r15), %rcx
	incq	8(%rcx)
	movl	(%r14), %edx
	leal	-1(%rdx), %esi
	cmpl	%edx, %r12d
	cmovll	%r12d, %esi
	movslq	%esi, %rdx
	incl	(%rax,%rdx,4)
	shlq	$4, %rdx
	incq	8(%rcx,%rdx)
LBB0_36:
	callq	_compute_estimated_gain
	movl	$1, %ebx
	movq	_tot_clicks@GOTPCREL(%rip), %rax
LBB0_37:
	incl	(%rax)
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_LEV_TARG_CLICK,8,3             ## @LEV_TARG_CLICK
	.comm	_LEV_TARG_CLICK_EXT,8,3         ## @LEV_TARG_CLICK_EXT
	.comm	_targeting_disabled,8,3         ## @targeting_disabled
	.comm	_MAX_ADS,4,2                    ## @MAX_ADS
	.comm	_AdSpace,4,2                    ## @AdSpace
	.comm	_ADF_ON,4,2                     ## @ADF_ON
	.comm	_ADF_ANCIENT,4,2                ## @ADF_ANCIENT
	.comm	_active_ad_nodes,4,2            ## @active_ad_nodes
	.comm	_inactive_ad_nodes,4,2          ## @inactive_ad_nodes
	.comm	_clicked_ad_nodes,4,2           ## @clicked_ad_nodes
	.comm	_MAX_AD_VIEWS,4,2               ## @MAX_AD_VIEWS
	.comm	_AdStats,16,3                   ## @AdStats
	.comm	_ADF_NEWVIEWS,4,2               ## @ADF_NEWVIEWS
	.comm	_total_sump0,4,2                ## @total_sump0
	.comm	_total_sump1,8,3                ## @total_sump1
	.comm	_total_sump2,8,3                ## @total_sump2
	.comm	_MONEY_SCALE,4,2                ## @MONEY_SCALE
	.comm	_tot_click_money,4,2            ## @tot_click_money
	.comm	_tot_clicks,4,2                 ## @tot_clicks
	.no_dead_strip	_register_user_click
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_user_click
_register_user_click:                   ; @register_user_click
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _LEV_TARG_CLICK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LEV_TARG_CLICK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x23, _LEV_TARG_CLICK_EXT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _LEV_TARG_CLICK_EXT@GOTPAGEOFF]
	ldr	x9, [x23]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
Lloh5:
	adrp	x8, _targeting_disabled@GOTPAGE
Lloh6:
	ldr	x8, [x8, _targeting_disabled@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	ldr	w0, [x21, #16]
	bl	_get_user
	mov	x20, x0
	bl	_account_user_online
	mov	w0, #-1
	cbz	x20, LBB0_2
; %bb.4:
	ldr	w22, [x21, #8]
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.5:
Lloh8:
	adrp	x8, _MAX_ADS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_ADS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ge	LBB0_2
; %bb.6:
	mov	x0, x22
	bl	_get_ad
	mov	x19, x0
	cbnz	x0, LBB0_9
; %bb.7:
	mov	x0, x22
	bl	_ad_is_ancient
	cbz	w0, LBB0_13
; %bb.8:
	mov	x0, x22
	mov	w1, #1
	bl	_get_ad_f
	mov	x19, x0
LBB0_9:
Lloh11:
	adrp	x24, _AdSpace@GOTPAGE
Lloh12:
	ldr	x24, [x24, _AdSpace@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [x20]
	mov	x2, x22
	bl	_intree_lookup
	cbnz	x0, LBB0_1
; %bb.10:
	mov	x0, x19
	bl	_load_ancient_ad
	tbnz	w0, #31, LBB0_2
; %bb.11:
	ldr	w0, [x24]
	ldr	x1, [x20, #16]
	add	x3, sp, #8
	mov	x2, x22
	bl	_intree_remove
	str	x0, [x20, #16]
	ldr	x8, [sp, #8]
Lloh13:
	adrp	x25, _ADF_ON@GOTPAGE
Lloh14:
	ldr	x25, [x25, _ADF_ON@GOTPAGEOFF]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _ADF_ANCIENT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ADF_ANCIENT@GOTPAGEOFF]
	ldr	w10, [x25]
Lloh17:
	ldr	w9, [x9]
	orr	w9, w9, w10
	and	w8, w9, w8
	cmp	w8, w10
	cset	w0, eq
	bl	_assert
Lloh18:
	adrp	x8, _active_ad_nodes@GOTPAGE
Lloh19:
	ldr	x8, [x8, _active_ad_nodes@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	b	LBB0_17
LBB0_13:
	mov	w0, #-1
	b	LBB0_2
LBB0_14:
	ldr	w0, [x24]
	ldr	x1, [x20, #8]
	add	x3, sp, #8
	mov	x2, x22
	bl	_intree_remove
	str	x0, [x20, #8]
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_16
; %bb.15:
Lloh20:
	adrp	x8, _inactive_ad_nodes@GOTPAGE
Lloh21:
	ldr	x8, [x8, _inactive_ad_nodes@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x19]
Lloh22:
	adrp	x9, _ADF_ANCIENT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ADF_ANCIENT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_assert
	b	LBB0_17
LBB0_16:
	ldr	w0, [x24]
	bl	_new_intree_node
	mov	x1, x0
	str	x0, [sp, #8]
	ldr	w0, [x24]
	bl	_TNODE
	str	w22, [x0]
	ldr	w0, [x24]
	ldr	x1, [sp, #8]
	bl	_TNODE
	str	wzr, [x0, #4]
LBB0_17:
	ldr	w0, [x24]
	ldr	x1, [sp, #8]
	bl	_TNODE
	ldr	w26, [x0, #4]
	cmp	w26, #0
	b.gt	LBB0_19
; %bb.18:
	cset	w0, eq
	bl	_assert
LBB0_19:
	ldr	x8, [x21], #12
	ldr	x9, [x23]
	mov	x10, x19
	ldr	w22, [x10, #4]!
	cmp	x8, x9
	csel	x8, x21, x10, eq
	ldr	w21, [x8]
	mov	x0, x22
	bl	_assert
	cbz	w21, LBB0_29
; %bb.20:
	eor	w8, w22, w21
	tbnz	w8, #31, LBB0_29
; %bb.21:
	ldr	w0, [x24]
	ldr	w1, [x20]
	ldr	x2, [sp, #8]
	bl	_intree_insert
	str	w0, [x20]
Lloh25:
	adrp	x8, _clicked_ad_nodes@GOTPAGE
Lloh26:
	ldr	x8, [x8, _clicked_ad_nodes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_23
; %bb.22:
	tbz	w21, #31, LBB0_1
LBB0_23:
	ldr	w8, [x19, #68]
	add	w8, w8, #1
	str	w8, [x19, #68]
	ldur	d0, [x19, #60]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	stur	d0, [x19, #60]
	ldur	q0, [x19, #8]
	fmov.2d	v1, #1.00000000
	fadd.2d	v0, v0, v1
	stur	q0, [x19, #8]
Lloh27:
	adrp	x20, _MAX_AD_VIEWS@GOTPAGE
Lloh28:
	ldr	x20, [x20, _MAX_AD_VIEWS@GOTPAGEOFF]
	ldr	w8, [x20]
	sub	w9, w8, #1
	cmp	w26, w8
	csel	w23, w26, w9, lt
Lloh29:
	adrp	x22, _AdStats@GOTPAGE
Lloh30:
	ldr	x22, [x22, _AdStats@GOTPAGEOFF]
	ldr	x8, [x22]
	sbfiz	x9, x23, #4, #32
	ldr	w8, [x8, x9]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csel	w8, w23, wzr, eq
	ldr	x9, [x22]
	sxtw	x23, w8
	sbfiz	x8, x8, #4, #32
	ldr	w0, [x9, x8]
	bl	_likely
	cbz	x0, LBB0_34
; %bb.24:
	ldr	x8, [x22]
	add	x8, x8, x23, lsl #4
	ldr	d0, [x8, #8]
	scvtf	d0, d0
	ldr	s1, [x8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fdiv	d8, d0, d1
	mov	x24, x19
	ldr	d0, [x24, #24]!
	fcmp	d8, d0
	cset	w0, ls
	bl	_likely
	cbz	x0, LBB0_30
; %bb.25:
	fmul	d0, d8, d8
	ldr	d1, [x19, #32]
	fcmp	d0, d1
	cset	w0, ls
	bl	_likely
	cbz	x0, LBB0_30
; %bb.26:
	ldp	d0, d1, [x19, #24]
	fsub	d0, d0, d8
	ldp	d2, d3, [x19, #40]
	fsub	d2, d2, d8
	fmsub	d1, d8, d8, d1
	stp	d0, d1, [x19, #24]
	fmsub	d0, d8, d8, d3
	stp	d2, d0, [x19, #40]
	cmp	w21, #1
	b.lt	LBB0_38
; %bb.27:
	ldr	w8, [x19]
Lloh31:
	adrp	x9, _ADF_NEWVIEWS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ADF_NEWVIEWS@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
; %bb.28:
	fneg	d0, d8
Lloh34:
	adrp	x8, _total_sump0@GOTPAGE
Lloh35:
	ldr	x8, [x8, _total_sump0@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh36:
	adrp	x8, _total_sump1@GOTPAGE
Lloh37:
	ldr	x8, [x8, _total_sump1@GOTPAGEOFF]
	ldr	d1, [x8]
	fsub	d1, d1, d8
	str	d1, [x8]
Lloh38:
	adrp	x8, _total_sump2@GOTPAGE
Lloh39:
	ldr	x8, [x8, _total_sump2@GOTPAGEOFF]
	ldr	d1, [x8]
	fmadd	d0, d0, d8, d1
	str	d0, [x8]
	b	LBB0_35
LBB0_29:
	mvn	w19, w26
	ldr	w0, [x24]
	ldr	x1, [sp, #8]
	bl	_TNODE
	str	w19, [x0, #4]
	ldr	w0, [x24]
	ldr	w1, [x20]
	ldr	x2, [sp, #8]
	bl	_intree_insert
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
Lloh40:
	adrp	x8, _clicked_ad_nodes@GOTPAGE
Lloh41:
	ldr	x8, [x8, _clicked_ad_nodes@GOTPAGEOFF]
	b	LBB0_39
LBB0_30:
	ldur	q0, [x19, #24]
	ldur	q1, [x19, #40]
	fsub.2d	v1, v1, v0
	stur	q1, [x19, #40]
	cmp	w21, #1
	b.lt	LBB0_33
; %bb.31:
	ldr	w8, [x19]
Lloh42:
	adrp	x9, _ADF_NEWVIEWS@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ADF_NEWVIEWS@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_33
; %bb.32:
Lloh45:
	adrp	x8, _total_sump0@GOTPAGE
Lloh46:
	ldr	x8, [x8, _total_sump0@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh47:
	adrp	x8, _total_sump1@GOTPAGE
Lloh48:
	ldr	x8, [x8, _total_sump1@GOTPAGEOFF]
	ldr	d1, [x8]
	fsub	d1, d1, d0
	str	d1, [x8]
Lloh49:
	adrp	x8, _total_sump2@GOTPAGE
Lloh50:
	ldr	x8, [x8, _total_sump2@GOTPAGEOFF]
	ldr	d1, [x8]
	mov	d0, v0[1]
	fsub	d0, d1, d0
	str	d0, [x8]
LBB0_33:
	stp	xzr, xzr, [x24]
LBB0_34:
	cmp	w21, #1
	b.lt	LBB0_38
LBB0_35:
Lloh51:
	adrp	x8, _MONEY_SCALE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MONEY_SCALE@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	mul	w8, w8, w21
	ldr	w9, [x19, #56]
	add	w9, w9, w8
	str	w9, [x19, #56]
Lloh54:
	adrp	x9, _tot_click_money@GOTPAGE
Lloh55:
	ldr	x9, [x9, _tot_click_money@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	cmp	w23, #1
	b.lt	LBB0_38
; %bb.36:
	ldr	w8, [x19]
Lloh56:
	adrp	x9, _ADF_NEWVIEWS@GOTPAGE
Lloh57:
	ldr	x9, [x9, _ADF_NEWVIEWS@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_38
; %bb.37:
	ldp	x9, x8, [x22]
	ldr	w10, [x8]
	add	w10, w10, #1
	str	w10, [x8]
	ldr	x10, [x9, #8]
	add	x10, x10, #1
	str	x10, [x9, #8]
	ldr	w10, [x20]
	sub	w11, w10, #1
	cmp	w23, w10
	csel	w10, w23, w11, lt
	sbfiz	x11, x10, #2, #32
	ldr	w12, [x8, x11]
	add	w12, w12, #1
	str	w12, [x8, x11]
	add	x8, x9, w10, sxtw #4
	ldr	x9, [x8, #8]
	add	x9, x9, #1
	str	x9, [x8, #8]
LBB0_38:
	mov	x0, x19
	bl	_compute_estimated_gain
	mov	w0, #1
Lloh59:
	adrp	x8, _tot_clicks@GOTPAGE
Lloh60:
	ldr	x8, [x8, _tot_clicks@GOTPAGEOFF]
LBB0_39:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_LEV_TARG_CLICK,8,3             ; @LEV_TARG_CLICK
	.comm	_LEV_TARG_CLICK_EXT,8,3         ; @LEV_TARG_CLICK_EXT
	.comm	_targeting_disabled,8,3         ; @targeting_disabled
	.comm	_MAX_ADS,4,2                    ; @MAX_ADS
	.comm	_AdSpace,4,2                    ; @AdSpace
	.comm	_ADF_ON,4,2                     ; @ADF_ON
	.comm	_ADF_ANCIENT,4,2                ; @ADF_ANCIENT
	.comm	_active_ad_nodes,4,2            ; @active_ad_nodes
	.comm	_inactive_ad_nodes,4,2          ; @inactive_ad_nodes
	.comm	_clicked_ad_nodes,4,2           ; @clicked_ad_nodes
	.comm	_MAX_AD_VIEWS,4,2               ; @MAX_AD_VIEWS
	.comm	_AdStats,16,3                   ; @AdStats
	.comm	_ADF_NEWVIEWS,4,2               ; @ADF_NEWVIEWS
	.comm	_total_sump0,4,2                ; @total_sump0
	.comm	_total_sump1,8,3                ; @total_sump1
	.comm	_total_sump2,8,3                ; @total_sump2
	.comm	_MONEY_SCALE,4,2                ; @MONEY_SCALE
	.comm	_tot_click_money,4,2            ; @tot_click_money
	.comm	_tot_clicks,4,2                 ; @tot_clicks
	.no_dead_strip	_register_user_click
.subsections_via_symbols
