	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_afu_select_best_mode       ## -- Begin function cxl_afu_select_best_mode
	.p2align	4, 0x90
_cxl_afu_select_best_mode:              ## @cxl_afu_select_best_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_CXL_MODE_DIRECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	jne	LBB0_3
## %bb.1:
	movq	_CXL_MODE_DEDICATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	je	LBB0_2
LBB0_3:
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	addq	$4, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXL_MODE_DIRECTED,4,2          ## @CXL_MODE_DIRECTED
	.comm	_cxl_ops,8,3                    ## @cxl_ops
	.comm	_CXL_MODE_DEDICATED,4,2         ## @CXL_MODE_DEDICATED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No supported programming modes available\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_afu_select_best_mode       ; -- Begin function cxl_afu_select_best_mode
	.p2align	2
_cxl_afu_select_best_mode:              ; @cxl_afu_select_best_mode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CXL_MODE_DIRECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXL_MODE_DIRECTED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	tst	w1, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _CXL_MODE_DEDICATED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXL_MODE_DEDICATED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	tst	w1, w8
	b.eq	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _cxl_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cxl_ops@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x2, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	br	x2
LBB0_3:
	add	x0, x0, #4
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CXL_MODE_DIRECTED,4,2          ; @CXL_MODE_DIRECTED
	.comm	_cxl_ops,8,3                    ; @cxl_ops
	.comm	_CXL_MODE_DEDICATED,4,2         ; @CXL_MODE_DEDICATED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No supported programming modes available\n"

.subsections_via_symbols
