	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_armadaxp_l2_init               ## -- Begin function armadaxp_l2_init
	.p2align	4, 0x90
_armadaxp_l2_init:                      ## @armadaxp_l2_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ARMADAXP_L2_AUX_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_read_l2_cache
	movq	_L2_WBWT_MODE_MASK@GOTPCREL(%rip), %rcx
	movq	_L2_REP_STRAT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_L2_REP_STRAT_SEMIPLRU@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_L2_WBWT_MODE_WT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%rbx), %edi
	callq	_write_l2_cache
	xorl	%eax, %eax
	callq	_armadaxp_l2_idcache_inv_all
	movq	_ARMADAXP_L2_INT_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_write_l2_cache
	movq	_ARMADAXP_L2_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_read_l2_cache
	movl	(%rbx), %edi
	movq	_L2_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_write_l2_cache
	xorl	%edi, %edi
	callq	_ARMADAXP_L2_CNTR_CONF
	movl	%eax, %edi
	movl	$983056, %esi                   ## imm = 0xF0010
	callq	_write_l2_cache
	movl	$1, %edi
	callq	_ARMADAXP_L2_CNTR_CONF
	movl	%eax, %edi
	movl	$983048, %esi                   ## imm = 0xF0008
	callq	_write_l2_cache
	movq	_ARMADAXP_L2_CNTR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$771, %esi                      ## imm = 0x303
	callq	_write_l2_cache
	movq	_COHER_FABRIC_CFU@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_read_coher_fabric
	orl	$393216, %eax                   ## imm = 0x60000
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_write_coher_fabric
	movq	_COHER_FABRIC_CIB_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_read_coher_fabric
	orl	$458752, %eax                   ## imm = 0x70000
	movl	(%rbx), %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_write_coher_fabric             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARMADAXP_L2_AUX_CTRL,4,2       ## @ARMADAXP_L2_AUX_CTRL
	.comm	_L2_WBWT_MODE_MASK,4,2          ## @L2_WBWT_MODE_MASK
	.comm	_L2_REP_STRAT_MASK,4,2          ## @L2_REP_STRAT_MASK
	.comm	_L2_REP_STRAT_SEMIPLRU,4,2      ## @L2_REP_STRAT_SEMIPLRU
	.comm	_L2_WBWT_MODE_WT,4,2            ## @L2_WBWT_MODE_WT
	.comm	_ARMADAXP_L2_INT_CAUSE,4,2      ## @ARMADAXP_L2_INT_CAUSE
	.comm	_ARMADAXP_L2_CTRL,4,2           ## @ARMADAXP_L2_CTRL
	.comm	_L2_ENABLE,4,2                  ## @L2_ENABLE
	.comm	_ARMADAXP_L2_CNTR_CTRL,4,2      ## @ARMADAXP_L2_CNTR_CTRL
	.comm	_COHER_FABRIC_CFU,4,2           ## @COHER_FABRIC_CFU
	.comm	_COHER_FABRIC_CIB_CTRL,4,2      ## @COHER_FABRIC_CIB_CTRL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_armadaxp_l2_init               ; -- Begin function armadaxp_l2_init
	.p2align	2
_armadaxp_l2_init:                      ; @armadaxp_l2_init
	.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
Lloh0:
	adrp	x19, _ARMADAXP_L2_AUX_CTRL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ARMADAXP_L2_AUX_CTRL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_read_l2_cache
Lloh2:
	adrp	x8, _L2_WBWT_MODE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _L2_WBWT_MODE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _L2_REP_STRAT_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _L2_REP_STRAT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh8:
	adrp	x9, _L2_REP_STRAT_SEMIPLRU@GOTPAGE
Lloh9:
	ldr	x9, [x9, _L2_REP_STRAT_SEMIPLRU@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _L2_WBWT_MODE_WT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _L2_WBWT_MODE_WT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w0, [x19]
	bl	_write_l2_cache
	bl	_armadaxp_l2_idcache_inv_all
Lloh14:
	adrp	x8, _ARMADAXP_L2_INT_CAUSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARMADAXP_L2_INT_CAUSE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #511
	bl	_write_l2_cache
Lloh17:
	adrp	x19, _ARMADAXP_L2_CTRL@GOTPAGE
Lloh18:
	ldr	x19, [x19, _ARMADAXP_L2_CTRL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_read_l2_cache
	ldr	w8, [x19]
Lloh19:
	adrp	x9, _L2_ENABLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _L2_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_write_l2_cache
	mov	w0, #0
	bl	_ARMADAXP_L2_CNTR_CONF
	mov	w8, #8
	movk	w8, #15, lsl #16
	add	w1, w8, #8
	bl	_write_l2_cache
	mov	w0, #1
	bl	_ARMADAXP_L2_CNTR_CONF
	mov	w1, #8
	movk	w1, #15, lsl #16
	bl	_write_l2_cache
Lloh22:
	adrp	x8, _ARMADAXP_L2_CNTR_CTRL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARMADAXP_L2_CNTR_CTRL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	w1, #771
	bl	_write_l2_cache
Lloh25:
	adrp	x19, _COHER_FABRIC_CFU@GOTPAGE
Lloh26:
	ldr	x19, [x19, _COHER_FABRIC_CFU@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_read_coher_fabric
	orr	w1, w0, #0x60000
	ldr	w0, [x19]
	bl	_write_coher_fabric
Lloh27:
	adrp	x19, _COHER_FABRIC_CIB_CTRL@GOTPAGE
Lloh28:
	ldr	x19, [x19, _COHER_FABRIC_CIB_CTRL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_read_coher_fabric
	orr	w1, w0, #0x70000
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_coher_fabric
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ARMADAXP_L2_AUX_CTRL,4,2       ; @ARMADAXP_L2_AUX_CTRL
	.comm	_L2_WBWT_MODE_MASK,4,2          ; @L2_WBWT_MODE_MASK
	.comm	_L2_REP_STRAT_MASK,4,2          ; @L2_REP_STRAT_MASK
	.comm	_L2_REP_STRAT_SEMIPLRU,4,2      ; @L2_REP_STRAT_SEMIPLRU
	.comm	_L2_WBWT_MODE_WT,4,2            ; @L2_WBWT_MODE_WT
	.comm	_ARMADAXP_L2_INT_CAUSE,4,2      ; @ARMADAXP_L2_INT_CAUSE
	.comm	_ARMADAXP_L2_CTRL,4,2           ; @ARMADAXP_L2_CTRL
	.comm	_L2_ENABLE,4,2                  ; @L2_ENABLE
	.comm	_ARMADAXP_L2_CNTR_CTRL,4,2      ; @ARMADAXP_L2_CNTR_CTRL
	.comm	_COHER_FABRIC_CFU,4,2           ; @COHER_FABRIC_CFU
	.comm	_COHER_FABRIC_CIB_CTRL,4,2      ; @COHER_FABRIC_CIB_CTRL
.subsections_via_symbols
