	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_attach_dedicated_process_psl8 ## -- Begin function cxl_attach_dedicated_process_psl8
	.p2align	4, 0x90
_cxl_attach_dedicated_process_psl8:     ## @cxl_attach_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	%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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_CXL_PSL_PID_TID_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_cxl_p2n_write
	movq	_CXL_PSL_SR_An@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_calculate_sr
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_cxl_p1n_write
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	%r15, %rdi
	callq	_cxl_write_sstp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cxl_prefault
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_3:
	movq	_CXL_PSL_AMR_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_cxl_p2n_write
	movq	%rbx, %rdi
	callq	_cxl_assign_psn_space
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CXL_PSL_WED_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_cxl_p2n_write
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_afu_enable                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_CXL_PSL_PID_TID_An,4,2         ## @CXL_PSL_PID_TID_An
	.comm	_CXL_PSL_SR_An,4,2              ## @CXL_PSL_SR_An
	.comm	_CXL_PSL_AMR_An,4,2             ## @CXL_PSL_AMR_An
	.comm	_cxl_ops,8,3                    ## @cxl_ops
	.comm	_CXL_PSL_WED_An,4,2             ## @CXL_PSL_WED_An
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_attach_dedicated_process_psl8 ; -- Begin function cxl_attach_dedicated_process_psl8
	.p2align	2
_cxl_attach_dedicated_process_psl8:     ; @cxl_attach_dedicated_process_psl8
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _CXL_PSL_PID_TID_An@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXL_PSL_PID_TID_An@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cxl_p2n_write
Lloh3:
	adrp	x8, _CXL_PSL_SR_An@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CXL_PSL_SR_An@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_calculate_sr
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_cxl_p1n_write
	ldp	w2, w1, [x21, #8]
	mov	x0, x19
	bl	_cxl_write_sstp
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_cxl_prefault
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
LBB0_3:
Lloh6:
	adrp	x8, _CXL_PSL_AMR_An@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CXL_PSL_AMR_An@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_cxl_p2n_write
	mov	x0, x21
	bl	_cxl_assign_psn_space
Lloh9:
	adrp	x8, _cxl_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cxl_ops@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_5
LBB0_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:
Lloh12:
	adrp	x8, _CXL_PSL_WED_An@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CXL_PSL_WED_An@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_cxl_p2n_write
	mov	x0, x19
	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	_afu_enable
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_CXL_PSL_PID_TID_An,4,2         ; @CXL_PSL_PID_TID_An
	.comm	_CXL_PSL_SR_An,4,2              ; @CXL_PSL_SR_An
	.comm	_CXL_PSL_AMR_An,4,2             ; @CXL_PSL_AMR_An
	.comm	_cxl_ops,8,3                    ; @cxl_ops
	.comm	_CXL_PSL_WED_An,4,2             ; @CXL_PSL_WED_An
.subsections_via_symbols
