	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_pci_get_max_link_speed      ## -- Begin function of_pci_get_max_link_speed
	.p2align	4, 0x90
_of_pci_get_max_link_speed:             ## @of_pci_get_max_link_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	leaq	L_.str(%rip), %rsi
	leaq	-4(%rbp), %rdx
	callq	_of_property_read_u32
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	movl	-4(%rbp), %ecx
	cmpl	$5, %ecx
	cmovgel	%edx, %ecx
	testq	%rax, %rax
	cmovnel	%edx, %ecx
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"max-link-speed"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_pci_get_max_link_speed      ; -- Begin function of_pci_get_max_link_speed
	.p2align	2
_of_pci_get_max_link_speed:             ; @of_pci_get_max_link_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #4
	bl	_of_property_read_u32
	ldur	w8, [x29, #-4]
	cmp	w8, #4
	ccmp	x0, #0, #0, le
Lloh2:
	adrp	x9, _EINVAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	csneg	w0, w8, w9, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"max-link-speed"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
