	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsu_pmu_add
_dsu_pmu_add:                           ## @dsu_pmu_add
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_to_dsu_pmu
	movq	%rax, %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_smp_processor_id
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_cpumask_test_cpu
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	addq	$8, %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dsu_pmu_get_event_idx
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	%ebx, (%r15)
	movq	(%r12), %rax
	movl	%ebx, %ecx
	movq	%r15, (%rax,%rcx,8)
	movq	_PERF_HES_STOPPED@GOTPCREL(%rip), %rax
	movq	_PERF_HES_UPTODATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movq	_PERF_EF_START@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_PERF_EF_RELOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dsu_pmu_start
LBB0_5:
	movq	%r15, %rdi
	callq	_perf_event_update_userpage
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PERF_HES_STOPPED,4,2           ## @PERF_HES_STOPPED
	.comm	_PERF_HES_UPTODATE,4,2          ## @PERF_HES_UPTODATE
	.comm	_PERF_EF_START,4,2              ## @PERF_EF_START
	.comm	_PERF_EF_RELOAD,4,2             ## @PERF_EF_RELOAD
	.no_dead_strip	_dsu_pmu_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsu_pmu_add
_dsu_pmu_add:                           ; @dsu_pmu_add
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_to_dsu_pmu
	mov	x21, x0
	bl	_smp_processor_id
	mov	x1, x21
	bl	_cpumask_test_cpu
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	add	x21, x21, #8
	mov	x0, x21
	mov	x1, x19
	bl	_dsu_pmu_get_event_idx
	tbnz	w0, #31, LBB0_6
; %bb.3:
	str	w0, [x19]
	ldr	x8, [x21]
	str	x19, [x8, w0, uxtw #3]
Lloh3:
	adrp	x8, _PERF_HES_STOPPED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PERF_HES_STOPPED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PERF_HES_UPTODATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PERF_HES_UPTODATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
Lloh9:
	adrp	x8, _PERF_EF_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PERF_EF_START@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _PERF_EF_RELOAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PERF_EF_RELOAD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dsu_pmu_start
LBB0_5:
	mov	x0, x19
	bl	_perf_event_update_userpage
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PERF_HES_STOPPED,4,2           ; @PERF_HES_STOPPED
	.comm	_PERF_HES_UPTODATE,4,2          ; @PERF_HES_UPTODATE
	.comm	_PERF_EF_START,4,2              ; @PERF_EF_START
	.comm	_PERF_EF_RELOAD,4,2             ; @PERF_EF_RELOAD
	.no_dead_strip	_dsu_pmu_add
.subsections_via_symbols
