	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_spe_pmu_cap_get
_arm_spe_pmu_cap_get:                   ## @arm_spe_pmu_cap_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edx
	movq	_SPE_PMU_CAP_FEAT_MAX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_arm_spe_pmu_feat_caps@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	setne	%al
	popq	%rbp
	retq
LBB0_2:
	cmpl	$128, %edx
	je	LBB0_5
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_6
## %bb.4:
	movl	4(%rdi), %eax
	popq	%rbp
	retq
LBB0_5:
	movl	8(%rdi), %eax
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPE_PMU_CAP_FEAT_MAX,4,2       ## @SPE_PMU_CAP_FEAT_MAX
	.comm	_arm_spe_pmu_feat_caps,8,3      ## @arm_spe_pmu_feat_caps
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown cap %d\n"

	.no_dead_strip	_arm_spe_pmu_cap_get
.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_cap_get
_arm_spe_pmu_cap_get:                   ; @arm_spe_pmu_cap_get
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
Lloh0:
	adrp	x8, _SPE_PMU_CAP_FEAT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPE_PMU_CAP_FEAT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _arm_spe_pmu_feat_caps@GOTPAGE
Lloh4:
	ldr	x8, [x8, _arm_spe_pmu_feat_caps@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, w2, sxtw #2]
	tst	w8, w9
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w2, #129
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x0, #4]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x0, #8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SPE_PMU_CAP_FEAT_MAX,4,2       ; @SPE_PMU_CAP_FEAT_MAX
	.comm	_arm_spe_pmu_feat_caps,8,3      ; @arm_spe_pmu_feat_caps
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown cap %d\n"

	.no_dead_strip	_arm_spe_pmu_cap_get
.subsections_via_symbols
