	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_spe_pmu_start
_arm_spe_pmu_start:                     ## @arm_spe_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_to_spe_pmu
	movl	(%rax), %edi
	callq	_this_cpu_ptr
	movq	$0, 8(%rbx)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_arm_spe_perf_aux_output_begin
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_arm_spe_event_to_pmsfcr
	movq	_SYS_PMSFCR_EL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_write_sysreg_s
	movq	%rbx, %rdi
	callq	_arm_spe_event_to_pmsevfr
	movq	_SYS_PMSEVFR_EL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_write_sysreg_s
	movq	%rbx, %rdi
	callq	_arm_spe_event_to_pmslatfr
	movq	_SYS_PMSLATFR_EL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_write_sysreg_s
	movq	_PERF_EF_RELOAD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_arm_spe_event_to_pmsirr
	movq	_SYS_PMSIRR_EL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_write_sysreg_s
	xorl	%eax, %eax
	callq	_isb
	movq	%rbx, %rdi
	callq	_local64_read
	movq	_SYS_PMSICR_EL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_write_sysreg_s
LBB0_3:
	movq	%rbx, %rdi
	callq	_arm_spe_event_to_pmscr
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_isb
	movq	_SYS_PMSCR_EL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_write_sysreg_s                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_PMSFCR_EL1,4,2             ## @SYS_PMSFCR_EL1
	.comm	_SYS_PMSEVFR_EL1,4,2            ## @SYS_PMSEVFR_EL1
	.comm	_SYS_PMSLATFR_EL1,4,2           ## @SYS_PMSLATFR_EL1
	.comm	_PERF_EF_RELOAD,4,2             ## @PERF_EF_RELOAD
	.comm	_SYS_PMSIRR_EL1,4,2             ## @SYS_PMSIRR_EL1
	.comm	_SYS_PMSICR_EL1,4,2             ## @SYS_PMSICR_EL1
	.comm	_SYS_PMSCR_EL1,4,2              ## @SYS_PMSCR_EL1
	.no_dead_strip	_arm_spe_pmu_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_spe_pmu_start
_arm_spe_pmu_start:                     ; @arm_spe_pmu_start
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_to_spe_pmu
	ldr	w0, [x0]
	bl	_this_cpu_ptr
	str	xzr, [x19, #8]
	mov	x1, x19
	bl	_arm_spe_perf_aux_output_begin
	ldr	x8, [x19, #8]
	cbz	x8, 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	_arm_spe_event_to_pmsfcr
Lloh0:
	adrp	x8, _SYS_PMSFCR_EL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_PMSFCR_EL1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_write_sysreg_s
	mov	x0, x19
	bl	_arm_spe_event_to_pmsevfr
Lloh3:
	adrp	x8, _SYS_PMSEVFR_EL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_PMSEVFR_EL1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_write_sysreg_s
	mov	x0, x19
	bl	_arm_spe_event_to_pmslatfr
Lloh6:
	adrp	x8, _SYS_PMSLATFR_EL1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYS_PMSLATFR_EL1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_write_sysreg_s
Lloh9:
	adrp	x8, _PERF_EF_RELOAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PERF_EF_RELOAD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_arm_spe_event_to_pmsirr
Lloh12:
	adrp	x8, _SYS_PMSIRR_EL1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYS_PMSIRR_EL1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_write_sysreg_s
	bl	_isb
	mov	x0, x19
	bl	_local64_read
Lloh15:
	adrp	x8, _SYS_PMSICR_EL1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SYS_PMSICR_EL1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_write_sysreg_s
LBB0_4:
	mov	x0, x19
	bl	_arm_spe_event_to_pmscr
	mov	x19, x0
	bl	_isb
Lloh18:
	adrp	x8, _SYS_PMSCR_EL1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SYS_PMSCR_EL1@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_sysreg_s
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_PMSFCR_EL1,4,2             ; @SYS_PMSFCR_EL1
	.comm	_SYS_PMSEVFR_EL1,4,2            ; @SYS_PMSEVFR_EL1
	.comm	_SYS_PMSLATFR_EL1,4,2           ; @SYS_PMSLATFR_EL1
	.comm	_PERF_EF_RELOAD,4,2             ; @PERF_EF_RELOAD
	.comm	_SYS_PMSIRR_EL1,4,2             ; @SYS_PMSIRR_EL1
	.comm	_SYS_PMSICR_EL1,4,2             ; @SYS_PMSICR_EL1
	.comm	_SYS_PMSCR_EL1,4,2              ; @SYS_PMSCR_EL1
	.no_dead_strip	_arm_spe_pmu_start
.subsections_via_symbols
