	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_spe_event_to_pmsfcr
_arm_spe_event_to_pmsfcr:               ## @arm_spe_event_to_pmsfcr
	.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, %r14
	movq	_load_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR_CFG_GET_FLD
	movl	%eax, %ebx
	movq	_SYS_PMSFCR_EL1_LD_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_store_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ATTR_CFG_GET_FLD
	movl	%eax, %r15d
	movq	_SYS_PMSFCR_EL1_ST_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	orl	%ebx, %r15d
	movq	_branch_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ATTR_CFG_GET_FLD
	movl	%eax, %ebx
	movq	_SYS_PMSFCR_EL1_B_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r15d, %ebx
	je	LBB0_1
## %bb.2:
	movq	_SYS_PMSFCR_EL1_FT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	orl	%ebx, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	_event_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ATTR_CFG_GET_FLD
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_SYS_PMSFCR_EL1_FE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r15d
LBB0_5:
	movq	_min_latency@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ATTR_CFG_GET_FLD
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_SYS_PMSFCR_EL1_FL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_load_filter,4,2                ## @load_filter
	.comm	_SYS_PMSFCR_EL1_LD_SHIFT,4,2    ## @SYS_PMSFCR_EL1_LD_SHIFT
	.comm	_store_filter,4,2               ## @store_filter
	.comm	_SYS_PMSFCR_EL1_ST_SHIFT,4,2    ## @SYS_PMSFCR_EL1_ST_SHIFT
	.comm	_branch_filter,4,2              ## @branch_filter
	.comm	_SYS_PMSFCR_EL1_B_SHIFT,4,2     ## @SYS_PMSFCR_EL1_B_SHIFT
	.comm	_SYS_PMSFCR_EL1_FT_SHIFT,4,2    ## @SYS_PMSFCR_EL1_FT_SHIFT
	.comm	_event_filter,4,2               ## @event_filter
	.comm	_SYS_PMSFCR_EL1_FE_SHIFT,4,2    ## @SYS_PMSFCR_EL1_FE_SHIFT
	.comm	_min_latency,4,2                ## @min_latency
	.comm	_SYS_PMSFCR_EL1_FL_SHIFT,4,2    ## @SYS_PMSFCR_EL1_FL_SHIFT
	.no_dead_strip	_arm_spe_event_to_pmsfcr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_spe_event_to_pmsfcr
_arm_spe_event_to_pmsfcr:               ; @arm_spe_event_to_pmsfcr
	.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	x19, x0
Lloh0:
	adrp	x8, _load_filter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _load_filter@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ATTR_CFG_GET_FLD
Lloh3:
	adrp	x8, _SYS_PMSFCR_EL1_LD_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_PMSFCR_EL1_LD_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w20, w0, w8
Lloh6:
	adrp	x8, _store_filter@GOTPAGE
Lloh7:
	ldr	x8, [x8, _store_filter@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ATTR_CFG_GET_FLD
Lloh9:
	adrp	x8, _SYS_PMSFCR_EL1_ST_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SYS_PMSFCR_EL1_ST_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w20, w8, w20
Lloh12:
	adrp	x8, _branch_filter@GOTPAGE
Lloh13:
	ldr	x8, [x8, _branch_filter@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ATTR_CFG_GET_FLD
Lloh15:
	adrp	x8, _SYS_PMSFCR_EL1_B_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SYS_PMSFCR_EL1_B_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w20, w20, w8
	cbz	w20, LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _SYS_PMSFCR_EL1_FT_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SYS_PMSFCR_EL1_FT_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w0, w20
LBB0_2:
Lloh21:
	adrp	x8, _event_filter@GOTPAGE
Lloh22:
	ldr	x8, [x8, _event_filter@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ATTR_CFG_GET_FLD
	cbz	w0, LBB0_4
; %bb.3:
Lloh24:
	adrp	x8, _SYS_PMSFCR_EL1_FE_SHIFT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SYS_PMSFCR_EL1_FE_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w0, w20
LBB0_4:
Lloh27:
	adrp	x8, _min_latency@GOTPAGE
Lloh28:
	ldr	x8, [x8, _min_latency@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ATTR_CFG_GET_FLD
	cbz	w0, LBB0_6
; %bb.5:
Lloh30:
	adrp	x8, _SYS_PMSFCR_EL1_FL_SHIFT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SYS_PMSFCR_EL1_FL_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w0, w20
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_load_filter,4,2                ; @load_filter
	.comm	_SYS_PMSFCR_EL1_LD_SHIFT,4,2    ; @SYS_PMSFCR_EL1_LD_SHIFT
	.comm	_store_filter,4,2               ; @store_filter
	.comm	_SYS_PMSFCR_EL1_ST_SHIFT,4,2    ; @SYS_PMSFCR_EL1_ST_SHIFT
	.comm	_branch_filter,4,2              ; @branch_filter
	.comm	_SYS_PMSFCR_EL1_B_SHIFT,4,2     ; @SYS_PMSFCR_EL1_B_SHIFT
	.comm	_SYS_PMSFCR_EL1_FT_SHIFT,4,2    ; @SYS_PMSFCR_EL1_FT_SHIFT
	.comm	_event_filter,4,2               ; @event_filter
	.comm	_SYS_PMSFCR_EL1_FE_SHIFT,4,2    ; @SYS_PMSFCR_EL1_FE_SHIFT
	.comm	_min_latency,4,2                ; @min_latency
	.comm	_SYS_PMSFCR_EL1_FL_SHIFT,4,2    ; @SYS_PMSFCR_EL1_FL_SHIFT
	.no_dead_strip	_arm_spe_event_to_pmsfcr
.subsections_via_symbols
