	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_activate_dedicated_process_psl8 ## -- Begin function cxl_activate_dedicated_process_psl8
	.p2align	4, 0x90
_cxl_activate_dedicated_process_psl8:   ## @cxl_activate_dedicated_process_psl8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$8, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_CXL_PSL_SCNTL_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CXL_PSL_SCNTL_An_PM_Process@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_cxl_p1n_write
	movq	_CXL_PSL_CtxTime_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cxl_p1n_write
	movq	_CXL_PSL_SPAP_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cxl_p1n_write
	movq	_CXL_PSL_AMOR_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_cxl_p1n_write
	movq	_CXL_PSL_LPID_An@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SPRN_LPID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mfspr
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_cxl_p1n_write
	movq	_CXL_HAURP_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cxl_p1n_write
	movq	_CXL_PSL_SDR_An@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SPRN_SDR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mfspr
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_cxl_p1n_write
	movq	_CXL_CSRP_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cxl_p2n_write
	movq	_CXL_AURP0_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cxl_p2n_write
	movq	_CXL_AURP1_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cxl_p2n_write
	movq	_CXL_MODE_DEDICATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cxl_chardev_d_afu_add          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Activating dedicated process mode\n"

	.comm	_CXL_PSL_SCNTL_An,4,2           ## @CXL_PSL_SCNTL_An
	.comm	_CXL_PSL_SCNTL_An_PM_Process,4,2 ## @CXL_PSL_SCNTL_An_PM_Process
	.comm	_CXL_PSL_CtxTime_An,4,2         ## @CXL_PSL_CtxTime_An
	.comm	_CXL_PSL_SPAP_An,4,2            ## @CXL_PSL_SPAP_An
	.comm	_CXL_PSL_AMOR_An,4,2            ## @CXL_PSL_AMOR_An
	.comm	_CXL_PSL_LPID_An,4,2            ## @CXL_PSL_LPID_An
	.comm	_SPRN_LPID,4,2                  ## @SPRN_LPID
	.comm	_CXL_HAURP_An,4,2               ## @CXL_HAURP_An
	.comm	_CXL_PSL_SDR_An,4,2             ## @CXL_PSL_SDR_An
	.comm	_SPRN_SDR1,4,2                  ## @SPRN_SDR1
	.comm	_CXL_CSRP_An,4,2                ## @CXL_CSRP_An
	.comm	_CXL_AURP0_An,4,2               ## @CXL_AURP0_An
	.comm	_CXL_AURP1_An,4,2               ## @CXL_AURP1_An
	.comm	_CXL_MODE_DEDICATED,4,2         ## @CXL_MODE_DEDICATED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_activate_dedicated_process_psl8 ; -- Begin function cxl_activate_dedicated_process_psl8
	.p2align	2
_cxl_activate_dedicated_process_psl8:   ; @cxl_activate_dedicated_process_psl8
	.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
	mov	x19, x0
	add	x0, x0, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh2:
	adrp	x8, _CXL_PSL_SCNTL_An@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CXL_PSL_SCNTL_An@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _CXL_PSL_SCNTL_An_PM_Process@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CXL_PSL_SCNTL_An_PM_Process@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cxl_p1n_write
Lloh8:
	adrp	x8, _CXL_PSL_CtxTime_An@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CXL_PSL_CtxTime_An@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cxl_p1n_write
Lloh11:
	adrp	x8, _CXL_PSL_SPAP_An@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CXL_PSL_SPAP_An@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cxl_p1n_write
Lloh14:
	adrp	x8, _CXL_PSL_AMOR_An@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CXL_PSL_AMOR_An@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_cxl_p1n_write
Lloh17:
	adrp	x8, _CXL_PSL_LPID_An@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CXL_PSL_LPID_An@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
Lloh20:
	adrp	x8, _SPRN_LPID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SPRN_LPID@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_mfspr
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_cxl_p1n_write
Lloh23:
	adrp	x8, _CXL_HAURP_An@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CXL_HAURP_An@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cxl_p1n_write
Lloh26:
	adrp	x8, _CXL_PSL_SDR_An@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CXL_PSL_SDR_An@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
Lloh29:
	adrp	x8, _SPRN_SDR1@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SPRN_SDR1@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_mfspr
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_cxl_p1n_write
Lloh32:
	adrp	x8, _CXL_CSRP_An@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CXL_CSRP_An@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cxl_p2n_write
Lloh35:
	adrp	x8, _CXL_AURP0_An@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CXL_AURP0_An@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cxl_p2n_write
Lloh38:
	adrp	x8, _CXL_AURP1_An@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CXL_AURP1_An@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cxl_p2n_write
Lloh41:
	adrp	x8, _CXL_MODE_DEDICATED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CXL_MODE_DEDICATED@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cxl_chardev_d_afu_add
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Activating dedicated process mode\n"

	.comm	_CXL_PSL_SCNTL_An,4,2           ; @CXL_PSL_SCNTL_An
	.comm	_CXL_PSL_SCNTL_An_PM_Process,4,2 ; @CXL_PSL_SCNTL_An_PM_Process
	.comm	_CXL_PSL_CtxTime_An,4,2         ; @CXL_PSL_CtxTime_An
	.comm	_CXL_PSL_SPAP_An,4,2            ; @CXL_PSL_SPAP_An
	.comm	_CXL_PSL_AMOR_An,4,2            ; @CXL_PSL_AMOR_An
	.comm	_CXL_PSL_LPID_An,4,2            ; @CXL_PSL_LPID_An
	.comm	_SPRN_LPID,4,2                  ; @SPRN_LPID
	.comm	_CXL_HAURP_An,4,2               ; @CXL_HAURP_An
	.comm	_CXL_PSL_SDR_An,4,2             ; @CXL_PSL_SDR_An
	.comm	_SPRN_SDR1,4,2                  ; @SPRN_SDR1
	.comm	_CXL_CSRP_An,4,2                ; @CXL_CSRP_An
	.comm	_CXL_AURP0_An,4,2               ; @CXL_AURP0_An
	.comm	_CXL_AURP1_An,4,2               ; @CXL_AURP1_An
	.comm	_CXL_MODE_DEDICATED,4,2         ; @CXL_MODE_DEDICATED
.subsections_via_symbols
