	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmcstat_changefilter
_pmcstat_changefilter:                  ## @pmcstat_changefilter
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pmcstat_mergepmc@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_pmcstat_pmcinfilter@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	_pmcstat_npmcs@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	movl	%ebx, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_pmcstat_pmcindex_to_pmcr
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%rax), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	incl	%edi
	cmpl	(%r15), %edi
	cmovgel	%r12d, %edi
	movl	%edi, (%r14)
	cmpl	%ebx, %edi
	jne	LBB0_2
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pmcstat_mergepmc,8,3           ## @pmcstat_mergepmc
	.comm	_pmcstat_pmcinfilter,4,2        ## @pmcstat_pmcinfilter
	.comm	_pmcstat_npmcs,4,2              ## @pmcstat_npmcs
	.no_dead_strip	_pmcstat_changefilter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmcstat_changefilter
_pmcstat_changefilter:                  ; @pmcstat_changefilter
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _pmcstat_mergepmc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pmcstat_mergepmc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x19, _pmcstat_pmcinfilter@GOTPAGE
Lloh4:
	ldr	x19, [x19, _pmcstat_pmcinfilter@GOTPAGEOFF]
	ldr	w20, [x19]
Lloh5:
	adrp	x21, _pmcstat_npmcs@GOTPAGE
Lloh6:
	ldr	x21, [x21, _pmcstat_npmcs@GOTPAGEOFF]
	mov	x0, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_pmcstat_pmcindex_to_pmcr
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x0]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	add	w9, w8, #1
	ldr	w10, [x21]
	cmp	w9, w10
	csinc	w0, wzr, w8, ge
	str	w0, [x19]
	cmp	w0, w20
	b.ne	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pmcstat_mergepmc,8,3           ; @pmcstat_mergepmc
	.comm	_pmcstat_pmcinfilter,4,2        ; @pmcstat_pmcinfilter
	.comm	_pmcstat_npmcs,4,2              ; @pmcstat_npmcs
	.no_dead_strip	_pmcstat_changefilter
.subsections_via_symbols
