	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_probe
_cxl_probe:                             ## @cxl_probe
	.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, %r13
	callq	_cxl_pci_is_vphb_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_dbg
	jmp	LBB0_4
LBB0_2:
	movq	%r13, %rdi
	callq	_cxl_slot_is_switched
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_info
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_5:
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	callq	_cxl_is_power9
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_radix_enabled
	testl	%eax, %eax
	je	LBB0_21
LBB0_9:
	movq	_cxl_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_dump_cxl_config_space
LBB0_11:
	movq	%r13, %rdi
	callq	_cxl_pci_init_adapter
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_PTR_ERR
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_13:
	cmpl	$0, (%r14)
	jle	LBB0_22
## %bb.14:
	leaq	L_.str.4(%rip), %r12
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
LBB0_16:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_pci_init_afu
	testl	%eax, %eax
	jne	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_cxl_afu_select_best_mode
	testl	%eax, %eax
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_16
LBB0_21:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_info
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_22:
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cxl_init_adapter: Ignoring cxl vphb device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Ignoring card on incompatible PCI slot\n"

L_.str.2:                               ## @.str.2
	.asciz	"Only Radix mode supported\n"

	.comm	_cxl_verbose,8,3                ## @cxl_verbose
L_.str.3:                               ## @.str.3
	.asciz	"cxl_init_adapter failed: %li\n"

L_.str.4:                               ## @.str.4
	.asciz	"AFU %i failed to initialise: %i\n"

L_.str.5:                               ## @.str.5
	.asciz	"AFU %i failed to start: %i\n"

	.no_dead_strip	_cxl_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_probe
_cxl_probe:                             ; @cxl_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_cxl_pci_is_vphb_device
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_cxl_slot_is_switched
	cbz	x0, LBB0_7
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_info
LBB0_5:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	bl	_cxl_is_power9
	cbz	x0, LBB0_9
; %bb.8:
	bl	_radix_enabled
	cbz	w0, LBB0_21
LBB0_9:
Lloh7:
	adrp	x8, _cxl_verbose@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cxl_verbose@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_dump_cxl_config_space
LBB0_11:
	mov	x0, x19
	bl	_cxl_pci_init_adapter
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_13:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.14:
	mov	x21, #0
Lloh12:
	adrp	x22, l_.str.5@PAGE
Lloh13:
	add	x22, x22, l_.str.5@PAGEOFF
Lloh14:
	adrp	x23, l_.str.4@PAGE
Lloh15:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x23
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x2, x21
	bl	_dev_err
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #0
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_pci_init_afu
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_cxl_afu_select_best_mode
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x22
	b	LBB0_16
LBB0_21:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_22:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cxl_init_adapter: Ignoring cxl vphb device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Ignoring card on incompatible PCI slot\n"

l_.str.2:                               ; @.str.2
	.asciz	"Only Radix mode supported\n"

	.comm	_cxl_verbose,8,3                ; @cxl_verbose
l_.str.3:                               ; @.str.3
	.asciz	"cxl_init_adapter failed: %li\n"

l_.str.4:                               ; @.str.4
	.asciz	"AFU %i failed to initialise: %i\n"

l_.str.5:                               ; @.str.5
	.asciz	"AFU %i failed to start: %i\n"

	.no_dead_strip	_cxl_probe
.subsections_via_symbols
