	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_setup_psl_timebase
_cxl_setup_psl_timebase:                ## @cxl_setup_psl_timebase
	.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, %r14
	movq	%rdi, %r15
	movl	$0, (%rdi)
	movq	%rsi, %rdi
	callq	_pnv_pci_get_phb_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_node_get
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_of_node_put
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.2:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	*%rax
LBB0_4:
	movq	_CXL_PSL_Control@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_cxl_p1_write
	movl	(%rbx), %esi
	movq	_CXL_PSL_Control_tb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cxl_p1_write                   ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ibm,capp-timebase-sync"

L_.str.1:                               ## @.str.1
	.asciz	"PSL timebase inactive: OPAL support missing\n"

	.comm	_CXL_PSL_Control,4,2            ## @CXL_PSL_Control
	.comm	_CXL_PSL_Control_tb,4,2         ## @CXL_PSL_Control_tb
	.no_dead_strip	_cxl_setup_psl_timebase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_setup_psl_timebase
_cxl_setup_psl_timebase:                ; @cxl_setup_psl_timebase
	.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	x19, x0
	str	wzr, [x0]
	mov	x0, x1
	bl	_pnv_pci_get_phb_node
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_of_node_get
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_of_get_property
	mov	x22, x0
	mov	x0, x21
	bl	_of_node_put
	cbz	w22, LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	blr	x8
LBB0_4:
Lloh2:
	adrp	x20, _CXL_PSL_Control@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CXL_PSL_Control@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_cxl_p1_write
	ldr	w1, [x20]
Lloh4:
	adrp	x8, _CXL_PSL_Control_tb@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CXL_PSL_Control_tb@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	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	_cxl_p1_write
LBB0_5:
	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
	ret
LBB0_6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	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	_dev_info
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ibm,capp-timebase-sync"

l_.str.1:                               ; @.str.1
	.asciz	"PSL timebase inactive: OPAL support missing\n"

	.comm	_CXL_PSL_Control,4,2            ; @CXL_PSL_Control
	.comm	_CXL_PSL_Control_tb,4,2         ; @CXL_PSL_Control_tb
	.no_dead_strip	_cxl_setup_psl_timebase
.subsections_via_symbols
