	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocateValueProfileCounters
_allocateValueProfileCounters:          ## @allocateValueProfileCounters
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_hasStaticCounters@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_hasNonDefaultValsPerSite@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_INSTR_PROF_MAX_NUM_VAL_PER_SITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VPMaxNumValsPerSite@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	movq	_IPVK_First@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_IPVK_Last@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r15d, %r15d
	movl	$0, %edi
	cmpq	%rcx, %rax
	ja	LBB0_13
## %bb.3:
	leaq	1(%rax), %rdx
	leaq	1(%rcx), %r10
	cmpq	%r10, %rdx
	cmovaq	%rdx, %r10
	movq	8(%r14), %rdx
	subq	%rax, %r10
	xorl	%edi, %edi
	cmpq	$4, %r10
	jb	LBB0_12
## %bb.4:
	movq	%r10, %r8
	andq	$-4, %r8
	leaq	-4(%r8), %rsi
	movq	%rsi, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	%r9, %rdi
	andq	$-2, %rdi
	leaq	(%rdx,%rax,8), %rsi
	addq	$48, %rsi
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rsi,%rbx,8), %xmm2
	movdqu	-32(%rsi,%rbx,8), %xmm3
	movdqu	-16(%rsi,%rbx,8), %xmm4
	movdqu	(%rsi,%rbx,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rbx
	addq	$-2, %rdi
	jne	LBB0_7
## %bb.8:
	testb	$1, %r9b
	je	LBB0_10
LBB0_9:
	addq	%rax, %rbx
	movdqu	(%rdx,%rbx,8), %xmm2
	movdqu	16(%rdx,%rbx,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_10:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edi
	cmpq	%r8, %r10
	je	LBB0_13
## %bb.11:
	addq	%r8, %rax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rdx,%rax,8), %edi
	incq	%rax
	cmpq	%rcx, %rax
	jbe	LBB0_12
LBB0_13:
	movl	$8, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_COMPILER_RT_BOOL_CMPXCHG
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_free
	xorl	%r15d, %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	testb	$1, %r9b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_hasStaticCounters,8,3          ## @hasStaticCounters
	.comm	_hasNonDefaultValsPerSite,4,2   ## @hasNonDefaultValsPerSite
	.comm	_INSTR_PROF_MAX_NUM_VAL_PER_SITE,4,2 ## @INSTR_PROF_MAX_NUM_VAL_PER_SITE
	.comm	_VPMaxNumValsPerSite,4,2        ## @VPMaxNumValsPerSite
	.comm	_IPVK_First,8,3                 ## @IPVK_First
	.comm	_IPVK_Last,8,3                  ## @IPVK_Last
	.no_dead_strip	_allocateValueProfileCounters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocateValueProfileCounters
_allocateValueProfileCounters:          ; @allocateValueProfileCounters
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _hasStaticCounters@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hasStaticCounters@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _hasNonDefaultValsPerSite@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hasNonDefaultValsPerSite@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _INSTR_PROF_MAX_NUM_VAL_PER_SITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INSTR_PROF_MAX_NUM_VAL_PER_SITE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _VPMaxNumValsPerSite@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VPMaxNumValsPerSite@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
LBB0_2:
Lloh12:
	adrp	x8, _IPVK_First@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPVK_First@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x8]
Lloh15:
	adrp	x8, _IPVK_Last@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPVK_Last@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x13, x8
	b.ls	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_10
LBB0_4:
	ldr	x9, [x19, #8]
	add	x10, x13, #1
	add	x11, x8, #1
	cmp	x10, x11
	csinc	x10, x10, x8, hi
	sub	x11, x10, x13
	cmp	x11, #8
	b.hs	LBB0_6
; %bb.5:
	mov	w0, #0
	mov	x10, x13
	b	LBB0_9
LBB0_6:
	and	x12, x11, #0xfffffffffffffff8
	add	x10, x13, x12
	add	x13, x9, x13, lsl #3
	add	x13, x13, #32
	movi.2d	v0, #0000000000000000
	mov	x14, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x14, x14, #8
	b.ne	LBB0_7
; %bb.8:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w0, s0
	cmp	x11, x12
	b.eq	LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x10, lsl #3]
	add	w0, w0, w11
	add	x10, x10, #1
	cmp	x10, x8
	b.ls	LBB0_9
LBB0_10:
	mov	w1, #8
	bl	_calloc
	cbz	x0, LBB0_14
; %bb.11:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_COMPILER_RT_BOOL_CMPXCHG
	cbz	w0, LBB0_13
; %bb.12:
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_free
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_hasStaticCounters,8,3          ; @hasStaticCounters
	.comm	_hasNonDefaultValsPerSite,4,2   ; @hasNonDefaultValsPerSite
	.comm	_INSTR_PROF_MAX_NUM_VAL_PER_SITE,4,2 ; @INSTR_PROF_MAX_NUM_VAL_PER_SITE
	.comm	_VPMaxNumValsPerSite,4,2        ; @VPMaxNumValsPerSite
	.comm	_IPVK_First,8,3                 ; @IPVK_First
	.comm	_IPVK_Last,8,3                  ; @IPVK_Last
	.no_dead_strip	_allocateValueProfileCounters
.subsections_via_symbols
