	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function incr_ad_views
_incr_ad_views:                         ## @incr_ad_views
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	xorl	%esi, %esi
	callq	_get_ad_f
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_ad_is_ancient
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_get_ad_f
	movq	%rax, %r12
LBB0_3:
	movq	%r12, %rdi
	callq	_load_ancient_ad
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	cmpl	$1048575, %r14d                 ## imm = 0xFFFFF
	ja	LBB0_12
## %bb.4:
	addl	%r14d, (%r12)
	addl	%r14d, 4(%r12)
	movq	_tot_views@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.5:
	movl	8(%r12), %eax
	movq	_ADF_ANYVIEWS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	_ADF_OLDVIEWS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r12)
LBB0_7:
	movq	_AdStats@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	callq	_likely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%rax), %xmm0
	divsd	(%rax), %xmm0
	cvtsi2sd	%r14d, %xmm1
	movdqu	12(%r12), %xmm2
	cvtdq2pd	%xmm2, %xmm3
	pshufd	$238, %xmm2, %xmm2              ## xmm2 = xmm2[2,3,2,3]
	cvtdq2pd	%xmm2, %xmm2
	mulsd	%xmm0, %xmm1
	mulsd	%xmm1, %xmm0
	movddup	%xmm0, %xmm0                    ## xmm0 = xmm0[0,0]
	addpd	%xmm2, %xmm0
	movddup	%xmm1, %xmm1                    ## xmm1 = xmm1[0,0]
	addpd	%xmm3, %xmm1
	cvttpd2dq	%xmm0, %xmm0
	cvttpd2dq	%xmm1, %xmm1
	unpcklpd	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movupd	%xmm1, 12(%r12)
LBB0_9:
	movq	32(%r12), %rax
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:
	movl	%r14d, %ecx
	imulq	%rcx, %rax
	subq	%rax, 40(%r12)
	movq	_tot_click_money@GOTPCREL(%rip), %rcx
	subq	%rax, (%rcx)
LBB0_11:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_compute_estimated_gain         ## TAILCALL
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tot_views,4,2                  ## @tot_views
	.comm	_ADF_ANYVIEWS,4,2               ## @ADF_ANYVIEWS
	.comm	_ADF_OLDVIEWS,4,2               ## @ADF_OLDVIEWS
	.comm	_AdStats,8,3                    ## @AdStats
	.comm	_tot_click_money,8,3            ## @tot_click_money
	.no_dead_strip	_incr_ad_views
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function incr_ad_views
_incr_ad_views:                         ; @incr_ad_views
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	w1, #0
	bl	_get_ad_f
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_ad_is_ancient
	cbz	w0, LBB0_12
; %bb.2:
	mov	x0, x22
	mov	w1, #1
	bl	_get_ad_f
	mov	x20, x0
LBB0_3:
	mov	x0, x20
	bl	_load_ancient_ad
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	lsr	w8, w19, #20
	cbnz	w8, LBB0_12
; %bb.4:
	ldr	d0, [x20]
	dup.2s	v1, w19
	add.2s	v0, v0, v1
	str	d0, [x20]
Lloh0:
	adrp	x8, _tot_views@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tot_views@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	cbnz	w21, LBB0_9
; %bb.5:
	ldr	w8, [x20, #8]
Lloh2:
	adrp	x9, _ADF_ANYVIEWS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADF_ANYVIEWS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
Lloh5:
	adrp	x9, _ADF_OLDVIEWS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADF_OLDVIEWS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #8]
LBB0_7:
Lloh8:
	adrp	x21, _AdStats@GOTPAGE
Lloh9:
	ldr	x21, [x21, _AdStats@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	d0, [x8]
	bl	_likely
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x21]
	ldp	d1, d0, [x8]
	scvtf	d0, d0
	fdiv	d0, d0, d1
	scvtf	d1, w19
	ldp	s2, s3, [x20, #12]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmadd	d2, d1, d0, d2
	fcvtzs	w8, d2
	sshll.2d	v2, v3, #0
	scvtf	d2, d2
	fmadd	d2, d1, d0, d2
	fcvtzs	w9, d2
	fmul	d1, d0, d1
	ldp	s2, s3, [x20, #20]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fmadd	d2, d1, d0, d2
	fcvtzs	w10, d2
	stp	w8, w9, [x20, #12]
	sshll.2d	v2, v3, #0
	scvtf	d2, d2
	fmadd	d0, d1, d0, d2
	fcvtzs	w8, d0
	stp	w10, w8, [x20, #20]
LBB0_9:
	ldr	x8, [x20, #32]
	tbz	x8, #63, LBB0_11
; %bb.10:
	mov	w9, w19
	mul	x8, x8, x9
	ldr	x9, [x20, #40]
	sub	x9, x9, x8
	str	x9, [x20, #40]
Lloh10:
	adrp	x9, _tot_click_money@GOTPAGE
Lloh11:
	ldr	x9, [x9, _tot_click_money@GOTPAGEOFF]
	ldr	x10, [x9]
	sub	x8, x10, x8
	str	x8, [x9]
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_compute_estimated_gain
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_tot_views,4,2                  ; @tot_views
	.comm	_ADF_ANYVIEWS,4,2               ; @ADF_ANYVIEWS
	.comm	_ADF_OLDVIEWS,4,2               ; @ADF_OLDVIEWS
	.comm	_AdStats,8,3                    ; @AdStats
	.comm	_tot_click_money,8,3            ; @tot_click_money
	.no_dead_strip	_incr_ad_views
.subsections_via_symbols
