	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsu_pmu_enable
_dsu_pmu_enable:                        ## @dsu_pmu_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_to_dsu_pmu
	movq	%rax, %rbx
	movl	4(%rax), %edi
	movq	_DSU_PMU_MAX_HW_CNTRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bitmap_empty
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_raw_spin_lock_irqsave
	xorl	%eax, %eax
	callq	___dsu_pmu_read_pmcr
	movq	_CLUSTERPMCR_E@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	___dsu_pmu_write_pmcr
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_raw_spin_unlock_irqrestore     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSU_PMU_MAX_HW_CNTRS,4,2       ## @DSU_PMU_MAX_HW_CNTRS
	.comm	_CLUSTERPMCR_E,4,2              ## @CLUSTERPMCR_E
	.no_dead_strip	_dsu_pmu_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsu_pmu_enable
_dsu_pmu_enable:                        ; @dsu_pmu_enable
	.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
	bl	_to_dsu_pmu
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _DSU_PMU_MAX_HW_CNTRS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSU_PMU_MAX_HW_CNTRS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bitmap_empty
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_raw_spin_lock_irqsave
	bl	___dsu_pmu_read_pmcr
Lloh3:
	adrp	x8, _CLUSTERPMCR_E@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLUSTERPMCR_E@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	___dsu_pmu_write_pmcr
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_raw_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DSU_PMU_MAX_HW_CNTRS,4,2       ; @DSU_PMU_MAX_HW_CNTRS
	.comm	_CLUSTERPMCR_E,4,2              ; @CLUSTERPMCR_E
	.no_dead_strip	_dsu_pmu_enable
.subsections_via_symbols
