	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_data_cache_flush           ## -- Begin function cxl_data_cache_flush
	.p2align	4, 0x90
_cxl_data_cache_flush:                  ## @cxl_data_cache_flush
	.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
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_devel
	jmp	LBB0_12
LBB0_2:
	movq	%rdi, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rdx
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	_CXL_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	imulq	(%rax), %r14
	addq	(%rdx), %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_devel
	movq	_CXL_PSL_Control@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_cxl_p1_read
	movq	_CXL_PSL_Control_Fr@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_cxl_p1_write
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_cxl_p1_read
	movq	_CXL_PSL_Control_Fs_MASK@GOTPCREL(%rip), %rdx
	movl	%eax, %ecx
	andl	(%rdx), %ecx
	movq	_CXL_PSL_Control_Fs_Complete@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ecx
	je	LBB0_11
## %bb.3:
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	%rdx, %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	%r14, %rsi
	callq	_time_after_eq
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	_CXL_PSL_Control@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cxl_p1_read
	movl	(%r13), %ecx
	andl	%eax, %ecx
	cmpl	(%r15), %ecx
	jne	LBB0_4
## %bb.10:
	movq	_CXL_PSL_Control@GOTPCREL(%rip), %r12
	movq	_CXL_PSL_Control_Fr@GOTPCREL(%rip), %r13
LBB0_11:
	movl	(%r13), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_cxl_p1_write
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_CXL_TIMEOUT,8,3                ## @CXL_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No PSL data cache. Ignoring cache flush req.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Flushing data cache\n"

	.comm	_CXL_PSL_Control,4,2            ## @CXL_PSL_Control
	.comm	_CXL_PSL_Control_Fr,4,2         ## @CXL_PSL_Control_Fr
	.comm	_CXL_PSL_Control_Fs_MASK,4,2    ## @CXL_PSL_Control_Fs_MASK
	.comm	_CXL_PSL_Control_Fs_Complete,4,2 ## @CXL_PSL_Control_Fs_Complete
L_.str.2:                               ## @.str.2
	.asciz	"WARNING: cache flush timed out!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_cxl_ops,8,3                    ## @cxl_ops
L_.str.3:                               ## @.str.3
	.asciz	"WARNING: link down when flushing cache\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_data_cache_flush           ; -- Begin function cxl_data_cache_flush
	.p2align	2
_cxl_data_cache_flush:                  ; @cxl_data_cache_flush
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_devel
	b	LBB0_8
LBB0_2:
	mov	x19, x0
Lloh2:
	adrp	x21, _jiffies@GOTPAGE
Lloh3:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh4:
	adrp	x8, _HZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh6:
	ldr	x26, [x8]
Lloh7:
	adrp	x8, _CXL_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CXL_TIMEOUT@GOTPAGEOFF]
Lloh9:
	ldr	x27, [x8]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_devel
Lloh12:
	adrp	x22, _CXL_PSL_Control@GOTPAGE
Lloh13:
	ldr	x22, [x22, _CXL_PSL_Control@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_cxl_p1_read
Lloh14:
	adrp	x23, _CXL_PSL_Control_Fr@GOTPAGE
Lloh15:
	ldr	x23, [x23, _CXL_PSL_Control_Fr@GOTPAGEOFF]
	ldr	w8, [x23]
	orr	w2, w8, w0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_cxl_p1_write
	ldr	w1, [x22]
	mov	x0, x19
	bl	_cxl_p1_read
Lloh16:
	adrp	x24, _CXL_PSL_Control_Fs_MASK@GOTPAGE
Lloh17:
	ldr	x24, [x24, _CXL_PSL_Control_Fs_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w8, w8, w0
Lloh18:
	adrp	x25, _CXL_PSL_Control_Fs_Complete@GOTPAGE
Lloh19:
	ldr	x25, [x25, _CXL_PSL_Control_Fs_Complete@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.3:
	madd	x20, x27, x26, x20
Lloh20:
	adrp	x26, _cxl_ops@GOTPAGE
Lloh21:
	ldr	x26, [x26, _cxl_ops@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_time_after_eq
	cbnz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, #0
	blr	x8
	cbz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_cpu_relax
	ldr	w1, [x22]
	mov	x0, x19
	bl	_cxl_p1_read
	ldr	w8, [x24]
	and	w8, w8, w0
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_4
LBB0_7:
	ldr	w8, [x23]
	bic	w2, w0, w8
	ldr	w1, [x22]
	mov	x0, x19
	bl	_cxl_p1_write
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh24:
	adrp	x8, _EBUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh28:
	adrp	x8, _EIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_CXL_TIMEOUT,8,3                ; @CXL_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No PSL data cache. Ignoring cache flush req.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Flushing data cache\n"

	.comm	_CXL_PSL_Control,4,2            ; @CXL_PSL_Control
	.comm	_CXL_PSL_Control_Fr,4,2         ; @CXL_PSL_Control_Fr
	.comm	_CXL_PSL_Control_Fs_MASK,4,2    ; @CXL_PSL_Control_Fs_MASK
	.comm	_CXL_PSL_Control_Fs_Complete,4,2 ; @CXL_PSL_Control_Fs_Complete
l_.str.2:                               ; @.str.2
	.asciz	"WARNING: cache flush timed out!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_cxl_ops,8,3                    ; @cxl_ops
l_.str.3:                               ; @.str.3
	.asciz	"WARNING: link down when flushing cache\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
