	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppro_start
_ppro_start:                            ## @ppro_start
	.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
	movq	_reset_value@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movq	_num_counters@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	movq	%rdi, %r14
	movl	$1, %ebx
                                        ## implicit-def: $r13d
	cmpq	$0, -8(%rcx,%rbx,8)
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:
	movq	(%r14), %rax
	movl	-4(%rax,%rbx,4), %edi
	movl	%r13d, %esi
	callq	_rdmsrl
	movq	_ARCH_PERFMON_EVENTSEL_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	(%r14), %rax
	movl	-4(%rax,%rbx,4), %edi
	movl	%r13d, %esi
	callq	_wrmsrl
	movl	(%r12), %eax
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rcx
	incq	%rbx
	cmpq	$0, -8(%rcx,%rbx,8)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reset_value,8,3                ## @reset_value
	.comm	_num_counters,4,2               ## @num_counters
	.comm	_ARCH_PERFMON_EVENTSEL_ENABLE,4,2 ## @ARCH_PERFMON_EVENTSEL_ENABLE
	.no_dead_strip	_ppro_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppro_start
_ppro_start:                            ; @ppro_start
	.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
Lloh0:
	adrp	x21, _reset_value@GOTPAGE
Lloh1:
	ldr	x21, [x21, _reset_value@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh2:
	adrp	x22, _num_counters@GOTPAGE
Lloh3:
	ldr	x22, [x22, _num_counters@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	x9, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x19, x0
	mov	x23, #0
Lloh4:
	adrp	x24, _ARCH_PERFMON_EVENTSEL_ENABLE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ARCH_PERFMON_EVENTSEL_ENABLE@GOTPAGEOFF]
                                        ; implicit-def: $w20
	ldr	x9, [x9, x23, lsl #3]
	cbz	x9, LBB0_4
LBB0_3:
	ldr	x8, [x19]
	lsl	x25, x23, #2
	ldr	w0, [x8, x25]
	mov	x1, x20
	bl	_rdmsrl
	ldr	w8, [x24]
	orr	w20, w8, w20
	ldr	x8, [x19]
	ldr	w0, [x8, x25]
	mov	x1, x20
	bl	_wrmsrl
	ldr	w8, [x22]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	ldr	x9, [x9, x23, lsl #3]
	cbnz	x9, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_reset_value,8,3                ; @reset_value
	.comm	_num_counters,4,2               ; @num_counters
	.comm	_ARCH_PERFMON_EVENTSEL_ENABLE,4,2 ; @ARCH_PERFMON_EVENTSEL_ENABLE
	.no_dead_strip	_ppro_start
.subsections_via_symbols
