	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_process_element_cmd
_do_process_element_cmd:                ## @do_process_element_cmd
	.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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	_CXL_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	imulq	(%rax), %r12
	addq	(%r14), %r12
	callq	_trace_cxl_llcmd
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, 16(%rax)
	sete	%dil
	callq	_WARN_ON
	movq	%r15, %rdi
	callq	_cpu_to_be32
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	(%rbx), %rdi
	orq	%r13, %rdi
	callq	_cpu_to_be64
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_smp_mb
	movq	8(%rbx), %rdi
	movq	_CXL_PSL_LLCMD_An@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	orq	%r13, %rdx
	callq	_cxl_p1n_write
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_time_after_eq
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %r15d
LBB0_11:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_trace_cxl_llcmd_done
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, %r14
	shrq	$16, %r14
	orq	%r13, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rsi
	movl	12(%rsi), %edi
	callq	*(%rax)
	movq	8(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_be64_to_cpup
	cmpq	$-1, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CXL_SPA_SW_STATE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CXL_SPA_SW_CMD_MASK@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	_CXL_SPA_SW_LINK_MASK@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	andq	%rax, %rcx
	movq	(%rbx), %rax
	orq	%r14, %rax
	cmpq	%rax, %rcx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_after_eq
	testq	%rax, %rax
	je	LBB0_2
	jmp	LBB0_9
LBB0_3:
	addq	$8, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	movl	$-1, %r15d
	jmp	LBB0_11
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_CXL_TIMEOUT,8,3                ## @CXL_TIMEOUT
	.comm	_CXL_PSL_LLCMD_An,4,2           ## @CXL_PSL_LLCMD_An
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: Process Element Command timed out!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_cxl_ops,8,3                    ## @cxl_ops
L_.str.1:                               ## @.str.1
	.asciz	"WARNING: Device link down, aborting Process Element Command!\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"cxl: Error adding process element to AFU\n"

	.comm	_CXL_SPA_SW_CMD_MASK,8,3        ## @CXL_SPA_SW_CMD_MASK
	.comm	_CXL_SPA_SW_STATE_MASK,8,3      ## @CXL_SPA_SW_STATE_MASK
	.comm	_CXL_SPA_SW_LINK_MASK,8,3       ## @CXL_SPA_SW_LINK_MASK
	.no_dead_strip	_do_process_element_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_process_element_cmd
_do_process_element_cmd:                ; @do_process_element_cmd
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x10, _CXL_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CXL_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	madd	x21, x10, x8, x9
	bl	_trace_cxl_llcmd
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x22
	bl	_cpu_to_be32
	ldr	x8, [x20, #16]
	str	w0, [x8]
	bl	_smp_wmb
	ldr	x8, [x20]
	orr	x0, x8, x19
	bl	_cpu_to_be64
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	w0, [x8]
	bl	_smp_mb
Lloh8:
	adrp	x8, _CXL_PSL_LLCMD_An@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CXL_PSL_LLCMD_An@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	x8, x0, [x20]
	orr	x2, x8, x19
	bl	_cxl_p1n_write
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_after_eq
	cbz	x0, LBB0_4
LBB0_1:
	ldr	x8, [x20, #8]
	add	x0, x8, #8
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_trace_cxl_llcmd_done
	mov	x0, x21
	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_4:
	orr	x22, x19, x19, lsr #16
Lloh15:
	adrp	x24, _cxl_ops@GOTPAGE
Lloh16:
	ldr	x24, [x24, _cxl_ops@GOTPAGEOFF]
Lloh17:
	adrp	x25, _CXL_SPA_SW_CMD_MASK@GOTPAGE
Lloh18:
	ldr	x25, [x25, _CXL_SPA_SW_CMD_MASK@GOTPAGEOFF]
Lloh19:
	adrp	x26, _CXL_SPA_SW_STATE_MASK@GOTPAGE
Lloh20:
	ldr	x26, [x26, _CXL_SPA_SW_STATE_MASK@GOTPAGEOFF]
Lloh21:
	adrp	x27, _CXL_SPA_SW_LINK_MASK@GOTPAGE
Lloh22:
	ldr	x27, [x27, _CXL_SPA_SW_LINK_MASK@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	x1, [x20, #8]
	ldr	w0, [x1, #12]
	blr	x8
	ldr	x8, [x20, #8]
	cbz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_be64_to_cpup
	cmn	x0, #1
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	orr	x8, x9, x8
	ldr	x9, [x27]
	orr	x8, x8, x9
	and	x8, x8, x0
	ldr	x9, [x20]
	orr	x9, x22, x9
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_schedule
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_after_eq
	cbz	x0, LBB0_5
	b	LBB0_1
LBB0_9:
	add	x0, x8, #8
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh25:
	adrp	x8, _EIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	mov	w21, #-1
	b	LBB0_3
LBB0_11:
	mov	w21, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_CXL_TIMEOUT,8,3                ; @CXL_TIMEOUT
	.comm	_CXL_PSL_LLCMD_An,4,2           ; @CXL_PSL_LLCMD_An
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: Process Element Command timed out!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_cxl_ops,8,3                    ; @cxl_ops
l_.str.1:                               ; @.str.1
	.asciz	"WARNING: Device link down, aborting Process Element Command!\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"cxl: Error adding process element to AFU\n"

	.comm	_CXL_SPA_SW_CMD_MASK,8,3        ; @CXL_SPA_SW_CMD_MASK
	.comm	_CXL_SPA_SW_STATE_MASK,8,3      ; @CXL_SPA_SW_STATE_MASK
	.comm	_CXL_SPA_SW_LINK_MASK,8,3       ; @CXL_SPA_SW_LINK_MASK
	.no_dead_strip	_do_process_element_cmd
.subsections_via_symbols
