	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxllib_get_xsl_config          ## -- Begin function cxllib_get_xsl_config
	.p2align	4, 0x90
_cxllib_get_xsl_config:                 ## @cxllib_get_xsl_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_CPU_FTR_HVMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_has_feature
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_dra_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_dummy_read_addr@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_CXL_INVALID_DRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_allocate_dummy_read_buf
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	_dra_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_5:
	movq	_dra_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	leaq	-40(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	callq	_cxl_calc_capp_routing
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	-36(%rbp), %esi
	leaq	20(%r14), %rdx
	movq	%r15, %rdi
	callq	_cxl_get_xsl9_dsnctl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_CXL_XSL_CONFIG_CURRENT_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_CXL_CAPI_WINDOW_LOG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_CXL_CAPI_WINDOW_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%r12), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_FTR_HVMODE,4,2             ## @CPU_FTR_HVMODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dra_mutex,4,2                  ## @dra_mutex
	.comm	_dummy_read_addr,8,3            ## @dummy_read_addr
	.comm	_CXL_INVALID_DRA,8,3            ## @CXL_INVALID_DRA
	.comm	_CXL_XSL_CONFIG_CURRENT_VERSION,4,2 ## @CXL_XSL_CONFIG_CURRENT_VERSION
	.comm	_CXL_CAPI_WINDOW_LOG_SIZE,4,2   ## @CXL_CAPI_WINDOW_LOG_SIZE
	.comm	_CXL_CAPI_WINDOW_START,4,2      ## @CXL_CAPI_WINDOW_START
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxllib_get_xsl_config          ; -- Begin function cxllib_get_xsl_config
	.p2align	2
_cxllib_get_xsl_config:                 ; @cxllib_get_xsl_config
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CPU_FTR_HVMODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPU_FTR_HVMODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_has_feature
	cbz	w0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x0, _dra_mutex@GOTPAGE
Lloh4:
	ldr	x0, [x0, _dra_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh5:
	adrp	x22, _dummy_read_addr@GOTPAGE
Lloh6:
	ldr	x22, [x22, _dummy_read_addr@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _CXL_INVALID_DRA@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CXL_INVALID_DRA@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	bl	_allocate_dummy_read_buf
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh10:
	adrp	x0, _dra_mutex@GOTPAGE
Lloh11:
	ldr	x0, [x0, _dra_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x0, _dra_mutex@GOTPAGE
Lloh13:
	ldr	x0, [x0, _dra_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	add	x1, sp, #8
	add	x2, sp, #12
	add	x3, sp, #4
	mov	x0, x20
	bl	_cxl_calc_capp_routing
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w1, [sp, #4]
	add	x2, x19, #20
	mov	x0, x20
	bl	_cxl_get_xsl9_dsnctl
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _CXL_XSL_CONFIG_CURRENT_VERSION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CXL_XSL_CONFIG_CURRENT_VERSION@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh17:
	adrp	x8, _CXL_CAPI_WINDOW_LOG_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CXL_CAPI_WINDOW_LOG_SIZE@GOTPAGEOFF]
Lloh19:
	adrp	x9, _CXL_CAPI_WINDOW_START@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CXL_CAPI_WINDOW_START@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	ldr	x8, [x22]
	str	x8, [x19]
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_FTR_HVMODE,4,2             ; @CPU_FTR_HVMODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dra_mutex,4,2                  ; @dra_mutex
	.comm	_dummy_read_addr,8,3            ; @dummy_read_addr
	.comm	_CXL_INVALID_DRA,8,3            ; @CXL_INVALID_DRA
	.comm	_CXL_XSL_CONFIG_CURRENT_VERSION,4,2 ; @CXL_XSL_CONFIG_CURRENT_VERSION
	.comm	_CXL_CAPI_WINDOW_LOG_SIZE,4,2   ; @CXL_CAPI_WINDOW_LOG_SIZE
	.comm	_CXL_CAPI_WINDOW_START,4,2      ; @CXL_CAPI_WINDOW_START
.subsections_via_symbols
