	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppro_check_ctrs
_ppro_check_ctrs:                       ## @ppro_check_ctrs
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_reset_value@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	_num_counters@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_rdmsrl
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_oprofile_add_sample
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	(%r12), %rax
	xorl	%esi, %esi
	subl	(%rax,%rbx,4), %esi
	callq	_wrmsrl
	movl	(%r13), %eax
	jmp	LBB0_5
LBB0_6:
	movq	_APIC_LVTPC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_apic_read
	movq	_APIC_LVT_MASKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_apic_write
	movl	$1, %eax
	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	_counter_width,4,2              ## @counter_width
	.comm	_APIC_LVTPC,4,2                 ## @APIC_LVTPC
	.comm	_APIC_LVT_MASKED,4,2            ## @APIC_LVT_MASKED
	.no_dead_strip	_ppro_check_ctrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppro_check_ctrs
_ppro_check_ctrs:                       ; @ppro_check_ctrs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _reset_value@GOTPAGE
Lloh1:
	ldr	x22, [x22, _reset_value@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
Lloh2:
	adrp	x23, _num_counters@GOTPAGE
Lloh3:
	ldr	x23, [x23, _num_counters@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	x0, #0
	ccmp	w8, #1, #8, eq
	b.ge	LBB0_2
LBB0_1:
Lloh4:
	adrp	x8, _APIC_LVTPC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _APIC_LVTPC@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_apic_read
Lloh7:
	adrp	x8, _APIC_LVT_MASKED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _APIC_LVT_MASKED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x19
	bl	_apic_write
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	w9, [x9, x21, lsl #2]
	cbz	w9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	lsl	x24, x21, #2
	ldr	w0, [x8, x24]
	bl	_rdmsrl
	mov	x0, x20
	mov	x1, x21
	bl	_oprofile_add_sample
	ldr	x8, [x19]
	ldr	w0, [x8, x24]
	ldr	x8, [x22]
	ldr	w8, [x8, x24]
	neg	w1, w8
	bl	_wrmsrl
	ldr	w8, [x23]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_reset_value,8,3                ; @reset_value
	.comm	_num_counters,4,2               ; @num_counters
	.comm	_counter_width,4,2              ; @counter_width
	.comm	_APIC_LVTPC,4,2                 ; @APIC_LVTPC
	.comm	_APIC_LVT_MASKED,4,2            ; @APIC_LVT_MASKED
	.no_dead_strip	_ppro_check_ctrs
.subsections_via_symbols
