	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_perform_targeting           ## -- Begin function do_perform_targeting
	.p2align	4, 0x90
_do_perform_targeting:                  ## @do_perform_targeting
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movl	%esi, %r13d
	movl	%edi, %r12d
	movl	$1, %esi
	callq	_get_ad_f
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	callq	_fprintf
LBB0_2:
	movq	%r15, %rdi
	callq	_load_ancient_ad
	testl	%eax, %eax
	js	LBB0_18
## %bb.3:
	movq	_aux_userlist_tag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	%rbx, %rdi
	callq	_compile_query
	movq	%rax, %rcx
	movl	$-1, %eax
	testl	%r12d, %r12d
	jle	LBB0_18
## %bb.4:
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.5:
	testq	%rcx, %rcx
	jne	LBB0_18
## %bb.6:
	movq	_Qq@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_18
## %bb.7:
	testq	%r15, %r15
	je	LBB0_18
## %bb.8:
	movq	_MAX_QUERY_STRING_LEN@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpl	(%rcx), %edx
	jg	LBB0_18
## %bb.9:
	movq	%r14, %rcx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.10:
	addl	$-100001, %ecx                  ## imm = 0xFFFE795F
	cmpl	$899999, %ecx                   ## imm = 0xDBB9F
	ja	LBB0_18
LBB0_11:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
LBB0_14:
	movq	_LEV_TARG_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	leal	15(%r13), %esi
	movl	%r12d, %edx
	callq	_alloc_log_event
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movl	%r13d, 4(%r15)
	movl	8(%r15), %edi
	incl	%r13d
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	callq	_perform_targeting
	jmp	LBB0_15
LBB0_13:
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_do_ad_price_enable
LBB0_15:
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.16:
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_do_ad_set_factor
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
LBB0_17:
	movl	(%r15), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in do_perform_targeting(%d,%d,%d,'%s'):\n"

	.comm	_aux_userlist_tag,8,3           ## @aux_userlist_tag
	.comm	_Qq,4,2                         ## @Qq
	.comm	_MAX_QUERY_STRING_LEN,4,2       ## @MAX_QUERY_STRING_LEN
	.comm	_LEV_TARG_TARGET,4,2            ## @LEV_TARG_TARGET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_perform_targeting           ; -- Begin function do_perform_targeting
	.p2align	2
_do_perform_targeting:                  ; @do_perform_targeting
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	mov	w1, #1
	bl	_get_ad_f
	mov	x19, x0
	mov	x0, x22
	bl	_strlen
	mov	x24, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x22
	bl	_fprintf
LBB0_2:
	mov	x0, x19
	bl	_load_ancient_ad
	tbnz	w0, #31, LBB0_17
; %bb.3:
Lloh8:
	adrp	x8, _aux_userlist_tag@GOTPAGE
Lloh9:
	ldr	x8, [x8, _aux_userlist_tag@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
	mov	x0, x22
	bl	_compile_query
	mov	x8, x0
	mov	w0, #-1
	cmp	w21, #1
	b.lt	LBB0_17
; %bb.4:
	cbz	w23, LBB0_17
; %bb.5:
	cbnz	x8, LBB0_17
; %bb.6:
Lloh11:
	adrp	x8, _Qq@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Qq@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _MAX_QUERY_STRING_LEN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAX_QUERY_STRING_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	x19, #0, #4, ne
	ccmp	w24, w9, #0, ne
	b.gt	LBB0_17
; %bb.7:
	cbz	w20, LBB0_10
; %bb.8:
	sub	w8, w20, #24, lsl #12           ; =98304
	sub	w8, w8, #1697
	mov	w9, #48031
	movk	w9, #13, lsl #16
	cmp	w8, w9
	b.ls	LBB0_10
; %bb.9:
	mov	w0, #-1
	b	LBB0_17
LBB0_10:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.11:
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_13
LBB0_12:
Lloh17:
	adrp	x8, _LEV_TARG_TARGET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LEV_TARG_TARGET@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	w1, w24, #15
	mov	x2, x21
	bl	_alloc_log_event
	mov	x25, x0
	stp	w23, w24, [x0]
	ldr	w0, [x0, #8]
	add	w2, w24, #1
	mov	x1, x22
	bl	_memcpy
	mov	x0, x25
	bl	_perform_targeting
	b	LBB0_14
LBB0_13:
	mov	x0, x21
	mov	x1, x23
	bl	_do_ad_price_enable
LBB0_14:
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	cbz	w20, LBB0_16
; %bb.15:
	mov	x0, x21
	mov	x1, x20
	bl	_do_ad_set_factor
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
LBB0_16:
	ldr	w0, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in do_perform_targeting(%d,%d,%d,'%s'):\n"

	.comm	_aux_userlist_tag,8,3           ; @aux_userlist_tag
	.comm	_Qq,4,2                         ; @Qq
	.comm	_MAX_QUERY_STRING_LEN,4,2       ; @MAX_QUERY_STRING_LEN
	.comm	_LEV_TARG_TARGET,4,2            ; @LEV_TARG_TARGET
.subsections_via_symbols
