	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perform_targ_audience_query    ## -- Begin function perform_targ_audience_query
	.p2align	4, 0x90
_perform_targ_audience_query:           ## @perform_targ_audience_query
	.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	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	_Q_aux_num@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_vkprintf
	leal	-101(%rbx), %eax
	cmpl	$-100, %eax
	jb	LBB0_6
## %bb.1:
	movq	_Q_limit@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_6
## %bb.2:
	cmpl	$1000, %ecx                     ## imm = 0x3E8
	jg	LBB0_6
## %bb.3:
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.4:
	movl	$50, (%rax)
LBB0_5:
	movq	_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r13), %eax
	leal	(%rax,%rax,2), %eax
	leal	12(,%rax,4), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_R_position@GOTPCREL(%rip), %rax
	movl	$-2147483648, (%rax)            ## imm = 0x80000000
	movq	_store_res_targ_aud@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_store_res@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_postprocess_res_targ_aud@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_postprocess_res@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_targ_aud_position@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_targ_aud_cpv@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	movq	_targ_aud_and_mask@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	_targ_aud_xor_mask@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	xorl	%edi, %edi
	callq	_perform_query
	movl	%eax, %ebx
	movl	(%r13), %eax
	leal	(%rax,%rax,2), %ecx
	leal	(%rax,%rax,2), %eax
	addl	$2, %eax
	movq	_R_cnt@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movq	_R_position@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_R@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	leal	8(,%rcx,4), %edx
	callq	_memcpy
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"perform targ_audience query(position=%d, cpv=%d, mask=%d:%d) for %d auxiliary queries\n"

	.comm	_Q_aux_num,4,2                  ## @Q_aux_num
	.comm	_Q_limit,4,2                    ## @Q_limit
	.comm	_RX,8,3                         ## @RX
	.comm	_R_position,4,2                 ## @R_position
	.comm	_store_res_targ_aud,4,2         ## @store_res_targ_aud
	.comm	_store_res,4,2                  ## @store_res
	.comm	_postprocess_res_targ_aud,4,2   ## @postprocess_res_targ_aud
	.comm	_postprocess_res,4,2            ## @postprocess_res
	.comm	_targ_aud_position,4,2          ## @targ_aud_position
	.comm	_targ_aud_cpv,4,2               ## @targ_aud_cpv
	.comm	_targ_aud_and_mask,4,2          ## @targ_aud_and_mask
	.comm	_targ_aud_xor_mask,4,2          ## @targ_aud_xor_mask
	.comm	_R_cnt,4,2                      ## @R_cnt
	.comm	_R,4,2                          ## @R
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perform_targ_audience_query    ; -- Begin function perform_targ_audience_query
	.p2align	2
_perform_targ_audience_query:           ; @perform_targ_audience_query
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _Q_aux_num@GOTPAGE
Lloh1:
	ldr	x23, [x23, _Q_aux_num@GOTPAGEOFF]
	ldr	w6, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_vkprintf
	sub	w8, w22, #101
	cmn	w8, #100
	b.lo	LBB0_6
; %bb.1:
Lloh4:
	adrp	x8, _Q_limit@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Q_limit@GOTPAGEOFF]
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_6
; %bb.2:
	cmp	w9, #1000
	b.gt	LBB0_6
; %bb.3:
	cbnz	w9, LBB0_5
; %bb.4:
	mov	w9, #50
	str	w9, [x8]
LBB0_5:
Lloh6:
	adrp	x24, _RX@GOTPAGE
Lloh7:
	ldr	x24, [x24, _RX@GOTPAGEOFF]
	ldr	x0, [x24]
	ldr	w8, [x23]
	mov	w9, #12
	orr	w10, wzr, #0xc
	madd	w2, w8, w9, w10
	mov	w1, #0
	bl	_memset
Lloh8:
	adrp	x25, _R_position@GOTPAGE
Lloh9:
	ldr	x25, [x25, _R_position@GOTPAGEOFF]
	mov	w8, #-2147483648
	str	w8, [x25]
Lloh10:
	adrp	x8, _store_res_targ_aud@GOTPAGE
Lloh11:
	ldr	x8, [x8, _store_res_targ_aud@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _store_res@GOTPAGE
Lloh14:
	ldr	x9, [x9, _store_res@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
Lloh16:
	adrp	x8, _postprocess_res_targ_aud@GOTPAGE
Lloh17:
	ldr	x8, [x8, _postprocess_res_targ_aud@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _postprocess_res@GOTPAGE
Lloh20:
	ldr	x9, [x9, _postprocess_res@GOTPAGEOFF]
Lloh21:
	str	w8, [x9]
Lloh22:
	adrp	x8, _targ_aud_position@GOTPAGE
Lloh23:
	ldr	x8, [x8, _targ_aud_position@GOTPAGEOFF]
Lloh24:
	str	w22, [x8]
Lloh25:
	adrp	x8, _targ_aud_cpv@GOTPAGE
Lloh26:
	ldr	x8, [x8, _targ_aud_cpv@GOTPAGEOFF]
Lloh27:
	str	w21, [x8]
Lloh28:
	adrp	x8, _targ_aud_and_mask@GOTPAGE
Lloh29:
	ldr	x8, [x8, _targ_aud_and_mask@GOTPAGEOFF]
Lloh30:
	str	w20, [x8]
Lloh31:
	adrp	x8, _targ_aud_xor_mask@GOTPAGE
Lloh32:
	ldr	x8, [x8, _targ_aud_xor_mask@GOTPAGEOFF]
Lloh33:
	str	w19, [x8]
	mov	w0, #0
	bl	_perform_query
	mov	x19, x0
	ldr	w8, [x23]
	add	w8, w8, w8, lsl #1
	add	w8, w8, #2
Lloh34:
	adrp	x9, _R_cnt@GOTPAGE
Lloh35:
	ldr	x9, [x9, _R_cnt@GOTPAGEOFF]
Lloh36:
	str	w8, [x9]
	str	wzr, [x25]
Lloh37:
	adrp	x9, _R@GOTPAGE
Lloh38:
	ldr	x9, [x9, _R@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x9]
	ldr	x9, [x24]
	add	x1, x9, #1
	lsl	w2, w8, #2
	bl	_memcpy
	mov	x0, x19
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"perform targ_audience query(position=%d, cpv=%d, mask=%d:%d) for %d auxiliary queries\n"

	.comm	_Q_aux_num,4,2                  ; @Q_aux_num
	.comm	_Q_limit,4,2                    ; @Q_limit
	.comm	_RX,8,3                         ; @RX
	.comm	_R_position,4,2                 ; @R_position
	.comm	_store_res_targ_aud,4,2         ; @store_res_targ_aud
	.comm	_store_res,4,2                  ; @store_res
	.comm	_postprocess_res_targ_aud,4,2   ; @postprocess_res_targ_aud
	.comm	_postprocess_res,4,2            ; @postprocess_res
	.comm	_targ_aud_position,4,2          ; @targ_aud_position
	.comm	_targ_aud_cpv,4,2               ; @targ_aud_cpv
	.comm	_targ_aud_and_mask,4,2          ; @targ_aud_and_mask
	.comm	_targ_aud_xor_mask,4,2          ; @targ_aud_xor_mask
	.comm	_R_cnt,4,2                      ; @R_cnt
	.comm	_R,4,2                          ; @R
.subsections_via_symbols
