	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmcpl_ct_samples_grow
_pmcpl_ct_samples_grow:                 ## @pmcpl_ct_samples_grow
	.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, %r15
	movq	_pmcstat_npmcs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ebx
	subl	%ebx, %edi
	jbe	LBB0_4
## %bb.1:
	movq	_PMCPL_CT_GROWSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max
	movl	%eax, %r14d
	addl	%ebx, %r14d
	movq	8(%r15), %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	callq	_reallocarray
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
	movq	8(%r15), %rax
LBB0_3:
	movl	(%r15), %ecx
	leaq	(%rax,%rcx,4), %rdi
	movl	%r14d, %esi
	subl	%ecx, %esi
	shll	$2, %esi
	callq	_bzero
	movl	%r14d, (%r15)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pmcstat_npmcs,4,2              ## @pmcstat_npmcs
	.comm	_PMCPL_CT_GROWSIZE,4,2          ## @PMCPL_CT_GROWSIZE
	.comm	_EX_SOFTWARE,4,2                ## @EX_SOFTWARE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: out of memory"

	.no_dead_strip	_pmcpl_ct_samples_grow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmcpl_ct_samples_grow
_pmcpl_ct_samples_grow:                 ; @pmcpl_ct_samples_grow
	.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, _pmcstat_npmcs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pmcstat_npmcs@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w20, [x0]
	subs	w0, w8, w20
	b.ls	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _PMCPL_CT_GROWSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMCPL_CT_GROWSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_max
	add	w20, w0, w20
	ldr	x0, [x19, #8]
	mov	x1, x20
	mov	w2, #4
	bl	_reallocarray
	str	x0, [x19, #8]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EX_SOFTWARE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EX_SOFTWARE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
	ldr	x0, [x19, #8]
LBB0_3:
	ldr	w8, [x19]
	add	x0, x0, x8, lsl #2
	sub	w8, w20, w8
	lsl	w1, w8, #2
	bl	_bzero
	str	w20, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pmcstat_npmcs,4,2              ; @pmcstat_npmcs
	.comm	_PMCPL_CT_GROWSIZE,4,2          ; @PMCPL_CT_GROWSIZE
	.comm	_EX_SOFTWARE,4,2                ; @EX_SOFTWARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: out of memory"

	.no_dead_strip	_pmcpl_ct_samples_grow
.subsections_via_symbols
