	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_stop_trace_psl9
_cxl_stop_trace_psl9:                   ## @cxl_stop_trace_psl9
	.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	%rdi, %r15
	movl	(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %r14
	movq	_CXL_PSL9_TRACEID_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	js	LBB0_5
## %bb.1:
	movq	$-1, %r12
	movl	$62, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CXL_PSL9_TRACEID_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addl	$-2, %ebx
	cmpq	%rax, %r12
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CXL_PSL9_CTCCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_cxl_p1_read
	incq	%r12
	movl	$3, %r13d
	movl	%ebx, %ecx
	shlq	%cl, %r13
	andl	%eax, %r13d
	sarl	%cl, %r13d
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_dev_dbg
	movq	_CXL_PSL9_TRACESTATE_FIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CXL_PSL9_TRACECFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_cxl_p1_write
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXL_PSL9_TRACEID_MAX,4,2       ## @CXL_PSL9_TRACEID_MAX
	.comm	_CXL_PSL9_CTCCFG,4,2            ## @CXL_PSL9_CTCCFG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cxl: Traceid-%d trace_state=0x%0llX\n"

	.comm	_CXL_PSL9_TRACESTATE_FIN,4,2    ## @CXL_PSL9_TRACESTATE_FIN
	.comm	_CXL_PSL9_TRACECFG,4,2          ## @CXL_PSL9_TRACECFG
	.no_dead_strip	_cxl_stop_trace_psl9
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_stop_trace_psl9
_cxl_stop_trace_psl9:                   ; @cxl_stop_trace_psl9
	.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	x19, x0
	ldr	w0, [x0]
	bl	_to_pci_dev
Lloh0:
	adrp	x24, _CXL_PSL9_TRACEID_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CXL_PSL9_TRACEID_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x21, #-1
	mov	w25, #62
Lloh2:
	adrp	x26, _CXL_PSL9_CTCCFG@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CXL_PSL9_CTCCFG@GOTPAGEOFF]
	mov	w27, #3
Lloh4:
	adrp	x28, _CXL_PSL9_TRACESTATE_FIN@GOTPAGE
Lloh5:
	ldr	x28, [x28, _CXL_PSL9_TRACESTATE_FIN@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x24]
	sub	w25, w25, #2
	cmp	x21, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	bl	_cxl_p1_read
	add	x21, x21, #1
	lsl	x8, x27, x25
	and	w8, w0, w8
	asr	w23, w8, w25
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	_dev_dbg
	ldr	w8, [x28]
	cmp	w23, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x8, _CXL_PSL9_TRACECFG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CXL_PSL9_TRACECFG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_cxl_p1_write
	b	LBB0_2
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CXL_PSL9_TRACEID_MAX,4,2       ; @CXL_PSL9_TRACEID_MAX
	.comm	_CXL_PSL9_CTCCFG,4,2            ; @CXL_PSL9_CTCCFG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cxl: Traceid-%d trace_state=0x%0llX\n"

	.comm	_CXL_PSL9_TRACESTATE_FIN,4,2    ; @CXL_PSL9_TRACESTATE_FIN
	.comm	_CXL_PSL9_TRACECFG,4,2          ; @CXL_PSL9_TRACECFG
	.no_dead_strip	_cxl_stop_trace_psl9
.subsections_via_symbols
