	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_uncore_pmu_start          ## -- Begin function hisi_uncore_pmu_start
	.p2align	4, 0x90
_hisi_uncore_pmu_start:                 ## @hisi_uncore_pmu_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_hisi_pmu
	movq	%rax, %r14
	movq	_PERF_HES_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_PERF_HES_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_hisi_uncore_pmu_set_event_period
	movq	_PERF_EF_RELOAD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	4(%rbx), %rdi
	callq	_local64_read
	movq	(%r14), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	*(%rcx)
LBB0_3:
	movq	%rbx, %rdi
	callq	_hisi_uncore_pmu_enable_event
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_perf_event_update_userpage     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_HES_STOPPED,4,2           ## @PERF_HES_STOPPED
	.comm	_PERF_HES_UPTODATE,4,2          ## @PERF_HES_UPTODATE
	.comm	_PERF_EF_RELOAD,4,2             ## @PERF_EF_RELOAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_uncore_pmu_start          ; -- Begin function hisi_uncore_pmu_start
	.p2align	2
_hisi_uncore_pmu_start:                 ; @hisi_uncore_pmu_start
	.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, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_to_hisi_pmu
	mov	x20, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PERF_HES_STOPPED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PERF_HES_STOPPED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
	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
LBB0_2:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _PERF_HES_UPTODATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PERF_HES_UPTODATE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_WARN_ON_ONCE
	str	wzr, [x19]
	mov	x0, x19
	bl	_hisi_uncore_pmu_set_event_period
Lloh6:
	adrp	x8, _PERF_EF_RELOAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PERF_EF_RELOAD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	add	x0, x19, #4
	bl	_local64_read
	mov	x2, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_4:
	mov	x0, x19
	bl	_hisi_uncore_pmu_enable_event
	mov	x0, x19
	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
	b	_perf_event_update_userpage
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_HES_STOPPED,4,2           ; @PERF_HES_STOPPED
	.comm	_PERF_HES_UPTODATE,4,2          ; @PERF_HES_UPTODATE
	.comm	_PERF_EF_RELOAD,4,2             ; @PERF_EF_RELOAD
.subsections_via_symbols
