	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_armpmu_register                ## -- Begin function armpmu_register
	.p2align	4, 0x90
_armpmu_register:                       ## @armpmu_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_cpu_pmu_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	cmpl	$0, 12(%r14)
	jne	LBB0_3
## %bb.2:
	movq	_PERF_PMU_CAP_NO_EXCLUDE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_3:
	leaq	8(%r14), %rdi
	movl	4(%r14), %esi
	movl	$-1, %edx
	callq	_perf_pmu_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_cpu_pmu_destroy
	jmp	LBB0_8
LBB0_4:
	movq	___oprofile_cpu_pmu@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r14, (%rax)
LBB0_6:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_PMU_CAP_NO_EXCLUDE,4,2    ## @PERF_PMU_CAP_NO_EXCLUDE
	.comm	___oprofile_cpu_pmu,8,3         ## @__oprofile_cpu_pmu
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enabled with %s PMU driver, %d counters available\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_armpmu_register                ; -- Begin function armpmu_register
	.p2align	2
_armpmu_register:                       ; @armpmu_register
	.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
	bl	_cpu_pmu_init
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _PERF_PMU_CAP_NO_EXCLUDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_PMU_CAP_NO_EXCLUDE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_3:
	add	x0, x19, #8
	ldr	w1, [x19, #4]
	mov	w2, #-1
	bl	_perf_pmu_register
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	bl	_cpu_pmu_destroy
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, ___oprofile_cpu_pmu@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___oprofile_cpu_pmu@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_7
; %bb.6:
	str	x19, [x8]
LBB0_7:
	ldp	w2, w1, [x19]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_PMU_CAP_NO_EXCLUDE,4,2    ; @PERF_PMU_CAP_NO_EXCLUDE
	.comm	___oprofile_cpu_pmu,8,3         ; @__oprofile_cpu_pmu
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enabled with %s PMU driver, %d counters available\n"

.subsections_via_symbols
