	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_register_user_click         ## -- Begin function do_register_user_click
	.p2align	4, 0x90
_do_register_user_click:                ## @do_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movl	%edi, %r14d
	movl	%esi, %edi
	xorl	%esi, %esi
	callq	_get_ad_f
	movq	%rax, %r13
	movl	%r14d, %edi
	callq	_conv_user_id
	movl	%eax, %ebx
	movq	_verbosity@GOTPCREL(%rip), %r15
	cmpl	$2, (%r15)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.5:
	testq	%r13, %r13
	je	LBB0_18
## %bb.6:
	movq	_ADF_ANCIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_10
## %bb.7:
	movq	%r13, %rdi
	callq	_ad_became_ancient
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movl	4(%r13), %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jns	LBB0_13
## %bb.9:
	testl	%eax, %eax
	jle	LBB0_13
LBB0_10:
	cmpl	$0, (%r15)
	jle	LBB0_19
## %bb.11:
	movl	4(%r13), %r9d
	jmp	LBB0_12
LBB0_3:
	cmpl	$0, (%r15)
	jle	LBB0_19
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_19
LBB0_18:
	movl	$-1, %r9d
	cmpl	$0, (%r15)
	jle	LBB0_19
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_19:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %eax
	je	LBB0_15
## %bb.14:
	andl	%ebx, %eax
	js	LBB0_15
## %bb.16:
	movq	_LEV_TARG_CLICK_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$16, %esi
	movl	%r12d, %edx
	callq	_alloc_log_event
	movl	%ebx, (%rax)
	jmp	LBB0_17
LBB0_15:
	movq	_LEV_TARG_CLICK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$12, %esi
	movl	%r12d, %edx
	callq	_alloc_log_event
LBB0_17:
	movl	%r14d, 4(%rax)
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_register_user_click            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"user %d clicks on ad %d, price %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"error: unknown user %d, click neglected\n"

	.comm	_ADF_ANCIENT,4,2                ## @ADF_ANCIENT
L_.str.2:                               ## @.str.2
	.asciz	"warning: user %d clicks on ad %d, price %d; known ad price is %d, click ignored\n"

	.comm	_LEV_TARG_CLICK,4,2             ## @LEV_TARG_CLICK
	.comm	_LEV_TARG_CLICK_EXT,4,2         ## @LEV_TARG_CLICK_EXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_register_user_click         ; -- Begin function do_register_user_click
	.p2align	2
_do_register_user_click:                ; @do_register_user_click
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #0
	bl	_get_ad_f
	mov	x22, x0
	mov	x0, x19
	bl	_conv_user_id
	mov	x23, x0
Lloh0:
	adrp	x24, _verbosity@GOTPAGE
Lloh1:
	ldr	x24, [x24, _verbosity@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x8, x21
	mov	x9, x20
	stp	x9, x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_2:
	tbnz	w23, #31, LBB0_10
; %bb.3:
	cbz	x22, LBB0_12
; %bb.4:
	ldr	w8, [x22]
Lloh7:
	adrp	x9, _ADF_ANCIENT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ADF_ANCIENT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x22
	bl	_ad_became_ancient
	cbnz	x0, LBB0_8
; %bb.6:
	ldr	w8, [x22, #4]
	tbz	w21, #31, LBB0_17
; %bb.7:
	cmp	w8, #1
	b.lt	LBB0_17
LBB0_8:
	ldr	w8, [x24]
	cmp	w8, #0
	b.le	LBB0_16
; %bb.9:
	ldr	w8, [x22, #4]
	b	LBB0_14
LBB0_10:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.11:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_12:
	ldr	w8, [x24]
	cmp	w8, #0
	b.le	LBB0_16
; %bb.13:
	mov	w8, #-1
LBB0_14:
Lloh15:
	adrp	x9, _stderr@GOTPAGE
Lloh16:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	stp	x21, x8, [sp, #8]
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x2, x19
	bl	_fprintf
LBB0_16:
	mov	w0, #-1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	cmp	w8, w21
	b.eq	LBB0_20
; %bb.18:
	and	w8, w8, w21
	tbnz	w8, #31, LBB0_20
; %bb.19:
Lloh20:
	adrp	x8, _LEV_TARG_CLICK_EXT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LEV_TARG_CLICK_EXT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	w1, #16
	mov	x2, x20
	bl	_alloc_log_event
	str	w21, [x0]
	b	LBB0_21
LBB0_20:
Lloh23:
	adrp	x8, _LEV_TARG_CLICK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LEV_TARG_CLICK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	w1, #12
	mov	x2, x20
	bl	_alloc_log_event
LBB0_21:
	str	w19, [x0, #4]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_register_user_click
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"user %d clicks on ad %d, price %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"error: unknown user %d, click neglected\n"

	.comm	_ADF_ANCIENT,4,2                ; @ADF_ANCIENT
l_.str.2:                               ; @.str.2
	.asciz	"warning: user %d clicks on ad %d, price %d; known ad price is %d, click ignored\n"

	.comm	_LEV_TARG_CLICK,4,2             ; @LEV_TARG_CLICK
	.comm	_LEV_TARG_CLICK_EXT,4,2         ; @LEV_TARG_CLICK_EXT
.subsections_via_symbols
