	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_ccn_pmu_node_event_config
_arm_ccn_pmu_node_event_config:         ## @arm_ccn_pmu_node_event_config
	.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, %r15
	movl	24(%rdi), %edi
	callq	_pmu_to_arm_ccn
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movq	(%rax,%rcx,8), %r12
	movl	(%r15), %edi
	callq	_CCN_CONFIG_TYPE
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_CCN_CONFIG_NODE
	movl	%eax, %edi
	callq	_arm_ccn_node_to_xp_port
	movl	16(%r15), %esi
	movq	%rax, %rdi
	callq	_CCN_XP_DT_CONFIG__DT_CFG__DEVICE_PMU_EVENT
	movl	%eax, 20(%r15)
	movq	_CCN_HNF_PMU_EVENT_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CCN_SBAS_PMU_EVENT_SEL@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	(%rbx), %rax
	movq	_CCN_RNI_PMU_EVENT_SEL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUILD_BUG_ON
	movl	$1, %edi
	callq	_CCN_HNF_PMU_EVENT_SEL__ID__SHIFT
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_CCN_SBAS_PMU_EVENT_SEL__ID__SHIFT
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_BUILD_BUG_ON
	movl	$1, %edi
	callq	_CCN_SBAS_PMU_EVENT_SEL__ID__SHIFT
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_CCN_RNI_PMU_EVENT_SEL__ID__SHIFT
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	_CCN_HNF_PMU_EVENT_SEL__ID__MASK@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_CCN_SBAS_PMU_EVENT_SEL__ID__MASK@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	(%rbx), %rax
	movq	_CCN_RNI_PMU_EVENT_SEL__ID__MASK@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	_CCN_TYPE_HNF@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	je	LBB0_3
## %bb.1:
	movq	_CCN_TYPE_SBAS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_3
## %bb.2:
	movq	_CCN_TYPE_RNI_3P@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_arm_ccn_pmu_type_eq
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, %r14
	movq	%r12, %r13
	movq	_CCN_HNF_PMU_EVENT_SEL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r13), %rdi
	callq	_readl
	movq	%rax, %rbx
	movq	(%r14), %r14
	movl	16(%r15), %edi
	callq	_CCN_HNF_PMU_EVENT_SEL__ID__SHIFT
	movl	%eax, %ecx
	shlq	%cl, %r14
	notq	%r14
	andq	%rbx, %r14
	movl	(%r15), %edi
	callq	_CCN_CONFIG_EVENT
	movq	%rax, %rbx
	movl	16(%r15), %edi
	callq	_CCN_HNF_PMU_EVENT_SEL__ID__SHIFT
	movl	%eax, %ecx
	shlq	%cl, %rbx
	orq	%r14, %rbx
	movq	(%r12), %rsi
	addq	(%r13), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CCN_HNF_PMU_EVENT_SEL,8,3      ## @CCN_HNF_PMU_EVENT_SEL
	.comm	_CCN_SBAS_PMU_EVENT_SEL,8,3     ## @CCN_SBAS_PMU_EVENT_SEL
	.comm	_CCN_RNI_PMU_EVENT_SEL,8,3      ## @CCN_RNI_PMU_EVENT_SEL
	.comm	_CCN_HNF_PMU_EVENT_SEL__ID__MASK,8,3 ## @CCN_HNF_PMU_EVENT_SEL__ID__MASK
	.comm	_CCN_SBAS_PMU_EVENT_SEL__ID__MASK,8,3 ## @CCN_SBAS_PMU_EVENT_SEL__ID__MASK
	.comm	_CCN_RNI_PMU_EVENT_SEL__ID__MASK,8,3 ## @CCN_RNI_PMU_EVENT_SEL__ID__MASK
	.comm	_CCN_TYPE_HNF,8,3               ## @CCN_TYPE_HNF
	.comm	_CCN_TYPE_SBAS,8,3              ## @CCN_TYPE_SBAS
	.comm	_CCN_TYPE_RNI_3P,4,2            ## @CCN_TYPE_RNI_3P
	.no_dead_strip	_arm_ccn_pmu_node_event_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_ccn_pmu_node_event_config
_arm_ccn_pmu_node_event_config:         ; @arm_ccn_pmu_node_event_config
	.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
	ldr	w0, [x0, #24]
	bl	_pmu_to_arm_ccn
	ldr	x8, [x0]
	ldr	x9, [x19, #8]
	ldr	x22, [x8, x9, lsl #3]
	ldr	w0, [x19]
	bl	_CCN_CONFIG_TYPE
	mov	x20, x0
	ldr	w0, [x19]
	bl	_CCN_CONFIG_NODE
	bl	_arm_ccn_node_to_xp_port
	ldr	w1, [x19, #16]
	bl	_CCN_XP_DT_CONFIG__DT_CFG__DEVICE_PMU_EVENT
	str	w0, [x19, #20]
Lloh0:
	adrp	x23, _CCN_HNF_PMU_EVENT_SEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CCN_HNF_PMU_EVENT_SEL@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x21, _CCN_SBAS_PMU_EVENT_SEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CCN_SBAS_PMU_EVENT_SEL@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _CCN_RNI_PMU_EVENT_SEL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CCN_RNI_PMU_EVENT_SEL@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	mov	w0, #1
	bl	_CCN_HNF_PMU_EVENT_SEL__ID__SHIFT
	mov	x21, x0
	mov	w0, #1
	bl	_CCN_SBAS_PMU_EVENT_SEL__ID__SHIFT
	cmp	x21, x0
	cset	w0, ne
	bl	_BUILD_BUG_ON
	mov	w0, #1
	bl	_CCN_SBAS_PMU_EVENT_SEL__ID__SHIFT
	mov	x21, x0
	mov	w0, #1
	bl	_CCN_RNI_PMU_EVENT_SEL__ID__SHIFT
	cmp	x21, x0
	cset	w0, ne
	bl	_BUILD_BUG_ON
Lloh7:
	adrp	x21, _CCN_HNF_PMU_EVENT_SEL__ID__MASK@GOTPAGE
Lloh8:
	ldr	x21, [x21, _CCN_HNF_PMU_EVENT_SEL__ID__MASK@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh9:
	adrp	x24, _CCN_SBAS_PMU_EVENT_SEL__ID__MASK@GOTPAGE
Lloh10:
	ldr	x24, [x24, _CCN_SBAS_PMU_EVENT_SEL__ID__MASK@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	ldr	x8, [x24]
Lloh11:
	adrp	x9, _CCN_RNI_PMU_EVENT_SEL__ID__MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CCN_RNI_PMU_EVENT_SEL__ID__MASK@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	mov	w0, #0
Lloh14:
	adrp	x8, _CCN_TYPE_HNF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CCN_TYPE_HNF@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_3
; %bb.1:
Lloh17:
	adrp	x8, _CCN_TYPE_SBAS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CCN_TYPE_SBAS@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_3
; %bb.2:
Lloh20:
	adrp	x8, _CCN_TYPE_RNI_3P@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CCN_TYPE_RNI_3P@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_arm_ccn_pmu_type_eq
	cmp	w0, #0
	cset	w0, eq
LBB0_3:
	bl	_WARN_ON
	cbz	x0, LBB0_5
; %bb.4:
	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
LBB0_5:
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x21, [x21]
	ldr	w0, [x19, #16]
	bl	_CCN_HNF_PMU_EVENT_SEL__ID__SHIFT
	lsl	x8, x21, x0
	bic	x21, x20, x8
	ldr	w0, [x19]
	bl	_CCN_CONFIG_EVENT
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_CCN_HNF_PMU_EVENT_SEL__ID__SHIFT
	lsl	x8, x20, x0
	orr	x0, x8, x21
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x1, x9, x8
	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
	b	_writel
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CCN_HNF_PMU_EVENT_SEL,8,3      ; @CCN_HNF_PMU_EVENT_SEL
	.comm	_CCN_SBAS_PMU_EVENT_SEL,8,3     ; @CCN_SBAS_PMU_EVENT_SEL
	.comm	_CCN_RNI_PMU_EVENT_SEL,8,3      ; @CCN_RNI_PMU_EVENT_SEL
	.comm	_CCN_HNF_PMU_EVENT_SEL__ID__MASK,8,3 ; @CCN_HNF_PMU_EVENT_SEL__ID__MASK
	.comm	_CCN_SBAS_PMU_EVENT_SEL__ID__MASK,8,3 ; @CCN_SBAS_PMU_EVENT_SEL__ID__MASK
	.comm	_CCN_RNI_PMU_EVENT_SEL__ID__MASK,8,3 ; @CCN_RNI_PMU_EVENT_SEL__ID__MASK
	.comm	_CCN_TYPE_HNF,8,3               ; @CCN_TYPE_HNF
	.comm	_CCN_TYPE_SBAS,8,3              ; @CCN_TYPE_SBAS
	.comm	_CCN_TYPE_RNI_3P,4,2            ; @CCN_TYPE_RNI_3P
	.no_dead_strip	_arm_ccn_pmu_node_event_config
.subsections_via_symbols
