	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uncore_pmu_event_start
_uncore_pmu_event_start:                ## @uncore_pmu_event_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
	movq	%rdi, %rbx
	callq	_uncore_event_to_box
	movq	%rax, %r14
	movslq	(%rbx), %r15
	movq	_PERF_HES_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	4(%rbx), %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	cmpl	$-1, %r15d
	sete	%al
	movq	_UNCORE_PMC_IDX_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	setge	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	$0, 4(%rbx)
	movq	8(%r14), %rax
	movq	%rbx, (%rax,%r15,8)
	incl	(%r14)
	movl	4(%r14), %esi
	movl	%r15d, %edi
	callq	___set_bit
	leaq	8(%rbx), %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_uncore_read_counter
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_local64_set
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_uncore_enable_event
	cmpl	$1, (%r14)
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_uncore_enable_box
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uncore_pmu_start_hrtimer       ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_HES_STOPPED,4,2           ## @PERF_HES_STOPPED
	.comm	_UNCORE_PMC_IDX_MAX,4,2         ## @UNCORE_PMC_IDX_MAX
	.no_dead_strip	_uncore_pmu_event_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uncore_pmu_event_start
_uncore_pmu_event_start:                ; @uncore_pmu_event_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	x20, x0
	bl	_uncore_event_to_box
	mov	x19, x0
	ldp	w21, w8, [x20]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
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
	cbnz	x0, LBB0_4
; %bb.1:
	cmn	w21, #1
Lloh3:
	adrp	x8, _UNCORE_PMC_IDX_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNCORE_PMC_IDX_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w21, w8, #0, ne
	cset	w0, ge
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_4
; %bb.2:
	str	wzr, [x20, #4]
	ldr	x8, [x19, #8]
	str	x20, [x8, x21, lsl #3]
	ldp	w8, w1, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x21
	bl	___set_bit
	add	x21, x20, #8
	mov	x0, x19
	mov	x1, x20
	bl	_uncore_read_counter
	mov	x1, x0
	mov	x0, x21
	bl	_local64_set
	mov	x0, x19
	mov	x1, x20
	bl	_uncore_enable_event
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_uncore_enable_box
	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	_uncore_pmu_start_hrtimer
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_HES_STOPPED,4,2           ; @PERF_HES_STOPPED
	.comm	_UNCORE_PMC_IDX_MAX,4,2         ; @UNCORE_PMC_IDX_MAX
	.no_dead_strip	_uncore_pmu_event_start
.subsections_via_symbols
