	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_load_segment
_cxl_load_segment:                      ## @cxl_load_segment
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_find_free_sste
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movslq	(%rbx), %rax
	shlq	$4, %rax
	movq	%r15, %rsi
	subq	%rax, %rsi
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_devel
	movslq	(%rbx), %rax
	shlq	$4, %rax
	movq	%r15, %rsi
	subq	%rax, %rsi
	movl	(%r12), %edx
	movl	4(%r12), %ecx
	movq	%rbx, %rdi
	callq	_trace_cxl_ste_write
	movl	4(%r12), %edi
	callq	_cpu_to_be64
	movq	%rax, 8(%r15)
	movl	(%r12), %edi
	callq	_cpu_to_be64
	movq	%rax, (%r15)
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CXL Populating SST[%li]: %#llx %#llx\n"

	.no_dead_strip	_cxl_load_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_load_segment
_cxl_load_segment:                      ; @cxl_load_segment
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x22
	mov	x1, x20
	bl	_find_free_sste
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldrsw	x8, [x22]
	sub	x1, x0, x8, lsl #4
	ldp	w3, w2, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_devel
	ldrsw	x8, [x22]
	sub	x1, x21, x8, lsl #4
	ldp	w2, w3, [x20]
	mov	x0, x22
	bl	_trace_cxl_ste_write
	ldr	w0, [x20, #4]
	bl	_cpu_to_be64
	str	x0, [x21, #8]
	ldr	w0, [x20]
	bl	_cpu_to_be64
	str	x0, [x21]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CXL Populating SST[%li]: %#llx %#llx\n"

	.no_dead_strip	_cxl_load_segment
.subsections_via_symbols
