	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsu_pmu_read_counter
_dsu_pmu_read_counter:                  ## @dsu_pmu_read_counter
	.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	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_to_dsu_pmu
	movq	%rax, %r12
	movl	8(%rbx), %r15d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_smp_processor_id
	leaq	4(%r12), %rsi
	movl	%eax, %edi
	callq	_cpumask_test_cpu
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_dsu_pmu_counter_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	callq	_raw_spin_lock_irqsave
	movq	_DSU_PMU_IDX_CYCLE_COUNTER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	___dsu_pmu_read_pmccntr
	jmp	LBB0_6
LBB0_2:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_7
LBB0_5:
	movl	%r15d, %edi
	callq	___dsu_pmu_read_counter
LBB0_6:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_raw_spin_unlock_irqrestore
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying reading invalid counter %d\n"

	.comm	_DSU_PMU_IDX_CYCLE_COUNTER,4,2  ## @DSU_PMU_IDX_CYCLE_COUNTER
	.no_dead_strip	_dsu_pmu_read_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsu_pmu_read_counter
_dsu_pmu_read_counter:                  ; @dsu_pmu_read_counter
	.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
	mov	x21, x0
	ldr	x0, [x0]
	bl	_to_dsu_pmu
	mov	x19, x0
	ldr	w20, [x21, #8]
	bl	_smp_processor_id
	add	x1, x19, #4
	bl	_cpumask_test_cpu
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_dsu_pmu_counter_valid
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_raw_spin_lock_irqsave
Lloh0:
	adrp	x8, _DSU_PMU_IDX_CYCLE_COUNTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSU_PMU_IDX_CYCLE_COUNTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_6
; %bb.4:
	bl	___dsu_pmu_read_pmccntr
	b	LBB0_7
LBB0_5:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	mov	w20, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	___dsu_pmu_read_counter
LBB0_7:
	mov	x20, x0
	mov	x0, x19
	bl	_raw_spin_unlock_irqrestore
LBB0_8:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying reading invalid counter %d\n"

	.comm	_DSU_PMU_IDX_CYCLE_COUNTER,4,2  ; @DSU_PMU_IDX_CYCLE_COUNTER
	.no_dead_strip	_dsu_pmu_read_counter
.subsections_via_symbols
