	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function user_ad_price
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_user_ad_price
	.p2align	4, 0x90
_user_ad_price:                         ## @user_ad_price
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r14d, %r14d
	testl	%edi, %edi
	js	LBB0_8
## %bb.1:
	movl	%esi, %ebx
	testl	%esi, %esi
	jle	LBB0_8
## %bb.2:
	movq	_MAX_USERS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_8
## %bb.3:
	movq	_GSORT_HEAP_SIZE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_8
## %bb.4:
	movq	_User@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	cmpl	$0, (%rdi)
	je	LBB0_8
## %bb.6:
	movl	%ebx, %esi
	callq	_build_user_ad_heap
	movq	_HN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_8
## %bb.7:
	movq	_H@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	movq	_CTR_GAIN_PRICE_MULTIPLIER@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_GSORT_HEAP_SIZE,4,2            ## @GSORT_HEAP_SIZE
	.comm	_User,8,3                       ## @User
	.comm	_HN,4,2                         ## @HN
	.comm	_H,8,3                          ## @H
	.comm	_CTR_GAIN_PRICE_MULTIPLIER,8,3  ## @CTR_GAIN_PRICE_MULTIPLIER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_ad_price                  ; -- Begin function user_ad_price
	.p2align	2
_user_ad_price:                         ; @user_ad_price
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x8, x0
	mov	w0, #0
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.2:
Lloh0:
	adrp	x9, _MAX_USERS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_USERS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _GSORT_HEAP_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GSORT_HEAP_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w8
	ccmp	w10, w19, #4, gt
	b.le	LBB0_7
; %bb.3:
Lloh6:
	adrp	x9, _User@GOTPAGE
Lloh7:
	ldr	x9, [x9, _User@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x0, [x9, w8, uxtw #3]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x1, x19
	bl	_build_user_ad_heap
Lloh9:
	adrp	x8, _HN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ge	LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh12:
	adrp	x8, _H@GOTPAGE
Lloh13:
	ldr	x8, [x8, _H@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _CTR_GAIN_PRICE_MULTIPLIER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CTR_GAIN_PRICE_MULTIPLIER@GOTPAGEOFF]
	ldr	d0, [x8, #8]
Lloh17:
	ldr	d1, [x9]
	fmov	d2, #0.50000000
	fmadd	d0, d0, d1, d2
	fcvtzs	w0, d0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_GSORT_HEAP_SIZE,4,2            ; @GSORT_HEAP_SIZE
	.comm	_User,8,3                       ; @User
	.comm	_HN,4,2                         ; @HN
	.comm	_H,8,3                          ; @H
	.comm	_CTR_GAIN_PRICE_MULTIPLIER,8,3  ; @CTR_GAIN_PRICE_MULTIPLIER
.subsections_via_symbols
