	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_implementation_adapter_regs_psl9
_init_implementation_adapter_regs_psl9: ## @init_implementation_adapter_regs_psl9
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	callq	_cxl_calc_capp_routing
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	-36(%rbp), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_cxl_get_xsl9_dsnctl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	_CXL_XSL9_DSNCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	_cxl_p1_write
	movq	_CXL_PSL9_FIR_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_cxl_p1_write
	movq	_CXL_PSL9_DSNDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$76304, %edx                    ## imm = 0x12A10
	callq	_cxl_p1_write
	movq	_CXL_XSL9_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$5, %edx
	callq	_cxl_p1_write
	movq	_CXL_XSL9_INV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$134201856, %edx                ## imm = 0x7FFC200
	callq	_cxl_p1_write
	cmpl	$3, -40(%rbp)
	jne	LBB0_4
## %bb.3:
	movq	_CXL_PSL9_APCDEDTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-65536, %edx                   ## imm = 0xFFFF0000
	callq	_cxl_p1_write
LBB0_4:
	movq	_CXL_PSL9_APCDEDALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_cxl_p1_write
	movq	_CXL_PSL9_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_cxl_p1_write
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_cxl_p1_read
	movq	_CXL_PSL_DEBUG_CDC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	(%r14), %rax
	movl	$1, (%rax)
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXL_XSL9_DSNCTL,4,2            ## @CXL_XSL9_DSNCTL
	.comm	_CXL_PSL9_FIR_CNTL,4,2          ## @CXL_PSL9_FIR_CNTL
	.comm	_CXL_PSL9_DSNDCTL,4,2           ## @CXL_PSL9_DSNDCTL
	.comm	_CXL_XSL9_DEF,4,2               ## @CXL_XSL9_DEF
	.comm	_CXL_XSL9_INV,4,2               ## @CXL_XSL9_INV
	.comm	_CXL_PSL9_APCDEDTYPE,4,2        ## @CXL_PSL9_APCDEDTYPE
	.comm	_CXL_PSL9_APCDEDALLOC,4,2       ## @CXL_PSL9_APCDEDALLOC
	.comm	_CXL_PSL9_DEBUG,4,2             ## @CXL_PSL9_DEBUG
	.comm	_CXL_PSL_DEBUG_CDC,4,2          ## @CXL_PSL_DEBUG_CDC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No data-cache present\n"

	.no_dead_strip	_init_implementation_adapter_regs_psl9
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_implementation_adapter_regs_psl9
_init_implementation_adapter_regs_psl9: ; @init_implementation_adapter_regs_psl9
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x20
	bl	_cxl_calc_capp_routing
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w1, [sp]
	add	x2, sp, #12
	mov	x0, x20
	bl	_cxl_get_xsl9_dsnctl
	cbnz	w0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _CXL_XSL9_DSNCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXL_XSL9_DSNCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_cxl_p1_write
Lloh3:
	adrp	x8, _CXL_PSL9_FIR_CNTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CXL_PSL9_FIR_CNTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_cxl_p1_write
Lloh6:
	adrp	x8, _CXL_PSL9_DSNDCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CXL_PSL9_DSNDCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #10768
	movk	w2, #1, lsl #16
	bl	_cxl_p1_write
Lloh9:
	adrp	x8, _CXL_XSL9_DEF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CXL_XSL9_DEF@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #5
	bl	_cxl_p1_write
Lloh12:
	adrp	x8, _CXL_XSL9_INV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CXL_XSL9_INV@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #49664
	movk	w2, #2047, lsl #16
	bl	_cxl_p1_write
	ldr	w8, [sp, #4]
	cmp	w8, #3
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _CXL_PSL9_APCDEDTYPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CXL_PSL9_APCDEDTYPE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-65536
	bl	_cxl_p1_write
LBB0_4:
Lloh18:
	adrp	x8, _CXL_PSL9_APCDEDALLOC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CXL_PSL9_APCDEDALLOC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cxl_p1_write
Lloh21:
	adrp	x21, _CXL_PSL9_DEBUG@GOTPAGE
Lloh22:
	ldr	x21, [x21, _CXL_PSL9_DEBUG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_cxl_p1_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_cxl_p1_read
Lloh23:
	adrp	x8, _CXL_PSL_DEBUG_CDC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CXL_PSL_DEBUG_CDC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w0, #0
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CXL_XSL9_DSNCTL,4,2            ; @CXL_XSL9_DSNCTL
	.comm	_CXL_PSL9_FIR_CNTL,4,2          ; @CXL_PSL9_FIR_CNTL
	.comm	_CXL_PSL9_DSNDCTL,4,2           ; @CXL_PSL9_DSNDCTL
	.comm	_CXL_XSL9_DEF,4,2               ; @CXL_XSL9_DEF
	.comm	_CXL_XSL9_INV,4,2               ; @CXL_XSL9_INV
	.comm	_CXL_PSL9_APCDEDTYPE,4,2        ; @CXL_PSL9_APCDEDTYPE
	.comm	_CXL_PSL9_APCDEDALLOC,4,2       ; @CXL_PSL9_APCDEDALLOC
	.comm	_CXL_PSL9_DEBUG,4,2             ; @CXL_PSL9_DEBUG
	.comm	_CXL_PSL_DEBUG_CDC,4,2          ; @CXL_PSL_DEBUG_CDC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No data-cache present\n"

	.no_dead_strip	_init_implementation_adapter_regs_psl9
.subsections_via_symbols
