	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perform_pricing                ## -- Begin function perform_pricing
	.p2align	4, 0x90
_perform_pricing:                       ## @perform_pricing
	.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
                                        ## kill: def $edi killed $edi def $rdi
	leal	-101(%rdi), %ecx
	movl	$-1, %eax
	cmpl	$-100, %ecx
	jb	LBB0_12
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	_R_position@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_Q_limit@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_2
## %bb.3:
	movl	$10000, %eax                    ## imm = 0x2710
	cmpl	$10001, %edx                    ## imm = 0x2711
	jae	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movl	$1000, %eax                     ## imm = 0x3E8
LBB0_4:
	movl	%eax, (%rcx)
	movl	%eax, %edx
LBB0_5:
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	testb	$8, %bl
	jne	LBB0_6
## %bb.7:
	movq	_heap_push_user_ad_std@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_heap_push_user_ad_ext@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movq	_heap_push_user_ad@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___use_factor@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	___use_views_limit@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	movzbl	%r15b, %eax
	movq	_ADF_SITES_MASK_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	shll	%cl, %eax
	movq	___exclude_ad_id@GOTPCREL(%rip), %rdx
	movq	$0, (%rdx)
	movq	___and_mask@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movzbl	%r14b, %eax
	shll	%cl, %eax
	movq	___xor_mask@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	___cat_mask@GOTPCREL(%rip), %rax
	movq	$-1, (%rax)
	xorl	%edi, %edi
	callq	_perform_query
	movq	___use_factor@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movq	$0, (%r13)
	movb	(%r12), %cl
	movl	$254, %edx
	shll	%cl, %edx
	movl	%edx, (%r15)
	movl	$0, (%rbx)
	movq	_R_position@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	testl	%eax, %eax
	jle	LBB0_12
## %bb.9:
	movq	_Q_limit@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	_R@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_R_cnt@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rsi)
	subq	$1, %rcx
	jb	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, (%rdx,%rcx,4)
	je	LBB0_10
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_position,4,2                 ## @R_position
	.comm	_Q_limit,4,2                    ## @Q_limit
	.comm	_R,8,3                          ## @R
	.comm	_heap_push_user_ad_ext,4,2      ## @heap_push_user_ad_ext
	.comm	_heap_push_user_ad_std,4,2      ## @heap_push_user_ad_std
	.comm	_heap_push_user_ad,4,2          ## @heap_push_user_ad
	.comm	___use_factor,4,2               ## @__use_factor
	.comm	___use_views_limit,8,3          ## @__use_views_limit
	.comm	___exclude_ad_id,8,3            ## @__exclude_ad_id
	.comm	_ADF_SITES_MASK_SHIFT,4,2       ## @ADF_SITES_MASK_SHIFT
	.comm	___and_mask,4,2                 ## @__and_mask
	.comm	___xor_mask,4,2                 ## @__xor_mask
	.comm	___cat_mask,8,3                 ## @__cat_mask
	.comm	_R_cnt,4,2                      ## @R_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perform_pricing                ; -- Begin function perform_pricing
	.p2align	2
_perform_pricing:                       ; @perform_pricing
	.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
	sub	w8, w0, #101
	cmn	w8, #100
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_11
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x23, _R_position@GOTPAGE
Lloh1:
	ldr	x23, [x23, _R_position@GOTPAGEOFF]
	str	w0, [x23]
Lloh2:
	adrp	x22, _Q_limit@GOTPAGE
Lloh3:
	ldr	x22, [x22, _Q_limit@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w9, #10001
	cmp	w8, w9
	b.lo	LBB0_7
; %bb.4:
	mov	w8, #10000
	b	LBB0_6
LBB0_5:
	mov	w8, #1000
LBB0_6:
	str	w8, [x22]
LBB0_7:
Lloh4:
	adrp	x24, _R@GOTPAGE
Lloh5:
	ldr	x24, [x24, _R@GOTPAGEOFF]
	ldr	x0, [x24]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
Lloh6:
	adrp	x8, _heap_push_user_ad_ext@GOTPAGE
Lloh7:
	ldr	x8, [x8, _heap_push_user_ad_ext@GOTPAGEOFF]
Lloh8:
	adrp	x9, _heap_push_user_ad_std@GOTPAGE
Lloh9:
	ldr	x9, [x9, _heap_push_user_ad_std@GOTPAGEOFF]
	tst	w21, #0x8
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _heap_push_user_ad@GOTPAGE
Lloh11:
	ldr	x9, [x9, _heap_push_user_ad@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
Lloh13:
	adrp	x21, ___use_factor@GOTPAGE
Lloh14:
	ldr	x21, [x21, ___use_factor@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x21]
Lloh15:
	adrp	x25, ___use_views_limit@GOTPAGE
Lloh16:
	ldr	x25, [x25, ___use_views_limit@GOTPAGEOFF]
	str	xzr, [x25]
Lloh17:
	adrp	x8, ___exclude_ad_id@GOTPAGE
Lloh18:
	ldr	x8, [x8, ___exclude_ad_id@GOTPAGEOFF]
Lloh19:
	str	xzr, [x8]
	and	w8, w20, #0xff
Lloh20:
	adrp	x20, _ADF_SITES_MASK_SHIFT@GOTPAGE
Lloh21:
	ldr	x20, [x20, _ADF_SITES_MASK_SHIFT@GOTPAGEOFF]
	ldr	w9, [x20]
	lsl	w8, w8, w9
Lloh22:
	adrp	x26, ___and_mask@GOTPAGE
Lloh23:
	ldr	x26, [x26, ___and_mask@GOTPAGEOFF]
	str	w8, [x26]
	and	w8, w19, #0xff
Lloh24:
	adrp	x19, ___xor_mask@GOTPAGE
Lloh25:
	ldr	x19, [x19, ___xor_mask@GOTPAGEOFF]
	lsl	w8, w8, w9
	str	w8, [x19]
Lloh26:
	adrp	x8, ___cat_mask@GOTPAGE
Lloh27:
	ldr	x8, [x8, ___cat_mask@GOTPAGEOFF]
	mov	x9, #-1
Lloh28:
	str	x9, [x8]
	mov	w0, #0
	bl	_perform_query
	str	wzr, [x21]
	str	xzr, [x25]
	ldr	w8, [x20]
	mov	w9, #254
	lsl	w8, w9, w8
	str	w8, [x26]
	str	wzr, [x19]
	str	wzr, [x23]
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.8:
	ldrsw	x8, [x22]
	ldr	x9, [x24]
	sub	x9, x9, #4
Lloh29:
	adrp	x10, _R_cnt@GOTPAGE
Lloh30:
	ldr	x10, [x10, _R_cnt@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x10]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w11, [x9, x8, lsl #2]
	sub	x8, x8, #1
	cbz	w11, LBB0_9
LBB0_11:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_R_position,4,2                 ; @R_position
	.comm	_Q_limit,4,2                    ; @Q_limit
	.comm	_R,8,3                          ; @R
	.comm	_heap_push_user_ad_ext,4,2      ; @heap_push_user_ad_ext
	.comm	_heap_push_user_ad_std,4,2      ; @heap_push_user_ad_std
	.comm	_heap_push_user_ad,4,2          ; @heap_push_user_ad
	.comm	___use_factor,4,2               ; @__use_factor
	.comm	___use_views_limit,8,3          ; @__use_views_limit
	.comm	___exclude_ad_id,8,3            ; @__exclude_ad_id
	.comm	_ADF_SITES_MASK_SHIFT,4,2       ; @ADF_SITES_MASK_SHIFT
	.comm	___and_mask,4,2                 ; @__and_mask
	.comm	___xor_mask,4,2                 ; @__xor_mask
	.comm	___cat_mask,8,3                 ; @__cat_mask
	.comm	_R_cnt,4,2                      ; @R_cnt
.subsections_via_symbols
