	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_ccn_pmu_xp_dt_config
_arm_ccn_pmu_xp_dt_config:              ## @arm_ccn_pmu_xp_dt_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_pmu_to_arm_ccn
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	_CCN_IDX_PMU_CYCLE_COUNTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %edi
	callq	_CCN_CONFIG_TYPE
	movq	_CCN_TYPE_XP@GOTPCREL(%rip), %rcx
	movq	8(%r14), %r15
	movl	(%rbx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	callq	_CCN_CONFIG_XP
	jmp	LBB0_4
LBB0_3:
	callq	_CCN_CONFIG_NODE
	movl	%eax, %edi
	callq	_arm_ccn_node_to_xp
LBB0_4:
	movq	%rax, %r13
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.6:
	movq	_CCN_XP_DT_CONFIG__DT_CFG__PASS_THROUGH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	leaq	16(%rbx), %rax
LBB0_7:
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_CCN_XP_DT_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15,%r13,8), %rdi
	callq	_readl
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	movq	_CCN_XP_DT_CONFIG__DT_CFG__MASK@GOTPCREL(%rip), %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r15d
	movq	8(%rbx), %rdi
	callq	_CCN_XP_DT_CONFIG__DT_CFG__SHIFT
	movl	%eax, %ecx
	shll	%cl, %r15d
	notl	%r15d
	andl	%r13d, %r15d
	movq	8(%rbx), %rdi
	callq	_CCN_XP_DT_CONFIG__DT_CFG__SHIFT
	movl	%eax, %ecx
	shll	%cl, %r12d
	orl	%r15d, %r12d
	movq	_CCN_XP_DT_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx,%rax,8), %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CCN_IDX_PMU_CYCLE_COUNTER,8,3  ## @CCN_IDX_PMU_CYCLE_COUNTER
	.comm	_CCN_TYPE_XP,8,3                ## @CCN_TYPE_XP
	.comm	_CCN_XP_DT_CONFIG__DT_CFG__PASS_THROUGH,4,2 ## @CCN_XP_DT_CONFIG__DT_CFG__PASS_THROUGH
	.comm	_CCN_XP_DT_CONFIG,8,3           ## @CCN_XP_DT_CONFIG
	.comm	_CCN_XP_DT_CONFIG__DT_CFG__MASK,4,2 ## @CCN_XP_DT_CONFIG__DT_CFG__MASK
	.no_dead_strip	_arm_ccn_pmu_xp_dt_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_xp_dt_config
_arm_ccn_pmu_xp_dt_config:              ; @arm_ccn_pmu_xp_dt_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #24]
	bl	_pmu_to_arm_ccn
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _CCN_IDX_PMU_CYCLE_COUNTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CCN_IDX_PMU_CYCLE_COUNTER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	w0, [x20]
	bl	_CCN_CONFIG_TYPE
	mov	x8, x0
Lloh3:
	adrp	x9, _CCN_TYPE_XP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CCN_TYPE_XP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x23, [x19, #8]
	ldr	w0, [x20]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	bl	_CCN_CONFIG_XP
	b	LBB0_5
LBB0_4:
	bl	_CCN_CONFIG_NODE
	bl	_arm_ccn_node_to_xp
LBB0_5:
	mov	x22, x0
	add	x8, x20, #16
Lloh6:
	adrp	x9, _CCN_XP_DT_CONFIG__DT_CFG__PASS_THROUGH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CCN_XP_DT_CONFIG__DT_CFG__PASS_THROUGH@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w24, [x8]
	mov	x0, x19
	bl	_spin_lock
	lsl	x22, x22, #3
	ldr	x8, [x23, x22]
Lloh8:
	adrp	x25, _CCN_XP_DT_CONFIG@GOTPAGE
Lloh9:
	ldr	x25, [x25, _CCN_XP_DT_CONFIG@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
Lloh10:
	adrp	x8, _CCN_XP_DT_CONFIG__DT_CFG__MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CCN_XP_DT_CONFIG__DT_CFG__MASK@GOTPAGEOFF]
Lloh12:
	ldr	w26, [x8]
	ldr	x0, [x20, #8]
	bl	_CCN_XP_DT_CONFIG__DT_CFG__SHIFT
	lsl	w8, w26, w0
	bic	w21, w21, w8
	ldr	x0, [x20, #8]
	bl	_CCN_XP_DT_CONFIG__DT_CFG__SHIFT
	lsl	w8, w24, w0
	orr	w0, w8, w21
	ldr	x8, [x23, x22]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CCN_IDX_PMU_CYCLE_COUNTER,8,3  ; @CCN_IDX_PMU_CYCLE_COUNTER
	.comm	_CCN_TYPE_XP,8,3                ; @CCN_TYPE_XP
	.comm	_CCN_XP_DT_CONFIG__DT_CFG__PASS_THROUGH,4,2 ; @CCN_XP_DT_CONFIG__DT_CFG__PASS_THROUGH
	.comm	_CCN_XP_DT_CONFIG,8,3           ; @CCN_XP_DT_CONFIG
	.comm	_CCN_XP_DT_CONFIG__DT_CFG__MASK,4,2 ; @CCN_XP_DT_CONFIG__DT_CFG__MASK
	.no_dead_strip	_arm_ccn_pmu_xp_dt_config
.subsections_via_symbols
