	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_spe_pmu_buf_get_fault_act
_arm_spe_pmu_buf_get_fault_act:         ## @arm_spe_pmu_buf_get_fault_act
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_psb_csync
	movq	_nsh@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dsb
	xorl	%eax, %eax
	callq	_isb
	movq	_SYS_PMBSR_EL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_sysreg_s
	movl	%eax, %ebx
	movq	_SYS_PMBSR_EL1_S_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	movq	_SYS_PMBSR_EL1_DL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movq	_PERF_AUX_FLAG_TRUNCATED@GOTPCREL(%rip), %rax
	movq	_PERF_AUX_FLAG_PARTIAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_perf_aux_output_flag
LBB0_4:
	movq	_SYS_PMBSR_EL1_COLL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	movq	_PERF_AUX_FLAG_COLLISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_perf_aux_output_flag
LBB0_6:
	movq	_SYS_PMBSR_EL1_EC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SYS_PMBSR_EL1_EC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	andl	%ebx, %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_12
LBB0_1:
	movq	_SPE_PMU_BUF_FAULT_ACT_SPURIOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_8:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.10:
	movq	_SYS_PMBSR_EL1_BUF_BSC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SYS_PMBSR_EL1_BUF_BSC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	andl	%ebx, %eax
	cmpl	$131, %eax
	jne	LBB0_11
## %bb.15:
	movq	_SPE_PMU_BUF_FAULT_ACT_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.2(%rip), %r15
LBB0_12:
	xorl	%eax, %eax
	callq	_smp_processor_id
	movl	%eax, %r12d
	movq	_SYS_PMBPTR_EL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_sysreg_s
	movl	%eax, %r13d
	movq	_SYS_PMBLIMITR_EL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_sysreg_s
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	callq	_pr_err_ratelimited
	movq	_SPE_PMU_BUF_FAULT_ACT_FATAL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_arm_spe_perf_aux_output_end
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nsh,4,2                        ## @nsh
	.comm	_SYS_PMBSR_EL1,4,2              ## @SYS_PMBSR_EL1
	.comm	_SYS_PMBSR_EL1_S_SHIFT,4,2      ## @SYS_PMBSR_EL1_S_SHIFT
	.comm	_SPE_PMU_BUF_FAULT_ACT_SPURIOUS,4,2 ## @SPE_PMU_BUF_FAULT_ACT_SPURIOUS
	.comm	_SYS_PMBSR_EL1_DL_SHIFT,4,2     ## @SYS_PMBSR_EL1_DL_SHIFT
	.comm	_PERF_AUX_FLAG_TRUNCATED,4,2    ## @PERF_AUX_FLAG_TRUNCATED
	.comm	_PERF_AUX_FLAG_PARTIAL,4,2      ## @PERF_AUX_FLAG_PARTIAL
	.comm	_SYS_PMBSR_EL1_COLL_SHIFT,4,2   ## @SYS_PMBSR_EL1_COLL_SHIFT
	.comm	_PERF_AUX_FLAG_COLLISION,4,2    ## @PERF_AUX_FLAG_COLLISION
	.comm	_SYS_PMBSR_EL1_EC_MASK,4,2      ## @SYS_PMBSR_EL1_EC_MASK
	.comm	_SYS_PMBSR_EL1_EC_SHIFT,4,2     ## @SYS_PMBSR_EL1_EC_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected buffer fault"

L_.str.1:                               ## @.str.1
	.asciz	"Unknown error code"

	.comm	_SYS_PMBSR_EL1_BUF_BSC_MASK,4,2 ## @SYS_PMBSR_EL1_BUF_BSC_MASK
	.comm	_SYS_PMBSR_EL1_BUF_BSC_SHIFT,4,2 ## @SYS_PMBSR_EL1_BUF_BSC_SHIFT
	.comm	_SPE_PMU_BUF_FAULT_ACT_OK,4,2   ## @SPE_PMU_BUF_FAULT_ACT_OK
L_.str.2:                               ## @.str.2
	.asciz	"Unknown buffer status code"

L_.str.3:                               ## @.str.3
	.asciz	"%s on CPU %d [PMBSR=0x%016llx, PMBPTR=0x%016llx, PMBLIMITR=0x%016llx]\n"

	.comm	_SYS_PMBPTR_EL1,4,2             ## @SYS_PMBPTR_EL1
	.comm	_SYS_PMBLIMITR_EL1,4,2          ## @SYS_PMBLIMITR_EL1
	.comm	_SPE_PMU_BUF_FAULT_ACT_FATAL,4,2 ## @SPE_PMU_BUF_FAULT_ACT_FATAL
	.no_dead_strip	_arm_spe_pmu_buf_get_fault_act
.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_buf_get_fault_act
_arm_spe_pmu_buf_get_fault_act:         ; @arm_spe_pmu_buf_get_fault_act
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_psb_csync
Lloh0:
	adrp	x8, _nsh@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nsh@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_dsb
	bl	_isb
Lloh3:
	adrp	x8, _SYS_PMBSR_EL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_PMBSR_EL1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_read_sysreg_s
	mov	x20, x0
Lloh6:
	adrp	x8, _SYS_PMBSR_EL1_S_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYS_PMBSR_EL1_S_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_7
; %bb.1:
Lloh9:
	adrp	x8, _SYS_PMBSR_EL1_DL_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SYS_PMBSR_EL1_DL_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _PERF_AUX_FLAG_TRUNCATED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PERF_AUX_FLAG_TRUNCATED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PERF_AUX_FLAG_PARTIAL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PERF_AUX_FLAG_PARTIAL@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_perf_aux_output_flag
LBB0_3:
Lloh18:
	adrp	x8, _SYS_PMBSR_EL1_COLL_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SYS_PMBSR_EL1_COLL_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_5
; %bb.4:
Lloh21:
	adrp	x8, _PERF_AUX_FLAG_COLLISION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PERF_AUX_FLAG_COLLISION@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_perf_aux_output_flag
LBB0_5:
Lloh24:
	adrp	x8, _SYS_PMBSR_EL1_EC_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SYS_PMBSR_EL1_EC_MASK@GOTPAGEOFF]
Lloh26:
	adrp	x9, _SYS_PMBSR_EL1_EC_SHIFT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SYS_PMBSR_EL1_EC_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	and	w8, w8, w20
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_8
; %bb.6:
Lloh30:
	adrp	x21, l_.str@PAGE
Lloh31:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh32:
	adrp	x8, _SPE_PMU_BUF_FAULT_ACT_SPURIOUS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SPE_PMU_BUF_FAULT_ACT_SPURIOUS@GOTPAGEOFF]
Lloh34:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_8:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.9:
Lloh35:
	adrp	x8, _SYS_PMBSR_EL1_BUF_BSC_MASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SYS_PMBSR_EL1_BUF_BSC_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _SYS_PMBSR_EL1_BUF_BSC_SHIFT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SYS_PMBSR_EL1_BUF_BSC_SHIFT@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	and	w8, w8, w20
	cmp	w8, #131
	b.ne	LBB0_12
; %bb.10:
Lloh41:
	adrp	x8, _SPE_PMU_BUF_FAULT_ACT_OK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SPE_PMU_BUF_FAULT_ACT_OK@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh43:
	adrp	x21, l_.str.1@PAGE
Lloh44:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh45:
	adrp	x21, l_.str.2@PAGE
Lloh46:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_13:
	bl	_smp_processor_id
	mov	x22, x0
Lloh47:
	adrp	x8, _SYS_PMBPTR_EL1@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SYS_PMBPTR_EL1@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_read_sysreg_s
	mov	x23, x0
Lloh50:
	adrp	x8, _SYS_PMBLIMITR_EL1@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SYS_PMBLIMITR_EL1@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_read_sysreg_s
	mov	x5, x0
Lloh53:
	adrp	x0, l_.str.3@PAGE
Lloh54:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x23
	bl	_pr_err_ratelimited
Lloh55:
	adrp	x8, _SPE_PMU_BUF_FAULT_ACT_FATAL@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SPE_PMU_BUF_FAULT_ACT_FATAL@GOTPAGEOFF]
LBB0_14:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_arm_spe_perf_aux_output_end
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_nsh,4,2                        ; @nsh
	.comm	_SYS_PMBSR_EL1,4,2              ; @SYS_PMBSR_EL1
	.comm	_SYS_PMBSR_EL1_S_SHIFT,4,2      ; @SYS_PMBSR_EL1_S_SHIFT
	.comm	_SPE_PMU_BUF_FAULT_ACT_SPURIOUS,4,2 ; @SPE_PMU_BUF_FAULT_ACT_SPURIOUS
	.comm	_SYS_PMBSR_EL1_DL_SHIFT,4,2     ; @SYS_PMBSR_EL1_DL_SHIFT
	.comm	_PERF_AUX_FLAG_TRUNCATED,4,2    ; @PERF_AUX_FLAG_TRUNCATED
	.comm	_PERF_AUX_FLAG_PARTIAL,4,2      ; @PERF_AUX_FLAG_PARTIAL
	.comm	_SYS_PMBSR_EL1_COLL_SHIFT,4,2   ; @SYS_PMBSR_EL1_COLL_SHIFT
	.comm	_PERF_AUX_FLAG_COLLISION,4,2    ; @PERF_AUX_FLAG_COLLISION
	.comm	_SYS_PMBSR_EL1_EC_MASK,4,2      ; @SYS_PMBSR_EL1_EC_MASK
	.comm	_SYS_PMBSR_EL1_EC_SHIFT,4,2     ; @SYS_PMBSR_EL1_EC_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected buffer fault"

l_.str.1:                               ; @.str.1
	.asciz	"Unknown error code"

	.comm	_SYS_PMBSR_EL1_BUF_BSC_MASK,4,2 ; @SYS_PMBSR_EL1_BUF_BSC_MASK
	.comm	_SYS_PMBSR_EL1_BUF_BSC_SHIFT,4,2 ; @SYS_PMBSR_EL1_BUF_BSC_SHIFT
	.comm	_SPE_PMU_BUF_FAULT_ACT_OK,4,2   ; @SPE_PMU_BUF_FAULT_ACT_OK
l_.str.2:                               ; @.str.2
	.asciz	"Unknown buffer status code"

l_.str.3:                               ; @.str.3
	.asciz	"%s on CPU %d [PMBSR=0x%016llx, PMBPTR=0x%016llx, PMBLIMITR=0x%016llx]\n"

	.comm	_SYS_PMBPTR_EL1,4,2             ; @SYS_PMBPTR_EL1
	.comm	_SYS_PMBLIMITR_EL1,4,2          ; @SYS_PMBLIMITR_EL1
	.comm	_SPE_PMU_BUF_FAULT_ACT_FATAL,4,2 ; @SPE_PMU_BUF_FAULT_ACT_FATAL
	.no_dead_strip	_arm_spe_pmu_buf_get_fault_act
.subsections_via_symbols
